@supernova-studio/model 0.3.0 → 0.4.1
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 +1870 -9
- package/dist/index.d.ts +1870 -9
- package/dist/index.js +41 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +40 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/elements/data/documentation-block-v2.ts +53 -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,38 @@ 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
|
+
value: z33.array(PageBlockItemTableRow)
|
|
1047
|
+
});
|
|
1018
1048
|
|
|
1019
1049
|
// src/dsm/elements/data/documentation-page-v1.ts
|
|
1020
1050
|
import { z as z35 } from "zod";
|
|
@@ -3053,6 +3083,12 @@ export {
|
|
|
3053
3083
|
PageBlockItemSandboxValue,
|
|
3054
3084
|
PageBlockItemSingleSelectValue,
|
|
3055
3085
|
PageBlockItemStorybookValue,
|
|
3086
|
+
PageBlockItemTableCell,
|
|
3087
|
+
PageBlockItemTableImageNode,
|
|
3088
|
+
PageBlockItemTableMultiRichTextNode,
|
|
3089
|
+
PageBlockItemTableNode,
|
|
3090
|
+
PageBlockItemTableRichTextNode,
|
|
3091
|
+
PageBlockItemTableRow,
|
|
3056
3092
|
PageBlockItemTableValue,
|
|
3057
3093
|
PageBlockItemTextValue,
|
|
3058
3094
|
PageBlockItemTokenPropertyValue,
|
|
@@ -3066,6 +3102,7 @@ export {
|
|
|
3066
3102
|
PageBlockLinkV2,
|
|
3067
3103
|
PageBlockRenderCodeProperties,
|
|
3068
3104
|
PageBlockShortcut,
|
|
3105
|
+
PageBlockTableCellAlignment,
|
|
3069
3106
|
PageBlockTableColumn,
|
|
3070
3107
|
PageBlockTableProperties,
|
|
3071
3108
|
PageBlockText,
|