@supernova-studio/client 0.9.3 → 0.10.1
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 +161 -260
- package/dist/index.d.ts +161 -260
- package/dist/index.js +244 -79
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +232 -67
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-system.ts +11 -0
- package/src/api/dto/index.ts +1 -0
- package/src/docs-editor/blocks-to-prosemirror.ts +8 -4
- package/src/docs-editor/mock.ts +2 -1374
- package/src/docs-editor/prosemirror-to-blocks.ts +3 -0
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
PageBlockAppearanceV2,
|
|
41
41
|
ColorValue,
|
|
42
42
|
nullishToOptional,
|
|
43
|
+
PageBlockItemFigmaNodeValue,
|
|
43
44
|
} from "@supernova-studio/model";
|
|
44
45
|
import { PageBlockEditorModel } from "./model/block";
|
|
45
46
|
import { DocumentationPageEditorModel } from "./model/page";
|
|
@@ -647,6 +648,8 @@ function valueSchemaForPropertyType(type: PageBlockDefinitionPropertyType) {
|
|
|
647
648
|
return PageBlockItemAssetValue;
|
|
648
649
|
case "AssetProperty":
|
|
649
650
|
return PageBlockItemAssetPropertyValue;
|
|
651
|
+
case "FigmaNode":
|
|
652
|
+
return PageBlockItemFigmaNodeValue;
|
|
650
653
|
case "EmbedURL":
|
|
651
654
|
return PageBlockItemEmbedValue;
|
|
652
655
|
case "URL":
|