@salsita-ai/sdk 0.50.0-develop.eb204e0da4 → 0.50.0-develop.ed1806b910

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 (2181) hide show
  1. package/README.md +28 -15
  2. package/dist/admin/create-admin-pages-from-spec.d.ts +1 -1
  3. package/dist/admin/default-admin-elements.d.ts +9 -0
  4. package/dist/admin/default-admin-elements.js +1 -0
  5. package/dist/admin/default-elements/built-in-entity-element.d.ts +10 -0
  6. package/dist/admin/default-elements/built-in-entity-element.js +1 -0
  7. package/dist/admin/default-elements/built-in-layout-element.d.ts +10 -0
  8. package/dist/admin/default-elements/built-in-layout-element.js +1 -0
  9. package/dist/admin/default-elements/index.d.ts +2 -0
  10. package/dist/admin/default-elements/index.js +1 -0
  11. package/dist/admin/index.d.ts +1 -0
  12. package/dist/admin/index.js +1 -1
  13. package/dist/application/index.d.ts +1 -0
  14. package/dist/application/index.js +1 -1
  15. package/dist/application/mount-application.d.ts +1 -1
  16. package/dist/application/mount-application.js +1 -1
  17. package/dist/application/mount-configurator.d.ts +19 -0
  18. package/dist/application/mount-configurator.js +1 -0
  19. package/dist/application/mounted-application-runtime.d.ts +4 -0
  20. package/dist/application/mounted-application-runtime.js +1 -0
  21. package/dist/application/register-web-component.d.ts +2 -0
  22. package/dist/application/register-web-component.js +1 -0
  23. package/dist/application-spec/caching/content-diff.js +1 -1
  24. package/dist/application-spec/core/application-file.d.ts +0 -2
  25. package/dist/application-spec/core/application-file.js +1 -1
  26. package/dist/application-spec/core/components/component-filter.d.ts +53 -0
  27. package/dist/application-spec/core/components/component-filter.js +1 -0
  28. package/dist/application-spec/core/components/index.d.ts +2 -0
  29. package/dist/application-spec/core/components/index.js +1 -0
  30. package/dist/application-spec/core/components/sdk-code-ref.d.ts +9 -0
  31. package/dist/application-spec/core/components/sdk-code-ref.js +1 -0
  32. package/dist/application-spec/core/enhanced-json-value.d.ts +0 -68
  33. package/dist/application-spec/core/enhanced-json-value.js +1 -1
  34. package/dist/application-spec/core/expressions/index.d.ts +2 -0
  35. package/dist/application-spec/core/expressions/index.js +1 -0
  36. package/dist/application-spec/core/expressions/relation-expression-params.d.ts +11 -0
  37. package/dist/application-spec/core/expressions/sdk-expression-implementation.d.ts +24 -0
  38. package/dist/application-spec/core/expressions/sdk-expression-implementation.js +1 -0
  39. package/dist/application-spec/core/index.d.ts +2 -0
  40. package/dist/application-spec/core/index.js +1 -1
  41. package/dist/application-spec/core/json-value.d.ts +1 -1
  42. package/dist/application-spec/enhanced-json/eval-to-constant.d.ts +14 -0
  43. package/dist/application-spec/enhanced-json/index.d.ts +4 -0
  44. package/dist/application-spec/enhanced-json/index.js +1 -0
  45. package/dist/application-spec/enhanced-json/is-enhanced-json-array.d.ts +2 -0
  46. package/dist/application-spec/enhanced-json/is-enhanced-json-array.js +1 -0
  47. package/dist/application-spec/enhanced-json/resolve-enhanced-json-value.d.ts +18 -0
  48. package/dist/application-spec/enhanced-json/resolve-enhanced-json-value.js +1 -0
  49. package/dist/application-spec/enhanced-json/schema-from-value.d.ts +24 -0
  50. package/dist/application-spec/enhanced-json/schema-from-value.js +1 -0
  51. package/dist/application-spec/enhanced-json/stringify-enhanced-json-value.d.ts +14 -0
  52. package/dist/application-spec/enhanced-json/stringify-enhanced-json-value.js +1 -0
  53. package/dist/application-spec/enhanced-json/validate-enhanced-json-value-caps.d.ts +12 -0
  54. package/dist/application-spec/enhanced-json/validate-enhanced-json-value-caps.js +1 -0
  55. package/dist/application-spec/enhanced-json/validate-no-legacy-code-ref.d.ts +13 -0
  56. package/dist/application-spec/enhanced-json/validate-no-legacy-code-ref.js +1 -0
  57. package/dist/application-spec/errors/diagnostic-codes.d.ts +29 -0
  58. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  59. package/dist/application-spec/errors/diagnostic-messages.d.ts +33 -1
  60. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  61. package/dist/application-spec/generate-application/code/common/code-imports.js +1 -1
  62. package/dist/application-spec/generate-application/code/common/env-reader.js +2 -2
  63. package/dist/application-spec/generate-application/code/common/index.d.ts +2 -0
  64. package/dist/application-spec/generate-application/code/common/index.js +1 -1
  65. package/dist/application-spec/generate-application/code/common/project-module-list.d.ts +8 -0
  66. package/dist/application-spec/generate-application/code/common/project-module-list.js +3 -0
  67. package/dist/application-spec/generate-application/code/common/single-quoted-string.d.ts +6 -0
  68. package/dist/application-spec/generate-application/code/common/single-quoted-string.js +1 -0
  69. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  70. package/dist/application-spec/generate-application/code/generate-application-code.d.ts +3 -2
  71. package/dist/application-spec/generate-application/code/generate-application-code.js +1 -1
  72. package/dist/application-spec/generate-application/code/project-scaffolding.d.ts +22 -14
  73. package/dist/application-spec/generate-application/code/project-scaffolding.js +2 -2
  74. package/dist/application-spec/generate-application/code/standalone-app-files.d.ts +2 -2
  75. package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
  76. package/dist/application-spec/generate-application/code/story-files.js +1 -1
  77. package/dist/application-spec/generate-application/code/templates/admin-config.js +3 -0
  78. package/dist/application-spec/generate-application/code/templates/admin-domain-code.d.ts +1 -2
  79. package/dist/application-spec/generate-application/code/templates/admin-domain-code.js +6 -14
  80. package/dist/application-spec/generate-application/code/templates/admin-frontend-code.d.ts +1 -2
  81. package/dist/application-spec/generate-application/code/templates/admin-frontend-code.js +4 -4
  82. package/dist/application-spec/generate-application/code/templates/application-types.js +6 -6
  83. package/dist/application-spec/generate-application/code/templates/common/doc-comment.d.ts +2 -0
  84. package/dist/application-spec/generate-application/code/templates/common/doc-comment.js +1 -0
  85. package/dist/application-spec/generate-application/code/templates/common/format-property-key.d.ts +7 -0
  86. package/dist/application-spec/generate-application/code/templates/common/format-property-key.js +1 -0
  87. package/dist/application-spec/generate-application/code/templates/common/schema-to-type-string.js +3 -3
  88. package/dist/application-spec/generate-application/code/templates/configurator-config.js +6 -4
  89. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.d.ts +2 -2
  90. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.js +7 -13
  91. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.d.ts +1 -2
  92. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.js +7 -9
  93. package/dist/application-spec/generate-application/code/templates/configurator-globals.d.ts +2 -1
  94. package/dist/application-spec/generate-application/code/templates/configurator-globals.js +19 -6
  95. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +35 -0
  96. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +5 -0
  97. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.d.ts +1 -0
  98. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.js +1 -0
  99. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-assistant.d.ts +2 -2
  100. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-assistant.js +1 -1
  101. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.d.ts +1 -1
  102. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.js +7 -7
  103. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.d.ts +4 -2
  104. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.js +1 -1
  105. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.d.ts +3 -1
  106. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +73 -73
  107. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.d.ts +9 -1
  108. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.js +1 -1
  109. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +6 -0
  110. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-presets.js +1 -1
  111. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-relation-expressions.js +1 -1
  112. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.d.ts +6 -8
  113. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.js +21 -21
  114. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.d.ts +1 -1
  115. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.js +2 -2
  116. package/dist/application-spec/generate-application/code/templates/domain-spec/index.d.ts +3 -2
  117. package/dist/application-spec/generate-application/code/templates/domain-spec/index.js +1 -1
  118. package/dist/application-spec/generate-application/code/templates/domain-spec.js +11 -11
  119. package/dist/application-spec/generate-application/code/templates/domain.js +4 -4
  120. package/dist/application-spec/generate-application/code/templates/eslint-config.d.ts +5 -0
  121. package/dist/application-spec/generate-application/code/templates/eslint-config.js +4 -5
  122. package/dist/application-spec/generate-application/code/templates/frontend-config.js +3 -5
  123. package/dist/application-spec/generate-application/code/templates/gitignore.js +0 -3
  124. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.d.ts +11 -0
  125. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +8 -0
  126. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +12 -0
  127. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -0
  128. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.d.ts +43 -0
  129. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +33 -0
  130. package/dist/application-spec/generate-application/code/templates/global-definition/index.d.ts +3 -0
  131. package/dist/application-spec/generate-application/code/templates/global-definition/index.js +1 -1
  132. package/dist/application-spec/generate-application/code/templates/globals.js +24 -42
  133. package/dist/application-spec/generate-application/code/templates/index.d.ts +4 -10
  134. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  135. package/dist/application-spec/generate-application/code/templates/lingui-rc.d.ts +5 -0
  136. package/dist/application-spec/generate-application/code/templates/lingui-rc.js +4 -4
  137. package/dist/application-spec/generate-application/code/templates/prettier-config.d.ts +5 -0
  138. package/dist/application-spec/generate-application/code/templates/prettier-config.js +4 -5
  139. package/dist/application-spec/generate-application/code/templates/root-tsconfig.d.ts +6 -0
  140. package/dist/application-spec/generate-application/code/templates/root-tsconfig.js +2 -0
  141. package/dist/application-spec/generate-application/code/templates/skills/phoenix-cli-skill.js +1 -1
  142. package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.js +95 -41
  143. package/dist/application-spec/generate-application/code/templates/skills/phoenix-feedback-skill.js +40 -17
  144. package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.js +13 -5
  145. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.js +1 -1
  146. package/dist/application-spec/generate-application/code/templates/skills/phoenix-variants-skill.d.ts +1 -0
  147. package/dist/application-spec/generate-application/code/templates/skills/phoenix-variants-skill.js +6 -0
  148. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +69 -16
  149. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +19 -7
  150. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.d.ts +58 -0
  151. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.js +1 -0
  152. package/dist/application-spec/generate-application/code/templates/spec-code/index.d.ts +2 -0
  153. package/dist/application-spec/generate-application/code/templates/spec-code/index.js +1 -0
  154. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.d.ts +18 -0
  155. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.js +41 -0
  156. package/dist/application-spec/generate-application/code/templates/spec-messages/index.d.ts +1 -0
  157. package/dist/application-spec/generate-application/code/templates/spec-messages/index.js +1 -0
  158. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.d.ts +20 -0
  159. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.js +6 -0
  160. package/dist/application-spec/generate-application/code/templates/story/phx-module.d.ts +8 -2
  161. package/dist/application-spec/generate-application/code/templates/story/phx-module.js +15 -3
  162. package/dist/application-spec/generate-application/code/templates/story/wrapper.d.ts +3 -0
  163. package/dist/application-spec/generate-application/code/templates/story/wrapper.js +2 -1
  164. package/dist/application-spec/generate-application/code/templates/tsconfig.d.ts +5 -0
  165. package/dist/application-spec/generate-application/code/templates/tsconfig.js +1 -1
  166. package/dist/application-spec/generate-application/code/templates/webhook-builders.js +9 -4
  167. package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +6 -1
  168. package/dist/application-spec/generate-application/code/templates/webhook-index.js +10 -1
  169. package/dist/application-spec/generate-application/code/templates/webhooks-config.js +2 -3
  170. package/dist/application-spec/generate-application/implementations/phx-application-types.d.ts +25 -0
  171. package/dist/application-spec/generate-application/implementations/phx-application-types.js +1 -0
  172. package/dist/application-spec/generate-application/implementations/phx-domain.d.ts +36 -0
  173. package/dist/application-spec/generate-application/implementations/phx-domain.js +1 -0
  174. package/dist/application-spec/generate-application/implementations/phx-model.d.ts +24 -0
  175. package/dist/application-spec/generate-application/implementations/phx-model.js +1 -0
  176. package/dist/application-spec/generate-application/implementations/phx.d.ts +22 -0
  177. package/dist/application-spec/generate-application/implementations/phx.js +1 -0
  178. package/dist/application-spec/generate-application/index.d.ts +4 -0
  179. package/dist/application-spec/generate-application/index.js +1 -1
  180. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.d.ts +6 -4
  181. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.js +1 -1
  182. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.d.ts +12 -4
  183. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.js +1 -1
  184. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.d.ts +16 -0
  185. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.js +1 -0
  186. package/dist/application-spec/generate-application/runtime/admin-runtime/states-runtime.d.ts +2 -2
  187. package/dist/application-spec/generate-application/runtime/application-runtime.d.ts +35 -10
  188. package/dist/application-spec/generate-application/runtime/application-runtime.js +1 -1
  189. package/dist/application-spec/generate-application/runtime/application-spec-slice.d.ts +71 -0
  190. package/dist/application-spec/generate-application/runtime/application-spec-slice.js +1 -0
  191. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.d.ts +7 -5
  192. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.js +1 -1
  193. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.d.ts +14 -7
  194. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.js +1 -1
  195. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.d.ts +16 -0
  196. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.js +1 -0
  197. package/dist/application-spec/generate-application/runtime/configurator-runtime/states-runtime.d.ts +2 -2
  198. package/dist/application-spec/generate-application/runtime/create-application.d.ts +57 -0
  199. package/dist/application-spec/generate-application/runtime/create-application.js +1 -0
  200. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.d.ts +43 -0
  201. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.js +1 -0
  202. package/dist/application-spec/generate-application/runtime/factory-data/index.d.ts +3 -0
  203. package/dist/application-spec/generate-application/runtime/factory-data/index.js +1 -0
  204. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.d.ts +13 -0
  205. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.js +1 -0
  206. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.d.ts +16 -0
  207. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.js +1 -0
  208. package/dist/application-spec/generate-application/runtime/index.d.ts +8 -0
  209. package/dist/application-spec/generate-application/runtime/index.js +1 -0
  210. package/dist/application-spec/generate-application/runtime/migrations/index.d.ts +1 -0
  211. package/dist/application-spec/generate-application/runtime/migrations/index.js +1 -0
  212. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.d.ts +53 -0
  213. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.js +1 -0
  214. package/dist/application-spec/generate-application/runtime/sections/actions-runtime.d.ts +14 -0
  215. package/dist/application-spec/generate-application/runtime/sections/actions-runtime.js +1 -0
  216. package/dist/application-spec/generate-application/runtime/sections/assistant-runtime.d.ts +5 -4
  217. package/dist/application-spec/generate-application/runtime/sections/assistant-runtime.js +1 -1
  218. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.d.ts +3 -2
  219. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.js +1 -1
  220. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.d.ts +2 -1
  221. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.js +1 -1
  222. package/dist/application-spec/generate-application/runtime/sections/component-optic.d.ts +5 -1
  223. package/dist/application-spec/generate-application/runtime/sections/component-optic.js +1 -1
  224. package/dist/application-spec/generate-application/runtime/sections/data-runtime.d.ts +4 -4
  225. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.d.ts +15 -6
  226. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +1 -1
  227. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.d.ts +9 -5
  228. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.js +1 -1
  229. package/dist/application-spec/generate-application/runtime/sections/index.d.ts +1 -0
  230. package/dist/application-spec/generate-application/runtime/sections/index.js +1 -1
  231. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.d.ts +3 -1
  232. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.js +1 -1
  233. package/dist/application-spec/generate-application/runtime/sections/theme-runtime.d.ts +2 -2
  234. package/dist/application-spec/generate-application/runtime/sections/transformers-runtime.d.ts +4 -6
  235. package/dist/application-spec/generate-application/runtime/spec-code/index.d.ts +2 -0
  236. package/dist/application-spec/generate-application/runtime/spec-code/index.js +1 -0
  237. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.d.ts +18 -0
  238. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.js +1 -0
  239. package/dist/application-spec/generate-application/runtime/spec-code/spec-code-module.d.ts +17 -0
  240. package/dist/application-spec/generate-application/runtime/spec-runtime.d.ts +21 -0
  241. package/dist/application-spec/generate-application/runtime/spec-runtime.js +1 -0
  242. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.d.ts +9 -0
  243. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.js +1 -0
  244. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.d.ts +8 -0
  245. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.js +1 -0
  246. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.d.ts +28 -0
  247. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.js +1 -0
  248. package/dist/application-spec/generate-application/runtime-spec/index.d.ts +5 -0
  249. package/dist/application-spec/generate-application/runtime-spec/index.js +1 -0
  250. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.d.ts +103 -0
  251. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.js +1 -0
  252. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.d.ts +40 -0
  253. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.js +1 -0
  254. package/dist/application-spec/index.d.ts +1 -0
  255. package/dist/application-spec/index.js +1 -1
  256. package/dist/application-spec/parse-application-files/categorize/categorize-files.d.ts +37 -1
  257. package/dist/application-spec/parse-application-files/categorize/categorize-files.js +1 -1
  258. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.d.ts +16 -0
  259. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.js +9 -0
  260. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.d.ts +9 -0
  261. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.js +1 -0
  262. package/dist/application-spec/parse-application-files/categorize/module-analysis.d.ts +1 -1
  263. package/dist/application-spec/parse-application-files/categorize/module-analysis.js +1 -1
  264. package/dist/application-spec/parse-application-files/merge/index.d.ts +1 -0
  265. package/dist/application-spec/parse-application-files/merge/index.js +1 -1
  266. package/dist/application-spec/parse-application-files/merge/merged-actions.d.ts +11 -0
  267. package/dist/application-spec/parse-application-files/merge/merged-actions.js +1 -0
  268. package/dist/application-spec/parse-application-files/merge/merged-spec.d.ts +2 -0
  269. package/dist/application-spec/parse-application-files/merge/merged-spec.js +1 -1
  270. package/dist/application-spec/parse-application-files/raw-spec/index.d.ts +1 -0
  271. package/dist/application-spec/parse-application-files/raw-spec/index.js +1 -1
  272. package/dist/application-spec/parse-application-files/raw-spec/parse-yaml-spec-file.js +1 -1
  273. package/dist/application-spec/parse-application-files/raw-spec/raw-actions.d.ts +18 -0
  274. package/dist/application-spec/parse-application-files/raw-spec/raw-actions.js +1 -0
  275. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +59 -4
  276. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  277. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.d.ts +2 -0
  278. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
  279. package/dist/application-spec/parse-application-files/resolve/resolve-import-modules.js +1 -1
  280. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-spec.js +1 -1
  281. package/dist/application-spec/parse-application-files/spec/application/application-spec.js +1 -1
  282. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.d.ts +4 -2
  283. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.js +1 -1
  284. package/dist/application-spec/parse-application-files/spec/common/index.d.ts +2 -0
  285. package/dist/application-spec/parse-application-files/spec/common/index.js +1 -1
  286. package/dist/application-spec/parse-application-files/spec/common/schema-ref-resolver.d.ts +23 -0
  287. package/dist/application-spec/parse-application-files/spec/common/schema-ref-resolver.js +1 -0
  288. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.d.ts +3 -0
  289. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.js +1 -0
  290. package/dist/application-spec/parse-application-files/spec/common/value-type/index.d.ts +5 -0
  291. package/dist/application-spec/parse-application-files/spec/common/value-type/index.js +1 -0
  292. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.d.ts +6 -0
  293. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.js +1 -0
  294. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.d.ts +8 -0
  295. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.js +1 -0
  296. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.d.ts +10 -0
  297. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.js +1 -0
  298. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.d.ts +98 -0
  299. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.js +1 -0
  300. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.d.ts +13 -0
  301. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.js +1 -0
  302. package/dist/application-spec/parse-application-files/spec/components/bindings/index.d.ts +2 -0
  303. package/dist/application-spec/parse-application-files/spec/components/bindings/index.js +1 -1
  304. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.d.ts +24 -0
  305. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.js +1 -0
  306. package/dist/application-spec/parse-application-files/spec/components/component-entry.d.ts +1 -9
  307. package/dist/application-spec/parse-application-files/spec/components/component-entry.js +1 -1
  308. package/dist/application-spec/parse-application-files/spec/components/component-filter.d.ts +1 -54
  309. package/dist/application-spec/parse-application-files/spec/components/component-filter.js +1 -1
  310. package/dist/application-spec/parse-application-files/spec/components/component-state-type.d.ts +8 -0
  311. package/dist/application-spec/parse-application-files/spec/components/component-state-type.js +1 -0
  312. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.d.ts +13 -0
  313. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.js +1 -0
  314. package/dist/application-spec/parse-application-files/spec/components/index.d.ts +1 -1
  315. package/dist/application-spec/parse-application-files/spec/components/index.js +1 -1
  316. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.d.ts +14 -0
  317. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.js +1 -0
  318. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.d.ts +6 -0
  319. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.js +1 -1
  320. package/dist/application-spec/parse-application-files/spec/components/user-components.d.ts +7 -4
  321. package/dist/application-spec/parse-application-files/spec/components/user-components.js +1 -1
  322. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.d.ts +24 -0
  323. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.js +1 -0
  324. package/dist/application-spec/parse-application-files/spec/expressions/expression-read.d.ts +13 -0
  325. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.d.ts +9 -0
  326. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.js +1 -0
  327. package/dist/application-spec/parse-application-files/spec/expressions/expression.d.ts +1 -28
  328. package/dist/application-spec/parse-application-files/spec/expressions/expression.js +1 -1
  329. package/dist/application-spec/parse-application-files/spec/expressions/expressions.d.ts +7 -3
  330. package/dist/application-spec/parse-application-files/spec/expressions/expressions.js +1 -1
  331. package/dist/application-spec/parse-application-files/spec/expressions/index.d.ts +0 -1
  332. package/dist/application-spec/parse-application-files/spec/expressions/index.js +1 -1
  333. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.js +1 -1
  334. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.d.ts +3 -1
  335. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
  336. package/dist/application-spec/parse-application-files/spec/invariants/invariants.d.ts +2 -2
  337. package/dist/application-spec/parse-application-files/spec/invariants/invariants.js +1 -1
  338. package/dist/application-spec/parse-application-files/spec/model/defaults.d.ts +7 -2
  339. package/dist/application-spec/parse-application-files/spec/model/defaults.js +1 -1
  340. package/dist/application-spec/parse-application-files/spec/model/index.d.ts +1 -0
  341. package/dist/application-spec/parse-application-files/spec/model/index.js +1 -1
  342. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.d.ts +10 -0
  343. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.js +1 -0
  344. package/dist/application-spec/parse-application-files/spec/model/names/action-name.d.ts +10 -0
  345. package/dist/application-spec/parse-application-files/spec/model/names/action-name.js +1 -0
  346. package/dist/application-spec/parse-application-files/spec/model/names/index.d.ts +1 -0
  347. package/dist/application-spec/parse-application-files/spec/model/names/index.js +1 -1
  348. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.d.ts +25 -0
  349. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.js +1 -0
  350. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.d.ts +46 -0
  351. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.js +1 -0
  352. package/dist/application-spec/parse-application-files/spec/relations/relations.d.ts +4 -3
  353. package/dist/application-spec/parse-application-files/spec/relations/relations.js +1 -1
  354. package/dist/application-spec/parse-application-files/spec/sections/actions.d.ts +35 -0
  355. package/dist/application-spec/parse-application-files/spec/sections/actions.js +1 -0
  356. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-field-type.d.ts +5 -21
  357. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-field-type.js +1 -1
  358. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +9 -0
  359. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -0
  360. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +18 -40
  361. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  362. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.d.ts +2 -2
  363. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant.d.ts +5 -19
  364. package/dist/application-spec/parse-application-files/spec/sections/index.d.ts +1 -0
  365. package/dist/application-spec/parse-application-files/spec/sections/index.js +1 -1
  366. package/dist/application-spec/parse-application-files/spec/sections/infra.d.ts +2 -0
  367. package/dist/application-spec/parse-application-files/spec/sections/infra.js +1 -1
  368. package/dist/client/authorized-client.d.ts +3 -1
  369. package/dist/client/authorized-client.js +1 -1
  370. package/dist/client/contract.d.ts +34 -0
  371. package/dist/client/contract.js +1 -1
  372. package/dist/client/index.d.ts +2 -2
  373. package/dist/client/index.js +1 -1
  374. package/dist/client/local-authorized-client.d.ts +3 -1
  375. package/dist/client/local-authorized-client.js +1 -1
  376. package/dist/client/memory-authorized-client.d.ts +3 -1
  377. package/dist/client/memory-authorized-client.js +1 -1
  378. package/dist/client/phoenix-api.d.ts +761 -57
  379. package/dist/configurator/ConfiguratorApp.js +1 -1
  380. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.d.ts +2 -0
  381. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.js +5 -0
  382. package/dist/configurator/app-loader-content/index.d.ts +1 -0
  383. package/dist/configurator/app-loader-content/index.js +1 -0
  384. package/dist/configurator/application-runtime/extensions/configurator-extension-systems.d.ts +2 -1
  385. package/dist/configurator/application-runtime/extensions/configurator-extension-systems.js +1 -1
  386. package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
  387. package/dist/configurator/application-runtime/extensions/selectors.d.ts +5 -2
  388. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  389. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +305 -0
  390. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -0
  391. package/dist/configurator/application-runtime/extensions/systems/assistant-system/browser-details.d.ts +17 -0
  392. package/dist/configurator/application-runtime/extensions/systems/assistant-system/browser-details.js +1 -0
  393. package/dist/configurator/application-runtime/extensions/systems/assistant-system/change-recorder.d.ts +85 -0
  394. package/dist/configurator/application-runtime/extensions/systems/assistant-system/change-recorder.js +1 -0
  395. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +192 -0
  396. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -0
  397. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +1 -1
  398. package/dist/configurator/application-runtime/extensions/systems/canvas-system.d.ts +8 -0
  399. package/dist/configurator/application-runtime/extensions/systems/canvas-system.js +1 -1
  400. package/dist/configurator/application-runtime/extensions/systems/drag-and-drop-system/drag-and-drop-system.d.ts +3 -3
  401. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.d.ts +8 -0
  402. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.js +1 -0
  403. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +23 -1
  404. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  405. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.d.ts +12 -0
  406. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.js +1 -0
  407. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +18 -1
  408. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  409. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +80 -8
  410. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  411. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.d.ts +11 -0
  412. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.js +1 -0
  413. package/dist/configurator/application-runtime/extensions/systems/graphql-system/side-effects.d.ts +9 -0
  414. package/dist/configurator/application-runtime/extensions/systems/graphql-system/side-effects.js +1 -0
  415. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +14 -5
  416. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  417. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +2 -1
  418. package/dist/configurator/application-runtime/extensions/systems/index.js +1 -1
  419. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.d.ts +4 -2
  420. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.js +1 -1
  421. package/dist/configurator/common/configurator-interface.d.ts +145 -5
  422. package/dist/configurator/common/configurator-interface.js +1 -1
  423. package/dist/configurator/common/index.d.ts +3 -1
  424. package/dist/configurator/common/index.js +1 -1
  425. package/dist/configurator/common/use-reset-camera.d.ts +6 -0
  426. package/dist/configurator/common/use-reset-camera.js +1 -0
  427. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.d.ts +5 -0
  428. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.js +1 -0
  429. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.d.ts +6 -0
  430. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.js +1 -0
  431. package/dist/configurator/configuration-not-found-page/index.d.ts +2 -0
  432. package/dist/configurator/configuration-not-found-page/index.js +1 -0
  433. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.d.ts +12 -0
  434. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.js +1 -0
  435. package/dist/configurator/configurator-context/PresetSelectionProvider.js +1 -1
  436. package/dist/configurator/configurator-context/PreviewContextProvider.js +1 -1
  437. package/dist/configurator/configurator-context/ViewportStateSync.d.ts +2 -2
  438. package/dist/configurator/configurator-context/ViewportStateSync.js +1 -1
  439. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.d.ts +11 -1
  440. package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.js +1 -1
  441. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.d.ts +6 -0
  442. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.js +1 -0
  443. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.d.ts +7 -0
  444. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.js +1 -0
  445. package/dist/configurator/configurator-error-page/index.d.ts +2 -0
  446. package/dist/configurator/configurator-error-page/index.js +1 -0
  447. package/dist/configurator/index.d.ts +10 -1
  448. package/dist/configurator/index.js +1 -1
  449. package/dist/configurator/pages/ConfiguratorErrorPage.d.ts +0 -1
  450. package/dist/configurator/pages/ConfiguratorErrorPage.js +1 -1
  451. package/dist/configurator/pages/ConfiguratorNotFoundPage.js +1 -1
  452. package/dist/configurator/pages/DefaultConfiguratorLayout.d.ts +7 -0
  453. package/dist/configurator/pages/DefaultConfiguratorLayout.js +1 -0
  454. package/dist/configurator/pages/DefaultNotAuthenticatedPage.d.ts +8 -0
  455. package/dist/configurator/pages/DefaultNotAuthenticatedPage.js +1 -0
  456. package/dist/configurator/pages/DefaultPresetUi.d.ts +7 -0
  457. package/dist/configurator/pages/DefaultPresetUi.js +1 -0
  458. package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
  459. package/dist/configurator/pages/NewConfiguratorPage.js +1 -1
  460. package/dist/configurator/pages/PresetCreationErrorPage.d.ts +1 -1
  461. package/dist/configurator/pages/PresetCreationErrorPage.js +1 -1
  462. package/dist/configurator/pages/RootPage.js +1 -1
  463. package/dist/configurator/pages/configurator-layout-name.d.ts +2 -0
  464. package/dist/configurator/pages/configurator-layout-name.js +1 -0
  465. package/dist/configurator/pages/default-configurator-elements.d.ts +13 -0
  466. package/dist/configurator/pages/default-configurator-elements.js +1 -0
  467. package/dist/configurator/pages/default-elements/built-in-entity-element.d.ts +10 -0
  468. package/dist/configurator/pages/default-elements/built-in-entity-element.js +1 -0
  469. package/dist/configurator/pages/default-elements/built-in-layout-element.d.ts +10 -0
  470. package/dist/configurator/pages/default-elements/built-in-layout-element.js +1 -0
  471. package/dist/configurator/pages/default-elements/domain-control-elements.d.ts +6 -0
  472. package/dist/configurator/pages/default-elements/domain-control-elements.js +1 -0
  473. package/dist/configurator/pages/default-elements/index.d.ts +5 -0
  474. package/dist/configurator/pages/default-elements/index.js +1 -0
  475. package/dist/configurator/pages/default-elements/recipe-panel-elements.d.ts +3 -0
  476. package/dist/configurator/pages/default-elements/recipe-panel-elements.js +1 -0
  477. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.d.ts +3 -0
  478. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.js +1 -0
  479. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.d.ts +3 -0
  480. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.js +1 -0
  481. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.d.ts +3 -0
  482. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.js +1 -0
  483. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.d.ts +3 -0
  484. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.js +1 -0
  485. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.d.ts +3 -0
  486. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.js +1 -0
  487. package/dist/configurator/pages/default-elements/scene-controls/index.d.ts +6 -0
  488. package/dist/configurator/pages/default-elements/scene-controls/index.js +1 -0
  489. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.d.ts +6 -0
  490. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.js +1 -0
  491. package/dist/configurator/pages/default-elements/sidebar-footer-elements.d.ts +7 -0
  492. package/dist/configurator/pages/default-elements/sidebar-footer-elements.js +1 -0
  493. package/dist/configurator/pages/default-elements/toolbar-elements.d.ts +7 -0
  494. package/dist/configurator/pages/default-elements/toolbar-elements.js +1 -0
  495. package/dist/configurator/pages/error-boundaries/GeneralErrorBoundary.js +1 -1
  496. package/dist/configurator/pages/error-boundaries/LoadingErrorBoundary.js +1 -1
  497. package/dist/configurator/pages/index.d.ts +1 -0
  498. package/dist/configurator/pages/index.js +1 -1
  499. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.d.ts +4 -0
  500. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.js +1 -0
  501. package/dist/configurator/preset-screen-elements/PresetPageActionElement.d.ts +4 -0
  502. package/dist/configurator/preset-screen-elements/PresetPageActionElement.js +1 -0
  503. package/dist/configurator/preset-screen-elements/index.d.ts +2 -0
  504. package/dist/configurator/preset-screen-elements/index.js +1 -0
  505. package/dist/configurator/scene/index.d.ts +1 -0
  506. package/dist/configurator/scene/index.js +1 -1
  507. package/dist/configurator/scene/scene-analytics/scene-analytics.d.ts +2 -2
  508. package/dist/configurator/scene/scene-controls/DeleteEntityFab.js +1 -1
  509. package/dist/configurator/scene/scene-controls/SelectionHotspot.js +1 -1
  510. package/dist/configurator/scene/scene-controls/ToolFab.d.ts +4 -0
  511. package/dist/configurator/scene/scene-controls/ToolFab.js +1 -1
  512. package/dist/configurator/scene/scene-controls/hotspot-drag-handle/HotspotDragHandle.d.ts +1 -1
  513. package/dist/configurator/scene/scene-controls/hotspot-drag-handle/HotspotDragSceneHandle.d.ts +1 -1
  514. package/dist/configurator/scene/scene-controls/use-scene-control-tooltip.d.ts +2 -1
  515. package/dist/configurator/scene/scene-entity/dimension-indicators/DimensionIndicator.d.ts +1 -1
  516. package/dist/configurator/scene/scene-entity/dimension-indicators/DimensionIndicatorInternal.d.ts +1 -1
  517. package/dist/configurator/scene/scene-entity/drag-and-drop/shared.d.ts +2 -2
  518. package/dist/configurator/scene/scene-entity/drag-and-drop/use-drag-object.d.ts +1 -1
  519. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.js +1 -1
  520. package/dist/configurator/scene/scene-entity/objects/SceneEntityObjectTextDecal.d.ts +1 -1
  521. package/dist/configurator/scene/scene-entity/scene-controls/SceneEntityHtmlHotspots.js +1 -1
  522. package/dist/configurator/toolbar-actions/index.d.ts +3 -0
  523. package/dist/configurator/toolbar-actions/index.js +1 -0
  524. package/dist/configurator/toolbar-actions/use-assistant-panel.d.ts +18 -0
  525. package/dist/configurator/toolbar-actions/use-assistant-panel.js +1 -0
  526. package/dist/configurator/toolbar-actions/use-measurements.d.ts +35 -0
  527. package/dist/configurator/toolbar-actions/use-measurements.js +1 -0
  528. package/dist/configurator/toolbar-actions/use-toolbar-actions.d.ts +100 -0
  529. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -0
  530. package/dist/configurator/toolbar-actions/use-toolbar-help.d.ts +7 -0
  531. package/dist/configurator/toolbar-actions/use-toolbar-help.js +1 -0
  532. package/dist/configurator/ui/assistant/AssistantChips.d.ts +18 -0
  533. package/dist/configurator/ui/assistant/AssistantChips.js +1 -0
  534. package/dist/configurator/ui/assistant/AssistantComposer.d.ts +7 -0
  535. package/dist/configurator/ui/assistant/AssistantComposer.js +1 -0
  536. package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +12 -0
  537. package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -0
  538. package/dist/configurator/ui/assistant/AssistantPanel.d.ts +11 -0
  539. package/dist/configurator/ui/assistant/AssistantPanel.js +1 -0
  540. package/dist/configurator/ui/assistant/AssistantThread.d.ts +10 -0
  541. package/dist/configurator/ui/assistant/AssistantThread.js +1 -0
  542. package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +8 -0
  543. package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -0
  544. package/dist/configurator/ui/assistant/alert/index.d.ts +2 -0
  545. package/dist/configurator/ui/assistant/alert/index.js +1 -0
  546. package/dist/configurator/ui/assistant/alert/remark-alerts.d.ts +10 -0
  547. package/dist/configurator/ui/assistant/alert/remark-alerts.js +1 -0
  548. package/dist/configurator/ui/assistant/assistant-failure.d.ts +18 -0
  549. package/dist/configurator/ui/assistant/assistant-failure.js +1 -0
  550. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.d.ts +13 -0
  551. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.js +1 -0
  552. package/dist/configurator/ui/assistant/entity-link/entity-link-selection.d.ts +22 -0
  553. package/dist/configurator/ui/assistant/entity-link/entity-link-selection.js +1 -0
  554. package/dist/configurator/ui/assistant/entity-link/entity-link-state.d.ts +27 -0
  555. package/dist/configurator/ui/assistant/entity-link/entity-link-state.js +1 -0
  556. package/dist/configurator/ui/assistant/entity-link/index.d.ts +2 -0
  557. package/dist/configurator/ui/assistant/entity-link/index.js +1 -0
  558. package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +19 -0
  559. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -0
  560. package/dist/configurator/ui/assistant/form/compose-answer.d.ts +11 -0
  561. package/dist/configurator/ui/assistant/form/compose-answer.js +1 -0
  562. package/dist/configurator/ui/assistant/form/describe-build-errors.d.ts +6 -0
  563. package/dist/configurator/ui/assistant/form/describe-build-errors.js +1 -0
  564. package/dist/configurator/ui/assistant/form/form-model.d.ts +37 -0
  565. package/dist/configurator/ui/assistant/form/form-state.d.ts +4 -0
  566. package/dist/configurator/ui/assistant/form/index.d.ts +4 -0
  567. package/dist/configurator/ui/assistant/form/index.js +1 -0
  568. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +10 -0
  569. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -0
  570. package/dist/configurator/ui/assistant/form/read-form-attributes.d.ts +13 -0
  571. package/dist/configurator/ui/assistant/form/read-form-attributes.js +1 -0
  572. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +3 -0
  573. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -0
  574. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +31 -0
  575. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.js +1 -0
  576. package/dist/configurator/ui/assistant/form/registry/form-element-definition.d.ts +16 -0
  577. package/dist/configurator/ui/assistant/form/registry/form-element-definition.js +1 -0
  578. package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +31 -0
  579. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -0
  580. package/dist/configurator/ui/assistant/form/registry/index.d.ts +6 -0
  581. package/dist/configurator/ui/assistant/form/registry/index.js +1 -0
  582. package/dist/configurator/ui/assistant/form/registry/use-form-registry.d.ts +8 -0
  583. package/dist/configurator/ui/assistant/form/registry/use-form-registry.js +1 -0
  584. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +9 -0
  585. package/dist/configurator/ui/assistant/form-elements/FormCard.js +1 -0
  586. package/dist/configurator/ui/assistant/form-elements/FormConfirm.d.ts +9 -0
  587. package/dist/configurator/ui/assistant/form-elements/FormConfirm.js +1 -0
  588. package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +6 -0
  589. package/dist/configurator/ui/assistant/form-elements/FormGroup.js +1 -0
  590. package/dist/configurator/ui/assistant/form-elements/FormNumber.d.ts +9 -0
  591. package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -0
  592. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +6 -0
  593. package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -0
  594. package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +6 -0
  595. package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -0
  596. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +10 -0
  597. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +1 -0
  598. package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +6 -0
  599. package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -0
  600. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.d.ts +10 -0
  601. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.js +1 -0
  602. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +38 -0
  603. package/dist/configurator/ui/assistant/form-elements/index.d.ts +9 -0
  604. package/dist/configurator/ui/assistant/form-elements/index.js +1 -0
  605. package/dist/configurator/ui/assistant/index.d.ts +5 -0
  606. package/dist/configurator/ui/assistant/index.js +1 -0
  607. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.d.ts +16 -0
  608. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -0
  609. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.d.ts +34 -0
  610. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.js +1 -0
  611. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +25 -0
  612. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -0
  613. package/dist/configurator/ui/assistant/reference-link/index.d.ts +3 -0
  614. package/dist/configurator/ui/assistant/reference-link/index.js +1 -0
  615. package/dist/configurator/ui/assistant/reference-link/reference-styles.d.ts +12 -0
  616. package/dist/configurator/ui/assistant/reference-link/reference-styles.js +1 -0
  617. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.d.ts +8 -0
  618. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.js +1 -0
  619. package/dist/configurator/ui/assistant/resource-image/AssistantImage.d.ts +9 -0
  620. package/dist/configurator/ui/assistant/resource-image/AssistantImage.js +1 -0
  621. package/dist/configurator/ui/assistant/resource-image/index.d.ts +3 -0
  622. package/dist/configurator/ui/assistant/resource-image/index.js +1 -0
  623. package/dist/configurator/ui/assistant/resource-image/resource-path.d.ts +2 -0
  624. package/dist/configurator/ui/assistant/resource-image/resource-path.js +1 -0
  625. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.d.ts +5 -0
  626. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.js +1 -0
  627. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +9 -0
  628. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -0
  629. package/dist/configurator/ui/assistant/screenshots/index.d.ts +2 -0
  630. package/dist/configurator/ui/assistant/screenshots/index.js +1 -0
  631. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +14 -0
  632. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -0
  633. package/dist/configurator/ui/assistant/streamed-markdown.d.ts +8 -0
  634. package/dist/configurator/ui/assistant/streamed-markdown.js +2 -0
  635. package/dist/configurator/ui/assistant/theme.d.ts +2 -0
  636. package/dist/configurator/ui/assistant/theme.js +1 -0
  637. package/dist/configurator/ui/assistant/thread-items.d.ts +55 -0
  638. package/dist/configurator/ui/assistant/thread-items.js +1 -0
  639. package/dist/configurator/ui/assistant/tool-chip.d.ts +44 -0
  640. package/dist/configurator/ui/assistant/tool-chip.js +1 -0
  641. package/dist/configurator/ui/assistant/use-follow-stream.d.ts +17 -0
  642. package/dist/configurator/ui/assistant/use-follow-stream.js +1 -0
  643. package/dist/configurator/ui/assistant/use-is-assistant-panel-open.d.ts +5 -0
  644. package/dist/configurator/ui/assistant/use-is-assistant-panel-open.js +1 -0
  645. package/dist/configurator/ui/configurator-layout/sidebar-keys/index.d.ts +1 -0
  646. package/dist/configurator/ui/configurator-layout/sidebar-keys/index.js +1 -0
  647. package/dist/configurator/ui/configurator-layout/sidebar-keys/sidebar-keys.d.ts +11 -0
  648. package/dist/configurator/ui/configurator-layout/sidebar-keys/sidebar-keys.js +1 -0
  649. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  650. package/dist/configurator/ui/configurator-layout/slots/canvas/SharedCanvas.js +1 -1
  651. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.d.ts +101 -0
  652. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +16 -0
  653. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/index.d.ts +1 -0
  654. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/index.js +1 -0
  655. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.d.ts +1 -1
  656. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.js +1 -1
  657. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.d.ts +4 -4
  658. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.js +1 -1
  659. package/dist/configurator/ui/configurator-layout/slots/services/Services.js +1 -1
  660. package/dist/configurator/ui/configurator-layout/slots/services/SideEffects.d.ts +3 -6
  661. package/dist/configurator/ui/configurator-layout/slots/services/SideEffects.js +1 -1
  662. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.d.ts +1 -1
  663. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.js +1 -1
  664. package/dist/configurator/ui/configurator-layout/slots/slots.d.ts +1 -0
  665. package/dist/configurator/ui/configurator-layout/slots/slots.js +1 -1
  666. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.d.ts +0 -74
  667. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.js +5 -20
  668. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  669. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.d.ts +5 -0
  670. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.js +1 -0
  671. package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
  672. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.d.ts +2 -0
  673. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +3 -3
  674. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  675. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.d.ts +47 -0
  676. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -0
  677. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.d.ts +11 -26
  678. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.js +1 -1
  679. package/dist/configurator/ui/index.d.ts +1 -0
  680. package/dist/configurator/ui/index.js +1 -1
  681. package/dist/configurator/ui/legacy/layout/common/CommonFinalizeButton.js +1 -1
  682. package/dist/configurator/ui/legacy/layout/common/CommonSummaryButton.js +1 -1
  683. package/dist/configurator/ui/legacy/layout/common/CommonTopNavigation.js +1 -1
  684. package/dist/configurator/ui/legacy/layout/common/ReactiveInterfaceLayout.js +1 -1
  685. package/dist/configurator/ui/legacy/layout/common/ResponsiveFinalizeButton.js +1 -1
  686. package/dist/configurator/ui/legacy/layout/common/SummaryReadLayout.js +1 -1
  687. package/dist/configurator/ui/legacy/layout/simple/SimpleOwnerLayout.js +1 -1
  688. package/dist/configurator/ui/legacy/layout/simple/SimpleTopNavigation.js +1 -1
  689. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.d.ts +2 -2
  690. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.js +1 -1
  691. package/dist/configurator/ui/legacy/layout/steps/StepsOwnerLayout.js +1 -1
  692. package/dist/configurator/ui/legacy/layout/steps/StepsSidebarFooter.js +1 -1
  693. package/dist/configurator/ui/legacy/layout/tabs/TabsOwnerLayout.js +1 -1
  694. package/dist/configurator/ui/legacy/mobile-controls/MobileControls.d.ts +1 -1
  695. package/dist/configurator/ui/legacy/toolbar/common/DimensionUnitSelector.js +1 -1
  696. package/dist/configurator/ui/legacy/toolbar/common/MeasurementsIndicatorsSwitch.js +1 -1
  697. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/FullscreenToolbarAction.js +1 -1
  698. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/HelpToolbarAction.js +1 -1
  699. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/MeasurementsToolbarAction.js +1 -1
  700. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/UndoRedoToolbarGroup.js +1 -1
  701. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.d.ts +0 -7
  702. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.js +2 -6
  703. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.d.ts +10 -0
  704. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -0
  705. package/dist/configurator/ui/phoenix-layout-elements/EnterFullscreenToolbarButton.js +1 -1
  706. package/dist/configurator/ui/phoenix-layout-elements/ExitFullscreenToolbarButton.js +1 -1
  707. package/dist/configurator/ui/phoenix-layout-elements/HelpToolbarButton.js +1 -1
  708. package/dist/configurator/ui/phoenix-layout-elements/LanguageMenuAction.js +1 -1
  709. package/dist/configurator/ui/phoenix-layout-elements/LanguageToolbarButton.js +1 -1
  710. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.d.ts +1 -0
  711. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.js +1 -1
  712. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.d.ts +1 -0
  713. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.js +1 -1
  714. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsMenuAction.js +1 -1
  715. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsToolbarButton.js +1 -1
  716. package/dist/configurator/ui/phoenix-layout-elements/RedoToolbarButton.js +1 -1
  717. package/dist/configurator/ui/phoenix-layout-elements/ShareToolbarButton.js +1 -1
  718. package/dist/configurator/ui/phoenix-layout-elements/UndoToolbarButton.js +1 -1
  719. package/dist/configurator/ui/phoenix-layout-elements/header/common/back-button/use-go-back-action.js +1 -1
  720. package/dist/configurator/ui/phoenix-layout-elements/header/common/horizontal-tabs/DesktopHorizontalTabs.js +1 -1
  721. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.d.ts +1 -1
  722. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.js +1 -1
  723. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.d.ts +2 -8
  724. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.js +1 -1
  725. package/dist/configurator/ui/phoenix-layout-elements/index.d.ts +9 -1
  726. package/dist/configurator/ui/phoenix-layout-elements/index.js +1 -1
  727. package/dist/configurator/ui/phoenix-layout-elements/measurements/DimensionUnitSelector.js +1 -1
  728. package/dist/configurator/ui/phoenix-layout-elements/measurements/MeasurementsIndicatorsSwitch.js +1 -1
  729. package/dist/configurator/ui/phoenix-layout-elements/share/ShareModal.js +1 -1
  730. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.d.ts +7 -8
  731. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.js +1 -1
  732. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/BasicFinalizeButton.js +1 -1
  733. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/CustomFinalizeButton.js +1 -1
  734. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/EnterSummaryButton.js +1 -1
  735. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/FinalizeActions.js +1 -1
  736. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/NextStepButton.js +1 -1
  737. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/PreviousStepButton.js +1 -1
  738. package/dist/configurator/ui/preset-layout/CategoryPresetUi.js +1 -1
  739. package/dist/configurator/ui/preset-layout/PresetUi.d.ts +4 -2
  740. package/dist/configurator/ui/preset-layout/PresetUi.js +1 -1
  741. package/dist/configurator/ui/preset-layout/index.d.ts +6 -1
  742. package/dist/configurator/ui/preset-layout/index.js +1 -1
  743. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.d.ts +10 -0
  744. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.js +1 -0
  745. package/dist/configurator/ui/save-message-snackbars/index.d.ts +1 -0
  746. package/dist/configurator/ui/save-message-snackbars/index.js +1 -0
  747. package/dist/docs/complex-use-cases/filtered-controls-with-fix-dialog.mdx +100 -117
  748. package/dist/docs/complex-use-cases/focus-mode.mdx +2 -0
  749. package/dist/docs/complex-use-cases/navigation-reset-selection.mdx +18 -12
  750. package/dist/docs/complex-use-cases/sketching.mdx +0 -38
  751. package/dist/docs/controls/select-attribute/cardselect.mdx +9 -13
  752. package/dist/docs/controls/select-child-entity/cardselect.mdx +1 -0
  753. package/dist/docs/dimensions/3d-scene-integration/dimension-indicators.mdx +2 -2
  754. package/dist/docs/dimensions/3d-scene-integration/editable-angle-indicator.mdx +1 -1
  755. package/dist/docs/dimensions/3d-scene-integration/editable-distance-dimension-indicator.mdx +1 -1
  756. package/dist/docs/dimensions/3d-scene-integration/list-selector-dimension-indicator.mdx +1 -1
  757. package/dist/docs/drag-and-drop/drag-handle.mdx +1 -1
  758. package/dist/docs/drag-and-drop/hotspot-handle.mdx +1 -1
  759. package/dist/docs/drag-and-drop/planes.mdx +1 -1
  760. package/dist/docs/drag-and-drop/rotatable.mdx +2 -2
  761. package/dist/docs/fabs/basic.mdx +6 -2
  762. package/dist/docs/index.json +147 -2
  763. package/dist/docs/integrations/webcomponent-api/basics.mdx +2 -0
  764. package/dist/docs/integrations/woocommerce/local-development.mdx +1 -1
  765. package/dist/docs/layouts/custom-layout.mdx +2597 -0
  766. package/dist/docs/layouts/custom-price.mdx +14 -16
  767. package/dist/docs/layouts/gallery/ardent-compressor.mdx +3516 -0
  768. package/dist/docs/layouts/gallery/corvid-drone.mdx +3428 -0
  769. package/dist/docs/layouts/gallery/fenwick-window.mdx +2803 -0
  770. package/dist/docs/layouts/gallery/ferrule-bar-station.mdx +6567 -0
  771. package/dist/docs/layouts/gallery/kestrel-kettle.mdx +1858 -0
  772. package/dist/docs/layouts/gallery/nightjar-guitar.mdx +3698 -0
  773. package/dist/docs/layouts/gallery/sunfold-solar.mdx +2683 -0
  774. package/dist/docs/layouts/gallery/tidepool-aquascape.mdx +5203 -0
  775. package/dist/docs/layouts/header/fixed.mdx +2 -2
  776. package/dist/docs/layouts/header/floating.mdx +2 -2
  777. package/dist/docs/layouts/sidebar/in-a-custom-layout.mdx +380 -0
  778. package/dist/docs/layouts/sidebar/tabs.mdx +24 -21
  779. package/dist/docs/layouts/sidebar-footer/basic.mdx +32 -77
  780. package/dist/docs/layouts/toolbar.mdx +6 -0
  781. package/dist/docs/other-features/client-side-rendering/declarative.mdx +2 -2
  782. package/dist/docs/other-features/domain-actions.mdx +418 -0
  783. package/dist/docs/other-features/error-5xx.mdx +1 -1
  784. package/dist/docs/other-features/navigation-hotspot.mdx +2 -0
  785. package/dist/docs/other-features/not-found-404.mdx +1 -1
  786. package/dist/docs/other-features/side-effects.mdx +76 -45
  787. package/dist/docs/other-features/transformers.mdx +5 -1
  788. package/dist/docs/other-features/violation-messages.mdx +52 -56
  789. package/dist/docs/phoenix/admin.mdx +11 -26
  790. package/dist/docs/phoenix/application-states.mdx +9 -7
  791. package/dist/docs/phoenix/best-practices.mdx +1 -0
  792. package/dist/docs/phoenix/clerk-sign-in.mdx +1 -1
  793. package/dist/docs/phoenix/components.mdx +6 -0
  794. package/dist/docs/phoenix/configurator-interface.mdx +402 -81
  795. package/dist/docs/phoenix/deployments.mdx +3 -7
  796. package/dist/docs/phoenix/domain-model.mdx +6 -0
  797. package/dist/docs/phoenix/expression-context.mdx +11 -3
  798. package/dist/docs/phoenix/finalization.mdx +2 -2
  799. package/dist/docs/phoenix/getting-started.mdx +7 -4
  800. package/dist/docs/phoenix/integration/headless-mode-external.mdx +5 -5
  801. package/dist/docs/phoenix/integration/widget-mode-external.mdx +5 -5
  802. package/dist/docs/phoenix/layout-slots.mdx +116 -0
  803. package/dist/docs/phoenix/localization.mdx +13 -28
  804. package/dist/docs/phoenix/migration-guide.mdx +24 -11
  805. package/dist/docs/phoenix/phoenix-cli.mdx +249 -83
  806. package/dist/docs/phoenix/project-structure.mdx +90 -36
  807. package/dist/docs/phoenix/quickstart.mdx +9 -9
  808. package/dist/docs/phoenix/sdk-builder-workflow.mdx +24 -20
  809. package/dist/docs/phoenix/sessions-and-access.mdx +2 -0
  810. package/dist/docs/phoenix/testing.mdx +148 -0
  811. package/dist/docs/phoenix/webhook-membership.mdx +10 -9
  812. package/dist/docs/phoenix/webhooks.mdx +23 -6
  813. package/dist/docs/recipes-and-delete/recipe-hierarchy-selection.mdx +15 -13
  814. package/dist/docs/relations/hierarchy.mdx +13 -2
  815. package/dist/docs/selection-and-highlight/hotspots.mdx +2 -0
  816. package/dist/docs/ux-guidelines/choosing-a-control.mdx +11 -0
  817. package/dist/domain/admin-domain/__generated/enhanced-model.d.ts +1 -2
  818. package/dist/domain/admin-domain/__generated/model/versions/v1.d.ts +1 -1
  819. package/dist/domain/admin-domain/__generated/model/versions/v2.d.ts +1 -1
  820. package/dist/domain/admin-domain/__generated/model/versions/v3.d.ts +1 -1
  821. package/dist/domain/admin-domain/__generated/model/versions/v4.d.ts +1 -1
  822. package/dist/domain/admin-domain/__generated/model/versions/v5.d.ts +1 -1
  823. package/dist/domain/admin-domain/__generated/model/versions/v6.d.ts +2 -2
  824. package/dist/domain/admin-domain/__generated/model/versions/v6.js +1 -1
  825. package/dist/domain/admin-domain/implementation/common-admin-expressions.d.ts +26 -14
  826. package/dist/domain/admin-domain/implementation/common-admin-migrations.d.ts +1 -1
  827. package/dist/domain/admin-domain/implementation/common-admin-publish.d.ts +1 -2
  828. package/dist/domain/admin-domain/index.d.ts +9 -5
  829. package/dist/domain/admin-domain/index.js +1 -1
  830. package/dist/domain/application/GetApplicationWrapperHandler.d.ts +2 -2
  831. package/dist/domain/application/GetThemeHandler.d.ts +1 -1
  832. package/dist/domain/application/GetWebComponentOptions.d.ts +1 -1
  833. package/dist/domain/application/admin-page-factories.d.ts +1 -2
  834. package/dist/domain/application/application-config.d.ts +30 -95
  835. package/dist/domain/application/assistant/assistant-fields.d.ts +12 -0
  836. package/dist/domain/application/assistant/assistant-fields.js +1 -0
  837. package/dist/domain/application/assistant/assistant-manifest.d.ts +86 -0
  838. package/dist/domain/application/assistant/assistant-manifest.js +1 -0
  839. package/dist/domain/application/assistant/assistant-resolved-manifest.d.ts +138 -0
  840. package/dist/domain/application/assistant/assistant-resolved-manifest.js +1 -0
  841. package/dist/domain/application/assistant/assistant-value-type.d.ts +9 -0
  842. package/dist/domain/application/assistant/assistant-value-type.js +1 -0
  843. package/dist/domain/application/assistant/build-assistant-lenses.d.ts +14 -0
  844. package/dist/domain/application/assistant/build-assistant-lenses.js +5 -0
  845. package/dist/domain/application/assistant/build-assistant-manifest.d.ts +4 -0
  846. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -0
  847. package/dist/domain/application/assistant/create-assistant-execution-schema.d.ts +32 -0
  848. package/dist/domain/application/assistant/create-assistant-execution-schema.js +1 -0
  849. package/dist/domain/application/assistant/form/assistant-form-element-name.d.ts +11 -0
  850. package/dist/domain/application/assistant/form/assistant-form-element-name.js +8 -0
  851. package/dist/domain/application/assistant/form/assistant-form-elements.d.ts +174 -0
  852. package/dist/domain/application/assistant/form/assistant-form-elements.js +1 -0
  853. package/dist/domain/application/assistant/form/assistant-resource-path.d.ts +10 -0
  854. package/dist/domain/application/assistant/form/assistant-resource-path.js +1 -0
  855. package/dist/domain/application/assistant/form/index.d.ts +4 -0
  856. package/dist/domain/application/assistant/form/index.js +1 -0
  857. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +6 -0
  858. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -0
  859. package/dist/domain/application/assistant/index.d.ts +10 -0
  860. package/dist/domain/application/assistant/index.js +1 -0
  861. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.d.ts +20 -0
  862. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.js +1 -0
  863. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.d.ts +10 -0
  864. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -0
  865. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +50 -0
  866. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -0
  867. package/dist/domain/application/assistant/session-setup/create-session-assistant.d.ts +15 -0
  868. package/dist/domain/application/assistant/session-setup/create-session-assistant.js +1 -0
  869. package/dist/domain/application/assistant/session-setup/index.d.ts +4 -0
  870. package/dist/domain/application/assistant/session-setup/index.js +1 -0
  871. package/dist/domain/application/assistant-field-options.d.ts +2 -3
  872. package/dist/domain/application/assistant-mutations.d.ts +16 -17
  873. package/dist/domain/application/assistant-mutations.js +1 -1
  874. package/dist/domain/application/assistant-recipe-groups.d.ts +6 -8
  875. package/dist/domain/application/configurator-builder.d.ts +42 -18
  876. package/dist/domain/application/configurator-builder.js +1 -1
  877. package/dist/domain/application/create-initial-published-data.d.ts +6 -7
  878. package/dist/domain/application/index.d.ts +4 -7
  879. package/dist/domain/application/index.js +1 -1
  880. package/dist/domain/application/published-data/DataRowValidatorHandler.d.ts +1 -1
  881. package/dist/domain/application/published-data/FilterPublishedChunksHandler.d.ts +1 -1
  882. package/dist/domain/application/published-data/MapPublishedChunkedDataHandler.d.ts +1 -1
  883. package/dist/domain/application/published-data/MapPublishedRevisionDataHandler.d.ts +1 -1
  884. package/dist/domain/application/published-data/SheetValidatorHandler.d.ts +1 -1
  885. package/dist/domain/application/published-data/build-legend-data.d.ts +1 -1
  886. package/dist/domain/application/published-data/create-finalize-admin-domain.d.ts +1 -2
  887. package/dist/domain/application/published-data/format-field-type.d.ts +1 -1
  888. package/dist/domain/application/published-data/map-data-to-sheet.d.ts +1 -1
  889. package/dist/domain/application/published-data/map-published-chunked-data.d.ts +3 -3
  890. package/dist/domain/application/published-data/map-published-data.d.ts +7 -4
  891. package/dist/domain/application/published-data/validate-sheet-data.d.ts +1 -1
  892. package/dist/domain/application/standard-properties.js +1 -1
  893. package/dist/domain/application/web-component-property.d.ts +3 -1
  894. package/dist/domain/application/web-component-property.js +1 -1
  895. package/dist/domain/available-system-components.d.ts +1 -1
  896. package/dist/domain/available-system-components.js +1 -1
  897. package/dist/domain/core/action/action-factory.d.ts +11 -0
  898. package/dist/domain/core/action/action-factory.js +1 -0
  899. package/dist/domain/core/action/action.d.ts +71 -0
  900. package/dist/domain/core/action/action.js +1 -0
  901. package/dist/domain/core/action/index.d.ts +2 -0
  902. package/dist/domain/core/action/index.js +1 -0
  903. package/dist/domain/core/component/component-reader-types.d.ts +43 -0
  904. package/dist/domain/core/component/component-reader-types.js +1 -0
  905. package/dist/domain/core/component/debug-state-component.d.ts +14 -0
  906. package/dist/domain/core/component/debug-state-component.js +1 -0
  907. package/dist/domain/core/component/domain-component-optic.d.ts +65 -0
  908. package/dist/domain/core/component/domain-component-optic.js +16 -0
  909. package/dist/domain/core/component/drag-state-component.d.ts +16 -0
  910. package/dist/domain/core/component/drag-state-component.js +1 -0
  911. package/dist/domain/core/component/export-state-component.d.ts +15 -0
  912. package/dist/domain/core/component/export-state-component.js +1 -0
  913. package/dist/domain/core/component/fullscreen-state-component.d.ts +14 -0
  914. package/dist/domain/core/component/fullscreen-state-component.js +1 -0
  915. package/dist/domain/core/component/group-components-by-entity-id-and-name.d.ts +8 -0
  916. package/dist/domain/core/component/group-components-by-entity-id-and-name.js +1 -0
  917. package/dist/domain/core/component/hover-state-component.d.ts +14 -0
  918. package/dist/domain/core/component/hover-state-component.js +1 -0
  919. package/dist/domain/core/component/index.d.ts +18 -0
  920. package/dist/domain/core/component/index.js +1 -0
  921. package/dist/domain/core/component/legacy-filter.d.ts +498 -0
  922. package/dist/domain/core/component/navigation-state-component.d.ts +15 -0
  923. package/dist/domain/core/component/navigation-state-component.js +1 -0
  924. package/dist/domain/core/component/selection-state-component.d.ts +14 -0
  925. package/dist/domain/core/component/selection-state-component.js +1 -0
  926. package/dist/domain/core/component/system-component-builder.d.ts +11 -0
  927. package/dist/domain/core/component/system-component-builder.js +1 -0
  928. package/dist/domain/core/component/system-component-filter.d.ts +811 -0
  929. package/dist/domain/core/component/system-virtual-entity.js +1 -0
  930. package/dist/domain/core/component/tool-state-component.d.ts +14 -0
  931. package/dist/domain/core/component/tool-state-component.js +1 -0
  932. package/dist/domain/core/component/updates.d.ts +123 -0
  933. package/dist/domain/core/component/view-state-component.d.ts +14 -0
  934. package/dist/domain/core/component/view-state-component.js +1 -0
  935. package/dist/domain/core/component/viewport-state-component.d.ts +29 -0
  936. package/dist/domain/core/component/viewport-state-component.js +1 -0
  937. package/dist/domain/core/data-schema/data-cell-value.d.ts +4 -0
  938. package/dist/domain/core/data-schema/data-cell-value.js +1 -0
  939. package/dist/domain/core/data-schema/data-schema-array-field.d.ts +5 -0
  940. package/dist/domain/core/data-schema/data-schema-array-field.js +1 -0
  941. package/dist/domain/core/data-schema/data-schema-field-object.d.ts +4 -0
  942. package/dist/domain/core/data-schema/data-schema-field-object.js +1 -0
  943. package/dist/domain/core/data-schema/data-schema-field.d.ts +2 -0
  944. package/dist/domain/core/data-schema/data-schema-field.js +1 -0
  945. package/dist/domain/core/data-schema/data-schema-localized-field.d.ts +4 -0
  946. package/dist/domain/core/data-schema/data-schema-localized-field.js +1 -0
  947. package/dist/domain/core/data-schema/data-schema-primitive-field.d.ts +5 -0
  948. package/dist/domain/core/data-schema/data-schema-primitive-field.js +1 -0
  949. package/dist/domain/core/data-schema/data-schema.d.ts +2 -0
  950. package/dist/domain/core/data-schema/data-schema.js +1 -0
  951. package/dist/domain/core/data-schema/index.d.ts +7 -0
  952. package/dist/domain/core/data-schema/index.js +1 -0
  953. package/dist/domain/core/decoder/create-decoder.d.ts +6 -0
  954. package/dist/domain/core/decoder/create-decoder.js +1 -0
  955. package/dist/domain/core/decoder/decoder.d.ts +6 -0
  956. package/dist/domain/core/decoder/decoder.js +1 -0
  957. package/dist/domain/core/decoder/index.d.ts +2 -0
  958. package/dist/domain/core/decoder/index.js +1 -0
  959. package/dist/domain/core/domain-factory.d.ts +7 -4
  960. package/dist/domain/core/domain-factory.js +1 -1
  961. package/dist/domain/core/domain.d.ts +4 -5
  962. package/dist/domain/core/domain.js +1 -1
  963. package/dist/domain/core/emission/index.d.ts +8 -0
  964. package/dist/domain/core/emission/index.js +1 -0
  965. package/dist/domain/core/emission/reset-state-emission.d.ts +12 -0
  966. package/dist/domain/core/emission/reset-state-emission.js +1 -0
  967. package/dist/domain/core/emission/state-emission.d.ts +4 -0
  968. package/dist/domain/core/emission/state-emission.js +1 -0
  969. package/dist/domain/core/emission/state-update-emission.d.ts +14 -0
  970. package/dist/domain/core/emission/state-update-emission.js +1 -0
  971. package/dist/domain/core/emission/state-validation-result.d.ts +18 -0
  972. package/dist/domain/core/emission/state-validation-result.js +1 -0
  973. package/dist/domain/core/emission/transformation-log.d.ts +2 -0
  974. package/dist/domain/core/emission/transformation-log.js +1 -0
  975. package/dist/domain/core/emission/transformer-log-entry.d.ts +6 -0
  976. package/dist/domain/core/emission/transformer-log-entry.js +1 -0
  977. package/dist/domain/core/emission/transformer-log.d.ts +11 -0
  978. package/dist/domain/core/emission/transformer-log.js +1 -0
  979. package/dist/domain/core/emission/transformer-phase.d.ts +1 -0
  980. package/dist/domain/core/emission/transformer-phase.js +1 -0
  981. package/dist/domain/core/expression/aliased-expressions.d.ts +10 -0
  982. package/dist/domain/core/expression/aliased-expressions.js +1 -0
  983. package/dist/domain/core/expression/constant-expressions.d.ts +16 -0
  984. package/dist/domain/core/expression/constant-expressions.js +1 -0
  985. package/dist/domain/core/expression/custom-expression.d.ts +25 -0
  986. package/dist/domain/core/expression/custom-expression.js +1 -0
  987. package/dist/domain/core/expression/expression.d.ts +46 -0
  988. package/dist/domain/core/expression/expression.js +1 -0
  989. package/dist/domain/core/expression/index.d.ts +4 -0
  990. package/dist/domain/core/expression/index.js +1 -0
  991. package/dist/domain/core/index.d.ts +13 -16
  992. package/dist/domain/core/index.js +1 -1
  993. package/dist/domain/core/invariant/builtin-invariant.d.ts +5 -0
  994. package/dist/domain/core/invariant/custom-invariants.d.ts +13 -0
  995. package/dist/domain/core/invariant/custom-invariants.js +1 -0
  996. package/dist/domain/core/invariant/index.d.ts +5 -0
  997. package/dist/domain/core/invariant/index.js +1 -0
  998. package/dist/domain/core/invariant/invariants.d.ts +10 -0
  999. package/dist/domain/core/invariant/invariants.js +1 -0
  1000. package/dist/domain/core/invariant/violation-component.js +1 -0
  1001. package/dist/domain/core/invariant/violation.d.ts +133 -0
  1002. package/dist/domain/core/invariant/violation.js +1 -0
  1003. package/dist/domain/core/model/component.d.ts +46 -0
  1004. package/dist/domain/core/model/index.d.ts +6 -0
  1005. package/dist/domain/core/model/index.js +1 -0
  1006. package/dist/domain/core/model/model.d.ts +127 -0
  1007. package/dist/domain/core/model/reflection.d.ts +114 -0
  1008. package/dist/domain/core/model/reflection.js +1 -0
  1009. package/dist/domain/core/recipe/index.d.ts +1 -0
  1010. package/dist/domain/core/recipe/index.js +1 -0
  1011. package/dist/domain/core/recipe/recipes.d.ts +23 -0
  1012. package/dist/domain/core/recipe/recipes.js +1 -0
  1013. package/dist/domain/core/relation/all-of-type-relation.d.ts +19 -0
  1014. package/dist/domain/core/relation/all-of-type-relation.js +1 -0
  1015. package/dist/domain/core/relation/component-factories.d.ts +14 -0
  1016. package/dist/domain/core/relation/component-factories.js +1 -0
  1017. package/dist/domain/core/relation/composed-of.d.ts +12 -0
  1018. package/dist/domain/core/relation/composed-of.js +1 -0
  1019. package/dist/domain/core/relation/direct-relation.d.ts +17 -0
  1020. package/dist/domain/core/relation/index.d.ts +8 -0
  1021. package/dist/domain/core/relation/index.js +1 -0
  1022. package/dist/domain/core/relation/indirect-relation.d.ts +25 -0
  1023. package/dist/domain/core/relation/indirect-relation.js +1 -0
  1024. package/dist/domain/core/relation/reference-component.d.ts +17 -0
  1025. package/dist/domain/core/relation/reference-component.js +1 -0
  1026. package/dist/domain/core/relation/reference-field.d.ts +7 -0
  1027. package/dist/domain/core/relation/reference-field.js +1 -0
  1028. package/dist/domain/core/relation/relation-factory.d.ts +22 -0
  1029. package/dist/domain/core/relation/relation-factory.js +1 -0
  1030. package/dist/domain/core/schema/enhanced-json-schema.js +1 -0
  1031. package/dist/domain/core/schema/extended-schema-validator.js +1 -0
  1032. package/dist/domain/core/schema/index.d.ts +3 -0
  1033. package/dist/domain/core/schema/index.js +1 -0
  1034. package/dist/domain/core/schema/schema-validator.js +1 -0
  1035. package/dist/domain/core/state/id-sequence.d.ts +15 -0
  1036. package/dist/domain/core/state/id-sequence.js +1 -0
  1037. package/dist/domain/core/state/index.d.ts +3 -0
  1038. package/dist/domain/core/state/index.js +1 -0
  1039. package/dist/domain/core/state/migrations.d.ts +67 -0
  1040. package/dist/domain/core/state/migrations.js +1 -0
  1041. package/dist/domain/core/state/state.d.ts +9 -0
  1042. package/dist/domain/domain-builder.d.ts +22 -9
  1043. package/dist/domain/domain-builder.js +1 -1
  1044. package/dist/domain/domain-context/action-system/action-system.d.ts +38 -0
  1045. package/dist/domain/domain-context/action-system/action-system.js +1 -0
  1046. package/dist/domain/domain-context/action-system/index.d.ts +1 -0
  1047. package/dist/domain/domain-context/action-system/index.js +1 -0
  1048. package/dist/domain/domain-context/analytics-system/index.d.ts +2 -0
  1049. package/dist/domain/domain-context/analytics-system/index.js +1 -0
  1050. package/dist/domain/domain-context/create-transformer.d.ts +2 -2
  1051. package/dist/domain/domain-context/dimension-system/dimension-state.js +1 -1
  1052. package/dist/domain/domain-context/dimension-system/dimension-system.d.ts +3 -4
  1053. package/dist/domain/domain-context/dimension-system/dimension-system.js +1 -1
  1054. package/dist/domain/domain-context/dimension-system/index.d.ts +1 -0
  1055. package/dist/domain/domain-context/dimension-system/index.js +1 -0
  1056. package/dist/domain/domain-context/domain-context-systems.d.ts +11 -10
  1057. package/dist/domain/domain-context/index.d.ts +8 -17
  1058. package/dist/domain/domain-context/index.js +1 -1
  1059. package/dist/domain/domain-context/navigation-system/index.d.ts +3 -0
  1060. package/dist/domain/domain-context/navigation-system/index.js +1 -0
  1061. package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +5 -8
  1062. package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
  1063. package/dist/domain/domain-context/navigation-system/navigation-updates.d.ts +1 -12
  1064. package/dist/domain/domain-context/navigation-system/navigation-updates.js +1 -1
  1065. package/dist/domain/domain-context/navigation-system/selection-transformers.d.ts +2 -2
  1066. package/dist/domain/domain-context/navigation-system/selection-transformers.js +1 -1
  1067. package/dist/domain/domain-context/recipe-system/index.d.ts +1 -0
  1068. package/dist/domain/domain-context/recipe-system/index.js +1 -0
  1069. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.d.ts +2 -4
  1070. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.js +1 -1
  1071. package/dist/domain/domain-context/relation-transformers/cascade-deletes.d.ts +3 -3
  1072. package/dist/domain/domain-context/relation-transformers/cascade-deletes.js +1 -1
  1073. package/dist/domain/domain-context/relation-transformers/cascade-ref-pruning.d.ts +3 -3
  1074. package/dist/domain/domain-context/relation-transformers/cascade-ref-pruning.js +1 -1
  1075. package/dist/domain/domain-context/relation-transformers/create-entity-refs.d.ts +3 -3
  1076. package/dist/domain/domain-context/relation-transformers/create-entity-refs.js +2 -2
  1077. package/dist/domain/domain-context/relation-transformers/index.d.ts +4 -0
  1078. package/dist/domain/domain-context/relation-transformers/index.js +1 -0
  1079. package/dist/domain/domain-context/relation-transformers/replace-refs.d.ts +3 -3
  1080. package/dist/domain/domain-context/relation-transformers/replace-refs.js +1 -1
  1081. package/dist/domain/domain-context/store-system/apply-updates.d.ts +1 -3
  1082. package/dist/domain/domain-context/store-system/apply-updates.js +1 -1
  1083. package/dist/domain/domain-context/store-system/index.d.ts +4 -0
  1084. package/dist/domain/domain-context/store-system/index.js +1 -0
  1085. package/dist/domain/domain-context/store-system/next-domain-entity-id.d.ts +1 -13
  1086. package/dist/domain/domain-context/store-system/next-domain-entity-id.js +1 -1
  1087. package/dist/domain/domain-context/store-system/reconcile-projected-entities.d.ts +1 -2
  1088. package/dist/domain/domain-context/store-system/reconcile-projected-entities.js +1 -1
  1089. package/dist/domain/domain-context/store-system/store-system.d.ts +7 -39
  1090. package/dist/domain/domain-context/store-system/store-system.js +2 -2
  1091. package/dist/domain/domain-context/store-system/system-state.d.ts +2 -4
  1092. package/dist/domain/domain-context/store-system/system-state.js +1 -1
  1093. package/dist/domain/domain-context/transformers/actions-builder.d.ts +1 -2
  1094. package/dist/domain/domain-context/transformers/actions-builder.js +1 -1
  1095. package/dist/domain/domain-context/transformers/auto-snap-transformer.d.ts +6 -10
  1096. package/dist/domain/domain-context/transformers/auto-snap-transformer.js +1 -1
  1097. package/dist/domain/domain-context/transformers/chain-builder.d.ts +3 -3
  1098. package/dist/domain/domain-context/transformers/context.d.ts +2 -7
  1099. package/dist/domain/domain-context/transformers/context.js +1 -1
  1100. package/dist/domain/domain-context/transformers/entity-builder.d.ts +1 -5
  1101. package/dist/domain/domain-context/transformers/entity-builder.js +1 -1
  1102. package/dist/domain/domain-context/transformers/index.d.ts +1 -1
  1103. package/dist/domain/domain-context/transformers/index.js +1 -1
  1104. package/dist/domain/domain-context/transformers/then-builder.d.ts +1 -2
  1105. package/dist/domain/domain-context/transformers/then-builder.js +1 -1
  1106. package/dist/domain/domain-context/transformers/when-builder.d.ts +3 -9
  1107. package/dist/domain/domain-context/transformers/when-builder.js +1 -1
  1108. package/dist/domain/domain-context/undo-system.d.ts +29 -3
  1109. package/dist/domain/domain-context/undo-system.js +1 -1
  1110. package/dist/domain/domain-runtime/access/selectors.d.ts +9 -0
  1111. package/dist/domain/domain-runtime/access/selectors.js +1 -1
  1112. package/dist/domain/domain-runtime/access/types.d.ts +2 -0
  1113. package/dist/domain/domain-runtime/access/types.js +1 -1
  1114. package/dist/domain/domain-runtime/application.d.ts +39 -0
  1115. package/dist/domain/domain-runtime/application.js +1 -0
  1116. package/dist/domain/domain-runtime/domain-context/action-context.d.ts +11 -0
  1117. package/dist/domain/domain-runtime/domain-context/action-context.js +1 -0
  1118. package/dist/domain/domain-runtime/domain-context/component-reader.d.ts +1 -4
  1119. package/dist/domain/domain-runtime/domain-context/component-reader.js +1 -1
  1120. package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
  1121. package/dist/domain/domain-runtime/domain-context/expression-context.d.ts +8 -0
  1122. package/dist/domain/domain-runtime/domain-context/expression-context.js +1 -0
  1123. package/dist/domain/domain-runtime/domain-context/index.d.ts +3 -0
  1124. package/dist/domain/domain-runtime/domain-context/runtime-expression-context.d.ts +18 -0
  1125. package/dist/domain/domain-runtime/domain-context/runtime-expression-context.js +1 -0
  1126. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +23 -24
  1127. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  1128. package/dist/domain/domain-runtime/domain-context/types.d.ts +4 -1
  1129. package/dist/domain/domain-runtime/domain-runtime.d.ts +144 -76
  1130. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  1131. package/dist/domain/domain-runtime/environment/initialize.d.ts +1 -1
  1132. package/dist/domain/domain-runtime/environment/types.d.ts +1 -1
  1133. package/dist/domain/domain-runtime/errors/implementation-error-collector.d.ts +21 -0
  1134. package/dist/domain/domain-runtime/errors/implementation-error-collector.js +1 -0
  1135. package/dist/domain/domain-runtime/errors/implementation-error.d.ts +46 -0
  1136. package/dist/domain/domain-runtime/errors/implementation-error.js +1 -0
  1137. package/dist/domain/domain-runtime/errors/implementation-errors.d.ts +13 -0
  1138. package/dist/domain/domain-runtime/errors/implementation-errors.js +1 -0
  1139. package/dist/domain/domain-runtime/errors/index.d.ts +4 -0
  1140. package/dist/domain/domain-runtime/errors/index.js +1 -0
  1141. package/dist/domain/domain-runtime/errors/to-implementation-errors.d.ts +10 -0
  1142. package/dist/domain/domain-runtime/errors/to-implementation-errors.js +1 -0
  1143. package/dist/domain/domain-runtime/index.d.ts +2 -0
  1144. package/dist/domain/domain-runtime/index.js +1 -1
  1145. package/dist/domain/domain-runtime/spec/create-violation-expressions.d.ts +24 -0
  1146. package/dist/domain/domain-runtime/spec/create-violation-expressions.js +1 -0
  1147. package/dist/domain/domain-runtime/spec/index.d.ts +5 -0
  1148. package/dist/domain/domain-runtime/spec/index.js +1 -1
  1149. package/dist/domain/domain-runtime/spec/initialize.d.ts +11 -0
  1150. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  1151. package/dist/domain/domain-runtime/spec/memoize-expression.d.ts +16 -0
  1152. package/dist/domain/domain-runtime/spec/module-checks/element-registration.d.ts +125 -0
  1153. package/dist/domain/domain-runtime/spec/module-checks/element-registration.js +1 -0
  1154. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.d.ts +12 -0
  1155. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.js +1 -0
  1156. package/dist/domain/domain-runtime/spec/module-checks/handler-registration.d.ts +34 -0
  1157. package/dist/domain/domain-runtime/spec/module-checks/handler-registration.js +1 -0
  1158. package/dist/domain/domain-runtime/spec/module-checks/index.d.ts +10 -0
  1159. package/dist/domain/domain-runtime/spec/module-checks/index.js +1 -0
  1160. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.d.ts +23 -0
  1161. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.js +1 -0
  1162. package/dist/domain/domain-runtime/spec/module-checks/project-modules.d.ts +32 -0
  1163. package/dist/domain/domain-runtime/spec/module-checks/project-modules.js +1 -0
  1164. package/dist/domain/domain-runtime/spec/module-checks/resolve-action-modules.d.ts +4 -0
  1165. package/dist/domain/domain-runtime/spec/module-checks/resolve-action-modules.js +1 -0
  1166. package/dist/domain/domain-runtime/spec/module-checks/resolve-component-optic-modules.d.ts +4 -0
  1167. package/dist/domain/domain-runtime/spec/module-checks/resolve-component-optic-modules.js +1 -0
  1168. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.d.ts +14 -0
  1169. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.js +1 -0
  1170. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.d.ts +22 -0
  1171. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.js +1 -0
  1172. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.d.ts +6 -0
  1173. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.js +1 -0
  1174. package/dist/domain/domain-runtime/spec/prepare-action-implementations.d.ts +15 -0
  1175. package/dist/domain/domain-runtime/spec/prepare-action-implementations.js +5 -0
  1176. package/dist/domain/domain-runtime/spec/prepare-domain-expressions.d.ts +16 -0
  1177. package/dist/domain/domain-runtime/spec/selectors.d.ts +10 -9
  1178. package/dist/domain/domain-runtime/spec/selectors.js +1 -1
  1179. package/dist/domain/domain-runtime/spec/types.d.ts +22 -6
  1180. package/dist/domain/domain-runtime/web-component/actions.d.ts +3 -0
  1181. package/dist/domain/domain-runtime/web-component/actions.js +1 -1
  1182. package/dist/domain/domain-runtime/web-component/initialize.d.ts +1 -0
  1183. package/dist/domain/domain-runtime/web-component/initialize.js +1 -1
  1184. package/dist/domain/domain-runtime/web-component/selectors.d.ts +2 -0
  1185. package/dist/domain/domain-runtime/web-component/selectors.js +1 -1
  1186. package/dist/domain/domain-runtime/web-component/types.d.ts +6 -3
  1187. package/dist/domain/extensions/angle-indicator.d.ts +21 -0
  1188. package/dist/domain/extensions/angle-indicator.js +1 -0
  1189. package/dist/domain/extensions/attribute-switch.d.ts +8 -0
  1190. package/dist/domain/extensions/attribute-switch.js +1 -0
  1191. package/dist/domain/extensions/autorotate-camera-component.d.ts +19 -0
  1192. package/dist/domain/extensions/autorotate-camera-component.js +1 -0
  1193. package/dist/domain/extensions/basic-sidebar-footer.d.ts +8 -0
  1194. package/dist/domain/extensions/basic-sidebar-footer.js +1 -0
  1195. package/dist/domain/extensions/camera-based-hidden-entity-object.js +1 -0
  1196. package/dist/domain/extensions/camera-based-hidden-entity.js +1 -0
  1197. package/dist/domain/extensions/canvas-config.d.ts +87 -0
  1198. package/dist/domain/extensions/canvas-config.js +1 -0
  1199. package/dist/domain/extensions/canvas-custom-environment.js +1 -0
  1200. package/dist/domain/extensions/canvas-padding.d.ts +25 -0
  1201. package/dist/domain/extensions/canvas-padding.js +1 -0
  1202. package/dist/domain/extensions/canvas-preset-environment.d.ts +37 -0
  1203. package/dist/domain/extensions/canvas-preset-environment.js +1 -0
  1204. package/dist/domain/extensions/child-entity-recipe-hierarchy.d.ts +21 -0
  1205. package/dist/domain/extensions/child-entity-recipe-hierarchy.js +1 -0
  1206. package/dist/domain/extensions/color-value.js +1 -0
  1207. package/dist/domain/extensions/common/angle-indicator-schema.d.ts +292 -0
  1208. package/dist/domain/extensions/common/angle-indicator-schema.js +1 -0
  1209. package/dist/domain/extensions/common/dimension-indicator-schema.d.ts +607 -0
  1210. package/dist/domain/extensions/common/dimension-indicator-schema.js +1 -0
  1211. package/dist/domain/extensions/common/index.d.ts +4 -0
  1212. package/dist/domain/extensions/common/index.js +1 -0
  1213. package/dist/domain/extensions/custom-header.d.ts +11 -0
  1214. package/dist/domain/extensions/custom-header.js +1 -0
  1215. package/dist/domain/extensions/custom-price-footer.js +1 -0
  1216. package/dist/domain/extensions/custom-sidebar-footer.d.ts +11 -0
  1217. package/dist/domain/extensions/custom-sidebar-footer.js +1 -0
  1218. package/dist/domain/extensions/dimension-indicator.d.ts +31 -0
  1219. package/dist/domain/extensions/dimension-indicator.js +1 -0
  1220. package/dist/domain/extensions/editable-angle-indicator.d.ts +39 -0
  1221. package/dist/domain/extensions/editable-angle-indicator.js +1 -0
  1222. package/dist/domain/extensions/editable-distance-dimension-indicator.d.ts +43 -0
  1223. package/dist/domain/extensions/editable-distance-dimension-indicator.js +1 -0
  1224. package/dist/domain/extensions/editable-offset-indicator.d.ts +42 -0
  1225. package/dist/domain/extensions/editable-offset-indicator.js +1 -0
  1226. package/dist/domain/extensions/editable-size-indicator.d.ts +39 -0
  1227. package/dist/domain/extensions/editable-size-indicator.js +1 -0
  1228. package/dist/domain/extensions/entity-header.d.ts +22 -0
  1229. package/dist/domain/extensions/entity-header.js +1 -0
  1230. package/dist/domain/extensions/exit-tool-mode-fab.d.ts +25 -0
  1231. package/dist/domain/extensions/exit-tool-mode-fab.js +1 -0
  1232. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +24 -0
  1233. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -0
  1234. package/dist/domain/extensions/export-images/client-side-image.d.ts +14 -0
  1235. package/dist/domain/extensions/export-images/client-side-image.js +1 -0
  1236. package/dist/domain/extensions/export-images/index.d.ts +3 -0
  1237. package/dist/domain/extensions/export-images/index.js +1 -0
  1238. package/dist/domain/extensions/export-images/save-template-thumbnail.d.ts +14 -0
  1239. package/dist/domain/extensions/export-images/save-template-thumbnail.js +1 -0
  1240. package/dist/domain/extensions/finalize-action.d.ts +20 -0
  1241. package/dist/domain/extensions/finalize-action.js +1 -0
  1242. package/dist/domain/extensions/finalize-component.js +1 -0
  1243. package/dist/domain/extensions/fit-selection-orthographic-camera-component.js +1 -0
  1244. package/dist/domain/extensions/fit-selection-perspective-camera-component.js +1 -0
  1245. package/dist/domain/extensions/fixed-header.d.ts +10 -0
  1246. package/dist/domain/extensions/fixed-header.js +1 -0
  1247. package/dist/domain/extensions/floating-header.d.ts +10 -0
  1248. package/dist/domain/extensions/floating-header.js +1 -0
  1249. package/dist/domain/extensions/hidden-header.d.ts +8 -0
  1250. package/dist/domain/extensions/hidden-header.js +1 -0
  1251. package/dist/domain/extensions/hidden-sidebar-footer.d.ts +21 -0
  1252. package/dist/domain/extensions/hidden-sidebar-footer.js +1 -0
  1253. package/dist/domain/extensions/horizontal-tabs.d.ts +28 -0
  1254. package/dist/domain/extensions/horizontal-tabs.js +1 -0
  1255. package/dist/domain/extensions/index.d.ts +68 -0
  1256. package/dist/domain/extensions/index.js +1 -0
  1257. package/dist/domain/extensions/list-selector-dimension-indicator.d.ts +31 -0
  1258. package/dist/domain/extensions/list-selector-dimension-indicator.js +1 -0
  1259. package/dist/domain/extensions/multilingual-text-value.js +1 -0
  1260. package/dist/domain/extensions/navigation-steps.d.ts +19 -0
  1261. package/dist/domain/extensions/navigation-steps.js +1 -0
  1262. package/dist/domain/extensions/offset-anchors.d.ts +20 -0
  1263. package/dist/domain/extensions/offset-anchors.js +1 -0
  1264. package/dist/domain/extensions/offset-indicator.d.ts +83 -0
  1265. package/dist/domain/extensions/offset-indicator.js +1 -0
  1266. package/dist/domain/extensions/offset.d.ts +31 -0
  1267. package/dist/domain/extensions/offset.js +1 -0
  1268. package/dist/domain/extensions/other-action.d.ts +14 -0
  1269. package/dist/domain/extensions/other-action.js +1 -0
  1270. package/dist/domain/extensions/property-page.d.ts +16 -0
  1271. package/dist/domain/extensions/property-page.js +1 -0
  1272. package/dist/domain/extensions/read-sidebar-footer.d.ts +8 -0
  1273. package/dist/domain/extensions/read-sidebar-footer.js +1 -0
  1274. package/dist/domain/extensions/replace-entity-recipe-hierarchy.d.ts +21 -0
  1275. package/dist/domain/extensions/replace-entity-recipe-hierarchy.js +1 -0
  1276. package/dist/domain/extensions/rotatable.js +1 -0
  1277. package/dist/domain/extensions/rotation-handle.d.ts +53 -0
  1278. package/dist/domain/extensions/rotation-handle.js +1 -0
  1279. package/dist/domain/extensions/scene-entity-add-fab.d.ts +32 -0
  1280. package/dist/domain/extensions/scene-entity-add-fab.js +1 -0
  1281. package/dist/domain/extensions/scene-entity-animation.js +1 -0
  1282. package/dist/domain/extensions/scene-entity-control.js +1 -0
  1283. package/dist/domain/extensions/scene-entity-delete-fab.d.ts +19 -0
  1284. package/dist/domain/extensions/scene-entity-delete-fab.js +1 -0
  1285. package/dist/domain/extensions/scene-entity-floor-object.js +1 -0
  1286. package/dist/domain/extensions/scene-entity-html-hotspot.d.ts +27 -0
  1287. package/dist/domain/extensions/scene-entity-html-hotspot.js +1 -0
  1288. package/dist/domain/extensions/scene-entity-navigation-hotspot.d.ts +20 -0
  1289. package/dist/domain/extensions/scene-entity-navigation-hotspot.js +1 -0
  1290. package/dist/domain/extensions/scene-entity-object-html-hotspot.d.ts +31 -0
  1291. package/dist/domain/extensions/scene-entity-object-html-hotspot.js +1 -0
  1292. package/dist/domain/extensions/scene-entity-select-hotspot.d.ts +5 -0
  1293. package/dist/domain/extensions/scene-entity-select-hotspot.js +1 -0
  1294. package/dist/domain/extensions/scene-entity-wall-object.js +1 -0
  1295. package/dist/domain/extensions/selectable-component.js +1 -0
  1296. package/dist/domain/extensions/sidebar-tabs.d.ts +29 -0
  1297. package/dist/domain/extensions/sidebar-tabs.js +1 -0
  1298. package/dist/domain/extensions/simple-summary.js +1 -0
  1299. package/dist/domain/extensions/size.d.ts +21 -0
  1300. package/dist/domain/extensions/size.js +1 -0
  1301. package/dist/domain/extensions/sketching-draw.d.ts +17 -0
  1302. package/dist/domain/extensions/sketching-draw.js +1 -0
  1303. package/dist/domain/extensions/sketching-edit.d.ts +28 -0
  1304. package/dist/domain/extensions/sketching-edit.js +1 -0
  1305. package/dist/domain/extensions/summary-component.js +1 -0
  1306. package/dist/domain/extensions/text-value.js +1 -0
  1307. package/dist/domain/extensions/tool-controls.js +1 -0
  1308. package/dist/domain/extensions/tool-menu-fab.d.ts +40 -0
  1309. package/dist/domain/extensions/tool-menu-fab.js +1 -0
  1310. package/dist/domain/extensions/toolbar.d.ts +13 -0
  1311. package/dist/domain/extensions/toolbar.js +1 -0
  1312. package/dist/domain/extensions/universal-sidebar-footer.d.ts +12 -0
  1313. package/dist/domain/extensions/universal-sidebar-footer.js +1 -0
  1314. package/dist/domain/extensions/view-controls.js +1 -0
  1315. package/dist/domain/index.d.ts +2 -30
  1316. package/dist/domain/index.js +1 -1
  1317. package/dist/domain/mocks/create-mock-domain-context.d.ts +1 -1
  1318. package/dist/domain/mocks/create-mock-domain-runtime-services.d.ts +1 -1
  1319. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +45 -21
  1320. package/dist/domain/mocks/create-mock-domain-runtime.js +1 -1
  1321. package/dist/domain/mocks/create-mock-domain.d.ts +1 -1
  1322. package/dist/domain/mocks/create-mock-domain.js +1 -1
  1323. package/dist/domain/mocks/create-mock-state.d.ts +2 -2
  1324. package/dist/domain/mocks/create-test-application-config.d.ts +59 -0
  1325. package/dist/domain/mocks/create-test-application-config.js +1 -0
  1326. package/dist/domain/mocks/index.d.ts +1 -0
  1327. package/dist/domain/mocks/index.js +1 -1
  1328. package/dist/domain/projections/blender-projections/blender-projections.d.ts +2 -3
  1329. package/dist/domain/projections/blender-projections/blender-projections.js +1 -1
  1330. package/dist/domain/projections/blender-projections/camera.d.ts +2 -2
  1331. package/dist/domain/projections/collision-projections.d.ts +1 -1
  1332. package/dist/domain/projections/composition-projections.d.ts +1 -1
  1333. package/dist/domain/projections/composition-projections.js +1 -1
  1334. package/dist/domain/projections/constraint-projections.d.ts +1 -1
  1335. package/dist/domain/projections/index.d.ts +1 -1
  1336. package/dist/domain/projections/position-projections.d.ts +1 -1
  1337. package/dist/domain/projections/projected-entities-projections.d.ts +2 -3
  1338. package/dist/domain/projections/snap-matching.d.ts +1 -2
  1339. package/dist/domain/projections/snap-utils.d.ts +1 -2
  1340. package/dist/domain/projections/snapping-projections.d.ts +1 -1
  1341. package/dist/domain/projections/validation-projections.d.ts +3 -20
  1342. package/dist/domain/projections/validation-projections.js +1 -1
  1343. package/dist/domain/sketching/sketching-projections.d.ts +1 -1
  1344. package/dist/domain/system-components/admin-sidebar.d.ts +1 -1
  1345. package/dist/domain/system-components/admin-sidebar.js +1 -1
  1346. package/dist/domain/system-components/angle-dimension.js +1 -1
  1347. package/dist/domain/system-components/application-config.d.ts +3 -3
  1348. package/dist/domain/system-components/application-config.js +1 -1
  1349. package/dist/domain/system-components/attribute-selection.js +1 -1
  1350. package/dist/domain/system-components/bounding-box-component.d.ts +1 -1
  1351. package/dist/domain/system-components/bounding-box-component.js +1 -1
  1352. package/dist/domain/system-components/bounding-sphere-component.d.ts +1 -1
  1353. package/dist/domain/system-components/bounding-sphere-component.js +1 -1
  1354. package/dist/domain/system-components/child-entity-recipes.d.ts +1 -1
  1355. package/dist/domain/system-components/child-entity-recipes.js +1 -1
  1356. package/dist/domain/system-components/child-entity-selection.d.ts +1 -2
  1357. package/dist/domain/system-components/child-entity-selection.js +1 -1
  1358. package/dist/domain/system-components/collision-box-geometry.d.ts +5 -3
  1359. package/dist/domain/system-components/collision-box-geometry.js +1 -1
  1360. package/dist/domain/system-components/collision-geometries.d.ts +1 -1
  1361. package/dist/domain/system-components/collision-geometry.d.ts +5 -3
  1362. package/dist/domain/system-components/collision-geometry.js +1 -1
  1363. package/dist/domain/system-components/collision-point-geometry.d.ts +5 -3
  1364. package/dist/domain/system-components/collision-point-geometry.js +1 -1
  1365. package/dist/domain/system-components/common/index.d.ts +0 -4
  1366. package/dist/domain/system-components/common/index.js +1 -1
  1367. package/dist/domain/system-components/common/material-override-schema.d.ts +2 -2
  1368. package/dist/domain/system-components/common/recipes.d.ts +21 -4
  1369. package/dist/domain/system-components/common/recipes.js +1 -1
  1370. package/dist/domain/system-components/common/scene-entity-control-schema.d.ts +3 -0
  1371. package/dist/domain/system-components/common/scene-entity-control-schema.js +1 -1
  1372. package/dist/domain/system-components/constraint.d.ts +11 -24
  1373. package/dist/domain/system-components/constraint.js +1 -1
  1374. package/dist/domain/system-components/create-blueprint.d.ts +1 -1
  1375. package/dist/domain/system-components/custom-scene-entity.d.ts +1 -1
  1376. package/dist/domain/system-components/custom-scene-entity.js +1 -1
  1377. package/dist/domain/system-components/detail.js +1 -1
  1378. package/dist/domain/system-components/distance-dimension-select.d.ts +1 -1
  1379. package/dist/domain/system-components/distance-dimension-select.js +1 -1
  1380. package/dist/domain/system-components/distance-dimension.d.ts +1 -1
  1381. package/dist/domain/system-components/distance-dimension.js +1 -1
  1382. package/dist/domain/system-components/drag-handle.d.ts +2 -2
  1383. package/dist/domain/system-components/drag-handle.js +1 -1
  1384. package/dist/domain/system-components/fit-entity-orthographic-camera-component.js +1 -1
  1385. package/dist/domain/system-components/fit-entity-perspective-camera-component.js +1 -1
  1386. package/dist/domain/system-components/fit-root-orthographic-camera-component.js +1 -1
  1387. package/dist/domain/system-components/fit-root-perspective-camera-component.js +1 -1
  1388. package/dist/domain/system-components/generic-dimension.d.ts +1 -1
  1389. package/dist/domain/system-components/generic-dimension.js +1 -1
  1390. package/dist/domain/system-components/hidden-entity.js +1 -1
  1391. package/dist/domain/system-components/hotspot-drag-handle.d.ts +2 -3
  1392. package/dist/domain/system-components/hotspot-drag-handle.js +1 -1
  1393. package/dist/domain/system-components/index.d.ts +0 -68
  1394. package/dist/domain/system-components/index.js +1 -1
  1395. package/dist/domain/system-components/material-override-property-transition.js +1 -1
  1396. package/dist/domain/system-components/material-override-transformer.js +1 -1
  1397. package/dist/domain/system-components/material-swatch.js +1 -1
  1398. package/dist/domain/system-components/navigation-page.js +1 -1
  1399. package/dist/domain/system-components/navigation-panel-list.js +1 -1
  1400. package/dist/domain/system-components/phoenix-entity-elements/admin-data-table-sidebar.d.ts +1 -1
  1401. package/dist/domain/system-components/phoenix-layout-elements/admin-connected-resource-page.d.ts +1 -1
  1402. package/dist/domain/system-components/phoenix-layout-elements/admin-data-table-actions.d.ts +1 -1
  1403. package/dist/domain/system-components/phoenix-layout-elements/admin-data-table-page.d.ts +1 -1
  1404. package/dist/domain/system-components/phoenix-layout-elements/assistant-toolbar-button.d.ts +44 -0
  1405. package/dist/domain/system-components/phoenix-layout-elements/assistant-toolbar-button.js +1 -0
  1406. package/dist/domain/system-components/phoenix-layout-elements/index.d.ts +1 -0
  1407. package/dist/domain/system-components/phoenix-layout-elements/index.js +1 -1
  1408. package/dist/domain/system-components/phoenix-layout-elements/phoenix-layout-element.d.ts +2 -1
  1409. package/dist/domain/system-components/phoenix-layout-elements/phoenix-layout-element.js +1 -1
  1410. package/dist/domain/system-components/pivot-point.d.ts +1 -1
  1411. package/dist/domain/system-components/pivot-point.js +1 -1
  1412. package/dist/domain/system-components/price.js +1 -1
  1413. package/dist/domain/system-components/projected-entities.d.ts +1 -1
  1414. package/dist/domain/system-components/projected-entities.js +1 -1
  1415. package/dist/domain/system-components/replace-entity-recipes.d.ts +1 -1
  1416. package/dist/domain/system-components/replace-entity-recipes.js +1 -1
  1417. package/dist/domain/system-components/scene-entity-ambient-light.js +1 -1
  1418. package/dist/domain/system-components/scene-entity-box-object.js +1 -1
  1419. package/dist/domain/system-components/scene-entity-directional-light.js +1 -1
  1420. package/dist/domain/system-components/scene-entity-local-material-override.js +1 -1
  1421. package/dist/domain/system-components/scene-entity-material-override.d.ts +1 -1
  1422. package/dist/domain/system-components/scene-entity-material-override.js +1 -1
  1423. package/dist/domain/system-components/scene-entity-object-clip.js +1 -1
  1424. package/dist/domain/system-components/scene-entity-object-decal.js +1 -1
  1425. package/dist/domain/system-components/scene-entity-object-group.js +1 -1
  1426. package/dist/domain/system-components/scene-entity-object-local-material-override.js +1 -1
  1427. package/dist/domain/system-components/scene-entity-object-material-override.d.ts +1 -1
  1428. package/dist/domain/system-components/scene-entity-object-material-override.js +1 -1
  1429. package/dist/domain/system-components/scene-entity-object-properties.js +1 -1
  1430. package/dist/domain/system-components/scene-entity-object-remote-material-override.js +1 -1
  1431. package/dist/domain/system-components/scene-entity-object-text-decal.d.ts +1 -1
  1432. package/dist/domain/system-components/scene-entity-object-text-decal.js +1 -1
  1433. package/dist/domain/system-components/scene-entity-object-transformer.js +1 -1
  1434. package/dist/domain/system-components/scene-entity-object-transimissive-material-override.d.ts +1 -1
  1435. package/dist/domain/system-components/scene-entity-object-transimissive-material-override.js +1 -1
  1436. package/dist/domain/system-components/scene-entity-object.js +1 -1
  1437. package/dist/domain/system-components/scene-entity-point-light.js +1 -1
  1438. package/dist/domain/system-components/scene-entity-properties.js +1 -1
  1439. package/dist/domain/system-components/scene-entity-rect-area-light.js +1 -1
  1440. package/dist/domain/system-components/scene-entity-remote-material-override.js +1 -1
  1441. package/dist/domain/system-components/scene-entity-remote-object.js +1 -1
  1442. package/dist/domain/system-components/scene-entity-spot-light.js +1 -1
  1443. package/dist/domain/system-components/scene-entity-transimissive-material-override.d.ts +1 -1
  1444. package/dist/domain/system-components/scene-entity-transimissive-material-override.js +1 -1
  1445. package/dist/domain/system-components/sketching-line.d.ts +1 -1
  1446. package/dist/domain/system-components/sketching-line.js +1 -1
  1447. package/dist/domain/system-components/sketching-rectangle.d.ts +1 -1
  1448. package/dist/domain/system-components/sketching-rectangle.js +1 -1
  1449. package/dist/domain/system-components/sketching.d.ts +1 -1
  1450. package/dist/domain/system-components/sketching.js +1 -1
  1451. package/dist/domain/system-components/snap-axis.d.ts +1 -1
  1452. package/dist/domain/system-components/snap-axis.js +1 -1
  1453. package/dist/domain/system-components/snap-edge.d.ts +1 -1
  1454. package/dist/domain/system-components/snap-edge.js +1 -1
  1455. package/dist/domain/system-components/snap-plane.d.ts +1 -1
  1456. package/dist/domain/system-components/snap-plane.js +1 -1
  1457. package/dist/domain/system-components/snap-point.d.ts +1 -1
  1458. package/dist/domain/system-components/snap-point.js +1 -1
  1459. package/dist/domain/system-components/static-orthographic-camera-component.d.ts +1 -1
  1460. package/dist/domain/system-components/static-orthographic-camera-component.js +1 -1
  1461. package/dist/domain/system-components/static-perspective-camera-component.d.ts +1 -1
  1462. package/dist/domain/system-components/static-perspective-camera-component.js +1 -1
  1463. package/dist/domain/utils/eval-cache.d.ts +2 -3
  1464. package/dist/domain/utils/map-nested-object.d.ts +1 -1
  1465. package/dist/domain/utils/memo-eval.d.ts +2 -4
  1466. package/dist/editor/Editor.d.ts +7 -0
  1467. package/dist/editor/Editor.js +1 -1
  1468. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  1469. package/dist/editor/domain-editors/apply-spec-update.d.ts +10 -2
  1470. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  1471. package/dist/editor/domain-editors/use-implementation-files.d.ts +12 -16
  1472. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  1473. package/dist/editor/graphql/GraphQLPanel.js +1 -1
  1474. package/dist/editor/mocks/CreateMockYaml.js +2 -2
  1475. package/dist/editor/mocks/EditorMockContext.d.ts +2 -0
  1476. package/dist/editor/mocks/EditorMockContext.js +1 -1
  1477. package/dist/editor/screenshot/ScreenshotHandler.js +1 -1
  1478. package/dist/editor/variants/VariantAnswerFooter.d.ts +17 -0
  1479. package/dist/editor/variants/VariantAnswerFooter.js +1 -0
  1480. package/dist/editor/variants/VariantPreviewHandler.d.ts +6 -0
  1481. package/dist/editor/variants/VariantPreviewHandler.js +1 -0
  1482. package/dist/editor/variants/variant-preview-styles.d.ts +49 -0
  1483. package/dist/editor/variants/variant-preview-styles.js +1 -0
  1484. package/dist/globals/index.d.ts +2 -0
  1485. package/dist/i18n/locales/cs/messages.js +1 -1
  1486. package/dist/i18n/locales/da/messages.js +1 -1
  1487. package/dist/i18n/locales/de/messages.js +1 -1
  1488. package/dist/i18n/locales/de-AT/messages.js +1 -1
  1489. package/dist/i18n/locales/en/messages.js +1 -1
  1490. package/dist/i18n/locales/en-AU/messages.js +1 -1
  1491. package/dist/i18n/locales/en-GB/messages.js +1 -1
  1492. package/dist/i18n/locales/es/messages.js +1 -1
  1493. package/dist/i18n/locales/fr/messages.js +1 -1
  1494. package/dist/i18n/locales/hu/messages.js +1 -1
  1495. package/dist/i18n/locales/it/messages.js +1 -1
  1496. package/dist/i18n/locales/nl/messages.js +1 -1
  1497. package/dist/i18n/locales/pl/messages.js +1 -1
  1498. package/dist/i18n/locales/pt/messages.js +1 -1
  1499. package/dist/i18n/locales/ro/messages.js +1 -1
  1500. package/dist/i18n/locales/sk/messages.js +1 -1
  1501. package/dist/i18n/locales/tr/messages.js +1 -1
  1502. package/dist/legacy/domain-cli/gen/configurator-builder.js +30 -16
  1503. package/dist/legacy/domain-cli/gen/constant-expressions.js +1 -3
  1504. package/dist/legacy/domain-cli/gen/defaults.js +1 -7
  1505. package/dist/legacy/domain-cli/gen/implementation.js +7 -11
  1506. package/dist/legacy/domain-cli/gen/invariants.js +7 -6
  1507. package/dist/legacy/domain-cli/gen/relations.js +1 -1
  1508. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  1509. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  1510. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +182 -148
  1511. package/dist/legacy/domain-spec/spec/domain-spec.js +1 -1
  1512. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/claude-md.d.ts +1 -1
  1513. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/cursor-rules.d.ts +1 -1
  1514. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.d.ts +1 -1
  1515. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.js +13 -0
  1516. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/domain-index.js +17 -15
  1517. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/env-example.d.ts +1 -1
  1518. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/env-example.js +4 -0
  1519. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-admin.js +18 -18
  1520. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-configurator.js +16 -15
  1521. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-admin.js +24 -24
  1522. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-configurator.js +16 -15
  1523. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/generator-shared.d.ts +7 -2
  1524. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/generator-shared.js +8 -12
  1525. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/index.d.ts +1 -1
  1526. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/index.js +1 -1
  1527. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/webhook-builders.js +7 -7
  1528. package/dist/phoenix/application-spec/application-spec-builder.d.ts +0 -2
  1529. package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
  1530. package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +0 -2
  1531. package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
  1532. package/dist/phoenix/application-spec/generate-application-spec-story.js +2 -2
  1533. package/dist/phoenix/application-spec/generate-project-files.d.ts +0 -2
  1534. package/dist/phoenix/application-spec/project-files.js +1 -1
  1535. package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +4 -3
  1536. package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
  1537. package/dist/phoenix/bin.d.ts +2 -0
  1538. package/dist/phoenix/bin.js +2 -0
  1539. package/dist/phoenix/check-configs/built-in-eslint-config.d.ts +9 -0
  1540. package/dist/phoenix/check-configs/built-in-eslint-config.js +1 -0
  1541. package/dist/phoenix/check-configs/eslint-config.d.ts +10 -0
  1542. package/dist/phoenix/check-configs/eslint-config.js +1 -0
  1543. package/dist/phoenix/check-configs/index.d.ts +8 -0
  1544. package/dist/phoenix/check-configs/index.js +1 -0
  1545. package/dist/phoenix/check-configs/typescript-project.d.ts +5 -0
  1546. package/dist/phoenix/check-configs/typescript-project.js +1 -0
  1547. package/dist/phoenix/cli.d.ts +0 -1
  1548. package/dist/phoenix/cli.js +1 -2
  1549. package/dist/phoenix/commands/build.d.ts +5 -0
  1550. package/dist/phoenix/commands/build.js +1 -1
  1551. package/dist/phoenix/commands/check.js +1 -1
  1552. package/dist/phoenix/commands/clean.js +1 -1
  1553. package/dist/phoenix/commands/deploy.js +2 -2
  1554. package/dist/phoenix/commands/deps/deps.d.ts +73 -0
  1555. package/dist/phoenix/commands/deps/deps.js +3 -0
  1556. package/dist/phoenix/commands/deps/index.d.ts +1 -0
  1557. package/dist/phoenix/commands/deps/index.js +1 -0
  1558. package/dist/phoenix/commands/deps/sdk-manifest.d.ts +12 -0
  1559. package/dist/phoenix/commands/deps/sdk-manifest.js +1 -0
  1560. package/dist/phoenix/commands/dev.js +5 -5
  1561. package/dist/phoenix/commands/feedback.d.ts +2 -1
  1562. package/dist/phoenix/commands/feedback.js +1 -1
  1563. package/dist/phoenix/commands/fix.js +1 -1
  1564. package/dist/phoenix/commands/index.d.ts +2 -0
  1565. package/dist/phoenix/commands/index.js +1 -1
  1566. package/dist/phoenix/commands/init.d.ts +17 -5
  1567. package/dist/phoenix/commands/init.js +1 -1
  1568. package/dist/phoenix/commands/link.js +1 -1
  1569. package/dist/phoenix/commands/login.d.ts +24 -6
  1570. package/dist/phoenix/commands/login.js +2 -2
  1571. package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
  1572. package/dist/phoenix/commands/prepare-local-environment-command.js +1 -1
  1573. package/dist/phoenix/commands/prettier.js +1 -1
  1574. package/dist/phoenix/commands/story-dev.js +2 -2
  1575. package/dist/phoenix/commands/sync.js +1 -1
  1576. package/dist/phoenix/commands/unlink.js +1 -1
  1577. package/dist/phoenix/commands/variants.d.ts +35 -0
  1578. package/dist/phoenix/commands/variants.js +1 -0
  1579. package/dist/phoenix/editor-server/commands-router.d.ts +68 -1
  1580. package/dist/phoenix/editor-server/commands-router.js +1 -1
  1581. package/dist/phoenix/editor-server/editor-router.d.ts +65 -0
  1582. package/dist/phoenix/editor-server/editor-server.d.ts +3 -3
  1583. package/dist/phoenix/editor-server/editor-server.js +1 -1
  1584. package/dist/phoenix/editor-server/protocol.d.ts +1 -0
  1585. package/dist/phoenix/editor-server/spec-router.js +1 -1
  1586. package/dist/phoenix/editor-server/trpc.d.ts +3 -0
  1587. package/dist/phoenix/scripts/build-admin.js +1 -1
  1588. package/dist/phoenix/services/application-spec-project-watcher.d.ts +15 -4
  1589. package/dist/phoenix/services/application-spec-project-watcher.js +3 -3
  1590. package/dist/phoenix/services/index.d.ts +5 -0
  1591. package/dist/phoenix/services/index.js +1 -1
  1592. package/dist/phoenix/services/lingui.d.ts +8 -0
  1593. package/dist/phoenix/services/lingui.js +1 -1
  1594. package/dist/phoenix/services/phoenix-application.d.ts +21 -0
  1595. package/dist/phoenix/services/phoenix-application.js +1 -0
  1596. package/dist/phoenix/services/phoenix-store.d.ts +48 -0
  1597. package/dist/phoenix/services/phoenix-store.js +1 -0
  1598. package/dist/phoenix/services/phx-banner-plugin.d.ts +32 -0
  1599. package/dist/phoenix/services/phx-banner-plugin.js +1 -0
  1600. package/dist/phoenix/services/phx-licenses-plugin.d.ts +55 -0
  1601. package/dist/phoenix/services/phx-licenses-plugin.js +8 -0
  1602. package/dist/phoenix/services/phx-variant-previews-plugin.d.ts +9 -0
  1603. package/dist/phoenix/services/phx-variant-previews-plugin.js +1 -0
  1604. package/dist/phoenix/services/prepare-development-environment.js +1 -1
  1605. package/dist/phoenix/services/source-archive.d.ts +1 -0
  1606. package/dist/phoenix/services/source-archive.js +1 -1
  1607. package/dist/phoenix/services/swc.js +1 -1
  1608. package/dist/phoenix/services/variant-file-session.d.ts +36 -0
  1609. package/dist/phoenix/services/variant-file-session.js +1 -0
  1610. package/dist/phoenix/services/variant-preview-service.d.ts +80 -0
  1611. package/dist/phoenix/services/variant-preview-service.js +1 -0
  1612. package/dist/phoenix/services/vite-config.d.ts +2 -0
  1613. package/dist/phoenix/services/vite-config.js +1 -1
  1614. package/dist/phoenix/utils/git/index.d.ts +1 -0
  1615. package/dist/phoenix/utils/git/index.js +1 -0
  1616. package/dist/phoenix/utils/git/is-inside-git-repository.d.ts +6 -0
  1617. package/dist/phoenix/utils/git/is-inside-git-repository.js +1 -0
  1618. package/dist/phoenix/utils/index.d.ts +6 -2
  1619. package/dist/phoenix/utils/index.js +1 -1
  1620. package/dist/phoenix/utils/node-version/index.d.ts +1 -0
  1621. package/dist/phoenix/utils/node-version/index.js +1 -0
  1622. package/dist/phoenix/utils/node-version/supported-node-version.d.ts +12 -0
  1623. package/dist/phoenix/utils/node-version/supported-node-version.js +4 -0
  1624. package/dist/phoenix/utils/package-info.d.ts +0 -9
  1625. package/dist/phoenix/utils/package-info.js +1 -1
  1626. package/dist/phoenix/utils/package-manager/index.d.ts +2 -0
  1627. package/dist/phoenix/utils/package-manager/index.js +1 -0
  1628. package/dist/phoenix/utils/package-manager/package-manager-commands.d.ts +19 -0
  1629. package/dist/phoenix/utils/package-manager/package-manager-commands.js +1 -0
  1630. package/dist/phoenix/utils/package-manager/pnpm-project.d.ts +9 -0
  1631. package/dist/phoenix/utils/package-manager/pnpm-project.js +1 -0
  1632. package/dist/phoenix/utils/read-git-commit.d.ts +14 -0
  1633. package/dist/phoenix/utils/read-git-commit.js +1 -0
  1634. package/dist/phoenix/utils/run-command.d.ts +11 -0
  1635. package/dist/phoenix/utils/run-command.js +1 -1
  1636. package/dist/phoenix/utils/sdk-tool/index.d.ts +1 -0
  1637. package/dist/phoenix/utils/sdk-tool/index.js +1 -0
  1638. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.d.ts +15 -0
  1639. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.js +1 -0
  1640. package/dist/react-sdk/application-runtime/common-services/analytics/analytics-service.d.ts +3 -3
  1641. package/dist/react-sdk/application-runtime/common-services/analytics/domain-controls-analytics.d.ts +21 -21
  1642. package/dist/react-sdk/application-runtime/common-services/analytics/frontend-analytics.d.ts +52 -0
  1643. package/dist/react-sdk/application-runtime/common-services/analytics/frontend-analytics.js +1 -0
  1644. package/dist/react-sdk/application-runtime/common-services/analytics/index.d.ts +1 -0
  1645. package/dist/react-sdk/application-runtime/common-services/analytics/index.js +1 -1
  1646. package/dist/react-sdk/application-runtime/common-services/initialize.d.ts +2 -2
  1647. package/dist/react-sdk/application-runtime/hooks/data/use-published-data.d.ts +1 -1
  1648. package/dist/react-sdk/application-runtime/hooks/index.d.ts +2 -0
  1649. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  1650. package/dist/react-sdk/application-runtime/hooks/loading/index.d.ts +5 -0
  1651. package/dist/react-sdk/application-runtime/hooks/loading/index.js +1 -0
  1652. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.d.ts +11 -0
  1653. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.js +1 -0
  1654. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.d.ts +8 -0
  1655. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.js +1 -0
  1656. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.d.ts +7 -0
  1657. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.js +1 -0
  1658. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.d.ts +9 -0
  1659. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.js +1 -0
  1660. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.d.ts +24 -0
  1661. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.js +1 -0
  1662. package/dist/react-sdk/application-runtime/hooks/responsive/index.d.ts +3 -0
  1663. package/dist/react-sdk/application-runtime/hooks/responsive/index.js +1 -0
  1664. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.d.ts +9 -0
  1665. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.js +1 -0
  1666. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +26 -0
  1667. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.js +1 -0
  1668. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.d.ts +10 -0
  1669. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.js +1 -0
  1670. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.d.ts +24 -0
  1671. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -0
  1672. package/dist/react-sdk/application-runtime/hooks/use-access-service.d.ts +7 -0
  1673. package/dist/react-sdk/application-runtime/hooks/use-access-service.js +1 -1
  1674. package/dist/react-sdk/application-runtime/hooks/use-domain-application-props.d.ts +5 -2
  1675. package/dist/react-sdk/application-runtime/hooks/use-phoenix-element-slots.d.ts +2 -1
  1676. package/dist/react-sdk/application-runtime/hooks/use-spec.d.ts +1 -1
  1677. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.d.ts +4 -11
  1678. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.js +1 -1
  1679. package/dist/react-sdk/application-runtime/hooks/use-web-component.d.ts +5 -0
  1680. package/dist/react-sdk/application-runtime/hooks/use-web-component.js +1 -1
  1681. package/dist/react-sdk/application-runtime/host-properties/actions.d.ts +15 -0
  1682. package/dist/react-sdk/application-runtime/host-properties/actions.js +1 -0
  1683. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.d.ts +30 -0
  1684. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.js +1 -0
  1685. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.d.ts +7 -0
  1686. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.js +1 -0
  1687. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.d.ts +21 -0
  1688. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.js +1 -0
  1689. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.d.ts +42 -0
  1690. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.js +1 -0
  1691. package/dist/react-sdk/application-runtime/host-properties/index.d.ts +8 -0
  1692. package/dist/react-sdk/application-runtime/host-properties/index.js +1 -0
  1693. package/dist/react-sdk/application-runtime/host-properties/initialize.d.ts +7 -0
  1694. package/dist/react-sdk/application-runtime/host-properties/initialize.js +1 -0
  1695. package/dist/react-sdk/application-runtime/host-properties/selectors.d.ts +54 -0
  1696. package/dist/react-sdk/application-runtime/host-properties/selectors.js +1 -0
  1697. package/dist/react-sdk/application-runtime/host-properties/types.d.ts +18 -0
  1698. package/dist/react-sdk/application-runtime/host-properties/types.js +1 -0
  1699. package/dist/react-sdk/application-runtime/index.d.ts +3 -0
  1700. package/dist/react-sdk/application-runtime/integration/initialize.d.ts +7 -6
  1701. package/dist/react-sdk/application-runtime/integration/initialize.js +1 -1
  1702. package/dist/react-sdk/application-runtime/integration/selectors.d.ts +11 -2
  1703. package/dist/react-sdk/application-runtime/integration/selectors.js +1 -1
  1704. package/dist/react-sdk/application-runtime/integration/types.d.ts +5 -2
  1705. package/dist/react-sdk/application-runtime/loading/actions.d.ts +45 -0
  1706. package/dist/react-sdk/application-runtime/loading/actions.js +1 -0
  1707. package/dist/react-sdk/application-runtime/loading/index.d.ts +4 -0
  1708. package/dist/react-sdk/application-runtime/loading/index.js +1 -0
  1709. package/dist/react-sdk/application-runtime/loading/initialize.d.ts +3 -0
  1710. package/dist/react-sdk/application-runtime/loading/initialize.js +1 -0
  1711. package/dist/react-sdk/application-runtime/loading/selectors.d.ts +18 -0
  1712. package/dist/react-sdk/application-runtime/loading/selectors.js +1 -0
  1713. package/dist/react-sdk/application-runtime/loading/types.d.ts +59 -0
  1714. package/dist/react-sdk/application-runtime/loading/types.js +1 -0
  1715. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.d.ts +1 -1
  1716. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  1717. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.d.ts +6 -0
  1718. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.js +1 -1
  1719. package/dist/react-sdk/application-runtime/provider/ApplicationType.d.ts +7 -0
  1720. package/dist/react-sdk/application-runtime/provider/ApplicationType.js +1 -1
  1721. package/dist/react-sdk/application-runtime/responsive/actions.d.ts +47 -0
  1722. package/dist/react-sdk/application-runtime/responsive/actions.js +1 -0
  1723. package/dist/react-sdk/application-runtime/responsive/index.d.ts +4 -0
  1724. package/dist/react-sdk/application-runtime/responsive/index.js +1 -0
  1725. package/dist/react-sdk/application-runtime/responsive/initialize.d.ts +3 -0
  1726. package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -0
  1727. package/dist/react-sdk/application-runtime/responsive/selectors.d.ts +20 -0
  1728. package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -0
  1729. package/dist/react-sdk/application-runtime/responsive/types.d.ts +104 -0
  1730. package/dist/react-sdk/application-runtime/responsive/types.js +1 -0
  1731. package/dist/react-sdk/application-runtime/routing/access-service.d.ts +1 -0
  1732. package/dist/react-sdk/application-runtime/routing/routing-service.d.ts +34 -2
  1733. package/dist/react-sdk/application-runtime/routing/routing-service.js +1 -1
  1734. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +382 -50
  1735. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  1736. package/dist/react-sdk/domain-application-context/BackendDataProvider.js +1 -1
  1737. package/dist/react-sdk/domain-application-context/DomainLifecycleBoundary.js +1 -1
  1738. package/dist/react-sdk/domain-application-context/FrontendDataProvider.js +1 -1
  1739. package/dist/react-sdk/domain-application-context/PublishedDataProvider.js +1 -1
  1740. package/dist/react-sdk/domain-context/common-hooks/index.d.ts +9 -0
  1741. package/dist/react-sdk/domain-context/common-hooks/index.js +1 -0
  1742. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.d.ts +23 -0
  1743. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.js +1 -0
  1744. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.d.ts +41 -0
  1745. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.js +1 -0
  1746. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +13 -9
  1747. package/dist/react-sdk/domain-context/component-hooks/index.d.ts +1 -0
  1748. package/dist/react-sdk/domain-context/component-hooks/index.js +1 -0
  1749. package/dist/react-sdk/domain-context/component-hooks/use-component.js +1 -1
  1750. package/dist/react-sdk/domain-context/entity-hooks/use-domain-entity-state.js +1 -1
  1751. package/dist/react-sdk/domain-context/entity-hooks/use-entity-price.js +1 -1
  1752. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-id.js +1 -1
  1753. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-state.js +1 -1
  1754. package/dist/react-sdk/domain-context/index.d.ts +9 -1
  1755. package/dist/react-sdk/domain-context/index.js +1 -1
  1756. package/dist/react-sdk/domain-context/system-hooks/composition-hooks.js +1 -1
  1757. package/dist/react-sdk/domain-context/system-hooks/dimension-hooks.js +1 -1
  1758. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +8 -0
  1759. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -0
  1760. package/dist/react-sdk/domain-context/system-hooks/hover-hooks.js +1 -1
  1761. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.d.ts +24 -0
  1762. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.js +1 -0
  1763. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +11 -0
  1764. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  1765. package/dist/react-sdk/domain-context/system-hooks/selection-hooks.js +1 -1
  1766. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.d.ts +32 -0
  1767. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.js +1 -0
  1768. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.d.ts +57 -0
  1769. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.js +1 -0
  1770. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.d.ts +61 -0
  1771. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.js +1 -0
  1772. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.d.ts +20 -0
  1773. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.js +1 -0
  1774. package/dist/react-sdk/domain-controls/hooks/use-angle-dimension.d.ts +1 -1
  1775. package/dist/react-sdk/handlers/FinalizeActionRunner.d.ts +13 -0
  1776. package/dist/react-sdk/handlers/FinalizeActionRunner.js +1 -0
  1777. package/dist/react-sdk/handlers/FinalizeActionsHost.d.ts +10 -0
  1778. package/dist/react-sdk/handlers/FinalizeActionsHost.js +1 -0
  1779. package/dist/react-sdk/handlers/FinalizeActionsProvider.d.ts +11 -0
  1780. package/dist/react-sdk/handlers/FinalizeActionsProvider.js +1 -0
  1781. package/dist/react-sdk/handlers/finalize-actions-context.d.ts +6 -0
  1782. package/dist/react-sdk/handlers/finalize-actions-context.js +1 -0
  1783. package/dist/react-sdk/handlers/finalize-actions-store.d.ts +23 -0
  1784. package/dist/react-sdk/handlers/finalize-actions-store.js +1 -0
  1785. package/dist/react-sdk/handlers/index.d.ts +6 -0
  1786. package/dist/react-sdk/handlers/index.js +1 -1
  1787. package/dist/react-sdk/handlers/use-finalize-action.d.ts +32 -0
  1788. package/dist/react-sdk/handlers/use-finalize-action.js +1 -0
  1789. package/dist/react-sdk/handlers/use-finalize-actions.d.ts +53 -0
  1790. package/dist/react-sdk/handlers/use-finalize-actions.js +1 -0
  1791. package/dist/react-sdk/index.d.ts +2 -0
  1792. package/dist/react-sdk/index.js +1 -1
  1793. package/dist/react-sdk/loading-state/LoaderHost.d.ts +20 -0
  1794. package/dist/react-sdk/loading-state/LoaderHost.js +1 -0
  1795. package/dist/react-sdk/loading-state/built-in-loading-phase.d.ts +9 -0
  1796. package/dist/react-sdk/loading-state/built-in-loading-phase.js +1 -0
  1797. package/dist/react-sdk/loading-state/create-app-loader.d.ts +18 -0
  1798. package/dist/react-sdk/loading-state/create-app-loader.js +1 -0
  1799. package/dist/react-sdk/loading-state/index.d.ts +4 -2
  1800. package/dist/react-sdk/loading-state/index.js +1 -1
  1801. package/dist/react-sdk/loading-state/loading-state-hooks.d.ts +22 -0
  1802. package/dist/react-sdk/loading-state/loading-state-hooks.js +1 -0
  1803. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.d.ts +17 -0
  1804. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.js +1 -0
  1805. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.d.ts +17 -0
  1806. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.js +1 -0
  1807. package/dist/react-sdk/page-elements/configurator-error-page-props.d.ts +20 -0
  1808. package/dist/react-sdk/page-elements/configurator-error-page-props.js +1 -0
  1809. package/dist/react-sdk/page-elements/create-configuration-not-found-page.d.ts +15 -0
  1810. package/dist/react-sdk/page-elements/create-configuration-not-found-page.js +1 -0
  1811. package/dist/react-sdk/page-elements/create-configurator-error-page.d.ts +14 -0
  1812. package/dist/react-sdk/page-elements/create-configurator-error-page.js +1 -0
  1813. package/dist/react-sdk/page-elements/create-preset-ui.d.ts +9 -0
  1814. package/dist/react-sdk/page-elements/create-preset-ui.js +1 -0
  1815. package/dist/react-sdk/page-elements/index.d.ts +6 -0
  1816. package/dist/react-sdk/page-elements/index.js +1 -0
  1817. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.d.ts +36 -0
  1818. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.js +1 -0
  1819. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.d.ts +44 -0
  1820. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.js +1 -0
  1821. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.d.ts +38 -0
  1822. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.js +1 -0
  1823. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.d.ts +30 -0
  1824. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.js +1 -0
  1825. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.d.ts +30 -0
  1826. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.js +1 -0
  1827. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.d.ts +9 -0
  1828. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.js +1 -0
  1829. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.d.ts +9 -0
  1830. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.js +1 -0
  1831. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.d.ts +10 -0
  1832. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.js +1 -0
  1833. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.d.ts +9 -0
  1834. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.js +1 -0
  1835. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.d.ts +9 -0
  1836. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.js +1 -0
  1837. package/dist/react-sdk/scene-control-elements/index.d.ts +11 -0
  1838. package/dist/react-sdk/scene-control-elements/index.js +1 -0
  1839. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.d.ts +5 -0
  1840. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.js +1 -0
  1841. package/dist/react-sdk/session/NotAuthenticatedPage.d.ts +4 -0
  1842. package/dist/react-sdk/session/NotAuthenticatedPage.js +1 -1
  1843. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  1844. package/dist/react-sdk/web-component/create-web-component.js +1 -1
  1845. package/dist/react-sdk/web-component/god-mode/god-mode-registry.d.ts +30 -0
  1846. package/dist/react-sdk/web-component/god-mode/god-mode-registry.js +1 -0
  1847. package/dist/react-sdk/web-component/god-mode/index.d.ts +1 -0
  1848. package/dist/react-sdk/web-component/god-mode/index.js +1 -0
  1849. package/dist/ui-sdk/common/use-viewport-size.d.ts +4 -1
  1850. package/dist/ui-sdk/common/use-viewport-size.js +1 -1
  1851. package/dist/ui-sdk/components/mobile-controls/index.d.ts +1 -1
  1852. package/dist/ui-sdk/icons/__generated/Lightbulb.d.ts +3 -0
  1853. package/dist/ui-sdk/icons/__generated/Lightbulb.js +1 -0
  1854. package/dist/ui-sdk/icons/__generated/XCircle.d.ts +3 -0
  1855. package/dist/ui-sdk/icons/__generated/XCircle.js +1 -0
  1856. package/dist/ui-sdk/icons/__generated/index.d.ts +4 -0
  1857. package/dist/ui-sdk/icons/__generated/index.js +1 -1
  1858. package/dist/ui-sdk/icons/icons-registry.js +1 -1
  1859. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.d.ts +9 -0
  1860. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.js +1 -1
  1861. package/dist/ui-sdk/responsive-application/index.d.ts +1 -0
  1862. package/dist/ui-sdk/responsive-application/responsive-state-store.d.ts +59 -0
  1863. package/dist/ui-sdk/responsive-application/responsive-state-store.js +1 -0
  1864. package/dist/ui-sdk/responsive-application/use-store-responsive-info.d.ts +7 -0
  1865. package/dist/ui-sdk/responsive-application/use-store-responsive-info.js +1 -0
  1866. package/dist/ui-sdk/theme/types.d.ts +8 -0
  1867. package/dist/webhook/builders/common.d.ts +8 -0
  1868. package/dist/webhook/builders/webhook-builder.d.ts +1 -1
  1869. package/dist/webhook/builders/webhook-builder.js +1 -1
  1870. package/package.json +60 -41
  1871. package/schema/domain-spec.json +1365 -217
  1872. package/dist/application-spec/core/eval-to-constant.d.ts +0 -14
  1873. package/dist/application-spec/generate-application/code/templates/env-ci.d.ts +0 -1
  1874. package/dist/application-spec/generate-application/code/templates/env-ci.js +0 -25
  1875. package/dist/application-spec/generate-application/code/templates/env-example.d.ts +0 -1
  1876. package/dist/application-spec/generate-application/code/templates/env-example.js +0 -90
  1877. package/dist/application-spec/generate-application/code/templates/nvmrc.d.ts +0 -1
  1878. package/dist/application-spec/generate-application/code/templates/nvmrc.js +0 -2
  1879. package/dist/application-spec/generate-application/code/templates/package-json.d.ts +0 -10
  1880. package/dist/application-spec/generate-application/code/templates/package-json.js +0 -1
  1881. package/dist/application-spec/generate-application/code/templates/prettier-ignore.d.ts +0 -1
  1882. package/dist/application-spec/generate-application/code/templates/prettier-ignore.js +0 -6
  1883. package/dist/application-spec/generate-application/code/templates/private-assets-readme.d.ts +0 -1
  1884. package/dist/application-spec/generate-application/code/templates/private-assets-readme.js +0 -24
  1885. package/dist/application-spec/generate-application/code/templates/public-assets-readme.d.ts +0 -1
  1886. package/dist/application-spec/generate-application/code/templates/public-assets-readme.js +0 -24
  1887. package/dist/application-spec/generate-application/code/templates/readme.d.ts +0 -1
  1888. package/dist/application-spec/generate-application/code/templates/readme.js +0 -23
  1889. package/dist/application-spec/generate-application/code/templates/skills/agents-md.d.ts +0 -1
  1890. package/dist/application-spec/generate-application/code/templates/skills/agents-md.js +0 -2
  1891. package/dist/application-spec/generate-application/code/templates/webhook-implementation.d.ts +0 -1
  1892. package/dist/application-spec/generate-application/code/templates/webhook-implementation.js +0 -7
  1893. package/dist/configurator/assistant/browser-details.d.ts +0 -17
  1894. package/dist/configurator/assistant/browser-details.js +0 -1
  1895. package/dist/configurator/assistant/graphql-tools.d.ts +0 -156
  1896. package/dist/configurator/assistant/graphql-tools.js +0 -1
  1897. package/dist/configurator/assistant/index.d.ts +0 -1
  1898. package/dist/configurator/assistant/index.js +0 -1
  1899. package/dist/configurator/assistant/use-assistant-chat.d.ts +0 -20
  1900. package/dist/configurator/assistant/use-assistant-chat.js +0 -1
  1901. package/dist/configurator/common/frontend-analytics.d.ts +0 -46
  1902. package/dist/configurator/common/frontend-analytics.js +0 -1
  1903. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.d.ts +0 -4
  1904. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.js +0 -1
  1905. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.d.ts +0 -4
  1906. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.js +0 -1
  1907. package/dist/domain/application/element-registration.d.ts +0 -105
  1908. package/dist/domain/application/element-registration.js +0 -1
  1909. package/dist/domain/application/handler-registration.d.ts +0 -29
  1910. package/dist/domain/application/handler-registration.js +0 -1
  1911. package/dist/domain/application/resolve-imported-transformers.d.ts +0 -13
  1912. package/dist/domain/application/resolve-imported-transformers.js +0 -1
  1913. package/dist/domain/application/resource-builder.d.ts +0 -13
  1914. package/dist/domain/application/resource-builder.js +0 -1
  1915. package/dist/domain/components/component-reader-types.d.ts +0 -44
  1916. package/dist/domain/components/debug-state-component.d.ts +0 -14
  1917. package/dist/domain/components/debug-state-component.js +0 -1
  1918. package/dist/domain/components/domain-component-optic.d.ts +0 -76
  1919. package/dist/domain/components/domain-component-optic.js +0 -16
  1920. package/dist/domain/components/drag-state-component.d.ts +0 -16
  1921. package/dist/domain/components/drag-state-component.js +0 -1
  1922. package/dist/domain/components/export-state-component.d.ts +0 -15
  1923. package/dist/domain/components/export-state-component.js +0 -1
  1924. package/dist/domain/components/fullscreen-state-component.d.ts +0 -14
  1925. package/dist/domain/components/fullscreen-state-component.js +0 -1
  1926. package/dist/domain/components/group-components-by-entity-id-and-name.d.ts +0 -9
  1927. package/dist/domain/components/group-components-by-entity-id-and-name.js +0 -1
  1928. package/dist/domain/components/hover-state-component.d.ts +0 -14
  1929. package/dist/domain/components/hover-state-component.js +0 -1
  1930. package/dist/domain/components/index.d.ts +0 -2
  1931. package/dist/domain/components/index.js +0 -1
  1932. package/dist/domain/components/legacy-filter.d.ts +0 -513
  1933. package/dist/domain/components/navigation-state-component.d.ts +0 -15
  1934. package/dist/domain/components/navigation-state-component.js +0 -1
  1935. package/dist/domain/components/selection-state-component.d.ts +0 -14
  1936. package/dist/domain/components/selection-state-component.js +0 -1
  1937. package/dist/domain/components/system-component-builder.d.ts +0 -12
  1938. package/dist/domain/components/system-component-builder.js +0 -1
  1939. package/dist/domain/components/system-component-filter.d.ts +0 -793
  1940. package/dist/domain/components/system-virtual-entity.js +0 -1
  1941. package/dist/domain/components/tool-state-component.d.ts +0 -14
  1942. package/dist/domain/components/tool-state-component.js +0 -1
  1943. package/dist/domain/components/updates.d.ts +0 -108
  1944. package/dist/domain/components/view-state-component.d.ts +0 -14
  1945. package/dist/domain/components/view-state-component.js +0 -1
  1946. package/dist/domain/components/viewport-state-component.d.ts +0 -29
  1947. package/dist/domain/components/viewport-state-component.js +0 -1
  1948. package/dist/domain/core/component.d.ts +0 -46
  1949. package/dist/domain/core/expression.d.ts +0 -50
  1950. package/dist/domain/core/json-schema.js +0 -1
  1951. package/dist/domain/core/migrations.d.ts +0 -99
  1952. package/dist/domain/core/migrations.js +0 -1
  1953. package/dist/domain/core/model.d.ts +0 -127
  1954. package/dist/domain/core/reflection.d.ts +0 -114
  1955. package/dist/domain/core/reflection.js +0 -1
  1956. package/dist/domain/core/state.d.ts +0 -10
  1957. package/dist/domain/domain-context/recipe-system/recipes.d.ts +0 -57
  1958. package/dist/domain/domain-context/recipe-system/recipes.js +0 -1
  1959. package/dist/domain/expressions/constant-expressions.d.ts +0 -9
  1960. package/dist/domain/expressions/constant-expressions.js +0 -1
  1961. package/dist/domain/expressions/custom-expression.d.ts +0 -13
  1962. package/dist/domain/expressions/custom-expression.js +0 -1
  1963. package/dist/domain/expressions/index.d.ts +0 -1
  1964. package/dist/domain/expressions/index.js +0 -1
  1965. package/dist/domain/expressions/memoize-expression.d.ts +0 -17
  1966. package/dist/domain/expressions/prepare-domain-expressions.d.ts +0 -16
  1967. package/dist/domain/invariants/builtin-invariant.d.ts +0 -5
  1968. package/dist/domain/invariants/custom-invariants.d.ts +0 -22
  1969. package/dist/domain/invariants/custom-invariants.js +0 -1
  1970. package/dist/domain/invariants/invariants.d.ts +0 -68
  1971. package/dist/domain/invariants/invariants.js +0 -1
  1972. package/dist/domain/invariants/violation-component.js +0 -1
  1973. package/dist/domain/invariants/violation.d.ts +0 -85
  1974. package/dist/domain/invariants/violation.js +0 -1
  1975. package/dist/domain/relations/all-of-type-relation.d.ts +0 -33
  1976. package/dist/domain/relations/all-of-type-relation.js +0 -1
  1977. package/dist/domain/relations/component-factories.d.ts +0 -15
  1978. package/dist/domain/relations/component-factories.js +0 -1
  1979. package/dist/domain/relations/composed-of.d.ts +0 -12
  1980. package/dist/domain/relations/composed-of.js +0 -1
  1981. package/dist/domain/relations/direct-relation.d.ts +0 -29
  1982. package/dist/domain/relations/indirect-relation.d.ts +0 -81
  1983. package/dist/domain/relations/indirect-relation.js +0 -1
  1984. package/dist/domain/relations/reference-component.d.ts +0 -18
  1985. package/dist/domain/relations/reference-component.js +0 -1
  1986. package/dist/domain/relations/reference-field.d.ts +0 -7
  1987. package/dist/domain/relations/relation-factory.d.ts +0 -19
  1988. package/dist/domain/relations/relation-factory.js +0 -1
  1989. package/dist/domain/relations/relation-implementation.d.ts +0 -8
  1990. package/dist/domain/system-components/angle-indicator.d.ts +0 -21
  1991. package/dist/domain/system-components/angle-indicator.js +0 -1
  1992. package/dist/domain/system-components/attribute-switch.d.ts +0 -8
  1993. package/dist/domain/system-components/attribute-switch.js +0 -1
  1994. package/dist/domain/system-components/autorotate-camera-component.d.ts +0 -19
  1995. package/dist/domain/system-components/autorotate-camera-component.js +0 -1
  1996. package/dist/domain/system-components/basic-sidebar-footer.d.ts +0 -8
  1997. package/dist/domain/system-components/basic-sidebar-footer.js +0 -1
  1998. package/dist/domain/system-components/camera-based-hidden-entity-object.js +0 -1
  1999. package/dist/domain/system-components/camera-based-hidden-entity.js +0 -1
  2000. package/dist/domain/system-components/canvas-config.d.ts +0 -87
  2001. package/dist/domain/system-components/canvas-config.js +0 -1
  2002. package/dist/domain/system-components/canvas-custom-environment.js +0 -1
  2003. package/dist/domain/system-components/canvas-padding.d.ts +0 -25
  2004. package/dist/domain/system-components/canvas-padding.js +0 -1
  2005. package/dist/domain/system-components/canvas-preset-environment.d.ts +0 -37
  2006. package/dist/domain/system-components/canvas-preset-environment.js +0 -1
  2007. package/dist/domain/system-components/child-entity-recipe-hierarchy.d.ts +0 -21
  2008. package/dist/domain/system-components/child-entity-recipe-hierarchy.js +0 -1
  2009. package/dist/domain/system-components/client-side-image.d.ts +0 -14
  2010. package/dist/domain/system-components/client-side-image.js +0 -1
  2011. package/dist/domain/system-components/color-value.js +0 -1
  2012. package/dist/domain/system-components/common/angle-indicator-schema.d.ts +0 -292
  2013. package/dist/domain/system-components/common/angle-indicator-schema.js +0 -1
  2014. package/dist/domain/system-components/common/dimension-indicator-schema.d.ts +0 -607
  2015. package/dist/domain/system-components/common/dimension-indicator-schema.js +0 -1
  2016. package/dist/domain/system-components/custom-header.d.ts +0 -11
  2017. package/dist/domain/system-components/custom-header.js +0 -1
  2018. package/dist/domain/system-components/custom-price-footer.js +0 -1
  2019. package/dist/domain/system-components/custom-sidebar-footer.d.ts +0 -11
  2020. package/dist/domain/system-components/custom-sidebar-footer.js +0 -1
  2021. package/dist/domain/system-components/dimension-indicator.d.ts +0 -31
  2022. package/dist/domain/system-components/dimension-indicator.js +0 -1
  2023. package/dist/domain/system-components/editable-angle-indicator.d.ts +0 -38
  2024. package/dist/domain/system-components/editable-angle-indicator.js +0 -1
  2025. package/dist/domain/system-components/editable-distance-dimension-indicator.d.ts +0 -42
  2026. package/dist/domain/system-components/editable-distance-dimension-indicator.js +0 -1
  2027. package/dist/domain/system-components/editable-offset-indicator.d.ts +0 -41
  2028. package/dist/domain/system-components/editable-offset-indicator.js +0 -1
  2029. package/dist/domain/system-components/editable-size-indicator.d.ts +0 -38
  2030. package/dist/domain/system-components/editable-size-indicator.js +0 -1
  2031. package/dist/domain/system-components/entity-header.d.ts +0 -22
  2032. package/dist/domain/system-components/entity-header.js +0 -1
  2033. package/dist/domain/system-components/exit-tool-mode-fab.d.ts +0 -25
  2034. package/dist/domain/system-components/exit-tool-mode-fab.js +0 -1
  2035. package/dist/domain/system-components/finalize-action.d.ts +0 -20
  2036. package/dist/domain/system-components/finalize-action.js +0 -1
  2037. package/dist/domain/system-components/finalize-component.js +0 -1
  2038. package/dist/domain/system-components/fit-selection-orthographic-camera-component.js +0 -1
  2039. package/dist/domain/system-components/fit-selection-perspective-camera-component.js +0 -1
  2040. package/dist/domain/system-components/fixed-header.d.ts +0 -10
  2041. package/dist/domain/system-components/fixed-header.js +0 -1
  2042. package/dist/domain/system-components/floating-header.d.ts +0 -10
  2043. package/dist/domain/system-components/floating-header.js +0 -1
  2044. package/dist/domain/system-components/hidden-header.d.ts +0 -8
  2045. package/dist/domain/system-components/hidden-header.js +0 -1
  2046. package/dist/domain/system-components/hidden-sidebar-footer.d.ts +0 -21
  2047. package/dist/domain/system-components/hidden-sidebar-footer.js +0 -1
  2048. package/dist/domain/system-components/horizontal-tabs.d.ts +0 -28
  2049. package/dist/domain/system-components/horizontal-tabs.js +0 -1
  2050. package/dist/domain/system-components/list-selector-dimension-indicator.d.ts +0 -30
  2051. package/dist/domain/system-components/list-selector-dimension-indicator.js +0 -1
  2052. package/dist/domain/system-components/multilingual-text-value.js +0 -1
  2053. package/dist/domain/system-components/navigation-steps.d.ts +0 -19
  2054. package/dist/domain/system-components/navigation-steps.js +0 -1
  2055. package/dist/domain/system-components/offset-anchors.d.ts +0 -20
  2056. package/dist/domain/system-components/offset-anchors.js +0 -1
  2057. package/dist/domain/system-components/offset-indicator.d.ts +0 -84
  2058. package/dist/domain/system-components/offset-indicator.js +0 -1
  2059. package/dist/domain/system-components/offset.d.ts +0 -31
  2060. package/dist/domain/system-components/offset.js +0 -1
  2061. package/dist/domain/system-components/other-action.d.ts +0 -14
  2062. package/dist/domain/system-components/other-action.js +0 -1
  2063. package/dist/domain/system-components/property-page.d.ts +0 -16
  2064. package/dist/domain/system-components/property-page.js +0 -1
  2065. package/dist/domain/system-components/read-sidebar-footer.d.ts +0 -8
  2066. package/dist/domain/system-components/read-sidebar-footer.js +0 -1
  2067. package/dist/domain/system-components/replace-entity-recipe-hierarchy.d.ts +0 -21
  2068. package/dist/domain/system-components/replace-entity-recipe-hierarchy.js +0 -1
  2069. package/dist/domain/system-components/rotatable.js +0 -1
  2070. package/dist/domain/system-components/rotation-handle.d.ts +0 -53
  2071. package/dist/domain/system-components/rotation-handle.js +0 -1
  2072. package/dist/domain/system-components/save-template-thumbnail.d.ts +0 -14
  2073. package/dist/domain/system-components/save-template-thumbnail.js +0 -1
  2074. package/dist/domain/system-components/scene-entity-add-fab.d.ts +0 -32
  2075. package/dist/domain/system-components/scene-entity-add-fab.js +0 -1
  2076. package/dist/domain/system-components/scene-entity-animation.js +0 -1
  2077. package/dist/domain/system-components/scene-entity-control.js +0 -1
  2078. package/dist/domain/system-components/scene-entity-delete-fab.d.ts +0 -19
  2079. package/dist/domain/system-components/scene-entity-delete-fab.js +0 -1
  2080. package/dist/domain/system-components/scene-entity-floor-object.js +0 -1
  2081. package/dist/domain/system-components/scene-entity-html-hotspot.d.ts +0 -27
  2082. package/dist/domain/system-components/scene-entity-html-hotspot.js +0 -1
  2083. package/dist/domain/system-components/scene-entity-navigation-hotspot.d.ts +0 -20
  2084. package/dist/domain/system-components/scene-entity-navigation-hotspot.js +0 -1
  2085. package/dist/domain/system-components/scene-entity-object-html-hotspot.d.ts +0 -31
  2086. package/dist/domain/system-components/scene-entity-object-html-hotspot.js +0 -1
  2087. package/dist/domain/system-components/scene-entity-select-hotspot.d.ts +0 -5
  2088. package/dist/domain/system-components/scene-entity-select-hotspot.js +0 -1
  2089. package/dist/domain/system-components/scene-entity-wall-object.js +0 -1
  2090. package/dist/domain/system-components/selectable-component.js +0 -1
  2091. package/dist/domain/system-components/sidebar-tabs.d.ts +0 -29
  2092. package/dist/domain/system-components/sidebar-tabs.js +0 -1
  2093. package/dist/domain/system-components/simple-summary.js +0 -1
  2094. package/dist/domain/system-components/size.d.ts +0 -21
  2095. package/dist/domain/system-components/size.js +0 -1
  2096. package/dist/domain/system-components/sketching-draw.d.ts +0 -17
  2097. package/dist/domain/system-components/sketching-draw.js +0 -1
  2098. package/dist/domain/system-components/sketching-edit.d.ts +0 -28
  2099. package/dist/domain/system-components/sketching-edit.js +0 -1
  2100. package/dist/domain/system-components/summary-component.js +0 -1
  2101. package/dist/domain/system-components/text-value.js +0 -1
  2102. package/dist/domain/system-components/tool-controls.js +0 -1
  2103. package/dist/domain/system-components/tool-menu-fab.d.ts +0 -40
  2104. package/dist/domain/system-components/tool-menu-fab.js +0 -1
  2105. package/dist/domain/system-components/toolbar.d.ts +0 -13
  2106. package/dist/domain/system-components/toolbar.js +0 -1
  2107. package/dist/domain/system-components/universal-sidebar-footer.d.ts +0 -12
  2108. package/dist/domain/system-components/universal-sidebar-footer.js +0 -1
  2109. package/dist/domain/system-components/view-controls.js +0 -1
  2110. package/dist/extras/assistant/AssistantChat.d.ts +0 -6
  2111. package/dist/extras/assistant/AssistantChat.js +0 -1
  2112. package/dist/extras/assistant/index.d.ts +0 -1
  2113. package/dist/extras/assistant/index.js +0 -1
  2114. package/dist/phoenix/application-spec/generate-assistant-prompt.d.ts +0 -12
  2115. package/dist/phoenix/application-spec/generate-assistant-prompt.js +0 -1
  2116. package/dist/phoenix/commands/generate-project-files.d.ts +0 -6
  2117. package/dist/phoenix/commands/generate-project-files.js +0 -1
  2118. package/dist/react-sdk/application-runtime/runtime/god-mode.d.ts +0 -19
  2119. package/dist/react-sdk/application-runtime/runtime/god-mode.js +0 -1
  2120. package/dist/react-sdk/loading-state/LoadingStateProvider.d.ts +0 -31
  2121. package/dist/react-sdk/loading-state/LoadingStateProvider.js +0 -1
  2122. package/dist/react-sdk/loading-state/loading-state-manager.d.ts +0 -32
  2123. package/dist/react-sdk/loading-state/loading-state-manager.js +0 -1
  2124. /package/dist/{domain/components/component-reader-types.js → application-spec/core/expressions/relation-expression-params.js} +0 -0
  2125. /package/dist/application-spec/{core → enhanced-json}/eval-code-uses-self.d.ts +0 -0
  2126. /package/dist/application-spec/{core → enhanced-json}/eval-code-uses-self.js +0 -0
  2127. /package/dist/application-spec/{core → enhanced-json}/eval-to-constant.js +0 -0
  2128. /package/dist/{domain/core/enhanced-json-schema.js → application-spec/generate-application/runtime/spec-code/spec-code-module.js} +0 -0
  2129. /package/dist/{domain/core/expression.js → application-spec/parse-application-files/spec/expressions/expression-read.js} +0 -0
  2130. /package/dist/{domain/relations/reference-field.js → configurator/ui/assistant/form/form-model.js} +0 -0
  2131. /package/dist/{domain/relations/relation-implementation.js → configurator/ui/assistant/form/form-state.js} +0 -0
  2132. /package/dist/{domain/core/schema-validator.js → configurator/ui/assistant/form-elements/form-element-props.js} +0 -0
  2133. /package/dist/domain/{components → core/component}/legacy-filter.js +0 -0
  2134. /package/dist/domain/{components → core/component}/system-component-filter.js +0 -0
  2135. /package/dist/domain/{components → core/component}/system-virtual-entity.d.ts +0 -0
  2136. /package/dist/domain/{components → core/component}/updates.js +0 -0
  2137. /package/dist/domain/{invariants → core/invariant}/builtin-invariant.js +0 -0
  2138. /package/dist/domain/{invariants → core/invariant}/violation-component.d.ts +0 -0
  2139. /package/dist/domain/core/{alias.d.ts → model/alias.d.ts} +0 -0
  2140. /package/dist/domain/core/{alias.js → model/alias.js} +0 -0
  2141. /package/dist/domain/core/{common-definitions.d.ts → model/common-definitions.d.ts} +0 -0
  2142. /package/dist/domain/core/{common-definitions.js → model/common-definitions.js} +0 -0
  2143. /package/dist/domain/core/{component.js → model/component.js} +0 -0
  2144. /package/dist/domain/core/{model.js → model/model.js} +0 -0
  2145. /package/dist/domain/core/{preset.d.ts → model/preset.d.ts} +0 -0
  2146. /package/dist/domain/core/{preset.js → model/preset.js} +0 -0
  2147. /package/dist/domain/{relations → core/relation}/direct-relation.js +0 -0
  2148. /package/dist/domain/core/{schema-validator-ajv.d.ts → schema/create-ajv-schema-validator.d.ts} +0 -0
  2149. /package/dist/domain/core/{schema-validator-ajv.js → schema/create-ajv-schema-validator.js} +0 -0
  2150. /package/dist/domain/core/{schema-validator-csp.d.ts → schema/create-csp-schema-validator.d.ts} +0 -0
  2151. /package/dist/domain/core/{schema-validator-csp.js → schema/create-csp-schema-validator.js} +0 -0
  2152. /package/dist/domain/core/{enhanced-json-schema.d.ts → schema/enhanced-json-schema.d.ts} +0 -0
  2153. /package/dist/domain/core/{json-schema.d.ts → schema/extended-schema-validator.d.ts} +0 -0
  2154. /package/dist/domain/core/{schema-validator.d.ts → schema/schema-validator.d.ts} +0 -0
  2155. /package/dist/domain/core/{state.js → state/state.js} +0 -0
  2156. /package/dist/domain/{expressions → domain-runtime/spec}/memoize-expression.js +0 -0
  2157. /package/dist/domain/{expressions → domain-runtime/spec}/prepare-domain-expressions.js +0 -0
  2158. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity-object.d.ts +0 -0
  2159. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity.d.ts +0 -0
  2160. /package/dist/domain/{system-components → extensions}/canvas-custom-environment.d.ts +0 -0
  2161. /package/dist/domain/{system-components → extensions}/color-value.d.ts +0 -0
  2162. /package/dist/domain/{system-components → extensions}/common/dimension-indicators.d.ts +0 -0
  2163. /package/dist/domain/{system-components → extensions}/common/dimension-indicators.js +0 -0
  2164. /package/dist/domain/{system-components → extensions}/common/editable-indicator-button-variant.d.ts +0 -0
  2165. /package/dist/domain/{system-components → extensions}/common/editable-indicator-button-variant.js +0 -0
  2166. /package/dist/domain/{system-components → extensions}/custom-price-footer.d.ts +0 -0
  2167. /package/dist/domain/{system-components → extensions}/finalize-component.d.ts +0 -0
  2168. /package/dist/domain/{system-components → extensions}/fit-selection-orthographic-camera-component.d.ts +0 -0
  2169. /package/dist/domain/{system-components → extensions}/fit-selection-perspective-camera-component.d.ts +0 -0
  2170. /package/dist/domain/{system-components → extensions}/multilingual-text-value.d.ts +0 -0
  2171. /package/dist/domain/{system-components → extensions}/rotatable.d.ts +0 -0
  2172. /package/dist/domain/{system-components → extensions}/scene-entity-animation.d.ts +0 -0
  2173. /package/dist/domain/{system-components → extensions}/scene-entity-control.d.ts +0 -0
  2174. /package/dist/domain/{system-components → extensions}/scene-entity-floor-object.d.ts +0 -0
  2175. /package/dist/domain/{system-components → extensions}/scene-entity-wall-object.d.ts +0 -0
  2176. /package/dist/domain/{system-components → extensions}/selectable-component.d.ts +0 -0
  2177. /package/dist/domain/{system-components → extensions}/simple-summary.d.ts +0 -0
  2178. /package/dist/domain/{system-components → extensions}/summary-component.d.ts +0 -0
  2179. /package/dist/domain/{system-components → extensions}/text-value.d.ts +0 -0
  2180. /package/dist/domain/{system-components → extensions}/tool-controls.d.ts +0 -0
  2181. /package/dist/domain/{system-components → extensions}/view-controls.d.ts +0 -0
