@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/client",
3
- "version": "0.47.35",
3
+ "version": "0.47.37",
4
4
  "description": "Supernova Data Models",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -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
- const parsedItems = parseBlockItems(prosemirrorNode, definition);
688
- if (!parsedItems) return null;
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,