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

Version Packages #2630

Merged
merged 1 commit into from
Sep 18, 2023
Merged

Version Packages #2630

merged 1 commit into from
Sep 18, 2023

Conversation

zbeyens
Copy link
Member

@zbeyens zbeyens commented Sep 17, 2023

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/plate-core@24.0.0

Major Changes

  • #2629 by @zbeyens

    • [Breaking] Rename Plate to PlateContent.
    • [Breaking] Rename PlateProvider to Plate.
    • [Breaking] Rendering PlateContent is now required in Plate. This allows you to choose where to render the editor next to other components like toolbar. Example:
    // Before
    <Plate />
    // or
    <PlateProvider>
      <Plate />
    </PlateProvider>
    
    // After
    <Plate>
      <PlateContent />
    </Plate>
    • [Breaking] Remove provider props such as plugins from PlateContent. These props should be passed to Plate.
    • [Breaking] Remove editableProps prop from PlateContent. Move these asPlateContent props.
    • [Breaking] Remove children prop from PlateContent. Render instead these components after PlateContent.
    • [Breaking] Remove firstChildren prop from PlateContent. Render instead these components before PlateContent.
    • [Breaking] Remove editableRef prop from PlateContent. Use ref instead.
    • [Breaking] Remove withPlateProvider.
    • [Breaking] Rename usePlateEditorRef to useEditorRef.
    • [Breaking] Rename usePlateEditorState to useEditorState.
    • [Breaking] Rename usePlateReadOnly to useEditorReadOnly. This hook can be used below Plate while useReadOnly can only be used in node components.
    • [Breaking] Rename usePlateSelection to useEditorSelection.
    • [Breaking] Rename store attributes keyDecorate, keyEditor and keySelection to versionDecorate, versionEditor and versionSelection. These are now numbers incremented on each change.
    • [Breaking] Rename store attribute isRendered to isMounted.
    • Add maxLength prop to Plate. Specifies the maximum number of characters allowed in the editor. This is a new core plugin (createLengthPlugin).
    • Add useEditorVersion hook. Version incremented on each editor change.
    • Add useSelectionVersion hook. Version incremented on each selection change.
    • Fix editor.reset should now reset the editor without mutating the ref so it does not remount PlateContent. Default is using resetEditor. If you need to replace the editor ref, use useReplaceEditor.
    • [Type] Remove generic from TEditableProps, RenderElementFn, RenderAfterEditable

@udecode/slate-react@24.0.0

Minor Changes

  • #2629 by @zbeyens
    • Add focusEditorEdge transform. Focus the editor at the start or end of the document.

@udecode/slate-utils@24.0.0

Minor Changes

  • #2629 by @zbeyens
    • Add isEditorEmpty query. Whether the editor is empty. An editor is empty if it has only one empty element.

@udecode/plate-alignment@24.0.0

@udecode/plate-autoformat@24.0.0

@udecode/plate-basic-elements@24.0.0

@udecode/plate-basic-marks@24.0.0

@udecode/plate-block-quote@24.0.0

@udecode/plate-break@24.0.0

@udecode/plate-caption@24.0.0

@udecode/plate-cloud@24.0.0

@udecode/plate-code-block@24.0.0

@udecode/plate-combobox@24.0.0

@udecode/plate-comments@24.0.0

@udecode/plate-common@24.0.0

@udecode/plate-cursor@24.0.0

@udecode/plate-dnd@24.0.0

@udecode/plate-emoji@24.0.0

@udecode/plate-excalidraw@24.0.0

@udecode/plate-find-replace@24.0.0

@udecode/plate-floating@24.0.0

@udecode/plate-font@24.0.0

@udecode/plate-heading@24.0.0

@udecode/plate-highlight@24.0.0

@udecode/plate-horizontal-rule@24.0.0

@udecode/plate-indent@24.0.0

@udecode/plate-indent-list@24.0.0

@udecode/plate-juice@24.0.0

@udecode/plate-kbd@24.0.0

@udecode/plate-line-height@24.0.0

@udecode/plate-link@24.0.0

@udecode/plate-list@24.0.0

@udecode/plate-media@24.0.0

@udecode/plate-mention@24.0.0

@udecode/plate-node-id@24.0.0

@udecode/plate-normalizers@24.0.0

@udecode/plate-paragraph@24.0.0

@udecode/plate@24.0.0

@udecode/plate-utils@24.0.0

@udecode/plate-reset-node@24.0.0

@udecode/plate-resizable@24.0.0

@udecode/plate-select@24.0.0

@udecode/plate-selection@24.0.0

@udecode/plate-serializer-csv@24.0.0

@udecode/plate-serializer-docx@24.0.0

@udecode/plate-serializer-html@24.0.0

@udecode/plate-serializer-md@24.0.0

@udecode/plate-suggestion@24.0.0

@udecode/plate-tabbable@24.0.0

@udecode/plate-table@24.0.0

@udecode/plate-trailing-block@24.0.0

@udecode/plate-yjs@24.0.0

@vercel
Copy link

vercel bot commented Sep 17, 2023

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 Sep 17, 2023 10:09pm

@reviewpad reviewpad bot added the large Pull request is large label Sep 17, 2023
@zbeyens zbeyens merged commit 05c24d9 into main Sep 18, 2023
7 checks passed
@zbeyens zbeyens deleted the changeset-release/main branch September 18, 2023 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
large Pull request is large
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant