@supernova-studio/model 0.3.0 → 0.4.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 +1873 -9
- package/dist/index.d.ts +1873 -9
- package/dist/index.js +42 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +41 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/elements/data/documentation-block-v2.ts +54 -5
package/dist/index.mjs
CHANGED
|
@@ -874,6 +874,7 @@ import { z as z33 } from "zod";
|
|
|
874
874
|
var PageBlockLinkType = z33.enum(["DocumentationItem", "PageHeading", "Url"]);
|
|
875
875
|
var PageBlockImageType = z33.enum(["Upload", "Asset", "FigmaFrame"]);
|
|
876
876
|
var PageBlockImageAlignment = z33.enum(["Left", "Center", "Stretch"]);
|
|
877
|
+
var PageBlockTableCellAlignment = z33.enum(["Left", "Center", "Right"]);
|
|
877
878
|
var PageBlockAppearanceV2 = z33.object({
|
|
878
879
|
itemBackgroundColor: ColorValue
|
|
879
880
|
});
|
|
@@ -988,9 +989,6 @@ var PageBlockItemStorybookValue = z33.object({
|
|
|
988
989
|
showAddons: z33.boolean().optional(),
|
|
989
990
|
value: z33.string()
|
|
990
991
|
});
|
|
991
|
-
var PageBlockItemTableValue = z33.object({
|
|
992
|
-
value: z33.any()
|
|
993
|
-
});
|
|
994
992
|
var PageBlockItemTextValue = z33.object({
|
|
995
993
|
value: z33.string()
|
|
996
994
|
});
|
|
@@ -1015,6 +1013,39 @@ var PageBlockItemTokenTypeValue = z33.object({
|
|
|
1015
1013
|
var PageBlockItemUrlValue = z33.object({
|
|
1016
1014
|
value: z33.string()
|
|
1017
1015
|
});
|
|
1016
|
+
var PageBlockItemTableRichTextNode = z33.object({
|
|
1017
|
+
type: z33.literal("RichText"),
|
|
1018
|
+
value: PageBlockItemRichTextValue.shape.value
|
|
1019
|
+
});
|
|
1020
|
+
var PageBlockItemTableMultiRichTextNode = z33.object({
|
|
1021
|
+
type: z33.literal("MultiRichText"),
|
|
1022
|
+
value: PageBlockItemMultiRichTextValue.shape.value
|
|
1023
|
+
});
|
|
1024
|
+
var PageBlockItemTableImageNode = z33.object({
|
|
1025
|
+
type: z33.literal("Image"),
|
|
1026
|
+
value: PageBlockItemImageValue.shape.value
|
|
1027
|
+
});
|
|
1028
|
+
var PageBlockItemTableNode = z33.discriminatedUnion("type", [
|
|
1029
|
+
PageBlockItemTableRichTextNode,
|
|
1030
|
+
PageBlockItemTableMultiRichTextNode,
|
|
1031
|
+
PageBlockItemTableImageNode
|
|
1032
|
+
]);
|
|
1033
|
+
var PageBlockItemTableCell = z33.object({
|
|
1034
|
+
id: z33.string(),
|
|
1035
|
+
nodes: z33.array(PageBlockItemTableNode),
|
|
1036
|
+
columnWidth: z33.number().optional(),
|
|
1037
|
+
alignment: PageBlockTableCellAlignment
|
|
1038
|
+
});
|
|
1039
|
+
var PageBlockItemTableRow = z33.object({
|
|
1040
|
+
cells: z33.array(PageBlockItemTableCell)
|
|
1041
|
+
});
|
|
1042
|
+
var PageBlockItemTableValue = z33.object({
|
|
1043
|
+
highlightHeaderColumn: z33.boolean().optional(),
|
|
1044
|
+
highlightHeaderRow: z33.boolean().optional(),
|
|
1045
|
+
showBorder: z33.boolean().optional(),
|
|
1046
|
+
width: z33.number().optional(),
|
|
1047
|
+
value: z33.array(PageBlockItemTableRow)
|
|
1048
|
+
});
|
|
1018
1049
|
|
|
1019
1050
|
// src/dsm/elements/data/documentation-page-v1.ts
|
|
1020
1051
|
import { z as z35 } from "zod";
|
|
@@ -3053,6 +3084,12 @@ export {
|
|
|
3053
3084
|
PageBlockItemSandboxValue,
|
|
3054
3085
|
PageBlockItemSingleSelectValue,
|
|
3055
3086
|
PageBlockItemStorybookValue,
|
|
3087
|
+
PageBlockItemTableCell,
|
|
3088
|
+
PageBlockItemTableImageNode,
|
|
3089
|
+
PageBlockItemTableMultiRichTextNode,
|
|
3090
|
+
PageBlockItemTableNode,
|
|
3091
|
+
PageBlockItemTableRichTextNode,
|
|
3092
|
+
PageBlockItemTableRow,
|
|
3056
3093
|
PageBlockItemTableValue,
|
|
3057
3094
|
PageBlockItemTextValue,
|
|
3058
3095
|
PageBlockItemTokenPropertyValue,
|
|
@@ -3066,6 +3103,7 @@ export {
|
|
|
3066
3103
|
PageBlockLinkV2,
|
|
3067
3104
|
PageBlockRenderCodeProperties,
|
|
3068
3105
|
PageBlockShortcut,
|
|
3106
|
+
PageBlockTableCellAlignment,
|
|
3069
3107
|
PageBlockTableColumn,
|
|
3070
3108
|
PageBlockTableProperties,
|
|
3071
3109
|
PageBlockText,
|