@supernova-studio/model 0.31.0 → 0.32.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 +329 -279
- package/dist/index.d.ts +329 -279
- package/dist/index.js +18 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/codegen/pulsar.ts +5 -5
- package/src/dsm/elements/data/documentation-block-v1.ts +1 -0
- package/src/dsm/elements/data/documentation-block-v2.ts +14 -13
package/dist/index.mjs
CHANGED
|
@@ -911,16 +911,18 @@ var PageBlockImageAlignment = z35.enum(["Left", "Center", "Stretch"]);
|
|
|
911
911
|
var PageBlockTableCellAlignment = z35.enum(["Left", "Center", "Right"]);
|
|
912
912
|
var PageBlockPreviewContainerSize = z35.enum(["Centered", "NaturalHeight"]);
|
|
913
913
|
var PageBlockThemeDisplayMode = z35.enum(["Split", "Override"]);
|
|
914
|
+
var PageBlockImageResourceReference = z35.object({
|
|
915
|
+
resourceId: z35.string(),
|
|
916
|
+
url: z35.string()
|
|
917
|
+
});
|
|
918
|
+
var PageBlockResourceFrameNodeReference = z35.object({
|
|
919
|
+
sourceId: z35.string(),
|
|
920
|
+
frameReferenceId: z35.string()
|
|
921
|
+
});
|
|
914
922
|
var PageBlockImageReference = z35.object({
|
|
915
923
|
type: PageBlockImageType,
|
|
916
|
-
resource:
|
|
917
|
-
|
|
918
|
-
resourceId: z35.string()
|
|
919
|
-
}).optional(),
|
|
920
|
-
figmaFile: z35.object({
|
|
921
|
-
sourceId: z35.string(),
|
|
922
|
-
frameReferenceId: z35.string()
|
|
923
|
-
}).optional()
|
|
924
|
+
resource: PageBlockImageResourceReference.optional(),
|
|
925
|
+
figmaFile: PageBlockResourceFrameNodeReference.optional()
|
|
924
926
|
});
|
|
925
927
|
var PageBlockColorV2 = z35.object({
|
|
926
928
|
value: z35.string(),
|
|
@@ -2953,13 +2955,13 @@ var PulsarContributionVariant = z118.object({
|
|
|
2953
2955
|
thumbnailURL: nullishToOptional(z118.string())
|
|
2954
2956
|
});
|
|
2955
2957
|
var PulsarCustomBlock = z118.object({
|
|
2956
|
-
title: z118.string(),
|
|
2958
|
+
title: nullishToOptional(z118.string()),
|
|
2957
2959
|
key: z118.string(),
|
|
2958
|
-
category: z118.string(),
|
|
2960
|
+
category: nullishToOptional(z118.string()),
|
|
2959
2961
|
description: nullishToOptional(z118.string()),
|
|
2960
|
-
iconURL: z118.string(),
|
|
2961
|
-
mode: z118.enum(["array", "block"]),
|
|
2962
|
-
properties: z118.array(PulsarBaseProperty)
|
|
2962
|
+
iconURL: nullishToOptional(z118.string()),
|
|
2963
|
+
mode: nullishToOptional(z118.enum(["array", "block"])),
|
|
2964
|
+
properties: nullishToOptional(z118.array(PulsarBaseProperty)).transform((v) => v ?? [])
|
|
2963
2965
|
});
|
|
2964
2966
|
|
|
2965
2967
|
// src/codegen/exporter.ts
|
|
@@ -4287,6 +4289,7 @@ export {
|
|
|
4287
4289
|
PageBlockFrameOrigin,
|
|
4288
4290
|
PageBlockImageAlignment,
|
|
4289
4291
|
PageBlockImageReference,
|
|
4292
|
+
PageBlockImageResourceReference,
|
|
4290
4293
|
PageBlockImageType,
|
|
4291
4294
|
PageBlockItemAssetPropertyValue,
|
|
4292
4295
|
PageBlockItemAssetValue,
|
|
@@ -4326,6 +4329,7 @@ export {
|
|
|
4326
4329
|
PageBlockLinkV2,
|
|
4327
4330
|
PageBlockPreviewContainerSize,
|
|
4328
4331
|
PageBlockRenderCodeProperties,
|
|
4332
|
+
PageBlockResourceFrameNodeReference,
|
|
4329
4333
|
PageBlockShortcut,
|
|
4330
4334
|
PageBlockTableCellAlignment,
|
|
4331
4335
|
PageBlockTableColumn,
|