@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/client",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "description": "Supernova Data Models",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -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 "error";
469
+ return "critical";
470
470
  case "Info":
471
471
  return "neutral";
472
472
  case "Success":
473
- return "success";
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 "error":
173
+ case "critical":
174
174
  return "Error";
175
175
  case "neutral":
176
176
  return "Info";
177
- case "success":
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