@supernova-studio/client 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 +220 -175
- package/dist/index.d.ts +220 -175
- package/dist/index.js +41 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +41 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
- package/src/api/payloads/export/pipeline.ts +1 -1
- package/src/yjs/docs-editor/prosemirror-to-blocks.ts +4 -1
package/dist/index.mjs
CHANGED
|
@@ -1105,6 +1105,12 @@ var PageBlockAssetEntityMeta = z46.object({
|
|
|
1105
1105
|
description: z46.string().optional(),
|
|
1106
1106
|
backgroundColor: PageBlockColorV2.optional()
|
|
1107
1107
|
});
|
|
1108
|
+
var PageBlockFigmaComponentEntityMeta = z46.object({
|
|
1109
|
+
title: z46.string().optional(),
|
|
1110
|
+
description: z46.string().optional(),
|
|
1111
|
+
backgroundColor: PageBlockColorV2.optional(),
|
|
1112
|
+
selectedComponentProperties: z46.array(z46.string()).optional()
|
|
1113
|
+
});
|
|
1108
1114
|
var PageBlockFigmaNodeEntityMeta = z46.object({
|
|
1109
1115
|
title: z46.string().optional(),
|
|
1110
1116
|
description: z46.string().optional(),
|
|
@@ -1152,6 +1158,20 @@ var PageBlockItemAssetValue = z46.object({
|
|
|
1152
1158
|
var PageBlockItemAssetPropertyValue = z46.object({
|
|
1153
1159
|
value: z46.array(z46.string()).default([])
|
|
1154
1160
|
});
|
|
1161
|
+
var PageBlockItemFigmaComponentValue = z46.object({
|
|
1162
|
+
showComponentName: z46.boolean().optional(),
|
|
1163
|
+
showComponentDescription: z46.boolean().optional(),
|
|
1164
|
+
showPropertyList: z46.boolean().optional(),
|
|
1165
|
+
previewContainerSize: PageBlockPreviewContainerSize.optional(),
|
|
1166
|
+
backgroundColor: PageBlockColorV2.optional(),
|
|
1167
|
+
value: z46.array(
|
|
1168
|
+
z46.object({
|
|
1169
|
+
entityId: z46.string(),
|
|
1170
|
+
entityType: z46.enum(["FigmaComponent"]),
|
|
1171
|
+
entityMeta: PageBlockFigmaComponentEntityMeta.optional()
|
|
1172
|
+
})
|
|
1173
|
+
).default([])
|
|
1174
|
+
});
|
|
1155
1175
|
var PageBlockItemBooleanValue = z46.object({
|
|
1156
1176
|
value: z46.boolean()
|
|
1157
1177
|
});
|
|
@@ -2165,7 +2185,8 @@ var PageBlockDefinitionPropertyType = z102.enum([
|
|
|
2165
2185
|
"Table",
|
|
2166
2186
|
"Divider",
|
|
2167
2187
|
"Storybook",
|
|
2168
|
-
"Color"
|
|
2188
|
+
"Color",
|
|
2189
|
+
"FigmaComponent"
|
|
2169
2190
|
]);
|
|
2170
2191
|
var PageBlockDefinitionRichTextPropertyStyle = z102.enum([
|
|
2171
2192
|
"Title1",
|
|
@@ -2215,13 +2236,19 @@ var PageBlockDefinitionSingleSelectPropertyColor = z102.enum([
|
|
|
2215
2236
|
"Cyan",
|
|
2216
2237
|
"Fuchsia"
|
|
2217
2238
|
]);
|
|
2239
|
+
var IconSet = z102.enum([
|
|
2240
|
+
"CheckCircle",
|
|
2241
|
+
"CrossCircle",
|
|
2242
|
+
"Alert"
|
|
2243
|
+
]);
|
|
2218
2244
|
var PageBlockDefinitionMultiSelectPropertyStyle = z102.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
2219
2245
|
var PageBlockDefinitionImageAspectRatio = z102.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
2220
2246
|
var PageBlockDefinitionImageWidth = z102.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
2221
2247
|
var PageBlockDefinitionSelectChoice = z102.object({
|
|
2222
2248
|
value: z102.string(),
|
|
2223
2249
|
name: z102.string(),
|
|
2224
|
-
icon:
|
|
2250
|
+
icon: IconSet.optional(),
|
|
2251
|
+
customIconUrl: z102.string().optional(),
|
|
2225
2252
|
color: PageBlockDefinitionSingleSelectPropertyColor.optional()
|
|
2226
2253
|
});
|
|
2227
2254
|
var PageBlockDefinitionUntypedPropertyOptions = z102.record(z102.any());
|
|
@@ -2235,7 +2262,8 @@ var PageBlockDefinitionTextOptions = z102.object({
|
|
|
2235
2262
|
placeholder: z102.string().optional(),
|
|
2236
2263
|
defaultValue: z102.string().optional(),
|
|
2237
2264
|
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
2238
|
-
color: PageBlockDefinitionTextPropertyColor.optional()
|
|
2265
|
+
color: PageBlockDefinitionTextPropertyColor.optional(),
|
|
2266
|
+
allowLineBreaks: z102.boolean().optional()
|
|
2239
2267
|
});
|
|
2240
2268
|
var PageBlockDefinitionSelectOptions = z102.object({
|
|
2241
2269
|
singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
|
|
@@ -2291,7 +2319,7 @@ var PageBlockCategory = z103.enum([
|
|
|
2291
2319
|
"Data",
|
|
2292
2320
|
"Other"
|
|
2293
2321
|
]);
|
|
2294
|
-
var PageBlockBehaviorDataType = z103.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
|
|
2322
|
+
var PageBlockBehaviorDataType = z103.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
|
|
2295
2323
|
var PageBlockBehaviorSelectionType = z103.enum(["Entity", "Group", "EntityAndGroup"]);
|
|
2296
2324
|
var PageBlockDefinitionBehavior = z103.object({
|
|
2297
2325
|
dataType: PageBlockBehaviorDataType,
|
|
@@ -2857,12 +2885,12 @@ var ExportJobDocsDestinationResult = z134.object({
|
|
|
2857
2885
|
});
|
|
2858
2886
|
var ExportJobResult = z134.object({
|
|
2859
2887
|
error: z134.string().optional(),
|
|
2860
|
-
s3: ExportJobS3DestinationResult
|
|
2861
|
-
github: ExportJobPullRequestDestinationResult
|
|
2862
|
-
azure: ExportJobPullRequestDestinationResult
|
|
2863
|
-
gitlab: ExportJobPullRequestDestinationResult
|
|
2864
|
-
bitbucket: ExportJobPullRequestDestinationResult
|
|
2865
|
-
sndocs: ExportJobDocsDestinationResult
|
|
2888
|
+
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
2889
|
+
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
2890
|
+
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
2891
|
+
gitlab: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
2892
|
+
bitbucket: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
2893
|
+
sndocs: nullishToOptional(ExportJobDocsDestinationResult)
|
|
2866
2894
|
});
|
|
2867
2895
|
var ExportJob = z134.object({
|
|
2868
2896
|
id: z134.string(),
|
|
@@ -4596,7 +4624,7 @@ var DTOPipelineCreateBody = z163.object({
|
|
|
4596
4624
|
eventType: PipelineEventType,
|
|
4597
4625
|
brandPersistentId: z163.string().optional(),
|
|
4598
4626
|
themePersistentId: z163.string().optional(),
|
|
4599
|
-
destination: PipelineDestinationType,
|
|
4627
|
+
destination: PipelineDestinationType.optional(),
|
|
4600
4628
|
gitQuery: GitObjectsQuery,
|
|
4601
4629
|
destinations: z163.object({
|
|
4602
4630
|
s3: ExporterDestinationS3.nullish(),
|
|
@@ -9195,6 +9223,8 @@ function valueSchemaForPropertyType(type) {
|
|
|
9195
9223
|
return PageBlockItemStorybookValue;
|
|
9196
9224
|
case "Color":
|
|
9197
9225
|
return PageBlockItemColorValue;
|
|
9226
|
+
case "FigmaComponent":
|
|
9227
|
+
return PageBlockItemFigmaComponentValue;
|
|
9198
9228
|
}
|
|
9199
9229
|
}
|
|
9200
9230
|
function getProsemirrorBlockId(prosemirrorNode) {
|