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