@supernova-studio/client 0.47.35 → 0.47.37
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.d.mts +20 -20
- package/dist/index.d.ts +20 -20
- package/dist/index.js +368 -360
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1395 -1387
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/yjs/docs-editor/prosemirror-to-blocks.ts +9 -3
package/package.json
CHANGED
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
PageBlockItemComponentValue,
|
|
15
15
|
PageBlockItemDividerValue,
|
|
16
16
|
PageBlockItemEmbedValue,
|
|
17
|
-
PageBlockItemFigmaNodeValue,
|
|
18
17
|
PageBlockItemFigmaComponentValue,
|
|
18
|
+
PageBlockItemFigmaNodeValue,
|
|
19
19
|
PageBlockItemImageValue,
|
|
20
20
|
PageBlockItemMarkdownValue,
|
|
21
21
|
PageBlockItemMultiRichTextValue,
|
|
@@ -684,8 +684,14 @@ function parseAsCustomBlock(
|
|
|
684
684
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
685
685
|
|
|
686
686
|
const appearance = parseAppearance(prosemirrorNode);
|
|
687
|
-
|
|
688
|
-
|
|
687
|
+
|
|
688
|
+
const parsedItems = parseBlockItems(prosemirrorNode, definition) ?? [];
|
|
689
|
+
if (!parsedItems.length && definition.behavior.items?.numberOfItems === 1) {
|
|
690
|
+
parsedItems.push({
|
|
691
|
+
id: id,
|
|
692
|
+
props: {},
|
|
693
|
+
});
|
|
694
|
+
}
|
|
689
695
|
|
|
690
696
|
return {
|
|
691
697
|
id: id,
|