@ufira/vibma 1.0.0 → 1.1.1
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/README.md +48 -18
- package/dist/mcp.cjs +4812 -321
- package/dist/mcp.js +4838 -319
- package/dist/tools/generated/guards.cjs +72 -3
- package/dist/tools/generated/guards.d.cts +19 -1
- package/dist/tools/generated/guards.d.ts +19 -1
- package/dist/tools/generated/guards.js +63 -3
- package/dist/tools/registry.cjs +224 -54
- package/dist/tools/registry.js +224 -54
- package/dist/tools/types.d.cts +2 -0
- package/dist/tools/types.d.ts +2 -0
- package/dist/utils/coercion.cjs +18 -2
- package/dist/utils/coercion.d.cts +9 -1
- package/dist/utils/coercion.d.ts +9 -1
- package/dist/utils/coercion.js +16 -1
- package/package.json +1 -1
|
@@ -19,6 +19,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
// src/tools/generated/guards.ts
|
|
20
20
|
var guards_exports = {};
|
|
21
21
|
__export(guards_exports, {
|
|
22
|
+
annotationsAdd: () => annotationsAdd,
|
|
23
|
+
annotationsGet: () => annotationsGet,
|
|
24
|
+
annotationsRemove: () => annotationsRemove,
|
|
25
|
+
annotationsSet: () => annotationsSet,
|
|
22
26
|
componentsCreateComponent: () => componentsCreateComponent,
|
|
23
27
|
componentsCreateFromNode: () => componentsCreateFromNode,
|
|
24
28
|
componentsCreateVariantSet: () => componentsCreateVariantSet,
|
|
@@ -40,10 +44,15 @@ __export(guards_exports, {
|
|
|
40
44
|
lintFix: () => lintFix,
|
|
41
45
|
mixinAutoLayoutParams: () => mixinAutoLayoutParams,
|
|
42
46
|
mixinBlendParams: () => mixinBlendParams,
|
|
47
|
+
mixinCornerParams: () => mixinCornerParams,
|
|
48
|
+
mixinFillParams: () => mixinFillParams,
|
|
43
49
|
mixinFrameParams: () => mixinFrameParams,
|
|
44
50
|
mixinGeometryParams: () => mixinGeometryParams,
|
|
51
|
+
mixinSceneParams: () => mixinSceneParams,
|
|
45
52
|
mixinSizingParams: () => mixinSizingParams,
|
|
53
|
+
mixinStrokeParams: () => mixinStrokeParams,
|
|
46
54
|
mixinTextParams: () => mixinTextParams,
|
|
55
|
+
mixinVectorStyleParams: () => mixinVectorStyleParams,
|
|
47
56
|
nodeClone: () => nodeClone,
|
|
48
57
|
nodeDelete: () => nodeDelete,
|
|
49
58
|
nodeReparent: () => nodeReparent,
|
|
@@ -68,9 +77,14 @@ __export(guards_exports, {
|
|
|
68
77
|
variablesUpdate: () => variablesUpdate
|
|
69
78
|
});
|
|
70
79
|
module.exports = __toCommonJS(guards_exports);
|
|
80
|
+
var annotationsGet = /* @__PURE__ */ new Set(["categoryId", "id"]);
|
|
81
|
+
var annotationsSet = /* @__PURE__ */ new Set(["annotations", "id"]);
|
|
82
|
+
var annotationsAdd = /* @__PURE__ */ new Set(["categoryId", "id", "label", "labelMarkdown", "properties"]);
|
|
83
|
+
var annotationsRemove = /* @__PURE__ */ new Set(["id", "index"]);
|
|
71
84
|
var nodeClone = /* @__PURE__ */ new Set(["id", "name", "parentId", "x", "y"]);
|
|
72
85
|
var nodeReparent = /* @__PURE__ */ new Set(["id", "index", "parentId"]);
|
|
73
86
|
var componentsCreateComponent = /* @__PURE__ */ new Set([
|
|
87
|
+
"annotations",
|
|
74
88
|
"blendMode",
|
|
75
89
|
"bottomLeftRadius",
|
|
76
90
|
"bottomRightRadius",
|
|
@@ -85,6 +99,8 @@ var componentsCreateComponent = /* @__PURE__ */ new Set([
|
|
|
85
99
|
"fillVariableName",
|
|
86
100
|
"fills",
|
|
87
101
|
"height",
|
|
102
|
+
"imageScaleMode",
|
|
103
|
+
"imageUrl",
|
|
88
104
|
"itemSpacing",
|
|
89
105
|
"layoutMode",
|
|
90
106
|
"layoutPositioning",
|
|
@@ -128,6 +144,7 @@ var componentsCreateComponent = /* @__PURE__ */ new Set([
|
|
|
128
144
|
]);
|
|
129
145
|
var componentsCreateFromNode = /* @__PURE__ */ new Set(["exposeText", "name", "nodeId"]);
|
|
130
146
|
var componentsCreateVariantSet = /* @__PURE__ */ new Set([
|
|
147
|
+
"annotations",
|
|
131
148
|
"blendMode",
|
|
132
149
|
"bottomLeftRadius",
|
|
133
150
|
"bottomRightRadius",
|
|
@@ -142,6 +159,8 @@ var componentsCreateVariantSet = /* @__PURE__ */ new Set([
|
|
|
142
159
|
"fillVariableName",
|
|
143
160
|
"fills",
|
|
144
161
|
"height",
|
|
162
|
+
"imageScaleMode",
|
|
163
|
+
"imageUrl",
|
|
145
164
|
"itemSpacing",
|
|
146
165
|
"layoutMode",
|
|
147
166
|
"layoutPositioning",
|
|
@@ -193,6 +212,7 @@ var componentsUpdate = /* @__PURE__ */ new Set([
|
|
|
193
212
|
"type"
|
|
194
213
|
]);
|
|
195
214
|
var nodeUpdate = /* @__PURE__ */ new Set([
|
|
215
|
+
"annotations",
|
|
196
216
|
"bindings",
|
|
197
217
|
"blendMode",
|
|
198
218
|
"bottomLeftRadius",
|
|
@@ -219,6 +239,8 @@ var nodeUpdate = /* @__PURE__ */ new Set([
|
|
|
219
239
|
"fontWeight",
|
|
220
240
|
"height",
|
|
221
241
|
"id",
|
|
242
|
+
"imageScaleMode",
|
|
243
|
+
"imageUrl",
|
|
222
244
|
"itemSpacing",
|
|
223
245
|
"layoutMode",
|
|
224
246
|
"layoutPositioning",
|
|
@@ -270,6 +292,7 @@ var nodeUpdate = /* @__PURE__ */ new Set([
|
|
|
270
292
|
]);
|
|
271
293
|
var nodeDelete = /* @__PURE__ */ new Set(["id"]);
|
|
272
294
|
var framesCreateFrame = /* @__PURE__ */ new Set([
|
|
295
|
+
"annotations",
|
|
273
296
|
"blendMode",
|
|
274
297
|
"bottomLeftRadius",
|
|
275
298
|
"bottomRightRadius",
|
|
@@ -284,6 +307,8 @@ var framesCreateFrame = /* @__PURE__ */ new Set([
|
|
|
284
307
|
"fillVariableName",
|
|
285
308
|
"fills",
|
|
286
309
|
"height",
|
|
310
|
+
"imageScaleMode",
|
|
311
|
+
"imageUrl",
|
|
287
312
|
"itemSpacing",
|
|
288
313
|
"layoutMode",
|
|
289
314
|
"layoutPositioning",
|
|
@@ -325,6 +350,7 @@ var framesCreateFrame = /* @__PURE__ */ new Set([
|
|
|
325
350
|
"y"
|
|
326
351
|
]);
|
|
327
352
|
var framesCreateAutoLayout = /* @__PURE__ */ new Set([
|
|
353
|
+
"annotations",
|
|
328
354
|
"blendMode",
|
|
329
355
|
"bottomLeftRadius",
|
|
330
356
|
"bottomRightRadius",
|
|
@@ -339,6 +365,8 @@ var framesCreateAutoLayout = /* @__PURE__ */ new Set([
|
|
|
339
365
|
"fillVariableName",
|
|
340
366
|
"fills",
|
|
341
367
|
"height",
|
|
368
|
+
"imageScaleMode",
|
|
369
|
+
"imageUrl",
|
|
342
370
|
"itemSpacing",
|
|
343
371
|
"layoutMode",
|
|
344
372
|
"layoutPositioning",
|
|
@@ -386,6 +414,8 @@ var framesCreateSection = /* @__PURE__ */ new Set([
|
|
|
386
414
|
"fillVariableName",
|
|
387
415
|
"fills",
|
|
388
416
|
"height",
|
|
417
|
+
"imageScaleMode",
|
|
418
|
+
"imageUrl",
|
|
389
419
|
"name",
|
|
390
420
|
"parentId",
|
|
391
421
|
"width",
|
|
@@ -393,6 +423,7 @@ var framesCreateSection = /* @__PURE__ */ new Set([
|
|
|
393
423
|
"y"
|
|
394
424
|
]);
|
|
395
425
|
var framesCreateRectangle = /* @__PURE__ */ new Set([
|
|
426
|
+
"annotations",
|
|
396
427
|
"bottomLeftRadius",
|
|
397
428
|
"bottomRightRadius",
|
|
398
429
|
"cornerRadius",
|
|
@@ -401,6 +432,8 @@ var framesCreateRectangle = /* @__PURE__ */ new Set([
|
|
|
401
432
|
"fillVariableName",
|
|
402
433
|
"fills",
|
|
403
434
|
"height",
|
|
435
|
+
"imageScaleMode",
|
|
436
|
+
"imageUrl",
|
|
404
437
|
"layoutSizingHorizontal",
|
|
405
438
|
"layoutSizingVertical",
|
|
406
439
|
"name",
|
|
@@ -417,11 +450,14 @@ var framesCreateRectangle = /* @__PURE__ */ new Set([
|
|
|
417
450
|
"y"
|
|
418
451
|
]);
|
|
419
452
|
var framesCreateEllipse = /* @__PURE__ */ new Set([
|
|
453
|
+
"annotations",
|
|
420
454
|
"fillColor",
|
|
421
455
|
"fillStyleName",
|
|
422
456
|
"fillVariableName",
|
|
423
457
|
"fills",
|
|
424
458
|
"height",
|
|
459
|
+
"imageScaleMode",
|
|
460
|
+
"imageUrl",
|
|
425
461
|
"layoutSizingHorizontal",
|
|
426
462
|
"layoutSizingVertical",
|
|
427
463
|
"name",
|
|
@@ -436,6 +472,7 @@ var framesCreateEllipse = /* @__PURE__ */ new Set([
|
|
|
436
472
|
"y"
|
|
437
473
|
]);
|
|
438
474
|
var framesCreateLine = /* @__PURE__ */ new Set([
|
|
475
|
+
"annotations",
|
|
439
476
|
"layoutSizingHorizontal",
|
|
440
477
|
"length",
|
|
441
478
|
"name",
|
|
@@ -465,7 +502,10 @@ var framesCreateSvg = /* @__PURE__ */ new Set([
|
|
|
465
502
|
var instancesCreate = /* @__PURE__ */ new Set([
|
|
466
503
|
"blendMode",
|
|
467
504
|
"componentId",
|
|
505
|
+
"componentKey",
|
|
506
|
+
"componentName",
|
|
468
507
|
"effectStyleName",
|
|
508
|
+
"explicitMode",
|
|
469
509
|
"height",
|
|
470
510
|
"layoutPositioning",
|
|
471
511
|
"layoutSizingHorizontal",
|
|
@@ -621,6 +661,7 @@ var stylesUpdate = /* @__PURE__ */ new Set([
|
|
|
621
661
|
]);
|
|
622
662
|
var stylesDelete = /* @__PURE__ */ new Set(["id"]);
|
|
623
663
|
var textCreate = /* @__PURE__ */ new Set([
|
|
664
|
+
"annotations",
|
|
624
665
|
"componentId",
|
|
625
666
|
"componentPropertyName",
|
|
626
667
|
"fills",
|
|
@@ -670,10 +711,14 @@ var mixinAutoLayoutParams = /* @__PURE__ */ new Set([
|
|
|
670
711
|
"paddingLeft",
|
|
671
712
|
"paddingRight",
|
|
672
713
|
"paddingTop",
|
|
673
|
-
"primaryAxisAlignItems"
|
|
714
|
+
"primaryAxisAlignItems",
|
|
715
|
+
"strokesIncludedInLayout"
|
|
674
716
|
]);
|
|
675
|
-
var mixinBlendParams = /* @__PURE__ */ new Set(["blendMode", "effectStyleName", "
|
|
717
|
+
var mixinBlendParams = /* @__PURE__ */ new Set(["blendMode", "effectStyleName", "opacity"]);
|
|
718
|
+
var mixinCornerParams = /* @__PURE__ */ new Set(["bottomLeftRadius", "bottomRightRadius", "cornerRadius", "topLeftRadius", "topRightRadius"]);
|
|
719
|
+
var mixinFillParams = /* @__PURE__ */ new Set(["fillColor", "fillStyleName", "fillVariableName", "fills", "imageScaleMode", "imageUrl"]);
|
|
676
720
|
var mixinFrameParams = /* @__PURE__ */ new Set([
|
|
721
|
+
"annotations",
|
|
677
722
|
"blendMode",
|
|
678
723
|
"bottomLeftRadius",
|
|
679
724
|
"bottomRightRadius",
|
|
@@ -686,6 +731,8 @@ var mixinFrameParams = /* @__PURE__ */ new Set([
|
|
|
686
731
|
"fillVariableName",
|
|
687
732
|
"fills",
|
|
688
733
|
"height",
|
|
734
|
+
"imageScaleMode",
|
|
735
|
+
"imageUrl",
|
|
689
736
|
"itemSpacing",
|
|
690
737
|
"layoutMode",
|
|
691
738
|
"layoutPositioning",
|
|
@@ -744,10 +791,10 @@ var mixinGeometryParams = /* @__PURE__ */ new Set([
|
|
|
744
791
|
"strokeVariableName",
|
|
745
792
|
"strokeWeight",
|
|
746
793
|
"strokes",
|
|
747
|
-
"strokesIncludedInLayout",
|
|
748
794
|
"topLeftRadius",
|
|
749
795
|
"topRightRadius"
|
|
750
796
|
]);
|
|
797
|
+
var mixinSceneParams = /* @__PURE__ */ new Set(["locked", "visible"]);
|
|
751
798
|
var mixinSizingParams = /* @__PURE__ */ new Set([
|
|
752
799
|
"layoutPositioning",
|
|
753
800
|
"layoutSizingHorizontal",
|
|
@@ -757,6 +804,18 @@ var mixinSizingParams = /* @__PURE__ */ new Set([
|
|
|
757
804
|
"minHeight",
|
|
758
805
|
"minWidth"
|
|
759
806
|
]);
|
|
807
|
+
var mixinStrokeParams = /* @__PURE__ */ new Set([
|
|
808
|
+
"strokeAlign",
|
|
809
|
+
"strokeBottomWeight",
|
|
810
|
+
"strokeColor",
|
|
811
|
+
"strokeLeftWeight",
|
|
812
|
+
"strokeRightWeight",
|
|
813
|
+
"strokeStyleName",
|
|
814
|
+
"strokeTopWeight",
|
|
815
|
+
"strokeVariableName",
|
|
816
|
+
"strokeWeight",
|
|
817
|
+
"strokes"
|
|
818
|
+
]);
|
|
760
819
|
var mixinTextParams = /* @__PURE__ */ new Set([
|
|
761
820
|
"fontColor",
|
|
762
821
|
"fontColorStyleName",
|
|
@@ -775,8 +834,13 @@ var mixinTextParams = /* @__PURE__ */ new Set([
|
|
|
775
834
|
"textStyleId",
|
|
776
835
|
"textStyleName"
|
|
777
836
|
]);
|
|
837
|
+
var mixinVectorStyleParams = /* @__PURE__ */ new Set(["fillStyleName", "fillVariableName", "strokeStyleName", "strokeVariableName"]);
|
|
778
838
|
// Annotate the CommonJS export names for ESM import in node:
|
|
779
839
|
0 && (module.exports = {
|
|
840
|
+
annotationsAdd,
|
|
841
|
+
annotationsGet,
|
|
842
|
+
annotationsRemove,
|
|
843
|
+
annotationsSet,
|
|
780
844
|
componentsCreateComponent,
|
|
781
845
|
componentsCreateFromNode,
|
|
782
846
|
componentsCreateVariantSet,
|
|
@@ -798,10 +862,15 @@ var mixinTextParams = /* @__PURE__ */ new Set([
|
|
|
798
862
|
lintFix,
|
|
799
863
|
mixinAutoLayoutParams,
|
|
800
864
|
mixinBlendParams,
|
|
865
|
+
mixinCornerParams,
|
|
866
|
+
mixinFillParams,
|
|
801
867
|
mixinFrameParams,
|
|
802
868
|
mixinGeometryParams,
|
|
869
|
+
mixinSceneParams,
|
|
803
870
|
mixinSizingParams,
|
|
871
|
+
mixinStrokeParams,
|
|
804
872
|
mixinTextParams,
|
|
873
|
+
mixinVectorStyleParams,
|
|
805
874
|
nodeClone,
|
|
806
875
|
nodeDelete,
|
|
807
876
|
nodeReparent,
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/** annotations.get item params */
|
|
2
|
+
declare const annotationsGet: ReadonlySet<string>;
|
|
3
|
+
/** annotations.set item params */
|
|
4
|
+
declare const annotationsSet: ReadonlySet<string>;
|
|
5
|
+
/** annotations.add item params */
|
|
6
|
+
declare const annotationsAdd: ReadonlySet<string>;
|
|
7
|
+
/** annotations.remove item params */
|
|
8
|
+
declare const annotationsRemove: ReadonlySet<string>;
|
|
1
9
|
/** node.clone item params */
|
|
2
10
|
declare const nodeClone: ReadonlySet<string>;
|
|
3
11
|
/** node.reparent item params */
|
|
@@ -84,13 +92,23 @@ declare const variablesDelete: ReadonlySet<string>;
|
|
|
84
92
|
declare const mixinAutoLayoutParams: ReadonlySet<string>;
|
|
85
93
|
/** blend_params */
|
|
86
94
|
declare const mixinBlendParams: ReadonlySet<string>;
|
|
95
|
+
/** corner_params */
|
|
96
|
+
declare const mixinCornerParams: ReadonlySet<string>;
|
|
97
|
+
/** fill_params */
|
|
98
|
+
declare const mixinFillParams: ReadonlySet<string>;
|
|
87
99
|
/** frame_params */
|
|
88
100
|
declare const mixinFrameParams: ReadonlySet<string>;
|
|
89
101
|
/** geometry_params */
|
|
90
102
|
declare const mixinGeometryParams: ReadonlySet<string>;
|
|
103
|
+
/** scene_params */
|
|
104
|
+
declare const mixinSceneParams: ReadonlySet<string>;
|
|
91
105
|
/** sizing_params */
|
|
92
106
|
declare const mixinSizingParams: ReadonlySet<string>;
|
|
107
|
+
/** stroke_params */
|
|
108
|
+
declare const mixinStrokeParams: ReadonlySet<string>;
|
|
93
109
|
/** text_params */
|
|
94
110
|
declare const mixinTextParams: ReadonlySet<string>;
|
|
111
|
+
/** vector_style_params */
|
|
112
|
+
declare const mixinVectorStyleParams: ReadonlySet<string>;
|
|
95
113
|
|
|
96
|
-
export { componentsCreateComponent, componentsCreateFromNode, componentsCreateVariantSet, componentsUpdate, framesCreateAutoLayout, framesCreateBooleanOperation, framesCreateEllipse, framesCreateFrame, framesCreateGroup, framesCreateLine, framesCreateRectangle, framesCreateSection, framesCreateSvg, instancesCreate, instancesDetach, instancesResetOverrides, instancesSwap, instancesUpdate, lintFix, mixinAutoLayoutParams, mixinBlendParams, mixinFrameParams, mixinGeometryParams, mixinSizingParams, mixinTextParams, nodeClone, nodeDelete, nodeReparent, nodeUpdate, prototypingAdd, stylesCreateEffect, stylesCreateGrid, stylesCreatePaint, stylesCreateText, stylesDelete, stylesUpdate, textCreate, textSetContent, variableCollectionsAddMode, variableCollectionsCreate, variableCollectionsDelete, variableCollectionsRemoveMode, variableCollectionsRenameMode, variableCollectionsUpdate, variablesCreate, variablesDelete, variablesUpdate };
|
|
114
|
+
export { annotationsAdd, annotationsGet, annotationsRemove, annotationsSet, componentsCreateComponent, componentsCreateFromNode, componentsCreateVariantSet, componentsUpdate, framesCreateAutoLayout, framesCreateBooleanOperation, framesCreateEllipse, framesCreateFrame, framesCreateGroup, framesCreateLine, framesCreateRectangle, framesCreateSection, framesCreateSvg, instancesCreate, instancesDetach, instancesResetOverrides, instancesSwap, instancesUpdate, lintFix, mixinAutoLayoutParams, mixinBlendParams, mixinCornerParams, mixinFillParams, mixinFrameParams, mixinGeometryParams, mixinSceneParams, mixinSizingParams, mixinStrokeParams, mixinTextParams, mixinVectorStyleParams, nodeClone, nodeDelete, nodeReparent, nodeUpdate, prototypingAdd, stylesCreateEffect, stylesCreateGrid, stylesCreatePaint, stylesCreateText, stylesDelete, stylesUpdate, textCreate, textSetContent, variableCollectionsAddMode, variableCollectionsCreate, variableCollectionsDelete, variableCollectionsRemoveMode, variableCollectionsRenameMode, variableCollectionsUpdate, variablesCreate, variablesDelete, variablesUpdate };
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/** annotations.get item params */
|
|
2
|
+
declare const annotationsGet: ReadonlySet<string>;
|
|
3
|
+
/** annotations.set item params */
|
|
4
|
+
declare const annotationsSet: ReadonlySet<string>;
|
|
5
|
+
/** annotations.add item params */
|
|
6
|
+
declare const annotationsAdd: ReadonlySet<string>;
|
|
7
|
+
/** annotations.remove item params */
|
|
8
|
+
declare const annotationsRemove: ReadonlySet<string>;
|
|
1
9
|
/** node.clone item params */
|
|
2
10
|
declare const nodeClone: ReadonlySet<string>;
|
|
3
11
|
/** node.reparent item params */
|
|
@@ -84,13 +92,23 @@ declare const variablesDelete: ReadonlySet<string>;
|
|
|
84
92
|
declare const mixinAutoLayoutParams: ReadonlySet<string>;
|
|
85
93
|
/** blend_params */
|
|
86
94
|
declare const mixinBlendParams: ReadonlySet<string>;
|
|
95
|
+
/** corner_params */
|
|
96
|
+
declare const mixinCornerParams: ReadonlySet<string>;
|
|
97
|
+
/** fill_params */
|
|
98
|
+
declare const mixinFillParams: ReadonlySet<string>;
|
|
87
99
|
/** frame_params */
|
|
88
100
|
declare const mixinFrameParams: ReadonlySet<string>;
|
|
89
101
|
/** geometry_params */
|
|
90
102
|
declare const mixinGeometryParams: ReadonlySet<string>;
|
|
103
|
+
/** scene_params */
|
|
104
|
+
declare const mixinSceneParams: ReadonlySet<string>;
|
|
91
105
|
/** sizing_params */
|
|
92
106
|
declare const mixinSizingParams: ReadonlySet<string>;
|
|
107
|
+
/** stroke_params */
|
|
108
|
+
declare const mixinStrokeParams: ReadonlySet<string>;
|
|
93
109
|
/** text_params */
|
|
94
110
|
declare const mixinTextParams: ReadonlySet<string>;
|
|
111
|
+
/** vector_style_params */
|
|
112
|
+
declare const mixinVectorStyleParams: ReadonlySet<string>;
|
|
95
113
|
|
|
96
|
-
export { componentsCreateComponent, componentsCreateFromNode, componentsCreateVariantSet, componentsUpdate, framesCreateAutoLayout, framesCreateBooleanOperation, framesCreateEllipse, framesCreateFrame, framesCreateGroup, framesCreateLine, framesCreateRectangle, framesCreateSection, framesCreateSvg, instancesCreate, instancesDetach, instancesResetOverrides, instancesSwap, instancesUpdate, lintFix, mixinAutoLayoutParams, mixinBlendParams, mixinFrameParams, mixinGeometryParams, mixinSizingParams, mixinTextParams, nodeClone, nodeDelete, nodeReparent, nodeUpdate, prototypingAdd, stylesCreateEffect, stylesCreateGrid, stylesCreatePaint, stylesCreateText, stylesDelete, stylesUpdate, textCreate, textSetContent, variableCollectionsAddMode, variableCollectionsCreate, variableCollectionsDelete, variableCollectionsRemoveMode, variableCollectionsRenameMode, variableCollectionsUpdate, variablesCreate, variablesDelete, variablesUpdate };
|
|
114
|
+
export { annotationsAdd, annotationsGet, annotationsRemove, annotationsSet, componentsCreateComponent, componentsCreateFromNode, componentsCreateVariantSet, componentsUpdate, framesCreateAutoLayout, framesCreateBooleanOperation, framesCreateEllipse, framesCreateFrame, framesCreateGroup, framesCreateLine, framesCreateRectangle, framesCreateSection, framesCreateSvg, instancesCreate, instancesDetach, instancesResetOverrides, instancesSwap, instancesUpdate, lintFix, mixinAutoLayoutParams, mixinBlendParams, mixinCornerParams, mixinFillParams, mixinFrameParams, mixinGeometryParams, mixinSceneParams, mixinSizingParams, mixinStrokeParams, mixinTextParams, mixinVectorStyleParams, nodeClone, nodeDelete, nodeReparent, nodeUpdate, prototypingAdd, stylesCreateEffect, stylesCreateGrid, stylesCreatePaint, stylesCreateText, stylesDelete, stylesUpdate, textCreate, textSetContent, variableCollectionsAddMode, variableCollectionsCreate, variableCollectionsDelete, variableCollectionsRemoveMode, variableCollectionsRenameMode, variableCollectionsUpdate, variablesCreate, variablesDelete, variablesUpdate };
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
// src/tools/generated/guards.ts
|
|
2
|
+
var annotationsGet = /* @__PURE__ */ new Set(["categoryId", "id"]);
|
|
3
|
+
var annotationsSet = /* @__PURE__ */ new Set(["annotations", "id"]);
|
|
4
|
+
var annotationsAdd = /* @__PURE__ */ new Set(["categoryId", "id", "label", "labelMarkdown", "properties"]);
|
|
5
|
+
var annotationsRemove = /* @__PURE__ */ new Set(["id", "index"]);
|
|
2
6
|
var nodeClone = /* @__PURE__ */ new Set(["id", "name", "parentId", "x", "y"]);
|
|
3
7
|
var nodeReparent = /* @__PURE__ */ new Set(["id", "index", "parentId"]);
|
|
4
8
|
var componentsCreateComponent = /* @__PURE__ */ new Set([
|
|
9
|
+
"annotations",
|
|
5
10
|
"blendMode",
|
|
6
11
|
"bottomLeftRadius",
|
|
7
12
|
"bottomRightRadius",
|
|
@@ -16,6 +21,8 @@ var componentsCreateComponent = /* @__PURE__ */ new Set([
|
|
|
16
21
|
"fillVariableName",
|
|
17
22
|
"fills",
|
|
18
23
|
"height",
|
|
24
|
+
"imageScaleMode",
|
|
25
|
+
"imageUrl",
|
|
19
26
|
"itemSpacing",
|
|
20
27
|
"layoutMode",
|
|
21
28
|
"layoutPositioning",
|
|
@@ -59,6 +66,7 @@ var componentsCreateComponent = /* @__PURE__ */ new Set([
|
|
|
59
66
|
]);
|
|
60
67
|
var componentsCreateFromNode = /* @__PURE__ */ new Set(["exposeText", "name", "nodeId"]);
|
|
61
68
|
var componentsCreateVariantSet = /* @__PURE__ */ new Set([
|
|
69
|
+
"annotations",
|
|
62
70
|
"blendMode",
|
|
63
71
|
"bottomLeftRadius",
|
|
64
72
|
"bottomRightRadius",
|
|
@@ -73,6 +81,8 @@ var componentsCreateVariantSet = /* @__PURE__ */ new Set([
|
|
|
73
81
|
"fillVariableName",
|
|
74
82
|
"fills",
|
|
75
83
|
"height",
|
|
84
|
+
"imageScaleMode",
|
|
85
|
+
"imageUrl",
|
|
76
86
|
"itemSpacing",
|
|
77
87
|
"layoutMode",
|
|
78
88
|
"layoutPositioning",
|
|
@@ -124,6 +134,7 @@ var componentsUpdate = /* @__PURE__ */ new Set([
|
|
|
124
134
|
"type"
|
|
125
135
|
]);
|
|
126
136
|
var nodeUpdate = /* @__PURE__ */ new Set([
|
|
137
|
+
"annotations",
|
|
127
138
|
"bindings",
|
|
128
139
|
"blendMode",
|
|
129
140
|
"bottomLeftRadius",
|
|
@@ -150,6 +161,8 @@ var nodeUpdate = /* @__PURE__ */ new Set([
|
|
|
150
161
|
"fontWeight",
|
|
151
162
|
"height",
|
|
152
163
|
"id",
|
|
164
|
+
"imageScaleMode",
|
|
165
|
+
"imageUrl",
|
|
153
166
|
"itemSpacing",
|
|
154
167
|
"layoutMode",
|
|
155
168
|
"layoutPositioning",
|
|
@@ -201,6 +214,7 @@ var nodeUpdate = /* @__PURE__ */ new Set([
|
|
|
201
214
|
]);
|
|
202
215
|
var nodeDelete = /* @__PURE__ */ new Set(["id"]);
|
|
203
216
|
var framesCreateFrame = /* @__PURE__ */ new Set([
|
|
217
|
+
"annotations",
|
|
204
218
|
"blendMode",
|
|
205
219
|
"bottomLeftRadius",
|
|
206
220
|
"bottomRightRadius",
|
|
@@ -215,6 +229,8 @@ var framesCreateFrame = /* @__PURE__ */ new Set([
|
|
|
215
229
|
"fillVariableName",
|
|
216
230
|
"fills",
|
|
217
231
|
"height",
|
|
232
|
+
"imageScaleMode",
|
|
233
|
+
"imageUrl",
|
|
218
234
|
"itemSpacing",
|
|
219
235
|
"layoutMode",
|
|
220
236
|
"layoutPositioning",
|
|
@@ -256,6 +272,7 @@ var framesCreateFrame = /* @__PURE__ */ new Set([
|
|
|
256
272
|
"y"
|
|
257
273
|
]);
|
|
258
274
|
var framesCreateAutoLayout = /* @__PURE__ */ new Set([
|
|
275
|
+
"annotations",
|
|
259
276
|
"blendMode",
|
|
260
277
|
"bottomLeftRadius",
|
|
261
278
|
"bottomRightRadius",
|
|
@@ -270,6 +287,8 @@ var framesCreateAutoLayout = /* @__PURE__ */ new Set([
|
|
|
270
287
|
"fillVariableName",
|
|
271
288
|
"fills",
|
|
272
289
|
"height",
|
|
290
|
+
"imageScaleMode",
|
|
291
|
+
"imageUrl",
|
|
273
292
|
"itemSpacing",
|
|
274
293
|
"layoutMode",
|
|
275
294
|
"layoutPositioning",
|
|
@@ -317,6 +336,8 @@ var framesCreateSection = /* @__PURE__ */ new Set([
|
|
|
317
336
|
"fillVariableName",
|
|
318
337
|
"fills",
|
|
319
338
|
"height",
|
|
339
|
+
"imageScaleMode",
|
|
340
|
+
"imageUrl",
|
|
320
341
|
"name",
|
|
321
342
|
"parentId",
|
|
322
343
|
"width",
|
|
@@ -324,6 +345,7 @@ var framesCreateSection = /* @__PURE__ */ new Set([
|
|
|
324
345
|
"y"
|
|
325
346
|
]);
|
|
326
347
|
var framesCreateRectangle = /* @__PURE__ */ new Set([
|
|
348
|
+
"annotations",
|
|
327
349
|
"bottomLeftRadius",
|
|
328
350
|
"bottomRightRadius",
|
|
329
351
|
"cornerRadius",
|
|
@@ -332,6 +354,8 @@ var framesCreateRectangle = /* @__PURE__ */ new Set([
|
|
|
332
354
|
"fillVariableName",
|
|
333
355
|
"fills",
|
|
334
356
|
"height",
|
|
357
|
+
"imageScaleMode",
|
|
358
|
+
"imageUrl",
|
|
335
359
|
"layoutSizingHorizontal",
|
|
336
360
|
"layoutSizingVertical",
|
|
337
361
|
"name",
|
|
@@ -348,11 +372,14 @@ var framesCreateRectangle = /* @__PURE__ */ new Set([
|
|
|
348
372
|
"y"
|
|
349
373
|
]);
|
|
350
374
|
var framesCreateEllipse = /* @__PURE__ */ new Set([
|
|
375
|
+
"annotations",
|
|
351
376
|
"fillColor",
|
|
352
377
|
"fillStyleName",
|
|
353
378
|
"fillVariableName",
|
|
354
379
|
"fills",
|
|
355
380
|
"height",
|
|
381
|
+
"imageScaleMode",
|
|
382
|
+
"imageUrl",
|
|
356
383
|
"layoutSizingHorizontal",
|
|
357
384
|
"layoutSizingVertical",
|
|
358
385
|
"name",
|
|
@@ -367,6 +394,7 @@ var framesCreateEllipse = /* @__PURE__ */ new Set([
|
|
|
367
394
|
"y"
|
|
368
395
|
]);
|
|
369
396
|
var framesCreateLine = /* @__PURE__ */ new Set([
|
|
397
|
+
"annotations",
|
|
370
398
|
"layoutSizingHorizontal",
|
|
371
399
|
"length",
|
|
372
400
|
"name",
|
|
@@ -396,7 +424,10 @@ var framesCreateSvg = /* @__PURE__ */ new Set([
|
|
|
396
424
|
var instancesCreate = /* @__PURE__ */ new Set([
|
|
397
425
|
"blendMode",
|
|
398
426
|
"componentId",
|
|
427
|
+
"componentKey",
|
|
428
|
+
"componentName",
|
|
399
429
|
"effectStyleName",
|
|
430
|
+
"explicitMode",
|
|
400
431
|
"height",
|
|
401
432
|
"layoutPositioning",
|
|
402
433
|
"layoutSizingHorizontal",
|
|
@@ -552,6 +583,7 @@ var stylesUpdate = /* @__PURE__ */ new Set([
|
|
|
552
583
|
]);
|
|
553
584
|
var stylesDelete = /* @__PURE__ */ new Set(["id"]);
|
|
554
585
|
var textCreate = /* @__PURE__ */ new Set([
|
|
586
|
+
"annotations",
|
|
555
587
|
"componentId",
|
|
556
588
|
"componentPropertyName",
|
|
557
589
|
"fills",
|
|
@@ -601,10 +633,14 @@ var mixinAutoLayoutParams = /* @__PURE__ */ new Set([
|
|
|
601
633
|
"paddingLeft",
|
|
602
634
|
"paddingRight",
|
|
603
635
|
"paddingTop",
|
|
604
|
-
"primaryAxisAlignItems"
|
|
636
|
+
"primaryAxisAlignItems",
|
|
637
|
+
"strokesIncludedInLayout"
|
|
605
638
|
]);
|
|
606
|
-
var mixinBlendParams = /* @__PURE__ */ new Set(["blendMode", "effectStyleName", "
|
|
639
|
+
var mixinBlendParams = /* @__PURE__ */ new Set(["blendMode", "effectStyleName", "opacity"]);
|
|
640
|
+
var mixinCornerParams = /* @__PURE__ */ new Set(["bottomLeftRadius", "bottomRightRadius", "cornerRadius", "topLeftRadius", "topRightRadius"]);
|
|
641
|
+
var mixinFillParams = /* @__PURE__ */ new Set(["fillColor", "fillStyleName", "fillVariableName", "fills", "imageScaleMode", "imageUrl"]);
|
|
607
642
|
var mixinFrameParams = /* @__PURE__ */ new Set([
|
|
643
|
+
"annotations",
|
|
608
644
|
"blendMode",
|
|
609
645
|
"bottomLeftRadius",
|
|
610
646
|
"bottomRightRadius",
|
|
@@ -617,6 +653,8 @@ var mixinFrameParams = /* @__PURE__ */ new Set([
|
|
|
617
653
|
"fillVariableName",
|
|
618
654
|
"fills",
|
|
619
655
|
"height",
|
|
656
|
+
"imageScaleMode",
|
|
657
|
+
"imageUrl",
|
|
620
658
|
"itemSpacing",
|
|
621
659
|
"layoutMode",
|
|
622
660
|
"layoutPositioning",
|
|
@@ -675,10 +713,10 @@ var mixinGeometryParams = /* @__PURE__ */ new Set([
|
|
|
675
713
|
"strokeVariableName",
|
|
676
714
|
"strokeWeight",
|
|
677
715
|
"strokes",
|
|
678
|
-
"strokesIncludedInLayout",
|
|
679
716
|
"topLeftRadius",
|
|
680
717
|
"topRightRadius"
|
|
681
718
|
]);
|
|
719
|
+
var mixinSceneParams = /* @__PURE__ */ new Set(["locked", "visible"]);
|
|
682
720
|
var mixinSizingParams = /* @__PURE__ */ new Set([
|
|
683
721
|
"layoutPositioning",
|
|
684
722
|
"layoutSizingHorizontal",
|
|
@@ -688,6 +726,18 @@ var mixinSizingParams = /* @__PURE__ */ new Set([
|
|
|
688
726
|
"minHeight",
|
|
689
727
|
"minWidth"
|
|
690
728
|
]);
|
|
729
|
+
var mixinStrokeParams = /* @__PURE__ */ new Set([
|
|
730
|
+
"strokeAlign",
|
|
731
|
+
"strokeBottomWeight",
|
|
732
|
+
"strokeColor",
|
|
733
|
+
"strokeLeftWeight",
|
|
734
|
+
"strokeRightWeight",
|
|
735
|
+
"strokeStyleName",
|
|
736
|
+
"strokeTopWeight",
|
|
737
|
+
"strokeVariableName",
|
|
738
|
+
"strokeWeight",
|
|
739
|
+
"strokes"
|
|
740
|
+
]);
|
|
691
741
|
var mixinTextParams = /* @__PURE__ */ new Set([
|
|
692
742
|
"fontColor",
|
|
693
743
|
"fontColorStyleName",
|
|
@@ -706,7 +756,12 @@ var mixinTextParams = /* @__PURE__ */ new Set([
|
|
|
706
756
|
"textStyleId",
|
|
707
757
|
"textStyleName"
|
|
708
758
|
]);
|
|
759
|
+
var mixinVectorStyleParams = /* @__PURE__ */ new Set(["fillStyleName", "fillVariableName", "strokeStyleName", "strokeVariableName"]);
|
|
709
760
|
export {
|
|
761
|
+
annotationsAdd,
|
|
762
|
+
annotationsGet,
|
|
763
|
+
annotationsRemove,
|
|
764
|
+
annotationsSet,
|
|
710
765
|
componentsCreateComponent,
|
|
711
766
|
componentsCreateFromNode,
|
|
712
767
|
componentsCreateVariantSet,
|
|
@@ -728,10 +783,15 @@ export {
|
|
|
728
783
|
lintFix,
|
|
729
784
|
mixinAutoLayoutParams,
|
|
730
785
|
mixinBlendParams,
|
|
786
|
+
mixinCornerParams,
|
|
787
|
+
mixinFillParams,
|
|
731
788
|
mixinFrameParams,
|
|
732
789
|
mixinGeometryParams,
|
|
790
|
+
mixinSceneParams,
|
|
733
791
|
mixinSizingParams,
|
|
792
|
+
mixinStrokeParams,
|
|
734
793
|
mixinTextParams,
|
|
794
|
+
mixinVectorStyleParams,
|
|
735
795
|
nodeClone,
|
|
736
796
|
nodeDelete,
|
|
737
797
|
nodeReparent,
|