@mun-ui/ui 0.0.0-stage → 0.2.0

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.
Files changed (158) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +104 -2
  3. package/bin/compile.mjs +38 -0
  4. package/bin/dev-protocol.mjs +94 -0
  5. package/bin/formatter.mjs +109 -0
  6. package/bin/hot-reload.mjs +38 -0
  7. package/bin/mun.mjs +521 -0
  8. package/bin/native.mjs +133 -0
  9. package/bin/pnpm-workspace.mjs +58 -0
  10. package/bin/program-patch.mjs +104 -0
  11. package/bin/project.mjs +322 -0
  12. package/bin/watch.mjs +316 -0
  13. package/bin/workflow.mjs +261 -0
  14. package/dist/astro.d.ts +3 -0
  15. package/dist/astro.d.ts.map +1 -0
  16. package/dist/astro.js +3 -0
  17. package/dist/astro.js.map +1 -0
  18. package/dist/closures.d.ts +2 -0
  19. package/dist/closures.d.ts.map +1 -0
  20. package/dist/closures.js +2 -0
  21. package/dist/closures.js.map +1 -0
  22. package/dist/compiler/index.d.ts +2 -0
  23. package/dist/compiler/index.d.ts.map +1 -0
  24. package/dist/compiler/index.js +2 -0
  25. package/dist/compiler/index.js.map +1 -0
  26. package/dist/core.d.ts +3 -0
  27. package/dist/core.d.ts.map +1 -0
  28. package/dist/core.js +3 -0
  29. package/dist/core.js.map +1 -0
  30. package/dist/experimental.d.ts +2 -0
  31. package/dist/experimental.d.ts.map +1 -0
  32. package/dist/experimental.js +2 -0
  33. package/dist/experimental.js.map +1 -0
  34. package/dist/index.d.ts +3 -0
  35. package/dist/index.d.ts.map +1 -0
  36. package/dist/index.js +3 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/jsx-dev-runtime.d.ts +2 -0
  39. package/dist/jsx-dev-runtime.d.ts.map +1 -0
  40. package/dist/jsx-dev-runtime.js +2 -0
  41. package/dist/jsx-dev-runtime.js.map +1 -0
  42. package/dist/jsx-runtime.d.ts +2 -0
  43. package/dist/jsx-runtime.d.ts.map +1 -0
  44. package/dist/jsx-runtime.js +2 -0
  45. package/dist/jsx-runtime.js.map +1 -0
  46. package/dist/legacy.d.ts +3 -0
  47. package/dist/legacy.d.ts.map +1 -0
  48. package/dist/legacy.js +3 -0
  49. package/dist/legacy.js.map +1 -0
  50. package/dist/mun.d.ts +5 -0
  51. package/dist/mun.d.ts.map +1 -0
  52. package/dist/mun.js +4 -0
  53. package/dist/mun.js.map +1 -0
  54. package/dist/progressive-blur/index.d.ts +8 -0
  55. package/dist/progressive-blur/index.d.ts.map +1 -0
  56. package/dist/progressive-blur/index.js +8 -0
  57. package/dist/progressive-blur/index.js.map +1 -0
  58. package/dist/progressive-blur/plan.d.ts +3 -0
  59. package/dist/progressive-blur/plan.d.ts.map +1 -0
  60. package/dist/progressive-blur/plan.js +3 -0
  61. package/dist/progressive-blur/plan.js.map +1 -0
  62. package/dist/react-types.d.ts +2 -0
  63. package/dist/react-types.d.ts.map +1 -0
  64. package/dist/react-types.js +2 -0
  65. package/dist/react-types.js.map +1 -0
  66. package/dist/rendering-quality.d.ts +4 -0
  67. package/dist/rendering-quality.d.ts.map +1 -0
  68. package/dist/rendering-quality.js +4 -0
  69. package/dist/rendering-quality.js.map +1 -0
  70. package/dist/state.d.ts +2 -0
  71. package/dist/state.d.ts.map +1 -0
  72. package/dist/state.js +2 -0
  73. package/dist/state.js.map +1 -0
  74. package/dist/types.d.ts +2 -0
  75. package/dist/types.d.ts.map +1 -0
  76. package/dist/types.js +2 -0
  77. package/dist/types.js.map +1 -0
  78. package/dist/vite.d.ts +2 -0
  79. package/dist/vite.d.ts.map +1 -0
  80. package/dist/vite.js +2 -0
  81. package/dist/vite.js.map +1 -0
  82. package/editors/install.mjs +102 -0
  83. package/editors/lsp/mun-lsp.mjs +123 -0
  84. package/editors/lsp/service.mjs +306 -0
  85. package/editors/lsp/source.mjs +58 -0
  86. package/editors/vscode/client.mjs +40 -0
  87. package/editors/vscode/dev-client.mjs +83 -0
  88. package/editors/vscode/discovery.mjs +46 -0
  89. package/editors/vscode/export.mjs +42 -0
  90. package/editors/vscode/extension.cjs +226 -0
  91. package/editors/vscode/language-configuration.json +15 -0
  92. package/editors/vscode/package.json +119 -0
  93. package/editors/vscode/protocol.mjs +29 -0
  94. package/editors/vscode/syntaxes/mun.tmLanguage.json +130 -0
  95. package/native/Cargo.lock +3581 -0
  96. package/native/Cargo.toml +21 -0
  97. package/native/README.md +21 -0
  98. package/native/mun-native/Cargo.toml +23 -0
  99. package/native/mun-native/src/accessibility.rs +738 -0
  100. package/native/mun-native/src/dev.rs +604 -0
  101. package/native/mun-native/src/lib.rs +2676 -0
  102. package/native/mun-native/src/main.rs +204 -0
  103. package/native/mun-native/src/offscreen.rs +393 -0
  104. package/native/mun-native/src/rect.wgsl +63 -0
  105. package/native/mun-native/src/text.rs +310 -0
  106. package/native/mun-native/tests/offscreen_rendering.rs +161 -0
  107. package/native/mun-native/tests/stress.rs +408 -0
  108. package/native/mun-native/tests/window_lifecycle.rs +183 -0
  109. package/native/mun-runtime/Cargo.toml +13 -0
  110. package/native/mun-runtime/src/accessibility.rs +193 -0
  111. package/native/mun-runtime/src/collection.rs +1073 -0
  112. package/native/mun-runtime/src/gesture.rs +1070 -0
  113. package/native/mun-runtime/src/input.rs +325 -0
  114. package/native/mun-runtime/src/ir.rs +782 -0
  115. package/native/mun-runtime/src/kinetics.rs +500 -0
  116. package/native/mun-runtime/src/layout.rs +173 -0
  117. package/native/mun-runtime/src/layout_cache.rs +209 -0
  118. package/native/mun-runtime/src/lib.rs +49 -0
  119. package/native/mun-runtime/src/motion.rs +1162 -0
  120. package/native/mun-runtime/src/retained.rs +574 -0
  121. package/native/mun-runtime/src/runtime.rs +7078 -0
  122. package/native/mun-runtime/src/scene.rs +530 -0
  123. package/native/mun-runtime/src/scroll.rs +521 -0
  124. package/native/mun-runtime/src/scroll_view.rs +220 -0
  125. package/native/mun-runtime/src/text_edit.rs +670 -0
  126. package/native/mun-runtime/src/timeline.rs +1534 -0
  127. package/native/mun-runtime/src/validate.rs +677 -0
  128. package/native/mun-runtime/tests/accessibility_semantics.rs +168 -0
  129. package/native/mun-runtime/tests/compiler_contract.rs +110 -0
  130. package/native/mun-runtime/tests/flexible_frames.rs +47 -0
  131. package/native/mun-runtime/tests/hot_update.rs +367 -0
  132. package/native/mun-runtime/tests/incremental_runtime.rs +323 -0
  133. package/native/mun-runtime/tests/ir_validation.rs +167 -0
  134. package/native/mun-runtime/tests/keyed_collections.rs +251 -0
  135. package/native/mun-runtime/tests/native_controls_style.rs +491 -0
  136. package/native/mun-runtime/tests/native_demo.rs +285 -0
  137. package/native/mun-runtime/tests/native_layout_style.rs +175 -0
  138. package/native/mun-runtime/tests/native_settings_pane.rs +152 -0
  139. package/native/mun-runtime/tests/scroll_view.rs +403 -0
  140. package/native/mun-runtime/tests/text_editing.rs +491 -0
  141. package/package.json +210 -3
  142. package/schemas/README.md +19 -0
  143. package/schemas/semantic-ui-ir-v1.schema.json +1972 -0
  144. package/templates/native/App.mun +15 -0
  145. package/templates/native/gitignore +3 -0
  146. package/templates/native/mun.toml +8 -0
  147. package/templates/project/gitignore +5 -0
  148. package/templates/project/index.html +13 -0
  149. package/templates/project/package.json +21 -0
  150. package/templates/project/src/App.mun +13 -0
  151. package/templates/project/src/index.css +21 -0
  152. package/templates/project/src/main.ts +5 -0
  153. package/templates/project/tsconfig.json +20 -0
  154. package/templates/project/vite.config.ts +6 -0
  155. package/templates/vite/src/App.css +134 -0
  156. package/templates/vite/src/App.tsx +91 -0
  157. package/templates/vite/src/index.css +23 -0
  158. package/templates/vite/vite.config.ts +10 -0
