@supernova-studio/client 0.52.16 → 0.52.18
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 +8 -114
- package/dist/index.d.ts +8 -114
- package/dist/index.js +8 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/elements/components/figma-component.ts +1 -0
- package/src/yjs/docs-editor/mock.ts +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -8976,30 +8976,12 @@ type DTOFigmaComponentBooleanProperty = z.infer<typeof DTOFigmaComponentBooleanP
|
|
|
8976
8976
|
declare const DTOFigmaComponentInstanceSwapProperty: z.ZodObject<{
|
|
8977
8977
|
type: z.ZodLiteral<"InstanceSwap">;
|
|
8978
8978
|
defaultValue: z.ZodString;
|
|
8979
|
-
preferredValues: z.ZodArray<z.ZodObject<{
|
|
8980
|
-
type: z.ZodEnum<["Component", "ComponentSet"]>;
|
|
8981
|
-
key: z.ZodString;
|
|
8982
|
-
}, "strip", z.ZodTypeAny, {
|
|
8983
|
-
type: "Component" | "ComponentSet";
|
|
8984
|
-
key: string;
|
|
8985
|
-
}, {
|
|
8986
|
-
type: "Component" | "ComponentSet";
|
|
8987
|
-
key: string;
|
|
8988
|
-
}>, "many">;
|
|
8989
8979
|
}, "strip", z.ZodTypeAny, {
|
|
8990
8980
|
type: "InstanceSwap";
|
|
8991
8981
|
defaultValue: string;
|
|
8992
|
-
preferredValues: {
|
|
8993
|
-
type: "Component" | "ComponentSet";
|
|
8994
|
-
key: string;
|
|
8995
|
-
}[];
|
|
8996
8982
|
}, {
|
|
8997
8983
|
type: "InstanceSwap";
|
|
8998
8984
|
defaultValue: string;
|
|
8999
|
-
preferredValues: {
|
|
9000
|
-
type: "Component" | "ComponentSet";
|
|
9001
|
-
key: string;
|
|
9002
|
-
}[];
|
|
9003
8985
|
}>;
|
|
9004
8986
|
type DTOFigmaComponentInstanceSwapProperty = z.infer<typeof DTOFigmaComponentInstanceSwapProperty>;
|
|
9005
8987
|
declare const DTOFigmaComponentTextProperty: z.ZodObject<{
|
|
@@ -9039,30 +9021,12 @@ declare const DTOFigmaComponentProperty: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
9039
9021
|
}>, z.ZodObject<{
|
|
9040
9022
|
type: z.ZodLiteral<"InstanceSwap">;
|
|
9041
9023
|
defaultValue: z.ZodString;
|
|
9042
|
-
preferredValues: z.ZodArray<z.ZodObject<{
|
|
9043
|
-
type: z.ZodEnum<["Component", "ComponentSet"]>;
|
|
9044
|
-
key: z.ZodString;
|
|
9045
|
-
}, "strip", z.ZodTypeAny, {
|
|
9046
|
-
type: "Component" | "ComponentSet";
|
|
9047
|
-
key: string;
|
|
9048
|
-
}, {
|
|
9049
|
-
type: "Component" | "ComponentSet";
|
|
9050
|
-
key: string;
|
|
9051
|
-
}>, "many">;
|
|
9052
9024
|
}, "strip", z.ZodTypeAny, {
|
|
9053
9025
|
type: "InstanceSwap";
|
|
9054
9026
|
defaultValue: string;
|
|
9055
|
-
preferredValues: {
|
|
9056
|
-
type: "Component" | "ComponentSet";
|
|
9057
|
-
key: string;
|
|
9058
|
-
}[];
|
|
9059
9027
|
}, {
|
|
9060
9028
|
type: "InstanceSwap";
|
|
9061
9029
|
defaultValue: string;
|
|
9062
|
-
preferredValues: {
|
|
9063
|
-
type: "Component" | "ComponentSet";
|
|
9064
|
-
key: string;
|
|
9065
|
-
}[];
|
|
9066
9030
|
}>, z.ZodObject<{
|
|
9067
9031
|
type: z.ZodLiteral<"Text">;
|
|
9068
9032
|
defaultValue: z.ZodString;
|
|
@@ -9086,30 +9050,12 @@ declare const DTOFigmaComponentPropertyMap: z.ZodRecord<z.ZodString, z.ZodDiscri
|
|
|
9086
9050
|
}>, z.ZodObject<{
|
|
9087
9051
|
type: z.ZodLiteral<"InstanceSwap">;
|
|
9088
9052
|
defaultValue: z.ZodString;
|
|
9089
|
-
preferredValues: z.ZodArray<z.ZodObject<{
|
|
9090
|
-
type: z.ZodEnum<["Component", "ComponentSet"]>;
|
|
9091
|
-
key: z.ZodString;
|
|
9092
|
-
}, "strip", z.ZodTypeAny, {
|
|
9093
|
-
type: "Component" | "ComponentSet";
|
|
9094
|
-
key: string;
|
|
9095
|
-
}, {
|
|
9096
|
-
type: "Component" | "ComponentSet";
|
|
9097
|
-
key: string;
|
|
9098
|
-
}>, "many">;
|
|
9099
9053
|
}, "strip", z.ZodTypeAny, {
|
|
9100
9054
|
type: "InstanceSwap";
|
|
9101
9055
|
defaultValue: string;
|
|
9102
|
-
preferredValues: {
|
|
9103
|
-
type: "Component" | "ComponentSet";
|
|
9104
|
-
key: string;
|
|
9105
|
-
}[];
|
|
9106
9056
|
}, {
|
|
9107
9057
|
type: "InstanceSwap";
|
|
9108
9058
|
defaultValue: string;
|
|
9109
|
-
preferredValues: {
|
|
9110
|
-
type: "Component" | "ComponentSet";
|
|
9111
|
-
key: string;
|
|
9112
|
-
}[];
|
|
9113
9059
|
}>, z.ZodObject<{
|
|
9114
9060
|
type: z.ZodLiteral<"Text">;
|
|
9115
9061
|
defaultValue: z.ZodString;
|
|
@@ -9183,30 +9129,12 @@ declare const DTOFigmaComponent: z.ZodObject<{
|
|
|
9183
9129
|
}>, z.ZodObject<{
|
|
9184
9130
|
type: z.ZodLiteral<"InstanceSwap">;
|
|
9185
9131
|
defaultValue: z.ZodString;
|
|
9186
|
-
preferredValues: z.ZodArray<z.ZodObject<{
|
|
9187
|
-
type: z.ZodEnum<["Component", "ComponentSet"]>;
|
|
9188
|
-
key: z.ZodString;
|
|
9189
|
-
}, "strip", z.ZodTypeAny, {
|
|
9190
|
-
type: "Component" | "ComponentSet";
|
|
9191
|
-
key: string;
|
|
9192
|
-
}, {
|
|
9193
|
-
type: "Component" | "ComponentSet";
|
|
9194
|
-
key: string;
|
|
9195
|
-
}>, "many">;
|
|
9196
9132
|
}, "strip", z.ZodTypeAny, {
|
|
9197
9133
|
type: "InstanceSwap";
|
|
9198
9134
|
defaultValue: string;
|
|
9199
|
-
preferredValues: {
|
|
9200
|
-
type: "Component" | "ComponentSet";
|
|
9201
|
-
key: string;
|
|
9202
|
-
}[];
|
|
9203
9135
|
}, {
|
|
9204
9136
|
type: "InstanceSwap";
|
|
9205
9137
|
defaultValue: string;
|
|
9206
|
-
preferredValues: {
|
|
9207
|
-
type: "Component" | "ComponentSet";
|
|
9208
|
-
key: string;
|
|
9209
|
-
}[];
|
|
9210
9138
|
}>, z.ZodObject<{
|
|
9211
9139
|
type: z.ZodLiteral<"Text">;
|
|
9212
9140
|
defaultValue: z.ZodString;
|
|
@@ -9217,6 +9145,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
|
|
|
9217
9145
|
type: "Text";
|
|
9218
9146
|
defaultValue: string;
|
|
9219
9147
|
}>]>>>;
|
|
9148
|
+
childrenPersistentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9220
9149
|
}, "strip", z.ZodTypeAny, {
|
|
9221
9150
|
id: string;
|
|
9222
9151
|
persistentId: string;
|
|
@@ -9248,14 +9177,11 @@ declare const DTOFigmaComponent: z.ZodObject<{
|
|
|
9248
9177
|
} | {
|
|
9249
9178
|
type: "InstanceSwap";
|
|
9250
9179
|
defaultValue: string;
|
|
9251
|
-
preferredValues: {
|
|
9252
|
-
type: "Component" | "ComponentSet";
|
|
9253
|
-
key: string;
|
|
9254
|
-
}[];
|
|
9255
9180
|
} | {
|
|
9256
9181
|
type: "Text";
|
|
9257
9182
|
defaultValue: string;
|
|
9258
9183
|
}> | undefined;
|
|
9184
|
+
childrenPersistentIds?: string[] | undefined;
|
|
9259
9185
|
}, {
|
|
9260
9186
|
id: string;
|
|
9261
9187
|
persistentId: string;
|
|
@@ -9287,14 +9213,11 @@ declare const DTOFigmaComponent: z.ZodObject<{
|
|
|
9287
9213
|
} | {
|
|
9288
9214
|
type: "InstanceSwap";
|
|
9289
9215
|
defaultValue: string;
|
|
9290
|
-
preferredValues: {
|
|
9291
|
-
type: "Component" | "ComponentSet";
|
|
9292
|
-
key: string;
|
|
9293
|
-
}[];
|
|
9294
9216
|
} | {
|
|
9295
9217
|
type: "Text";
|
|
9296
9218
|
defaultValue: string;
|
|
9297
9219
|
}> | undefined;
|
|
9220
|
+
childrenPersistentIds?: string[] | undefined;
|
|
9298
9221
|
}>;
|
|
9299
9222
|
type DTOFigmaComponent = z.infer<typeof DTOFigmaComponent>;
|
|
9300
9223
|
declare const DTOFigmaComponentListResponse: z.ZodObject<{
|
|
@@ -9360,30 +9283,12 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
|
|
|
9360
9283
|
}>, z.ZodObject<{
|
|
9361
9284
|
type: z.ZodLiteral<"InstanceSwap">;
|
|
9362
9285
|
defaultValue: z.ZodString;
|
|
9363
|
-
preferredValues: z.ZodArray<z.ZodObject<{
|
|
9364
|
-
type: z.ZodEnum<["Component", "ComponentSet"]>;
|
|
9365
|
-
key: z.ZodString;
|
|
9366
|
-
}, "strip", z.ZodTypeAny, {
|
|
9367
|
-
type: "Component" | "ComponentSet";
|
|
9368
|
-
key: string;
|
|
9369
|
-
}, {
|
|
9370
|
-
type: "Component" | "ComponentSet";
|
|
9371
|
-
key: string;
|
|
9372
|
-
}>, "many">;
|
|
9373
9286
|
}, "strip", z.ZodTypeAny, {
|
|
9374
9287
|
type: "InstanceSwap";
|
|
9375
9288
|
defaultValue: string;
|
|
9376
|
-
preferredValues: {
|
|
9377
|
-
type: "Component" | "ComponentSet";
|
|
9378
|
-
key: string;
|
|
9379
|
-
}[];
|
|
9380
9289
|
}, {
|
|
9381
9290
|
type: "InstanceSwap";
|
|
9382
9291
|
defaultValue: string;
|
|
9383
|
-
preferredValues: {
|
|
9384
|
-
type: "Component" | "ComponentSet";
|
|
9385
|
-
key: string;
|
|
9386
|
-
}[];
|
|
9387
9292
|
}>, z.ZodObject<{
|
|
9388
9293
|
type: z.ZodLiteral<"Text">;
|
|
9389
9294
|
defaultValue: z.ZodString;
|
|
@@ -9394,6 +9299,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
|
|
|
9394
9299
|
type: "Text";
|
|
9395
9300
|
defaultValue: string;
|
|
9396
9301
|
}>]>>>;
|
|
9302
|
+
childrenPersistentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9397
9303
|
}, "strip", z.ZodTypeAny, {
|
|
9398
9304
|
id: string;
|
|
9399
9305
|
persistentId: string;
|
|
@@ -9425,14 +9331,11 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
|
|
|
9425
9331
|
} | {
|
|
9426
9332
|
type: "InstanceSwap";
|
|
9427
9333
|
defaultValue: string;
|
|
9428
|
-
preferredValues: {
|
|
9429
|
-
type: "Component" | "ComponentSet";
|
|
9430
|
-
key: string;
|
|
9431
|
-
}[];
|
|
9432
9334
|
} | {
|
|
9433
9335
|
type: "Text";
|
|
9434
9336
|
defaultValue: string;
|
|
9435
9337
|
}> | undefined;
|
|
9338
|
+
childrenPersistentIds?: string[] | undefined;
|
|
9436
9339
|
}, {
|
|
9437
9340
|
id: string;
|
|
9438
9341
|
persistentId: string;
|
|
@@ -9464,14 +9367,11 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
|
|
|
9464
9367
|
} | {
|
|
9465
9368
|
type: "InstanceSwap";
|
|
9466
9369
|
defaultValue: string;
|
|
9467
|
-
preferredValues: {
|
|
9468
|
-
type: "Component" | "ComponentSet";
|
|
9469
|
-
key: string;
|
|
9470
|
-
}[];
|
|
9471
9370
|
} | {
|
|
9472
9371
|
type: "Text";
|
|
9473
9372
|
defaultValue: string;
|
|
9474
9373
|
}> | undefined;
|
|
9374
|
+
childrenPersistentIds?: string[] | undefined;
|
|
9475
9375
|
}>, "many">;
|
|
9476
9376
|
}, "strip", z.ZodTypeAny, {
|
|
9477
9377
|
components: {
|
|
@@ -9505,14 +9405,11 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
|
|
|
9505
9405
|
} | {
|
|
9506
9406
|
type: "InstanceSwap";
|
|
9507
9407
|
defaultValue: string;
|
|
9508
|
-
preferredValues: {
|
|
9509
|
-
type: "Component" | "ComponentSet";
|
|
9510
|
-
key: string;
|
|
9511
|
-
}[];
|
|
9512
9408
|
} | {
|
|
9513
9409
|
type: "Text";
|
|
9514
9410
|
defaultValue: string;
|
|
9515
9411
|
}> | undefined;
|
|
9412
|
+
childrenPersistentIds?: string[] | undefined;
|
|
9516
9413
|
}[];
|
|
9517
9414
|
}, {
|
|
9518
9415
|
components: {
|
|
@@ -9546,14 +9443,11 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
|
|
|
9546
9443
|
} | {
|
|
9547
9444
|
type: "InstanceSwap";
|
|
9548
9445
|
defaultValue: string;
|
|
9549
|
-
preferredValues: {
|
|
9550
|
-
type: "Component" | "ComponentSet";
|
|
9551
|
-
key: string;
|
|
9552
|
-
}[];
|
|
9553
9446
|
} | {
|
|
9554
9447
|
type: "Text";
|
|
9555
9448
|
defaultValue: string;
|
|
9556
9449
|
}> | undefined;
|
|
9450
|
+
childrenPersistentIds?: string[] | undefined;
|
|
9557
9451
|
}[];
|
|
9558
9452
|
}>;
|
|
9559
9453
|
type DTOFigmaComponentListResponse = z.infer<typeof DTOFigmaComponentListResponse>;
|
package/dist/index.d.ts
CHANGED
|
@@ -8976,30 +8976,12 @@ type DTOFigmaComponentBooleanProperty = z.infer<typeof DTOFigmaComponentBooleanP
|
|
|
8976
8976
|
declare const DTOFigmaComponentInstanceSwapProperty: z.ZodObject<{
|
|
8977
8977
|
type: z.ZodLiteral<"InstanceSwap">;
|
|
8978
8978
|
defaultValue: z.ZodString;
|
|
8979
|
-
preferredValues: z.ZodArray<z.ZodObject<{
|
|
8980
|
-
type: z.ZodEnum<["Component", "ComponentSet"]>;
|
|
8981
|
-
key: z.ZodString;
|
|
8982
|
-
}, "strip", z.ZodTypeAny, {
|
|
8983
|
-
type: "Component" | "ComponentSet";
|
|
8984
|
-
key: string;
|
|
8985
|
-
}, {
|
|
8986
|
-
type: "Component" | "ComponentSet";
|
|
8987
|
-
key: string;
|
|
8988
|
-
}>, "many">;
|
|
8989
8979
|
}, "strip", z.ZodTypeAny, {
|
|
8990
8980
|
type: "InstanceSwap";
|
|
8991
8981
|
defaultValue: string;
|
|
8992
|
-
preferredValues: {
|
|
8993
|
-
type: "Component" | "ComponentSet";
|
|
8994
|
-
key: string;
|
|
8995
|
-
}[];
|
|
8996
8982
|
}, {
|
|
8997
8983
|
type: "InstanceSwap";
|
|
8998
8984
|
defaultValue: string;
|
|
8999
|
-
preferredValues: {
|
|
9000
|
-
type: "Component" | "ComponentSet";
|
|
9001
|
-
key: string;
|
|
9002
|
-
}[];
|
|
9003
8985
|
}>;
|
|
9004
8986
|
type DTOFigmaComponentInstanceSwapProperty = z.infer<typeof DTOFigmaComponentInstanceSwapProperty>;
|
|
9005
8987
|
declare const DTOFigmaComponentTextProperty: z.ZodObject<{
|
|
@@ -9039,30 +9021,12 @@ declare const DTOFigmaComponentProperty: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
9039
9021
|
}>, z.ZodObject<{
|
|
9040
9022
|
type: z.ZodLiteral<"InstanceSwap">;
|
|
9041
9023
|
defaultValue: z.ZodString;
|
|
9042
|
-
preferredValues: z.ZodArray<z.ZodObject<{
|
|
9043
|
-
type: z.ZodEnum<["Component", "ComponentSet"]>;
|
|
9044
|
-
key: z.ZodString;
|
|
9045
|
-
}, "strip", z.ZodTypeAny, {
|
|
9046
|
-
type: "Component" | "ComponentSet";
|
|
9047
|
-
key: string;
|
|
9048
|
-
}, {
|
|
9049
|
-
type: "Component" | "ComponentSet";
|
|
9050
|
-
key: string;
|
|
9051
|
-
}>, "many">;
|
|
9052
9024
|
}, "strip", z.ZodTypeAny, {
|
|
9053
9025
|
type: "InstanceSwap";
|
|
9054
9026
|
defaultValue: string;
|
|
9055
|
-
preferredValues: {
|
|
9056
|
-
type: "Component" | "ComponentSet";
|
|
9057
|
-
key: string;
|
|
9058
|
-
}[];
|
|
9059
9027
|
}, {
|
|
9060
9028
|
type: "InstanceSwap";
|
|
9061
9029
|
defaultValue: string;
|
|
9062
|
-
preferredValues: {
|
|
9063
|
-
type: "Component" | "ComponentSet";
|
|
9064
|
-
key: string;
|
|
9065
|
-
}[];
|
|
9066
9030
|
}>, z.ZodObject<{
|
|
9067
9031
|
type: z.ZodLiteral<"Text">;
|
|
9068
9032
|
defaultValue: z.ZodString;
|
|
@@ -9086,30 +9050,12 @@ declare const DTOFigmaComponentPropertyMap: z.ZodRecord<z.ZodString, z.ZodDiscri
|
|
|
9086
9050
|
}>, z.ZodObject<{
|
|
9087
9051
|
type: z.ZodLiteral<"InstanceSwap">;
|
|
9088
9052
|
defaultValue: z.ZodString;
|
|
9089
|
-
preferredValues: z.ZodArray<z.ZodObject<{
|
|
9090
|
-
type: z.ZodEnum<["Component", "ComponentSet"]>;
|
|
9091
|
-
key: z.ZodString;
|
|
9092
|
-
}, "strip", z.ZodTypeAny, {
|
|
9093
|
-
type: "Component" | "ComponentSet";
|
|
9094
|
-
key: string;
|
|
9095
|
-
}, {
|
|
9096
|
-
type: "Component" | "ComponentSet";
|
|
9097
|
-
key: string;
|
|
9098
|
-
}>, "many">;
|
|
9099
9053
|
}, "strip", z.ZodTypeAny, {
|
|
9100
9054
|
type: "InstanceSwap";
|
|
9101
9055
|
defaultValue: string;
|
|
9102
|
-
preferredValues: {
|
|
9103
|
-
type: "Component" | "ComponentSet";
|
|
9104
|
-
key: string;
|
|
9105
|
-
}[];
|
|
9106
9056
|
}, {
|
|
9107
9057
|
type: "InstanceSwap";
|
|
9108
9058
|
defaultValue: string;
|
|
9109
|
-
preferredValues: {
|
|
9110
|
-
type: "Component" | "ComponentSet";
|
|
9111
|
-
key: string;
|
|
9112
|
-
}[];
|
|
9113
9059
|
}>, z.ZodObject<{
|
|
9114
9060
|
type: z.ZodLiteral<"Text">;
|
|
9115
9061
|
defaultValue: z.ZodString;
|
|
@@ -9183,30 +9129,12 @@ declare const DTOFigmaComponent: z.ZodObject<{
|
|
|
9183
9129
|
}>, z.ZodObject<{
|
|
9184
9130
|
type: z.ZodLiteral<"InstanceSwap">;
|
|
9185
9131
|
defaultValue: z.ZodString;
|
|
9186
|
-
preferredValues: z.ZodArray<z.ZodObject<{
|
|
9187
|
-
type: z.ZodEnum<["Component", "ComponentSet"]>;
|
|
9188
|
-
key: z.ZodString;
|
|
9189
|
-
}, "strip", z.ZodTypeAny, {
|
|
9190
|
-
type: "Component" | "ComponentSet";
|
|
9191
|
-
key: string;
|
|
9192
|
-
}, {
|
|
9193
|
-
type: "Component" | "ComponentSet";
|
|
9194
|
-
key: string;
|
|
9195
|
-
}>, "many">;
|
|
9196
9132
|
}, "strip", z.ZodTypeAny, {
|
|
9197
9133
|
type: "InstanceSwap";
|
|
9198
9134
|
defaultValue: string;
|
|
9199
|
-
preferredValues: {
|
|
9200
|
-
type: "Component" | "ComponentSet";
|
|
9201
|
-
key: string;
|
|
9202
|
-
}[];
|
|
9203
9135
|
}, {
|
|
9204
9136
|
type: "InstanceSwap";
|
|
9205
9137
|
defaultValue: string;
|
|
9206
|
-
preferredValues: {
|
|
9207
|
-
type: "Component" | "ComponentSet";
|
|
9208
|
-
key: string;
|
|
9209
|
-
}[];
|
|
9210
9138
|
}>, z.ZodObject<{
|
|
9211
9139
|
type: z.ZodLiteral<"Text">;
|
|
9212
9140
|
defaultValue: z.ZodString;
|
|
@@ -9217,6 +9145,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
|
|
|
9217
9145
|
type: "Text";
|
|
9218
9146
|
defaultValue: string;
|
|
9219
9147
|
}>]>>>;
|
|
9148
|
+
childrenPersistentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9220
9149
|
}, "strip", z.ZodTypeAny, {
|
|
9221
9150
|
id: string;
|
|
9222
9151
|
persistentId: string;
|
|
@@ -9248,14 +9177,11 @@ declare const DTOFigmaComponent: z.ZodObject<{
|
|
|
9248
9177
|
} | {
|
|
9249
9178
|
type: "InstanceSwap";
|
|
9250
9179
|
defaultValue: string;
|
|
9251
|
-
preferredValues: {
|
|
9252
|
-
type: "Component" | "ComponentSet";
|
|
9253
|
-
key: string;
|
|
9254
|
-
}[];
|
|
9255
9180
|
} | {
|
|
9256
9181
|
type: "Text";
|
|
9257
9182
|
defaultValue: string;
|
|
9258
9183
|
}> | undefined;
|
|
9184
|
+
childrenPersistentIds?: string[] | undefined;
|
|
9259
9185
|
}, {
|
|
9260
9186
|
id: string;
|
|
9261
9187
|
persistentId: string;
|
|
@@ -9287,14 +9213,11 @@ declare const DTOFigmaComponent: z.ZodObject<{
|
|
|
9287
9213
|
} | {
|
|
9288
9214
|
type: "InstanceSwap";
|
|
9289
9215
|
defaultValue: string;
|
|
9290
|
-
preferredValues: {
|
|
9291
|
-
type: "Component" | "ComponentSet";
|
|
9292
|
-
key: string;
|
|
9293
|
-
}[];
|
|
9294
9216
|
} | {
|
|
9295
9217
|
type: "Text";
|
|
9296
9218
|
defaultValue: string;
|
|
9297
9219
|
}> | undefined;
|
|
9220
|
+
childrenPersistentIds?: string[] | undefined;
|
|
9298
9221
|
}>;
|
|
9299
9222
|
type DTOFigmaComponent = z.infer<typeof DTOFigmaComponent>;
|
|
9300
9223
|
declare const DTOFigmaComponentListResponse: z.ZodObject<{
|
|
@@ -9360,30 +9283,12 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
|
|
|
9360
9283
|
}>, z.ZodObject<{
|
|
9361
9284
|
type: z.ZodLiteral<"InstanceSwap">;
|
|
9362
9285
|
defaultValue: z.ZodString;
|
|
9363
|
-
preferredValues: z.ZodArray<z.ZodObject<{
|
|
9364
|
-
type: z.ZodEnum<["Component", "ComponentSet"]>;
|
|
9365
|
-
key: z.ZodString;
|
|
9366
|
-
}, "strip", z.ZodTypeAny, {
|
|
9367
|
-
type: "Component" | "ComponentSet";
|
|
9368
|
-
key: string;
|
|
9369
|
-
}, {
|
|
9370
|
-
type: "Component" | "ComponentSet";
|
|
9371
|
-
key: string;
|
|
9372
|
-
}>, "many">;
|
|
9373
9286
|
}, "strip", z.ZodTypeAny, {
|
|
9374
9287
|
type: "InstanceSwap";
|
|
9375
9288
|
defaultValue: string;
|
|
9376
|
-
preferredValues: {
|
|
9377
|
-
type: "Component" | "ComponentSet";
|
|
9378
|
-
key: string;
|
|
9379
|
-
}[];
|
|
9380
9289
|
}, {
|
|
9381
9290
|
type: "InstanceSwap";
|
|
9382
9291
|
defaultValue: string;
|
|
9383
|
-
preferredValues: {
|
|
9384
|
-
type: "Component" | "ComponentSet";
|
|
9385
|
-
key: string;
|
|
9386
|
-
}[];
|
|
9387
9292
|
}>, z.ZodObject<{
|
|
9388
9293
|
type: z.ZodLiteral<"Text">;
|
|
9389
9294
|
defaultValue: z.ZodString;
|
|
@@ -9394,6 +9299,7 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
|
|
|
9394
9299
|
type: "Text";
|
|
9395
9300
|
defaultValue: string;
|
|
9396
9301
|
}>]>>>;
|
|
9302
|
+
childrenPersistentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9397
9303
|
}, "strip", z.ZodTypeAny, {
|
|
9398
9304
|
id: string;
|
|
9399
9305
|
persistentId: string;
|
|
@@ -9425,14 +9331,11 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
|
|
|
9425
9331
|
} | {
|
|
9426
9332
|
type: "InstanceSwap";
|
|
9427
9333
|
defaultValue: string;
|
|
9428
|
-
preferredValues: {
|
|
9429
|
-
type: "Component" | "ComponentSet";
|
|
9430
|
-
key: string;
|
|
9431
|
-
}[];
|
|
9432
9334
|
} | {
|
|
9433
9335
|
type: "Text";
|
|
9434
9336
|
defaultValue: string;
|
|
9435
9337
|
}> | undefined;
|
|
9338
|
+
childrenPersistentIds?: string[] | undefined;
|
|
9436
9339
|
}, {
|
|
9437
9340
|
id: string;
|
|
9438
9341
|
persistentId: string;
|
|
@@ -9464,14 +9367,11 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
|
|
|
9464
9367
|
} | {
|
|
9465
9368
|
type: "InstanceSwap";
|
|
9466
9369
|
defaultValue: string;
|
|
9467
|
-
preferredValues: {
|
|
9468
|
-
type: "Component" | "ComponentSet";
|
|
9469
|
-
key: string;
|
|
9470
|
-
}[];
|
|
9471
9370
|
} | {
|
|
9472
9371
|
type: "Text";
|
|
9473
9372
|
defaultValue: string;
|
|
9474
9373
|
}> | undefined;
|
|
9374
|
+
childrenPersistentIds?: string[] | undefined;
|
|
9475
9375
|
}>, "many">;
|
|
9476
9376
|
}, "strip", z.ZodTypeAny, {
|
|
9477
9377
|
components: {
|
|
@@ -9505,14 +9405,11 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
|
|
|
9505
9405
|
} | {
|
|
9506
9406
|
type: "InstanceSwap";
|
|
9507
9407
|
defaultValue: string;
|
|
9508
|
-
preferredValues: {
|
|
9509
|
-
type: "Component" | "ComponentSet";
|
|
9510
|
-
key: string;
|
|
9511
|
-
}[];
|
|
9512
9408
|
} | {
|
|
9513
9409
|
type: "Text";
|
|
9514
9410
|
defaultValue: string;
|
|
9515
9411
|
}> | undefined;
|
|
9412
|
+
childrenPersistentIds?: string[] | undefined;
|
|
9516
9413
|
}[];
|
|
9517
9414
|
}, {
|
|
9518
9415
|
components: {
|
|
@@ -9546,14 +9443,11 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
|
|
|
9546
9443
|
} | {
|
|
9547
9444
|
type: "InstanceSwap";
|
|
9548
9445
|
defaultValue: string;
|
|
9549
|
-
preferredValues: {
|
|
9550
|
-
type: "Component" | "ComponentSet";
|
|
9551
|
-
key: string;
|
|
9552
|
-
}[];
|
|
9553
9446
|
} | {
|
|
9554
9447
|
type: "Text";
|
|
9555
9448
|
defaultValue: string;
|
|
9556
9449
|
}> | undefined;
|
|
9450
|
+
childrenPersistentIds?: string[] | undefined;
|
|
9557
9451
|
}[];
|
|
9558
9452
|
}>;
|
|
9559
9453
|
type DTOFigmaComponentListResponse = z.infer<typeof DTOFigmaComponentListResponse>;
|
package/dist/index.js
CHANGED
|
@@ -649,11 +649,7 @@ var FigmaComponentBooleanProperty = _zod.z.object({
|
|
|
649
649
|
});
|
|
650
650
|
var FigmaComponentInstanceSwapProperty = _zod.z.object({
|
|
651
651
|
type: _zod.z.literal(FigmaComponentPropertyType.enum.InstanceSwap),
|
|
652
|
-
defaultValue: _zod.z.string()
|
|
653
|
-
preferredValues: _zod.z.object({
|
|
654
|
-
type: _zod.z.enum(["Component", "ComponentSet"]),
|
|
655
|
-
key: _zod.z.string()
|
|
656
|
-
}).array()
|
|
652
|
+
defaultValue: _zod.z.string()
|
|
657
653
|
});
|
|
658
654
|
var FigmaComponentVariantProperty = _zod.z.object({
|
|
659
655
|
type: _zod.z.literal(FigmaComponentPropertyType.enum.Variant),
|
|
@@ -5635,7 +5631,8 @@ var DTOFigmaComponent = _zod.z.object({
|
|
|
5635
5631
|
meta: ObjectMeta,
|
|
5636
5632
|
originComponent: FigmaComponentOrigin.optional(),
|
|
5637
5633
|
parentComponentPersistentId: _zod.z.string().optional(),
|
|
5638
|
-
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional()
|
|
5634
|
+
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
5635
|
+
childrenPersistentIds: _zod.z.string().array().optional()
|
|
5639
5636
|
});
|
|
5640
5637
|
var DTOFigmaComponentListResponse = _zod.z.object({
|
|
5641
5638
|
components: DTOFigmaComponent.array()
|
|
@@ -10440,7 +10437,7 @@ var blocks = [
|
|
|
10440
10437
|
{
|
|
10441
10438
|
id: "io.supernova.block.do-dont-guidelines",
|
|
10442
10439
|
name: "Guidelines",
|
|
10443
|
-
description: "Do/Don
|
|
10440
|
+
description: "Do/Don't rules and best practices.",
|
|
10444
10441
|
category: "Guidelines",
|
|
10445
10442
|
icon: "https://cdn-assets.supernova.io/blocks/icons/guidelines.svg",
|
|
10446
10443
|
searchKeywords: ["dont", "caution", "rules"],
|
|
@@ -10480,16 +10477,16 @@ var blocks = [
|
|
|
10480
10477
|
icon: "Alert"
|
|
10481
10478
|
}
|
|
10482
10479
|
],
|
|
10483
|
-
singleSelectStyle: "
|
|
10480
|
+
singleSelectStyle: "ToggleButton"
|
|
10484
10481
|
}
|
|
10485
10482
|
},
|
|
10486
10483
|
{
|
|
10487
10484
|
id: "block.do-dont-guidelines.property.description",
|
|
10488
10485
|
name: "Description",
|
|
10489
|
-
type: "
|
|
10486
|
+
type: "RichTextEditor",
|
|
10490
10487
|
options: {
|
|
10491
|
-
|
|
10492
|
-
|
|
10488
|
+
allowedInlineStyles: ["Bold", "Italic", "Strikethrough", "UL", "OL", "Link", "InlineCode"],
|
|
10489
|
+
allowMultiline: true,
|
|
10493
10490
|
placeholder: "Add description"
|
|
10494
10491
|
}
|
|
10495
10492
|
}
|