@@ -0,0 +1,1858 @@
1
+ # Kestrel Kettle
2
+
3
+ Sell a small product from one calm page that looks like the shop's own. A specialty-coffee shop, Aldermoor Coffee, sells its Kestrel pour-over kettle in three finishes, two handle woods and with or without a thermometer lid. The page reads like an editorial product page: the kettle on the left, a quiet column on the right with the name, the story, three rows of choices, the price and **Add to cart**, and the shop's promises in a thin strip at the bottom. On a phone the page opens on the shop's own start screen, "Make it yours", and then shows the kettle above one scrolling column. The project writes the page as one layout element; the spec holds the product, its prices, the rule between finish and wood, and the cart action.
4
+
5
+ - [Try it](#try-it)
6
+ - [What the example demonstrates](#what-the-example-demonstrates)
7
+ - [One page over the scene](#one-page-over-the-scene)
8
+ - [Choices from the spec](#choices-from-the-spec)
9
+ - [A rule between two choices](#a-rule-between-two-choices)
10
+ - [Add to cart](#add-to-cart)
11
+ - [The phone's start screen](#the-phones-start-screen)
12
+ - [The shop's footer and the Powered by mark](#the-shops-footer-and-the-powered-by-mark)
13
+ - [Texts from the spec](#texts-from-the-spec)
14
+ - [The stage and the model](#the-stage-and-the-model)
15
+ - [Test cases](#test-cases)
16
+ - [What this layout leaves out](#what-this-layout-leaves-out)
17
+ - [Related pages](#related-pages)
18
+ - [Complete Implementation](#complete-implementation)
19
+
20
+ ## Try it
21
+
22
+ The phone version is under [The phone's start screen](#the-phones-start-screen).
23
+
24
+ ## What the example demonstrates
25
+
26
+ [Custom Layout](?path=/docs/layouts-custom-layout--docs) explains how a project layout works: the element name, the scene, the safe area and the hooks. This page is a finished design built the same way, for a single-page product with no steps or tabs, and it shows the pieces Custom Layout does not use:
27
+
28
+ | Piece | Where |
29
+ | ------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------- |
30
+ | `phx.frontend.useAttributeSwitch()` for an on/off choice | `ThermometerRow`, [Choices from the spec](#choices-from-the-spec) |
31
+ | `LayoutSlots.Services` with the built-in snackbars in `DesktopSnackbarsRoot` and `MobileSnackbarsRoot` | [A rule between two choices](#a-rule-between-two-choices) |
32
+ | `phx.frontend.useFinalizeActions()` for the spec's `addToCart` action | `CartBlock`, [Add to cart](#add-to-cart) |
33
+ | `phx.frontend.usePreview()` with the layout's own start screen, and `phx.frontend.useCloseAction()` | `PhonePoster`, `PhonePage`, [The phone's start screen](#the-phones-start-screen) |
34
+ | `phx.frontend.createLayoutFooter` with `LayoutSlots.DesktopFooter` and `MobileFooter` | [The shop's footer](#the-shops-footer-and-the-powered-by-mark) |
35
+ | `LayoutSlots.DesktopPoweredBy` and `MobilePoweredBy` | the footer strip and the end of the phone's column |
36
+ | `phx.frontend.useLocalizable()` and `LocalizableMessage` | `ProductHeading`, [Texts from the spec](#texts-from-the-spec) |
37
+ | A `canvasCustomEnvironment` stage with procedural light and a contact shadow | `KettleStudio`, [The stage and the model](#the-stage-and-the-model) |
38
+
39
+ ## One page over the scene
40
+
41
+ `src/elements/ConfiguratorLayout.tsx` keeps the scene and the services mounted for as long as the configuration is open and chooses what lies over the scene: the start screen on a phone while `phx.frontend.usePreview().isPreview` is set, the phone page, or the desktop page. `phx.frontend.useActiveViewports()` tells desktop from phone by the width of the configurator's container, not the window.
42
+
43
+ ```tsx
44
+ import { Box } from '@mui/material'
45
+
46
+ import { LayoutSlots } from '@salsita-ai/sdk/configurator'
47
+
48
+ import { phx } from '../../.phoenix/phx.js'
49
+ import { DesktopPage } from '../_shared/DesktopPage.js'
50
+ import { PhonePage } from '../_shared/PhonePage.js'
51
+ import { PhonePoster } from '../_shared/PhonePoster.js'
52
+ import { KESTREL } from '../_shared/tokens.js'
53
+
54
+ // One page, no steps or tabs. The canvas and the services stay mounted the whole time; what lies over the canvas is
55
+ // the phone's start screen, the phone page or the desktop page. Each calls `useSceneSafeArea` itself, so only the one
56
+ // on screen tells the camera where the kettle goes.
57
+ const ConfiguratorLayout = () => {
58
+ // `null` until the container has been measured; only the scene shows until then
59
+ const viewports = phx.frontend.useActiveViewports()
60
+ const { isPreview } = phx.frontend.usePreview()
61
+ const isDesktop = viewports?.includes('desktop') ?? false
62
+
63
+ return (
64
+ <Box component="div" sx={{ position: 'absolute', inset: 0, overflow: 'clip', bgcolor: KESTREL.oat }}>
65
+ <LayoutSlots.Services />
66
+ <LayoutSlots.SharedCanvas />
67
+ {viewports !== null && (isPreview ? <PhonePoster /> : isDesktop ? <DesktopPage /> : <PhonePage />)}
68
+ </Box>
69
+ )
70
+ }
71
+
72
+ export default phx.frontend.createCustomPhoenixLayoutElement('ConfiguratorLayout', ConfiguratorLayout)
73
+ ```
74
+
75
+ - **Each arrangement measures its own safe area.** `DesktopPage`, `PhonePage` and `PhonePoster` each call `phx.frontend.useSceneSafeArea()` and attach `safeAreaRef` to a box inside the free area, inset from its edges. The camera fits the kettle into that box, so the inset is the breathing room around the product. Only the arrangement on screen is mounted, so only one of them steers the camera.
76
+ - **The camera fits the product, it does not use a fixed distance.** Both `fitRootPerspectiveCamera` instances leave `distance` out and set `fitToBox: true`. A `distance` overrides the fit, and the kettle is then as large on a 390-pixel phone as on a desktop.
77
+ - **Fullscreen** removes the column and the footer, so the free area, and the kettle with it, takes the whole canvas. The button sets the flag with `phx.frontend.useSetFullscreen()`; the layout reads it with `phx.frontend.useIsFullscreenActive()`. Like the built-in fullscreen button, it records `FrontendAnalyticsFactory.FullScreenModeToggled()` from `@salsita-ai/sdk/configurator` through `phx.frontend.useAnalytics().push()`, on entering and on leaving.
78
+
79
+ ## Choices from the spec
80
+
81
+ The three choices are plain spec components on the root entity. The layout decides how they look: round swatches for the finish and the wood, a switch for the thermometer lid.
82
+
83
+ ```yaml
84
+ components:
85
+ Kettle:
86
+ attributeSelection:
87
+ bodyFinish:
88
+ value:
89
+ $bind: bodyFinish
90
+ options:
91
+ - label: Brushed steel
92
+ description: Satin stainless that hides fingerprints
93
+ value: BrushedSteel
94
+ - label: Matte black
95
+ description: A soft powder coat
96
+ value: MatteBlack
97
+ - label: Copper
98
+ description: Lacquered copper, warm in the light
99
+ value: Copper
100
+ handleWood:
101
+ value:
102
+ $bind: handleWood
103
+ options:
104
+ - label: Walnut
105
+ description: Dark and oiled
106
+ value: Walnut
107
+ - label: Oak
108
+ description: Pale and matte
109
+ value: Oak
110
+ attributeSwitch:
111
+ thermometer:
112
+ value:
113
+ $bind: thermometer
114
+ ```
115
+
116
+ `SwatchRow` draws one `attributeSelection` with `phx.frontend.useAttributeSelection(kettleId, instanceName)`: a `radiogroup` of round buttons, the chosen option's `title` beside the label and its `description` below. The colours of the swatches are the layout's, keyed by the option `value`; the spec's `attributeSelection` carries no label either, so "Body finish" and "Handle" are the layout's text too. The arrow keys move the selection within a row.
117
+
118
+ An `attributeSwitch` is a boolean. `phx.frontend.useAttributeSwitch(kettleId, 'thermometer')` returns `state.value` and `onChange()`, which writes the opposite value, so it fits a switch directly:
119
+
120
+ ```tsx
121
+ import { Box, Switch, Typography } from '@mui/material'
122
+
123
+ import { phx } from '../../.phoenix/phx.js'
124
+ import { KESTREL, LABEL_SX } from './tokens.js'
125
+
126
+ interface ThermometerRowProps {
127
+ readonly readOnly: boolean
128
+ }
129
+
130
+ // The spec's `attributeSwitch` as a labelled switch: on, the lid carries a dial thermometer; off, a plain wooden knob
131
+ export const ThermometerRow = ({ readOnly }: ThermometerRowProps) => {
132
+ const kettleId = phx.frontend.useRootEntityId()
133
+ const thermometer = phx.frontend.useAttributeSwitch(kettleId, 'thermometer')
134
+ const isOn = thermometer.state.value
135
+
136
+ return (
137
+ <Box component="section" sx={{ display: 'grid', gap: 0.5, paddingBlock: 2 }}>
138
+ <Box component="div" sx={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 2 }}>
139
+ <Typography component="h3" id="kestrel-thermometer-label" sx={LABEL_SX}>
140
+ Thermometer lid
141
+ </Typography>
142
+ <Switch
143
+ checked={isOn}
144
+ disabled={readOnly || thermometer.disabled}
145
+ onChange={thermometer.onChange}
146
+ inputProps={{ 'aria-labelledby': 'kestrel-thermometer-label' }}
147
+ sx={{
148
+ '& .MuiSwitch-switchBase.Mui-checked': { color: KESTREL.oat },
149
+ '& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track': { bgcolor: KESTREL.copper, opacity: 1 },
150
+ '& .MuiSwitch-track': { bgcolor: KESTREL.hairline, opacity: 1 },
151
+ }}
152
+ />
153
+ </Box>
154
+ <Typography sx={{ fontSize: 13, color: KESTREL.muted }}>
155
+ {isOn ? 'A dial in the lid shows when the water is ready to pour.' : 'A plain lid with a wooden knob.'}
156
+ </Typography>
157
+ </Box>
158
+ )
159
+ }
160
+ ```
161
+
162
+ The choices change the scene through the spec, not through the layout. A material override recolours the `Body` material from expressions in `src/expressions/kettle.ts`, which also add each choice's surcharge to `$price`, and the switch shows the dial or the knob:
163
+
164
+ ```yaml
165
+ components:
166
+ Kettle:
167
+ sceneEntityObjectProperties:
168
+ knob:
169
+ visible:
170
+ $read: $plainKnob
171
+ thermometerDial:
172
+ visible:
173
+ $read: thermometer
174
+ sceneEntityLocalMaterialOverride:
175
+ body:
176
+ materialsToOverride: [Body]
177
+ materialType: physical
178
+ color:
179
+ $read: $bodyColor
180
+ metalness:
181
+ $read: $bodyMetalness
182
+ roughness:
183
+ $read: $bodyRoughness
184
+ clearcoat:
185
+ $read: $bodyClearcoat
186
+ clearcoatRoughness: 0.15
187
+ ```
188
+
189
+ ## A rule between two choices
190
+
191
+ The copper body is sold only with the walnut handle. The rule is an invariant: its message and severity are in the spec, its condition in `src/invariants/kettle.ts`.
192
+
193
+ ```yaml
194
+ invariants:
195
+ Kettle:
196
+ copperNeedsWalnut:
197
+ type: copperNeedsWalnut
198
+ severity: fixable
199
+ message: The copper body comes only with the walnut handle.
200
+ ```
201
+
202
+ ```ts
203
+ import { phx } from '../../.phoenix/phx.js'
204
+
205
+ // The copper body is sold only with the walnut handle. The spec marks the violation `fixable`, so a change that breaks
206
+ // it is rejected and the built-in snackbar shows the spec's message.
207
+ export default phx.domain.implementCustomInvariants({
208
+ Kettle: {
209
+ copperNeedsWalnut: s => {
210
+ return s.bodyFinish !== 'Copper' || s.handleWood === 'Walnut'
211
+ },
212
+ },
213
+ })
214
+ ```
215
+
216
+ The customer sees the rule twice:
217
+
218
+ - **Before choosing.** While the handle is oak, the control hook marks the copper option `disabled` with `hint` set to the invariant's message. `SwatchRow` fades the swatch, sets `aria-disabled` and shows the hint below the row; while the body is copper, the oak swatch is faded the same way.
219
+ - **After choosing anyway.** The faded swatch stays clickable and calls the option's `onSelect()`. A `fixable` violation rejects the change, the kettle keeps its finish, and `LayoutSlots.Services` raises the built-in snackbar "Kettle-1: The copper body comes only with the walnut handle." The built-in snackbar puts the entity id before the message.
220
+
221
+ The snackbars render where the layout mounts a root. On a desktop `LayoutSlots.DesktopSnackbarsRoot` is a zero-height element at the bottom left of the free area, and the snackbars stack upwards from it. On a phone `LayoutSlots.MobileSnackbarsRoot` leaves them fixed to the viewport; `PhonePage` places them below its top bar by styling `notistackSnackbarClasses.container` from `@salsita-ai/sdk/ui`. Mount the snackbars or `phx.frontend.useConfiguratorMessages()`, not both, see [Custom Layout → Show messages](?path=/docs/layouts-custom-layout--docs#show-messages) for the other way.
222
+
223
+ Passing the violation type to the hook's third argument, `fixableViolations`, does not enable the option: it only drops the violation from `hint`. A layout that wants the option clickable calls `onSelect()` on the disabled option, as `SwatchRow` does.
224
+
225
+ ## Add to cart
226
+
227
+ The spec declares one finalize action. Its handler, `src/handlers/add-to-cart.ts`, stands in for the shop's cart: it waits, then enters the `added` navigation state.
228
+
229
+ ```yaml
230
+ navigationStates:
231
+ - configure
232
+ - added
233
+ ```
234
+
235
+ ```yaml
236
+ components:
237
+ Kettle:
238
+ finalizeAction:
239
+ addToCart:
240
+ variant: primary
241
+ label: Add to cart
242
+ title: Add the kettle as configured to the cart
243
+ icon: ShoppingBag
244
+ handler: addToCart
245
+ ```
246
+
247
+ ```ts
248
+ import { useCallback } from 'react'
249
+
250
+ import { phx } from '../../.phoenix/phx.js'
251
+
252
+ // Stands in for the shop's cart: adding takes a moment, then the page shows the confirmation
253
+ export default phx.frontend.createPhoenixHandler('addToCart', () => {
254
+ const navigate = phx.frontend.useNavigate()
255
+
256
+ return {
257
+ handler: useCallback(async () => {
258
+ await new Promise(resolve => setTimeout(resolve, 1200))
259
+ navigate('added')
260
+ }, [navigate]),
261
+ }
262
+ })
263
+ ```
264
+
265
+ `CartBlock` shows the price from `phx.frontend.useRootEntityPrice()` and runs the action from `phx.frontend.useFinalizeActions().primary`. The hook runs the handler beside the layout, so the pending state survives the block unmounting, for example in fullscreen. In the `added` state the block confirms the purchase and **Make another** returns to `configure`; `KettleOptions` keeps the choices as they were added until then. A viewer of a shared configuration sees the price and no button, because neither hook checks read mode. `DesktopPage` keeps the block at the bottom of the column with `position: sticky`, so the button stays in view when a short window makes the column scroll.
266
+
267
+ ```tsx
268
+ import { Alert, Box, Button, CircularProgress, Typography } from '@mui/material'
269
+
270
+ import { phx } from '../../.phoenix/phx.js'
271
+ import { KESTREL } from './tokens.js'
272
+
273
+ const CHECK_ICON = 'M5 12.5 10 17.5 19 7'
274
+
275
+ // The price and the spec's `addToCart` finalize action. `useFinalizeActions` runs the action's handler beside the
276
+ // layout, so its pending state survives this block unmounting, as it does in fullscreen. The handler moves to the
277
+ // `added` navigation state, where the block confirms the purchase instead. A viewer sees the price only.
278
+ export const CartBlock = () => {
279
+ const price = phx.frontend.useRootEntityPrice()
280
+ const { primary, hints } = phx.frontend.useFinalizeActions()
281
+ const navigationState = phx.frontend.useActiveNavigationState()
282
+ const navigate = phx.frontend.useNavigate()
283
+ const { accessInfo } = phx.frontend.useAccessService()
284
+ const isPending = primary?.isPending ?? false
285
+
286
+ if (navigationState === 'added') {
287
+ return (
288
+ <Box component="div" role="status" sx={{ display: 'flex', alignItems: 'center', gap: 2 }}>
289
+ <Box
290
+ component="svg"
291
+ viewBox="0 0 24 24"
292
+ aria-hidden
293
+ sx={{ inlineSize: 40, blockSize: 40, flex: 'none', padding: 1, borderRadius: '50%', bgcolor: KESTREL.sage }}
294
+ >
295
+ <path d={CHECK_ICON} fill="none" stroke={KESTREL.oat} strokeWidth={2.4} strokeLinecap="round" />
296
+ </Box>
297
+ <Box component="div" sx={{ display: 'grid', flex: 1 }}>
298
+ <Typography sx={{ fontFamily: KESTREL.display, fontSize: 20, color: KESTREL.charcoal }}>
299
+ In your cart
300
+ </Typography>
301
+ <Typography sx={{ fontSize: 13, color: KESTREL.muted }}>Kestrel, {price}</Typography>
302
+ </Box>
303
+ <Button
304
+ onClick={() => navigate('configure')}
305
+ sx={{ textTransform: 'none', color: KESTREL.charcoal, textDecoration: 'underline', fontSize: 14 }}
306
+ >
307
+ Make another
308
+ </Button>
309
+ </Box>
310
+ )
311
+ }
312
+
313
+ const showButton = primary !== null && !accessInfo.viewMode
314
+
315
+ return (
316
+ <Box component="div" sx={{ display: 'grid', gap: 1.5 }}>
317
+ <Box component="div" sx={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 2 }}>
318
+ <Box component="div" sx={{ display: 'grid' }}>
319
+ <Typography sx={{ fontFamily: KESTREL.display, fontSize: 30, lineHeight: 1.1, color: KESTREL.charcoal }}>
320
+ {price}
321
+ </Typography>
322
+ <Typography sx={{ fontSize: 12, color: KESTREL.muted, whiteSpace: 'nowrap' }}>Ships in two days</Typography>
323
+ </Box>
324
+ {showButton && (
325
+ <Button
326
+ variant="contained"
327
+ disableElevation
328
+ disabled={primary.disabled || isPending}
329
+ onClick={() => void primary.run()}
330
+ title={primary.title}
331
+ startIcon={isPending ? <CircularProgress size={16} color="inherit" /> : undefined}
332
+ sx={{
333
+ minBlockSize: 52,
334
+ paddingInline: 4.5,
335
+ borderRadius: 999,
336
+ bgcolor: KESTREL.charcoal,
337
+ color: KESTREL.oat,
338
+ fontFamily: KESTREL.body,
339
+ fontSize: 15,
340
+ letterSpacing: '0.02em',
341
+ textTransform: 'none',
342
+ '&:hover': { bgcolor: '#000000' },
343
+ '&.Mui-disabled': { bgcolor: KESTREL.charcoal, color: KESTREL.oat, opacity: 0.55 },
344
+ }}
345
+ >
346
+ {isPending ? 'Adding…' : primary.label}
347
+ </Button>
348
+ )}
349
+ </Box>
350
+ {showButton && primary.disabled && hints && (
351
+ <Typography sx={{ fontSize: 13, color: KESTREL.muted }}>{hints}</Typography>
352
+ )}
353
+ {primary?.error && <Alert severity="error">The kettle could not be added: {primary.error.message}</Alert>}
354
+ </Box>
355
+ )
356
+ }
357
+ ```
358
+
359
+ ## The phone's start screen
360
+
361
+ `preview: auto` at the top of the spec asks for a start screen when the configurator's container is phone-sized. The built-in layout shows `MobilePreview`; a project layout shows its own while `phx.frontend.usePreview().isPreview` is set, and calls `enter()` to open the page. The poster frames the kettle in the area above its text with its own `useSceneSafeArea()`.
362
+
363
+ ```yaml
364
+ preview: auto
365
+ ```
366
+
367
+ The same layout in a frame 390 pixels wide, as on a phone. It opens on the start screen; **Start designing** opens the page, and the close button at the top left returns to the start screen. Opened on its own from the sidebar, the **Phone** story sets Storybook's viewport to 390 × 844.
368
+
369
+ ```tsx
370
+ import { Box, Button, Typography } from '@mui/material'
371
+
372
+ import { phx } from '../../.phoenix/phx.js'
373
+ import { KESTREL, LABEL_SX } from './tokens.js'
374
+
375
+ // The layout's own start screen, shown on a phone while `usePreview().isPreview` is set (the spec's `preview: auto`).
376
+ // It frames the kettle in the area above the text with its own safe area; `enter()` opens the page.
377
+ export const PhonePoster = () => {
378
+ const { containerRef, safeAreaRef } = phx.frontend.useSceneSafeArea()
379
+ const { enter } = phx.frontend.usePreview()
380
+ const price = phx.frontend.useRootEntityPrice()
381
+
382
+ return (
383
+ <Box
384
+ component="div"
385
+ ref={containerRef}
386
+ sx={{
387
+ position: 'absolute',
388
+ inset: 0,
389
+ display: 'flex',
390
+ flexDirection: 'column',
391
+ fontFamily: KESTREL.body,
392
+ pointerEvents: 'none',
393
+ }}
394
+ >
395
+ <Typography
396
+ sx={{
397
+ paddingBlockStart: 3,
398
+ textAlign: 'center',
399
+ fontFamily: KESTREL.display,
400
+ fontSize: 20,
401
+ color: KESTREL.charcoal,
402
+ }}
403
+ >
404
+ Aldermoor
405
+ </Typography>
406
+ <Box component="div" ref={safeAreaRef} sx={{ flex: '1 1 0', minBlockSize: 0, marginInline: 3 }} />
407
+ <Box component="div" sx={{ display: 'grid', gap: 2, padding: 3, paddingBlockEnd: 4, pointerEvents: 'auto' }}>
408
+ <Typography sx={{ ...LABEL_SX, color: KESTREL.copper }}>The Kestrel pour-over kettle</Typography>
409
+ <Typography
410
+ component="h1"
411
+ sx={{
412
+ fontFamily: KESTREL.display,
413
+ fontSize: 48,
414
+ lineHeight: 1,
415
+ letterSpacing: '-0.01em',
416
+ color: KESTREL.charcoal,
417
+ }}
418
+ >
419
+ Make it yours
420
+ </Typography>
421
+ <Typography sx={{ fontSize: 15, lineHeight: 1.6, color: KESTREL.muted }}>
422
+ Three finishes, two woods and a thermometer lid if you want one. As shown, {price}.
423
+ </Typography>
424
+ <Button
425
+ variant="contained"
426
+ disableElevation
427
+ onClick={enter}
428
+ sx={{
429
+ marginBlockStart: 1,
430
+ minBlockSize: 52,
431
+ borderRadius: 999,
432
+ bgcolor: KESTREL.charcoal,
433
+ color: KESTREL.oat,
434
+ fontFamily: KESTREL.body,
435
+ fontSize: 15,
436
+ textTransform: 'none',
437
+ '&:hover': { bgcolor: '#000000' },
438
+ }}
439
+ >
440
+ Start designing
441
+ </Button>
442
+ </Box>
443
+ </Box>
444
+ )
445
+ }
446
+ ```
447
+
448
+ On a phone, `enter()` also expands the configurator, which `usePreview().isExpanded` reports. `PhonePage` offers one close button at the top left: the host's close action from `phx.frontend.useCloseAction()` when the integration provides one, otherwise `usePreview().leave()`, which returns to the start screen. Storybook provides no close action, so here the button returns to the start screen; with neither, the button is not shown.
449
+
450
+ ## The shop's footer and the Powered by mark
451
+
452
+ `LayoutSlots.DesktopFooter` and `LayoutSlots.MobileFooter` render the project's `LayoutFooter` element, registered with `phx.frontend.createLayoutFooter`, and nothing when there is none. The desktop page mounts it in the footer strip, with `LayoutSlots.DesktopPoweredBy` at the strip's right end; the phone page mounts `MobileFooter` and `MobilePoweredBy` at the end of its column.
453
+
454
+ ```tsx
455
+ import { Box } from '@mui/material'
456
+
457
+ import { phx } from '../../.phoenix/phx.js'
458
+ import { KESTREL } from '../_shared/tokens.js'
459
+
460
+ const PROMISES = ['Free delivery over $75', 'Two-year warranty', '30-day returns']
461
+
462
+ // The shop's promises. `createLayoutFooter` registers it as the `LayoutFooter` element, which the layout shows where it
463
+ // mounts `LayoutSlots.DesktopFooter` or `LayoutSlots.MobileFooter`.
464
+ const LayoutFooter = () => {
465
+ return (
466
+ <Box
467
+ component="ul"
468
+ sx={{
469
+ display: 'flex',
470
+ flexWrap: 'wrap',
471
+ columnGap: 3,
472
+ rowGap: 0.5,
473
+ margin: 0,
474
+ padding: 0,
475
+ listStyle: 'none',
476
+ fontSize: 12,
477
+ letterSpacing: '0.04em',
478
+ color: KESTREL.muted,
479
+ }}
480
+ >
481
+ {PROMISES.map(promise => (
482
+ <Box
483
+ component="li"
484
+ key={promise}
485
+ sx={{ display: 'flex', alignItems: 'center', gap: 1, '&::before': { content: '"·"', color: KESTREL.sage } }}
486
+ >
487
+ {promise}
488
+ </Box>
489
+ ))}
490
+ </Box>
491
+ )
492
+ }
493
+
494
+ export default phx.frontend.createLayoutFooter(LayoutFooter)
495
+ ```
496
+
497
+ ## Texts from the spec
498
+
499
+ The `detail` component holds the name, the subtitle and the story. Its fields are `Localizable`, not `string`. `ProductHeading` resolves the title and subtitle with `phx.frontend.useLocalizable()` and renders the description in place with `LocalizableMessage` from `@salsita-ai/sdk/react`; `SwatchRow` resolves a list of option titles with `phx.frontend.useResolveLocalizable()`. See [Localization](?path=/docs/phoenix-localization--docs).
500
+
501
+ ```yaml
502
+ components:
503
+ Kettle:
504
+ detail:
505
+ main:
506
+ title: Kestrel
507
+ subtitle: Pour-over kettle, 0.9 litres
508
+ ```
509
+
510
+ ```tsx
511
+ import { Box, Typography } from '@mui/material'
512
+
513
+ import { detailComponent } from '@salsita-ai/sdk/domain'
514
+ import { LocalizableMessage } from '@salsita-ai/sdk/react'
515
+
516
+ import { phx } from '../../.phoenix/phx.js'
517
+ import { KESTREL, LABEL_SX } from './tokens.js'
518
+
519
+ interface ProductHeadingProps {
520
+ readonly size: 'large' | 'small'
521
+ }
522
+
523
+ // The overline, the name and the story from the spec's `detail` component. Its texts are `Localizable`:
524
+ // `useLocalizable` resolves one into a string and `LocalizableMessage` renders one in place.
525
+ export const ProductHeading = ({ size }: ProductHeadingProps) => {
526
+ const detail = phx.frontend.useFirstRootComponent(detailComponent)
527
+ const title = phx.frontend.useLocalizable(detail?.state.title)
528
+ const subtitle = phx.frontend.useLocalizable(detail?.state.subtitle)
529
+
530
+ return (
531
+ <Box component="header" sx={{ display: 'grid', gap: size === 'large' ? 2 : 1.5 }}>
532
+ <Typography sx={{ ...LABEL_SX, color: KESTREL.copper }}>Aldermoor Coffee</Typography>
533
+ <Box component="div" sx={{ display: 'grid', gap: 0.75 }}>
534
+ <Typography
535
+ component="h1"
536
+ sx={{
537
+ fontFamily: KESTREL.display,
538
+ fontSize: size === 'large' ? 60 : 40,
539
+ lineHeight: 1,
540
+ letterSpacing: '-0.01em',
541
+ color: KESTREL.charcoal,
542
+ }}
543
+ >
544
+ {title}
545
+ </Typography>
546
+ <Typography sx={{ fontFamily: KESTREL.body, fontSize: 15, color: KESTREL.muted }}>{subtitle}</Typography>
547
+ </Box>
548
+ <Typography sx={{ fontFamily: KESTREL.body, fontSize: 15, lineHeight: 1.65, color: KESTREL.charcoal }}>
549
+ <LocalizableMessage>{detail?.state.description}</LocalizableMessage>
550
+ </Typography>
551
+ </Box>
552
+ )
553
+ }
554
+ ```
555
+
556
+ ## The stage and the model
557
+
558
+ The spec's `canvasCustomEnvironment` names `KettleStudio`, a layout element rendered inside the scene. It paints the page's oat colour as the scene's background, so the scene and the column read as one surface, lights the kettle with drei's `Lightformer` panels, which show only in the reflections and need no image download, and grounds it with a `ContactShadows` plane just below its base. The scene is in millimetres.
559
+
560
+ ```tsx
561
+ import { ContactShadows, Environment, Lightformer } from '@react-three/drei'
562
+
563
+ import { phx } from '../../.phoenix/phx.js'
564
+ import { KESTREL } from '../_shared/tokens.js'
565
+
566
+ // The stage named by the spec's `canvasCustomEnvironment`: a backdrop, a soft shadow under the kettle and a studio of
567
+ // light panels. The panels exist only in the reflections, so the metal finishes have something to mirror and no image
568
+ // has to be downloaded. The scene is in millimetres.
569
+ export default phx.frontend.createCustomPhoenixLayoutElement('KettleStudio', () => {
570
+ return (
571
+ <>
572
+ {/* The page's oat background, so the scene and the layout read as one surface */}
573
+ <color attach="background" args={[KESTREL.oat]} />
574
+ <ambientLight intensity={0.35} />
575
+ <directionalLight position={[400, 900, 600]} intensity={1.1} />
576
+
577
+ <Environment resolution={256} frames={1}>
578
+ <color attach="background" args={['#77706a']} />
579
+ {/* A softbox above, tall strips at the sides for the long highlights, a warm fill behind, a dim one in front */}
580
+ <Lightformer form="rect" intensity={2.4} position={[0, 6, 0]} rotation-x={Math.PI / 2} scale={[10, 6, 1]} />
581
+ <Lightformer form="rect" intensity={3} position={[-6, 1, 2]} rotation-y={Math.PI / 2} scale={[1.2, 8, 1]} />
582
+ <Lightformer form="rect" intensity={1.6} position={[6, 1, 3]} rotation-y={-Math.PI / 2} scale={[1.2, 8, 1]} />
583
+ <Lightformer form="rect" color="#f3d9c2" intensity={1} position={[0, 1, -8]} scale={[12, 4, 1]} />
584
+ <Lightformer form="rect" intensity={0.8} position={[0, 0, 8]} rotation-y={Math.PI} scale={[10, 3, 1]} />
585
+ </Environment>
586
+
587
+ <ContactShadows position={[0, -1, 0]} scale={520} far={60} blur={2.2} opacity={0.7} resolution={512} />
588
+ </>
589
+ )
590
+ })
591
+ ```
592
+
593
+ The kettle is `public/models/gallery/kettle.glb`, generated by `scripts/models/kettle.ts` in the Storybook package from three.js geometry: lathed body, lid, base ring and knob, a gooseneck spout and a flat handle swept along curves, and a dial with ticks and a needle. Each part is a named node the spec loads with `sceneEntityRemoteObject.<name>.objectName`; the parts that change with a choice carry the `Body` and `Handle` materials the overrides target. The script and its helper live in `scripts/models/`, outside the example's `src/`, because every file under `src/` is part of this page.
594
+
595
+ ## Test cases
596
+
597
+ - The kettle stands on the left of the page, centred in the free area beside the column, with a soft shadow below it. The column shows "Aldermoor Coffee", **Kestrel**, the subtitle, the story, the three choices, **$175.00** and **Add to cart**; the footer strip shows the three promises and the Powered by mark.
598
+ - **Matte black** turns the body, lid and spout black and the price to $185.00; **Copper** turns them copper at $220.00. The chosen swatch has a ring and its name and description change.
599
+ - **Oak** turns the handle and, without the thermometer, the knob pale. The price drops by $10.
600
+ - With **Oak** chosen, the **Copper** swatch is faded and "The copper body comes only with the walnut handle." is shown below the finishes. Clicking it keeps the finish and shows the snackbar "Kettle-1: The copper body comes only with the walnut handle." at the bottom left of the free area.
601
+ - With **Copper** chosen, the **Oak** swatch is faded and the same sentence is shown below the handles.
602
+ - Turning **Thermometer lid** off replaces the dial with a wooden knob and lowers the price by $20; turning it on brings the dial back.
603
+ - Tab reaches the chosen swatch of each row, and the arrow keys move the selection, skipping a faded swatch.
604
+ - **Add to cart** shows a spinner and "Adding…" for about a second, then "In your cart" with the price; the choices cannot be changed until **Make another**, which brings the button back.
605
+ - **Fullscreen** removes the column and the footer, and the kettle moves to the centre of the canvas; **Exit fullscreen** brings both back.
606
+ - Clicking **Fullscreen** and **Exit fullscreen** each pushes the `fullscreenButton` user-action event, as an `AnalyticsService.push` line in the browser console shows with its Verbose level enabled: without a Google Tag Manager id, Storybook's analytics log their events with `console.debug`.
607
+ - In a window too short for the column, the column scrolls and the price with **Add to cart** stays at its bottom edge.
608
+ - Dragging in the free area turns the kettle.
609
+ - In the **Phone** story the start screen shows the kettle above "Make it yours" and **Start designing**. **Start designing** opens the page: the kettle at the top, the column below it and the price with **Add to cart** in a bar at the bottom of the screen.
610
+ - On the phone, the column scrolls under the kettle and ends with the promises and the Powered by mark; the bar with the price stays.
611
+ - On the phone, the snackbar of the copper rule appears below the top bar.
612
+ - On the phone, the close button at the top left returns to the start screen.
613
+ - The browser console shows no errors.
614
+
615
+ ## What this layout leaves out
616
+
617
+ - **Undo and redo, sharing, measurements and the language switch.** The page has none of the toolbar's actions. A layout adds undo and redo with `phx.frontend.useUndoRedo()`, see [Configurator Interface → Hooks for a Project Layout](?path=/docs/phoenix-configurator-interface--docs#hooks-for-a-project-layout).
618
+ - **Read mode.** The layout hides **Add to cart** and makes the choices inert while `phx.frontend.useAccessService().accessInfo.viewMode` is set, but the example ships no read template; [Custom Layout → Serve read mode](?path=/docs/layouts-custom-layout--docs#serve-read-mode) shows one.
619
+ - **Messages in the layout's own UI.** The rejected change is a built-in snackbar; a layout that wants its own toast uses `phx.frontend.useConfiguratorMessages()` instead.
620
+ - **The built-in arrangement.** Header, sidebar, sidebar footer, tabs, tool controls, view controls and the built-in `DesktopPreview` and `MobilePreview` are not mounted; this page draws its own. [Layout Slots](?path=/docs/phoenix-layout-slots--docs) lists every slot a project layout can mount.
621
+
622
+ ## Related pages
623
+
624
+ - [Custom Layout](?path=/docs/layouts-custom-layout--docs) explains a project layout step by step.
625
+ - [Configurator Interface → Hooks for a Project Layout](?path=/docs/phoenix-configurator-interface--docs#hooks-for-a-project-layout) lists every hook used here.
626
+ - [Layout Slots](?path=/docs/phoenix-layout-slots--docs) describes `Services`, the snackbar roots, the footers and the Powered by mark.
627
+ - [Preview / Auto](?path=/docs/layouts-preview-auto--docs) shows the built-in start screen that `preview: auto` opens.
628
+
629
+ ## Complete Implementation
630
+
631
+ {/* AUTO-GENERATED SECTION: This section is automatically updated by 'phoenix story build' */}
632
+
633
+ <details>
634
+ <summary>Click to view the complete implementation files</summary>
635
+
636
+ ### ./spec/domain.yaml
637
+
638
+ ```yaml
639
+ preview: auto
640
+
641
+ model:
642
+ latest:
643
+ entityTypes:
644
+ - Kettle
645
+ aliases:
646
+ RootEntity:
647
+ - Kettle
648
+ commonTypes:
649
+ BodyFinish:
650
+ enum:
651
+ - BrushedSteel
652
+ - MatteBlack
653
+ - Copper
654
+ HandleWood:
655
+ enum:
656
+ - Walnut
657
+ - Oak
658
+ shapes:
659
+ Kettle:
660
+ bodyFinish:
661
+ $ref: '#/model/latest/commonTypes/BodyFinish'
662
+ handleWood:
663
+ $ref: '#/model/latest/commonTypes/HandleWood'
664
+ thermometer:
665
+ type: boolean
666
+
667
+ presets:
668
+ - rootEntityType: Kettle
669
+ initialDomainEntities:
670
+ - id: Kettle-1
671
+ type: Kettle
672
+ bodyFinish: BrushedSteel
673
+ handleWood: Walnut
674
+ thermometer: true
675
+
676
+ navigationStates:
677
+ - configure
678
+ - added
679
+
680
+ invariants:
681
+ Kettle:
682
+ copperNeedsWalnut:
683
+ type: copperNeedsWalnut
684
+ severity: fixable
685
+ message: The copper body comes only with the walnut handle.
686
+
687
+ components:
688
+ Kettle:
689
+ detail:
690
+ main:
691
+ title: Kestrel
692
+ subtitle: Pour-over kettle, 0.9 litres
693
+ description: A gooseneck kettle for slow, even pours. The spout narrows to a steady thread of water, and the dial in the lid tells you when it has cooled to brewing temperature.
694
+ price:
695
+ main:
696
+ price:
697
+ $read: $price
698
+ attributeSelection:
699
+ bodyFinish:
700
+ value:
701
+ $bind: bodyFinish
702
+ options:
703
+ - label: Brushed steel
704
+ description: Satin stainless that hides fingerprints
705
+ value: BrushedSteel
706
+ - label: Matte black
707
+ description: A soft powder coat
708
+ value: MatteBlack
709
+ - label: Copper
710
+ description: Lacquered copper, warm in the light
711
+ value: Copper
712
+ handleWood:
713
+ value:
714
+ $bind: handleWood
715
+ options:
716
+ - label: Walnut
717
+ description: Dark and oiled
718
+ value: Walnut
719
+ - label: Oak
720
+ description: Pale and matte
721
+ value: Oak
722
+ attributeSwitch:
723
+ thermometer:
724
+ value:
725
+ $bind: thermometer
726
+ finalizeAction:
727
+ addToCart:
728
+ variant: primary
729
+ label: Add to cart
730
+ title: Add the kettle as configured to the cart
731
+ icon: ShoppingBag
732
+ handler: addToCart
733
+
734
+ canvasConfig:
735
+ main:
736
+ highlightingDisabled: true
737
+ canvasCustomEnvironment:
738
+ main:
739
+ name: KettleStudio
740
+ fitRootPerspectiveCamera:
741
+ desktop:
742
+ priority: 2
743
+ fov: 30
744
+ near: 10
745
+ far: 5000
746
+ minDistance: 350
747
+ maxDistance: 1400
748
+ azimuthAngle: 0.35
749
+ polarAngle: 1.2
750
+ minPolarAngle: 0.5
751
+ maxPolarAngle: 1.5
752
+ fitToBox: true
753
+ fitMeshChanges: false
754
+ $filter:
755
+ viewports: [desktop]
756
+ phone:
757
+ priority: 1
758
+ fov: 30
759
+ near: 10
760
+ far: 5000
761
+ minDistance: 350
762
+ maxDistance: 1600
763
+ azimuthAngle: 0.35
764
+ polarAngle: 1.2
765
+ minPolarAngle: 0.5
766
+ maxPolarAngle: 1.5
767
+ fitToBox: true
768
+ fitMeshChanges: false
769
+ $filter:
770
+ viewports: [mobile]
771
+
772
+ sceneEntityRemoteObject:
773
+ body:
774
+ fileUrl: /models/gallery/kettle.glb
775
+ objectName: Body
776
+ dimensionUnit: m
777
+ lid:
778
+ fileUrl: /models/gallery/kettle.glb
779
+ objectName: Lid
780
+ dimensionUnit: m
781
+ spout:
782
+ fileUrl: /models/gallery/kettle.glb
783
+ objectName: Spout
784
+ dimensionUnit: m
785
+ baseRing:
786
+ fileUrl: /models/gallery/kettle.glb
787
+ objectName: BaseRing
788
+ dimensionUnit: m
789
+ handle:
790
+ fileUrl: /models/gallery/kettle.glb
791
+ objectName: Handle
792
+ dimensionUnit: m
793
+ handleCollars:
794
+ fileUrl: /models/gallery/kettle.glb
795
+ objectName: HandleCollars
796
+ dimensionUnit: m
797
+ knob:
798
+ fileUrl: /models/gallery/kettle.glb
799
+ objectName: Knob
800
+ dimensionUnit: m
801
+ thermometerDial:
802
+ fileUrl: /models/gallery/kettle.glb
803
+ objectName: ThermometerDial
804
+ dimensionUnit: m
805
+ dialFace:
806
+ fileUrl: /models/gallery/kettle.glb
807
+ objectName: DialFace
808
+ dimensionUnit: m
809
+ dialGlass:
810
+ fileUrl: /models/gallery/kettle.glb
811
+ objectName: DialGlass
812
+ dimensionUnit: m
813
+ sceneEntityObjectProperties:
814
+ knob:
815
+ visible:
816
+ $read: $plainKnob
817
+ thermometerDial:
818
+ visible:
819
+ $read: thermometer
820
+ dialFace:
821
+ visible:
822
+ $read: thermometer
823
+ dialGlass:
824
+ visible:
825
+ $read: thermometer
826
+ sceneEntityLocalMaterialOverride:
827
+ body:
828
+ materialsToOverride: [Body]
829
+ materialType: physical
830
+ color:
831
+ $read: $bodyColor
832
+ metalness:
833
+ $read: $bodyMetalness
834
+ roughness:
835
+ $read: $bodyRoughness
836
+ clearcoat:
837
+ $read: $bodyClearcoat
838
+ clearcoatRoughness: 0.15
839
+ handle:
840
+ materialsToOverride: [Handle]
841
+ color:
842
+ $read: $handleColor
843
+ metalness: 0
844
+ roughness: 0.58
845
+ glass:
846
+ materialsToOverride: [DialGlass]
847
+ materialType: physical
848
+ color: '#ffffff'
849
+ metalness: 0
850
+ roughness: 0.05
851
+ transparent: true
852
+ opacity: 0.18
853
+ ```
854
+
855
+ ### ./src/\_shared/CartBlock.tsx
856
+
857
+ ```tsx
858
+ import { Alert, Box, Button, CircularProgress, Typography } from '@mui/material'
859
+
860
+ import { phx } from '../../.phoenix/phx.js'
861
+ import { KESTREL } from './tokens.js'
862
+
863
+ const CHECK_ICON = 'M5 12.5 10 17.5 19 7'
864
+
865
+ // The price and the spec's `addToCart` finalize action. `useFinalizeActions` runs the action's handler beside the
866
+ // layout, so its pending state survives this block unmounting, as it does in fullscreen. The handler moves to the
867
+ // `added` navigation state, where the block confirms the purchase instead. A viewer sees the price only.
868
+ export const CartBlock = () => {
869
+ const price = phx.frontend.useRootEntityPrice()
870
+ const { primary, hints } = phx.frontend.useFinalizeActions()
871
+ const navigationState = phx.frontend.useActiveNavigationState()
872
+ const navigate = phx.frontend.useNavigate()
873
+ const { accessInfo } = phx.frontend.useAccessService()
874
+ const isPending = primary?.isPending ?? false
875
+
876
+ if (navigationState === 'added') {
877
+ return (
878
+ <Box component="div" role="status" sx={{ display: 'flex', alignItems: 'center', gap: 2 }}>
879
+ <Box
880
+ component="svg"
881
+ viewBox="0 0 24 24"
882
+ aria-hidden
883
+ sx={{ inlineSize: 40, blockSize: 40, flex: 'none', padding: 1, borderRadius: '50%', bgcolor: KESTREL.sage }}
884
+ >
885
+ <path d={CHECK_ICON} fill="none" stroke={KESTREL.oat} strokeWidth={2.4} strokeLinecap="round" />
886
+ </Box>
887
+ <Box component="div" sx={{ display: 'grid', flex: 1 }}>
888
+ <Typography sx={{ fontFamily: KESTREL.display, fontSize: 20, color: KESTREL.charcoal }}>
889
+ In your cart
890
+ </Typography>
891
+ <Typography sx={{ fontSize: 13, color: KESTREL.muted }}>Kestrel, {price}</Typography>
892
+ </Box>
893
+ <Button
894
+ onClick={() => navigate('configure')}
895
+ sx={{ textTransform: 'none', color: KESTREL.charcoal, textDecoration: 'underline', fontSize: 14 }}
896
+ >
897
+ Make another
898
+ </Button>
899
+ </Box>
900
+ )
901
+ }
902
+
903
+ const showButton = primary !== null && !accessInfo.viewMode
904
+
905
+ return (
906
+ <Box component="div" sx={{ display: 'grid', gap: 1.5 }}>
907
+ <Box component="div" sx={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 2 }}>
908
+ <Box component="div" sx={{ display: 'grid' }}>
909
+ <Typography sx={{ fontFamily: KESTREL.display, fontSize: 30, lineHeight: 1.1, color: KESTREL.charcoal }}>
910
+ {price}
911
+ </Typography>
912
+ <Typography sx={{ fontSize: 12, color: KESTREL.muted, whiteSpace: 'nowrap' }}>Ships in two days</Typography>
913
+ </Box>
914
+ {showButton && (
915
+ <Button
916
+ variant="contained"
917
+ disableElevation
918
+ disabled={primary.disabled || isPending}
919
+ onClick={() => void primary.run()}
920
+ title={primary.title}
921
+ startIcon={isPending ? <CircularProgress size={16} color="inherit" /> : undefined}
922
+ sx={{
923
+ minBlockSize: 52,
924
+ paddingInline: 4.5,
925
+ borderRadius: 999,
926
+ bgcolor: KESTREL.charcoal,
927
+ color: KESTREL.oat,
928
+ fontFamily: KESTREL.body,
929
+ fontSize: 15,
930
+ letterSpacing: '0.02em',
931
+ textTransform: 'none',
932
+ '&:hover': { bgcolor: '#000000' },
933
+ '&.Mui-disabled': { bgcolor: KESTREL.charcoal, color: KESTREL.oat, opacity: 0.55 },
934
+ }}
935
+ >
936
+ {isPending ? 'Adding…' : primary.label}
937
+ </Button>
938
+ )}
939
+ </Box>
940
+ {showButton && primary.disabled && hints && (
941
+ <Typography sx={{ fontSize: 13, color: KESTREL.muted }}>{hints}</Typography>
942
+ )}
943
+ {primary?.error && <Alert severity="error">The kettle could not be added: {primary.error.message}</Alert>}
944
+ </Box>
945
+ )
946
+ }
947
+ ```
948
+
949
+ ### ./src/\_shared/DesktopPage.tsx
950
+
951
+ ```tsx
952
+ import { Box, Typography } from '@mui/material'
953
+
954
+ import { LayoutSlots } from '@salsita-ai/sdk/configurator'
955
+
956
+ import { phx } from '../../.phoenix/phx.js'
957
+ import { CartBlock } from './CartBlock.js'
958
+ import { FullscreenButton } from './FullscreenButton.js'
959
+ import { KettleOptions } from './KettleOptions.js'
960
+ import { ProductHeading } from './ProductHeading.js'
961
+ import { KESTREL } from './tokens.js'
962
+
963
+ const COLUMN_WIDTH = 'clamp(380px, 38%, 520px)'
964
+ const FOOTER_HEIGHT = 52
965
+ const GUTTER = 32
966
+
967
+ // The desktop page: the kettle in the free area on the left, the product column on the right and the shop's footer
968
+ // strip below both. In fullscreen only the free area stays, so the camera frames the kettle in the whole canvas.
969
+ export const DesktopPage = () => {
970
+ const { containerRef, safeAreaRef } = phx.frontend.useSceneSafeArea()
971
+ const isFullscreen = phx.frontend.useIsFullscreenActive()
972
+ const { accessInfo } = phx.frontend.useAccessService()
973
+
974
+ return (
975
+ <Box
976
+ component="div"
977
+ ref={containerRef}
978
+ sx={{
979
+ position: 'absolute',
980
+ inset: 0,
981
+ display: 'grid',
982
+ gridTemplateColumns: isFullscreen ? 'minmax(0, 1fr)' : `minmax(0, 1fr) ${COLUMN_WIDTH}`,
983
+ gridTemplateRows: isFullscreen ? 'minmax(0, 1fr)' : `minmax(0, 1fr) ${FOOTER_HEIGHT}px`,
984
+ fontFamily: KESTREL.body,
985
+ // The free area lies over the canvas; only the controls in it take the pointer
986
+ pointerEvents: 'none',
987
+ }}
988
+ >
989
+ <Box component="div" sx={{ position: 'relative', minInlineSize: 0 }}>
990
+ {/* The camera fits the kettle into this box, so its inset is the breathing room around the kettle */}
991
+ <Box component="div" ref={safeAreaRef} sx={{ position: 'absolute', inset: '112px 72px 96px' }} />
992
+ <Box
993
+ component="div"
994
+ sx={{ position: 'absolute', insetBlockStart: GUTTER, insetInlineStart: GUTTER, display: 'grid' }}
995
+ >
996
+ <Typography sx={{ fontFamily: KESTREL.display, fontSize: 22, lineHeight: 1, color: KESTREL.charcoal }}>
997
+ Aldermoor
998
+ </Typography>
999
+ </Box>
1000
+ <Box
1001
+ component="div"
1002
+ sx={{ position: 'absolute', insetBlockStart: GUTTER - 8, insetInlineEnd: GUTTER, pointerEvents: 'auto' }}
1003
+ >
1004
+ <FullscreenButton />
1005
+ </Box>
1006
+ <Typography
1007
+ sx={{
1008
+ position: 'absolute',
1009
+ insetBlockEnd: GUTTER,
1010
+ insetInline: 0,
1011
+ textAlign: 'center',
1012
+ fontSize: 12,
1013
+ letterSpacing: '0.08em',
1014
+ color: KESTREL.muted,
1015
+ }}
1016
+ >
1017
+ Drag to turn the kettle
1018
+ </Typography>
1019
+ {/* The built-in snackbars stack upwards from this zero-height root, so it sits where their bottom edge goes */}
1020
+ <Box
1021
+ component="div"
1022
+ sx={{
1023
+ position: 'absolute',
1024
+ insetBlockEnd: GUTTER,
1025
+ insetInlineStart: GUTTER,
1026
+ inlineSize: 340,
1027
+ pointerEvents: 'auto',
1028
+ }}
1029
+ >
1030
+ <LayoutSlots.DesktopSnackbarsRoot />
1031
+ </Box>
1032
+ </Box>
1033
+
1034
+ {!isFullscreen && (
1035
+ <>
1036
+ <Box
1037
+ component="aside"
1038
+ aria-label="Kestrel kettle"
1039
+ sx={{
1040
+ display: 'flex',
1041
+ flexDirection: 'column',
1042
+ overflowY: 'auto',
1043
+ bgcolor: KESTREL.oat,
1044
+ borderInlineStart: `1px solid ${KESTREL.hairline}`,
1045
+ pointerEvents: 'auto',
1046
+ }}
1047
+ >
1048
+ {/* Centred while it fits, scrolling from the top once it does not */}
1049
+ <Box
1050
+ component="div"
1051
+ sx={{ display: 'grid', gap: 3.5, marginBlock: 'auto', paddingInline: 7, paddingBlockStart: 5 }}
1052
+ >
1053
+ <ProductHeading size="large" />
1054
+ <KettleOptions readOnly={accessInfo.viewMode} />
1055
+ {/* Below the choices while the column fits; at the column's bottom edge while it scrolls */}
1056
+ <Box
1057
+ component="div"
1058
+ sx={{
1059
+ position: 'sticky',
1060
+ insetBlockEnd: 0,
1061
+ marginBlockStart: -3.5,
1062
+ paddingBlock: 3,
1063
+ bgcolor: KESTREL.oat,
1064
+ borderBlockStart: `1px solid ${KESTREL.hairline}`,
1065
+ }}
1066
+ >
1067
+ <CartBlock />
1068
+ </Box>
1069
+ </Box>
1070
+ </Box>
1071
+
1072
+ <Box
1073
+ component="footer"
1074
+ sx={{
1075
+ gridColumn: '1 / -1',
1076
+ display: 'flex',
1077
+ alignItems: 'center',
1078
+ justifyContent: 'space-between',
1079
+ gap: 3,
1080
+ paddingInline: `${GUTTER}px`,
1081
+ bgcolor: KESTREL.oat,
1082
+ borderBlockStart: `1px solid ${KESTREL.hairline}`,
1083
+ pointerEvents: 'auto',
1084
+ }}
1085
+ >
1086
+ <LayoutSlots.DesktopFooter />
1087
+ <LayoutSlots.DesktopPoweredBy />
1088
+ </Box>
1089
+ </>
1090
+ )}
1091
+ </Box>
1092
+ )
1093
+ }
1094
+ ```
1095
+
1096
+ ### ./src/\_shared/FullscreenButton.tsx
1097
+
1098
+ ```tsx
1099
+ import { IconButton, Tooltip } from '@mui/material'
1100
+
1101
+ import { FrontendAnalyticsFactory } from '@salsita-ai/sdk/configurator'
1102
+
1103
+ import { phx } from '../../.phoenix/phx.js'
1104
+ import { KESTREL } from './tokens.js'
1105
+
1106
+ const ENTER_ICON = 'M4 9V4h5M15 4h5v5M20 15v5h-5M9 20H4v-5'
1107
+ const EXIT_ICON = 'M9 4v5H4M15 4v5h5M15 20v-5h5M9 20v-5H4'
1108
+
1109
+ // Shows the kettle alone: the layout reads the flag and leaves out everything but the scene while it is set
1110
+ export const FullscreenButton = () => {
1111
+ const isFullscreen = phx.frontend.useIsFullscreenActive()
1112
+ const setFullscreen = phx.frontend.useSetFullscreen()
1113
+ const analytics = phx.frontend.useAnalytics()
1114
+ const label = isFullscreen ? 'Exit fullscreen' : 'Fullscreen'
1115
+
1116
+ // The same event the built-in fullscreen button records, for entering and for leaving
1117
+ const toggle = () => {
1118
+ analytics.push(FrontendAnalyticsFactory.FullScreenModeToggled())
1119
+ setFullscreen(!isFullscreen)
1120
+ }
1121
+
1122
+ return (
1123
+ <Tooltip title={label}>
1124
+ <IconButton
1125
+ aria-label={label}
1126
+ onClick={toggle}
1127
+ sx={{
1128
+ inlineSize: 44,
1129
+ blockSize: 44,
1130
+ color: KESTREL.charcoal,
1131
+ border: `1px solid ${KESTREL.hairline}`,
1132
+ bgcolor: 'rgba(244, 239, 232, 0.8)',
1133
+ '&:hover': { bgcolor: KESTREL.oat },
1134
+ }}
1135
+ >
1136
+ <svg viewBox="0 0 24 24" width={18} height={18} fill="none" stroke="currentColor" strokeWidth={1.6}>
1137
+ <path d={isFullscreen ? EXIT_ICON : ENTER_ICON} />
1138
+ </svg>
1139
+ </IconButton>
1140
+ </Tooltip>
1141
+ )
1142
+ }
1143
+ ```
1144
+
1145
+ ### ./src/\_shared/KettleOptions.tsx
1146
+
1147
+ ```tsx
1148
+ import { Box, Divider } from '@mui/material'
1149
+
1150
+ import { phx } from '../../.phoenix/phx.js'
1151
+ import { SwatchRow } from './SwatchRow.js'
1152
+ import { ThermometerRow } from './ThermometerRow.js'
1153
+ import { KESTREL } from './tokens.js'
1154
+
1155
+ // The swatches' look, keyed by the option values of the spec
1156
+ const FINISH_FILLS = {
1157
+ BrushedSteel: 'linear-gradient(135deg, #f1f2f4 0%, #a9aeb4 55%, #dcdfe2 100%)',
1158
+ MatteBlack: 'linear-gradient(135deg, #4a4744 0%, #1f1d1b 100%)',
1159
+ Copper: 'linear-gradient(135deg, #f0b48a 0%, #b8693d 55%, #8a4a28 100%)',
1160
+ }
1161
+
1162
+ const WOOD_FILLS = {
1163
+ Walnut: 'linear-gradient(135deg, #7a5238 0%, #4a2f1f 100%)',
1164
+ Oak: 'linear-gradient(135deg, #ead2ad 0%, #c49a6c 100%)',
1165
+ }
1166
+
1167
+ interface KettleOptionsProps {
1168
+ readonly readOnly: boolean
1169
+ }
1170
+
1171
+ // The three choices, in the order a buyer makes them. The spec's `attributeSelection` has no label, so the labels
1172
+ // are the layout's own. Once the kettle is in the cart the choices stay as they were added, until "Make another".
1173
+ export const KettleOptions = ({ readOnly }: KettleOptionsProps) => {
1174
+ const isAdded = phx.frontend.useActiveNavigationState() === 'added'
1175
+ const locked = readOnly || isAdded
1176
+
1177
+ return (
1178
+ <Box component="div" sx={{ display: 'grid' }}>
1179
+ <Divider sx={{ borderColor: KESTREL.hairline }} />
1180
+ <SwatchRow label="Body finish" instanceName="bodyFinish" fills={FINISH_FILLS} readOnly={locked} />
1181
+ <Divider sx={{ borderColor: KESTREL.hairline }} />
1182
+ <SwatchRow label="Handle" instanceName="handleWood" fills={WOOD_FILLS} readOnly={locked} />
1183
+ <Divider sx={{ borderColor: KESTREL.hairline }} />
1184
+ <ThermometerRow readOnly={locked} />
1185
+ </Box>
1186
+ )
1187
+ }
1188
+ ```
1189
+
1190
+ ### ./src/\_shared/PhonePage.tsx
1191
+
1192
+ ```tsx
1193
+ import { Box, IconButton, Tooltip, Typography } from '@mui/material'
1194
+
1195
+ import { LayoutSlots } from '@salsita-ai/sdk/configurator'
1196
+ import { notistackSnackbarClasses } from '@salsita-ai/sdk/ui'
1197
+
1198
+ import { phx } from '../../.phoenix/phx.js'
1199
+ import { CartBlock } from './CartBlock.js'
1200
+ import { FullscreenButton } from './FullscreenButton.js'
1201
+ import { KettleOptions } from './KettleOptions.js'
1202
+ import { ProductHeading } from './ProductHeading.js'
1203
+ import { KESTREL } from './tokens.js'
1204
+
1205
+ const CLOSE_ICON = 'M6 6l12 12M18 6 6 18'
1206
+ const GUTTER = 16
1207
+ const SCENE_HEIGHT = '44%'
1208
+
1209
+ // The phone page: the kettle at the top, then one column that scrolls below it, with the price and the button in a
1210
+ // bar that stays at the bottom. In fullscreen only the kettle stays.
1211
+ export const PhonePage = () => {
1212
+ const { containerRef, safeAreaRef } = phx.frontend.useSceneSafeArea()
1213
+ const isFullscreen = phx.frontend.useIsFullscreenActive()
1214
+ const { accessInfo } = phx.frontend.useAccessService()
1215
+ const closeAction = phx.frontend.useCloseAction()
1216
+ const { isExpanded, leave } = phx.frontend.usePreview()
1217
+ // The host's close action when it offers one; otherwise, once the start screen expanded the page, the way back to it
1218
+ const close = closeAction ? () => void closeAction() : isExpanded ? leave : null
1219
+
1220
+ return (
1221
+ <Box
1222
+ component="div"
1223
+ ref={containerRef}
1224
+ sx={{
1225
+ position: 'absolute',
1226
+ inset: 0,
1227
+ display: 'flex',
1228
+ flexDirection: 'column',
1229
+ fontFamily: KESTREL.body,
1230
+ pointerEvents: 'none',
1231
+ }}
1232
+ >
1233
+ <Box
1234
+ component="div"
1235
+ sx={{ position: 'relative', flex: isFullscreen ? '1 1 0' : `0 0 ${SCENE_HEIGHT}`, minBlockSize: 0 }}
1236
+ >
1237
+ {/* The camera fits the kettle into this box: below the top bar, clear of the screen's edges */}
1238
+ <Box
1239
+ component="div"
1240
+ ref={safeAreaRef}
1241
+ sx={{ position: 'absolute', inset: `${GUTTER + 52}px ${GUTTER}px ${GUTTER}px` }}
1242
+ />
1243
+ <Box
1244
+ component="div"
1245
+ sx={{
1246
+ position: 'absolute',
1247
+ insetBlockStart: GUTTER,
1248
+ insetInline: GUTTER,
1249
+ display: 'grid',
1250
+ gridTemplateColumns: '44px 1fr 44px',
1251
+ alignItems: 'center',
1252
+ }}
1253
+ >
1254
+ {close ? (
1255
+ <Tooltip title="Close">
1256
+ <IconButton aria-label="Close" onClick={close} sx={{ color: KESTREL.charcoal, pointerEvents: 'auto' }}>
1257
+ <svg viewBox="0 0 24 24" width={20} height={20} fill="none" stroke="currentColor" strokeWidth={1.6}>
1258
+ <path d={CLOSE_ICON} />
1259
+ </svg>
1260
+ </IconButton>
1261
+ </Tooltip>
1262
+ ) : (
1263
+ <span />
1264
+ )}
1265
+ <Typography sx={{ fontFamily: KESTREL.display, fontSize: 20, textAlign: 'center', color: KESTREL.charcoal }}>
1266
+ Aldermoor
1267
+ </Typography>
1268
+ <Box component="div" sx={{ pointerEvents: 'auto' }}>
1269
+ <FullscreenButton />
1270
+ </Box>
1271
+ </Box>
1272
+ {/* The phone root leaves the snackbars fixed to the viewport; here they drop in below the top bar instead */}
1273
+ <Box
1274
+ component="div"
1275
+ sx={{
1276
+ position: 'absolute',
1277
+ insetBlockStart: GUTTER + 56,
1278
+ insetInline: GUTTER,
1279
+ pointerEvents: 'auto',
1280
+ [`& .${notistackSnackbarClasses.container}`]: {
1281
+ position: 'absolute',
1282
+ inset: '0 0 auto 0',
1283
+ inlineSize: 'auto',
1284
+ transform: 'none',
1285
+ },
1286
+ }}
1287
+ >
1288
+ <LayoutSlots.MobileSnackbarsRoot />
1289
+ </Box>
1290
+ </Box>
1291
+
1292
+ {!isFullscreen && (
1293
+ <Box
1294
+ component="main"
1295
+ sx={{
1296
+ flex: '1 1 0',
1297
+ minBlockSize: 0,
1298
+ overflowY: 'auto',
1299
+ overscrollBehavior: 'contain',
1300
+ bgcolor: KESTREL.oat,
1301
+ borderBlockStart: `1px solid ${KESTREL.hairline}`,
1302
+ pointerEvents: 'auto',
1303
+ }}
1304
+ >
1305
+ <Box component="div" sx={{ display: 'grid', gap: 3, padding: 3, paddingBlockEnd: 4 }}>
1306
+ <ProductHeading size="small" />
1307
+ <KettleOptions readOnly={accessInfo.viewMode} />
1308
+ <Box
1309
+ component="div"
1310
+ sx={{
1311
+ display: 'grid',
1312
+ justifyItems: 'start',
1313
+ gap: 2,
1314
+ paddingBlockStart: 3,
1315
+ borderBlockStart: `1px solid ${KESTREL.hairline}`,
1316
+ }}
1317
+ >
1318
+ <LayoutSlots.MobileFooter />
1319
+ <LayoutSlots.MobilePoweredBy />
1320
+ </Box>
1321
+ </Box>
1322
+ <Box
1323
+ component="div"
1324
+ sx={{
1325
+ position: 'sticky',
1326
+ insetBlockEnd: 0,
1327
+ paddingInline: 3,
1328
+ paddingBlock: 2,
1329
+ bgcolor: KESTREL.oat,
1330
+ borderBlockStart: `1px solid ${KESTREL.hairline}`,
1331
+ }}
1332
+ >
1333
+ <CartBlock />
1334
+ </Box>
1335
+ </Box>
1336
+ )}
1337
+ </Box>
1338
+ )
1339
+ }
1340
+ ```
1341
+
1342
+ ### ./src/\_shared/PhonePoster.tsx
1343
+
1344
+ ```tsx
1345
+ import { Box, Button, Typography } from '@mui/material'
1346
+
1347
+ import { phx } from '../../.phoenix/phx.js'
1348
+ import { KESTREL, LABEL_SX } from './tokens.js'
1349
+
1350
+ // The layout's own start screen, shown on a phone while `usePreview().isPreview` is set (the spec's `preview: auto`).
1351
+ // It frames the kettle in the area above the text with its own safe area; `enter()` opens the page.
1352
+ export const PhonePoster = () => {
1353
+ const { containerRef, safeAreaRef } = phx.frontend.useSceneSafeArea()
1354
+ const { enter } = phx.frontend.usePreview()
1355
+ const price = phx.frontend.useRootEntityPrice()
1356
+
1357
+ return (
1358
+ <Box
1359
+ component="div"
1360
+ ref={containerRef}
1361
+ sx={{
1362
+ position: 'absolute',
1363
+ inset: 0,
1364
+ display: 'flex',
1365
+ flexDirection: 'column',
1366
+ fontFamily: KESTREL.body,
1367
+ pointerEvents: 'none',
1368
+ }}
1369
+ >
1370
+ <Typography
1371
+ sx={{
1372
+ paddingBlockStart: 3,
1373
+ textAlign: 'center',
1374
+ fontFamily: KESTREL.display,
1375
+ fontSize: 20,
1376
+ color: KESTREL.charcoal,
1377
+ }}
1378
+ >
1379
+ Aldermoor
1380
+ </Typography>
1381
+ <Box component="div" ref={safeAreaRef} sx={{ flex: '1 1 0', minBlockSize: 0, marginInline: 3 }} />
1382
+ <Box component="div" sx={{ display: 'grid', gap: 2, padding: 3, paddingBlockEnd: 4, pointerEvents: 'auto' }}>
1383
+ <Typography sx={{ ...LABEL_SX, color: KESTREL.copper }}>The Kestrel pour-over kettle</Typography>
1384
+ <Typography
1385
+ component="h1"
1386
+ sx={{
1387
+ fontFamily: KESTREL.display,
1388
+ fontSize: 48,
1389
+ lineHeight: 1,
1390
+ letterSpacing: '-0.01em',
1391
+ color: KESTREL.charcoal,
1392
+ }}
1393
+ >
1394
+ Make it yours
1395
+ </Typography>
1396
+ <Typography sx={{ fontSize: 15, lineHeight: 1.6, color: KESTREL.muted }}>
1397
+ Three finishes, two woods and a thermometer lid if you want one. As shown, {price}.
1398
+ </Typography>
1399
+ <Button
1400
+ variant="contained"
1401
+ disableElevation
1402
+ onClick={enter}
1403
+ sx={{
1404
+ marginBlockStart: 1,
1405
+ minBlockSize: 52,
1406
+ borderRadius: 999,
1407
+ bgcolor: KESTREL.charcoal,
1408
+ color: KESTREL.oat,
1409
+ fontFamily: KESTREL.body,
1410
+ fontSize: 15,
1411
+ textTransform: 'none',
1412
+ '&:hover': { bgcolor: '#000000' },
1413
+ }}
1414
+ >
1415
+ Start designing
1416
+ </Button>
1417
+ </Box>
1418
+ </Box>
1419
+ )
1420
+ }
1421
+ ```
1422
+
1423
+ ### ./src/\_shared/ProductHeading.tsx
1424
+
1425
+ ```tsx
1426
+ import { Box, Typography } from '@mui/material'
1427
+
1428
+ import { detailComponent } from '@salsita-ai/sdk/domain'
1429
+ import { LocalizableMessage } from '@salsita-ai/sdk/react'
1430
+
1431
+ import { phx } from '../../.phoenix/phx.js'
1432
+ import { KESTREL, LABEL_SX } from './tokens.js'
1433
+
1434
+ interface ProductHeadingProps {
1435
+ readonly size: 'large' | 'small'
1436
+ }
1437
+
1438
+ // The overline, the name and the story from the spec's `detail` component. Its texts are `Localizable`:
1439
+ // `useLocalizable` resolves one into a string and `LocalizableMessage` renders one in place.
1440
+ export const ProductHeading = ({ size }: ProductHeadingProps) => {
1441
+ const detail = phx.frontend.useFirstRootComponent(detailComponent)
1442
+ const title = phx.frontend.useLocalizable(detail?.state.title)
1443
+ const subtitle = phx.frontend.useLocalizable(detail?.state.subtitle)
1444
+
1445
+ return (
1446
+ <Box component="header" sx={{ display: 'grid', gap: size === 'large' ? 2 : 1.5 }}>
1447
+ <Typography sx={{ ...LABEL_SX, color: KESTREL.copper }}>Aldermoor Coffee</Typography>
1448
+ <Box component="div" sx={{ display: 'grid', gap: 0.75 }}>
1449
+ <Typography
1450
+ component="h1"
1451
+ sx={{
1452
+ fontFamily: KESTREL.display,
1453
+ fontSize: size === 'large' ? 60 : 40,
1454
+ lineHeight: 1,
1455
+ letterSpacing: '-0.01em',
1456
+ color: KESTREL.charcoal,
1457
+ }}
1458
+ >
1459
+ {title}
1460
+ </Typography>
1461
+ <Typography sx={{ fontFamily: KESTREL.body, fontSize: 15, color: KESTREL.muted }}>{subtitle}</Typography>
1462
+ </Box>
1463
+ <Typography sx={{ fontFamily: KESTREL.body, fontSize: 15, lineHeight: 1.65, color: KESTREL.charcoal }}>
1464
+ <LocalizableMessage>{detail?.state.description}</LocalizableMessage>
1465
+ </Typography>
1466
+ </Box>
1467
+ )
1468
+ }
1469
+ ```
1470
+
1471
+ ### ./src/\_shared/SwatchRow.tsx
1472
+
1473
+ ```tsx
1474
+ import { Box, ButtonBase, Typography } from '@mui/material'
1475
+ import type { KeyboardEvent } from 'react'
1476
+
1477
+ import { phx } from '../../.phoenix/phx.js'
1478
+ import { KESTREL, LABEL_SX } from './tokens.js'
1479
+
1480
+ // Arrow keys move the selection between the swatches, as in a native radio group
1481
+ const ARROW_STEPS: Readonly<Record<string, number | undefined>> = {
1482
+ ArrowRight: 1,
1483
+ ArrowDown: 1,
1484
+ ArrowLeft: -1,
1485
+ ArrowUp: -1,
1486
+ }
1487
+
1488
+ interface SwatchRowProps {
1489
+ readonly label: string
1490
+ readonly instanceName: string
1491
+ // How each option looks, keyed by the spec's option values: a CSS background
1492
+ readonly fills: Readonly<Record<string, string>>
1493
+ readonly readOnly: boolean
1494
+ }
1495
+
1496
+ // One `attributeSelection` of the spec as a row of round swatches, with the chosen option's name and description.
1497
+ // An option the spec's invariants rule out is `disabled`: it is drawn faded and its hint says why, but it can still be
1498
+ // clicked. Its `onSelect` then makes the change, which the invariant rejects, and the built-in snackbar repeats the
1499
+ // reason. The arrow keys skip it.
1500
+ export const SwatchRow = ({ label, instanceName, fills, readOnly }: SwatchRowProps) => {
1501
+ const resolve = phx.frontend.useResolveLocalizable()
1502
+ const kettleId = phx.frontend.useRootEntityId()
1503
+ const { value, options } = phx.frontend.useAttributeSelection(kettleId, instanceName)
1504
+ const selected = options.find(option => option.value === value)
1505
+ const hint = options.find(option => option.disabled && option.hint)?.hint
1506
+
1507
+ const handleKeyDown = (event: KeyboardEvent<HTMLElement>, index: number) => {
1508
+ const step = ARROW_STEPS[event.key]
1509
+
1510
+ if (step === undefined) {
1511
+ return
1512
+ }
1513
+
1514
+ event.preventDefault()
1515
+ // The next enabled option in the arrow's direction, wrapping around
1516
+ const count = options.length
1517
+ const next = Array.from(
1518
+ { length: count - 1 },
1519
+ (_, offset) => (((index + step * (offset + 1)) % count) + count) % count
1520
+ ).find(candidate => !options[candidate]?.disabled)
1521
+
1522
+ if (next === undefined) {
1523
+ return
1524
+ }
1525
+
1526
+ options[next]?.onSelect()
1527
+ event.currentTarget.parentElement?.querySelectorAll<HTMLElement>('[role="radio"]')[next]?.focus()
1528
+ }
1529
+
1530
+ return (
1531
+ <Box component="section" sx={{ display: 'grid', gap: 1.5, paddingBlock: 2 }}>
1532
+ <Box component="div" sx={{ display: 'flex', alignItems: 'baseline', justifyContent: 'space-between', gap: 2 }}>
1533
+ <Typography component="h3" sx={LABEL_SX}>
1534
+ {label}
1535
+ </Typography>
1536
+ <Typography sx={{ fontFamily: KESTREL.display, fontSize: 18, color: KESTREL.charcoal }}>
1537
+ {resolve(selected?.title)}
1538
+ </Typography>
1539
+ </Box>
1540
+
1541
+ <Box component="div" role="radiogroup" aria-label={label} sx={{ display: 'flex', gap: 1.5 }}>
1542
+ {options.map((option, index) => {
1543
+ const isSelected = option.value === value
1544
+ const title = resolve(option.title)
1545
+
1546
+ return (
1547
+ <ButtonBase
1548
+ key={String(option.value)}
1549
+ role="radio"
1550
+ aria-checked={isSelected}
1551
+ aria-label={title}
1552
+ title={option.hint ?? title}
1553
+ aria-disabled={option.disabled}
1554
+ tabIndex={isSelected ? 0 : -1}
1555
+ disabled={readOnly}
1556
+ onClick={option.onSelect}
1557
+ onKeyDown={event => handleKeyDown(event, index)}
1558
+ sx={{
1559
+ inlineSize: 40,
1560
+ blockSize: 40,
1561
+ borderRadius: '50%',
1562
+ background: fills[String(option.value)],
1563
+ // A ring of the page's colour between the swatch and the outline of the chosen one
1564
+ boxShadow: isSelected
1565
+ ? `0 0 0 3px ${KESTREL.oat}, 0 0 0 4px ${KESTREL.charcoal}`
1566
+ : `inset 0 0 0 1px ${KESTREL.hairline}`,
1567
+ transition: 'box-shadow 160ms, transform 160ms',
1568
+ opacity: option.disabled ? 0.3 : 1,
1569
+ '&:hover': { transform: isSelected || option.disabled ? 'none' : 'scale(1.06)' },
1570
+ '&.Mui-focusVisible': { outline: `2px solid ${KESTREL.copper}`, outlineOffset: 6 },
1571
+ // A viewer sees the chosen swatch only as chosen; the others fade
1572
+ '&.Mui-disabled': { opacity: isSelected ? 1 : 0.3 },
1573
+ }}
1574
+ />
1575
+ )
1576
+ })}
1577
+ </Box>
1578
+
1579
+ <Typography sx={{ fontSize: 13, color: KESTREL.muted }}>
1580
+ {hint && !readOnly ? hint : resolve(selected?.description)}
1581
+ </Typography>
1582
+ </Box>
1583
+ )
1584
+ }
1585
+ ```
1586
+
1587
+ ### ./src/\_shared/ThermometerRow.tsx
1588
+
1589
+ ```tsx
1590
+ import { Box, Switch, Typography } from '@mui/material'
1591
+
1592
+ import { phx } from '../../.phoenix/phx.js'
1593
+ import { KESTREL, LABEL_SX } from './tokens.js'
1594
+
1595
+ interface ThermometerRowProps {
1596
+ readonly readOnly: boolean
1597
+ }
1598
+
1599
+ // The spec's `attributeSwitch` as a labelled switch: on, the lid carries a dial thermometer; off, a plain wooden knob
1600
+ export const ThermometerRow = ({ readOnly }: ThermometerRowProps) => {
1601
+ const kettleId = phx.frontend.useRootEntityId()
1602
+ const thermometer = phx.frontend.useAttributeSwitch(kettleId, 'thermometer')
1603
+ const isOn = thermometer.state.value
1604
+
1605
+ return (
1606
+ <Box component="section" sx={{ display: 'grid', gap: 0.5, paddingBlock: 2 }}>
1607
+ <Box component="div" sx={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 2 }}>
1608
+ <Typography component="h3" id="kestrel-thermometer-label" sx={LABEL_SX}>
1609
+ Thermometer lid
1610
+ </Typography>
1611
+ <Switch
1612
+ checked={isOn}
1613
+ disabled={readOnly || thermometer.disabled}
1614
+ onChange={thermometer.onChange}
1615
+ inputProps={{ 'aria-labelledby': 'kestrel-thermometer-label' }}
1616
+ sx={{
1617
+ '& .MuiSwitch-switchBase.Mui-checked': { color: KESTREL.oat },
1618
+ '& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track': { bgcolor: KESTREL.copper, opacity: 1 },
1619
+ '& .MuiSwitch-track': { bgcolor: KESTREL.hairline, opacity: 1 },
1620
+ }}
1621
+ />
1622
+ </Box>
1623
+ <Typography sx={{ fontSize: 13, color: KESTREL.muted }}>
1624
+ {isOn ? 'A dial in the lid shows when the water is ready to pour.' : 'A plain lid with a wooden knob.'}
1625
+ </Typography>
1626
+ </Box>
1627
+ )
1628
+ }
1629
+ ```
1630
+
1631
+ ### ./src/\_shared/tokens.ts
1632
+
1633
+ ```ts
1634
+ // The brand's palette and type. Playfair Display and Circular Std are the fonts the brand ships; the stacks fall back
1635
+ // to system fonts where they are not loaded.
1636
+ export const KESTREL = {
1637
+ oat: '#f4efe8',
1638
+ charcoal: '#1f1d1b',
1639
+ copper: '#b8693d',
1640
+ sage: '#9daa94',
1641
+ muted: 'rgba(31, 29, 27, 0.62)',
1642
+ hairline: 'rgba(31, 29, 27, 0.12)',
1643
+ display: "'PlayfairDisplay-Regular', 'Playfair Display', Georgia, serif",
1644
+ body: "'Circular-Std-Book', 'Helvetica Neue', Arial, sans-serif",
1645
+ } as const
1646
+
1647
+ // Small capitals with wide tracking, for the overline and the option labels
1648
+ export const LABEL_SX = {
1649
+ fontFamily: KESTREL.body,
1650
+ fontSize: 11,
1651
+ letterSpacing: '0.18em',
1652
+ textTransform: 'uppercase',
1653
+ color: KESTREL.muted,
1654
+ } as const
1655
+ ```
1656
+
1657
+ ### ./src/elements/ConfiguratorLayout.tsx
1658
+
1659
+ ```tsx
1660
+ import { Box } from '@mui/material'
1661
+
1662
+ import { LayoutSlots } from '@salsita-ai/sdk/configurator'
1663
+
1664
+ import { phx } from '../../.phoenix/phx.js'
1665
+ import { DesktopPage } from '../_shared/DesktopPage.js'
1666
+ import { PhonePage } from '../_shared/PhonePage.js'
1667
+ import { PhonePoster } from '../_shared/PhonePoster.js'
1668
+ import { KESTREL } from '../_shared/tokens.js'
1669
+
1670
+ // One page, no steps or tabs. The canvas and the services stay mounted the whole time; what lies over the canvas is
1671
+ // the phone's start screen, the phone page or the desktop page. Each calls `useSceneSafeArea` itself, so only the one
1672
+ // on screen tells the camera where the kettle goes.
1673
+ const ConfiguratorLayout = () => {
1674
+ // `null` until the container has been measured; only the scene shows until then
1675
+ const viewports = phx.frontend.useActiveViewports()
1676
+ const { isPreview } = phx.frontend.usePreview()
1677
+ const isDesktop = viewports?.includes('desktop') ?? false
1678
+
1679
+ return (
1680
+ <Box component="div" sx={{ position: 'absolute', inset: 0, overflow: 'clip', bgcolor: KESTREL.oat }}>
1681
+ <LayoutSlots.Services />
1682
+ <LayoutSlots.SharedCanvas />
1683
+ {viewports !== null && (isPreview ? <PhonePoster /> : isDesktop ? <DesktopPage /> : <PhonePage />)}
1684
+ </Box>
1685
+ )
1686
+ }
1687
+
1688
+ export default phx.frontend.createCustomPhoenixLayoutElement('ConfiguratorLayout', ConfiguratorLayout)
1689
+ ```
1690
+
1691
+ ### ./src/elements/KettleStudio.tsx
1692
+
1693
+ ```tsx
1694
+ import { ContactShadows, Environment, Lightformer } from '@react-three/drei'
1695
+
1696
+ import { phx } from '../../.phoenix/phx.js'
1697
+ import { KESTREL } from '../_shared/tokens.js'
1698
+
1699
+ // The stage named by the spec's `canvasCustomEnvironment`: a backdrop, a soft shadow under the kettle and a studio of
1700
+ // light panels. The panels exist only in the reflections, so the metal finishes have something to mirror and no image
1701
+ // has to be downloaded. The scene is in millimetres.
1702
+ export default phx.frontend.createCustomPhoenixLayoutElement('KettleStudio', () => {
1703
+ return (
1704
+ <>
1705
+ {/* The page's oat background, so the scene and the layout read as one surface */}
1706
+ <color attach="background" args={[KESTREL.oat]} />
1707
+ <ambientLight intensity={0.35} />
1708
+ <directionalLight position={[400, 900, 600]} intensity={1.1} />
1709
+
1710
+ <Environment resolution={256} frames={1}>
1711
+ <color attach="background" args={['#77706a']} />
1712
+ {/* A softbox above, tall strips at the sides for the long highlights, a warm fill behind, a dim one in front */}
1713
+ <Lightformer form="rect" intensity={2.4} position={[0, 6, 0]} rotation-x={Math.PI / 2} scale={[10, 6, 1]} />
1714
+ <Lightformer form="rect" intensity={3} position={[-6, 1, 2]} rotation-y={Math.PI / 2} scale={[1.2, 8, 1]} />
1715
+ <Lightformer form="rect" intensity={1.6} position={[6, 1, 3]} rotation-y={-Math.PI / 2} scale={[1.2, 8, 1]} />
1716
+ <Lightformer form="rect" color="#f3d9c2" intensity={1} position={[0, 1, -8]} scale={[12, 4, 1]} />
1717
+ <Lightformer form="rect" intensity={0.8} position={[0, 0, 8]} rotation-y={Math.PI} scale={[10, 3, 1]} />
1718
+ </Environment>
1719
+
1720
+ <ContactShadows position={[0, -1, 0]} scale={520} far={60} blur={2.2} opacity={0.7} resolution={512} />
1721
+ </>
1722
+ )
1723
+ })
1724
+ ```
1725
+
1726
+ ### ./src/elements/LayoutFooter.tsx
1727
+
1728
+ ```tsx
1729
+ import { Box } from '@mui/material'
1730
+
1731
+ import { phx } from '../../.phoenix/phx.js'
1732
+ import { KESTREL } from '../_shared/tokens.js'
1733
+
1734
+ const PROMISES = ['Free delivery over $75', 'Two-year warranty', '30-day returns']
1735
+
1736
+ // The shop's promises. `createLayoutFooter` registers it as the `LayoutFooter` element, which the layout shows where it
1737
+ // mounts `LayoutSlots.DesktopFooter` or `LayoutSlots.MobileFooter`.
1738
+ const LayoutFooter = () => {
1739
+ return (
1740
+ <Box
1741
+ component="ul"
1742
+ sx={{
1743
+ display: 'flex',
1744
+ flexWrap: 'wrap',
1745
+ columnGap: 3,
1746
+ rowGap: 0.5,
1747
+ margin: 0,
1748
+ padding: 0,
1749
+ listStyle: 'none',
1750
+ fontSize: 12,
1751
+ letterSpacing: '0.04em',
1752
+ color: KESTREL.muted,
1753
+ }}
1754
+ >
1755
+ {PROMISES.map(promise => (
1756
+ <Box
1757
+ component="li"
1758
+ key={promise}
1759
+ sx={{ display: 'flex', alignItems: 'center', gap: 1, '&::before': { content: '"·"', color: KESTREL.sage } }}
1760
+ >
1761
+ {promise}
1762
+ </Box>
1763
+ ))}
1764
+ </Box>
1765
+ )
1766
+ }
1767
+
1768
+ export default phx.frontend.createLayoutFooter(LayoutFooter)
1769
+ ```
1770
+
1771
+ ### ./src/expressions/kettle.ts
1772
+
1773
+ ```ts
1774
+ import { phx } from '../../.phoenix/phx.js'
1775
+
1776
+ const BASE_PRICE = 145
1777
+ const FINISH_SURCHARGE = { BrushedSteel: 0, MatteBlack: 10, Copper: 45 }
1778
+ const WOOD_SURCHARGE = { Walnut: 10, Oak: 0 }
1779
+ const THERMOMETER_SURCHARGE = 20
1780
+
1781
+ // How each finish renders: the spec's material override of the `Body` material reads these
1782
+ const FINISHES = {
1783
+ BrushedSteel: { color: '#c9ccd0', metalness: 1, roughness: 0.3, clearcoat: 0 },
1784
+ MatteBlack: { color: '#2b2927', metalness: 0.1, roughness: 0.55, clearcoat: 0 },
1785
+ Copper: { color: '#d08a5c', metalness: 1, roughness: 0.2, clearcoat: 0.6 },
1786
+ }
1787
+
1788
+ const WOODS = { Walnut: '#4a2f1f', Oak: '#c49a6c' }
1789
+
1790
+ export default phx.domain.implementCustomExpressions({
1791
+ Kettle: {
1792
+ $price: s => {
1793
+ return (
1794
+ BASE_PRICE +
1795
+ FINISH_SURCHARGE[s.bodyFinish] +
1796
+ WOOD_SURCHARGE[s.handleWood] +
1797
+ (s.thermometer ? THERMOMETER_SURCHARGE : 0)
1798
+ )
1799
+ },
1800
+ $plainKnob: s => {
1801
+ return !s.thermometer
1802
+ },
1803
+ $bodyColor: s => {
1804
+ return FINISHES[s.bodyFinish].color
1805
+ },
1806
+ $bodyMetalness: s => {
1807
+ return FINISHES[s.bodyFinish].metalness
1808
+ },
1809
+ $bodyRoughness: s => {
1810
+ return FINISHES[s.bodyFinish].roughness
1811
+ },
1812
+ $bodyClearcoat: s => {
1813
+ return FINISHES[s.bodyFinish].clearcoat
1814
+ },
1815
+ $handleColor: s => {
1816
+ return WOODS[s.handleWood]
1817
+ },
1818
+ },
1819
+ })
1820
+ ```
1821
+
1822
+ ### ./src/handlers/add-to-cart.ts
1823
+
1824
+ ```ts
1825
+ import { useCallback } from 'react'
1826
+
1827
+ import { phx } from '../../.phoenix/phx.js'
1828
+
1829
+ // Stands in for the shop's cart: adding takes a moment, then the page shows the confirmation
1830
+ export default phx.frontend.createPhoenixHandler('addToCart', () => {
1831
+ const navigate = phx.frontend.useNavigate()
1832
+
1833
+ return {
1834
+ handler: useCallback(async () => {
1835
+ await new Promise(resolve => setTimeout(resolve, 1200))
1836
+ navigate('added')
1837
+ }, [navigate]),
1838
+ }
1839
+ })
1840
+ ```
1841
+
1842
+ ### ./src/invariants/kettle.ts
1843
+
1844
+ ```ts
1845
+ import { phx } from '../../.phoenix/phx.js'
1846
+
1847
+ // The copper body is sold only with the walnut handle. The spec marks the violation `fixable`, so a change that breaks
1848
+ // it is rejected and the built-in snackbar shows the spec's message.
1849
+ export default phx.domain.implementCustomInvariants({
1850
+ Kettle: {
1851
+ copperNeedsWalnut: s => {
1852
+ return s.bodyFinish !== 'Copper' || s.handleWood === 'Walnut'
1853
+ },
1854
+ },
1855
+ })
1856
+ ```
1857
+
1858
+ </details>