@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.
@@ -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)) {