@supernova-studio/client 0.10.0 → 0.10.2
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 +18 -18
- package/dist/index.d.ts +18 -18
- package/dist/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/docs-editor/blocks-to-prosemirror.ts +4 -2
- package/src/docs-editor/prosemirror-to-blocks.ts +7 -2
package/dist/index.mjs
CHANGED
|
@@ -640,7 +640,7 @@ function zodUpdateInputOmit() {
|
|
|
640
640
|
function nullishToOptional(type) {
|
|
641
641
|
return type.nullish().transform((t) => t ?? void 0);
|
|
642
642
|
}
|
|
643
|
-
var PageBlockCalloutType = z32.enum(["Info", "Success", "Warning", "Error"]);
|
|
643
|
+
var PageBlockCalloutType = z32.enum(["Info", "Primary", "Success", "Warning", "Error"]);
|
|
644
644
|
var PageBlockTypeV1 = z32.enum([
|
|
645
645
|
"Text",
|
|
646
646
|
"Heading",
|
|
@@ -1876,6 +1876,7 @@ var PageBlockDefinitionPropertyType = z85.enum([
|
|
|
1876
1876
|
"ComponentProperty",
|
|
1877
1877
|
"Asset",
|
|
1878
1878
|
"AssetProperty",
|
|
1879
|
+
"FigmaNode",
|
|
1879
1880
|
"EmbedURL",
|
|
1880
1881
|
"URL",
|
|
1881
1882
|
"Markdown",
|
|
@@ -4539,13 +4540,15 @@ function richTextHeadingLevel(property) {
|
|
|
4539
4540
|
function serializeCalloutType(calloutType) {
|
|
4540
4541
|
switch (calloutType) {
|
|
4541
4542
|
case "Error":
|
|
4542
|
-
return "
|
|
4543
|
+
return "critical";
|
|
4543
4544
|
case "Info":
|
|
4544
4545
|
return "neutral";
|
|
4545
4546
|
case "Success":
|
|
4546
|
-
return "
|
|
4547
|
+
return "positive";
|
|
4547
4548
|
case "Warning":
|
|
4548
4549
|
return "warning";
|
|
4550
|
+
case "Primary":
|
|
4551
|
+
return "primary";
|
|
4549
4552
|
}
|
|
4550
4553
|
}
|
|
4551
4554
|
function serializeRichTextNodePart(richText) {
|
|
@@ -7209,14 +7212,16 @@ function parseCalloutType(prosemirrorCalloutType) {
|
|
|
7209
7212
|
if (!prosemirrorCalloutType)
|
|
7210
7213
|
return void 0;
|
|
7211
7214
|
switch (prosemirrorCalloutType) {
|
|
7212
|
-
case "
|
|
7215
|
+
case "critical":
|
|
7213
7216
|
return "Error";
|
|
7214
7217
|
case "neutral":
|
|
7215
7218
|
return "Info";
|
|
7216
|
-
case "
|
|
7219
|
+
case "positive":
|
|
7217
7220
|
return "Success";
|
|
7218
7221
|
case "warning":
|
|
7219
7222
|
return "Warning";
|
|
7223
|
+
case "primary":
|
|
7224
|
+
return "Primary";
|
|
7220
7225
|
}
|
|
7221
7226
|
}
|
|
7222
7227
|
function parseAsMultiRichText(prosemirrorNode, definition, property) {
|
|
@@ -7583,6 +7588,8 @@ function valueSchemaForPropertyType(type) {
|
|
|
7583
7588
|
return PageBlockItemAssetValue;
|
|
7584
7589
|
case "AssetProperty":
|
|
7585
7590
|
return PageBlockItemAssetPropertyValue;
|
|
7591
|
+
case "FigmaNode":
|
|
7592
|
+
return PageBlockItemFigmaNodeValue;
|
|
7586
7593
|
case "EmbedURL":
|
|
7587
7594
|
return PageBlockItemEmbedValue;
|
|
7588
7595
|
case "URL":
|