@ufira/vibma 0.3.2 → 1.0.0-rc2

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.
@@ -0,0 +1,721 @@
1
+ // src/tools/generated/guards.ts
2
+ var nodeReparent = /* @__PURE__ */ new Set(["id", "index", "parentId"]);
3
+ var componentsCreateComponent = /* @__PURE__ */ new Set([
4
+ "blendMode",
5
+ "bottomLeftRadius",
6
+ "bottomRightRadius",
7
+ "children",
8
+ "cornerRadius",
9
+ "counterAxisAlignItems",
10
+ "counterAxisSpacing",
11
+ "description",
12
+ "effectStyleName",
13
+ "fillColor",
14
+ "fillStyleName",
15
+ "fillVariableName",
16
+ "fills",
17
+ "height",
18
+ "itemSpacing",
19
+ "layoutMode",
20
+ "layoutPositioning",
21
+ "layoutSizingHorizontal",
22
+ "layoutSizingVertical",
23
+ "layoutWrap",
24
+ "locked",
25
+ "maxHeight",
26
+ "maxWidth",
27
+ "minHeight",
28
+ "minWidth",
29
+ "name",
30
+ "opacity",
31
+ "overflowDirection",
32
+ "padding",
33
+ "paddingBottom",
34
+ "paddingLeft",
35
+ "paddingRight",
36
+ "paddingTop",
37
+ "parentId",
38
+ "primaryAxisAlignItems",
39
+ "properties",
40
+ "rotation",
41
+ "strokeAlign",
42
+ "strokeBottomWeight",
43
+ "strokeColor",
44
+ "strokeLeftWeight",
45
+ "strokeRightWeight",
46
+ "strokeStyleName",
47
+ "strokeTopWeight",
48
+ "strokeVariableName",
49
+ "strokeWeight",
50
+ "strokes",
51
+ "strokesIncludedInLayout",
52
+ "topLeftRadius",
53
+ "topRightRadius",
54
+ "visible",
55
+ "width",
56
+ "x",
57
+ "y"
58
+ ]);
59
+ var componentsCreateFromNode = /* @__PURE__ */ new Set(["exposeText", "nodeId"]);
60
+ var componentsCreateVariantSet = /* @__PURE__ */ new Set([
61
+ "blendMode",
62
+ "bottomLeftRadius",
63
+ "bottomRightRadius",
64
+ "children",
65
+ "componentIds",
66
+ "cornerRadius",
67
+ "counterAxisAlignItems",
68
+ "counterAxisSpacing",
69
+ "effectStyleName",
70
+ "fillColor",
71
+ "fillStyleName",
72
+ "fillVariableName",
73
+ "fills",
74
+ "height",
75
+ "itemSpacing",
76
+ "layoutMode",
77
+ "layoutPositioning",
78
+ "layoutSizingHorizontal",
79
+ "layoutSizingVertical",
80
+ "layoutWrap",
81
+ "locked",
82
+ "maxHeight",
83
+ "maxWidth",
84
+ "minHeight",
85
+ "minWidth",
86
+ "name",
87
+ "opacity",
88
+ "overflowDirection",
89
+ "padding",
90
+ "paddingBottom",
91
+ "paddingLeft",
92
+ "paddingRight",
93
+ "paddingTop",
94
+ "parentId",
95
+ "primaryAxisAlignItems",
96
+ "rotation",
97
+ "strokeAlign",
98
+ "strokeBottomWeight",
99
+ "strokeColor",
100
+ "strokeLeftWeight",
101
+ "strokeRightWeight",
102
+ "strokeStyleName",
103
+ "strokeTopWeight",
104
+ "strokeVariableName",
105
+ "strokeWeight",
106
+ "strokes",
107
+ "strokesIncludedInLayout",
108
+ "topLeftRadius",
109
+ "topRightRadius",
110
+ "variantPropertyName",
111
+ "visible",
112
+ "width",
113
+ "x",
114
+ "y"
115
+ ]);
116
+ var componentsUpdate = /* @__PURE__ */ new Set([
117
+ "action",
118
+ "defaultValue",
119
+ "id",
120
+ "name",
121
+ "preferredValues",
122
+ "propertyName",
123
+ "type"
124
+ ]);
125
+ var nodeUpdate = /* @__PURE__ */ new Set([
126
+ "bindings",
127
+ "blendMode",
128
+ "bottomLeftRadius",
129
+ "bottomRightRadius",
130
+ "clearFill",
131
+ "constraints",
132
+ "cornerRadius",
133
+ "counterAxisAlignItems",
134
+ "counterAxisSpacing",
135
+ "effectStyleName",
136
+ "effects",
137
+ "explicitMode",
138
+ "exportSettings",
139
+ "fillColor",
140
+ "fillStyleName",
141
+ "fillVariableName",
142
+ "fills",
143
+ "fontColor",
144
+ "fontColorStyleName",
145
+ "fontColorVariableName",
146
+ "fontFamily",
147
+ "fontSize",
148
+ "fontStyle",
149
+ "fontWeight",
150
+ "height",
151
+ "id",
152
+ "itemSpacing",
153
+ "layoutMode",
154
+ "layoutPositioning",
155
+ "layoutSizingHorizontal",
156
+ "layoutSizingVertical",
157
+ "layoutWrap",
158
+ "locked",
159
+ "maxHeight",
160
+ "maxWidth",
161
+ "minHeight",
162
+ "minWidth",
163
+ "name",
164
+ "opacity",
165
+ "overflowDirection",
166
+ "padding",
167
+ "paddingBottom",
168
+ "paddingLeft",
169
+ "paddingRight",
170
+ "paddingTop",
171
+ "primaryAxisAlignItems",
172
+ "properties",
173
+ "rotation",
174
+ "strokeAlign",
175
+ "strokeBottomWeight",
176
+ "strokeColor",
177
+ "strokeLeftWeight",
178
+ "strokeRightWeight",
179
+ "strokeStyleName",
180
+ "strokeTopWeight",
181
+ "strokeVariableName",
182
+ "strokeWeight",
183
+ "strokes",
184
+ "strokesIncludedInLayout",
185
+ "textAlignHorizontal",
186
+ "textAlignVertical",
187
+ "textAutoResize",
188
+ "textStyleId",
189
+ "textStyleName",
190
+ "topLeftRadius",
191
+ "topRightRadius",
192
+ "visible",
193
+ "width",
194
+ "x",
195
+ "y"
196
+ ]);
197
+ var nodeDelete = /* @__PURE__ */ new Set(["id"]);
198
+ var framesCreateFrame = /* @__PURE__ */ new Set([
199
+ "blendMode",
200
+ "bottomLeftRadius",
201
+ "bottomRightRadius",
202
+ "children",
203
+ "clipsContent",
204
+ "cornerRadius",
205
+ "counterAxisAlignItems",
206
+ "counterAxisSpacing",
207
+ "effectStyleName",
208
+ "fillColor",
209
+ "fillStyleName",
210
+ "fillVariableName",
211
+ "fills",
212
+ "height",
213
+ "itemSpacing",
214
+ "layoutMode",
215
+ "layoutPositioning",
216
+ "layoutSizingHorizontal",
217
+ "layoutSizingVertical",
218
+ "layoutWrap",
219
+ "locked",
220
+ "maxHeight",
221
+ "maxWidth",
222
+ "minHeight",
223
+ "minWidth",
224
+ "name",
225
+ "opacity",
226
+ "overflowDirection",
227
+ "padding",
228
+ "paddingBottom",
229
+ "paddingLeft",
230
+ "paddingRight",
231
+ "paddingTop",
232
+ "parentId",
233
+ "primaryAxisAlignItems",
234
+ "rotation",
235
+ "strokeAlign",
236
+ "strokeBottomWeight",
237
+ "strokeColor",
238
+ "strokeLeftWeight",
239
+ "strokeRightWeight",
240
+ "strokeStyleName",
241
+ "strokeTopWeight",
242
+ "strokeVariableName",
243
+ "strokeWeight",
244
+ "strokes",
245
+ "strokesIncludedInLayout",
246
+ "topLeftRadius",
247
+ "topRightRadius",
248
+ "visible",
249
+ "width",
250
+ "x",
251
+ "y"
252
+ ]);
253
+ var framesCreateAutoLayout = /* @__PURE__ */ new Set([
254
+ "blendMode",
255
+ "bottomLeftRadius",
256
+ "bottomRightRadius",
257
+ "children",
258
+ "clipsContent",
259
+ "cornerRadius",
260
+ "counterAxisAlignItems",
261
+ "counterAxisSpacing",
262
+ "effectStyleName",
263
+ "fillColor",
264
+ "fillStyleName",
265
+ "fillVariableName",
266
+ "fills",
267
+ "height",
268
+ "itemSpacing",
269
+ "layoutMode",
270
+ "layoutPositioning",
271
+ "layoutSizingHorizontal",
272
+ "layoutSizingVertical",
273
+ "layoutWrap",
274
+ "locked",
275
+ "maxHeight",
276
+ "maxWidth",
277
+ "minHeight",
278
+ "minWidth",
279
+ "name",
280
+ "nodeIds",
281
+ "opacity",
282
+ "overflowDirection",
283
+ "padding",
284
+ "paddingBottom",
285
+ "paddingLeft",
286
+ "paddingRight",
287
+ "paddingTop",
288
+ "parentId",
289
+ "primaryAxisAlignItems",
290
+ "rotation",
291
+ "strokeAlign",
292
+ "strokeBottomWeight",
293
+ "strokeColor",
294
+ "strokeLeftWeight",
295
+ "strokeRightWeight",
296
+ "strokeStyleName",
297
+ "strokeTopWeight",
298
+ "strokeVariableName",
299
+ "strokeWeight",
300
+ "strokes",
301
+ "strokesIncludedInLayout",
302
+ "topLeftRadius",
303
+ "topRightRadius",
304
+ "visible",
305
+ "width",
306
+ "x",
307
+ "y"
308
+ ]);
309
+ var framesCreateSection = /* @__PURE__ */ new Set([
310
+ "fillColor",
311
+ "fillStyleName",
312
+ "fillVariableName",
313
+ "fills",
314
+ "height",
315
+ "name",
316
+ "parentId",
317
+ "width",
318
+ "x",
319
+ "y"
320
+ ]);
321
+ var framesCreateRectangle = /* @__PURE__ */ new Set([
322
+ "bottomLeftRadius",
323
+ "bottomRightRadius",
324
+ "cornerRadius",
325
+ "fillColor",
326
+ "fillStyleName",
327
+ "fillVariableName",
328
+ "fills",
329
+ "height",
330
+ "layoutSizingHorizontal",
331
+ "layoutSizingVertical",
332
+ "name",
333
+ "opacity",
334
+ "parentId",
335
+ "strokeColor",
336
+ "strokeVariableName",
337
+ "strokeWeight",
338
+ "strokes",
339
+ "topLeftRadius",
340
+ "topRightRadius",
341
+ "width",
342
+ "x",
343
+ "y"
344
+ ]);
345
+ var framesCreateEllipse = /* @__PURE__ */ new Set([
346
+ "fillColor",
347
+ "fillStyleName",
348
+ "fillVariableName",
349
+ "fills",
350
+ "height",
351
+ "layoutSizingHorizontal",
352
+ "layoutSizingVertical",
353
+ "name",
354
+ "opacity",
355
+ "parentId",
356
+ "strokeColor",
357
+ "strokeVariableName",
358
+ "strokeWeight",
359
+ "strokes",
360
+ "width",
361
+ "x",
362
+ "y"
363
+ ]);
364
+ var framesCreateLine = /* @__PURE__ */ new Set([
365
+ "layoutSizingHorizontal",
366
+ "length",
367
+ "name",
368
+ "opacity",
369
+ "parentId",
370
+ "rotation",
371
+ "strokeColor",
372
+ "strokeVariableName",
373
+ "strokeWeight",
374
+ "strokes",
375
+ "x",
376
+ "y"
377
+ ]);
378
+ var framesCreateGroup = /* @__PURE__ */ new Set(["name", "nodeIds", "parentId"]);
379
+ var framesCreateBooleanOperation = /* @__PURE__ */ new Set(["name", "nodeIds", "operation", "parentId"]);
380
+ var framesCreateSvg = /* @__PURE__ */ new Set([
381
+ "fillStyleName",
382
+ "fillVariableName",
383
+ "name",
384
+ "parentId",
385
+ "strokeStyleName",
386
+ "strokeVariableName",
387
+ "svg",
388
+ "x",
389
+ "y"
390
+ ]);
391
+ var instancesCreate = /* @__PURE__ */ new Set([
392
+ "blendMode",
393
+ "componentId",
394
+ "effectStyleName",
395
+ "height",
396
+ "layoutPositioning",
397
+ "layoutSizingHorizontal",
398
+ "layoutSizingVertical",
399
+ "locked",
400
+ "maxHeight",
401
+ "maxWidth",
402
+ "minHeight",
403
+ "minWidth",
404
+ "name",
405
+ "opacity",
406
+ "parentId",
407
+ "properties",
408
+ "variantProperties",
409
+ "visible",
410
+ "width",
411
+ "x",
412
+ "y"
413
+ ]);
414
+ var instancesUpdate = /* @__PURE__ */ new Set([
415
+ "bindings",
416
+ "blendMode",
417
+ "bottomLeftRadius",
418
+ "bottomRightRadius",
419
+ "clearFill",
420
+ "componentProperties",
421
+ "constraints",
422
+ "cornerRadius",
423
+ "counterAxisAlignItems",
424
+ "counterAxisSpacing",
425
+ "effectStyleName",
426
+ "effects",
427
+ "explicitMode",
428
+ "exportSettings",
429
+ "fillColor",
430
+ "fillStyleName",
431
+ "fillVariableName",
432
+ "fills",
433
+ "fontColor",
434
+ "fontColorStyleName",
435
+ "fontColorVariableName",
436
+ "fontFamily",
437
+ "fontSize",
438
+ "fontStyle",
439
+ "fontWeight",
440
+ "height",
441
+ "id",
442
+ "itemSpacing",
443
+ "layoutMode",
444
+ "layoutPositioning",
445
+ "layoutSizingHorizontal",
446
+ "layoutSizingVertical",
447
+ "layoutWrap",
448
+ "locked",
449
+ "maxHeight",
450
+ "maxWidth",
451
+ "minHeight",
452
+ "minWidth",
453
+ "name",
454
+ "opacity",
455
+ "padding",
456
+ "paddingBottom",
457
+ "paddingLeft",
458
+ "paddingRight",
459
+ "paddingTop",
460
+ "primaryAxisAlignItems",
461
+ "properties",
462
+ "rotation",
463
+ "strokeAlign",
464
+ "strokeBottomWeight",
465
+ "strokeColor",
466
+ "strokeLeftWeight",
467
+ "strokeRightWeight",
468
+ "strokeStyleName",
469
+ "strokeTopWeight",
470
+ "strokeVariableName",
471
+ "strokeWeight",
472
+ "strokes",
473
+ "strokesIncludedInLayout",
474
+ "textAlignHorizontal",
475
+ "textAlignVertical",
476
+ "textAutoResize",
477
+ "textStyleId",
478
+ "textStyleName",
479
+ "topLeftRadius",
480
+ "topRightRadius",
481
+ "visible",
482
+ "width",
483
+ "x",
484
+ "y"
485
+ ]);
486
+ var instancesSwap = /* @__PURE__ */ new Set(["componentId", "id"]);
487
+ var instancesDetach = /* @__PURE__ */ new Set(["id"]);
488
+ var instancesResetOverrides = /* @__PURE__ */ new Set(["id"]);
489
+ var lintFix = /* @__PURE__ */ new Set(["itemSpacing", "layoutMode", "nodeId"]);
490
+ var stylesCreatePaint = /* @__PURE__ */ new Set(["color", "colorVariableName", "description", "name"]);
491
+ var stylesCreateText = /* @__PURE__ */ new Set([
492
+ "description",
493
+ "fontFamily",
494
+ "fontSize",
495
+ "fontStyle",
496
+ "leadingTrim",
497
+ "letterSpacing",
498
+ "lineHeight",
499
+ "name",
500
+ "paragraphIndent",
501
+ "paragraphSpacing",
502
+ "textCase",
503
+ "textDecoration"
504
+ ]);
505
+ var stylesCreateEffect = /* @__PURE__ */ new Set(["description", "effects", "name"]);
506
+ var stylesCreateGrid = /* @__PURE__ */ new Set(["description", "layoutGrids", "name"]);
507
+ var stylesUpdate = /* @__PURE__ */ new Set([
508
+ "color",
509
+ "colorVariableName",
510
+ "description",
511
+ "effects",
512
+ "fontFamily",
513
+ "fontSize",
514
+ "fontStyle",
515
+ "id",
516
+ "layoutGrids",
517
+ "leadingTrim",
518
+ "letterSpacing",
519
+ "lineHeight",
520
+ "name",
521
+ "paragraphIndent",
522
+ "paragraphSpacing",
523
+ "textCase",
524
+ "textDecoration"
525
+ ]);
526
+ var stylesDelete = /* @__PURE__ */ new Set(["id"]);
527
+ var textCreate = /* @__PURE__ */ new Set([
528
+ "componentId",
529
+ "componentPropertyName",
530
+ "fills",
531
+ "fontColor",
532
+ "fontColorStyleName",
533
+ "fontColorVariableName",
534
+ "fontFamily",
535
+ "fontSize",
536
+ "fontStyle",
537
+ "fontWeight",
538
+ "layoutSizingHorizontal",
539
+ "layoutSizingVertical",
540
+ "name",
541
+ "parentId",
542
+ "text",
543
+ "textAlignHorizontal",
544
+ "textAlignVertical",
545
+ "textAutoResize",
546
+ "textStyleId",
547
+ "textStyleName",
548
+ "width",
549
+ "x",
550
+ "y"
551
+ ]);
552
+ var textSetContent = /* @__PURE__ */ new Set(["nodeId", "text"]);
553
+ var variableCollectionsCreate = /* @__PURE__ */ new Set(["modes", "name", "variables"]);
554
+ var variableCollectionsUpdate = /* @__PURE__ */ new Set(["id", "name"]);
555
+ var variableCollectionsDelete = /* @__PURE__ */ new Set(["id"]);
556
+ var variableCollectionsAddMode = /* @__PURE__ */ new Set(["collectionId", "name"]);
557
+ var variableCollectionsRenameMode = /* @__PURE__ */ new Set(["collectionId", "modeId", "name"]);
558
+ var variableCollectionsRemoveMode = /* @__PURE__ */ new Set(["collectionId", "modeId"]);
559
+ var variablesCreate = /* @__PURE__ */ new Set(["description", "name", "scopes", "type", "value", "valuesByMode"]);
560
+ var variablesUpdate = /* @__PURE__ */ new Set(["description", "name", "rename", "scopes", "value", "valuesByMode"]);
561
+ var variablesDelete = /* @__PURE__ */ new Set(["name"]);
562
+ var mixinAutoLayoutParams = /* @__PURE__ */ new Set([
563
+ "counterAxisAlignItems",
564
+ "counterAxisSpacing",
565
+ "itemSpacing",
566
+ "layoutMode",
567
+ "layoutWrap",
568
+ "padding",
569
+ "paddingBottom",
570
+ "paddingLeft",
571
+ "paddingRight",
572
+ "paddingTop",
573
+ "primaryAxisAlignItems"
574
+ ]);
575
+ var mixinBlendParams = /* @__PURE__ */ new Set(["blendMode", "effectStyleName", "locked", "opacity", "visible"]);
576
+ var mixinFrameParams = /* @__PURE__ */ new Set([
577
+ "blendMode",
578
+ "bottomLeftRadius",
579
+ "bottomRightRadius",
580
+ "cornerRadius",
581
+ "counterAxisAlignItems",
582
+ "counterAxisSpacing",
583
+ "effectStyleName",
584
+ "fillColor",
585
+ "fillStyleName",
586
+ "fillVariableName",
587
+ "fills",
588
+ "height",
589
+ "itemSpacing",
590
+ "layoutMode",
591
+ "layoutPositioning",
592
+ "layoutSizingHorizontal",
593
+ "layoutSizingVertical",
594
+ "layoutWrap",
595
+ "locked",
596
+ "maxHeight",
597
+ "maxWidth",
598
+ "minHeight",
599
+ "minWidth",
600
+ "name",
601
+ "opacity",
602
+ "overflowDirection",
603
+ "padding",
604
+ "paddingBottom",
605
+ "paddingLeft",
606
+ "paddingRight",
607
+ "paddingTop",
608
+ "parentId",
609
+ "primaryAxisAlignItems",
610
+ "rotation",
611
+ "strokeAlign",
612
+ "strokeBottomWeight",
613
+ "strokeColor",
614
+ "strokeLeftWeight",
615
+ "strokeRightWeight",
616
+ "strokeStyleName",
617
+ "strokeTopWeight",
618
+ "strokeVariableName",
619
+ "strokeWeight",
620
+ "strokes",
621
+ "strokesIncludedInLayout",
622
+ "topLeftRadius",
623
+ "topRightRadius",
624
+ "visible",
625
+ "width",
626
+ "x",
627
+ "y"
628
+ ]);
629
+ var mixinGeometryParams = /* @__PURE__ */ new Set([
630
+ "bottomLeftRadius",
631
+ "bottomRightRadius",
632
+ "cornerRadius",
633
+ "fillColor",
634
+ "fillStyleName",
635
+ "fillVariableName",
636
+ "fills",
637
+ "strokeAlign",
638
+ "strokeBottomWeight",
639
+ "strokeColor",
640
+ "strokeLeftWeight",
641
+ "strokeRightWeight",
642
+ "strokeStyleName",
643
+ "strokeTopWeight",
644
+ "strokeVariableName",
645
+ "strokeWeight",
646
+ "strokes",
647
+ "strokesIncludedInLayout",
648
+ "topLeftRadius",
649
+ "topRightRadius"
650
+ ]);
651
+ var mixinSizingParams = /* @__PURE__ */ new Set([
652
+ "layoutPositioning",
653
+ "layoutSizingHorizontal",
654
+ "layoutSizingVertical",
655
+ "maxHeight",
656
+ "maxWidth",
657
+ "minHeight",
658
+ "minWidth"
659
+ ]);
660
+ var mixinTextParams = /* @__PURE__ */ new Set([
661
+ "fontColor",
662
+ "fontColorStyleName",
663
+ "fontColorVariableName",
664
+ "fontFamily",
665
+ "fontSize",
666
+ "fontStyle",
667
+ "fontWeight",
668
+ "textAlignHorizontal",
669
+ "textAlignVertical",
670
+ "textAutoResize",
671
+ "textStyleId",
672
+ "textStyleName"
673
+ ]);
674
+ export {
675
+ componentsCreateComponent,
676
+ componentsCreateFromNode,
677
+ componentsCreateVariantSet,
678
+ componentsUpdate,
679
+ framesCreateAutoLayout,
680
+ framesCreateBooleanOperation,
681
+ framesCreateEllipse,
682
+ framesCreateFrame,
683
+ framesCreateGroup,
684
+ framesCreateLine,
685
+ framesCreateRectangle,
686
+ framesCreateSection,
687
+ framesCreateSvg,
688
+ instancesCreate,
689
+ instancesDetach,
690
+ instancesResetOverrides,
691
+ instancesSwap,
692
+ instancesUpdate,
693
+ lintFix,
694
+ mixinAutoLayoutParams,
695
+ mixinBlendParams,
696
+ mixinFrameParams,
697
+ mixinGeometryParams,
698
+ mixinSizingParams,
699
+ mixinTextParams,
700
+ nodeDelete,
701
+ nodeReparent,
702
+ nodeUpdate,
703
+ stylesCreateEffect,
704
+ stylesCreateGrid,
705
+ stylesCreatePaint,
706
+ stylesCreateText,
707
+ stylesDelete,
708
+ stylesUpdate,
709
+ textCreate,
710
+ textSetContent,
711
+ variableCollectionsAddMode,
712
+ variableCollectionsCreate,
713
+ variableCollectionsDelete,
714
+ variableCollectionsRemoveMode,
715
+ variableCollectionsRenameMode,
716
+ variableCollectionsUpdate,
717
+ variablesCreate,
718
+ variablesDelete,
719
+ variablesUpdate
720
+ };
721
+ //# sourceMappingURL=guards.js.map