@makeswift/runtime 0.11.16 → 0.11.18
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 +4 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4 -2
- package/dist/index.es.js.map +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/next/api-handler/handlers/proxy-preview-mode.d.ts.map +1 -1
- package/dist/types/src/slate/BlockPlugin/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/react-page.cjs.js
CHANGED
|
@@ -3212,6 +3212,15 @@ function withBlock(editor) {
|
|
|
3212
3212
|
});
|
|
3213
3213
|
return;
|
|
3214
3214
|
}
|
|
3215
|
+
if (normalizationPath.length === 1 && ElementUtils.isRootBlock(normalizationNode) && !ElementUtils.isList(normalizationNode)) {
|
|
3216
|
+
const children = Array.from(slate.Node.children(editor, normalizationPath));
|
|
3217
|
+
if (children.findIndex(([child]) => ElementUtils.isRootBlock(child)) !== -1) {
|
|
3218
|
+
slate.Transforms.unwrapNodes(editor, {
|
|
3219
|
+
at: normalizationPath
|
|
3220
|
+
});
|
|
3221
|
+
return;
|
|
3222
|
+
}
|
|
3223
|
+
}
|
|
3215
3224
|
if (ElementUtils.isListItem(normalizationNode)) {
|
|
3216
3225
|
const pathToListItemText = [...normalizationPath, LIST_ITEM_CHILD_POSITION];
|
|
3217
3226
|
if (slate.Node.has(editor, pathToListItemText)) {
|