@@ -0,0 +1,1972 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "urn:mun:semantic-ui-ir:v1",
4
+ "title": "Mün Semantic UI IR v1",
5
+ "description": "Canonical backend-neutral wire format emitted by the Mün compiler and consumed by native/web backends. A program has exactly one root Window; descendant UI nodes are content nodes.",
6
+ "type": "object",
7
+ "properties": {
8
+ "version": {
9
+ "const": 1
10
+ },
11
+ "sourceLanguage": {
12
+ "const": "mun"
13
+ },
14
+ "entry": {
15
+ "type": "string",
16
+ "minLength": 1
17
+ },
18
+ "states": {
19
+ "type": "array",
20
+ "items": {
21
+ "$ref": "#/$defs/state"
22
+ }
23
+ },
24
+ "root": {
25
+ "$ref": "#/$defs/window"
26
+ }
27
+ },
28
+ "required": [
29
+ "version",
30
+ "sourceLanguage",
31
+ "entry",
32
+ "states",
33
+ "root"
34
+ ],
35
+ "additionalProperties": false,
36
+ "$defs": {
37
+ "scalar": {
38
+ "type": [
39
+ "string",
40
+ "number",
41
+ "boolean",
42
+ "null"
43
+ ]
44
+ },
45
+ "expression": {
46
+ "oneOf": [
47
+ {
48
+ "type": "object",
49
+ "properties": {
50
+ "kind": {
51
+ "const": "literal"
52
+ },
53
+ "value": {
54
+ "$ref": "#/$defs/value"
55
+ }
56
+ },
57
+ "required": [
58
+ "kind",
59
+ "value"
60
+ ],
61
+ "additionalProperties": false
62
+ },
63
+ {
64
+ "type": "object",
65
+ "properties": {
66
+ "kind": {
67
+ "const": "state"
68
+ },
69
+ "state": {
70
+ "type": "string",
71
+ "minLength": 1
72
+ }
73
+ },
74
+ "required": [
75
+ "kind",
76
+ "state"
77
+ ],
78
+ "additionalProperties": false
79
+ },
80
+ {
81
+ "type": "object",
82
+ "properties": {
83
+ "kind": {
84
+ "const": "not"
85
+ },
86
+ "value": {
87
+ "$ref": "#/$defs/expression"
88
+ }
89
+ },
90
+ "required": [
91
+ "kind",
92
+ "value"
93
+ ],
94
+ "additionalProperties": false
95
+ },
96
+ {
97
+ "type": "object",
98
+ "properties": {
99
+ "kind": {
100
+ "const": "stringify"
101
+ },
102
+ "value": {
103
+ "$ref": "#/$defs/expression"
104
+ }
105
+ },
106
+ "required": [
107
+ "kind",
108
+ "value"
109
+ ],
110
+ "additionalProperties": false
111
+ },
112
+ {
113
+ "type": "object",
114
+ "properties": {
115
+ "kind": {
116
+ "const": "binary"
117
+ },
118
+ "operator": {
119
+ "enum": [
120
+ "add",
121
+ "subtract",
122
+ "multiply",
123
+ "divide",
124
+ "modulo",
125
+ "equal",
126
+ "notEqual",
127
+ "less",
128
+ "lessOrEqual",
129
+ "greater",
130
+ "greaterOrEqual",
131
+ "and",
132
+ "or"
133
+ ]
134
+ },
135
+ "left": {
136
+ "$ref": "#/$defs/expression"
137
+ },
138
+ "right": {
139
+ "$ref": "#/$defs/expression"
140
+ }
141
+ },
142
+ "required": [
143
+ "kind",
144
+ "operator",
145
+ "left",
146
+ "right"
147
+ ],
148
+ "additionalProperties": false
149
+ },
150
+ {
151
+ "type": "object",
152
+ "properties": {
153
+ "kind": {
154
+ "const": "conditional"
155
+ },
156
+ "condition": {
157
+ "$ref": "#/$defs/expression"
158
+ },
159
+ "then": {
160
+ "$ref": "#/$defs/expression"
161
+ },
162
+ "otherwise": {
163
+ "$ref": "#/$defs/expression"
164
+ }
165
+ },
166
+ "required": [
167
+ "kind",
168
+ "condition",
169
+ "then",
170
+ "otherwise"
171
+ ],
172
+ "additionalProperties": false
173
+ },
174
+ {
175
+ "type": "object",
176
+ "properties": {
177
+ "kind": {
178
+ "const": "item"
179
+ },
180
+ "forEach": {
181
+ "type": "string",
182
+ "minLength": 1
183
+ },
184
+ "path": {
185
+ "type": "array",
186
+ "items": {
187
+ "type": "string",
188
+ "minLength": 1
189
+ }
190
+ }
191
+ },
192
+ "required": [
193
+ "kind",
194
+ "forEach",
195
+ "path"
196
+ ],
197
+ "additionalProperties": false
198
+ },
199
+ {
200
+ "type": "object",
201
+ "properties": {
202
+ "kind": {
203
+ "const": "record"
204
+ },
205
+ "fields": {
206
+ "type": "object",
207
+ "additionalProperties": {
208
+ "$ref": "#/$defs/expression"
209
+ }
210
+ }
211
+ },
212
+ "required": [
213
+ "kind",
214
+ "fields"
215
+ ],
216
+ "additionalProperties": false
217
+ },
218
+ {
219
+ "type": "object",
220
+ "properties": {
221
+ "kind": {
222
+ "const": "count"
223
+ },
224
+ "collection": {
225
+ "$ref": "#/$defs/expression"
226
+ }
227
+ },
228
+ "required": [
229
+ "kind",
230
+ "collection"
231
+ ],
232
+ "additionalProperties": false
233
+ },
234
+ {
235
+ "type": "object",
236
+ "properties": {
237
+ "kind": {
238
+ "const": "filter"
239
+ },
240
+ "collection": {
241
+ "$ref": "#/$defs/expression"
242
+ },
243
+ "path": {
244
+ "type": "array",
245
+ "items": {
246
+ "type": "string",
247
+ "minLength": 1
248
+ }
249
+ },
250
+ "operator": {
251
+ "enum": [
252
+ "equal",
253
+ "notEqual"
254
+ ]
255
+ },
256
+ "value": {
257
+ "$ref": "#/$defs/expression"
258
+ }
259
+ },
260
+ "required": [
261
+ "kind",
262
+ "collection",
263
+ "path",
264
+ "operator",
265
+ "value"
266
+ ],
267
+ "additionalProperties": false
268
+ }
269
+ ]
270
+ },
271
+ "state": {
272
+ "type": "object",
273
+ "properties": {
274
+ "name": {
275
+ "type": "string",
276
+ "minLength": 1
277
+ },
278
+ "initial": {
279
+ "$ref": "#/$defs/value"
280
+ },
281
+ "scope": {
282
+ "type": "string",
283
+ "minLength": 1
284
+ }
285
+ },
286
+ "required": [
287
+ "name",
288
+ "initial"
289
+ ],
290
+ "additionalProperties": false
291
+ },
292
+ "accessibility": {
293
+ "type": "object",
294
+ "properties": {
295
+ "role": {
296
+ "enum": [
297
+ "window",
298
+ "group",
299
+ "text",
300
+ "button",
301
+ "textField",
302
+ "radioGroup",
303
+ "checkBox",
304
+ "progressIndicator"
305
+ ]
306
+ },
307
+ "label": {
308
+ "type": "string"
309
+ },
310
+ "enabled": {
311
+ "$ref": "#/$defs/expression"
312
+ }
313
+ },
314
+ "required": [
315
+ "role"
316
+ ],
317
+ "additionalProperties": false
318
+ },
319
+ "layout": {
320
+ "type": "object",
321
+ "properties": {
322
+ "width": {
323
+ "$ref": "#/$defs/expression"
324
+ },
325
+ "height": {
326
+ "$ref": "#/$defs/expression"
327
+ },
328
+ "padding": {
329
+ "oneOf": [
330
+ {
331
+ "type": "number"
332
+ },
333
+ {
334
+ "type": "object",
335
+ "additionalProperties": false,
336
+ "required": [
337
+ "top",
338
+ "leading",
339
+ "bottom",
340
+ "trailing"
341
+ ],
342
+ "properties": {
343
+ "top": {
344
+ "type": "number"
345
+ },
346
+ "leading": {
347
+ "type": "number"
348
+ },
349
+ "bottom": {
350
+ "type": "number"
351
+ },
352
+ "trailing": {
353
+ "type": "number"
354
+ }
355
+ }
356
+ }
357
+ ]
358
+ },
359
+ "spacing": {
360
+ "type": "number"
361
+ },
362
+ "alignment": {
363
+ "enum": [
364
+ "leading",
365
+ "center",
366
+ "trailing",
367
+ "stretch"
368
+ ]
369
+ },
370
+ "minWidth": {
371
+ "type": "number",
372
+ "minimum": 0
373
+ },
374
+ "maxWidth": {
375
+ "oneOf": [
376
+ {
377
+ "type": "number",
378
+ "minimum": 0
379
+ },
380
+ {
381
+ "const": "infinity"
382
+ }
383
+ ]
384
+ },
385
+ "minHeight": {
386
+ "type": "number",
387
+ "minimum": 0
388
+ },
389
+ "maxHeight": {
390
+ "oneOf": [
391
+ {
392
+ "type": "number",
393
+ "minimum": 0
394
+ },
395
+ {
396
+ "const": "infinity"
397
+ }
398
+ ]
399
+ }
400
+ },
401
+ "required": [],
402
+ "additionalProperties": false
403
+ },
404
+ "visual": {
405
+ "type": "object",
406
+ "properties": {
407
+ "background": {
408
+ "$ref": "#/$defs/paint"
409
+ },
410
+ "foreground": {
411
+ "$ref": "#/$defs/paint"
412
+ },
413
+ "cornerRadius": {
414
+ "type": "number",
415
+ "minimum": 0
416
+ },
417
+ "opacity": {
418
+ "$ref": "#/$defs/expression"
419
+ },
420
+ "translationX": {
421
+ "$ref": "#/$defs/expression"
422
+ },
423
+ "translationY": {
424
+ "$ref": "#/$defs/expression"
425
+ }
426
+ },
427
+ "required": [],
428
+ "additionalProperties": false
429
+ },
430
+ "motionProperty": {
431
+ "enum": [
432
+ "opacity",
433
+ "translationX",
434
+ "translationY",
435
+ "scaleX",
436
+ "scaleY",
437
+ "rotation",
438
+ "foregroundColor",
439
+ "backgroundColor",
440
+ "borderColor",
441
+ "width",
442
+ "height",
443
+ "minWidth",
444
+ "minHeight",
445
+ "maxWidth",
446
+ "maxHeight",
447
+ "paddingTop",
448
+ "paddingRight",
449
+ "paddingBottom",
450
+ "paddingLeft",
451
+ "marginTop",
452
+ "marginRight",
453
+ "marginBottom",
454
+ "marginLeft",
455
+ "rowGap",
456
+ "columnGap",
457
+ "fontSize",
458
+ "lineHeight",
459
+ "letterSpacing"
460
+ ]
461
+ },
462
+ "repeatCount": {
463
+ "oneOf": [
464
+ {
465
+ "type": "integer",
466
+ "minimum": 0
467
+ },
468
+ {
469
+ "const": "infinite"
470
+ }
471
+ ]
472
+ },
473
+ "springPlan": {
474
+ "type": "object",
475
+ "properties": {
476
+ "kind": {
477
+ "const": "spring"
478
+ },
479
+ "omega": {
480
+ "type": "number",
481
+ "exclusiveMinimum": 0
482
+ },
483
+ "dampingRatio": {
484
+ "type": "number",
485
+ "minimum": 0
486
+ },
487
+ "blendDuration": {
488
+ "type": "number",
489
+ "minimum": 0
490
+ },
491
+ "delayMs": {
492
+ "type": "number",
493
+ "minimum": 0
494
+ },
495
+ "repeatCount": {
496
+ "$ref": "#/$defs/repeatCount"
497
+ },
498
+ "autoreverses": {
499
+ "type": "boolean"
500
+ }
501
+ },
502
+ "required": [
503
+ "kind",
504
+ "omega",
505
+ "dampingRatio",
506
+ "blendDuration",
507
+ "delayMs",
508
+ "repeatCount",
509
+ "autoreverses"
510
+ ],
511
+ "additionalProperties": false
512
+ },
513
+ "timingPlan": {
514
+ "type": "object",
515
+ "properties": {
516
+ "kind": {
517
+ "const": "timing"
518
+ },
519
+ "duration": {
520
+ "type": "number",
521
+ "minimum": 0
522
+ },
523
+ "curve": {
524
+ "type": "array",
525
+ "prefixItems": [
526
+ {
527
+ "type": "number"
528
+ },
529
+ {
530
+ "type": "number"
531
+ },
532
+ {
533
+ "type": "number"
534
+ },
535
+ {
536
+ "type": "number"
537
+ }
538
+ ],
539
+ "minItems": 4,
540
+ "maxItems": 4
541
+ },
542
+ "delayMs": {
543
+ "type": "number",
544
+ "minimum": 0
545
+ },
546
+ "repeatCount": {
547
+ "$ref": "#/$defs/repeatCount"
548
+ },
549
+ "autoreverses": {
550
+ "type": "boolean"
551
+ }
552
+ },
553
+ "required": [
554
+ "kind",
555
+ "duration",
556
+ "curve",
557
+ "delayMs",
558
+ "repeatCount",
559
+ "autoreverses"
560
+ ],
561
+ "additionalProperties": false
562
+ },
563
+ "motionPlan": {
564
+ "oneOf": [
565
+ {
566
+ "$ref": "#/$defs/springPlan"
567
+ },
568
+ {
569
+ "$ref": "#/$defs/timingPlan"
570
+ }
571
+ ]
572
+ },
573
+ "motionBinding": {
574
+ "type": "object",
575
+ "properties": {
576
+ "property": {
577
+ "$ref": "#/$defs/motionProperty"
578
+ },
579
+ "propertyMask": {
580
+ "type": "integer",
581
+ "minimum": 0,
582
+ "maximum": 4294967295
583
+ },
584
+ "value": {
585
+ "$ref": "#/$defs/expression"
586
+ },
587
+ "trigger": {
588
+ "$ref": "#/$defs/expression"
589
+ },
590
+ "plan": {
591
+ "$ref": "#/$defs/motionPlan"
592
+ }
593
+ },
594
+ "required": [
595
+ "property",
596
+ "propertyMask",
597
+ "value"
598
+ ],
599
+ "additionalProperties": false
600
+ },
601
+ "transaction": {
602
+ "type": "object",
603
+ "properties": {
604
+ "animation": {
605
+ "oneOf": [
606
+ {
607
+ "$ref": "#/$defs/motionPlan"
608
+ },
609
+ {
610
+ "type": "null"
611
+ }
612
+ ]
613
+ },
614
+ "disablesAnimations": {
615
+ "type": "boolean"
616
+ },
617
+ "isContinuous": {
618
+ "type": "boolean"
619
+ }
620
+ },
621
+ "required": [
622
+ "disablesAnimations",
623
+ "isContinuous"
624
+ ],
625
+ "additionalProperties": false
626
+ },
627
+ "action": {
628
+ "oneOf": [
629
+ {
630
+ "type": "object",
631
+ "properties": {
632
+ "kind": {
633
+ "const": "toggle-state"
634
+ },
635
+ "state": {
636
+ "type": "string",
637
+ "minLength": 1
638
+ },
639
+ "transaction": {
640
+ "$ref": "#/$defs/transaction"
641
+ }
642
+ },
643
+ "required": [
644
+ "kind",
645
+ "state"
646
+ ],
647
+ "additionalProperties": false
648
+ },
649
+ {
650
+ "type": "object",
651
+ "properties": {
652
+ "kind": {
653
+ "const": "set-state"
654
+ },
655
+ "state": {
656
+ "type": "string",
657
+ "minLength": 1
658
+ },
659
+ "value": {
660
+ "$ref": "#/$defs/expression"
661
+ },
662
+ "transaction": {
663
+ "$ref": "#/$defs/transaction"
664
+ }
665
+ },
666
+ "required": [
667
+ "kind",
668
+ "state",
669
+ "value"
670
+ ],
671
+ "additionalProperties": false
672
+ },
673
+ {
674
+ "type": "object",
675
+ "properties": {
676
+ "kind": {
677
+ "const": "collection"
678
+ },
679
+ "state": {
680
+ "type": "string",
681
+ "minLength": 1
682
+ },
683
+ "keyPath": {
684
+ "type": "array",
685
+ "items": {
686
+ "type": "string",
687
+ "minLength": 1
688
+ }
689
+ },
690
+ "transaction": {
691
+ "$ref": "#/$defs/transaction"
692
+ },
693
+ "operation": {
694
+ "const": "insert"
695
+ },
696
+ "index": {
697
+ "$ref": "#/$defs/expression"
698
+ },
699
+ "value": {
700
+ "$ref": "#/$defs/expression"
701
+ }
702
+ },
703
+ "required": [
704
+ "kind",
705
+ "state",
706
+ "keyPath",
707
+ "operation",
708
+ "index",
709
+ "value"
710
+ ],
711
+ "additionalProperties": false
712
+ },
713
+ {
714
+ "type": "object",
715
+ "properties": {
716
+ "kind": {
717
+ "const": "collection"
718
+ },
719
+ "state": {
720
+ "type": "string",
721
+ "minLength": 1
722
+ },
723
+ "keyPath": {
724
+ "type": "array",
725
+ "items": {
726
+ "type": "string",
727
+ "minLength": 1
728
+ }
729
+ },
730
+ "transaction": {
731
+ "$ref": "#/$defs/transaction"
732
+ },
733
+ "operation": {
734
+ "const": "append"
735
+ },
736
+ "value": {
737
+ "$ref": "#/$defs/expression"
738
+ }
739
+ },
740
+ "required": [
741
+ "kind",
742
+ "state",
743
+ "keyPath",
744
+ "operation",
745
+ "value"
746
+ ],
747
+ "additionalProperties": false
748
+ },
749
+ {
750
+ "type": "object",
751
+ "properties": {
752
+ "kind": {
753
+ "const": "collection"
754
+ },
755
+ "state": {
756
+ "type": "string",
757
+ "minLength": 1
758
+ },
759
+ "keyPath": {
760
+ "type": "array",
761
+ "items": {
762
+ "type": "string",
763
+ "minLength": 1
764
+ }
765
+ },
766
+ "transaction": {
767
+ "$ref": "#/$defs/transaction"
768
+ },
769
+ "operation": {
770
+ "const": "remove"
771
+ },
772
+ "key": {
773
+ "$ref": "#/$defs/expression"
774
+ }
775
+ },
776
+ "required": [
777
+ "kind",
778
+ "state",
779
+ "keyPath",
780
+ "operation",
781
+ "key"
782
+ ],
783
+ "additionalProperties": false
784
+ },
785
+ {
786
+ "type": "object",
787
+ "properties": {
788
+ "kind": {
789
+ "const": "collection"
790
+ },
791
+ "state": {
792
+ "type": "string",
793
+ "minLength": 1
794
+ },
795
+ "keyPath": {
796
+ "type": "array",
797
+ "items": {
798
+ "type": "string",
799
+ "minLength": 1
800
+ }
801
+ },
802
+ "transaction": {
803
+ "$ref": "#/$defs/transaction"
804
+ },
805
+ "operation": {
806
+ "const": "move"
807
+ },
808
+ "key": {
809
+ "$ref": "#/$defs/expression"
810
+ },
811
+ "offset": {
812
+ "$ref": "#/$defs/expression"
813
+ }
814
+ },
815
+ "required": [
816
+ "kind",
817
+ "state",
818
+ "keyPath",
819
+ "operation",
820
+ "key",
821
+ "offset"
822
+ ],
823
+ "additionalProperties": false
824
+ },
825
+ {
826
+ "type": "object",
827
+ "properties": {
828
+ "kind": {
829
+ "const": "collection"
830
+ },
831
+ "state": {
832
+ "type": "string",
833
+ "minLength": 1
834
+ },
835
+ "keyPath": {
836
+ "type": "array",
837
+ "items": {
838
+ "type": "string",
839
+ "minLength": 1
840
+ }
841
+ },
842
+ "transaction": {
843
+ "$ref": "#/$defs/transaction"
844
+ },
845
+ "operation": {
846
+ "const": "update"
847
+ },
848
+ "key": {
849
+ "$ref": "#/$defs/expression"
850
+ },
851
+ "path": {
852
+ "type": "array",
853
+ "items": {
854
+ "type": "string",
855
+ "minLength": 1
856
+ }
857
+ },
858
+ "value": {
859
+ "$ref": "#/$defs/expression"
860
+ }
861
+ },
862
+ "required": [
863
+ "kind",
864
+ "state",
865
+ "keyPath",
866
+ "operation",
867
+ "key",
868
+ "path",
869
+ "value"
870
+ ],
871
+ "additionalProperties": false
872
+ },
873
+ {
874
+ "type": "object",
875
+ "properties": {
876
+ "kind": {
877
+ "const": "sequence"
878
+ },
879
+ "actions": {
880
+ "type": "array",
881
+ "items": {
882
+ "$ref": "#/$defs/action"
883
+ }
884
+ },
885
+ "transaction": {
886
+ "$ref": "#/$defs/transaction"
887
+ }
888
+ },
889
+ "required": [
890
+ "kind",
891
+ "actions"
892
+ ],
893
+ "additionalProperties": false
894
+ }
895
+ ]
896
+ },
897
+ "column": {
898
+ "type": "object",
899
+ "properties": {
900
+ "id": {
901
+ "type": "string",
902
+ "minLength": 1
903
+ },
904
+ "layout": {
905
+ "$ref": "#/$defs/layout"
906
+ },
907
+ "visual": {
908
+ "$ref": "#/$defs/visual"
909
+ },
910
+ "accessibility": {
911
+ "$ref": "#/$defs/accessibility"
912
+ },
913
+ "motion": {
914
+ "type": "array",
915
+ "items": {
916
+ "$ref": "#/$defs/motionBinding"
917
+ }
918
+ },
919
+ "kind": {
920
+ "const": "column"
921
+ },
922
+ "children": {
923
+ "type": "array",
924
+ "items": {
925
+ "$ref": "#/$defs/node"
926
+ }
927
+ },
928
+ "identityKey": {
929
+ "$ref": "#/$defs/expression"
930
+ },
931
+ "transition": {
932
+ "$ref": "#/$defs/transition"
933
+ },
934
+ "lifecycle": {
935
+ "$ref": "#/$defs/lifecycle"
936
+ }
937
+ },
938
+ "required": [
939
+ "kind",
940
+ "id",
941
+ "children"
942
+ ],
943
+ "additionalProperties": false
944
+ },
945
+ "row": {
946
+ "type": "object",
947
+ "properties": {
948
+ "id": {
949
+ "type": "string",
950
+ "minLength": 1
951
+ },
952
+ "layout": {
953
+ "$ref": "#/$defs/layout"
954
+ },
955
+ "visual": {
956
+ "$ref": "#/$defs/visual"
957
+ },
958
+ "accessibility": {
959
+ "$ref": "#/$defs/accessibility"
960
+ },
961
+ "motion": {
962
+ "type": "array",
963
+ "items": {
964
+ "$ref": "#/$defs/motionBinding"
965
+ }
966
+ },
967
+ "kind": {
968
+ "const": "row"
969
+ },
970
+ "children": {
971
+ "type": "array",
972
+ "items": {
973
+ "$ref": "#/$defs/node"
974
+ }
975
+ },
976
+ "identityKey": {
977
+ "$ref": "#/$defs/expression"
978
+ },
979
+ "transition": {
980
+ "$ref": "#/$defs/transition"
981
+ },
982
+ "lifecycle": {
983
+ "$ref": "#/$defs/lifecycle"
984
+ }
985
+ },
986
+ "required": [
987
+ "kind",
988
+ "id",
989
+ "children"
990
+ ],
991
+ "additionalProperties": false
992
+ },
993
+ "overlay": {
994
+ "type": "object",
995
+ "properties": {
996
+ "id": {
997
+ "type": "string",
998
+ "minLength": 1
999
+ },
1000
+ "layout": {
1001
+ "$ref": "#/$defs/layout"
1002
+ },
1003
+ "visual": {
1004
+ "$ref": "#/$defs/visual"
1005
+ },
1006
+ "accessibility": {
1007
+ "$ref": "#/$defs/accessibility"
1008
+ },
1009
+ "motion": {
1010
+ "type": "array",
1011
+ "items": {
1012
+ "$ref": "#/$defs/motionBinding"
1013
+ }
1014
+ },
1015
+ "kind": {
1016
+ "const": "overlay"
1017
+ },
1018
+ "children": {
1019
+ "type": "array",
1020
+ "items": {
1021
+ "$ref": "#/$defs/node"
1022
+ }
1023
+ },
1024
+ "alignment": {
1025
+ "enum": [
1026
+ "center",
1027
+ "leading",
1028
+ "trailing",
1029
+ "top",
1030
+ "bottom",
1031
+ "topLeading",
1032
+ "topTrailing",
1033
+ "bottomLeading",
1034
+ "bottomTrailing"
1035
+ ]
1036
+ },
1037
+ "identityKey": {
1038
+ "$ref": "#/$defs/expression"
1039
+ },
1040
+ "transition": {
1041
+ "$ref": "#/$defs/transition"
1042
+ },
1043
+ "lifecycle": {
1044
+ "$ref": "#/$defs/lifecycle"
1045
+ }
1046
+ },
1047
+ "required": [
1048
+ "kind",
1049
+ "id",
1050
+ "children"
1051
+ ],
1052
+ "additionalProperties": false
1053
+ },
1054
+ "conditionalNode": {
1055
+ "type": "object",
1056
+ "properties": {
1057
+ "id": {
1058
+ "type": "string",
1059
+ "minLength": 1
1060
+ },
1061
+ "layout": {
1062
+ "$ref": "#/$defs/layout"
1063
+ },
1064
+ "visual": {
1065
+ "$ref": "#/$defs/visual"
1066
+ },
1067
+ "accessibility": {
1068
+ "$ref": "#/$defs/accessibility"
1069
+ },
1070
+ "motion": {
1071
+ "type": "array",
1072
+ "items": {
1073
+ "$ref": "#/$defs/motionBinding"
1074
+ }
1075
+ },
1076
+ "kind": {
1077
+ "const": "conditional"
1078
+ },
1079
+ "condition": {
1080
+ "$ref": "#/$defs/expression"
1081
+ },
1082
+ "then": {
1083
+ "type": "array",
1084
+ "items": {
1085
+ "$ref": "#/$defs/node"
1086
+ }
1087
+ },
1088
+ "otherwise": {
1089
+ "type": "array",
1090
+ "items": {
1091
+ "$ref": "#/$defs/node"
1092
+ }
1093
+ },
1094
+ "identityKey": {
1095
+ "$ref": "#/$defs/expression"
1096
+ },
1097
+ "transition": {
1098
+ "$ref": "#/$defs/transition"
1099
+ },
1100
+ "lifecycle": {
1101
+ "$ref": "#/$defs/lifecycle"
1102
+ }
1103
+ },
1104
+ "required": [
1105
+ "kind",
1106
+ "id",
1107
+ "condition",
1108
+ "then",
1109
+ "otherwise"
1110
+ ],
1111
+ "additionalProperties": false
1112
+ },
1113
+ "textNode": {
1114
+ "type": "object",
1115
+ "properties": {
1116
+ "id": {
1117
+ "type": "string",
1118
+ "minLength": 1
1119
+ },
1120
+ "layout": {
1121
+ "$ref": "#/$defs/layout"
1122
+ },
1123
+ "visual": {
1124
+ "$ref": "#/$defs/visual"
1125
+ },
1126
+ "accessibility": {
1127
+ "$ref": "#/$defs/accessibility"
1128
+ },
1129
+ "motion": {
1130
+ "type": "array",
1131
+ "items": {
1132
+ "$ref": "#/$defs/motionBinding"
1133
+ }
1134
+ },
1135
+ "kind": {
1136
+ "const": "text"
1137
+ },
1138
+ "value": {
1139
+ "$ref": "#/$defs/expression"
1140
+ },
1141
+ "identityKey": {
1142
+ "$ref": "#/$defs/expression"
1143
+ },
1144
+ "transition": {
1145
+ "$ref": "#/$defs/transition"
1146
+ },
1147
+ "lifecycle": {
1148
+ "$ref": "#/$defs/lifecycle"
1149
+ }
1150
+ },
1151
+ "required": [
1152
+ "kind",
1153
+ "id",
1154
+ "value"
1155
+ ],
1156
+ "additionalProperties": false
1157
+ },
1158
+ "panel": {
1159
+ "type": "object",
1160
+ "properties": {
1161
+ "id": {
1162
+ "type": "string",
1163
+ "minLength": 1
1164
+ },
1165
+ "layout": {
1166
+ "$ref": "#/$defs/layout"
1167
+ },
1168
+ "visual": {
1169
+ "$ref": "#/$defs/visual"
1170
+ },
1171
+ "accessibility": {
1172
+ "$ref": "#/$defs/accessibility"
1173
+ },
1174
+ "motion": {
1175
+ "type": "array",
1176
+ "items": {
1177
+ "$ref": "#/$defs/motionBinding"
1178
+ }
1179
+ },
1180
+ "kind": {
1181
+ "const": "panel"
1182
+ },
1183
+ "shape": {
1184
+ "enum": [
1185
+ "rectangle",
1186
+ "roundedRectangle",
1187
+ "circle",
1188
+ "capsule"
1189
+ ]
1190
+ },
1191
+ "identityKey": {
1192
+ "$ref": "#/$defs/expression"
1193
+ },
1194
+ "transition": {
1195
+ "$ref": "#/$defs/transition"
1196
+ },
1197
+ "lifecycle": {
1198
+ "$ref": "#/$defs/lifecycle"
1199
+ }
1200
+ },
1201
+ "required": [
1202
+ "kind",
1203
+ "id"
1204
+ ],
1205
+ "additionalProperties": false
1206
+ },
1207
+ "actionNode": {
1208
+ "type": "object",
1209
+ "properties": {
1210
+ "id": {
1211
+ "type": "string",
1212
+ "minLength": 1
1213
+ },
1214
+ "layout": {
1215
+ "$ref": "#/$defs/layout"
1216
+ },
1217
+ "visual": {
1218
+ "$ref": "#/$defs/visual"
1219
+ },
1220
+ "accessibility": {
1221
+ "$ref": "#/$defs/accessibility"
1222
+ },
1223
+ "motion": {
1224
+ "type": "array",
1225
+ "items": {
1226
+ "$ref": "#/$defs/motionBinding"
1227
+ }
1228
+ },
1229
+ "kind": {
1230
+ "const": "action"
1231
+ },
1232
+ "label": {
1233
+ "type": "string"
1234
+ },
1235
+ "action": {
1236
+ "$ref": "#/$defs/action"
1237
+ },
1238
+ "identityKey": {
1239
+ "$ref": "#/$defs/expression"
1240
+ },
1241
+ "transition": {
1242
+ "$ref": "#/$defs/transition"
1243
+ },
1244
+ "lifecycle": {
1245
+ "$ref": "#/$defs/lifecycle"
1246
+ }
1247
+ },
1248
+ "required": [
1249
+ "kind",
1250
+ "id",
1251
+ "label",
1252
+ "action"
1253
+ ],
1254
+ "additionalProperties": false
1255
+ },
1256
+ "node": {
1257
+ "oneOf": [
1258
+ {
1259
+ "$ref": "#/$defs/column"
1260
+ },
1261
+ {
1262
+ "$ref": "#/$defs/row"
1263
+ },
1264
+ {
1265
+ "$ref": "#/$defs/overlay"
1266
+ },
1267
+ {
1268
+ "$ref": "#/$defs/conditionalNode"
1269
+ },
1270
+ {
1271
+ "$ref": "#/$defs/forEach"
1272
+ },
1273
+ {
1274
+ "$ref": "#/$defs/textNode"
1275
+ },
1276
+ {
1277
+ "$ref": "#/$defs/panel"
1278
+ },
1279
+ {
1280
+ "$ref": "#/$defs/textFieldNode"
1281
+ },
1282
+ {
1283
+ "$ref": "#/$defs/radioGroupNode"
1284
+ },
1285
+ {
1286
+ "$ref": "#/$defs/actionNode"
1287
+ },
1288
+ {
1289
+ "$ref": "#/$defs/scroll"
1290
+ },
1291
+ {
1292
+ "$ref": "#/$defs/toggleNode"
1293
+ },
1294
+ {
1295
+ "$ref": "#/$defs/progressNode"
1296
+ },
1297
+ {
1298
+ "$ref": "#/$defs/spacerNode"
1299
+ },
1300
+ {
1301
+ "$ref": "#/$defs/dividerNode"
1302
+ }
1303
+ ]
1304
+ },
1305
+ "window": {
1306
+ "type": "object",
1307
+ "properties": {
1308
+ "kind": {
1309
+ "const": "window"
1310
+ },
1311
+ "id": {
1312
+ "type": "string",
1313
+ "minLength": 1
1314
+ },
1315
+ "title": {
1316
+ "type": "string"
1317
+ },
1318
+ "layout": {
1319
+ "$ref": "#/$defs/layout"
1320
+ },
1321
+ "accessibility": {
1322
+ "$ref": "#/$defs/accessibility"
1323
+ },
1324
+ "child": {
1325
+ "$ref": "#/$defs/node"
1326
+ },
1327
+ "identityKey": {
1328
+ "$ref": "#/$defs/expression"
1329
+ },
1330
+ "visual": {
1331
+ "$ref": "#/$defs/visual"
1332
+ },
1333
+ "motion": {
1334
+ "type": "array",
1335
+ "items": {
1336
+ "$ref": "#/$defs/motionBinding"
1337
+ }
1338
+ },
1339
+ "transition": {
1340
+ "$ref": "#/$defs/transition"
1341
+ },
1342
+ "lifecycle": {
1343
+ "$ref": "#/$defs/lifecycle"
1344
+ }
1345
+ },
1346
+ "required": [
1347
+ "kind",
1348
+ "id",
1349
+ "title",
1350
+ "child"
1351
+ ],
1352
+ "additionalProperties": false
1353
+ },
1354
+ "paint": {
1355
+ "oneOf": [
1356
+ {
1357
+ "type": "string",
1358
+ "minLength": 1
1359
+ },
1360
+ {
1361
+ "type": "object",
1362
+ "properties": {
1363
+ "kind": {
1364
+ "const": "solid"
1365
+ },
1366
+ "color": {
1367
+ "type": "string",
1368
+ "minLength": 1
1369
+ }
1370
+ },
1371
+ "required": [
1372
+ "kind",
1373
+ "color"
1374
+ ],
1375
+ "additionalProperties": false
1376
+ },
1377
+ {
1378
+ "type": "object",
1379
+ "properties": {
1380
+ "kind": {
1381
+ "const": "linearGradient"
1382
+ },
1383
+ "start": {
1384
+ "type": "string",
1385
+ "minLength": 1
1386
+ },
1387
+ "end": {
1388
+ "type": "string",
1389
+ "minLength": 1
1390
+ },
1391
+ "startPoint": {
1392
+ "enum": [
1393
+ "center",
1394
+ "leading",
1395
+ "trailing",
1396
+ "top",
1397
+ "bottom",
1398
+ "topLeading",
1399
+ "topTrailing",
1400
+ "bottomLeading",
1401
+ "bottomTrailing"
1402
+ ]
1403
+ },
1404
+ "endPoint": {
1405
+ "enum": [
1406
+ "center",
1407
+ "leading",
1408
+ "trailing",
1409
+ "top",
1410
+ "bottom",
1411
+ "topLeading",
1412
+ "topTrailing",
1413
+ "bottomLeading",
1414
+ "bottomTrailing"
1415
+ ]
1416
+ }
1417
+ },
1418
+ "required": [
1419
+ "kind",
1420
+ "start",
1421
+ "end",
1422
+ "startPoint",
1423
+ "endPoint"
1424
+ ],
1425
+ "additionalProperties": false
1426
+ }
1427
+ ]
1428
+ },
1429
+ "textFieldNode": {
1430
+ "type": "object",
1431
+ "properties": {
1432
+ "id": {
1433
+ "type": "string",
1434
+ "minLength": 1
1435
+ },
1436
+ "layout": {
1437
+ "$ref": "#/$defs/layout"
1438
+ },
1439
+ "visual": {
1440
+ "$ref": "#/$defs/visual"
1441
+ },
1442
+ "accessibility": {
1443
+ "$ref": "#/$defs/accessibility"
1444
+ },
1445
+ "motion": {
1446
+ "type": "array",
1447
+ "items": {
1448
+ "$ref": "#/$defs/motionBinding"
1449
+ }
1450
+ },
1451
+ "kind": {
1452
+ "const": "textField"
1453
+ },
1454
+ "state": {
1455
+ "type": "string",
1456
+ "minLength": 1
1457
+ },
1458
+ "placeholder": {
1459
+ "type": "string"
1460
+ },
1461
+ "identityKey": {
1462
+ "$ref": "#/$defs/expression"
1463
+ },
1464
+ "transition": {
1465
+ "$ref": "#/$defs/transition"
1466
+ },
1467
+ "lifecycle": {
1468
+ "$ref": "#/$defs/lifecycle"
1469
+ },
1470
+ "secure": {
1471
+ "type": "boolean"
1472
+ }
1473
+ },
1474
+ "required": [
1475
+ "kind",
1476
+ "id",
1477
+ "state"
1478
+ ],
1479
+ "additionalProperties": false
1480
+ },
1481
+ "selectionOption": {
1482
+ "type": "object",
1483
+ "properties": {
1484
+ "label": {
1485
+ "type": "string"
1486
+ },
1487
+ "value": {
1488
+ "$ref": "#/$defs/scalar"
1489
+ },
1490
+ "disabled": {
1491
+ "type": "boolean"
1492
+ }
1493
+ },
1494
+ "required": [
1495
+ "label",
1496
+ "value"
1497
+ ],
1498
+ "additionalProperties": false
1499
+ },
1500
+ "radioGroupNode": {
1501
+ "type": "object",
1502
+ "properties": {
1503
+ "id": {
1504
+ "type": "string",
1505
+ "minLength": 1
1506
+ },
1507
+ "layout": {
1508
+ "$ref": "#/$defs/layout"
1509
+ },
1510
+ "visual": {
1511
+ "$ref": "#/$defs/visual"
1512
+ },
1513
+ "accessibility": {
1514
+ "$ref": "#/$defs/accessibility"
1515
+ },
1516
+ "motion": {
1517
+ "type": "array",
1518
+ "items": {
1519
+ "$ref": "#/$defs/motionBinding"
1520
+ }
1521
+ },
1522
+ "kind": {
1523
+ "const": "radioGroup"
1524
+ },
1525
+ "state": {
1526
+ "type": "string",
1527
+ "minLength": 1
1528
+ },
1529
+ "options": {
1530
+ "type": "array",
1531
+ "items": {
1532
+ "$ref": "#/$defs/selectionOption"
1533
+ }
1534
+ },
1535
+ "identityKey": {
1536
+ "$ref": "#/$defs/expression"
1537
+ },
1538
+ "transition": {
1539
+ "$ref": "#/$defs/transition"
1540
+ },
1541
+ "lifecycle": {
1542
+ "$ref": "#/$defs/lifecycle"
1543
+ }
1544
+ },
1545
+ "required": [
1546
+ "kind",
1547
+ "id",
1548
+ "state",
1549
+ "options"
1550
+ ],
1551
+ "additionalProperties": false
1552
+ },
1553
+ "scroll": {
1554
+ "type": "object",
1555
+ "properties": {
1556
+ "id": {
1557
+ "type": "string",
1558
+ "minLength": 1
1559
+ },
1560
+ "layout": {
1561
+ "$ref": "#/$defs/layout"
1562
+ },
1563
+ "visual": {
1564
+ "$ref": "#/$defs/visual"
1565
+ },
1566
+ "accessibility": {
1567
+ "$ref": "#/$defs/accessibility"
1568
+ },
1569
+ "motion": {
1570
+ "type": "array",
1571
+ "items": {
1572
+ "$ref": "#/$defs/motionBinding"
1573
+ }
1574
+ },
1575
+ "kind": {
1576
+ "const": "scroll"
1577
+ },
1578
+ "children": {
1579
+ "type": "array",
1580
+ "items": {
1581
+ "$ref": "#/$defs/node"
1582
+ }
1583
+ },
1584
+ "axis": {
1585
+ "enum": [
1586
+ "vertical",
1587
+ "horizontal"
1588
+ ]
1589
+ },
1590
+ "identityKey": {
1591
+ "$ref": "#/$defs/expression"
1592
+ },
1593
+ "transition": {
1594
+ "$ref": "#/$defs/transition"
1595
+ },
1596
+ "lifecycle": {
1597
+ "$ref": "#/$defs/lifecycle"
1598
+ }
1599
+ },
1600
+ "required": [
1601
+ "kind",
1602
+ "id",
1603
+ "children",
1604
+ "axis"
1605
+ ],
1606
+ "additionalProperties": false
1607
+ },
1608
+ "value": {
1609
+ "oneOf": [
1610
+ {
1611
+ "$ref": "#/$defs/scalar"
1612
+ },
1613
+ {
1614
+ "type": "array",
1615
+ "items": {
1616
+ "$ref": "#/$defs/value"
1617
+ }
1618
+ },
1619
+ {
1620
+ "type": "object",
1621
+ "additionalProperties": {
1622
+ "$ref": "#/$defs/value"
1623
+ }
1624
+ }
1625
+ ]
1626
+ },
1627
+ "transitionEffect": {
1628
+ "oneOf": [
1629
+ {
1630
+ "type": "object",
1631
+ "properties": {
1632
+ "kind": {
1633
+ "const": "opacity"
1634
+ }
1635
+ },
1636
+ "required": [
1637
+ "kind"
1638
+ ],
1639
+ "additionalProperties": false
1640
+ },
1641
+ {
1642
+ "type": "object",
1643
+ "properties": {
1644
+ "kind": {
1645
+ "const": "scale"
1646
+ },
1647
+ "scale": {
1648
+ "type": "number"
1649
+ }
1650
+ },
1651
+ "required": [
1652
+ "kind",
1653
+ "scale"
1654
+ ],
1655
+ "additionalProperties": false
1656
+ },
1657
+ {
1658
+ "type": "object",
1659
+ "properties": {
1660
+ "kind": {
1661
+ "const": "move"
1662
+ },
1663
+ "edge": {
1664
+ "enum": [
1665
+ "top",
1666
+ "bottom",
1667
+ "leading",
1668
+ "trailing",
1669
+ "left",
1670
+ "right"
1671
+ ]
1672
+ },
1673
+ "distance": {
1674
+ "type": "number"
1675
+ }
1676
+ },
1677
+ "required": [
1678
+ "kind",
1679
+ "edge",
1680
+ "distance"
1681
+ ],
1682
+ "additionalProperties": false
1683
+ }
1684
+ ]
1685
+ },
1686
+ "transition": {
1687
+ "type": "object",
1688
+ "properties": {
1689
+ "insertion": {
1690
+ "type": "array",
1691
+ "items": {
1692
+ "$ref": "#/$defs/transitionEffect"
1693
+ }
1694
+ },
1695
+ "removal": {
1696
+ "type": "array",
1697
+ "items": {
1698
+ "$ref": "#/$defs/transitionEffect"
1699
+ }
1700
+ },
1701
+ "animation": {
1702
+ "$ref": "#/$defs/motionPlan"
1703
+ }
1704
+ },
1705
+ "required": [
1706
+ "insertion",
1707
+ "removal"
1708
+ ],
1709
+ "additionalProperties": false
1710
+ },
1711
+ "forEach": {
1712
+ "type": "object",
1713
+ "properties": {
1714
+ "id": {
1715
+ "type": "string",
1716
+ "minLength": 1
1717
+ },
1718
+ "identityKey": {
1719
+ "$ref": "#/$defs/expression"
1720
+ },
1721
+ "layout": {
1722
+ "$ref": "#/$defs/layout"
1723
+ },
1724
+ "visual": {
1725
+ "$ref": "#/$defs/visual"
1726
+ },
1727
+ "accessibility": {
1728
+ "$ref": "#/$defs/accessibility"
1729
+ },
1730
+ "motion": {
1731
+ "type": "array",
1732
+ "items": {
1733
+ "$ref": "#/$defs/motionBinding"
1734
+ }
1735
+ },
1736
+ "transition": {
1737
+ "$ref": "#/$defs/transition"
1738
+ },
1739
+ "kind": {
1740
+ "const": "forEach"
1741
+ },
1742
+ "collection": {
1743
+ "$ref": "#/$defs/expression"
1744
+ },
1745
+ "keyPath": {
1746
+ "type": "array",
1747
+ "items": {
1748
+ "type": "string",
1749
+ "minLength": 1
1750
+ },
1751
+ "minItems": 1
1752
+ },
1753
+ "children": {
1754
+ "type": "array",
1755
+ "items": {
1756
+ "$ref": "#/$defs/node"
1757
+ }
1758
+ },
1759
+ "lifecycle": {
1760
+ "$ref": "#/$defs/lifecycle"
1761
+ }
1762
+ },
1763
+ "required": [
1764
+ "kind",
1765
+ "id",
1766
+ "collection",
1767
+ "keyPath",
1768
+ "children"
1769
+ ],
1770
+ "additionalProperties": false
1771
+ },
1772
+ "lifecycle": {
1773
+ "type": "object",
1774
+ "properties": {
1775
+ "appear": {
1776
+ "$ref": "#/$defs/action"
1777
+ },
1778
+ "disappear": {
1779
+ "$ref": "#/$defs/action"
1780
+ }
1781
+ },
1782
+ "additionalProperties": false
1783
+ },
1784
+ "toggleNode": {
1785
+ "type": "object",
1786
+ "properties": {
1787
+ "id": {
1788
+ "type": "string",
1789
+ "minLength": 1
1790
+ },
1791
+ "layout": {
1792
+ "$ref": "#/$defs/layout"
1793
+ },
1794
+ "visual": {
1795
+ "$ref": "#/$defs/visual"
1796
+ },
1797
+ "accessibility": {
1798
+ "$ref": "#/$defs/accessibility"
1799
+ },
1800
+ "motion": {
1801
+ "type": "array",
1802
+ "items": {
1803
+ "$ref": "#/$defs/motionBinding"
1804
+ }
1805
+ },
1806
+ "kind": {
1807
+ "const": "toggle"
1808
+ },
1809
+ "state": {
1810
+ "type": "string",
1811
+ "minLength": 1
1812
+ },
1813
+ "label": {
1814
+ "type": "string"
1815
+ },
1816
+ "identityKey": {
1817
+ "$ref": "#/$defs/expression"
1818
+ },
1819
+ "transition": {
1820
+ "$ref": "#/$defs/transition"
1821
+ },
1822
+ "lifecycle": {
1823
+ "$ref": "#/$defs/lifecycle"
1824
+ }
1825
+ },
1826
+ "required": [
1827
+ "kind",
1828
+ "id",
1829
+ "state",
1830
+ "label"
1831
+ ],
1832
+ "additionalProperties": false
1833
+ },
1834
+ "progressNode": {
1835
+ "type": "object",
1836
+ "properties": {
1837
+ "id": {
1838
+ "type": "string",
1839
+ "minLength": 1
1840
+ },
1841
+ "layout": {
1842
+ "$ref": "#/$defs/layout"
1843
+ },
1844
+ "visual": {
1845
+ "$ref": "#/$defs/visual"
1846
+ },
1847
+ "accessibility": {
1848
+ "$ref": "#/$defs/accessibility"
1849
+ },
1850
+ "motion": {
1851
+ "type": "array",
1852
+ "items": {
1853
+ "$ref": "#/$defs/motionBinding"
1854
+ }
1855
+ },
1856
+ "kind": {
1857
+ "const": "progress"
1858
+ },
1859
+ "value": {
1860
+ "$ref": "#/$defs/expression"
1861
+ },
1862
+ "total": {
1863
+ "$ref": "#/$defs/expression"
1864
+ },
1865
+ "label": {
1866
+ "type": "string"
1867
+ },
1868
+ "identityKey": {
1869
+ "$ref": "#/$defs/expression"
1870
+ },
1871
+ "transition": {
1872
+ "$ref": "#/$defs/transition"
1873
+ },
1874
+ "lifecycle": {
1875
+ "$ref": "#/$defs/lifecycle"
1876
+ }
1877
+ },
1878
+ "required": [
1879
+ "kind",
1880
+ "id",
1881
+ "value"
1882
+ ],
1883
+ "additionalProperties": false
1884
+ },
1885
+ "spacerNode": {
1886
+ "type": "object",
1887
+ "properties": {
1888
+ "id": {
1889
+ "type": "string",
1890
+ "minLength": 1
1891
+ },
1892
+ "layout": {
1893
+ "$ref": "#/$defs/layout"
1894
+ },
1895
+ "visual": {
1896
+ "$ref": "#/$defs/visual"
1897
+ },
1898
+ "accessibility": {
1899
+ "$ref": "#/$defs/accessibility"
1900
+ },
1901
+ "motion": {
1902
+ "type": "array",
1903
+ "items": {
1904
+ "$ref": "#/$defs/motionBinding"
1905
+ }
1906
+ },
1907
+ "kind": {
1908
+ "const": "spacer"
1909
+ },
1910
+ "minLength": {
1911
+ "type": "number",
1912
+ "minimum": 0
1913
+ },
1914
+ "identityKey": {
1915
+ "$ref": "#/$defs/expression"
1916
+ },
1917
+ "transition": {
1918
+ "$ref": "#/$defs/transition"
1919
+ },
1920
+ "lifecycle": {
1921
+ "$ref": "#/$defs/lifecycle"
1922
+ }
1923
+ },
1924
+ "required": [
1925
+ "kind",
1926
+ "id"
1927
+ ],
1928
+ "additionalProperties": false
1929
+ },
1930
+ "dividerNode": {
1931
+ "type": "object",
1932
+ "properties": {
1933
+ "id": {
1934
+ "type": "string",
1935
+ "minLength": 1
1936
+ },
1937
+ "layout": {
1938
+ "$ref": "#/$defs/layout"
1939
+ },
1940
+ "visual": {
1941
+ "$ref": "#/$defs/visual"
1942
+ },
1943
+ "accessibility": {
1944
+ "$ref": "#/$defs/accessibility"
1945
+ },
1946
+ "motion": {
1947
+ "type": "array",
1948
+ "items": {
1949
+ "$ref": "#/$defs/motionBinding"
1950
+ }
1951
+ },
1952
+ "kind": {
1953
+ "const": "divider"
1954
+ },
1955
+ "identityKey": {
1956
+ "$ref": "#/$defs/expression"
1957
+ },
1958
+ "transition": {
1959
+ "$ref": "#/$defs/transition"
1960
+ },
1961
+ "lifecycle": {
1962
+ "$ref": "#/$defs/lifecycle"
1963
+ }
1964
+ },
1965
+ "required": [
1966
+ "kind",
1967
+ "id"
1968
+ ],
1969
+ "additionalProperties": false
1970
+ }
1971
+ }
1972
+ }