[RTE] PlateElement/PlateLeaf rendering and todo/iframe migration alignment#3069
Open
cpoftea wants to merge 2 commits intoepam:developfrom
Open
[RTE] PlateElement/PlateLeaf rendering and todo/iframe migration alignment#3069cpoftea wants to merge 2 commits intoepam:developfrom
cpoftea wants to merge 2 commits intoepam:developfrom
Conversation
|
Generated by: track-bundle-size
new sizes (raw)To set the sizes as a new baseline, you can copy/paste next content to the {
"version": "6.4.3",
"timestamp": "2026-03-23",
"sizes": {
"templateApp": {
"css": 253670,
"js": 445182
},
"@epam/app": {
"css": 719497,
"js": 4952877
},
"@epam/electric": {
"css": 2275,
"js": 2883
},
"@epam/promo": {
"css": 47756,
"js": 9145
},
"@epam/uui-extra": {
"css": 0,
"js": 213
},
"@epam/loveship": {
"css": 55348,
"js": 43224
},
"@epam/uui-components": {
"css": 24608,
"js": 240575
},
"@epam/uui-core": {
"css": 0,
"js": 336983
},
"@epam/uui-db": {
"css": 0,
"js": 42718
},
"@epam/uui-docs": {
"css": 2152,
"js": 197259
},
"@epam/uui-editor": {
"css": 12952,
"js": 165618
},
"@epam/uui-timeline": {
"css": 2203,
"js": 75109
},
"@epam/uui": {
"css": 214809,
"js": 343912
}
}
}Generated by: generate-components-api Total amount of exported types/props without JSDoc comments
|
* Switched headings and default paragraph to `PlateElement` with `as`, and bold/code/italic/superscript/underline to `PlateLeaf` with `as`
* Refactored `AttachmentBlock`, `IframeBlock`, and `PlaceholderBlock` to `PlateElement` with `PlateElementProps` / `useElement` instead of manual `attributes` / `element` typing
* Updated `quotePlugin` quote renderer, `linkPlugin` anchor override, `listPlugin` `LI` component, `paragraphPlugin` default paragraph override, `NotePluginBlock`, and `Separator` to use `PlateElement` (merged `className` / styles where needed; `Separator` no longer uses `forwardRef` and applies `contentEditable={ false }` on the element)
* Replaced nested span wrappers in `baseMarksPlugin` (bold/italic/underline) with `PlateLeaf`
* Replaced inline code span in `inlineCodePlugin` with `PlateLeaf` and `PlateLeafProps`
* Wrapped `ToDoItem` in `PlateElement` with `asChild` around `FlexRow` so Slate attributes compose with the layout row
* Added `types.ts` with `TPlaceholderElement` and used `satisfies` when inserting placeholder nodes
* Todo list plugin: * Moved `checked` from `data` to the element root for todo items; updated `ToDoItem` to read and toggle `checked` there * Added `DeprecatedTTodoListItemElement`, `isLegacyTodoListItemElement`, and `migrateCheckedPropertyIfNeeded` to lift legacy `data.checked` onto the node * Added `withTodoList` and `normalizeTodoListElement` and registered them on the todo list plugin * Iframe plugin: * Updated `normalizeIframeElement` to set `url` from `url` or legacy `data.src` and to persist remaining `data` without `src` * Stopped falling back to `element.src` in `IframeBlock`; rendering uses `element.url` only * Extracted iframe `normalizeNode` wiring into `withIframe` and used it from the iframe plugin
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Rendering (
PlateElement/PlateLeaf)PlateElement; bold/code/italic/superscript/underline usePlateLeafwithasPlateElement/useElement;Separatorsimplified (no forwardRef, contentEditable false on element)PlateLeaf; inline code usesPlateLeaf+PlateLeafPropsToDoItemwrapped inPlateElementwithasChildaroundFlexRowfor correct Slate attributesTPlaceholderElement) for typed placeholder insertsTodo list migration
checkedmoved fromdatato element root;ToDoItemreads/toggles thereDeprecatedTTodoListItemElement,isLegacyTodoListItemElement, migrateCheckedPropertyIfNeededwithTodoList+normalizeTodoListElementregistered on the pluginIframe migration
normalizeIframeElementsetsurlfromurlor legacydata.src; keeps otherdatawithoutsrcIframeBlockuseselement.urlonly (no element.src fallback)withIframeextracts normalize wiring from the iframe pluginDescription:
Aligns the Plate-based editor with Plate’s element/leaf primitives and tightens legacy Slate data migration for todo items and iframes.
Issue link: #3062