@supernova-studio/model 0.20.1 → 0.21.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 +1532 -4679
- package/dist/index.d.ts +1532 -4679
- package/dist/index.js +7 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/elements/data/documentation-block-v2.ts +9 -9
- package/src/dsm/elements/data/item-header-v2.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -882,24 +882,20 @@ function traversePageBlocksV1(blocks, action) {
|
|
|
882
882
|
// src/dsm/elements/data/documentation-block-v2.ts
|
|
883
883
|
|
|
884
884
|
var PageBlockLinkType = _zod.z.enum(["DocumentationItem", "PageHeading", "Url"]);
|
|
885
|
-
var PageBlockImageType = _zod.z.enum(["
|
|
885
|
+
var PageBlockImageType = _zod.z.enum(["Resource", "FigmaNode"]);
|
|
886
886
|
var PageBlockImageAlignment = _zod.z.enum(["Left", "Center", "Stretch"]);
|
|
887
887
|
var PageBlockTableCellAlignment = _zod.z.enum(["Left", "Center", "Right"]);
|
|
888
888
|
var PageBlockPreviewContainerSize = _zod.z.enum(["Centered", "NaturalHeight"]);
|
|
889
889
|
var PageBlockThemeDisplayMode = _zod.z.enum(["Split", "Override"]);
|
|
890
890
|
var PageBlockImageReference = _zod.z.object({
|
|
891
891
|
type: PageBlockImageType,
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
892
|
+
resource: _zod.z.object({
|
|
893
|
+
url: _zod.z.string(),
|
|
894
|
+
resourceId: _zod.z.string()
|
|
895
|
+
}).optional(),
|
|
895
896
|
figmaFile: _zod.z.object({
|
|
896
897
|
sourceId: _zod.z.string(),
|
|
897
|
-
|
|
898
|
-
frameReferenceId: _zod.z.string(),
|
|
899
|
-
origin: _zod.z.object({
|
|
900
|
-
title: _zod.z.string().optional(),
|
|
901
|
-
sourceFileName: _zod.z.string().optional()
|
|
902
|
-
})
|
|
898
|
+
frameReferenceId: _zod.z.string()
|
|
903
899
|
}).optional()
|
|
904
900
|
});
|
|
905
901
|
var PageBlockColorV2 = _zod.z.object({
|
|
@@ -1199,7 +1195,7 @@ var DocumentationItemHeaderV2 = _zod.z.object({
|
|
|
1199
1195
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
1200
1196
|
foregroundColor: PageBlockColorV2.nullish(),
|
|
1201
1197
|
backgroundColor: PageBlockColorV2.nullish(),
|
|
1202
|
-
backgroundImageAsset:
|
|
1198
|
+
backgroundImageAsset: PageBlockImageReference.nullish(),
|
|
1203
1199
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
1204
1200
|
showBackgroundOverlay: _zod.z.boolean(),
|
|
1205
1201
|
showCoverText: _zod.z.boolean(),
|