@supernova-studio/client 0.10.1 → 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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -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 +4 -2
package/dist/index.d.mts
CHANGED
|
@@ -116,7 +116,7 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
116
116
|
caption?: string | null | undefined;
|
|
117
117
|
headingType?: number | null | undefined;
|
|
118
118
|
codeLanguage?: "Markdown" | "Plain" | "Angular" | "Bash" | "C" | "Cpp" | "Csharp" | "CSS" | "Dart" | "Handlebars" | "HTML" | "Java" | "Javascript" | "JSON" | "ReactJSX" | "ReactTSX" | "Kotlin" | "Lua" | "ObjectiveC" | "PHP" | "Python" | "Ruby" | "Rust" | "Sass" | "SCSS" | "Svetle" | "Swift" | "Twig" | "Typescript" | "Vue" | "XML" | "YAML" | null | undefined;
|
|
119
|
-
calloutType?: "Info" | "Success" | "Warning" | "Error" | null | undefined;
|
|
119
|
+
calloutType?: "Info" | "Primary" | "Success" | "Warning" | "Error" | null | undefined;
|
|
120
120
|
urlInput?: string | null | undefined;
|
|
121
121
|
url?: string | null | undefined;
|
|
122
122
|
urlPreview?: {
|
|
@@ -686,7 +686,7 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
686
686
|
caption?: string | null | undefined;
|
|
687
687
|
headingType?: number | null | undefined;
|
|
688
688
|
codeLanguage?: "Markdown" | "Plain" | "Angular" | "Bash" | "C" | "Cpp" | "Csharp" | "CSS" | "Dart" | "Handlebars" | "HTML" | "Java" | "Javascript" | "JSON" | "ReactJSX" | "ReactTSX" | "Kotlin" | "Lua" | "ObjectiveC" | "PHP" | "Python" | "Ruby" | "Rust" | "Sass" | "SCSS" | "Svetle" | "Swift" | "Twig" | "Typescript" | "Vue" | "XML" | "YAML" | null | undefined;
|
|
689
|
-
calloutType?: "Info" | "Success" | "Warning" | "Error" | null | undefined;
|
|
689
|
+
calloutType?: "Info" | "Primary" | "Success" | "Warning" | "Error" | null | undefined;
|
|
690
690
|
urlInput?: string | null | undefined;
|
|
691
691
|
url?: string | null | undefined;
|
|
692
692
|
urlPreview?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -116,7 +116,7 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
116
116
|
caption?: string | null | undefined;
|
|
117
117
|
headingType?: number | null | undefined;
|
|
118
118
|
codeLanguage?: "Markdown" | "Plain" | "Angular" | "Bash" | "C" | "Cpp" | "Csharp" | "CSS" | "Dart" | "Handlebars" | "HTML" | "Java" | "Javascript" | "JSON" | "ReactJSX" | "ReactTSX" | "Kotlin" | "Lua" | "ObjectiveC" | "PHP" | "Python" | "Ruby" | "Rust" | "Sass" | "SCSS" | "Svetle" | "Swift" | "Twig" | "Typescript" | "Vue" | "XML" | "YAML" | null | undefined;
|
|
119
|
-
calloutType?: "Info" | "Success" | "Warning" | "Error" | null | undefined;
|
|
119
|
+
calloutType?: "Info" | "Primary" | "Success" | "Warning" | "Error" | null | undefined;
|
|
120
120
|
urlInput?: string | null | undefined;
|
|
121
121
|
url?: string | null | undefined;
|
|
122
122
|
urlPreview?: {
|
|
@@ -686,7 +686,7 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
686
686
|
caption?: string | null | undefined;
|
|
687
687
|
headingType?: number | null | undefined;
|
|
688
688
|
codeLanguage?: "Markdown" | "Plain" | "Angular" | "Bash" | "C" | "Cpp" | "Csharp" | "CSS" | "Dart" | "Handlebars" | "HTML" | "Java" | "Javascript" | "JSON" | "ReactJSX" | "ReactTSX" | "Kotlin" | "Lua" | "ObjectiveC" | "PHP" | "Python" | "Ruby" | "Rust" | "Sass" | "SCSS" | "Svetle" | "Swift" | "Twig" | "Typescript" | "Vue" | "XML" | "YAML" | null | undefined;
|
|
689
|
-
calloutType?: "Info" | "Success" | "Warning" | "Error" | null | undefined;
|
|
689
|
+
calloutType?: "Info" | "Primary" | "Success" | "Warning" | "Error" | null | undefined;
|
|
690
690
|
urlInput?: string | null | undefined;
|
|
691
691
|
url?: string | null | undefined;
|
|
692
692
|
urlPreview?: {
|
package/dist/index.js
CHANGED
|
@@ -640,7 +640,7 @@ function zodUpdateInputOmit() {
|
|
|
640
640
|
function nullishToOptional(type) {
|
|
641
641
|
return type.nullish().transform((t) => _nullishCoalesce(t, () => ( void 0)));
|
|
642
642
|
}
|
|
643
|
-
var PageBlockCalloutType = _zod.z.enum(["Info", "Success", "Warning", "Error"]);
|
|
643
|
+
var PageBlockCalloutType = _zod.z.enum(["Info", "Primary", "Success", "Warning", "Error"]);
|
|
644
644
|
var PageBlockTypeV1 = _zod.z.enum([
|
|
645
645
|
"Text",
|
|
646
646
|
"Heading",
|
|
@@ -4540,13 +4540,15 @@ function richTextHeadingLevel(property) {
|
|
|
4540
4540
|
function serializeCalloutType(calloutType) {
|
|
4541
4541
|
switch (calloutType) {
|
|
4542
4542
|
case "Error":
|
|
4543
|
-
return "
|
|
4543
|
+
return "critical";
|
|
4544
4544
|
case "Info":
|
|
4545
4545
|
return "neutral";
|
|
4546
4546
|
case "Success":
|
|
4547
|
-
return "
|
|
4547
|
+
return "positive";
|
|
4548
4548
|
case "Warning":
|
|
4549
4549
|
return "warning";
|
|
4550
|
+
case "Primary":
|
|
4551
|
+
return "primary";
|
|
4550
4552
|
}
|
|
4551
4553
|
}
|
|
4552
4554
|
function serializeRichTextNodePart(richText) {
|
|
@@ -7210,14 +7212,16 @@ function parseCalloutType(prosemirrorCalloutType) {
|
|
|
7210
7212
|
if (!prosemirrorCalloutType)
|
|
7211
7213
|
return void 0;
|
|
7212
7214
|
switch (prosemirrorCalloutType) {
|
|
7213
|
-
case "
|
|
7215
|
+
case "critical":
|
|
7214
7216
|
return "Error";
|
|
7215
7217
|
case "neutral":
|
|
7216
7218
|
return "Info";
|
|
7217
|
-
case "
|
|
7219
|
+
case "positive":
|
|
7218
7220
|
return "Success";
|
|
7219
7221
|
case "warning":
|
|
7220
7222
|
return "Warning";
|
|
7223
|
+
case "primary":
|
|
7224
|
+
return "Primary";
|
|
7221
7225
|
}
|
|
7222
7226
|
}
|
|
7223
7227
|
function parseAsMultiRichText(prosemirrorNode, definition, property) {
|