@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
package/package.json CHANGED
@@ -1,6 +1,216 @@
1
1
  {
2
2
  "name": "@mun-ui/ui",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.2.1",
4
+ "description": "SwiftUI-like frontend language, compiler and reactive web runtime.",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "bin": {
8
+ "mun": "bin/mun.mjs"
9
+ },
10
+ "files": [
11
+ "bin",
12
+ "dist",
13
+ "native/bin",
14
+ "native/Cargo.toml",
15
+ "native/Cargo.lock",
16
+ "native/mun-runtime",
17
+ "native/mun-native",
18
+ "editors",
19
+ "templates",
20
+ "schemas",
21
+ "README.md",
22
+ "LICENSE"
23
+ ],
24
+ "main": "./dist/index.js",
25
+ "module": "./dist/index.js",
26
+ "types": "./dist/index.d.ts",
27
+ "exports": {
28
+ ".": {
29
+ "types": "./dist/index.d.ts",
30
+ "import": "./dist/index.js"
31
+ },
32
+ "./vite": {
33
+ "types": "./dist/vite.d.ts",
34
+ "import": "./dist/vite.js"
35
+ },
36
+ "./astro": {
37
+ "types": "./dist/astro.d.ts",
38
+ "import": "./dist/astro.js"
39
+ },
40
+ "./package.json": "./package.json",
41
+ "./jsx-runtime": {
42
+ "types": "./dist/jsx-runtime.d.ts",
43
+ "import": "./dist/jsx-runtime.js"
44
+ },
45
+ "./jsx-dev-runtime": {
46
+ "types": "./dist/jsx-dev-runtime.d.ts",
47
+ "import": "./dist/jsx-dev-runtime.js"
48
+ },
49
+ "./experimental": {
50
+ "types": "./dist/experimental.d.ts",
51
+ "import": "./dist/experimental.js"
52
+ },
53
+ "./compiler": {
54
+ "types": "./dist/compiler/index.d.ts",
55
+ "import": "./dist/compiler/index.js"
56
+ },
57
+ "./core": {
58
+ "types": "./dist/core.d.ts",
59
+ "import": "./dist/core.js"
60
+ },
61
+ "./progressive-blur": {
62
+ "types": "./dist/progressive-blur/index.d.ts",
63
+ "import": "./dist/progressive-blur/index.js"
64
+ },
65
+ "./progressive-blur/plan": {
66
+ "types": "./dist/progressive-blur/plan.d.ts",
67
+ "import": "./dist/progressive-blur/plan.js"
68
+ },
69
+ "./rendering-quality": {
70
+ "types": "./dist/rendering-quality.d.ts",
71
+ "import": "./dist/rendering-quality.js"
72
+ },
73
+ "./cli": "./bin/mun.mjs",
74
+ "./mun": {
75
+ "types": "./dist/mun.d.ts",
76
+ "import": "./dist/mun.js"
77
+ },
78
+ "./legacy": {
79
+ "types": "./dist/legacy.d.ts",
80
+ "import": "./dist/legacy.js"
81
+ }
82
+ },
83
+ "dependencies": {
84
+ "@mun-ui/animation": "0.2.1",
85
+ "@mun-ui/astro": "0.2.1",
86
+ "@mun-ui/core": "0.2.1",
87
+ "@mun-ui/react": "0.2.1",
88
+ "@mun-ui/vite": "0.2.1",
89
+ "@mun-ui/compiler": "0.2.1",
90
+ "@mun-ui/vue": "0.2.1",
91
+ "@mun-ui/web": "0.2.1",
92
+ "@mun-ui/progressive-blur": "0.2.1",
93
+ "@mun-ui/execution": "0.2.1"
94
+ },
95
+ "devDependencies": {
96
+ "@lucide/icons": "^1.61.0",
97
+ "@playwright/test": "^1.64.1",
98
+ "@tailwindcss/vite": "^4.3.3",
99
+ "@types/react": "^19.3.0",
100
+ "@types/react-dom": "^19.3.0",
101
+ "@vitejs/plugin-react": "^6.1.2",
102
+ "@vitejs/plugin-vue": "^6.0.10",
103
+ "@vue/server-renderer": "^3.5.44",
104
+ "autoprefixer": "^10.6.1",
105
+ "jsdom": "^26.1.0",
106
+ "postcss": "^8.5.31",
107
+ "react": "^19.3.1",
108
+ "react-dom": "^19.3.1",
109
+ "sass": "^1.106.0",
110
+ "tailwindcss": "^4.3.3",
111
+ "typescript": "^5.9.3",
112
+ "vite": "^8.3.5",
113
+ "vue": "^3.5.44",
114
+ "@mun-ui/react": "0.2.1",
115
+ "@mun-ui/vite": "0.2.1",
116
+ "@mun-ui/web": "0.2.1",
117
+ "@mun-ui/vue": "0.2.1"
118
+ },
119
+ "engines": {
120
+ "node": ">=20.19.0"
121
+ },
122
+ "keywords": [
123
+ "react",
124
+ "typescript",
125
+ "declarative-ui",
126
+ "swiftui",
127
+ "vite",
128
+ "dsl",
129
+ "ui"
130
+ ],
131
+ "repository": {
132
+ "type": "git",
133
+ "url": "git+https://github.com/kyooni18/Mun.git"
134
+ },
135
+ "bugs": {
136
+ "url": "https://github.com/kyooni18/Mun/issues"
137
+ },
138
+ "homepage": "https://github.com/kyooni18/Mun#readme",
139
+ "scripts": {
140
+ "clean": "rm -rf ./dist",
141
+ "build": "pnpm run clean && pnpm run build:workspace && tsc -p tsconfig.build.json",
142
+ "build:workspace": "pnpm -r --filter \"./packages/*\" run build",
143
+ "check": "pnpm run build:workspace && tsc -p tsconfig.build.json --noEmit",
144
+ "test:types": "tsc -p tsconfig.tests.json",
145
+ "test:runtime": "node --test tests/react-runtime.test.mjs tests/react-widgets.test.mjs tests/react-client.test.mjs tests/macro-react.test.mjs tests/new-features.test.mjs tests/view-system.test.mjs tests/content-modifier.test.mjs",
146
+ "test:animation": "pnpm --filter @mun-ui/animation run test:full && pnpm --filter @mun-ui/animation run typecheck",
147
+ "test:browser": "node --test tests/browser.test.mjs",
148
+ "test:browser:vue": "node --test tests/vue-browser.test.mjs",
149
+ "test:browser:web": "node --test tests/web-browser.test.mjs",
150
+ "test:browser:layout": "node --test tests/layout-browser.test.mjs",
151
+ "test:browser:language-web": "node --test tests/language-web-browser.test.mjs",
152
+ "test:browser:progressive-blur": "node --test tests/progressive-blur-browser.test.mjs",
153
+ "demo:progressive-blur": "node examples/progressive-blur/server.mjs",
154
+ "demo:language-web": "node examples/language-web/server.mjs",
155
+ "demo:language-web:build": "vite build --config examples/language-web/vite.config.ts",
156
+ "test:dx": "node --test tests/hot-reload.test.mjs tests/incremental-lowering.test.mjs tests/native-dx.test.mjs tests/formatter.test.mjs tests/lsp-quickfix.test.mjs",
157
+ "test:packages": "node scripts/test-packages.mjs",
158
+ "benchmark:modifiers": "pnpm run build && node benchmarks/modifiers.mjs",
159
+ "benchmark:hot-reload": "pnpm --filter @mun-ui/compiler run build && node scripts/benchmark-hot-reload.mjs",
160
+ "benchmark:hot-reload:compile": "pnpm --filter @mun-ui/compiler run build && node scripts/benchmark-hot-reload.mjs --compile-only",
161
+ "benchmark:hot-reload:window": "pnpm --filter @mun-ui/compiler run build && node scripts/benchmark-hot-reload.mjs --window",
162
+ "benchmark:modifiers:ci": "MUN_BENCH_CI=1 MUN_BENCH_BASE_RATIO=8 MUN_BENCH_DEPTH_RATIO=4 pnpm run benchmark:modifiers",
163
+ "benchmark:performance": "pnpm run build:workspace && node benchmarks/performance.mjs",
164
+ "benchmark:performance:ci": "MUN_BENCH_CI=1 pnpm run build:workspace && MUN_BENCH_CI=1 node --expose-gc benchmarks/performance.mjs",
165
+ "benchmark:resident": "pnpm --filter @mun-ui/core run build && pnpm --filter @mun-ui/compiler run build && node benchmarks/resident-compute.mjs",
166
+ "benchmark:resident:native": "pnpm --filter @mun-ui/core run build && pnpm --filter @mun-ui/compiler run build && pnpm --filter @mun-ui/execution run build && node benchmarks/resident-native.mjs",
167
+ "benchmark:resident:native:ci": "MUN_RESIDENT_NATIVE_CI=1 pnpm run benchmark:resident:native",
168
+ "benchmark:browser": "pnpm run build:workspace && vite build --config benchmarks/browser.vite.config.ts && node benchmarks/browser-performance.mjs",
169
+ "benchmark:browser:ci": "MUN_BROWSER_BENCH_CI=1 pnpm run benchmark:browser",
170
+ "test": "pnpm run build && pnpm run test:types && pnpm run test:parity && pnpm run test:animation && pnpm run test:runtime && pnpm run test:packages && pnpm run test:dx && pnpm run test:docs && pnpm run test:release",
171
+ "test:parity": "node scripts/check-swiftui-manifest.mjs && node scripts/check-swiftui-snapshot.mjs && node scripts/swiftui-parity-report.mjs --check",
172
+ "dev": "vite --config examples/vite.config.ts",
173
+ "demo:build": "vite build --config examples/vite.config.ts",
174
+ "demo:vue:build": "vite build --config examples/vue.vite.config.ts",
175
+ "demo:web:build": "vite build --config examples/web.vite.config.ts",
176
+ "demo:parity:build": "pnpm run demo:parity:react:build && pnpm run demo:parity:vue:build && pnpm run demo:parity:web:build",
177
+ "demo:parity:react:build": "vite build --config examples/parity-react.vite.config.ts",
178
+ "demo:parity:vue:build": "vite build --config examples/parity-vue.vite.config.ts",
179
+ "demo:parity:web:build": "vite build --config examples/parity-web.vite.config.ts",
180
+ "test:browser:parity": "node --test tests/browser-parity.test.mjs",
181
+ "test:browser:showcase": "node --test tests/showcase-browser.test.mjs",
182
+ "demo:showcase:build": "vite build --config examples/showcase.vite.config.ts",
183
+ "test:release": "node scripts/verify-release.mjs",
184
+ "test:docs": "node scripts/verify-docs.mjs",
185
+ "demo:all:build": "pnpm run demo:build && pnpm run demo:vue:build && pnpm run demo:web:build && pnpm run demo:parity:build && pnpm run demo:showcase:build",
186
+ "demo:release:build": "pnpm run demo:build && pnpm run demo:web:build",
187
+ "test:browser:built": "node scripts/verify-built-browser.mjs",
188
+ "test:browser:built:smoke": "node scripts/verify-built-browser.mjs --smoke",
189
+ "native:build": "sh scripts/build-native-demo.sh",
190
+ "native:demo": "node bin/mun.mjs run examples/NativeDemo.mun",
191
+ "native:run": "node bin/mun.mjs run",
192
+ "dev:link": "node bin/mun.mjs link",
193
+ "dev:create": "node bin/mun.mjs create --local",
194
+ "dev:watch": "node scripts/watch-workspace.mjs",
195
+ "editor:install": "node bin/mun.mjs editor install",
196
+ "lsp": "node bin/mun.mjs lsp --stdio",
197
+ "vscode:package": "node editors/vscode/export.mjs",
198
+ "pack:local": "pnpm run build && node scripts/pack-local.mjs",
199
+ "local:install": "node scripts/install-local-packages.mjs",
200
+ "release:check": "pnpm test && pnpm run demo:release:build && pnpm run test:browser:built:smoke",
201
+ "release:check:full": "pnpm test && pnpm run benchmark:performance:ci && pnpm run benchmark:resident:native:ci && pnpm run benchmark:browser:ci && pnpm run demo:all:build && pnpm run test:browser:built",
202
+ "release:plan": "node scripts/publish-npm.mjs --plan",
203
+ "release:dry": "node scripts/publish-npm.mjs --dry-run",
204
+ "release": "node scripts/publish-npm.mjs",
205
+ "release:patch": "node scripts/publish-npm.mjs --patch",
206
+ "release:minor": "node scripts/publish-npm.mjs --minor",
207
+ "release:major": "node scripts/publish-npm.mjs --major",
208
+ "check:swiftui-manifest": "pnpm --filter @mun-ui/core --filter @mun-ui/compiler run build && node scripts/check-swiftui-manifest.mjs",
209
+ "check:swiftui-snapshot": "pnpm --filter @mun-ui/core run build && node scripts/check-swiftui-snapshot.mjs",
210
+ "snapshot:swiftui": "node scripts/snapshot-swiftui-api.mjs",
211
+ "report:swiftui-parity": "node scripts/swiftui-parity-report.mjs",
212
+ "test:desktop": "node --test tests/desktop.test.mjs && cargo test --manifest-path packages/desktop/host/Cargo.toml",
213
+ "test:desktop:host": "node scripts/test-desktop.mjs",
214
+ "test:desktop:parity": "node scripts/test-desktop-parity.mjs"
215
+ }
6
216
  }
