Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ A collection of plugins to extend the capabilities of [rspress](https://rspress.

- [rspress-plugin-google-analytics](./packages/rspress-plugin-google-analytics), integrate Google Analytics in your site.
- [rspress-plugin-vercel-analytics](./packages/rspress-plugin-vercel-analytics), integrate Vercel Analytics in your site.
- [rspress-plugin-third-parties](./packages/rspress-plugin-third-parties), optimized third-party script loading and component embeds (YouTube, Twitter/X, Google Analytics, GTM).
- [ ] rspress-plugin-sitemap
- [ ] rspress-plugin-pwa

Expand Down
8 changes: 8 additions & 0 deletions packages/rspress-plugin-third-parties/.changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets).

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md).
11 changes: 11 additions & 0 deletions packages/rspress-plugin-third-parties/.changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.4/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
54 changes: 54 additions & 0 deletions packages/rspress-plugin-third-parties/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Dependencies
node_modules/
.pnpm-store/

# Build & Compilation Outputs
dist/
build/
.out/
.rsbuild/
.rspress/
*.tsbuildinfo

# Logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Environment & Local Configuration
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
.env*.local

# IDEs & Code Editors
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.idea/
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Operating System Files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Testing & Cache
coverage/
.nyc_output/
.cache/

.urai-cache
25 changes: 25 additions & 0 deletions packages/rspress-plugin-third-parties/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# rspress-plugin-third-parties

## 2.1.2

### Patch Changes

- fix: assign script id in DOM, dynamic IDs for GTM and GA to prevent LoadCache collisions, and add React Compiler compliant useEffect state initialization

## 2.1.1

### Patch Changes

- update <TweetEmbed> caption prop type from string to ReactNode to allow rich JSX formatting

## 2.1.0

### Minor Changes

- Add TweetEmbed component powered by react-tweet, add jsdelivr preconnect optimization for YouTubeEmbed, and update documentation.

## 2.0.0

### Major Changes

- Initial release with React Compiler, YouTubeEmbed, GoogleMapsEmbed, GA4, GTM, and custom Script components.
21 changes: 21 additions & 0 deletions packages/rspress-plugin-third-parties/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Sanjaiyan Parthipan (https://github.com/sanjaiyan-dev)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading