@supernova-studio/client 0.11.0 → 0.13.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 +42 -288
- package/dist/index.d.ts +42 -288
- 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/prosemirror-to-blocks.ts +2 -1
package/dist/index.mjs
CHANGED
|
@@ -882,8 +882,12 @@ 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.object({
|
|
886
|
+
value: z33.string(),
|
|
887
|
+
referencedTokenId: z33.string().optional()
|
|
888
|
+
});
|
|
885
889
|
var PageBlockAppearanceV2 = z33.object({
|
|
886
|
-
itemBackgroundColor:
|
|
890
|
+
itemBackgroundColor: PageBlockColorV2.optional(),
|
|
887
891
|
numberOfColumns: z33.number().optional()
|
|
888
892
|
});
|
|
889
893
|
var PageBlockItemUntypedValue = z33.object({
|
|
@@ -927,7 +931,7 @@ var PageBlockItemAssetValue = z33.object({
|
|
|
927
931
|
selectedPropertyIds: z33.array(z33.string()).optional(),
|
|
928
932
|
showSearch: z33.boolean().optional(),
|
|
929
933
|
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
930
|
-
backgroundColor:
|
|
934
|
+
backgroundColor: PageBlockColorV2.optional(),
|
|
931
935
|
value: z33.array(
|
|
932
936
|
z33.object({
|
|
933
937
|
entityId: z33.string(),
|
|
@@ -1095,12 +1099,12 @@ var SafeIdSchema = z34.string().refine(
|
|
|
1095
1099
|
var DocumentationPageAssetType = z35.enum(["image", "figmaFrame"]);
|
|
1096
1100
|
var DocumentationPageImageAsset = z35.object({
|
|
1097
1101
|
type: z35.literal(DocumentationPageAssetType.Enum.image),
|
|
1098
|
-
url: z35.string().
|
|
1102
|
+
url: z35.string().optional(),
|
|
1099
1103
|
id: SafeIdSchema
|
|
1100
1104
|
});
|
|
1101
1105
|
var DocumentationPageFrameAsset = z35.object({
|
|
1102
1106
|
type: z35.literal(DocumentationPageAssetType.Enum.figmaFrame),
|
|
1103
|
-
url: z35.string().
|
|
1107
|
+
url: z35.string().optional(),
|
|
1104
1108
|
figmaFrame: PageBlockFrame
|
|
1105
1109
|
});
|
|
1106
1110
|
var DocumentationPageAsset = z35.discriminatedUnion("type", [
|
|
@@ -6853,7 +6857,7 @@ function parseAppearance(prosemirrorNode) {
|
|
|
6853
6857
|
}
|
|
6854
6858
|
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z133.string().optional());
|
|
6855
6859
|
if (backgroundColor) {
|
|
6856
|
-
const parsedColor =
|
|
6860
|
+
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
6857
6861
|
if (parsedColor.success) {
|
|
6858
6862
|
appearance.itemBackgroundColor = parsedColor.data;
|
|
6859
6863
|
}
|