@supernova-studio/model 0.47.22 → 0.47.27
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 +302 -109
- package/dist/index.d.ts +302 -109
- package/dist/index.js +40 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -9
- 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 +9 -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
|
});
|
|
@@ -2562,13 +2582,19 @@ var PageBlockDefinitionSingleSelectPropertyColor = z102.enum([
|
|
|
2562
2582
|
"Cyan",
|
|
2563
2583
|
"Fuchsia"
|
|
2564
2584
|
]);
|
|
2585
|
+
var IconSet = z102.enum([
|
|
2586
|
+
"CheckCircle",
|
|
2587
|
+
"CrossCircle",
|
|
2588
|
+
"Alert"
|
|
2589
|
+
]);
|
|
2565
2590
|
var PageBlockDefinitionMultiSelectPropertyStyle = z102.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
2566
2591
|
var PageBlockDefinitionImageAspectRatio = z102.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
2567
2592
|
var PageBlockDefinitionImageWidth = z102.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
2568
2593
|
var PageBlockDefinitionSelectChoice = z102.object({
|
|
2569
2594
|
value: z102.string(),
|
|
2570
2595
|
name: z102.string(),
|
|
2571
|
-
icon:
|
|
2596
|
+
icon: IconSet.optional(),
|
|
2597
|
+
customIconUrl: z102.string().optional(),
|
|
2572
2598
|
color: PageBlockDefinitionSingleSelectPropertyColor.optional()
|
|
2573
2599
|
});
|
|
2574
2600
|
var PageBlockDefinitionUntypedPropertyOptions = z102.record(z102.any());
|
|
@@ -2582,7 +2608,8 @@ var PageBlockDefinitionTextOptions = z102.object({
|
|
|
2582
2608
|
placeholder: z102.string().optional(),
|
|
2583
2609
|
defaultValue: z102.string().optional(),
|
|
2584
2610
|
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
2585
|
-
color: PageBlockDefinitionTextPropertyColor.optional()
|
|
2611
|
+
color: PageBlockDefinitionTextPropertyColor.optional(),
|
|
2612
|
+
allowLineBreaks: z102.boolean().optional()
|
|
2586
2613
|
});
|
|
2587
2614
|
var PageBlockDefinitionSelectOptions = z102.object({
|
|
2588
2615
|
singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
|
|
@@ -2640,7 +2667,7 @@ var PageBlockCategory = z103.enum([
|
|
|
2640
2667
|
"Data",
|
|
2641
2668
|
"Other"
|
|
2642
2669
|
]);
|
|
2643
|
-
var PageBlockBehaviorDataType = z103.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
|
|
2670
|
+
var PageBlockBehaviorDataType = z103.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
|
|
2644
2671
|
var PageBlockBehaviorSelectionType = z103.enum(["Entity", "Group", "EntityAndGroup"]);
|
|
2645
2672
|
var PageBlockDefinitionBehavior = z103.object({
|
|
2646
2673
|
dataType: PageBlockBehaviorDataType,
|
|
@@ -3316,12 +3343,12 @@ var ExportJobDocsDestinationResult = z134.object({
|
|
|
3316
3343
|
});
|
|
3317
3344
|
var ExportJobResult = z134.object({
|
|
3318
3345
|
error: z134.string().optional(),
|
|
3319
|
-
s3: ExportJobS3DestinationResult
|
|
3320
|
-
github: ExportJobPullRequestDestinationResult
|
|
3321
|
-
azure: ExportJobPullRequestDestinationResult
|
|
3322
|
-
gitlab: ExportJobPullRequestDestinationResult
|
|
3323
|
-
bitbucket: ExportJobPullRequestDestinationResult
|
|
3324
|
-
sndocs: ExportJobDocsDestinationResult
|
|
3346
|
+
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
3347
|
+
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
3348
|
+
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
3349
|
+
gitlab: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
3350
|
+
bitbucket: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
3351
|
+
sndocs: nullishToOptional(ExportJobDocsDestinationResult)
|
|
3325
3352
|
});
|
|
3326
3353
|
var ExportJob = z134.object({
|
|
3327
3354
|
id: z134.string(),
|
|
@@ -4886,6 +4913,7 @@ export {
|
|
|
4886
4913
|
HANDLE_MAX_LENGTH,
|
|
4887
4914
|
HANDLE_MIN_LENGTH,
|
|
4888
4915
|
HierarchicalElements,
|
|
4916
|
+
IconSet,
|
|
4889
4917
|
ImageImportModel,
|
|
4890
4918
|
ImageImportModelType,
|
|
4891
4919
|
ImportFunctionInput,
|
|
@@ -4991,6 +5019,7 @@ export {
|
|
|
4991
5019
|
PageBlockDefinitionVariant,
|
|
4992
5020
|
PageBlockDefinitionsMap,
|
|
4993
5021
|
PageBlockEditorModelV2,
|
|
5022
|
+
PageBlockFigmaComponentEntityMeta,
|
|
4994
5023
|
PageBlockFigmaFrameProperties,
|
|
4995
5024
|
PageBlockFigmaNodeEntityMeta,
|
|
4996
5025
|
PageBlockFrame,
|
|
@@ -5008,6 +5037,7 @@ export {
|
|
|
5008
5037
|
PageBlockItemComponentValue,
|
|
5009
5038
|
PageBlockItemDividerValue,
|
|
5010
5039
|
PageBlockItemEmbedValue,
|
|
5040
|
+
PageBlockItemFigmaComponentValue,
|
|
5011
5041
|
PageBlockItemFigmaNodeValue,
|
|
5012
5042
|
PageBlockItemImageValue,
|
|
5013
5043
|
PageBlockItemMarkdownValue,
|