@supernova-studio/model 0.47.23 → 0.47.28
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 +327 -134
- package/dist/index.d.ts +327 -134
- package/dist/index.js +42 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +41 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/src/dsm/documentation/block-definitions/definition.ts +1 -1
- package/src/dsm/documentation/block-definitions/item.ts +10 -1
- package/src/dsm/elements/data/documentation-block-v2.ts +25 -0
- package/src/export/export-jobs.ts +7 -7
package/dist/index.mjs
CHANGED
|
@@ -1120,6 +1120,12 @@ var PageBlockAssetEntityMeta = z46.object({
|
|
|
1120
1120
|
description: z46.string().optional(),
|
|
1121
1121
|
backgroundColor: PageBlockColorV2.optional()
|
|
1122
1122
|
});
|
|
1123
|
+
var PageBlockFigmaComponentEntityMeta = z46.object({
|
|
1124
|
+
title: z46.string().optional(),
|
|
1125
|
+
description: z46.string().optional(),
|
|
1126
|
+
backgroundColor: PageBlockColorV2.optional(),
|
|
1127
|
+
selectedComponentProperties: z46.array(z46.string()).optional()
|
|
1128
|
+
});
|
|
1123
1129
|
var PageBlockFigmaNodeEntityMeta = z46.object({
|
|
1124
1130
|
title: z46.string().optional(),
|
|
1125
1131
|
description: z46.string().optional(),
|
|
@@ -1167,6 +1173,20 @@ var PageBlockItemAssetValue = z46.object({
|
|
|
1167
1173
|
var PageBlockItemAssetPropertyValue = z46.object({
|
|
1168
1174
|
value: z46.array(z46.string()).default([])
|
|
1169
1175
|
});
|
|
1176
|
+
var PageBlockItemFigmaComponentValue = z46.object({
|
|
1177
|
+
showComponentName: z46.boolean().optional(),
|
|
1178
|
+
showComponentDescription: z46.boolean().optional(),
|
|
1179
|
+
showPropertyList: z46.boolean().optional(),
|
|
1180
|
+
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
1181
|
+
backgroundColor: PageBlockColorV2.optional(),
|
|
1182
|
+
value: z46.array(
|
|
1183
|
+
z46.object({
|
|
1184
|
+
entityId: z46.string(),
|
|
1185
|
+
entityType: z46.enum(["FigmaComponent"]),
|
|
1186
|
+
entityMeta: PageBlockFigmaComponentEntityMeta.optional()
|
|
1187
|
+
})
|
|
1188
|
+
).default([])
|
|
1189
|
+
});
|
|
1170
1190
|
var PageBlockItemBooleanValue = z46.object({
|
|
1171
1191
|
value: z46.boolean()
|
|
1172
1192
|
});
|
|
@@ -2512,7 +2532,8 @@ var PageBlockDefinitionPropertyType = z102.enum([
|
|
|
2512
2532
|
"Table",
|
|
2513
2533
|
"Divider",
|
|
2514
2534
|
"Storybook",
|
|
2515
|
-
"Color"
|
|
2535
|
+
"Color",
|
|
2536
|
+
"FigmaComponent"
|
|
2516
2537
|
]);
|
|
2517
2538
|
var PageBlockDefinitionRichTextPropertyStyle = z102.enum([
|
|
2518
2539
|
"Title1",
|
|
@@ -2562,13 +2583,19 @@ var PageBlockDefinitionSingleSelectPropertyColor = z102.enum([
|
|
|
2562
2583
|
"Cyan",
|
|
2563
2584
|
"Fuchsia"
|
|
2564
2585
|
]);
|
|
2586
|
+
var IconSet = z102.enum([
|
|
2587
|
+
"CheckCircle",
|
|
2588
|
+
"CrossCircle",
|
|
2589
|
+
"Alert"
|
|
2590
|
+
]);
|
|
2565
2591
|
var PageBlockDefinitionMultiSelectPropertyStyle = z102.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
2566
2592
|
var PageBlockDefinitionImageAspectRatio = z102.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
2567
2593
|
var PageBlockDefinitionImageWidth = z102.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
2568
2594
|
var PageBlockDefinitionSelectChoice = z102.object({
|
|
2569
2595
|
value: z102.string(),
|
|
2570
2596
|
name: z102.string(),
|
|
2571
|
-
icon:
|
|
2597
|
+
icon: IconSet.optional(),
|
|
2598
|
+
customIconUrl: z102.string().optional(),
|
|
2572
2599
|
color: PageBlockDefinitionSingleSelectPropertyColor.optional()
|
|
2573
2600
|
});
|
|
2574
2601
|
var PageBlockDefinitionUntypedPropertyOptions = z102.record(z102.any());
|
|
@@ -2582,7 +2609,8 @@ var PageBlockDefinitionTextOptions = z102.object({
|
|
|
2582
2609
|
placeholder: z102.string().optional(),
|
|
2583
2610
|
defaultValue: z102.string().optional(),
|
|
2584
2611
|
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
2585
|
-
color: PageBlockDefinitionTextPropertyColor.optional()
|
|
2612
|
+
color: PageBlockDefinitionTextPropertyColor.optional(),
|
|
2613
|
+
allowLineBreaks: z102.boolean().optional()
|
|
2586
2614
|
});
|
|
2587
2615
|
var PageBlockDefinitionSelectOptions = z102.object({
|
|
2588
2616
|
singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
|
|
@@ -2640,7 +2668,7 @@ var PageBlockCategory = z103.enum([
|
|
|
2640
2668
|
"Data",
|
|
2641
2669
|
"Other"
|
|
2642
2670
|
]);
|
|
2643
|
-
var PageBlockBehaviorDataType = z103.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
|
|
2671
|
+
var PageBlockBehaviorDataType = z103.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
|
|
2644
2672
|
var PageBlockBehaviorSelectionType = z103.enum(["Entity", "Group", "EntityAndGroup"]);
|
|
2645
2673
|
var PageBlockDefinitionBehavior = z103.object({
|
|
2646
2674
|
dataType: PageBlockBehaviorDataType,
|
|
@@ -3316,12 +3344,12 @@ var ExportJobDocsDestinationResult = z134.object({
|
|
|
3316
3344
|
});
|
|
3317
3345
|
var ExportJobResult = z134.object({
|
|
3318
3346
|
error: z134.string().optional(),
|
|
3319
|
-
s3: ExportJobS3DestinationResult
|
|
3320
|
-
github: ExportJobPullRequestDestinationResult
|
|
3321
|
-
azure: ExportJobPullRequestDestinationResult
|
|
3322
|
-
gitlab: ExportJobPullRequestDestinationResult
|
|
3323
|
-
bitbucket: ExportJobPullRequestDestinationResult
|
|
3324
|
-
sndocs: ExportJobDocsDestinationResult
|
|
3347
|
+
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
3348
|
+
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
3349
|
+
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
3350
|
+
gitlab: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
3351
|
+
bitbucket: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
3352
|
+
sndocs: nullishToOptional(ExportJobDocsDestinationResult)
|
|
3325
3353
|
});
|
|
3326
3354
|
var ExportJob = z134.object({
|
|
3327
3355
|
id: z134.string(),
|
|
@@ -4886,6 +4914,7 @@ export {
|
|
|
4886
4914
|
HANDLE_MAX_LENGTH,
|
|
4887
4915
|
HANDLE_MIN_LENGTH,
|
|
4888
4916
|
HierarchicalElements,
|
|
4917
|
+
IconSet,
|
|
4889
4918
|
ImageImportModel,
|
|
4890
4919
|
ImageImportModelType,
|
|
4891
4920
|
ImportFunctionInput,
|
|
@@ -4991,6 +5020,7 @@ export {
|
|
|
4991
5020
|
PageBlockDefinitionVariant,
|
|
4992
5021
|
PageBlockDefinitionsMap,
|
|
4993
5022
|
PageBlockEditorModelV2,
|
|
5023
|
+
PageBlockFigmaComponentEntityMeta,
|
|
4994
5024
|
PageBlockFigmaFrameProperties,
|
|
4995
5025
|
PageBlockFigmaNodeEntityMeta,
|
|
4996
5026
|
PageBlockFrame,
|
|
@@ -5008,6 +5038,7 @@ export {
|
|
|
5008
5038
|
PageBlockItemComponentValue,
|
|
5009
5039
|
PageBlockItemDividerValue,
|
|
5010
5040
|
PageBlockItemEmbedValue,
|
|
5041
|
+
PageBlockItemFigmaComponentValue,
|
|
5011
5042
|
PageBlockItemFigmaNodeValue,
|
|
5012
5043
|
PageBlockItemImageValue,
|
|
5013
5044
|
PageBlockItemMarkdownValue,
|