Skip to content
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

[Release] Version packages #3866

Merged
merged 1 commit into from
Dec 19, 2024
Merged

[Release] Version packages #3866

merged 1 commit into from
Dec 19, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Dec 17, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@udecode/[email protected]

Major Changes

  • #3861 by @zbeyens

    • Removed useDndBlock, useDragBlock, and useDropBlock hooks in favor of useDndNode, useDragNode, and useDropNode.
    • Removed DndProvider and useDraggableStore. Drop line state is now managed by DndPlugin as a single state object dropTarget containing both id and line.
    • useDropNode: removed onChangeDropLine and dropLine options

    Migration steps:

    • Remove DndProvider from your draggable component (e.g. draggable.tsx)
    • Replace useDraggableStore with useEditorPlugin(DndPlugin).useOption

Minor Changes

  • #3861 by @zbeyens
    • useDndNode now supports horizontal orientation. New option is orientation?: 'horizontal' | 'vertical'. Default is vertical.
    • useDraggableState, useDndNode: add canDropNode callback option to query if a dragged node can be dropped onto a hovered node.
    • useDropLine:
      • Added id option to show dropline only for hovered element. Default is useElement().id.
      • Added orientation option to filter droplines by orientation ('horizontal' | 'vertical'). Default is vertical.
      • Returns empty dropline if orientation doesn't match (e.g., horizontal dropline in vertical orientation)
      • Returns empty dropline if elementId doesn't match current hovered element

Patch Changes

@udecode/[email protected]

Major Changes

  • #3830 by @felixfeng33
    • Move render.belowNodes from IndentListPlugin to BaseIndentListPlugin. Props type for listStyleTypes.liComponent and listStyleTypes.markerComponent options is now SlateRenderElementProps instead of PlateRenderElementProps
    • Move someIndentList, someIndentTodo from @udecode/plate-indent-list/react to @udecode/plate-indent-list

Patch Changes

@udecode/[email protected]

Major Changes

  • #3830 by @felixfeng33 – Rename findNodePath to findPath since the addition of findNodePath in the headless lib.

    We recommend using findPath mostly when subscribing to its value (e.g. in a React component) as it has O(path.length) complexity, compared to O(n) for the traversal-based findNodePath. This optimization is particularly important in:

    • Render functions of Plate components where using findNodePath would increase the initial render time by O(n²)
    • Key press handlers where using findNodePath would increase the handling time by O(n)

    where n is the number of nodes in the editor.

Patch Changes

@udecode/[email protected]

Major Changes

  • #3830 by @felixfeng33 – Move from @udecode/plate-table/react to @udecode/plate-table:

    • deleteColumn
    • deleteColumnWhenExpanded
    • deleteRow
    • deleteRowWhenExpanded
    • getTableColumn
    • getTableGridAbove
    • getTableGridByRange
    • getTableRow
    • insertTable
    • mergeTableCells
    • moveSelectionFromCell
    • overrideSelectionFromCell
    • unmergeTableCells
    • withDeleteTable
    • withGetFragmentlable
    • withInsertFragmentTable
    • withInsertTextTable
    • withMarkTable
    • withSelectionTable
    • withSetFragmentDataTable
    • withTable

Patch Changes

@udecode/[email protected]

Minor Changes

  • #3868 by @zbeyens
    • api.aiChat.replaceSelection() – new option format: 'none' | 'single' | 'all'
      • 'single' (default):
        • Single block: Applies block's formatting to inserted content
        • Multiple blocks: Preserves source formatting
      • 'all': Forces first block's formatting on all inserted blocks
      • 'none': Preserves source formatting completely

@udecode/[email protected]

Minor Changes

  • #3830 by @felixfeng33 – ## @udecode/[email protected]

    Minor Changes

    • #3744 by @zbeyens
      • Add PlateStatic, SlateElement, SlateLeaf components for static rendering and server-side HTML serialization
      • Add serializeHtml function to serialize editor content to HTML. Deprecating @udecode/plate-html in favor of core serialization.
      • Move from PlatePlugin (/react) to BasePlugin (/): node.component, render.aboveEditable, render.aboveSlate, render.node
      • Add to SlatePlugin: node.props, render.aboveNodes, render.belowNodes, render.afterEditable, render.beforeEditable, render.node

@udecode/[email protected]

Minor Changes

  • #3830 by @felixfeng33 – Add findNodePath - a traversal-based node path finder with O(n) complexity. This is the headless alternative to findPath from @udecode/slate-react, recommended for:

    • Non-React contexts
    • Plugin logic that doesn't require React dependencies
    • Non-performance-critical paths where O(n) traversal is acceptable

Patch Changes

@udecode/[email protected]

Patch Changes

@udecode/[email protected]

Patch Changes

@udecode/[email protected]

Patch Changes

@udecode/[email protected]

Patch Changes

@udecode/[email protected]

Patch Changes

  • #3830 by @felixfeng33 – Move node.props plugin attributes from /react to /

  • #3830 by @felixfeng33

    • Fix floating link url input being focused when focusing the placeholder input

@udecode/[email protected]

Patch Changes

@udecode/[email protected]

Patch Changes

@udecode/[email protected]

Patch Changes

@udecode/[email protected]

Patch Changes

@udecode/[email protected]

Patch Changes

@udecode/[email protected]

Patch Changes

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

@udecode/[email protected]

Copy link

vercel bot commented Dec 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
plate ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 2:39am

Copy link

codesandbox bot commented Dec 17, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@github-actions github-actions bot force-pushed the changeset-release/main branch from 9720df2 to e903a3a Compare December 19, 2024 02:22
@felixfeng33 felixfeng33 merged commit bb183f8 into main Dec 19, 2024
4 checks passed
@felixfeng33 felixfeng33 deleted the changeset-release/main branch December 19, 2024 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant