@supernova-studio/client 0.11.0 → 0.12.0
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 -324
- package/dist/index.d.ts +18 -324
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/docs-editor/prosemirror-to-blocks.ts +2 -1
package/dist/index.mjs
CHANGED
|
@@ -882,8 +882,9 @@ var PageBlockImageAlignment = z33.enum(["Left", "Center", "Stretch"]);
|
|
|
882
882
|
var PageBlockTableCellAlignment = z33.enum(["Left", "Center", "Right"]);
|
|
883
883
|
var PageBlockPreviewContainerSize = z33.enum(["Centered", "NaturalHeight"]);
|
|
884
884
|
var PageBlockThemeDisplayMode = z33.enum(["Split", "Override"]);
|
|
885
|
+
var PageBlockColorV2 = z33.string();
|
|
885
886
|
var PageBlockAppearanceV2 = z33.object({
|
|
886
|
-
itemBackgroundColor:
|
|
887
|
+
itemBackgroundColor: PageBlockColorV2.optional(),
|
|
887
888
|
numberOfColumns: z33.number().optional()
|
|
888
889
|
});
|
|
889
890
|
var PageBlockItemUntypedValue = z33.object({
|
|
@@ -927,7 +928,7 @@ var PageBlockItemAssetValue = z33.object({
|
|
|
927
928
|
selectedPropertyIds: z33.array(z33.string()).optional(),
|
|
928
929
|
showSearch: z33.boolean().optional(),
|
|
929
930
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
930
|
-
backgroundColor:
|
|
931
|
+
backgroundColor: PageBlockColorV2.optional(),
|
|
931
932
|
value: z33.array(
|
|
932
933
|
z33.object({
|
|
933
934
|
entityId: z33.string(),
|
|
@@ -1095,12 +1096,12 @@ var SafeIdSchema = z34.string().refine(
|
|
|
1095
1096
|
var DocumentationPageAssetType = z35.enum(["image", "figmaFrame"]);
|
|
1096
1097
|
var DocumentationPageImageAsset = z35.object({
|
|
1097
1098
|
type: z35.literal(DocumentationPageAssetType.Enum.image),
|
|
1098
|
-
url: z35.string().
|
|
1099
|
+
url: z35.string().optional(),
|
|
1099
1100
|
id: SafeIdSchema
|
|
1100
1101
|
});
|
|
1101
1102
|
var DocumentationPageFrameAsset = z35.object({
|
|
1102
1103
|
type: z35.literal(DocumentationPageAssetType.Enum.figmaFrame),
|
|
1103
|
-
url: z35.string().
|
|
1104
|
+
url: z35.string().optional(),
|
|
1104
1105
|
figmaFrame: PageBlockFrame
|
|
1105
1106
|
});
|
|
1106
1107
|
var DocumentationPageAsset = z35.discriminatedUnion("type", [
|
|
@@ -6853,7 +6854,7 @@ function parseAppearance(prosemirrorNode) {
|
|
|
6853
6854
|
}
|
|
6854
6855
|
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z133.string().optional());
|
|
6855
6856
|
if (backgroundColor) {
|
|
6856
|
-
const parsedColor =
|
|
6857
|
+
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
6857
6858
|
if (parsedColor.success) {
|
|
6858
6859
|
appearance.itemBackgroundColor = parsedColor.data;
|
|
6859
6860
|
}
|