@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/package.json
CHANGED
|
@@ -466,13 +466,15 @@ function richTextHeadingLevel(property: PageBlockDefinitionProperty): number | u
|
|
|
466
466
|
function serializeCalloutType(calloutType: PageBlockCalloutType) {
|
|
467
467
|
switch (calloutType) {
|
|
468
468
|
case "Error":
|
|
469
|
-
return "
|
|
469
|
+
return "critical";
|
|
470
470
|
case "Info":
|
|
471
471
|
return "neutral";
|
|
472
472
|
case "Success":
|
|
473
|
-
return "
|
|
473
|
+
return "positive";
|
|
474
474
|
case "Warning":
|
|
475
475
|
return "warning";
|
|
476
|
+
case "Primary":
|
|
477
|
+
return "primary";
|
|
476
478
|
}
|
|
477
479
|
}
|
|
478
480
|
|
|
@@ -170,14 +170,16 @@ function parseCalloutType(prosemirrorCalloutType: unknown): PageBlockCalloutType
|
|
|
170
170
|
if (!prosemirrorCalloutType) return undefined;
|
|
171
171
|
|
|
172
172
|
switch (prosemirrorCalloutType) {
|
|
173
|
-
case "
|
|
173
|
+
case "critical":
|
|
174
174
|
return "Error";
|
|
175
175
|
case "neutral":
|
|
176
176
|
return "Info";
|
|
177
|
-
case "
|
|
177
|
+
case "positive":
|
|
178
178
|
return "Success";
|
|
179
179
|
case "warning":
|
|
180
180
|
return "Warning";
|
|
181
|
+
case "primary":
|
|
182
|
+
return "Primary";
|
|
181
183
|
}
|
|
182
184
|
}
|
|
183
185
|
|