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

feat: add normalizeInitialValue prop to Plate #1063

Merged
merged 8 commits into from
Sep 28, 2021

Conversation

ghingis
Copy link
Collaborator

@ghingis ghingis commented Sep 27, 2021

This is a feature, that forces Slate to normalize every node after the first render.
This can be useful, if you have a normalization that calculates / updates some property.

For example, Google Docs like list numbering:

1. Text
  1.1. First child
    1.1.1 lorem
  1.2 Second child

In this case the lic render have to know its number path inside the ol.
And at render time we have no knowledge the elements around the lic, so we have to store the order on the lic type.

@changeset-bot
Copy link

changeset-bot bot commented Sep 27, 2021

🦋 Changeset detected

Latest commit: 409d34e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 50 packages
Name Type
@udecode/plate-core Minor
@udecode/plate-autoformat Minor
@udecode/plate-break Minor
@udecode/plate-common Minor
@udecode/plate-dnd Minor
@udecode/plate-alignment-ui Minor
@udecode/plate-alignment Minor
@udecode/plate-basic-elements Minor
@udecode/plate-block-quote-ui Minor
@udecode/plate-block-quote Minor
@udecode/plate-code-block-ui Minor
@udecode/plate-code-block Minor
@udecode/plate-excalidraw Minor
@udecode/plate-heading Minor
@udecode/plate-horizontal-rule-ui Minor
@udecode/plate-horizontal-rule Minor
@udecode/plate-image-ui Minor
@udecode/plate-image Minor
@udecode/plate-link-ui Minor
@udecode/plate-link Minor
@udecode/plate-list-ui Minor
@udecode/plate-list Minor
@udecode/plate-media-embed-ui Minor
@udecode/plate-media-embed Minor
@udecode/plate-mention-ui Minor
@udecode/plate-mention Minor
@udecode/plate-paragraph Minor
@udecode/plate-table-ui Minor
@udecode/plate-table Minor
@udecode/plate-find-replace-ui Minor
@udecode/plate-find-replace Minor
@udecode/plate-basic-marks Minor
@udecode/plate-font-ui Minor
@udecode/plate-font Minor
@udecode/plate-highlight Minor
@udecode/plate-kbd Minor
@udecode/plate-node-id Minor
@udecode/plate-normalizers Minor
@udecode/plate-placeholder Minor
@udecode/plate Minor
@udecode/plate-reset-node Minor
@udecode/plate-select Minor
@udecode/plate-ast-serializer Minor
@udecode/plate-csv-serializer Minor
@udecode/plate-html-serializer Minor
@udecode/plate-md-serializer Minor
@udecode/plate-serializer Minor
@udecode/plate-trailing-block Minor
@udecode/plate-styled-components Minor
@udecode/plate-toolbar Minor

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

@vercel
Copy link

vercel bot commented Sep 27, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/udecode/plate/8VDH2cGGKcWnAi28jBTTFqP8DQAo
✅ Preview: https://plate-git-fork-ghingis-feature-normalizeinitialvalue-udecode.vercel.app

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.

2 participants