@makeswift/runtime 0.11.16 → 0.11.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/react-page.cjs.js +9 -0
- package/dist/react-page.cjs.js.map +1 -1
- package/dist/react-page.es.js +9 -0
- package/dist/react-page.es.js.map +1 -1
- package/dist/types/src/controls/rich-text-v2/__tests__/fixtures/nested-paragraph-edge-case-3728.d.ts +10 -0
- package/dist/types/src/controls/rich-text-v2/__tests__/fixtures/nested-paragraph-edge-case-3728.d.ts.map +1 -0
- package/dist/types/src/slate/BlockPlugin/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/react-page.es.js
CHANGED
|
@@ -3204,6 +3204,15 @@ function withBlock(editor) {
|
|
|
3204
3204
|
});
|
|
3205
3205
|
return;
|
|
3206
3206
|
}
|
|
3207
|
+
if (normalizationPath.length === 1 && ElementUtils.isRootBlock(normalizationNode) && !ElementUtils.isList(normalizationNode)) {
|
|
3208
|
+
const children = Array.from(Node.children(editor, normalizationPath));
|
|
3209
|
+
if (children.findIndex(([child]) => ElementUtils.isRootBlock(child)) !== -1) {
|
|
3210
|
+
Transforms.unwrapNodes(editor, {
|
|
3211
|
+
at: normalizationPath
|
|
3212
|
+
});
|
|
3213
|
+
return;
|
|
3214
|
+
}
|
|
3215
|
+
}
|
|
3207
3216
|
if (ElementUtils.isListItem(normalizationNode)) {
|
|
3208
3217
|
const pathToListItemText = [...normalizationPath, LIST_ITEM_CHILD_POSITION];
|
|
3209
3218
|
if (Node.has(editor, pathToListItemText)) {
|