-
Notifications
You must be signed in to change notification settings - Fork 937
Decouple react #4693
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
Decouple react #4693
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
🦋 Changeset detectedLatest commit: 7c33bfe The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @felixfeng33's task —— View job Pull Request ReviewSummaryThis PR extracts the Code Quality ✅The code changes follow good software engineering principles:
Changes AnalysisNew File:
|
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR.
| import type { TElement, TText } from '@platejs/slate'; | ||
|
|
||
| import type { SlateEditor } from '../../editor'; | ||
|
|
||
| import { type AnyEditorPlugin, getEditorPlugin } from '../../plugin'; | ||
| import { | ||
| keyToDataAttribute, | ||
| } from '../../utils/getNodeDataAttributeKeys'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maintain static export for data attribute helpers
Moving getNodeDataAttributeKeys and keyToDataAttribute into utils stopped packages/core/static from exporting them. Any consumers that imported these helpers from the static barrel (e.g. import { getNodeDataAttributeKeys } from '@udecode/plate-core/static') will now receive an undefined export even though no breaking-change note or changeset accompanied the commit. If the intent was only to refactor the implementation to avoid React dependencies, the static entry point should continue re‑exporting these helpers from their new location to avoid an inadvertent breaking API change.
Useful? React with 👍 / 👎.
|
@claude /changeset |
|
Claude finished @felixfeng33's task —— View job ✅ Changeset created successfully! Todo List
SummaryCreated changeset for decoupling React utilities from static exports. The changeset:
The changeset has been committed to the branch. |
|
Claude finished @felixfeng33's task —— View job Tasks
SummaryI've successfully created a changeset for your PR that moves Changeset Details:
The changeset has been committed to your branch: RecommendationThe refactoring looks good. While the code reviewer mentioned that these functions are no longer exported from the static barrel, since |
Co-authored-by: Felix Feng <[email protected]>
Co-authored-by: Felix Feng <[email protected]>
Checklist
yarn typecheckyarn lint:fixyarn testyarn brlyarn changeset