@@ -0,0 +1,19 @@
1
+ # Mün Semantic UI IR schemas
2
+
3
+ `semantic-ui-ir-v1.schema.json` defines the serialized v1 contract between the Mün compiler and backend consumers. It is a wire-format contract, not a platform-specific rendering model.
4
+
5
+ A v1 program has exactly one root `Window`. Descendants are content nodes (`column`, `row`, `overlay`, `scroll`, `conditional`, `text`, `panel`, `textField`, `radioGroup`, and `action`). Platform windows are not ordinary child views, so a nested `Window` is invalid v1 IR.
6
+
7
+ The compiler must emit `version: 1` and `sourceLanguage: "mun"`. Consumers must reject unsupported versions or source languages before evaluating state, layout, actions, or motion.
8
+
9
+ The motion property list is also an ABI. `propertyMask` uses the bit position assigned by the ordered `munMotionPropertyNames` list in `@mun-ui/core`. Reordering existing properties changes existing mask meanings and is therefore a breaking wire-format change. New properties must only be emitted after every supported consumer understands their name, bit, value representation, and semantics.
10
+
11
+ Within one IR version, producers must not start emitting a field or node kind until all supported consumers can interpret it consistently. Renaming or removing fields, changing value representations, changing node meaning, or reassigning motion bits requires a new IR version.
12
+
13
+ The TypeScript semantic types, this schema, and native runtime deserialization must stay in lockstep. The schema is intentionally strict so drift is discovered during development instead of being silently ignored by a backend.
14
+
15
+ The native runtime (`mun-runtime`) bundles this file and evaluates it against every program before deserializing it: unknown fields, unknown node/expression/action kinds, nested windows and malformed shapes are load errors that name the nearest node identity and the JSON path of the field. It then checks references the schema cannot express (declared and unique state names, text bindings to string state, unique radio option values, `item` expressions inside their `forEach`, item-scoped state naming an existing `forEach`). An unsupported `version` or `sourceLanguage` is reported before any field validation.
16
+
17
+ `forEach` nodes render one instance of their children per collection item, keyed by `keyPath`. Item identity is the key, never the index: node identities gain a key segment, and states declared with `scope` exist once per live key and are released when the key leaves the collection. Duplicate or invalid keys are errors.
18
+
19
+ Scroll nodes own an explicit vertical/horizontal viewport. Offsets are runtime-owned, not serialized state or renderer commands. Content extent comes from layout; presentation clips, input hit testing, and accessibility geometry share that viewport.