-
Notifications
You must be signed in to change notification settings - Fork 63
feat(react): add @superdoc-dev/react wrapper package #1912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tupizz
wants to merge
65
commits into
main
Choose a base branch
from
feat/react-wrapper
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
aecdc78
feat(react): add @superdoc/react wrapper package
tupizz 585e12e
docs: update React guide to use @superdoc/react wrapper
tupizz 161b087
fix(react-example): improve responsive layout for split-view panels
tupizz 74ee34e
docs: comprehensive documentation update for @superdoc/react
tupizz 1124b63
docs(apps/docs): enhance React and Next.js documentation
tupizz e7fb6c8
refactor(react): simplify types and improve DX
tupizz d4ca362
chore: remove .claude/rules from tracking
tupizz 9c4a628
chore: Ignore local Claude files in .gitignore
tupizz a609574
fix(react): address PR review inconsistencies
tupizz 3c1357c
docs(react): clarify documentMode prop changes work without rebuild
tupizz 739ee34
fix(react): make component client-only to avoid SSR issues
tupizz 2097269
feat(react): add optional id prop for custom container IDs
tupizz eb3ec65
docs(react): fix documentation inconsistencies
tupizz 7c333a6
feat(examples): update getting-started examples to use @superdoc/react
tupizz 63ec6b7
Merge remote-tracking branch 'origin/main' into feat/react-wrapper
tupizz 0aaa16e
revert: restore pm-adapter/cache.test.ts and PresentationEditor.ts to…
tupizz de95074
revert: restore .gitignore to main
tupizz f6c3a2b
revert: restore cache.test.ts and PresentationEditor.ts formatting to…
tupizz d6ecb71
revert: restore cache.test.ts and PresentationEditor.ts to main (skip…
tupizz a93dbc4
docs: update example paths from react-wrapper to getting-started/reac…
tupizz cba407d
feat(examples): add react-with-typescript example with full type safety
tupizz 428c834
Remove react-typescript example directory
tupizz 2a69217
docs: remove API route section from nextjs.mdx and fix example links
tupizz 0738bb2
docs: remove With Authentication section from nextjs.mdx
tupizz 3660451
fix(react): clarify SSR behavior in comments
tupizz 872ed87
fix(react): exclude test files from dts generation
tupizz c1e8ebb
fix(react): gate initialization on isClient to avoid race condition
tupizz f1f01fa
fix(react): escape CSS selectors to handle special characters in id prop
tupizz fb1609b
docs(react): update CLAUDE.md to match implementation
tupizz 74f89fb
ci(react): add CI/CD workflows for @superdoc/react
tupizz 248a0d5
ci(react): add canary release branch for testing [TEMPORARY]
tupizz 2df777c
ci(react): trigger release on feature branch [TEMPORARY]
tupizz 6a09cbf
chore(react): update package description
tupizz 2f4d272
chore(react): add publishConfig for public npm access
tupizz 2156bf0
fix(react): add LINEAR_TOKEN to release workflow
tupizz 5992e39
chore(react): trigger release workflow
tupizz 8a42de0
chore(react): add module doc comment
tupizz fc463dc
chore(react): rename package to @superdoc-dev/react
tupizz c37d3b8
feat(react): initial release of @superdoc-dev/react
tupizz ea36b55
chore(react): remove temporary release branch config
tupizz 1dac653
fix(react): use workspace:^ for superdoc dependency
tupizz 43ca9f1
chore(react): restore temporary release config for testing
tupizz d3fd167
chore: update lockfile for react workspace:^ change
tupizz 10bf8c9
fix(react): correct superdoc dependency for npm publish
tupizz 077235b
fix(react): move superdoc to peerDependencies
tupizz d5c636a
fix(react): allow any superdoc version >=1.0.0
tupizz 4fc6d79
fix(react): superdoc as regular dependency (auto-installed)
tupizz 16706ea
docs: update all references from @superdoc/react to @superdoc-dev/react
tupizz ad07367
fix(react): export callback event types for TypeScript users
tupizz a9c1146
fix(react): improve callback event types with Editor alias
tupizz 39404d4
fix(react): use Editor type from superdoc instead of any
tupizz c362a3c
fix(react): add explicit callback types for proper TypeScript inference
tupizz f14d315
fix(examples): use workspace:* for local react package
tupizz 7572bf7
fix(examples): update workspace override to use @superdoc-dev/react p…
tupizz 498de6b
refactor: update package name to @superdoc-dev/react and consolidate …
tupizz 83acaac
chore: Remove react-typescript example from test config
tupizz c00aeda
fix(react): address PR review comments
tupizz 3d2f3ed
docs: Update NextJS documentation section
tupizz 3b9891b
chore: add claude code rules for git commits and coding standards
tupizz bff9538
Revert "chore: add claude code rules for git commits and coding stand…
tupizz ca3772a
fix(react): address PR review issues
tupizz a3df81a
feat(examples): add Next.js getting-started example
tupizz 66f7115
chore: merge main and resolve pnpm-lock conflicts
tupizz a2ca38a
chore: Add more paths to React CI workflow trigger
tupizz 74dde7d
chore: Update GitHub Actions workflow for React package
tupizz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| name: CI React | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - 'packages/react/**' | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ci-react-${{ github.event.pull_request.number }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| validate: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version-file: .nvmrc | ||
| cache: pnpm | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install | ||
|
|
||
| - name: Build superdoc (dependency) | ||
| run: pnpm run build:superdoc | ||
|
|
||
| - name: Lint | ||
| run: pnpm --filter @superdoc-dev/react lint | ||
|
|
||
| - name: Type check | ||
| run: pnpm --filter @superdoc-dev/react type-check | ||
|
|
||
| - name: Build | ||
| run: pnpm --filter @superdoc-dev/react build | ||
|
|
||
| - name: Test | ||
| run: pnpm --filter @superdoc-dev/react test | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| # Auto-releases on push to main (@next channel) | ||
| # For stable (@latest): cherry-pick commits to stable branch, then manually dispatch this workflow | ||
| name: 📦 Release react | ||
tupizz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'packages/react/**' | ||
| - 'packages/layout-engine/**' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| - 'packages/super-editor/**' | ||
| - 'packages/ai/**' | ||
| - 'packages/word-layout/**' | ||
| - 'packages/preset-geometry/**' | ||
| - '!**/*.md' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: write | ||
| packages: write | ||
|
|
||
| concurrency: | ||
| group: release-react-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| release: | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - name: Generate token | ||
| id: generate_token | ||
| uses: actions/create-github-app-token@v2 | ||
| with: | ||
| app-id: ${{ secrets.APP_ID }} | ||
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | ||
|
|
||
| - uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 0 | ||
| token: ${{ steps.generate_token.outputs.token }} | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
|
|
||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: .nvmrc | ||
| cache: pnpm | ||
| registry-url: 'https://registry.npmjs.org' | ||
|
|
||
| - uses: oven-sh/setup-bun@v2 | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install | ||
|
|
||
| - name: Build packages | ||
| run: pnpm run build | ||
|
|
||
| - name: Release | ||
| env: | ||
| GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | ||
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| LINEAR_TOKEN: ${{ secrets.LINEAR_TOKEN }} | ||
| working-directory: packages/react | ||
| run: pnpx semantic-release | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.