@supernova-studio/client 0.47.23 → 0.47.28
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 +220 -175
- package/dist/index.d.ts +220 -175
- package/dist/index.js +41 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +41 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
- package/src/api/payloads/export/pipeline.ts +1 -1
- package/src/yjs/docs-editor/prosemirror-to-blocks.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supernova-studio/client",
|
|
3
|
-
"version": "0.47.
|
|
3
|
+
"version": "0.47.28",
|
|
4
4
|
"description": "Supernova Data Models",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"author": "",
|
|
32
32
|
"license": "ISC",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"prosemirror-model": "
|
|
35
|
-
"typescript": "
|
|
36
|
-
"y-prosemirror": "
|
|
37
|
-
"yjs": "
|
|
38
|
-
"zod": "
|
|
34
|
+
"prosemirror-model": "1.19.4",
|
|
35
|
+
"typescript": "5.0.4",
|
|
36
|
+
"y-prosemirror": "1.2.2",
|
|
37
|
+
"yjs": "13.6.10",
|
|
38
|
+
"zod": "3.23.6"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"tsup": "
|
|
42
|
-
"typescript": "
|
|
43
|
-
"prosemirror-model": "
|
|
41
|
+
"tsup": "8.0.2",
|
|
42
|
+
"typescript": "5.0.4",
|
|
43
|
+
"prosemirror-model": "1.19.4"
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -20,7 +20,7 @@ export const DTOPipelineCreateBody = z.object({
|
|
|
20
20
|
brandPersistentId: z.string().optional(),
|
|
21
21
|
themePersistentId: z.string().optional(),
|
|
22
22
|
|
|
23
|
-
destination: PipelineDestinationType,
|
|
23
|
+
destination: PipelineDestinationType.optional(),
|
|
24
24
|
gitQuery: GitObjectsQuery,
|
|
25
25
|
destinations: z.object({
|
|
26
26
|
s3: ExporterDestinationS3.nullish(),
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
PageBlockItemDividerValue,
|
|
16
16
|
PageBlockItemEmbedValue,
|
|
17
17
|
PageBlockItemFigmaNodeValue,
|
|
18
|
+
PageBlockItemFigmaComponentValue,
|
|
18
19
|
PageBlockItemImageValue,
|
|
19
20
|
PageBlockItemMarkdownValue,
|
|
20
21
|
PageBlockItemMultiRichTextValue,
|
|
@@ -40,7 +41,7 @@ import {
|
|
|
40
41
|
PageBlockTextSpanAttribute,
|
|
41
42
|
PageSectionColumnV2,
|
|
42
43
|
PageSectionItemV2,
|
|
43
|
-
nullishToOptional
|
|
44
|
+
nullishToOptional
|
|
44
45
|
} from "@supernova-studio/model";
|
|
45
46
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
46
47
|
import * as Y from "yjs";
|
|
@@ -827,6 +828,8 @@ function valueSchemaForPropertyType(type: PageBlockDefinitionPropertyType) {
|
|
|
827
828
|
return PageBlockItemStorybookValue;
|
|
828
829
|
case "Color":
|
|
829
830
|
return PageBlockItemColorValue;
|
|
831
|
+
case "FigmaComponent":
|
|
832
|
+
return PageBlockItemFigmaComponentValue;
|
|
830
833
|
}
|
|
831
834
|
}
|
|
832
835
|
|