@ufira/vibma 0.3.2 → 1.0.0-rc1

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