@salsita-ai/sdk 0.50.0-develop.ea458ea381 → 0.50.0-develop.ecda3c6152

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 (2529) hide show
  1. package/README.md +33 -16
  2. package/dist/admin/AdminShell.js +1 -1
  3. package/dist/admin/create-admin-pages-from-spec.d.ts +1 -1
  4. package/dist/admin/default-admin-elements.d.ts +9 -0
  5. package/dist/admin/default-admin-elements.js +1 -0
  6. package/dist/admin/default-elements/built-in-entity-element.d.ts +10 -0
  7. package/dist/admin/default-elements/built-in-entity-element.js +1 -0
  8. package/dist/admin/default-elements/built-in-layout-element.d.ts +10 -0
  9. package/dist/admin/default-elements/built-in-layout-element.js +1 -0
  10. package/dist/admin/default-elements/index.d.ts +2 -0
  11. package/dist/admin/default-elements/index.js +1 -0
  12. package/dist/admin/index.d.ts +1 -0
  13. package/dist/admin/index.js +1 -1
  14. package/dist/admin/legacy-admin/Application.js +1 -1
  15. package/dist/application/index.d.ts +1 -0
  16. package/dist/application/index.js +1 -1
  17. package/dist/application/mount-application.d.ts +1 -1
  18. package/dist/application/mount-application.js +1 -1
  19. package/dist/application/mount-configurator.d.ts +19 -0
  20. package/dist/application/mount-configurator.js +1 -0
  21. package/dist/application/mounted-application-runtime.d.ts +4 -0
  22. package/dist/application/mounted-application-runtime.js +1 -0
  23. package/dist/application/register-web-component.d.ts +2 -0
  24. package/dist/application/register-web-component.js +1 -0
  25. package/dist/application-spec/caching/content-diff.js +1 -1
  26. package/dist/application-spec/core/application-file.d.ts +0 -2
  27. package/dist/application-spec/core/application-file.js +1 -1
  28. package/dist/application-spec/core/enhanced-json-value.d.ts +2 -99
  29. package/dist/application-spec/core/enhanced-json-value.js +1 -1
  30. package/dist/application-spec/core/index.d.ts +1 -1
  31. package/dist/application-spec/core/index.js +1 -1
  32. package/dist/application-spec/core/json-schema.d.ts +2 -52
  33. package/dist/application-spec/core/json-value.d.ts +1 -1
  34. package/dist/application-spec/core/markers/index.d.ts +1 -1
  35. package/dist/application-spec/core/markers/index.js +1 -1
  36. package/dist/application-spec/core/markers/msg-marker.d.ts +2 -28
  37. package/dist/application-spec/core/markers/msg-marker.js +1 -1
  38. package/dist/application-spec/core/markers/raw-eval-write-marker.d.ts +1 -1
  39. package/dist/application-spec/core/markers/raw-eval-write-marker.js +1 -1
  40. package/dist/application-spec/core/markers/raw-read-write-marker.js +1 -1
  41. package/dist/application-spec/enhanced-json/eval-to-constant.d.ts +14 -0
  42. package/dist/application-spec/enhanced-json/index.d.ts +4 -0
  43. package/dist/application-spec/enhanced-json/index.js +1 -0
  44. package/dist/application-spec/enhanced-json/is-enhanced-json-array.d.ts +2 -0
  45. package/dist/application-spec/enhanced-json/is-enhanced-json-array.js +1 -0
  46. package/dist/application-spec/enhanced-json/resolve-enhanced-json-value.d.ts +18 -0
  47. package/dist/application-spec/enhanced-json/resolve-enhanced-json-value.js +1 -0
  48. package/dist/application-spec/enhanced-json/schema-from-value.d.ts +24 -0
  49. package/dist/application-spec/enhanced-json/schema-from-value.js +1 -0
  50. package/dist/application-spec/enhanced-json/stringify-enhanced-json-value.d.ts +14 -0
  51. package/dist/application-spec/enhanced-json/stringify-enhanced-json-value.js +1 -0
  52. package/dist/application-spec/enhanced-json/validate-enhanced-json-value-caps.d.ts +12 -0
  53. package/dist/application-spec/enhanced-json/validate-enhanced-json-value-caps.js +1 -0
  54. package/dist/application-spec/enhanced-json/validate-no-legacy-code-ref.d.ts +13 -0
  55. package/dist/application-spec/enhanced-json/validate-no-legacy-code-ref.js +1 -0
  56. package/dist/application-spec/errors/diagnostic-codes.d.ts +31 -1
  57. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  58. package/dist/application-spec/errors/diagnostic-messages.d.ts +42 -2
  59. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  60. package/dist/application-spec/generate-application/code/common/code-imports.js +1 -1
  61. package/dist/application-spec/generate-application/code/common/env-reader.js +2 -2
  62. package/dist/application-spec/generate-application/code/common/index.d.ts +2 -0
  63. package/dist/application-spec/generate-application/code/common/index.js +1 -1
  64. package/dist/application-spec/generate-application/code/common/project-module-list.d.ts +8 -0
  65. package/dist/application-spec/generate-application/code/common/project-module-list.js +3 -0
  66. package/dist/application-spec/generate-application/code/common/single-quoted-string.d.ts +6 -0
  67. package/dist/application-spec/generate-application/code/common/single-quoted-string.js +1 -0
  68. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  69. package/dist/application-spec/generate-application/code/generate-application-code.d.ts +3 -2
  70. package/dist/application-spec/generate-application/code/generate-application-code.js +1 -1
  71. package/dist/application-spec/generate-application/code/project-scaffolding.d.ts +22 -14
  72. package/dist/application-spec/generate-application/code/project-scaffolding.js +2 -2
  73. package/dist/application-spec/generate-application/code/standalone-app-files.d.ts +2 -2
  74. package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
  75. package/dist/application-spec/generate-application/code/story-files.js +1 -1
  76. package/dist/application-spec/generate-application/code/templates/admin-config.js +3 -0
  77. package/dist/application-spec/generate-application/code/templates/admin-domain-code.d.ts +1 -2
  78. package/dist/application-spec/generate-application/code/templates/admin-domain-code.js +6 -14
  79. package/dist/application-spec/generate-application/code/templates/admin-frontend-code.d.ts +1 -2
  80. package/dist/application-spec/generate-application/code/templates/admin-frontend-code.js +4 -4
  81. package/dist/application-spec/generate-application/code/templates/application-types.js +6 -6
  82. package/dist/application-spec/generate-application/code/templates/common/doc-comment.d.ts +2 -0
  83. package/dist/application-spec/generate-application/code/templates/common/doc-comment.js +1 -0
  84. package/dist/application-spec/generate-application/code/templates/common/format-property-key.d.ts +7 -0
  85. package/dist/application-spec/generate-application/code/templates/common/format-property-key.js +1 -0
  86. package/dist/application-spec/generate-application/code/templates/common/schema-to-type-string.js +3 -3
  87. package/dist/application-spec/generate-application/code/templates/configurator-config.js +6 -4
  88. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.d.ts +1 -2
  89. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.js +7 -16
  90. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.d.ts +1 -2
  91. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.js +7 -9
  92. package/dist/application-spec/generate-application/code/templates/configurator-globals.d.ts +2 -1
  93. package/dist/application-spec/generate-application/code/templates/configurator-globals.js +19 -6
  94. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +35 -0
  95. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +5 -0
  96. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.d.ts +1 -0
  97. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.js +1 -0
  98. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-assistant.d.ts +2 -2
  99. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-assistant.js +1 -1
  100. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.d.ts +1 -1
  101. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.js +7 -7
  102. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.d.ts +4 -2
  103. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.js +1 -1
  104. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +72 -76
  105. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.d.ts +9 -1
  106. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.js +1 -1
  107. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +3 -0
  108. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-presets.js +1 -1
  109. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-relation-expressions.js +1 -1
  110. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.d.ts +6 -8
  111. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.js +21 -21
  112. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.d.ts +1 -1
  113. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.js +2 -2
  114. package/dist/application-spec/generate-application/code/templates/domain-spec/index.d.ts +3 -2
  115. package/dist/application-spec/generate-application/code/templates/domain-spec/index.js +1 -1
  116. package/dist/application-spec/generate-application/code/templates/domain-spec.js +12 -12
  117. package/dist/application-spec/generate-application/code/templates/domain.js +5 -5
  118. package/dist/application-spec/generate-application/code/templates/eslint-config.d.ts +5 -0
  119. package/dist/application-spec/generate-application/code/templates/eslint-config.js +4 -5
  120. package/dist/application-spec/generate-application/code/templates/frontend-config.js +3 -5
  121. package/dist/application-spec/generate-application/code/templates/gitignore.js +0 -3
  122. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +7 -7
  123. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +12 -0
  124. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -0
  125. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.d.ts +43 -0
  126. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +33 -0
  127. package/dist/application-spec/generate-application/code/templates/global-definition/index.d.ts +2 -0
  128. package/dist/application-spec/generate-application/code/templates/global-definition/index.js +1 -1
  129. package/dist/application-spec/generate-application/code/templates/globals.js +24 -43
  130. package/dist/application-spec/generate-application/code/templates/index.d.ts +5 -15
  131. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  132. package/dist/application-spec/generate-application/code/templates/lingui-rc.d.ts +5 -0
  133. package/dist/application-spec/generate-application/code/templates/lingui-rc.js +4 -4
  134. package/dist/application-spec/generate-application/code/templates/prettier-config.d.ts +5 -0
  135. package/dist/application-spec/generate-application/code/templates/prettier-config.js +4 -5
  136. package/dist/application-spec/generate-application/code/templates/root-tsconfig.d.ts +6 -0
  137. package/dist/application-spec/generate-application/code/templates/root-tsconfig.js +2 -0
  138. package/dist/application-spec/generate-application/code/templates/skills/phoenix-cli-skill.js +1 -1
  139. package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.js +95 -41
  140. package/dist/application-spec/generate-application/code/templates/skills/phoenix-feedback-skill.js +40 -17
  141. package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.js +10 -4
  142. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.d.ts +10 -0
  143. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +7 -0
  144. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.js +1 -1
  145. package/dist/application-spec/generate-application/code/templates/skills/phoenix-variants-skill.d.ts +1 -0
  146. package/dist/application-spec/generate-application/code/templates/skills/phoenix-variants-skill.js +6 -0
  147. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +67 -16
  148. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +19 -7
  149. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.d.ts +58 -0
  150. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.js +1 -0
  151. package/dist/application-spec/generate-application/code/templates/spec-code/index.d.ts +2 -0
  152. package/dist/application-spec/generate-application/code/templates/spec-code/index.js +1 -0
  153. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.d.ts +18 -0
  154. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.js +41 -0
  155. package/dist/application-spec/generate-application/code/templates/spec-messages/index.d.ts +1 -0
  156. package/dist/application-spec/generate-application/code/templates/spec-messages/index.js +1 -0
  157. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.d.ts +20 -0
  158. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.js +6 -0
  159. package/dist/application-spec/generate-application/code/templates/story/phx-module.d.ts +8 -2
  160. package/dist/application-spec/generate-application/code/templates/story/phx-module.js +15 -3
  161. package/dist/application-spec/generate-application/code/templates/story/wrapper.d.ts +3 -0
  162. package/dist/application-spec/generate-application/code/templates/story/wrapper.js +4 -5
  163. package/dist/application-spec/generate-application/code/templates/tsconfig.d.ts +5 -0
  164. package/dist/application-spec/generate-application/code/templates/tsconfig.js +1 -1
  165. package/dist/application-spec/generate-application/code/templates/webhook-builders.js +9 -4
  166. package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +6 -1
  167. package/dist/application-spec/generate-application/code/templates/webhook-index.js +10 -1
  168. package/dist/application-spec/generate-application/code/templates/webhooks-config.js +2 -3
  169. package/dist/application-spec/generate-application/implementations/phx-application-types.d.ts +25 -0
  170. package/dist/application-spec/generate-application/implementations/phx-application-types.js +1 -0
  171. package/dist/application-spec/generate-application/implementations/phx-domain.d.ts +36 -0
  172. package/dist/application-spec/generate-application/implementations/phx-domain.js +1 -0
  173. package/dist/application-spec/generate-application/implementations/phx-model.d.ts +24 -0
  174. package/dist/application-spec/generate-application/implementations/phx-model.js +1 -0
  175. package/dist/application-spec/generate-application/implementations/phx.d.ts +22 -0
  176. package/dist/application-spec/generate-application/implementations/phx.js +1 -0
  177. package/dist/application-spec/generate-application/index.d.ts +4 -0
  178. package/dist/application-spec/generate-application/index.js +1 -1
  179. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.d.ts +6 -5
  180. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.js +1 -1
  181. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.d.ts +12 -4
  182. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.js +1 -1
  183. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.d.ts +16 -0
  184. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.js +1 -0
  185. package/dist/application-spec/generate-application/runtime/admin-runtime/states-runtime.d.ts +2 -2
  186. package/dist/application-spec/generate-application/runtime/application-runtime.d.ts +35 -10
  187. package/dist/application-spec/generate-application/runtime/application-runtime.js +1 -1
  188. package/dist/application-spec/generate-application/runtime/application-spec-slice.d.ts +71 -0
  189. package/dist/application-spec/generate-application/runtime/application-spec-slice.js +1 -0
  190. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.d.ts +7 -6
  191. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.js +1 -1
  192. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.d.ts +12 -7
  193. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.js +1 -1
  194. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.d.ts +16 -0
  195. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.js +1 -0
  196. package/dist/application-spec/generate-application/runtime/configurator-runtime/states-runtime.d.ts +2 -2
  197. package/dist/application-spec/generate-application/runtime/create-application.d.ts +57 -0
  198. package/dist/application-spec/generate-application/runtime/create-application.js +1 -0
  199. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.d.ts +42 -0
  200. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.js +1 -0
  201. package/dist/application-spec/generate-application/runtime/factory-data/index.d.ts +3 -0
  202. package/dist/application-spec/generate-application/runtime/factory-data/index.js +1 -0
  203. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.d.ts +13 -0
  204. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.js +1 -0
  205. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.d.ts +15 -0
  206. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.js +1 -0
  207. package/dist/application-spec/generate-application/runtime/generate-runtime-instance.d.ts +1 -1
  208. package/dist/application-spec/generate-application/runtime/generate-runtime-instance.js +1 -1
  209. package/dist/application-spec/generate-application/runtime/index.d.ts +8 -0
  210. package/dist/application-spec/generate-application/runtime/index.js +1 -0
  211. package/dist/application-spec/generate-application/runtime/migrations/index.d.ts +1 -0
  212. package/dist/application-spec/generate-application/runtime/migrations/index.js +1 -0
  213. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.d.ts +53 -0
  214. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.js +1 -0
  215. package/dist/application-spec/generate-application/runtime/sections/actions-runtime.d.ts +1 -2
  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 +3 -2
  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 +6 -3
  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 +14 -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 +10 -7
  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/preset-runtime.d.ts +2 -3
  230. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.d.ts +4 -2
  231. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.js +1 -1
  232. package/dist/application-spec/generate-application/runtime/sections/theme-runtime.d.ts +2 -2
  233. package/dist/application-spec/generate-application/runtime/sections/transformers-runtime.d.ts +4 -6
  234. package/dist/application-spec/generate-application/runtime/spec-code/index.d.ts +2 -0
  235. package/dist/application-spec/generate-application/runtime/spec-code/index.js +1 -0
  236. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.d.ts +18 -0
  237. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.js +1 -0
  238. package/dist/application-spec/generate-application/runtime/spec-code/spec-code-module.d.ts +17 -0
  239. package/dist/application-spec/generate-application/runtime/spec-runtime.d.ts +21 -0
  240. package/dist/application-spec/generate-application/runtime/spec-runtime.js +1 -0
  241. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.d.ts +9 -0
  242. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.js +1 -0
  243. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.d.ts +8 -0
  244. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.js +1 -0
  245. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.d.ts +28 -0
  246. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.js +1 -0
  247. package/dist/application-spec/generate-application/runtime-spec/index.d.ts +5 -0
  248. package/dist/application-spec/generate-application/runtime-spec/index.js +1 -0
  249. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.d.ts +168 -0
  250. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.js +1 -0
  251. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.d.ts +40 -0
  252. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.js +1 -0
  253. package/dist/application-spec/index.d.ts +1 -0
  254. package/dist/application-spec/index.js +1 -1
  255. package/dist/application-spec/parse-application-files/categorize/categorize-files.d.ts +34 -0
  256. package/dist/application-spec/parse-application-files/categorize/categorize-files.js +1 -1
  257. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.d.ts +16 -0
  258. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.js +9 -0
  259. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.d.ts +9 -0
  260. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.js +1 -0
  261. package/dist/application-spec/parse-application-files/categorize/module-analysis.d.ts +1 -1
  262. package/dist/application-spec/parse-application-files/categorize/module-analysis.js +1 -1
  263. package/dist/application-spec/parse-application-files/merge/merged-assistant.d.ts +13 -4
  264. package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
  265. package/dist/application-spec/parse-application-files/merge/merged-infra.d.ts +4 -11
  266. package/dist/application-spec/parse-application-files/merge/merged-transformers.d.ts +2 -4
  267. package/dist/application-spec/parse-application-files/parse-application-files.js +1 -1
  268. package/dist/application-spec/parse-application-files/raw-spec/parse-yaml-spec-file.js +1 -1
  269. package/dist/application-spec/parse-application-files/raw-spec/raw-acl.d.ts +2 -2
  270. package/dist/application-spec/parse-application-files/raw-spec/raw-acl.js +1 -1
  271. package/dist/application-spec/parse-application-files/raw-spec/raw-admin-pages.d.ts +3 -24
  272. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +72 -24
  273. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  274. package/dist/application-spec/parse-application-files/raw-spec/raw-expressions.d.ts +1 -1
  275. package/dist/application-spec/parse-application-files/raw-spec/raw-expressions.js +1 -1
  276. package/dist/application-spec/parse-application-files/raw-spec/raw-resources.d.ts +19 -64
  277. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
  278. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-pages.d.ts +3 -20
  279. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-spec.js +1 -1
  280. package/dist/application-spec/parse-application-files/spec/application/admin-spec/states.d.ts +3 -5
  281. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.js +1 -1
  282. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/states.d.ts +3 -8
  283. package/dist/application-spec/parse-application-files/spec/common/index.d.ts +1 -0
  284. package/dist/application-spec/parse-application-files/spec/common/index.js +1 -1
  285. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.d.ts +3 -0
  286. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.js +1 -0
  287. package/dist/application-spec/parse-application-files/spec/common/value-type/index.d.ts +5 -0
  288. package/dist/application-spec/parse-application-files/spec/common/value-type/index.js +1 -0
  289. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.d.ts +6 -0
  290. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.js +1 -0
  291. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.d.ts +8 -0
  292. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.js +1 -0
  293. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.d.ts +10 -0
  294. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.js +1 -0
  295. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.d.ts +98 -0
  296. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.js +1 -0
  297. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.d.ts +13 -0
  298. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.js +1 -0
  299. package/dist/application-spec/parse-application-files/spec/components/bindings/index.d.ts +2 -0
  300. package/dist/application-spec/parse-application-files/spec/components/bindings/index.js +1 -1
  301. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.d.ts +24 -0
  302. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.js +1 -0
  303. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding.d.ts +3 -13
  304. package/dist/application-spec/parse-application-files/spec/components/bindings/write-binding.d.ts +4 -32
  305. package/dist/application-spec/parse-application-files/spec/components/component-filter.d.ts +3 -62
  306. package/dist/application-spec/parse-application-files/spec/components/component-filter.js +1 -1
  307. package/dist/application-spec/parse-application-files/spec/components/component-state-type.d.ts +8 -0
  308. package/dist/application-spec/parse-application-files/spec/components/component-state-type.js +1 -0
  309. package/dist/application-spec/parse-application-files/spec/components/components.d.ts +3 -4
  310. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.d.ts +13 -0
  311. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.js +1 -0
  312. package/dist/application-spec/parse-application-files/spec/components/index.d.ts +1 -2
  313. package/dist/application-spec/parse-application-files/spec/components/index.js +1 -1
  314. package/dist/application-spec/parse-application-files/spec/components/sdk-component-entry.d.ts +1 -1
  315. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.d.ts +14 -0
  316. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.js +1 -0
  317. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.d.ts +8 -3
  318. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.js +1 -1
  319. package/dist/application-spec/parse-application-files/spec/components/user-components.d.ts +9 -7
  320. package/dist/application-spec/parse-application-files/spec/components/user-components.js +1 -1
  321. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.d.ts +24 -0
  322. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.js +1 -0
  323. package/dist/application-spec/parse-application-files/spec/expressions/expression-read.d.ts +13 -0
  324. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.d.ts +9 -0
  325. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.js +1 -0
  326. package/dist/application-spec/parse-application-files/spec/expressions/expressions.d.ts +12 -30
  327. package/dist/application-spec/parse-application-files/spec/expressions/expressions.js +1 -1
  328. package/dist/application-spec/parse-application-files/spec/expressions/index.d.ts +0 -2
  329. package/dist/application-spec/parse-application-files/spec/expressions/index.js +1 -1
  330. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.d.ts +4 -71
  331. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.js +1 -1
  332. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.d.ts +5 -3
  333. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
  334. package/dist/application-spec/parse-application-files/spec/invariants/invariant.d.ts +5 -21
  335. package/dist/application-spec/parse-application-files/spec/invariants/invariants.d.ts +6 -16
  336. package/dist/application-spec/parse-application-files/spec/invariants/invariants.js +1 -1
  337. package/dist/application-spec/parse-application-files/spec/model/aliases.d.ts +3 -9
  338. package/dist/application-spec/parse-application-files/spec/model/common-types.d.ts +6 -14
  339. package/dist/application-spec/parse-application-files/spec/model/defaults.d.ts +6 -26
  340. package/dist/application-spec/parse-application-files/spec/model/defaults.js +1 -1
  341. package/dist/application-spec/parse-application-files/spec/model/entity-types.d.ts +3 -8
  342. package/dist/application-spec/parse-application-files/spec/model/index.d.ts +1 -0
  343. package/dist/application-spec/parse-application-files/spec/model/index.js +1 -1
  344. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.d.ts +10 -0
  345. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.js +1 -0
  346. package/dist/application-spec/parse-application-files/spec/model/model-version-key.d.ts +3 -3
  347. package/dist/application-spec/parse-application-files/spec/model/names/action-name.d.ts +3 -7
  348. package/dist/application-spec/parse-application-files/spec/model/names/alias-name.d.ts +3 -7
  349. package/dist/application-spec/parse-application-files/spec/model/names/entity-or-alias-name.d.ts +3 -8
  350. package/dist/application-spec/parse-application-files/spec/model/names/entity-type-name.d.ts +3 -8
  351. package/dist/application-spec/parse-application-files/spec/model/names/expression-name.d.ts +3 -6
  352. package/dist/application-spec/parse-application-files/spec/model/names/instance-name.d.ts +3 -7
  353. package/dist/application-spec/parse-application-files/spec/model/names/invariant-name.d.ts +3 -3
  354. package/dist/application-spec/parse-application-files/spec/model/names/shape-property-name.d.ts +3 -11
  355. package/dist/application-spec/parse-application-files/spec/model/names/violation-type-name.d.ts +3 -3
  356. package/dist/application-spec/parse-application-files/spec/model/presets.d.ts +6 -29
  357. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.d.ts +25 -0
  358. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.js +1 -0
  359. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.d.ts +46 -0
  360. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.js +1 -0
  361. package/dist/application-spec/parse-application-files/spec/relations/relations.d.ts +4 -3
  362. package/dist/application-spec/parse-application-files/spec/relations/relations.js +1 -1
  363. package/dist/application-spec/parse-application-files/spec/sections/actions.d.ts +6 -23
  364. package/dist/application-spec/parse-application-files/spec/sections/app-metadata.d.ts +3 -18
  365. package/dist/application-spec/parse-application-files/spec/sections/application-version.d.ts +3 -7
  366. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-field-type.d.ts +3 -8
  367. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-field-type.js +1 -1
  368. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +9 -0
  369. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -0
  370. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +13 -44
  371. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  372. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.d.ts +2 -2
  373. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant.d.ts +5 -21
  374. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant.js +1 -1
  375. package/dist/application-spec/parse-application-files/spec/sections/data-spec/chunks.d.ts +6 -23
  376. package/dist/application-spec/parse-application-files/spec/sections/data-spec/custom-data-spec.d.ts +1 -16
  377. package/dist/application-spec/parse-application-files/spec/sections/data-spec/data-entry-key.d.ts +3 -9
  378. package/dist/application-spec/parse-application-files/spec/sections/data-spec/data-spec.d.ts +1 -10
  379. package/dist/application-spec/parse-application-files/spec/sections/data-spec/swatch-data-spec.d.ts +1 -14
  380. package/dist/application-spec/parse-application-files/spec/sections/infra.d.ts +2 -0
  381. package/dist/application-spec/parse-application-files/spec/sections/infra.js +1 -1
  382. package/dist/application-spec/parse-application-files/spec/sections/state-value.d.ts +3 -7
  383. package/dist/application-spec/parse-application-files/spec/sections/theme.d.ts +3 -10
  384. package/dist/application-spec/parse-application-files/spec/sections/transformers.d.ts +4 -11
  385. package/dist/application-spec/parse-application-files/spec/sections/ui.d.ts +3 -12
  386. package/dist/client/authorized-client.d.ts +5 -1
  387. package/dist/client/authorized-client.js +1 -1
  388. package/dist/client/contract.d.ts +63 -0
  389. package/dist/client/contract.js +1 -1
  390. package/dist/client/index.d.ts +2 -2
  391. package/dist/client/index.js +1 -1
  392. package/dist/client/local-authorized-client.d.ts +5 -1
  393. package/dist/client/local-authorized-client.js +1 -1
  394. package/dist/client/memory-authorized-client.d.ts +6 -1
  395. package/dist/client/memory-authorized-client.js +1 -1
  396. package/dist/client/phoenix-api.d.ts +1244 -282
  397. package/dist/configurator/ConfiguratorApp.js +1 -1
  398. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.d.ts +2 -0
  399. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.js +5 -0
  400. package/dist/configurator/app-loader-content/index.d.ts +1 -0
  401. package/dist/configurator/app-loader-content/index.js +1 -0
  402. package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
  403. package/dist/configurator/application-runtime/extensions/selectors.d.ts +3 -1
  404. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  405. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +341 -13
  406. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  407. package/dist/configurator/application-runtime/extensions/systems/assistant-system/change-recorder.d.ts +85 -0
  408. package/dist/configurator/application-runtime/extensions/systems/assistant-system/change-recorder.js +1 -0
  409. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +62 -8
  410. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  411. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +1 -1
  412. package/dist/configurator/application-runtime/extensions/systems/canvas-system.d.ts +8 -0
  413. package/dist/configurator/application-runtime/extensions/systems/canvas-system.js +1 -1
  414. package/dist/configurator/application-runtime/extensions/systems/drag-and-drop-system/drag-and-drop-system.d.ts +3 -3
  415. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.d.ts +8 -0
  416. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.js +1 -0
  417. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +23 -1
  418. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  419. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.d.ts +12 -0
  420. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.js +1 -0
  421. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +82 -51
  422. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  423. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +101 -8
  424. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  425. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.d.ts +11 -0
  426. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.js +1 -0
  427. package/dist/configurator/application-runtime/extensions/systems/graphql-system/side-effects.d.ts +9 -0
  428. package/dist/configurator/application-runtime/extensions/systems/graphql-system/side-effects.js +1 -0
  429. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.d.ts +40 -0
  430. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.js +1 -0
  431. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +14 -5
  432. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  433. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +2 -2
  434. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.d.ts +4 -2
  435. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.js +1 -1
  436. package/dist/configurator/common/configurator-interface.d.ts +145 -5
  437. package/dist/configurator/common/configurator-interface.js +1 -1
  438. package/dist/configurator/common/index.d.ts +3 -1
  439. package/dist/configurator/common/index.js +1 -1
  440. package/dist/configurator/common/use-reset-camera.d.ts +6 -0
  441. package/dist/configurator/common/use-reset-camera.js +1 -0
  442. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.d.ts +5 -0
  443. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.js +1 -0
  444. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.d.ts +6 -0
  445. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.js +1 -0
  446. package/dist/configurator/configuration-not-found-page/index.d.ts +2 -0
  447. package/dist/configurator/configuration-not-found-page/index.js +1 -0
  448. package/dist/configurator/configurator-context/PreviewContextProvider.js +1 -1
  449. package/dist/configurator/configurator-context/ViewportStateSync.d.ts +2 -2
  450. package/dist/configurator/configurator-context/ViewportStateSync.js +1 -1
  451. package/dist/configurator/configurator-context/configurator-hooks/index.d.ts +0 -1
  452. package/dist/configurator/configurator-context/configurator-hooks/index.js +1 -1
  453. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.d.ts +11 -1
  454. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.js +1 -1
  455. package/dist/configurator/configurator-context/index.d.ts +0 -5
  456. package/dist/configurator/configurator-context/index.js +1 -1
  457. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.d.ts +6 -0
  458. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.js +1 -0
  459. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.d.ts +7 -0
  460. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.js +1 -0
  461. package/dist/configurator/configurator-error-page/index.d.ts +2 -0
  462. package/dist/configurator/configurator-error-page/index.js +1 -0
  463. package/dist/configurator/index.d.ts +10 -1
  464. package/dist/configurator/index.js +1 -1
  465. package/dist/configurator/pages/ConfiguratorErrorPage.d.ts +0 -1
  466. package/dist/configurator/pages/ConfiguratorErrorPage.js +1 -1
  467. package/dist/configurator/pages/ConfiguratorNotFoundPage.js +1 -1
  468. package/dist/configurator/pages/DefaultConfiguratorLayout.d.ts +7 -0
  469. package/dist/configurator/pages/DefaultConfiguratorLayout.js +1 -0
  470. package/dist/configurator/pages/DefaultNotAuthenticatedPage.d.ts +8 -0
  471. package/dist/configurator/pages/DefaultNotAuthenticatedPage.js +1 -0
  472. package/dist/configurator/pages/DefaultPresetUi.d.ts +7 -0
  473. package/dist/configurator/pages/DefaultPresetUi.js +1 -0
  474. package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
  475. package/dist/configurator/pages/NewConfiguratorPage.js +1 -1
  476. package/dist/configurator/pages/PresetCreationErrorPage.d.ts +1 -1
  477. package/dist/configurator/pages/PresetCreationErrorPage.js +1 -1
  478. package/dist/configurator/pages/RootPage.js +1 -1
  479. package/dist/configurator/pages/configurator-layout-name.d.ts +2 -0
  480. package/dist/configurator/pages/configurator-layout-name.js +1 -0
  481. package/dist/configurator/pages/default-configurator-elements.d.ts +17 -0
  482. package/dist/configurator/pages/default-configurator-elements.js +1 -0
  483. package/dist/configurator/pages/default-elements/built-in-entity-element.d.ts +10 -0
  484. package/dist/configurator/pages/default-elements/built-in-entity-element.js +1 -0
  485. package/dist/configurator/pages/default-elements/built-in-layout-element.d.ts +10 -0
  486. package/dist/configurator/pages/default-elements/built-in-layout-element.js +1 -0
  487. package/dist/configurator/pages/default-elements/domain-control-elements.d.ts +6 -0
  488. package/dist/configurator/pages/default-elements/domain-control-elements.js +1 -0
  489. package/dist/configurator/pages/default-elements/index.d.ts +5 -0
  490. package/dist/configurator/pages/default-elements/index.js +1 -0
  491. package/dist/configurator/pages/default-elements/recipe-panel-elements.d.ts +3 -0
  492. package/dist/configurator/pages/default-elements/recipe-panel-elements.js +1 -0
  493. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.d.ts +3 -0
  494. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.js +1 -0
  495. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.d.ts +3 -0
  496. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.js +1 -0
  497. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.d.ts +3 -0
  498. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.js +1 -0
  499. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.d.ts +3 -0
  500. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.js +1 -0
  501. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.d.ts +3 -0
  502. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.js +1 -0
  503. package/dist/configurator/pages/default-elements/scene-controls/index.d.ts +6 -0
  504. package/dist/configurator/pages/default-elements/scene-controls/index.js +1 -0
  505. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.d.ts +6 -0
  506. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.js +1 -0
  507. package/dist/configurator/pages/default-elements/sidebar-footer-elements.d.ts +7 -0
  508. package/dist/configurator/pages/default-elements/sidebar-footer-elements.js +1 -0
  509. package/dist/configurator/pages/default-elements/toolbar-elements.d.ts +7 -0
  510. package/dist/configurator/pages/default-elements/toolbar-elements.js +1 -0
  511. package/dist/configurator/pages/error-boundaries/BuiltInGeneralErrorFallback.d.ts +5 -0
  512. package/dist/configurator/pages/error-boundaries/BuiltInGeneralErrorFallback.js +1 -0
  513. package/dist/configurator/pages/error-boundaries/DevContextFallback.js +1 -1
  514. package/dist/configurator/pages/error-boundaries/DevLoadingFallback.js +1 -1
  515. package/dist/configurator/pages/error-boundaries/GeneralErrorBoundary.js +1 -1
  516. package/dist/configurator/pages/error-boundaries/LoadingErrorBoundary.js +1 -1
  517. package/dist/configurator/pages/error-boundaries/index.d.ts +1 -0
  518. package/dist/configurator/pages/error-boundaries/index.js +1 -1
  519. package/dist/configurator/pages/index.d.ts +1 -0
  520. package/dist/configurator/pages/index.js +1 -1
  521. package/dist/configurator/pages/provider-slots/ConfiguratorResponsiveProvider.d.ts +12 -0
  522. package/dist/configurator/pages/provider-slots/ConfiguratorResponsiveProvider.js +1 -0
  523. package/dist/configurator/pages/provider-slots/ContainerSlotProvider.d.ts +3 -0
  524. package/dist/configurator/pages/provider-slots/ContainerSlotProvider.js +1 -0
  525. package/dist/configurator/pages/provider-slots/LoaderSlotProvider.d.ts +3 -0
  526. package/dist/configurator/pages/provider-slots/LoaderSlotProvider.js +1 -0
  527. package/dist/configurator/pages/provider-slots/MessageHostSlotProvider.d.ts +3 -0
  528. package/dist/configurator/pages/provider-slots/MessageHostSlotProvider.js +1 -0
  529. package/dist/configurator/pages/provider-slots/SceneResourcesSlotProvider.d.ts +3 -0
  530. package/dist/configurator/pages/provider-slots/SceneResourcesSlotProvider.js +1 -0
  531. package/dist/configurator/pages/provider-slots/ThemeSlotProvider.d.ts +3 -0
  532. package/dist/configurator/pages/provider-slots/ThemeSlotProvider.js +1 -0
  533. package/dist/configurator/pages/provider-slots/configurator-provider-slot-elements.d.ts +3 -0
  534. package/dist/configurator/pages/provider-slots/configurator-provider-slot-elements.js +1 -0
  535. package/dist/configurator/pages/provider-slots/index.d.ts +6 -0
  536. package/dist/configurator/pages/provider-slots/index.js +1 -0
  537. package/dist/configurator/pages/ui-elements/BuiltInInvalidDeploymentReload.d.ts +2 -0
  538. package/dist/configurator/pages/ui-elements/BuiltInInvalidDeploymentReload.js +1 -0
  539. package/dist/configurator/pages/ui-elements/configurator-ui-elements.d.ts +3 -0
  540. package/dist/configurator/pages/ui-elements/configurator-ui-elements.js +1 -0
  541. package/dist/configurator/pages/ui-elements/index.d.ts +2 -0
  542. package/dist/configurator/pages/ui-elements/index.js +1 -0
  543. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.d.ts +4 -0
  544. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.js +1 -0
  545. package/dist/configurator/preset-screen-elements/PresetPageActionElement.d.ts +4 -0
  546. package/dist/configurator/preset-screen-elements/PresetPageActionElement.js +1 -0
  547. package/dist/configurator/preset-screen-elements/index.d.ts +2 -0
  548. package/dist/configurator/preset-screen-elements/index.js +1 -0
  549. package/dist/configurator/scene/index.d.ts +1 -0
  550. package/dist/configurator/scene/index.js +1 -1
  551. package/dist/configurator/scene/scene-analytics/scene-analytics.d.ts +2 -2
  552. package/dist/configurator/scene/scene-controls/DeleteEntityFab.js +1 -1
  553. package/dist/configurator/scene/scene-controls/SelectionHotspot.js +1 -1
  554. package/dist/configurator/scene/scene-controls/ToolFab.d.ts +4 -0
  555. package/dist/configurator/scene/scene-controls/ToolFab.js +1 -1
  556. package/dist/configurator/scene/scene-controls/hotspot-drag-handle/HotspotDragHandle.d.ts +1 -1
  557. package/dist/configurator/scene/scene-controls/hotspot-drag-handle/HotspotDragSceneHandle.d.ts +1 -1
  558. package/dist/configurator/scene/scene-controls/use-scene-control-tooltip.d.ts +2 -1
  559. package/dist/configurator/scene/scene-entity/dimension-indicators/DimensionIndicator.d.ts +1 -1
  560. package/dist/configurator/scene/scene-entity/dimension-indicators/DimensionIndicatorInternal.d.ts +1 -1
  561. package/dist/configurator/scene/scene-entity/drag-and-drop/shared.d.ts +2 -2
  562. package/dist/configurator/scene/scene-entity/drag-and-drop/use-drag-object.d.ts +1 -1
  563. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.js +1 -1
  564. package/dist/configurator/scene/scene-entity/objects/SceneEntityObjectTextDecal.d.ts +1 -1
  565. package/dist/configurator/scene/scene-entity/scene-controls/SceneEntityHtmlHotspots.js +1 -1
  566. package/dist/configurator/toolbar-actions/index.d.ts +3 -0
  567. package/dist/configurator/toolbar-actions/index.js +1 -0
  568. package/dist/configurator/toolbar-actions/use-assistant-panel.d.ts +18 -0
  569. package/dist/configurator/toolbar-actions/use-assistant-panel.js +1 -0
  570. package/dist/configurator/toolbar-actions/use-measurements.d.ts +35 -0
  571. package/dist/configurator/toolbar-actions/use-measurements.js +1 -0
  572. package/dist/configurator/toolbar-actions/use-toolbar-actions.d.ts +100 -0
  573. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -0
  574. package/dist/configurator/toolbar-actions/use-toolbar-help.d.ts +7 -0
  575. package/dist/configurator/toolbar-actions/use-toolbar-help.js +1 -0
  576. package/dist/configurator/ui/assistant/AssistantChips.d.ts +18 -0
  577. package/dist/configurator/ui/assistant/AssistantChips.js +1 -0
  578. package/dist/configurator/ui/assistant/AssistantComposer.d.ts +13 -0
  579. package/dist/configurator/ui/assistant/AssistantComposer.js +2 -0
  580. package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +12 -0
  581. package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -0
  582. package/dist/configurator/ui/assistant/AssistantPanel.d.ts +11 -0
  583. package/dist/configurator/ui/assistant/AssistantPanel.js +1 -0
  584. package/dist/configurator/ui/assistant/AssistantThread.d.ts +10 -0
  585. package/dist/configurator/ui/assistant/AssistantThread.js +1 -0
  586. package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +8 -0
  587. package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -0
  588. package/dist/configurator/ui/assistant/alert/index.d.ts +2 -0
  589. package/dist/configurator/ui/assistant/alert/index.js +1 -0
  590. package/dist/configurator/ui/assistant/alert/remark-alerts.d.ts +10 -0
  591. package/dist/configurator/ui/assistant/alert/remark-alerts.js +1 -0
  592. package/dist/configurator/ui/assistant/assistant-failure.d.ts +18 -0
  593. package/dist/configurator/ui/assistant/assistant-failure.js +1 -0
  594. package/dist/configurator/ui/assistant/attachments/MessageImages.d.ts +11 -0
  595. package/dist/configurator/ui/assistant/attachments/MessageImages.js +1 -0
  596. package/dist/configurator/ui/assistant/attachments/index.d.ts +2 -0
  597. package/dist/configurator/ui/assistant/attachments/index.js +1 -0
  598. package/dist/configurator/ui/assistant/attachments/prepare-image.d.ts +19 -0
  599. package/dist/configurator/ui/assistant/attachments/prepare-image.js +1 -0
  600. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.d.ts +13 -0
  601. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.js +1 -0
  602. package/dist/configurator/ui/assistant/entity-link/entity-link-selection.d.ts +22 -0
  603. package/dist/configurator/ui/assistant/entity-link/entity-link-selection.js +1 -0
  604. package/dist/configurator/ui/assistant/entity-link/entity-link-state.d.ts +27 -0
  605. package/dist/configurator/ui/assistant/entity-link/entity-link-state.js +1 -0
  606. package/dist/configurator/ui/assistant/entity-link/index.d.ts +2 -0
  607. package/dist/configurator/ui/assistant/entity-link/index.js +1 -0
  608. package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +19 -0
  609. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -0
  610. package/dist/configurator/ui/assistant/form/compose-answer.d.ts +11 -0
  611. package/dist/configurator/ui/assistant/form/compose-answer.js +1 -0
  612. package/dist/configurator/ui/assistant/form/describe-build-errors.d.ts +6 -0
  613. package/dist/configurator/ui/assistant/form/describe-build-errors.js +1 -0
  614. package/dist/configurator/ui/assistant/form/form-model.d.ts +37 -0
  615. package/dist/configurator/ui/assistant/form/form-state.d.ts +4 -0
  616. package/dist/configurator/ui/assistant/form/index.d.ts +4 -0
  617. package/dist/configurator/ui/assistant/form/index.js +1 -0
  618. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +10 -0
  619. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -0
  620. package/dist/configurator/ui/assistant/form/read-form-attributes.d.ts +13 -0
  621. package/dist/configurator/ui/assistant/form/read-form-attributes.js +1 -0
  622. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +3 -0
  623. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -0
  624. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +31 -0
  625. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.js +1 -0
  626. package/dist/configurator/ui/assistant/form/registry/form-element-definition.d.ts +16 -0
  627. package/dist/configurator/ui/assistant/form/registry/form-element-definition.js +1 -0
  628. package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +31 -0
  629. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -0
  630. package/dist/configurator/ui/assistant/form/registry/index.d.ts +6 -0
  631. package/dist/configurator/ui/assistant/form/registry/index.js +1 -0
  632. package/dist/configurator/ui/assistant/form/registry/use-form-registry.d.ts +8 -0
  633. package/dist/configurator/ui/assistant/form/registry/use-form-registry.js +1 -0
  634. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +9 -0
  635. package/dist/configurator/ui/assistant/form-elements/FormCard.js +1 -0
  636. package/dist/configurator/ui/assistant/form-elements/FormConfirm.d.ts +9 -0
  637. package/dist/configurator/ui/assistant/form-elements/FormConfirm.js +1 -0
  638. package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +6 -0
  639. package/dist/configurator/ui/assistant/form-elements/FormGroup.js +1 -0
  640. package/dist/configurator/ui/assistant/form-elements/FormNumber.d.ts +9 -0
  641. package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -0
  642. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +6 -0
  643. package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -0
  644. package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +6 -0
  645. package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -0
  646. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +10 -0
  647. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +1 -0
  648. package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +6 -0
  649. package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -0
  650. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.d.ts +10 -0
  651. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.js +1 -0
  652. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +38 -0
  653. package/dist/configurator/ui/assistant/form-elements/index.d.ts +9 -0
  654. package/dist/configurator/ui/assistant/form-elements/index.js +1 -0
  655. package/dist/configurator/ui/assistant/index.d.ts +5 -0
  656. package/dist/configurator/ui/assistant/index.js +1 -0
  657. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.d.ts +16 -0
  658. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -0
  659. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.d.ts +34 -0
  660. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.js +1 -0
  661. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +25 -0
  662. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -0
  663. package/dist/configurator/ui/assistant/reference-link/index.d.ts +3 -0
  664. package/dist/configurator/ui/assistant/reference-link/index.js +1 -0
  665. package/dist/configurator/ui/assistant/reference-link/reference-styles.d.ts +12 -0
  666. package/dist/configurator/ui/assistant/reference-link/reference-styles.js +1 -0
  667. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.d.ts +8 -0
  668. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.js +1 -0
  669. package/dist/configurator/ui/assistant/resource-image/AssistantImage.d.ts +9 -0
  670. package/dist/configurator/ui/assistant/resource-image/AssistantImage.js +1 -0
  671. package/dist/configurator/ui/assistant/resource-image/index.d.ts +3 -0
  672. package/dist/configurator/ui/assistant/resource-image/index.js +1 -0
  673. package/dist/configurator/ui/assistant/resource-image/resource-path.d.ts +2 -0
  674. package/dist/configurator/ui/assistant/resource-image/resource-path.js +1 -0
  675. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.d.ts +5 -0
  676. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.js +1 -0
  677. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +9 -0
  678. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -0
  679. package/dist/configurator/ui/assistant/screenshots/index.d.ts +3 -0
  680. package/dist/configurator/ui/assistant/screenshots/index.js +1 -0
  681. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +22 -0
  682. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -0
  683. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +8 -0
  684. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -0
  685. package/dist/configurator/ui/assistant/streamed-markdown.d.ts +8 -0
  686. package/dist/configurator/ui/assistant/streamed-markdown.js +2 -0
  687. package/dist/configurator/ui/assistant/theme.d.ts +2 -0
  688. package/dist/configurator/ui/assistant/theme.js +1 -0
  689. package/dist/configurator/ui/assistant/thread-items.d.ts +57 -0
  690. package/dist/configurator/ui/assistant/thread-items.js +1 -0
  691. package/dist/configurator/ui/assistant/tool-chip.d.ts +54 -0
  692. package/dist/configurator/ui/assistant/tool-chip.js +1 -0
  693. package/dist/configurator/ui/assistant/use-follow-stream.d.ts +17 -0
  694. package/dist/configurator/ui/assistant/use-follow-stream.js +1 -0
  695. package/dist/configurator/ui/assistant/use-is-assistant-panel-open.d.ts +5 -0
  696. package/dist/configurator/ui/assistant/use-is-assistant-panel-open.js +1 -0
  697. package/dist/configurator/ui/configurator-layout/sidebar-keys/index.d.ts +1 -0
  698. package/dist/configurator/ui/configurator-layout/sidebar-keys/index.js +1 -0
  699. package/dist/configurator/ui/configurator-layout/sidebar-keys/sidebar-keys.d.ts +11 -0
  700. package/dist/configurator/ui/configurator-layout/sidebar-keys/sidebar-keys.js +1 -0
  701. package/dist/configurator/ui/configurator-layout/slots/canvas/GPUAccelerationDisabled.js +1 -1
  702. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  703. package/dist/configurator/ui/configurator-layout/slots/canvas/SharedCanvas.js +1 -1
  704. package/dist/configurator/ui/configurator-layout/slots/canvas/WebGLNotSupported.js +1 -1
  705. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.d.ts +101 -0
  706. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +16 -0
  707. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/index.d.ts +1 -0
  708. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/index.js +1 -0
  709. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.d.ts +1 -1
  710. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.js +1 -1
  711. package/dist/configurator/ui/configurator-layout/slots/readonly-banner/CloneToEditDialog.js +1 -1
  712. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.d.ts +4 -4
  713. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.js +1 -1
  714. package/dist/configurator/ui/configurator-layout/slots/services/Services.js +1 -1
  715. package/dist/configurator/ui/configurator-layout/slots/services/SideEffects.d.ts +3 -6
  716. package/dist/configurator/ui/configurator-layout/slots/services/SideEffects.js +1 -1
  717. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.d.ts +1 -1
  718. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.js +1 -1
  719. package/dist/configurator/ui/configurator-layout/slots/slots.d.ts +1 -0
  720. package/dist/configurator/ui/configurator-layout/slots/slots.js +1 -1
  721. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.d.ts +0 -74
  722. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.js +5 -20
  723. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  724. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.d.ts +5 -0
  725. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.js +1 -0
  726. package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
  727. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.d.ts +2 -0
  728. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +3 -3
  729. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  730. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.d.ts +47 -0
  731. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -0
  732. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.d.ts +11 -26
  733. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.js +1 -1
  734. package/dist/configurator/ui/index.d.ts +1 -0
  735. package/dist/configurator/ui/index.js +1 -1
  736. package/dist/configurator/ui/legacy/chat/MobileChat.js +1 -1
  737. package/dist/configurator/ui/legacy/layout/common/CommonFinalizeButton.js +1 -1
  738. package/dist/configurator/ui/legacy/layout/common/CommonSummaryButton.js +1 -1
  739. package/dist/configurator/ui/legacy/layout/common/CommonTopNavigation.js +1 -1
  740. package/dist/configurator/ui/legacy/layout/common/ReactiveInterfaceLayout.js +1 -1
  741. package/dist/configurator/ui/legacy/layout/common/ResponsiveFinalizeButton.js +1 -1
  742. package/dist/configurator/ui/legacy/layout/common/SummaryReadLayout.js +1 -1
  743. package/dist/configurator/ui/legacy/layout/simple/SimpleOwnerLayout.js +1 -1
  744. package/dist/configurator/ui/legacy/layout/simple/SimpleSidebar.js +1 -1
  745. package/dist/configurator/ui/legacy/layout/simple/SimpleTopNavigation.js +1 -1
  746. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.d.ts +2 -2
  747. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.js +1 -1
  748. package/dist/configurator/ui/legacy/layout/steps/StepsOwnerLayout.js +1 -1
  749. package/dist/configurator/ui/legacy/layout/steps/StepsSideBar.js +1 -1
  750. package/dist/configurator/ui/legacy/layout/steps/StepsSidebarFooter.js +1 -1
  751. package/dist/configurator/ui/legacy/layout/tabs/TabsOwnerLayout.js +1 -1
  752. package/dist/configurator/ui/legacy/layout/tabs/TabsSidebar.js +1 -1
  753. package/dist/configurator/ui/legacy/mobile-controls/MobileControls.d.ts +1 -1
  754. package/dist/configurator/ui/legacy/toolbar/common/DimensionUnitSelector.js +1 -1
  755. package/dist/configurator/ui/legacy/toolbar/common/MeasurementsIndicatorsSwitch.js +1 -1
  756. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/FullscreenToolbarAction.js +1 -1
  757. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/HelpToolbarAction.js +1 -1
  758. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/MeasurementsToolbarAction.js +1 -1
  759. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/UndoRedoToolbarGroup.js +1 -1
  760. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.d.ts +0 -7
  761. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.js +2 -6
  762. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.d.ts +10 -0
  763. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -0
  764. package/dist/configurator/ui/phoenix-layout-elements/EnterFullscreenToolbarButton.js +1 -1
  765. package/dist/configurator/ui/phoenix-layout-elements/ExitFullscreenToolbarButton.js +1 -1
  766. package/dist/configurator/ui/phoenix-layout-elements/HelpToolbarButton.js +1 -1
  767. package/dist/configurator/ui/phoenix-layout-elements/LanguageMenuAction.js +1 -1
  768. package/dist/configurator/ui/phoenix-layout-elements/LanguageToolbarButton.js +1 -1
  769. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.d.ts +1 -0
  770. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.js +1 -1
  771. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.d.ts +1 -0
  772. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.js +1 -1
  773. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsMenuAction.js +1 -1
  774. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsToolbarButton.js +1 -1
  775. package/dist/configurator/ui/phoenix-layout-elements/RedoToolbarButton.js +1 -1
  776. package/dist/configurator/ui/phoenix-layout-elements/ShareToolbarButton.js +1 -1
  777. package/dist/configurator/ui/phoenix-layout-elements/UndoToolbarButton.js +1 -1
  778. package/dist/configurator/ui/phoenix-layout-elements/header/common/back-button/use-go-back-action.js +1 -1
  779. package/dist/configurator/ui/phoenix-layout-elements/header/common/horizontal-tabs/DesktopHorizontalTabs.js +1 -1
  780. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.d.ts +1 -1
  781. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.js +1 -1
  782. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.d.ts +2 -8
  783. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.js +1 -1
  784. package/dist/configurator/ui/phoenix-layout-elements/index.d.ts +9 -1
  785. package/dist/configurator/ui/phoenix-layout-elements/index.js +1 -1
  786. package/dist/configurator/ui/phoenix-layout-elements/measurements/DimensionUnitSelector.js +1 -1
  787. package/dist/configurator/ui/phoenix-layout-elements/measurements/MeasurementsIndicatorsSwitch.js +1 -1
  788. package/dist/configurator/ui/phoenix-layout-elements/share/ShareModal.js +1 -1
  789. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.d.ts +7 -8
  790. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.js +1 -1
  791. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/BasicFinalizeButton.js +1 -1
  792. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/use-basic-sidebar-footer.js +1 -1
  793. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/CustomFinalizeButton.js +1 -1
  794. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/EnterSummaryButton.js +1 -1
  795. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/FinalizeActions.js +1 -1
  796. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/NextStepButton.js +1 -1
  797. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/PreviousStepButton.js +1 -1
  798. package/dist/configurator/ui/preset-layout/CategoryPresetUi.js +1 -1
  799. package/dist/configurator/ui/preset-layout/PresetUi.d.ts +4 -2
  800. package/dist/configurator/ui/preset-layout/PresetUi.js +1 -1
  801. package/dist/configurator/ui/preset-layout/index.d.ts +6 -1
  802. package/dist/configurator/ui/preset-layout/index.js +1 -1
  803. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.d.ts +10 -0
  804. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.js +1 -0
  805. package/dist/configurator/ui/save-message-snackbars/index.d.ts +1 -0
  806. package/dist/configurator/ui/save-message-snackbars/index.js +1 -0
  807. package/dist/docs/3d-scene/cameras/custom.mdx +4 -2
  808. package/dist/docs/complex-use-cases/filtered-controls-with-fix-dialog.mdx +100 -117
  809. package/dist/docs/complex-use-cases/focus-mode.mdx +2 -0
  810. package/dist/docs/complex-use-cases/navigation-reset-selection.mdx +18 -12
  811. package/dist/docs/complex-use-cases/sketching.mdx +0 -38
  812. package/dist/docs/controls/select-attribute/cardselect.mdx +9 -13
  813. package/dist/docs/controls/select-child-entity/cardselect.mdx +1 -0
  814. package/dist/docs/dimensions/3d-scene-integration/dimension-indicators.mdx +2 -2
  815. package/dist/docs/dimensions/3d-scene-integration/editable-angle-indicator.mdx +1 -1
  816. package/dist/docs/dimensions/3d-scene-integration/editable-distance-dimension-indicator.mdx +1 -1
  817. package/dist/docs/dimensions/3d-scene-integration/list-selector-dimension-indicator.mdx +1 -1
  818. package/dist/docs/drag-and-drop/drag-handle.mdx +1 -1
  819. package/dist/docs/drag-and-drop/hotspot-handle.mdx +1 -1
  820. package/dist/docs/drag-and-drop/planes.mdx +1 -1
  821. package/dist/docs/drag-and-drop/room-planner.mdx +1 -1
  822. package/dist/docs/drag-and-drop/rotatable.mdx +2 -2
  823. package/dist/docs/fabs/basic.mdx +6 -2
  824. package/dist/docs/index.json +136 -1
  825. package/dist/docs/integrations/webcomponent-api/basics.mdx +2 -0
  826. package/dist/docs/integrations/woocommerce/local-development.mdx +1 -1
  827. package/dist/docs/layouts/custom-layout.mdx +2597 -0
  828. package/dist/docs/layouts/custom-price.mdx +14 -16
  829. package/dist/docs/layouts/gallery/ardent-compressor.mdx +3516 -0
  830. package/dist/docs/layouts/gallery/corvid-drone.mdx +3428 -0
  831. package/dist/docs/layouts/gallery/fenwick-window.mdx +2803 -0
  832. package/dist/docs/layouts/gallery/ferrule-bar-station.mdx +6567 -0
  833. package/dist/docs/layouts/gallery/kestrel-kettle.mdx +1858 -0
  834. package/dist/docs/layouts/gallery/nightjar-guitar.mdx +3698 -0
  835. package/dist/docs/layouts/gallery/sunfold-solar.mdx +2683 -0
  836. package/dist/docs/layouts/gallery/tidepool-aquascape.mdx +5203 -0
  837. package/dist/docs/layouts/header/fixed.mdx +2 -2
  838. package/dist/docs/layouts/header/floating.mdx +2 -2
  839. package/dist/docs/layouts/sidebar/in-a-custom-layout.mdx +380 -0
  840. package/dist/docs/layouts/sidebar/tabs.mdx +24 -21
  841. package/dist/docs/layouts/sidebar-footer/basic.mdx +32 -77
  842. package/dist/docs/layouts/toolbar.mdx +6 -0
  843. package/dist/docs/other-features/client-side-rendering/declarative.mdx +2 -2
  844. package/dist/docs/other-features/domain-actions.mdx +1 -1
  845. package/dist/docs/other-features/error-5xx.mdx +1 -1
  846. package/dist/docs/other-features/navigation-hotspot.mdx +2 -0
  847. package/dist/docs/other-features/not-found-404.mdx +1 -1
  848. package/dist/docs/other-features/side-effects.mdx +76 -45
  849. package/dist/docs/other-features/transformers.mdx +5 -1
  850. package/dist/docs/other-features/violation-messages.mdx +52 -56
  851. package/dist/docs/phoenix/admin.mdx +11 -26
  852. package/dist/docs/phoenix/application-states.mdx +9 -7
  853. package/dist/docs/phoenix/clerk-sign-in.mdx +1 -1
  854. package/dist/docs/phoenix/components.mdx +6 -0
  855. package/dist/docs/phoenix/configurator-interface.mdx +402 -81
  856. package/dist/docs/phoenix/deployments.mdx +14 -8
  857. package/dist/docs/phoenix/domain-model.mdx +10 -1
  858. package/dist/docs/phoenix/expression-context.mdx +11 -3
  859. package/dist/docs/phoenix/finalization.mdx +2 -2
  860. package/dist/docs/phoenix/getting-started.mdx +7 -4
  861. package/dist/docs/phoenix/integration/headless-mode-external.mdx +5 -5
  862. package/dist/docs/phoenix/integration/widget-mode-external.mdx +5 -5
  863. package/dist/docs/phoenix/layout-slots.mdx +137 -0
  864. package/dist/docs/phoenix/localization.mdx +13 -28
  865. package/dist/docs/phoenix/migration-guide.mdx +27 -14
  866. package/dist/docs/phoenix/phoenix-cli.mdx +280 -83
  867. package/dist/docs/phoenix/project-structure.mdx +92 -37
  868. package/dist/docs/phoenix/quickstart.mdx +9 -9
  869. package/dist/docs/phoenix/sdk-builder-workflow.mdx +25 -21
  870. package/dist/docs/phoenix/sessions-and-access.mdx +2 -0
  871. package/dist/docs/phoenix/testing.mdx +153 -0
  872. package/dist/docs/phoenix/webhook-membership.mdx +10 -9
  873. package/dist/docs/phoenix/webhooks.mdx +31 -6
  874. package/dist/docs/recipes-and-delete/recipe-hierarchy-selection.mdx +15 -13
  875. package/dist/docs/relations/hierarchy.mdx +13 -2
  876. package/dist/docs/selection-and-highlight/hotspots.mdx +2 -0
  877. package/dist/docs/ux-guidelines/choosing-a-control.mdx +11 -0
  878. package/dist/domain/admin-domain/__generated/enhanced-model.d.ts +1 -2
  879. package/dist/domain/admin-domain/__generated/model/versions/v1.d.ts +1 -1
  880. package/dist/domain/admin-domain/__generated/model/versions/v2.d.ts +1 -1
  881. package/dist/domain/admin-domain/__generated/model/versions/v3.d.ts +1 -1
  882. package/dist/domain/admin-domain/__generated/model/versions/v4.d.ts +1 -1
  883. package/dist/domain/admin-domain/__generated/model/versions/v5.d.ts +1 -1
  884. package/dist/domain/admin-domain/__generated/model/versions/v6.d.ts +2 -2
  885. package/dist/domain/admin-domain/__generated/model/versions/v6.js +1 -1
  886. package/dist/domain/admin-domain/implementation/common-admin-expressions.d.ts +26 -14
  887. package/dist/domain/admin-domain/implementation/common-admin-migrations.d.ts +1 -1
  888. package/dist/domain/admin-domain/implementation/common-admin-publish.d.ts +1 -2
  889. package/dist/domain/admin-domain/index.d.ts +9 -5
  890. package/dist/domain/admin-domain/index.js +1 -1
  891. package/dist/domain/application/GetApplicationWrapperHandler.d.ts +2 -2
  892. package/dist/domain/application/GetThemeHandler.d.ts +1 -1
  893. package/dist/domain/application/GetWebComponentOptions.d.ts +1 -1
  894. package/dist/domain/application/admin-page-factories.d.ts +1 -2
  895. package/dist/domain/application/application-config.d.ts +34 -119
  896. package/dist/domain/application/assistant/assistant-fields.d.ts +12 -0
  897. package/dist/domain/application/assistant/assistant-fields.js +1 -0
  898. package/dist/domain/application/assistant/assistant-manifest.d.ts +96 -0
  899. package/dist/domain/application/assistant/assistant-manifest.js +1 -0
  900. package/dist/domain/application/assistant/assistant-resolved-manifest.d.ts +134 -0
  901. package/dist/domain/application/assistant/assistant-value-type.d.ts +9 -0
  902. package/dist/domain/application/assistant/assistant-value-type.js +1 -0
  903. package/dist/domain/application/assistant/build-assistant-lenses.d.ts +14 -0
  904. package/dist/domain/application/assistant/build-assistant-lenses.js +5 -0
  905. package/dist/domain/application/assistant/build-assistant-manifest.d.ts +4 -0
  906. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -0
  907. package/dist/domain/application/assistant/create-assistant-execution-schema.d.ts +32 -0
  908. package/dist/domain/application/assistant/create-assistant-execution-schema.js +1 -0
  909. package/dist/domain/application/assistant/form/assistant-form-element-name.d.ts +11 -0
  910. package/dist/domain/application/assistant/form/assistant-form-element-name.js +8 -0
  911. package/dist/domain/application/assistant/form/assistant-form-elements.d.ts +174 -0
  912. package/dist/domain/application/assistant/form/assistant-form-elements.js +1 -0
  913. package/dist/domain/application/assistant/form/assistant-resource-path.d.ts +10 -0
  914. package/dist/domain/application/assistant/form/assistant-resource-path.js +1 -0
  915. package/dist/domain/application/assistant/form/index.d.ts +4 -0
  916. package/dist/domain/application/assistant/form/index.js +1 -0
  917. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +6 -0
  918. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -0
  919. package/dist/domain/application/assistant/index.d.ts +10 -0
  920. package/dist/domain/application/assistant/index.js +1 -0
  921. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.d.ts +20 -0
  922. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.js +1 -0
  923. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.d.ts +10 -0
  924. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -0
  925. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +48 -0
  926. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -0
  927. package/dist/domain/application/assistant/session-setup/create-session-assistant.d.ts +15 -0
  928. package/dist/domain/application/assistant/session-setup/create-session-assistant.js +1 -0
  929. package/dist/domain/application/assistant/session-setup/index.d.ts +4 -0
  930. package/dist/domain/application/assistant/session-setup/index.js +1 -0
  931. package/dist/domain/application/assistant-field-options.d.ts +2 -3
  932. package/dist/domain/application/assistant-mutations.d.ts +3 -5
  933. package/dist/domain/application/assistant-mutations.js +1 -1
  934. package/dist/domain/application/assistant-recipe-groups.d.ts +6 -8
  935. package/dist/domain/application/configurator-builder.d.ts +42 -18
  936. package/dist/domain/application/configurator-builder.js +1 -1
  937. package/dist/domain/application/create-initial-published-data.d.ts +6 -7
  938. package/dist/domain/application/index.d.ts +4 -7
  939. package/dist/domain/application/index.js +1 -1
  940. package/dist/domain/application/published-data/DataRowValidatorHandler.d.ts +1 -1
  941. package/dist/domain/application/published-data/FilterPublishedChunksHandler.d.ts +1 -1
  942. package/dist/domain/application/published-data/MapPublishedChunkedDataHandler.d.ts +1 -1
  943. package/dist/domain/application/published-data/MapPublishedRevisionDataHandler.d.ts +1 -1
  944. package/dist/domain/application/published-data/SheetValidatorHandler.d.ts +1 -1
  945. package/dist/domain/application/published-data/build-legend-data.d.ts +1 -1
  946. package/dist/domain/application/published-data/create-finalize-admin-domain.d.ts +1 -2
  947. package/dist/domain/application/published-data/format-field-type.d.ts +1 -1
  948. package/dist/domain/application/published-data/map-data-to-sheet.d.ts +1 -1
  949. package/dist/domain/application/published-data/map-published-chunked-data.d.ts +3 -3
  950. package/dist/domain/application/published-data/map-published-data.d.ts +7 -4
  951. package/dist/domain/application/published-data/validate-sheet-data.d.ts +1 -1
  952. package/dist/domain/application/standard-properties.js +1 -1
  953. package/dist/domain/application/web-component-property.d.ts +3 -1
  954. package/dist/domain/application/web-component-property.js +1 -1
  955. package/dist/domain/available-system-components/available-system-components.d.ts +11 -0
  956. package/dist/domain/available-system-components/available-system-components.js +1 -0
  957. package/dist/domain/available-system-components/index.d.ts +1 -0
  958. package/dist/domain/available-system-components/index.js +1 -0
  959. package/dist/domain/core/action/action-factory.d.ts +11 -0
  960. package/dist/domain/core/action/action.d.ts +71 -0
  961. package/dist/domain/core/action/index.d.ts +2 -0
  962. package/dist/domain/core/action/index.js +1 -0
  963. package/dist/domain/core/component/component-reader-types.d.ts +43 -0
  964. package/dist/domain/core/component/component-reader-types.js +1 -0
  965. package/dist/domain/core/component/debug-state-component.d.ts +14 -0
  966. package/dist/domain/core/component/debug-state-component.js +1 -0
  967. package/dist/domain/core/component/domain-component-optic.d.ts +65 -0
  968. package/dist/domain/core/component/domain-component-optic.js +16 -0
  969. package/dist/domain/core/component/drag-state-component.d.ts +16 -0
  970. package/dist/domain/core/component/drag-state-component.js +1 -0
  971. package/dist/domain/core/component/export-state-component.d.ts +15 -0
  972. package/dist/domain/core/component/export-state-component.js +1 -0
  973. package/dist/domain/core/component/fullscreen-state-component.d.ts +14 -0
  974. package/dist/domain/core/component/fullscreen-state-component.js +1 -0
  975. package/dist/domain/core/component/group-components-by-entity-id-and-name.d.ts +8 -0
  976. package/dist/domain/core/component/group-components-by-entity-id-and-name.js +1 -0
  977. package/dist/domain/core/component/hover-state-component.d.ts +14 -0
  978. package/dist/domain/core/component/hover-state-component.js +1 -0
  979. package/dist/domain/core/component/index.d.ts +18 -0
  980. package/dist/domain/core/component/index.js +1 -0
  981. package/dist/domain/core/component/legacy-filter.d.ts +498 -0
  982. package/dist/domain/core/component/navigation-state-component.d.ts +15 -0
  983. package/dist/domain/core/component/navigation-state-component.js +1 -0
  984. package/dist/domain/core/component/selection-state-component.d.ts +14 -0
  985. package/dist/domain/core/component/selection-state-component.js +1 -0
  986. package/dist/domain/core/component/system-component-builder.d.ts +11 -0
  987. package/dist/domain/core/component/system-component-builder.js +1 -0
  988. package/dist/domain/core/component/system-component-filter.d.ts +811 -0
  989. package/dist/domain/core/component/system-virtual-entity.js +1 -0
  990. package/dist/domain/core/component/tool-state-component.d.ts +14 -0
  991. package/dist/domain/core/component/tool-state-component.js +1 -0
  992. package/dist/domain/core/component/updates.d.ts +123 -0
  993. package/dist/domain/core/component/view-state-component.d.ts +14 -0
  994. package/dist/domain/core/component/view-state-component.js +1 -0
  995. package/dist/domain/core/component/viewport-state-component.d.ts +29 -0
  996. package/dist/domain/core/component/viewport-state-component.js +1 -0
  997. package/dist/domain/core/data-schema/data-cell-value.d.ts +4 -0
  998. package/dist/domain/core/data-schema/data-cell-value.js +1 -0
  999. package/dist/domain/core/data-schema/data-schema-array-field.d.ts +5 -0
  1000. package/dist/domain/core/data-schema/data-schema-array-field.js +1 -0
  1001. package/dist/domain/core/data-schema/data-schema-field-object.d.ts +4 -0
  1002. package/dist/domain/core/data-schema/data-schema-field-object.js +1 -0
  1003. package/dist/domain/core/data-schema/data-schema-field.d.ts +2 -0
  1004. package/dist/domain/core/data-schema/data-schema-field.js +1 -0
  1005. package/dist/domain/core/data-schema/data-schema-localized-field.d.ts +4 -0
  1006. package/dist/domain/core/data-schema/data-schema-localized-field.js +1 -0
  1007. package/dist/domain/core/data-schema/data-schema-primitive-field.d.ts +5 -0
  1008. package/dist/domain/core/data-schema/data-schema-primitive-field.js +1 -0
  1009. package/dist/domain/core/data-schema/data-schema.d.ts +2 -0
  1010. package/dist/domain/core/data-schema/data-schema.js +1 -0
  1011. package/dist/domain/core/data-schema/index.d.ts +7 -0
  1012. package/dist/domain/core/data-schema/index.js +1 -0
  1013. package/dist/domain/core/decoder/create-decoder.d.ts +6 -0
  1014. package/dist/domain/core/decoder/create-decoder.js +1 -0
  1015. package/dist/domain/core/decoder/decoder.d.ts +6 -0
  1016. package/dist/domain/core/decoder/decoder.js +1 -0
  1017. package/dist/domain/core/decoder/index.d.ts +2 -0
  1018. package/dist/domain/core/decoder/index.js +1 -0
  1019. package/dist/domain/core/domain-factory.d.ts +4 -5
  1020. package/dist/domain/core/domain-factory.js +1 -1
  1021. package/dist/domain/core/domain.d.ts +4 -5
  1022. package/dist/domain/core/domain.js +1 -1
  1023. package/dist/domain/core/emission/index.d.ts +8 -0
  1024. package/dist/domain/core/emission/index.js +1 -0
  1025. package/dist/domain/core/emission/reset-state-emission.d.ts +12 -0
  1026. package/dist/domain/core/emission/reset-state-emission.js +1 -0
  1027. package/dist/domain/core/emission/state-emission.d.ts +4 -0
  1028. package/dist/domain/core/emission/state-emission.js +1 -0
  1029. package/dist/domain/core/emission/state-update-emission.d.ts +14 -0
  1030. package/dist/domain/core/emission/state-update-emission.js +1 -0
  1031. package/dist/domain/core/emission/state-validation-result.d.ts +18 -0
  1032. package/dist/domain/core/emission/state-validation-result.js +1 -0
  1033. package/dist/domain/core/emission/transformation-log.d.ts +2 -0
  1034. package/dist/domain/core/emission/transformation-log.js +1 -0
  1035. package/dist/domain/core/emission/transformer-log-entry.d.ts +6 -0
  1036. package/dist/domain/core/emission/transformer-log-entry.js +1 -0
  1037. package/dist/domain/core/emission/transformer-log.d.ts +11 -0
  1038. package/dist/domain/core/emission/transformer-log.js +1 -0
  1039. package/dist/domain/core/emission/transformer-phase.d.ts +1 -0
  1040. package/dist/domain/core/emission/transformer-phase.js +1 -0
  1041. package/dist/domain/core/expression/aliased-expressions.d.ts +10 -0
  1042. package/dist/domain/core/expression/aliased-expressions.js +1 -0
  1043. package/dist/domain/core/expression/constant-expressions.d.ts +16 -0
  1044. package/dist/domain/core/expression/constant-expressions.js +1 -0
  1045. package/dist/domain/core/expression/custom-expression.d.ts +25 -0
  1046. package/dist/domain/core/expression/custom-expression.js +1 -0
  1047. package/dist/domain/core/expression/expression.d.ts +46 -0
  1048. package/dist/domain/core/expression/expression.js +1 -0
  1049. package/dist/domain/core/expression/index.d.ts +4 -0
  1050. package/dist/domain/core/expression/index.js +1 -0
  1051. package/dist/domain/core/index.d.ts +13 -17
  1052. package/dist/domain/core/index.js +1 -1
  1053. package/dist/domain/core/invariant/builtin-invariant.d.ts +5 -0
  1054. package/dist/domain/core/invariant/custom-invariants.d.ts +13 -0
  1055. package/dist/domain/core/invariant/custom-invariants.js +1 -0
  1056. package/dist/domain/core/invariant/index.d.ts +5 -0
  1057. package/dist/domain/core/invariant/index.js +1 -0
  1058. package/dist/domain/core/invariant/invariants.d.ts +10 -0
  1059. package/dist/domain/core/invariant/invariants.js +1 -0
  1060. package/dist/domain/core/invariant/violation-component.js +1 -0
  1061. package/dist/domain/core/invariant/violation.d.ts +133 -0
  1062. package/dist/domain/core/invariant/violation.js +1 -0
  1063. package/dist/domain/core/model/component.d.ts +46 -0
  1064. package/dist/domain/core/model/index.d.ts +6 -0
  1065. package/dist/domain/core/model/index.js +1 -0
  1066. package/dist/domain/core/model/model.d.ts +127 -0
  1067. package/dist/domain/core/model/reflection.d.ts +114 -0
  1068. package/dist/domain/core/model/reflection.js +1 -0
  1069. package/dist/domain/core/recipe/index.d.ts +1 -0
  1070. package/dist/domain/core/recipe/index.js +1 -0
  1071. package/dist/domain/core/recipe/recipes.d.ts +23 -0
  1072. package/dist/domain/core/recipe/recipes.js +1 -0
  1073. package/dist/domain/core/relation/all-of-type-relation.d.ts +19 -0
  1074. package/dist/domain/core/relation/all-of-type-relation.js +1 -0
  1075. package/dist/domain/core/relation/component-factories.d.ts +14 -0
  1076. package/dist/domain/core/relation/component-factories.js +1 -0
  1077. package/dist/domain/core/relation/composed-of.d.ts +12 -0
  1078. package/dist/domain/core/relation/composed-of.js +1 -0
  1079. package/dist/domain/core/relation/direct-relation.d.ts +17 -0
  1080. package/dist/domain/core/relation/index.d.ts +8 -0
  1081. package/dist/domain/core/relation/index.js +1 -0
  1082. package/dist/domain/core/relation/indirect-relation.d.ts +25 -0
  1083. package/dist/domain/core/relation/indirect-relation.js +1 -0
  1084. package/dist/domain/core/relation/reference-component.d.ts +17 -0
  1085. package/dist/domain/core/relation/reference-component.js +1 -0
  1086. package/dist/domain/core/relation/reference-field.d.ts +7 -0
  1087. package/dist/domain/core/relation/reference-field.js +1 -0
  1088. package/dist/domain/core/relation/relation-factory.d.ts +22 -0
  1089. package/dist/domain/core/relation/relation-factory.js +1 -0
  1090. package/dist/domain/core/schema/enhanced-json-schema.js +1 -0
  1091. package/dist/domain/core/schema/extended-schema-validator.js +1 -0
  1092. package/dist/domain/core/schema/index.d.ts +3 -0
  1093. package/dist/domain/core/schema/index.js +1 -0
  1094. package/dist/domain/core/schema/schema-validator.js +1 -0
  1095. package/dist/domain/core/state/id-sequence.d.ts +15 -0
  1096. package/dist/domain/core/state/id-sequence.js +1 -0
  1097. package/dist/domain/core/state/index.d.ts +3 -0
  1098. package/dist/domain/core/state/index.js +1 -0
  1099. package/dist/domain/core/state/migrations.d.ts +67 -0
  1100. package/dist/domain/core/state/migrations.js +1 -0
  1101. package/dist/domain/core/state/state.d.ts +9 -0
  1102. package/dist/domain/domain-builder/domain-builder.d.ts +46 -0
  1103. package/dist/domain/domain-builder/domain-builder.js +1 -0
  1104. package/dist/domain/domain-builder/index.d.ts +1 -0
  1105. package/dist/domain/domain-builder/index.js +1 -0
  1106. package/dist/domain/domain-context/action-system/action-system.d.ts +2 -4
  1107. package/dist/domain/domain-context/action-system/action-system.js +1 -1
  1108. package/dist/domain/domain-context/action-system/index.d.ts +1 -0
  1109. package/dist/domain/domain-context/action-system/index.js +1 -0
  1110. package/dist/domain/domain-context/analytics-system/index.d.ts +2 -0
  1111. package/dist/domain/domain-context/analytics-system/index.js +1 -0
  1112. package/dist/domain/domain-context/create-transformer.d.ts +2 -2
  1113. package/dist/domain/domain-context/dimension-system/dimension-state.js +1 -1
  1114. package/dist/domain/domain-context/dimension-system/dimension-system.d.ts +3 -4
  1115. package/dist/domain/domain-context/dimension-system/dimension-system.js +1 -1
  1116. package/dist/domain/domain-context/dimension-system/index.d.ts +1 -0
  1117. package/dist/domain/domain-context/dimension-system/index.js +1 -0
  1118. package/dist/domain/domain-context/domain-context-systems.d.ts +8 -10
  1119. package/dist/domain/domain-context/index.d.ts +8 -18
  1120. package/dist/domain/domain-context/index.js +1 -1
  1121. package/dist/domain/domain-context/navigation-system/index.d.ts +3 -0
  1122. package/dist/domain/domain-context/navigation-system/index.js +1 -0
  1123. package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +5 -8
  1124. package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
  1125. package/dist/domain/domain-context/navigation-system/navigation-updates.d.ts +1 -12
  1126. package/dist/domain/domain-context/navigation-system/navigation-updates.js +1 -1
  1127. package/dist/domain/domain-context/navigation-system/selection-transformers.d.ts +2 -2
  1128. package/dist/domain/domain-context/navigation-system/selection-transformers.js +1 -1
  1129. package/dist/domain/domain-context/recipe-system/index.d.ts +1 -0
  1130. package/dist/domain/domain-context/recipe-system/index.js +1 -0
  1131. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.d.ts +2 -4
  1132. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.js +1 -1
  1133. package/dist/domain/domain-context/relation-transformers/cascade-deletes.d.ts +3 -3
  1134. package/dist/domain/domain-context/relation-transformers/cascade-deletes.js +1 -1
  1135. package/dist/domain/domain-context/relation-transformers/cascade-ref-pruning.d.ts +3 -3
  1136. package/dist/domain/domain-context/relation-transformers/cascade-ref-pruning.js +1 -1
  1137. package/dist/domain/domain-context/relation-transformers/create-entity-refs.d.ts +3 -3
  1138. package/dist/domain/domain-context/relation-transformers/create-entity-refs.js +2 -2
  1139. package/dist/domain/domain-context/relation-transformers/index.d.ts +4 -0
  1140. package/dist/domain/domain-context/relation-transformers/index.js +1 -0
  1141. package/dist/domain/domain-context/relation-transformers/replace-refs.d.ts +3 -3
  1142. package/dist/domain/domain-context/relation-transformers/replace-refs.js +1 -1
  1143. package/dist/domain/domain-context/store-system/apply-updates.d.ts +1 -3
  1144. package/dist/domain/domain-context/store-system/apply-updates.js +1 -1
  1145. package/dist/domain/domain-context/store-system/index.d.ts +4 -0
  1146. package/dist/domain/domain-context/store-system/index.js +1 -0
  1147. package/dist/domain/domain-context/store-system/next-domain-entity-id.d.ts +1 -13
  1148. package/dist/domain/domain-context/store-system/next-domain-entity-id.js +1 -1
  1149. package/dist/domain/domain-context/store-system/reconcile-projected-entities.d.ts +1 -2
  1150. package/dist/domain/domain-context/store-system/reconcile-projected-entities.js +1 -1
  1151. package/dist/domain/domain-context/store-system/store-system.d.ts +7 -39
  1152. package/dist/domain/domain-context/store-system/store-system.js +2 -2
  1153. package/dist/domain/domain-context/store-system/system-state.d.ts +2 -4
  1154. package/dist/domain/domain-context/store-system/system-state.js +1 -1
  1155. package/dist/domain/domain-context/transformers/actions-builder.d.ts +1 -2
  1156. package/dist/domain/domain-context/transformers/actions-builder.js +1 -1
  1157. package/dist/domain/domain-context/transformers/auto-snap-transformer.d.ts +6 -10
  1158. package/dist/domain/domain-context/transformers/auto-snap-transformer.js +1 -1
  1159. package/dist/domain/domain-context/transformers/chain-builder.d.ts +3 -3
  1160. package/dist/domain/domain-context/transformers/context.d.ts +2 -7
  1161. package/dist/domain/domain-context/transformers/context.js +1 -1
  1162. package/dist/domain/domain-context/transformers/entity-builder.d.ts +1 -5
  1163. package/dist/domain/domain-context/transformers/entity-builder.js +1 -1
  1164. package/dist/domain/domain-context/transformers/index.d.ts +1 -1
  1165. package/dist/domain/domain-context/transformers/index.js +1 -1
  1166. package/dist/domain/domain-context/transformers/then-builder.d.ts +1 -2
  1167. package/dist/domain/domain-context/transformers/then-builder.js +1 -1
  1168. package/dist/domain/domain-context/transformers/when-builder.d.ts +3 -9
  1169. package/dist/domain/domain-context/transformers/when-builder.js +1 -1
  1170. package/dist/domain/domain-context/undo-system.d.ts +29 -3
  1171. package/dist/domain/domain-context/undo-system.js +1 -1
  1172. package/dist/domain/domain-runtime/access/selectors.d.ts +9 -0
  1173. package/dist/domain/domain-runtime/access/selectors.js +1 -1
  1174. package/dist/domain/domain-runtime/access/types.d.ts +2 -0
  1175. package/dist/domain/domain-runtime/access/types.js +1 -1
  1176. package/dist/domain/domain-runtime/application.d.ts +39 -0
  1177. package/dist/domain/domain-runtime/application.js +1 -0
  1178. package/dist/domain/domain-runtime/domain-context/action-context.d.ts +11 -0
  1179. package/dist/domain/domain-runtime/domain-context/action-context.js +1 -0
  1180. package/dist/domain/domain-runtime/domain-context/component-reader.d.ts +1 -4
  1181. package/dist/domain/domain-runtime/domain-context/component-reader.js +1 -1
  1182. package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
  1183. package/dist/domain/domain-runtime/domain-context/expression-context.d.ts +8 -0
  1184. package/dist/domain/domain-runtime/domain-context/expression-context.js +1 -0
  1185. package/dist/domain/domain-runtime/domain-context/index.d.ts +3 -0
  1186. package/dist/domain/domain-runtime/domain-context/runtime-expression-context.d.ts +18 -0
  1187. package/dist/domain/domain-runtime/domain-context/runtime-expression-context.js +1 -0
  1188. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +20 -25
  1189. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  1190. package/dist/domain/domain-runtime/domain-context/types.d.ts +4 -1
  1191. package/dist/domain/domain-runtime/domain-runtime.d.ts +132 -76
  1192. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  1193. package/dist/domain/domain-runtime/environment/initialize.d.ts +1 -1
  1194. package/dist/domain/domain-runtime/environment/types.d.ts +1 -1
  1195. package/dist/domain/domain-runtime/errors/implementation-error-collector.d.ts +21 -0
  1196. package/dist/domain/domain-runtime/errors/implementation-error-collector.js +1 -0
  1197. package/dist/domain/domain-runtime/errors/implementation-error.d.ts +46 -0
  1198. package/dist/domain/domain-runtime/errors/implementation-error.js +1 -0
  1199. package/dist/domain/domain-runtime/errors/implementation-errors.d.ts +13 -0
  1200. package/dist/domain/domain-runtime/errors/implementation-errors.js +1 -0
  1201. package/dist/domain/domain-runtime/errors/index.d.ts +4 -0
  1202. package/dist/domain/domain-runtime/errors/index.js +1 -0
  1203. package/dist/domain/domain-runtime/errors/to-implementation-errors.d.ts +10 -0
  1204. package/dist/domain/domain-runtime/errors/to-implementation-errors.js +1 -0
  1205. package/dist/domain/domain-runtime/index.d.ts +2 -0
  1206. package/dist/domain/domain-runtime/index.js +1 -1
  1207. package/dist/domain/domain-runtime/spec/create-violation-expressions.d.ts +24 -0
  1208. package/dist/domain/domain-runtime/spec/create-violation-expressions.js +1 -0
  1209. package/dist/domain/domain-runtime/spec/index.d.ts +5 -0
  1210. package/dist/domain/domain-runtime/spec/index.js +1 -1
  1211. package/dist/domain/domain-runtime/spec/initialize.d.ts +11 -0
  1212. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  1213. package/dist/domain/domain-runtime/spec/memoize-expression.d.ts +16 -0
  1214. package/dist/domain/domain-runtime/spec/module-checks/element-registration.d.ts +125 -0
  1215. package/dist/domain/domain-runtime/spec/module-checks/element-registration.js +1 -0
  1216. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.d.ts +12 -0
  1217. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.js +1 -0
  1218. package/dist/domain/domain-runtime/spec/module-checks/handler-registration.d.ts +34 -0
  1219. package/dist/domain/domain-runtime/spec/module-checks/handler-registration.js +1 -0
  1220. package/dist/domain/domain-runtime/spec/module-checks/index.d.ts +10 -0
  1221. package/dist/domain/domain-runtime/spec/module-checks/index.js +1 -0
  1222. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.d.ts +23 -0
  1223. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.js +1 -0
  1224. package/dist/domain/domain-runtime/spec/module-checks/project-modules.d.ts +32 -0
  1225. package/dist/domain/domain-runtime/spec/module-checks/project-modules.js +1 -0
  1226. package/dist/domain/domain-runtime/spec/module-checks/resolve-action-modules.d.ts +4 -0
  1227. package/dist/domain/domain-runtime/spec/module-checks/resolve-action-modules.js +1 -0
  1228. package/dist/domain/domain-runtime/spec/module-checks/resolve-component-optic-modules.d.ts +4 -0
  1229. package/dist/domain/domain-runtime/spec/module-checks/resolve-component-optic-modules.js +1 -0
  1230. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.d.ts +14 -0
  1231. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.js +1 -0
  1232. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.d.ts +22 -0
  1233. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.js +1 -0
  1234. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.d.ts +6 -0
  1235. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.js +1 -0
  1236. package/dist/domain/domain-runtime/spec/prepare-action-implementations.d.ts +15 -0
  1237. package/dist/domain/domain-runtime/spec/prepare-action-implementations.js +5 -0
  1238. package/dist/domain/domain-runtime/spec/prepare-domain-expressions.d.ts +16 -0
  1239. package/dist/domain/domain-runtime/spec/selectors.d.ts +10 -9
  1240. package/dist/domain/domain-runtime/spec/selectors.js +1 -1
  1241. package/dist/domain/domain-runtime/spec/types.d.ts +8 -6
  1242. package/dist/domain/domain-runtime/web-component/actions.d.ts +3 -0
  1243. package/dist/domain/domain-runtime/web-component/actions.js +1 -1
  1244. package/dist/domain/domain-runtime/web-component/initialize.d.ts +1 -0
  1245. package/dist/domain/domain-runtime/web-component/initialize.js +1 -1
  1246. package/dist/domain/domain-runtime/web-component/selectors.d.ts +2 -0
  1247. package/dist/domain/domain-runtime/web-component/selectors.js +1 -1
  1248. package/dist/domain/domain-runtime/web-component/types.d.ts +6 -3
  1249. package/dist/domain/extensions/angle-indicator.d.ts +21 -0
  1250. package/dist/domain/extensions/angle-indicator.js +1 -0
  1251. package/dist/domain/extensions/attribute-switch.d.ts +8 -0
  1252. package/dist/domain/extensions/attribute-switch.js +1 -0
  1253. package/dist/domain/extensions/autorotate-camera-component.d.ts +19 -0
  1254. package/dist/domain/extensions/autorotate-camera-component.js +1 -0
  1255. package/dist/domain/extensions/basic-sidebar-footer.d.ts +8 -0
  1256. package/dist/domain/extensions/basic-sidebar-footer.js +1 -0
  1257. package/dist/domain/extensions/camera-based-hidden-entity-object.js +1 -0
  1258. package/dist/domain/extensions/camera-based-hidden-entity.js +1 -0
  1259. package/dist/domain/extensions/canvas-config.d.ts +87 -0
  1260. package/dist/domain/extensions/canvas-config.js +1 -0
  1261. package/dist/domain/extensions/canvas-custom-environment.js +1 -0
  1262. package/dist/domain/extensions/canvas-padding.d.ts +25 -0
  1263. package/dist/domain/extensions/canvas-padding.js +1 -0
  1264. package/dist/domain/extensions/canvas-preset-environment.d.ts +37 -0
  1265. package/dist/domain/extensions/canvas-preset-environment.js +1 -0
  1266. package/dist/domain/extensions/child-entity-recipe-hierarchy.d.ts +21 -0
  1267. package/dist/domain/extensions/child-entity-recipe-hierarchy.js +1 -0
  1268. package/dist/domain/extensions/color-value.js +1 -0
  1269. package/dist/domain/extensions/common/angle-indicator-schema.d.ts +292 -0
  1270. package/dist/domain/extensions/common/angle-indicator-schema.js +1 -0
  1271. package/dist/domain/extensions/common/dimension-indicator-schema.d.ts +607 -0
  1272. package/dist/domain/extensions/common/dimension-indicator-schema.js +1 -0
  1273. package/dist/domain/extensions/common/index.d.ts +4 -0
  1274. package/dist/domain/extensions/common/index.js +1 -0
  1275. package/dist/domain/extensions/custom-header.d.ts +11 -0
  1276. package/dist/domain/extensions/custom-header.js +1 -0
  1277. package/dist/domain/extensions/custom-price-footer.js +1 -0
  1278. package/dist/domain/extensions/custom-sidebar-footer.d.ts +11 -0
  1279. package/dist/domain/extensions/custom-sidebar-footer.js +1 -0
  1280. package/dist/domain/extensions/dimension-indicator.d.ts +31 -0
  1281. package/dist/domain/extensions/dimension-indicator.js +1 -0
  1282. package/dist/domain/extensions/editable-angle-indicator.d.ts +39 -0
  1283. package/dist/domain/extensions/editable-angle-indicator.js +1 -0
  1284. package/dist/domain/extensions/editable-distance-dimension-indicator.d.ts +43 -0
  1285. package/dist/domain/extensions/editable-distance-dimension-indicator.js +1 -0
  1286. package/dist/domain/extensions/editable-offset-indicator.d.ts +42 -0
  1287. package/dist/domain/extensions/editable-offset-indicator.js +1 -0
  1288. package/dist/domain/extensions/editable-size-indicator.d.ts +39 -0
  1289. package/dist/domain/extensions/editable-size-indicator.js +1 -0
  1290. package/dist/domain/extensions/entity-header.d.ts +22 -0
  1291. package/dist/domain/extensions/entity-header.js +1 -0
  1292. package/dist/domain/extensions/exit-tool-mode-fab.d.ts +25 -0
  1293. package/dist/domain/extensions/exit-tool-mode-fab.js +1 -0
  1294. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +30 -0
  1295. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -0
  1296. package/dist/domain/extensions/export-images/client-side-image.d.ts +14 -0
  1297. package/dist/domain/extensions/export-images/client-side-image.js +1 -0
  1298. package/dist/domain/extensions/export-images/index.d.ts +3 -0
  1299. package/dist/domain/extensions/export-images/index.js +1 -0
  1300. package/dist/domain/extensions/export-images/save-template-thumbnail.d.ts +14 -0
  1301. package/dist/domain/extensions/export-images/save-template-thumbnail.js +1 -0
  1302. package/dist/domain/extensions/finalize-action.d.ts +20 -0
  1303. package/dist/domain/extensions/finalize-action.js +1 -0
  1304. package/dist/domain/extensions/finalize-component.js +1 -0
  1305. package/dist/domain/extensions/fit-selection-orthographic-camera-component.js +1 -0
  1306. package/dist/domain/extensions/fit-selection-perspective-camera-component.js +1 -0
  1307. package/dist/domain/extensions/fixed-header.d.ts +10 -0
  1308. package/dist/domain/extensions/fixed-header.js +1 -0
  1309. package/dist/domain/extensions/floating-header.d.ts +10 -0
  1310. package/dist/domain/extensions/floating-header.js +1 -0
  1311. package/dist/domain/extensions/hidden-header.d.ts +8 -0
  1312. package/dist/domain/extensions/hidden-header.js +1 -0
  1313. package/dist/domain/extensions/hidden-sidebar-footer.d.ts +21 -0
  1314. package/dist/domain/extensions/hidden-sidebar-footer.js +1 -0
  1315. package/dist/domain/extensions/horizontal-tabs.d.ts +28 -0
  1316. package/dist/domain/extensions/horizontal-tabs.js +1 -0
  1317. package/dist/domain/extensions/index.d.ts +68 -0
  1318. package/dist/domain/extensions/index.js +1 -0
  1319. package/dist/domain/extensions/list-selector-dimension-indicator.d.ts +31 -0
  1320. package/dist/domain/extensions/list-selector-dimension-indicator.js +1 -0
  1321. package/dist/domain/extensions/multilingual-text-value.js +1 -0
  1322. package/dist/domain/extensions/navigation-steps.d.ts +19 -0
  1323. package/dist/domain/extensions/navigation-steps.js +1 -0
  1324. package/dist/domain/extensions/offset-anchors.d.ts +20 -0
  1325. package/dist/domain/extensions/offset-anchors.js +1 -0
  1326. package/dist/domain/extensions/offset-indicator.d.ts +83 -0
  1327. package/dist/domain/extensions/offset-indicator.js +1 -0
  1328. package/dist/domain/extensions/offset.d.ts +31 -0
  1329. package/dist/domain/extensions/offset.js +1 -0
  1330. package/dist/domain/extensions/other-action.d.ts +14 -0
  1331. package/dist/domain/extensions/other-action.js +1 -0
  1332. package/dist/domain/extensions/property-page.d.ts +16 -0
  1333. package/dist/domain/extensions/property-page.js +1 -0
  1334. package/dist/domain/extensions/read-sidebar-footer.d.ts +8 -0
  1335. package/dist/domain/extensions/read-sidebar-footer.js +1 -0
  1336. package/dist/domain/extensions/replace-entity-recipe-hierarchy.d.ts +21 -0
  1337. package/dist/domain/extensions/replace-entity-recipe-hierarchy.js +1 -0
  1338. package/dist/domain/extensions/rotatable.js +1 -0
  1339. package/dist/domain/extensions/rotation-handle.d.ts +53 -0
  1340. package/dist/domain/extensions/rotation-handle.js +1 -0
  1341. package/dist/domain/extensions/scene-entity-add-fab.d.ts +32 -0
  1342. package/dist/domain/extensions/scene-entity-add-fab.js +1 -0
  1343. package/dist/domain/extensions/scene-entity-animation.js +1 -0
  1344. package/dist/domain/extensions/scene-entity-control.js +1 -0
  1345. package/dist/domain/extensions/scene-entity-delete-fab.d.ts +19 -0
  1346. package/dist/domain/extensions/scene-entity-delete-fab.js +1 -0
  1347. package/dist/domain/extensions/scene-entity-floor-object.js +1 -0
  1348. package/dist/domain/extensions/scene-entity-html-hotspot.d.ts +27 -0
  1349. package/dist/domain/extensions/scene-entity-html-hotspot.js +1 -0
  1350. package/dist/domain/extensions/scene-entity-navigation-hotspot.d.ts +20 -0
  1351. package/dist/domain/extensions/scene-entity-navigation-hotspot.js +1 -0
  1352. package/dist/domain/extensions/scene-entity-object-html-hotspot.d.ts +31 -0
  1353. package/dist/domain/extensions/scene-entity-object-html-hotspot.js +1 -0
  1354. package/dist/domain/extensions/scene-entity-select-hotspot.d.ts +5 -0
  1355. package/dist/domain/extensions/scene-entity-select-hotspot.js +1 -0
  1356. package/dist/domain/extensions/scene-entity-wall-object.js +1 -0
  1357. package/dist/domain/extensions/selectable-component.js +1 -0
  1358. package/dist/domain/extensions/sidebar-tabs.d.ts +29 -0
  1359. package/dist/domain/extensions/sidebar-tabs.js +1 -0
  1360. package/dist/domain/extensions/simple-summary.js +1 -0
  1361. package/dist/domain/extensions/size.d.ts +21 -0
  1362. package/dist/domain/extensions/size.js +1 -0
  1363. package/dist/domain/extensions/sketching-draw.d.ts +17 -0
  1364. package/dist/domain/extensions/sketching-draw.js +1 -0
  1365. package/dist/domain/extensions/sketching-edit.d.ts +28 -0
  1366. package/dist/domain/extensions/sketching-edit.js +1 -0
  1367. package/dist/domain/extensions/summary-component.js +1 -0
  1368. package/dist/domain/extensions/text-value.js +1 -0
  1369. package/dist/domain/extensions/tool-controls.js +1 -0
  1370. package/dist/domain/extensions/tool-menu-fab.d.ts +40 -0
  1371. package/dist/domain/extensions/tool-menu-fab.js +1 -0
  1372. package/dist/domain/extensions/toolbar.d.ts +13 -0
  1373. package/dist/domain/extensions/toolbar.js +1 -0
  1374. package/dist/domain/extensions/universal-sidebar-footer.d.ts +12 -0
  1375. package/dist/domain/extensions/universal-sidebar-footer.js +1 -0
  1376. package/dist/domain/extensions/view-controls.js +1 -0
  1377. package/dist/domain/index.d.ts +4 -33
  1378. package/dist/domain/index.js +1 -1
  1379. package/dist/domain/mocks/create-mock-domain-context.d.ts +1 -1
  1380. package/dist/domain/mocks/create-mock-domain-runtime-services.d.ts +1 -1
  1381. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +39 -21
  1382. package/dist/domain/mocks/create-mock-domain-runtime.js +1 -1
  1383. package/dist/domain/mocks/create-mock-domain.d.ts +1 -1
  1384. package/dist/domain/mocks/create-mock-domain.js +1 -1
  1385. package/dist/domain/mocks/create-mock-state.d.ts +2 -2
  1386. package/dist/domain/mocks/create-test-application-config.d.ts +59 -0
  1387. package/dist/domain/mocks/create-test-application-config.js +1 -0
  1388. package/dist/domain/mocks/index.d.ts +1 -0
  1389. package/dist/domain/mocks/index.js +1 -1
  1390. package/dist/domain/projections/blender-projections/blender-projections.d.ts +2 -3
  1391. package/dist/domain/projections/blender-projections/blender-projections.js +1 -1
  1392. package/dist/domain/projections/blender-projections/camera.d.ts +2 -2
  1393. package/dist/domain/projections/collision-projections.d.ts +1 -1
  1394. package/dist/domain/projections/composition-projections.d.ts +1 -1
  1395. package/dist/domain/projections/composition-projections.js +1 -1
  1396. package/dist/domain/projections/constraint-projections.d.ts +1 -1
  1397. package/dist/domain/projections/index.d.ts +1 -1
  1398. package/dist/domain/projections/position-projections.d.ts +1 -1
  1399. package/dist/domain/projections/projected-entities-projections.d.ts +2 -3
  1400. package/dist/domain/projections/snap-matching.d.ts +1 -2
  1401. package/dist/domain/projections/snap-utils.d.ts +1 -2
  1402. package/dist/domain/projections/snapping-projections.d.ts +1 -1
  1403. package/dist/domain/projections/validation-projections.d.ts +3 -20
  1404. package/dist/domain/projections/validation-projections.js +1 -1
  1405. package/dist/domain/sketching/sketching-projections.d.ts +1 -1
  1406. package/dist/domain/spec/application/admin-pages-section.d.ts +29 -0
  1407. package/dist/domain/spec/application/admin-pages-section.js +1 -0
  1408. package/dist/domain/spec/application/admin-pages.d.ts +26 -0
  1409. package/dist/domain/spec/application/admin-pages.js +1 -0
  1410. package/dist/domain/spec/application/admin-states.d.ts +5 -0
  1411. package/dist/domain/spec/application/admin-states.js +1 -0
  1412. package/dist/domain/spec/application/configurator-states.d.ts +8 -0
  1413. package/dist/domain/spec/application/configurator-states.js +1 -0
  1414. package/dist/domain/spec/application/index.d.ts +5 -0
  1415. package/dist/domain/spec/application/index.js +1 -0
  1416. package/dist/domain/spec/components/bindings/index.d.ts +2 -0
  1417. package/dist/domain/spec/components/bindings/index.js +1 -0
  1418. package/dist/domain/spec/components/bindings/read-binding.d.ts +13 -0
  1419. package/dist/domain/spec/components/bindings/read-binding.js +1 -0
  1420. package/dist/domain/spec/components/bindings/write-binding.d.ts +32 -0
  1421. package/dist/domain/spec/components/bindings/write-binding.js +1 -0
  1422. package/dist/domain/spec/components/component-entry.d.ts +90 -0
  1423. package/dist/domain/spec/components/component-entry.js +1 -0
  1424. package/dist/domain/spec/components/component-filter.d.ts +54 -0
  1425. package/dist/domain/spec/components/component-filter.js +1 -0
  1426. package/dist/domain/spec/components/component-filters.d.ts +10 -0
  1427. package/dist/domain/spec/components/component-filters.js +1 -0
  1428. package/dist/domain/spec/components/components.d.ts +4 -0
  1429. package/dist/domain/spec/components/components.js +1 -0
  1430. package/dist/domain/spec/components/index.d.ts +6 -0
  1431. package/dist/domain/spec/components/index.js +1 -0
  1432. package/dist/domain/spec/components/sdk-code-ref.d.ts +9 -0
  1433. package/dist/domain/spec/enhanced-json/enhanced-json-value.d.ts +30 -0
  1434. package/dist/domain/spec/enhanced-json/enhanced-json-value.js +1 -0
  1435. package/dist/domain/spec/enhanced-json/index.d.ts +1 -0
  1436. package/dist/domain/spec/enhanced-json/index.js +1 -0
  1437. package/dist/domain/spec/expressions/expression.d.ts +49 -0
  1438. package/dist/domain/spec/expressions/expression.js +1 -0
  1439. package/dist/domain/spec/expressions/expressions.d.ts +27 -0
  1440. package/dist/domain/spec/expressions/expressions.js +1 -0
  1441. package/dist/domain/spec/expressions/index.d.ts +5 -0
  1442. package/dist/domain/spec/expressions/index.js +1 -0
  1443. package/dist/domain/spec/expressions/memo-eval-plan.d.ts +70 -0
  1444. package/dist/domain/spec/expressions/memo-eval-plan.js +1 -0
  1445. package/dist/domain/spec/expressions/relation-expression-params.d.ts +11 -0
  1446. package/dist/domain/spec/expressions/relation-expression-params.js +1 -0
  1447. package/dist/domain/spec/expressions/sdk-expression-implementation.d.ts +24 -0
  1448. package/dist/domain/spec/index.d.ts +9 -0
  1449. package/dist/domain/spec/index.js +1 -0
  1450. package/dist/domain/spec/invariants/index.d.ts +2 -0
  1451. package/dist/domain/spec/invariants/index.js +1 -0
  1452. package/dist/domain/spec/invariants/invariant.d.ts +24 -0
  1453. package/dist/domain/spec/invariants/invariant.js +1 -0
  1454. package/dist/domain/spec/invariants/invariants.d.ts +14 -0
  1455. package/dist/domain/spec/invariants/invariants.js +1 -0
  1456. package/dist/domain/spec/json-schema.d.ts +52 -0
  1457. package/dist/domain/spec/json-schema.js +1 -0
  1458. package/dist/domain/spec/markers/index.d.ts +3 -0
  1459. package/dist/domain/spec/markers/index.js +1 -0
  1460. package/dist/domain/spec/markers/msg-marker.d.ts +28 -0
  1461. package/dist/domain/spec/markers/msg-marker.js +1 -0
  1462. package/dist/domain/spec/model/aliases.d.ts +9 -0
  1463. package/dist/domain/spec/model/aliases.js +1 -0
  1464. package/dist/domain/spec/model/common-types.d.ts +15 -0
  1465. package/dist/domain/spec/model/common-types.js +1 -0
  1466. package/dist/domain/spec/model/defaults.d.ts +33 -0
  1467. package/dist/domain/spec/model/defaults.js +1 -0
  1468. package/dist/domain/spec/model/entity-types.d.ts +8 -0
  1469. package/dist/domain/spec/model/entity-types.js +1 -0
  1470. package/dist/domain/spec/model/index.d.ts +7 -0
  1471. package/dist/domain/spec/model/index.js +1 -0
  1472. package/dist/domain/spec/model/model-version-key.d.ts +3 -0
  1473. package/dist/domain/spec/model/model-version-key.js +1 -0
  1474. package/dist/domain/spec/model/names/action-name.d.ts +7 -0
  1475. package/dist/domain/spec/model/names/action-name.js +1 -0
  1476. package/dist/domain/spec/model/names/alias-name.d.ts +7 -0
  1477. package/dist/domain/spec/model/names/alias-name.js +1 -0
  1478. package/dist/domain/spec/model/names/entity-or-alias-name.d.ts +8 -0
  1479. package/dist/domain/spec/model/names/entity-or-alias-name.js +1 -0
  1480. package/dist/domain/spec/model/names/entity-type-name.d.ts +8 -0
  1481. package/dist/domain/spec/model/names/entity-type-name.js +1 -0
  1482. package/dist/domain/spec/model/names/expression-name.d.ts +6 -0
  1483. package/dist/domain/spec/model/names/expression-name.js +1 -0
  1484. package/dist/domain/spec/model/names/index.d.ts +9 -0
  1485. package/dist/domain/spec/model/names/index.js +1 -0
  1486. package/dist/domain/spec/model/names/instance-name.d.ts +7 -0
  1487. package/dist/domain/spec/model/names/instance-name.js +1 -0
  1488. package/dist/domain/spec/model/names/invariant-name.d.ts +3 -0
  1489. package/dist/domain/spec/model/names/invariant-name.js +1 -0
  1490. package/dist/domain/spec/model/names/shape-property-name.d.ts +11 -0
  1491. package/dist/domain/spec/model/names/shape-property-name.js +1 -0
  1492. package/dist/domain/spec/model/names/violation-type-name.d.ts +3 -0
  1493. package/dist/domain/spec/model/names/violation-type-name.js +1 -0
  1494. package/dist/domain/spec/model/presets.d.ts +30 -0
  1495. package/dist/domain/spec/model/presets.js +1 -0
  1496. package/dist/domain/spec/sections/actions.d.ts +23 -0
  1497. package/dist/domain/spec/sections/actions.js +1 -0
  1498. package/dist/domain/spec/sections/app-metadata.d.ts +18 -0
  1499. package/dist/domain/spec/sections/app-metadata.js +1 -0
  1500. package/dist/domain/spec/sections/application-version.d.ts +7 -0
  1501. package/dist/domain/spec/sections/application-version.js +1 -0
  1502. package/dist/domain/spec/sections/data-spec/chunks.d.ts +23 -0
  1503. package/dist/domain/spec/sections/data-spec/chunks.js +1 -0
  1504. package/dist/domain/spec/sections/data-spec/custom-data-spec-entry.d.ts +16 -0
  1505. package/dist/domain/spec/sections/data-spec/custom-data-spec-entry.js +1 -0
  1506. package/dist/domain/spec/sections/data-spec/data-entry-key.d.ts +9 -0
  1507. package/dist/domain/spec/sections/data-spec/data-entry-key.js +1 -0
  1508. package/dist/domain/spec/sections/data-spec/index.d.ts +5 -0
  1509. package/dist/domain/spec/sections/data-spec/index.js +1 -0
  1510. package/dist/domain/spec/sections/data-spec/parsed-data-spec-entries.d.ts +10 -0
  1511. package/dist/domain/spec/sections/data-spec/parsed-data-spec-entries.js +1 -0
  1512. package/dist/domain/spec/sections/data-spec/swatch-data-spec-entry.d.ts +14 -0
  1513. package/dist/domain/spec/sections/data-spec/swatch-data-spec-entry.js +1 -0
  1514. package/dist/domain/spec/sections/index.d.ts +9 -0
  1515. package/dist/domain/spec/sections/index.js +1 -0
  1516. package/dist/domain/spec/sections/infra/acl.d.ts +12 -0
  1517. package/dist/domain/spec/sections/infra/acl.js +1 -0
  1518. package/dist/domain/spec/sections/infra/index.d.ts +3 -0
  1519. package/dist/domain/spec/sections/infra/index.js +1 -0
  1520. package/dist/domain/spec/sections/infra/resource-entry.d.ts +46 -0
  1521. package/dist/domain/spec/sections/infra/resource-entry.js +1 -0
  1522. package/dist/domain/spec/sections/infra/resources-config.d.ts +10 -0
  1523. package/dist/domain/spec/sections/infra/resources-config.js +1 -0
  1524. package/dist/domain/spec/sections/state-value.d.ts +7 -0
  1525. package/dist/domain/spec/sections/state-value.js +1 -0
  1526. package/dist/domain/spec/sections/theme.d.ts +10 -0
  1527. package/dist/domain/spec/sections/theme.js +1 -0
  1528. package/dist/domain/spec/sections/transformers.d.ts +15 -0
  1529. package/dist/domain/spec/sections/transformers.js +1 -0
  1530. package/dist/domain/spec/sections/ui.d.ts +12 -0
  1531. package/dist/domain/spec/sections/ui.js +1 -0
  1532. package/dist/domain/system-components/admin-sidebar.d.ts +1 -1
  1533. package/dist/domain/system-components/admin-sidebar.js +1 -1
  1534. package/dist/domain/system-components/angle-dimension.js +1 -1
  1535. package/dist/domain/system-components/application-config.d.ts +3 -3
  1536. package/dist/domain/system-components/application-config.js +1 -1
  1537. package/dist/domain/system-components/attribute-selection.js +1 -1
  1538. package/dist/domain/system-components/bounding-box-component.d.ts +1 -1
  1539. package/dist/domain/system-components/bounding-box-component.js +1 -1
  1540. package/dist/domain/system-components/bounding-sphere-component.d.ts +1 -1
  1541. package/dist/domain/system-components/bounding-sphere-component.js +1 -1
  1542. package/dist/domain/system-components/child-entity-recipes.d.ts +1 -1
  1543. package/dist/domain/system-components/child-entity-recipes.js +1 -1
  1544. package/dist/domain/system-components/child-entity-selection.d.ts +1 -2
  1545. package/dist/domain/system-components/child-entity-selection.js +1 -1
  1546. package/dist/domain/system-components/collision-box-geometry.d.ts +5 -3
  1547. package/dist/domain/system-components/collision-box-geometry.js +1 -1
  1548. package/dist/domain/system-components/collision-geometries.d.ts +1 -1
  1549. package/dist/domain/system-components/collision-geometry.d.ts +5 -3
  1550. package/dist/domain/system-components/collision-geometry.js +1 -1
  1551. package/dist/domain/system-components/collision-point-geometry.d.ts +5 -3
  1552. package/dist/domain/system-components/collision-point-geometry.js +1 -1
  1553. package/dist/domain/system-components/common/index.d.ts +0 -4
  1554. package/dist/domain/system-components/common/index.js +1 -1
  1555. package/dist/domain/system-components/common/material-override-schema.d.ts +2 -2
  1556. package/dist/domain/system-components/common/recipes.d.ts +21 -4
  1557. package/dist/domain/system-components/common/recipes.js +1 -1
  1558. package/dist/domain/system-components/common/scene-entity-control-schema.d.ts +3 -0
  1559. package/dist/domain/system-components/common/scene-entity-control-schema.js +1 -1
  1560. package/dist/domain/system-components/constraint.d.ts +11 -24
  1561. package/dist/domain/system-components/constraint.js +1 -1
  1562. package/dist/domain/system-components/create-blueprint.d.ts +1 -1
  1563. package/dist/domain/system-components/custom-scene-entity.d.ts +1 -1
  1564. package/dist/domain/system-components/custom-scene-entity.js +1 -1
  1565. package/dist/domain/system-components/detail.js +1 -1
  1566. package/dist/domain/system-components/distance-dimension-select.d.ts +1 -1
  1567. package/dist/domain/system-components/distance-dimension-select.js +1 -1
  1568. package/dist/domain/system-components/distance-dimension.d.ts +1 -1
  1569. package/dist/domain/system-components/distance-dimension.js +1 -1
  1570. package/dist/domain/system-components/drag-handle.d.ts +2 -2
  1571. package/dist/domain/system-components/drag-handle.js +1 -1
  1572. package/dist/domain/system-components/fit-entity-orthographic-camera-component.js +1 -1
  1573. package/dist/domain/system-components/fit-entity-perspective-camera-component.js +1 -1
  1574. package/dist/domain/system-components/fit-root-orthographic-camera-component.js +1 -1
  1575. package/dist/domain/system-components/fit-root-perspective-camera-component.js +1 -1
  1576. package/dist/domain/system-components/generic-dimension.d.ts +1 -1
  1577. package/dist/domain/system-components/generic-dimension.js +1 -1
  1578. package/dist/domain/system-components/hidden-entity.js +1 -1
  1579. package/dist/domain/system-components/hotspot-drag-handle.d.ts +2 -3
  1580. package/dist/domain/system-components/hotspot-drag-handle.js +1 -1
  1581. package/dist/domain/system-components/index.d.ts +0 -68
  1582. package/dist/domain/system-components/index.js +1 -1
  1583. package/dist/domain/system-components/material-override-property-transition.js +1 -1
  1584. package/dist/domain/system-components/material-override-transformer.js +1 -1
  1585. package/dist/domain/system-components/material-swatch.js +1 -1
  1586. package/dist/domain/system-components/navigation-page.js +1 -1
  1587. package/dist/domain/system-components/navigation-panel-list.js +1 -1
  1588. package/dist/domain/system-components/phoenix-entity-elements/admin-data-table-sidebar.d.ts +1 -1
  1589. package/dist/domain/system-components/phoenix-layout-elements/admin-connected-resource-page.d.ts +1 -1
  1590. package/dist/domain/system-components/phoenix-layout-elements/admin-data-table-actions.d.ts +1 -1
  1591. package/dist/domain/system-components/phoenix-layout-elements/admin-data-table-page.d.ts +1 -1
  1592. package/dist/domain/system-components/phoenix-layout-elements/assistant-toolbar-button.d.ts +44 -0
  1593. package/dist/domain/system-components/phoenix-layout-elements/assistant-toolbar-button.js +1 -0
  1594. package/dist/domain/system-components/phoenix-layout-elements/index.d.ts +1 -0
  1595. package/dist/domain/system-components/phoenix-layout-elements/index.js +1 -1
  1596. package/dist/domain/system-components/phoenix-layout-elements/phoenix-layout-element.d.ts +2 -1
  1597. package/dist/domain/system-components/phoenix-layout-elements/phoenix-layout-element.js +1 -1
  1598. package/dist/domain/system-components/pivot-point.d.ts +1 -1
  1599. package/dist/domain/system-components/pivot-point.js +1 -1
  1600. package/dist/domain/system-components/price.js +1 -1
  1601. package/dist/domain/system-components/projected-entities.d.ts +1 -1
  1602. package/dist/domain/system-components/projected-entities.js +1 -1
  1603. package/dist/domain/system-components/replace-entity-recipes.d.ts +1 -1
  1604. package/dist/domain/system-components/replace-entity-recipes.js +1 -1
  1605. package/dist/domain/system-components/scene-entity-ambient-light.js +1 -1
  1606. package/dist/domain/system-components/scene-entity-box-object.js +1 -1
  1607. package/dist/domain/system-components/scene-entity-directional-light.js +1 -1
  1608. package/dist/domain/system-components/scene-entity-local-material-override.js +1 -1
  1609. package/dist/domain/system-components/scene-entity-material-override.d.ts +1 -1
  1610. package/dist/domain/system-components/scene-entity-material-override.js +1 -1
  1611. package/dist/domain/system-components/scene-entity-object-clip.js +1 -1
  1612. package/dist/domain/system-components/scene-entity-object-decal.js +1 -1
  1613. package/dist/domain/system-components/scene-entity-object-group.js +1 -1
  1614. package/dist/domain/system-components/scene-entity-object-local-material-override.js +1 -1
  1615. package/dist/domain/system-components/scene-entity-object-material-override.d.ts +1 -1
  1616. package/dist/domain/system-components/scene-entity-object-material-override.js +1 -1
  1617. package/dist/domain/system-components/scene-entity-object-properties.js +1 -1
  1618. package/dist/domain/system-components/scene-entity-object-remote-material-override.js +1 -1
  1619. package/dist/domain/system-components/scene-entity-object-text-decal.d.ts +1 -1
  1620. package/dist/domain/system-components/scene-entity-object-text-decal.js +1 -1
  1621. package/dist/domain/system-components/scene-entity-object-transformer.js +1 -1
  1622. package/dist/domain/system-components/scene-entity-object-transimissive-material-override.d.ts +1 -1
  1623. package/dist/domain/system-components/scene-entity-object-transimissive-material-override.js +1 -1
  1624. package/dist/domain/system-components/scene-entity-object.js +1 -1
  1625. package/dist/domain/system-components/scene-entity-point-light.js +1 -1
  1626. package/dist/domain/system-components/scene-entity-properties.js +1 -1
  1627. package/dist/domain/system-components/scene-entity-rect-area-light.js +1 -1
  1628. package/dist/domain/system-components/scene-entity-remote-material-override.js +1 -1
  1629. package/dist/domain/system-components/scene-entity-remote-object.js +1 -1
  1630. package/dist/domain/system-components/scene-entity-spot-light.js +1 -1
  1631. package/dist/domain/system-components/scene-entity-transimissive-material-override.d.ts +1 -1
  1632. package/dist/domain/system-components/scene-entity-transimissive-material-override.js +1 -1
  1633. package/dist/domain/system-components/sketching-line.d.ts +1 -1
  1634. package/dist/domain/system-components/sketching-line.js +1 -1
  1635. package/dist/domain/system-components/sketching-rectangle.d.ts +1 -1
  1636. package/dist/domain/system-components/sketching-rectangle.js +1 -1
  1637. package/dist/domain/system-components/sketching.d.ts +1 -1
  1638. package/dist/domain/system-components/sketching.js +1 -1
  1639. package/dist/domain/system-components/snap-axis.d.ts +1 -1
  1640. package/dist/domain/system-components/snap-axis.js +1 -1
  1641. package/dist/domain/system-components/snap-edge.d.ts +1 -1
  1642. package/dist/domain/system-components/snap-edge.js +1 -1
  1643. package/dist/domain/system-components/snap-plane.d.ts +1 -1
  1644. package/dist/domain/system-components/snap-plane.js +1 -1
  1645. package/dist/domain/system-components/snap-point.d.ts +1 -1
  1646. package/dist/domain/system-components/snap-point.js +1 -1
  1647. package/dist/domain/system-components/static-orthographic-camera-component.d.ts +1 -1
  1648. package/dist/domain/system-components/static-orthographic-camera-component.js +1 -1
  1649. package/dist/domain/system-components/static-perspective-camera-component.d.ts +1 -1
  1650. package/dist/domain/system-components/static-perspective-camera-component.js +1 -1
  1651. package/dist/domain/system-definitions.js +1 -1
  1652. package/dist/domain/utils/eval-cache.d.ts +2 -3
  1653. package/dist/domain/utils/index.d.ts +2 -0
  1654. package/dist/domain/utils/index.js +1 -0
  1655. package/dist/domain/utils/map-nested-object.d.ts +1 -1
  1656. package/dist/domain/utils/memo-eval.d.ts +2 -4
  1657. package/dist/editor/Editor.d.ts +7 -0
  1658. package/dist/editor/Editor.js +1 -1
  1659. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  1660. package/dist/editor/domain-editors/apply-spec-update.d.ts +10 -2
  1661. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  1662. package/dist/editor/domain-editors/use-implementation-files.d.ts +8 -16
  1663. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  1664. package/dist/editor/graphql/GraphQLPanel.js +1 -1
  1665. package/dist/editor/mocks/CreateMockYaml.js +2 -2
  1666. package/dist/editor/mocks/EditorMockContext.d.ts +2 -0
  1667. package/dist/editor/mocks/EditorMockContext.js +1 -1
  1668. package/dist/editor/screenshot/ScreenshotHandler.js +1 -1
  1669. package/dist/editor/variants/VariantAnswerFooter.d.ts +17 -0
  1670. package/dist/editor/variants/VariantAnswerFooter.js +1 -0
  1671. package/dist/editor/variants/VariantPreviewHandler.d.ts +6 -0
  1672. package/dist/editor/variants/VariantPreviewHandler.js +1 -0
  1673. package/dist/editor/variants/variant-preview-styles.d.ts +49 -0
  1674. package/dist/editor/variants/variant-preview-styles.js +1 -0
  1675. package/dist/globals/index.d.ts +2 -0
  1676. package/dist/i18n/locales/cs/messages.js +1 -1
  1677. package/dist/i18n/locales/da/messages.js +1 -1
  1678. package/dist/i18n/locales/de/messages.js +1 -1
  1679. package/dist/i18n/locales/de-AT/messages.js +1 -1
  1680. package/dist/i18n/locales/en/messages.js +1 -1
  1681. package/dist/i18n/locales/en-AU/messages.js +1 -1
  1682. package/dist/i18n/locales/en-GB/messages.js +1 -1
  1683. package/dist/i18n/locales/es/messages.js +1 -1
  1684. package/dist/i18n/locales/fr/messages.js +1 -1
  1685. package/dist/i18n/locales/hu/messages.js +1 -1
  1686. package/dist/i18n/locales/it/messages.js +1 -1
  1687. package/dist/i18n/locales/nl/messages.js +1 -1
  1688. package/dist/i18n/locales/pl/messages.js +1 -1
  1689. package/dist/i18n/locales/pt/messages.js +1 -1
  1690. package/dist/i18n/locales/ro/messages.js +1 -1
  1691. package/dist/i18n/locales/sk/messages.js +1 -1
  1692. package/dist/i18n/locales/tr/messages.js +1 -1
  1693. package/dist/legacy/domain-cli/gen/configurator-builder.js +30 -16
  1694. package/dist/legacy/domain-cli/gen/constant-expressions.js +1 -3
  1695. package/dist/legacy/domain-cli/gen/defaults.js +1 -7
  1696. package/dist/legacy/domain-cli/gen/implementation.js +7 -11
  1697. package/dist/legacy/domain-cli/gen/invariants.js +7 -6
  1698. package/dist/legacy/domain-cli/gen/relations.js +1 -1
  1699. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  1700. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  1701. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +182 -148
  1702. package/dist/legacy/domain-spec/spec/domain-spec.js +1 -1
  1703. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/claude-md.d.ts +1 -1
  1704. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/cursor-rules.d.ts +1 -1
  1705. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.d.ts +1 -1
  1706. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.js +13 -0
  1707. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/domain-index.js +17 -15
  1708. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/env-example.d.ts +1 -1
  1709. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/env-example.js +4 -0
  1710. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-admin.js +18 -18
  1711. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-configurator.js +16 -15
  1712. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-admin.js +24 -24
  1713. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-configurator.js +16 -15
  1714. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/generator-shared.d.ts +7 -2
  1715. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/generator-shared.js +8 -12
  1716. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/index.d.ts +1 -1
  1717. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/index.js +1 -1
  1718. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/webhook-builders.js +7 -7
  1719. package/dist/legacy/phoenix-cli/services/webhook-service/transport.js +1 -1
  1720. package/dist/legacy/phoenix-cli/services/webhook-service/tunnel.d.ts +1 -0
  1721. package/dist/legacy/phoenix-cli/services/webhook-service/tunnel.js +1 -1
  1722. package/dist/legacy/webhook-cli/lambda-local/index.js +1 -1
  1723. package/dist/phoenix/application-spec/application-spec-builder.d.ts +0 -2
  1724. package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
  1725. package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +1 -2
  1726. package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
  1727. package/dist/phoenix/application-spec/generate-application-spec-story.js +2 -2
  1728. package/dist/phoenix/application-spec/generate-project-files.d.ts +1 -2
  1729. package/dist/phoenix/application-spec/index.d.ts +1 -0
  1730. package/dist/phoenix/application-spec/index.js +1 -1
  1731. package/dist/phoenix/application-spec/project-files.js +1 -1
  1732. package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +15 -3
  1733. package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
  1734. package/dist/phoenix/bin.d.ts +2 -0
  1735. package/dist/phoenix/bin.js +2 -0
  1736. package/dist/phoenix/check-configs/built-in-eslint-config.d.ts +9 -0
  1737. package/dist/phoenix/check-configs/built-in-eslint-config.js +1 -0
  1738. package/dist/phoenix/check-configs/eslint-config.d.ts +10 -0
  1739. package/dist/phoenix/check-configs/eslint-config.js +1 -0
  1740. package/dist/phoenix/check-configs/index.d.ts +8 -0
  1741. package/dist/phoenix/check-configs/index.js +1 -0
  1742. package/dist/phoenix/check-configs/typescript-project.d.ts +5 -0
  1743. package/dist/phoenix/check-configs/typescript-project.js +1 -0
  1744. package/dist/phoenix/cli.d.ts +0 -1
  1745. package/dist/phoenix/cli.js +1 -2
  1746. package/dist/phoenix/commands/activate-deployment.js +1 -1
  1747. package/dist/phoenix/commands/build.d.ts +5 -0
  1748. package/dist/phoenix/commands/build.js +1 -1
  1749. package/dist/phoenix/commands/changelog.js +1 -1
  1750. package/dist/phoenix/commands/check.js +1 -1
  1751. package/dist/phoenix/commands/clean.js +1 -1
  1752. package/dist/phoenix/commands/cleanup-environment.js +2 -2
  1753. package/dist/phoenix/commands/create-environment.js +1 -1
  1754. package/dist/phoenix/commands/data.js +1 -1
  1755. package/dist/phoenix/commands/deploy.js +2 -2
  1756. package/dist/phoenix/commands/deployment-build-envs-command.js +1 -1
  1757. package/dist/phoenix/commands/deps/deps.d.ts +73 -0
  1758. package/dist/phoenix/commands/deps/deps.js +3 -0
  1759. package/dist/phoenix/commands/deps/index.d.ts +1 -0
  1760. package/dist/phoenix/commands/deps/index.js +1 -0
  1761. package/dist/phoenix/commands/deps/sdk-manifest.d.ts +12 -0
  1762. package/dist/phoenix/commands/deps/sdk-manifest.js +1 -0
  1763. package/dist/phoenix/commands/dev.js +4 -5
  1764. package/dist/phoenix/commands/docs.js +1 -1
  1765. package/dist/phoenix/commands/feedback.d.ts +2 -1
  1766. package/dist/phoenix/commands/feedback.js +1 -1
  1767. package/dist/phoenix/commands/finish-deployment-command.js +1 -1
  1768. package/dist/phoenix/commands/fix.js +1 -1
  1769. package/dist/phoenix/commands/index.d.ts +2 -0
  1770. package/dist/phoenix/commands/index.js +1 -1
  1771. package/dist/phoenix/commands/init.d.ts +17 -5
  1772. package/dist/phoenix/commands/init.js +1 -1
  1773. package/dist/phoenix/commands/inspect-assets.js +1 -1
  1774. package/dist/phoenix/commands/link.js +1 -1
  1775. package/dist/phoenix/commands/list-environments.js +1 -1
  1776. package/dist/phoenix/commands/login.d.ts +4 -1
  1777. package/dist/phoenix/commands/login.js +2 -2
  1778. package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
  1779. package/dist/phoenix/commands/prepare-local-environment-command.js +1 -1
  1780. package/dist/phoenix/commands/prettier.js +1 -1
  1781. package/dist/phoenix/commands/register-deployment.js +1 -1
  1782. package/dist/phoenix/commands/scene.js +1 -1
  1783. package/dist/phoenix/commands/screenshot.js +1 -1
  1784. package/dist/phoenix/commands/state.js +1 -1
  1785. package/dist/phoenix/commands/story-build.js +3 -3
  1786. package/dist/phoenix/commands/story-create.js +1 -1
  1787. package/dist/phoenix/commands/story-dev.js +2 -2
  1788. package/dist/phoenix/commands/sync.js +1 -1
  1789. package/dist/phoenix/commands/unlink.js +1 -1
  1790. package/dist/phoenix/commands/variants.d.ts +35 -0
  1791. package/dist/phoenix/commands/variants.js +1 -0
  1792. package/dist/phoenix/editor-server/commands-router.d.ts +68 -1
  1793. package/dist/phoenix/editor-server/commands-router.js +1 -1
  1794. package/dist/phoenix/editor-server/editor-router.d.ts +65 -0
  1795. package/dist/phoenix/editor-server/editor-server.d.ts +3 -14
  1796. package/dist/phoenix/editor-server/editor-server.js +1 -1
  1797. package/dist/phoenix/editor-server/protocol.d.ts +1 -0
  1798. package/dist/phoenix/editor-server/spec-router.js +1 -1
  1799. package/dist/phoenix/editor-server/trpc.d.ts +2 -9
  1800. package/dist/phoenix/lingui/index.d.ts +1 -0
  1801. package/dist/phoenix/lingui/index.js +1 -0
  1802. package/dist/phoenix/lingui/lingui.d.ts +18 -0
  1803. package/dist/phoenix/lingui/lingui.js +1 -0
  1804. package/dist/phoenix/scripts/build-admin.js +1 -1
  1805. package/dist/phoenix/services/application-spec-project-watcher.d.ts +26 -10
  1806. package/dist/phoenix/services/application-spec-project-watcher.js +3 -3
  1807. package/dist/phoenix/services/cli-credentials.d.ts +3 -0
  1808. package/dist/phoenix/services/cli-credentials.js +1 -1
  1809. package/dist/phoenix/services/cli-exit.d.ts +5 -0
  1810. package/dist/phoenix/services/cli-exit.js +1 -0
  1811. package/dist/phoenix/services/deployment/deployment-preparation-service.d.ts +28 -0
  1812. package/dist/phoenix/services/deployment/deployment-preparation-service.js +1 -0
  1813. package/dist/phoenix/services/deployment/generated-env-markers.d.ts +8 -0
  1814. package/dist/phoenix/services/deployment/generated-env-markers.js +1 -0
  1815. package/dist/phoenix/services/deployment/index.d.ts +2 -0
  1816. package/dist/phoenix/services/deployment/index.js +1 -0
  1817. package/dist/phoenix/services/index.d.ts +9 -0
  1818. package/dist/phoenix/services/index.js +1 -1
  1819. package/dist/phoenix/services/lingui-watcher.js +1 -1
  1820. package/dist/phoenix/services/phoenix-store.d.ts +51 -0
  1821. package/dist/phoenix/services/phoenix-store.js +1 -0
  1822. package/dist/phoenix/services/phx-banner-plugin.d.ts +32 -0
  1823. package/dist/phoenix/services/phx-banner-plugin.js +1 -0
  1824. package/dist/phoenix/services/phx-licenses-plugin.d.ts +55 -0
  1825. package/dist/phoenix/services/phx-licenses-plugin.js +8 -0
  1826. package/dist/phoenix/services/phx-variant-previews-plugin.d.ts +9 -0
  1827. package/dist/phoenix/services/phx-variant-previews-plugin.js +1 -0
  1828. package/dist/phoenix/services/prepare-development-environment.js +1 -1
  1829. package/dist/phoenix/services/session/editor-server-handle.d.ts +5 -0
  1830. package/dist/phoenix/services/session/editor-server-handle.js +1 -0
  1831. package/dist/phoenix/services/session/index.d.ts +2 -0
  1832. package/dist/phoenix/services/session/index.js +1 -0
  1833. package/dist/phoenix/services/session/phoenix-application.d.ts +82 -0
  1834. package/dist/phoenix/services/session/phoenix-application.js +2 -0
  1835. package/dist/phoenix/services/source-archive.d.ts +1 -0
  1836. package/dist/phoenix/services/source-archive.js +1 -1
  1837. package/dist/phoenix/services/swc.js +1 -1
  1838. package/dist/phoenix/services/telemetry/amplitude-telemetry-transport.d.ts +9 -0
  1839. package/dist/phoenix/services/telemetry/amplitude-telemetry-transport.js +1 -0
  1840. package/dist/phoenix/services/telemetry/index.d.ts +3 -0
  1841. package/dist/phoenix/services/telemetry/index.js +1 -0
  1842. package/dist/phoenix/services/telemetry/telemetry-client.d.ts +25 -0
  1843. package/dist/phoenix/services/telemetry/telemetry-client.js +1 -0
  1844. package/dist/phoenix/services/telemetry/telemetry-command.d.ts +2 -0
  1845. package/dist/phoenix/services/telemetry/telemetry-command.js +1 -0
  1846. package/dist/phoenix/services/telemetry/telemetry-event.d.ts +44 -0
  1847. package/dist/phoenix/services/telemetry/telemetry-event.js +1 -0
  1848. package/dist/phoenix/services/telemetry/telemetry-state.d.ts +25 -0
  1849. package/dist/phoenix/services/telemetry/telemetry-state.js +2 -0
  1850. package/dist/phoenix/services/variant-file-session.d.ts +36 -0
  1851. package/dist/phoenix/services/variant-file-session.js +1 -0
  1852. package/dist/phoenix/services/variant-preview-service.d.ts +80 -0
  1853. package/dist/phoenix/services/variant-preview-service.js +1 -0
  1854. package/dist/phoenix/services/vite-config.d.ts +2 -0
  1855. package/dist/phoenix/services/vite-config.js +1 -1
  1856. package/dist/phoenix/services/webhook-service/transport.js +1 -1
  1857. package/dist/phoenix/services/webhook-service/tunnel.d.ts +1 -0
  1858. package/dist/phoenix/services/webhook-service/tunnel.js +1 -1
  1859. package/dist/phoenix/utils/git/index.d.ts +1 -0
  1860. package/dist/phoenix/utils/git/index.js +1 -0
  1861. package/dist/phoenix/utils/git/is-inside-git-repository.d.ts +6 -0
  1862. package/dist/phoenix/utils/git/is-inside-git-repository.js +1 -0
  1863. package/dist/phoenix/utils/index.d.ts +6 -2
  1864. package/dist/phoenix/utils/index.js +1 -1
  1865. package/dist/phoenix/utils/node-version/index.d.ts +1 -0
  1866. package/dist/phoenix/utils/node-version/index.js +1 -0
  1867. package/dist/phoenix/utils/node-version/supported-node-version.d.ts +12 -0
  1868. package/dist/phoenix/utils/node-version/supported-node-version.js +4 -0
  1869. package/dist/phoenix/utils/package-info.d.ts +0 -9
  1870. package/dist/phoenix/utils/package-info.js +1 -1
  1871. package/dist/phoenix/utils/package-manager/index.d.ts +2 -0
  1872. package/dist/phoenix/utils/package-manager/index.js +1 -0
  1873. package/dist/phoenix/utils/package-manager/package-manager-commands.d.ts +19 -0
  1874. package/dist/phoenix/utils/package-manager/package-manager-commands.js +1 -0
  1875. package/dist/phoenix/utils/package-manager/pnpm-project.d.ts +9 -0
  1876. package/dist/phoenix/utils/package-manager/pnpm-project.js +1 -0
  1877. package/dist/phoenix/utils/read-git-commit.d.ts +14 -0
  1878. package/dist/phoenix/utils/read-git-commit.js +1 -0
  1879. package/dist/phoenix/utils/run-command.d.ts +11 -0
  1880. package/dist/phoenix/utils/run-command.js +1 -1
  1881. package/dist/phoenix/utils/sdk-tool/index.d.ts +1 -0
  1882. package/dist/phoenix/utils/sdk-tool/index.js +1 -0
  1883. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.d.ts +15 -0
  1884. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.js +1 -0
  1885. package/dist/react-sdk/application-runtime/common-services/analytics/analytics-service.d.ts +3 -3
  1886. package/dist/react-sdk/application-runtime/common-services/analytics/domain-controls-analytics.d.ts +21 -21
  1887. package/dist/react-sdk/application-runtime/common-services/analytics/frontend-analytics.d.ts +52 -0
  1888. package/dist/react-sdk/application-runtime/common-services/analytics/frontend-analytics.js +1 -0
  1889. package/dist/react-sdk/application-runtime/common-services/analytics/index.d.ts +1 -0
  1890. package/dist/react-sdk/application-runtime/common-services/analytics/index.js +1 -1
  1891. package/dist/react-sdk/application-runtime/common-services/initialize.d.ts +2 -2
  1892. package/dist/react-sdk/application-runtime/domain-application-context/chat-system.d.ts +1 -1
  1893. package/dist/react-sdk/application-runtime/hooks/data/use-published-data.d.ts +1 -1
  1894. package/dist/react-sdk/application-runtime/hooks/index.d.ts +2 -0
  1895. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  1896. package/dist/react-sdk/application-runtime/hooks/loading/index.d.ts +5 -0
  1897. package/dist/react-sdk/application-runtime/hooks/loading/index.js +1 -0
  1898. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.d.ts +11 -0
  1899. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.js +1 -0
  1900. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.d.ts +8 -0
  1901. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.js +1 -0
  1902. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.d.ts +7 -0
  1903. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.js +1 -0
  1904. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.d.ts +9 -0
  1905. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.js +1 -0
  1906. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.d.ts +24 -0
  1907. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.js +1 -0
  1908. package/dist/react-sdk/application-runtime/hooks/responsive/index.d.ts +3 -0
  1909. package/dist/react-sdk/application-runtime/hooks/responsive/index.js +1 -0
  1910. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.d.ts +9 -0
  1911. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.js +1 -0
  1912. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +26 -0
  1913. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.js +1 -0
  1914. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.d.ts +10 -0
  1915. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.js +1 -0
  1916. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.d.ts +24 -0
  1917. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -0
  1918. package/dist/react-sdk/application-runtime/hooks/use-access-service.d.ts +7 -0
  1919. package/dist/react-sdk/application-runtime/hooks/use-access-service.js +1 -1
  1920. package/dist/react-sdk/application-runtime/hooks/use-domain-application-props.d.ts +5 -2
  1921. package/dist/react-sdk/application-runtime/hooks/use-phoenix-element-slots.d.ts +2 -1
  1922. package/dist/react-sdk/application-runtime/hooks/use-spec.d.ts +1 -1
  1923. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.d.ts +4 -11
  1924. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.js +1 -1
  1925. package/dist/react-sdk/application-runtime/hooks/use-web-component.d.ts +5 -0
  1926. package/dist/react-sdk/application-runtime/hooks/use-web-component.js +1 -1
  1927. package/dist/react-sdk/application-runtime/host-properties/actions.d.ts +15 -0
  1928. package/dist/react-sdk/application-runtime/host-properties/actions.js +1 -0
  1929. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.d.ts +30 -0
  1930. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.js +1 -0
  1931. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.d.ts +7 -0
  1932. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.js +1 -0
  1933. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.d.ts +21 -0
  1934. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.js +1 -0
  1935. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.d.ts +42 -0
  1936. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.js +1 -0
  1937. package/dist/react-sdk/application-runtime/host-properties/index.d.ts +8 -0
  1938. package/dist/react-sdk/application-runtime/host-properties/index.js +1 -0
  1939. package/dist/react-sdk/application-runtime/host-properties/initialize.d.ts +7 -0
  1940. package/dist/react-sdk/application-runtime/host-properties/initialize.js +1 -0
  1941. package/dist/react-sdk/application-runtime/host-properties/selectors.d.ts +54 -0
  1942. package/dist/react-sdk/application-runtime/host-properties/selectors.js +1 -0
  1943. package/dist/react-sdk/application-runtime/host-properties/types.d.ts +18 -0
  1944. package/dist/react-sdk/application-runtime/host-properties/types.js +1 -0
  1945. package/dist/react-sdk/application-runtime/index.d.ts +3 -0
  1946. package/dist/react-sdk/application-runtime/integration/initialize.d.ts +7 -6
  1947. package/dist/react-sdk/application-runtime/integration/initialize.js +1 -1
  1948. package/dist/react-sdk/application-runtime/integration/selectors.d.ts +11 -2
  1949. package/dist/react-sdk/application-runtime/integration/selectors.js +1 -1
  1950. package/dist/react-sdk/application-runtime/integration/types.d.ts +5 -2
  1951. package/dist/react-sdk/application-runtime/loading/actions.d.ts +45 -0
  1952. package/dist/react-sdk/application-runtime/loading/actions.js +1 -0
  1953. package/dist/react-sdk/application-runtime/loading/index.d.ts +4 -0
  1954. package/dist/react-sdk/application-runtime/loading/index.js +1 -0
  1955. package/dist/react-sdk/application-runtime/loading/initialize.d.ts +3 -0
  1956. package/dist/react-sdk/application-runtime/loading/initialize.js +1 -0
  1957. package/dist/react-sdk/application-runtime/loading/selectors.d.ts +18 -0
  1958. package/dist/react-sdk/application-runtime/loading/selectors.js +1 -0
  1959. package/dist/react-sdk/application-runtime/loading/types.d.ts +59 -0
  1960. package/dist/react-sdk/application-runtime/loading/types.js +1 -0
  1961. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.d.ts +1 -1
  1962. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  1963. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.d.ts +6 -0
  1964. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.js +1 -1
  1965. package/dist/react-sdk/application-runtime/provider/ApplicationType.d.ts +7 -0
  1966. package/dist/react-sdk/application-runtime/provider/ApplicationType.js +1 -1
  1967. package/dist/react-sdk/application-runtime/responsive/actions.d.ts +47 -0
  1968. package/dist/react-sdk/application-runtime/responsive/actions.js +1 -0
  1969. package/dist/react-sdk/application-runtime/responsive/index.d.ts +4 -0
  1970. package/dist/react-sdk/application-runtime/responsive/index.js +1 -0
  1971. package/dist/react-sdk/application-runtime/responsive/initialize.d.ts +3 -0
  1972. package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -0
  1973. package/dist/react-sdk/application-runtime/responsive/selectors.d.ts +20 -0
  1974. package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -0
  1975. package/dist/react-sdk/application-runtime/responsive/types.d.ts +104 -0
  1976. package/dist/react-sdk/application-runtime/responsive/types.js +1 -0
  1977. package/dist/react-sdk/application-runtime/routing/access-service.d.ts +1 -0
  1978. package/dist/react-sdk/application-runtime/routing/routing-service.d.ts +34 -2
  1979. package/dist/react-sdk/application-runtime/routing/routing-service.js +1 -1
  1980. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +370 -50
  1981. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  1982. package/dist/react-sdk/configurator-routing/ConfiguratorRoutingProvider.d.ts +11 -0
  1983. package/dist/react-sdk/configurator-routing/ConfiguratorRoutingProvider.js +1 -0
  1984. package/dist/react-sdk/configurator-routing/OnGoToIndexHandler.d.ts +9 -0
  1985. package/dist/react-sdk/configurator-routing/OnGoToIndexHandler.js +1 -0
  1986. package/dist/react-sdk/configurator-routing/index.d.ts +3 -0
  1987. package/dist/react-sdk/configurator-routing/index.js +1 -0
  1988. package/dist/react-sdk/configurator-routing/use-power-routing-lifecycle.d.ts +11 -0
  1989. package/dist/react-sdk/configurator-routing/use-power-routing-lifecycle.js +1 -0
  1990. package/dist/react-sdk/configurator-ui-elements/ConfiguratorUiElementHost.d.ts +7 -0
  1991. package/dist/react-sdk/configurator-ui-elements/ConfiguratorUiElementHost.js +1 -0
  1992. package/dist/react-sdk/configurator-ui-elements/ErrorFallbackElement.d.ts +14 -0
  1993. package/dist/react-sdk/configurator-ui-elements/ErrorFallbackElement.js +1 -0
  1994. package/dist/react-sdk/configurator-ui-elements/ErrorFallbackPropsProvider.d.ts +18 -0
  1995. package/dist/react-sdk/configurator-ui-elements/ErrorFallbackPropsProvider.js +1 -0
  1996. package/dist/react-sdk/configurator-ui-elements/PlainErrorFallback.d.ts +5 -0
  1997. package/dist/react-sdk/configurator-ui-elements/PlainErrorFallback.js +1 -0
  1998. package/dist/react-sdk/configurator-ui-elements/configurator-ui-element.d.ts +17 -0
  1999. package/dist/react-sdk/configurator-ui-elements/configurator-ui-element.js +1 -0
  2000. package/dist/react-sdk/configurator-ui-elements/create-configurator-ui-element.d.ts +5 -0
  2001. package/dist/react-sdk/configurator-ui-elements/create-configurator-ui-element.js +1 -0
  2002. package/dist/react-sdk/configurator-ui-elements/index.d.ts +6 -0
  2003. package/dist/react-sdk/configurator-ui-elements/index.js +1 -0
  2004. package/dist/react-sdk/domain-application-context/BackendDataProvider.js +1 -1
  2005. package/dist/react-sdk/domain-application-context/ConfigurationPersistSystemFailureHandler.js +1 -1
  2006. package/dist/react-sdk/domain-application-context/DomainLifecycleBoundary.js +1 -1
  2007. package/dist/react-sdk/domain-application-context/FrontendDataProvider.js +1 -1
  2008. package/dist/react-sdk/domain-application-context/OnPresetLoadedHandler.js +1 -0
  2009. package/dist/react-sdk/domain-application-context/PublishedDataProvider.js +1 -1
  2010. package/dist/react-sdk/domain-application-context/chat-hooks.d.ts +4 -0
  2011. package/dist/react-sdk/domain-application-context/chat-hooks.js +1 -0
  2012. package/dist/react-sdk/domain-application-context/index.d.ts +2 -0
  2013. package/dist/react-sdk/domain-application-context/index.js +1 -1
  2014. package/dist/react-sdk/domain-context/common-hooks/index.d.ts +9 -0
  2015. package/dist/react-sdk/domain-context/common-hooks/index.js +1 -0
  2016. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.d.ts +23 -0
  2017. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.js +1 -0
  2018. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.d.ts +41 -0
  2019. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.js +1 -0
  2020. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +10 -9
  2021. package/dist/react-sdk/domain-context/component-hooks/index.d.ts +1 -0
  2022. package/dist/react-sdk/domain-context/component-hooks/index.js +1 -0
  2023. package/dist/react-sdk/domain-context/component-hooks/use-component.js +1 -1
  2024. package/dist/react-sdk/domain-context/entity-hooks/use-domain-entity-state.js +1 -1
  2025. package/dist/react-sdk/domain-context/entity-hooks/use-entity-price.js +1 -1
  2026. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-id.js +1 -1
  2027. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-state.js +1 -1
  2028. package/dist/react-sdk/domain-context/index.d.ts +9 -1
  2029. package/dist/react-sdk/domain-context/index.js +1 -1
  2030. package/dist/react-sdk/domain-context/system-hooks/composition-hooks.js +1 -1
  2031. package/dist/react-sdk/domain-context/system-hooks/dimension-hooks.js +1 -1
  2032. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +8 -0
  2033. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -0
  2034. package/dist/react-sdk/domain-context/system-hooks/hover-hooks.js +1 -1
  2035. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.d.ts +24 -0
  2036. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.js +1 -0
  2037. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +11 -0
  2038. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  2039. package/dist/react-sdk/domain-context/system-hooks/selection-hooks.js +1 -1
  2040. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.d.ts +32 -0
  2041. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.js +1 -0
  2042. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.d.ts +57 -0
  2043. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.js +1 -0
  2044. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.d.ts +61 -0
  2045. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.js +1 -0
  2046. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.d.ts +20 -0
  2047. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.js +1 -0
  2048. package/dist/react-sdk/domain-controls/hooks/use-angle-dimension.d.ts +1 -1
  2049. package/dist/react-sdk/elements/PhoenixEntityElement.js +1 -1
  2050. package/dist/react-sdk/elements/PhoenixLayoutElement.js +1 -1
  2051. package/dist/react-sdk/handlers/FinalizeActionRunner.d.ts +13 -0
  2052. package/dist/react-sdk/handlers/FinalizeActionRunner.js +1 -0
  2053. package/dist/react-sdk/handlers/FinalizeActionsHost.d.ts +10 -0
  2054. package/dist/react-sdk/handlers/FinalizeActionsHost.js +1 -0
  2055. package/dist/react-sdk/handlers/FinalizeActionsProvider.d.ts +11 -0
  2056. package/dist/react-sdk/handlers/FinalizeActionsProvider.js +1 -0
  2057. package/dist/react-sdk/handlers/finalize-actions-context.d.ts +6 -0
  2058. package/dist/react-sdk/handlers/finalize-actions-context.js +1 -0
  2059. package/dist/react-sdk/handlers/finalize-actions-store.d.ts +23 -0
  2060. package/dist/react-sdk/handlers/finalize-actions-store.js +1 -0
  2061. package/dist/react-sdk/handlers/index.d.ts +6 -0
  2062. package/dist/react-sdk/handlers/index.js +1 -1
  2063. package/dist/react-sdk/handlers/use-finalize-action.d.ts +32 -0
  2064. package/dist/react-sdk/handlers/use-finalize-action.js +1 -0
  2065. package/dist/react-sdk/handlers/use-finalize-actions.d.ts +53 -0
  2066. package/dist/react-sdk/handlers/use-finalize-actions.js +1 -0
  2067. package/dist/react-sdk/index.d.ts +9 -0
  2068. package/dist/react-sdk/index.js +1 -1
  2069. package/dist/react-sdk/integration/IntegrationSubscription.js +1 -0
  2070. package/dist/react-sdk/integration/index.d.ts +1 -0
  2071. package/dist/react-sdk/integration/index.js +1 -0
  2072. package/dist/react-sdk/lifecycle-providers/ConfiguratorDataProvider.d.ts +8 -0
  2073. package/dist/react-sdk/lifecycle-providers/ConfiguratorDataProvider.js +1 -0
  2074. package/dist/react-sdk/lifecycle-providers/LifecycleProviders.js +1 -0
  2075. package/dist/react-sdk/lifecycle-providers/index.d.ts +2 -0
  2076. package/dist/react-sdk/lifecycle-providers/index.js +1 -0
  2077. package/dist/react-sdk/loading-state/LoaderHost.d.ts +20 -0
  2078. package/dist/react-sdk/loading-state/LoaderHost.js +1 -0
  2079. package/dist/react-sdk/loading-state/built-in-loading-phase.d.ts +9 -0
  2080. package/dist/react-sdk/loading-state/built-in-loading-phase.js +1 -0
  2081. package/dist/react-sdk/loading-state/create-app-loader.d.ts +18 -0
  2082. package/dist/react-sdk/loading-state/create-app-loader.js +1 -0
  2083. package/dist/react-sdk/loading-state/index.d.ts +4 -2
  2084. package/dist/react-sdk/loading-state/index.js +1 -1
  2085. package/dist/react-sdk/loading-state/loading-state-hooks.d.ts +22 -0
  2086. package/dist/react-sdk/loading-state/loading-state-hooks.js +1 -0
  2087. package/dist/react-sdk/notifications/index.d.ts +1 -0
  2088. package/dist/react-sdk/notifications/index.js +1 -0
  2089. package/dist/react-sdk/notifications/snackbar-action-button.d.ts +30 -0
  2090. package/dist/react-sdk/notifications/snackbar-action-button.js +1 -0
  2091. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.d.ts +17 -0
  2092. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.js +1 -0
  2093. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.d.ts +17 -0
  2094. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.js +1 -0
  2095. package/dist/react-sdk/page-elements/configurator-error-page-props.d.ts +20 -0
  2096. package/dist/react-sdk/page-elements/configurator-error-page-props.js +1 -0
  2097. package/dist/react-sdk/page-elements/create-configuration-not-found-page.d.ts +15 -0
  2098. package/dist/react-sdk/page-elements/create-configuration-not-found-page.js +1 -0
  2099. package/dist/react-sdk/page-elements/create-configurator-error-page.d.ts +14 -0
  2100. package/dist/react-sdk/page-elements/create-configurator-error-page.js +1 -0
  2101. package/dist/react-sdk/page-elements/create-preset-ui.d.ts +9 -0
  2102. package/dist/react-sdk/page-elements/create-preset-ui.js +1 -0
  2103. package/dist/react-sdk/page-elements/index.d.ts +6 -0
  2104. package/dist/react-sdk/page-elements/index.js +1 -0
  2105. package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -0
  2106. package/dist/react-sdk/preset-selection/index.d.ts +1 -0
  2107. package/dist/react-sdk/preset-selection/index.js +1 -0
  2108. package/dist/react-sdk/provider-slots/ConfiguratorProviderSlotHost.d.ts +11 -0
  2109. package/dist/react-sdk/provider-slots/ConfiguratorProviderSlotHost.js +1 -0
  2110. package/dist/react-sdk/provider-slots/configurator-provider-slot.d.ts +24 -0
  2111. package/dist/react-sdk/provider-slots/configurator-provider-slot.js +1 -0
  2112. package/dist/react-sdk/provider-slots/create-configurator-provider-slot.d.ts +5 -0
  2113. package/dist/react-sdk/provider-slots/create-configurator-provider-slot.js +1 -0
  2114. package/dist/react-sdk/provider-slots/index.d.ts +3 -0
  2115. package/dist/react-sdk/provider-slots/index.js +1 -0
  2116. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.d.ts +36 -0
  2117. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.js +1 -0
  2118. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.d.ts +44 -0
  2119. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.js +1 -0
  2120. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.d.ts +38 -0
  2121. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.js +1 -0
  2122. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.d.ts +30 -0
  2123. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.js +1 -0
  2124. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.d.ts +30 -0
  2125. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.js +1 -0
  2126. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.d.ts +9 -0
  2127. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.js +1 -0
  2128. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.d.ts +9 -0
  2129. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.js +1 -0
  2130. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.d.ts +10 -0
  2131. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.js +1 -0
  2132. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.d.ts +9 -0
  2133. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.js +1 -0
  2134. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.d.ts +9 -0
  2135. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.js +1 -0
  2136. package/dist/react-sdk/scene-control-elements/index.d.ts +11 -0
  2137. package/dist/react-sdk/scene-control-elements/index.js +1 -0
  2138. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.d.ts +5 -0
  2139. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.js +1 -0
  2140. package/dist/react-sdk/session/NotAuthenticatedPage.d.ts +4 -0
  2141. package/dist/react-sdk/session/NotAuthenticatedPage.js +1 -1
  2142. package/dist/react-sdk/session/SessionServiceProvider.d.ts +5 -0
  2143. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  2144. package/dist/react-sdk/web-component/create-web-component.js +1 -1
  2145. package/dist/react-sdk/web-component/god-mode/god-mode-registry.d.ts +30 -0
  2146. package/dist/react-sdk/web-component/god-mode/god-mode-registry.js +1 -0
  2147. package/dist/react-sdk/web-component/god-mode/index.d.ts +1 -0
  2148. package/dist/react-sdk/web-component/god-mode/index.js +1 -0
  2149. package/dist/ui-sdk/common/use-viewport-size.d.ts +4 -1
  2150. package/dist/ui-sdk/common/use-viewport-size.js +1 -1
  2151. package/dist/ui-sdk/components/mobile-controls/index.d.ts +1 -1
  2152. package/dist/ui-sdk/components/snackbar/Snackbar.d.ts +24 -3
  2153. package/dist/ui-sdk/components/snackbar/Snackbar.js +1 -1
  2154. package/dist/ui-sdk/icons/__generated/Lightbulb.d.ts +3 -0
  2155. package/dist/ui-sdk/icons/__generated/Lightbulb.js +1 -0
  2156. package/dist/ui-sdk/icons/__generated/Paperclip.d.ts +3 -0
  2157. package/dist/ui-sdk/icons/__generated/Paperclip.js +1 -0
  2158. package/dist/ui-sdk/icons/__generated/XCircle.d.ts +3 -0
  2159. package/dist/ui-sdk/icons/__generated/XCircle.js +1 -0
  2160. package/dist/ui-sdk/icons/__generated/index.d.ts +6 -0
  2161. package/dist/ui-sdk/icons/__generated/index.js +1 -1
  2162. package/dist/ui-sdk/icons/icons-registry.js +1 -1
  2163. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.d.ts +9 -0
  2164. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.js +1 -1
  2165. package/dist/ui-sdk/responsive-application/index.d.ts +1 -0
  2166. package/dist/ui-sdk/responsive-application/responsive-state-store.d.ts +59 -0
  2167. package/dist/ui-sdk/responsive-application/responsive-state-store.js +1 -0
  2168. package/dist/ui-sdk/responsive-application/use-store-responsive-info.d.ts +7 -0
  2169. package/dist/ui-sdk/responsive-application/use-store-responsive-info.js +1 -0
  2170. package/dist/ui-sdk/theme/types.d.ts +8 -0
  2171. package/dist/watch/glob-matcher.d.ts +4 -4
  2172. package/dist/watch/glob-matcher.js +1 -1
  2173. package/dist/watch/watch.d.ts +4 -4
  2174. package/dist/watch/watch.js +1 -1
  2175. package/dist/webhook/builders/common.d.ts +8 -0
  2176. package/dist/webhook/builders/webhook-builder.d.ts +1 -1
  2177. package/dist/webhook/builders/webhook-builder.js +1 -1
  2178. package/package.json +60 -41
  2179. package/schema/domain-spec.json +1383 -217
  2180. package/dist/application-spec/core/eval-to-constant.d.ts +0 -14
  2181. package/dist/application-spec/generate-application/code/templates/env-ci.d.ts +0 -1
  2182. package/dist/application-spec/generate-application/code/templates/env-ci.js +0 -25
  2183. package/dist/application-spec/generate-application/code/templates/env-example.d.ts +0 -1
  2184. package/dist/application-spec/generate-application/code/templates/env-example.js +0 -90
  2185. package/dist/application-spec/generate-application/code/templates/nvmrc.d.ts +0 -1
  2186. package/dist/application-spec/generate-application/code/templates/nvmrc.js +0 -2
  2187. package/dist/application-spec/generate-application/code/templates/package-json.d.ts +0 -10
  2188. package/dist/application-spec/generate-application/code/templates/package-json.js +0 -1
  2189. package/dist/application-spec/generate-application/code/templates/prettier-ignore.d.ts +0 -1
  2190. package/dist/application-spec/generate-application/code/templates/prettier-ignore.js +0 -6
  2191. package/dist/application-spec/generate-application/code/templates/private-assets-readme.d.ts +0 -1
  2192. package/dist/application-spec/generate-application/code/templates/private-assets-readme.js +0 -24
  2193. package/dist/application-spec/generate-application/code/templates/public-assets-readme.d.ts +0 -1
  2194. package/dist/application-spec/generate-application/code/templates/public-assets-readme.js +0 -24
  2195. package/dist/application-spec/generate-application/code/templates/readme.d.ts +0 -1
  2196. package/dist/application-spec/generate-application/code/templates/readme.js +0 -23
  2197. package/dist/application-spec/generate-application/code/templates/skills/agents-md.d.ts +0 -1
  2198. package/dist/application-spec/generate-application/code/templates/skills/agents-md.js +0 -2
  2199. package/dist/application-spec/generate-application/code/templates/webhook-implementation.d.ts +0 -1
  2200. package/dist/application-spec/generate-application/code/templates/webhook-implementation.js +0 -7
  2201. package/dist/application-spec/parse-application-files/spec/components/component-entry.d.ts +0 -98
  2202. package/dist/application-spec/parse-application-files/spec/expressions/expression.d.ts +0 -70
  2203. package/dist/configurator/assistant/index.d.ts +0 -1
  2204. package/dist/configurator/assistant/index.js +0 -1
  2205. package/dist/configurator/assistant/use-assistant-chat.d.ts +0 -20
  2206. package/dist/configurator/assistant/use-assistant-chat.js +0 -1
  2207. package/dist/configurator/common/frontend-analytics.d.ts +0 -46
  2208. package/dist/configurator/common/frontend-analytics.js +0 -1
  2209. package/dist/configurator/configurator-context/ConfiguratorDataProvider.d.ts +0 -2
  2210. package/dist/configurator/configurator-context/ConfiguratorDataProvider.js +0 -1
  2211. package/dist/configurator/configurator-context/IntegrationSubscription.js +0 -1
  2212. package/dist/configurator/configurator-context/LifecycleProviders.js +0 -1
  2213. package/dist/configurator/configurator-context/OnPresetLoadedHandler.js +0 -1
  2214. package/dist/configurator/configurator-context/PresetSelectionProvider.js +0 -1
  2215. package/dist/configurator/configurator-context/configurator-hooks/chat-hooks.d.ts +0 -1
  2216. package/dist/configurator/configurator-context/configurator-hooks/chat-hooks.js +0 -1
  2217. package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.d.ts +0 -11
  2218. package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.js +0 -1
  2219. package/dist/configurator/configurator-context/configurator-routing/OnGoToIndexHandler.d.ts +0 -10
  2220. package/dist/configurator/configurator-context/configurator-routing/OnGoToIndexHandler.js +0 -1
  2221. package/dist/configurator/configurator-context/configurator-routing/index.d.ts +0 -2
  2222. package/dist/configurator/configurator-context/configurator-routing/index.js +0 -1
  2223. package/dist/configurator/configurator-context/configurator-routing/use-power-routing-lifecycle.d.ts +0 -9
  2224. package/dist/configurator/configurator-context/configurator-routing/use-power-routing-lifecycle.js +0 -1
  2225. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.d.ts +0 -4
  2226. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.js +0 -1
  2227. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.d.ts +0 -4
  2228. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.js +0 -1
  2229. package/dist/domain/actions/action-factory.d.ts +0 -10
  2230. package/dist/domain/actions/prepare-action-implementations.d.ts +0 -15
  2231. package/dist/domain/actions/prepare-action-implementations.js +0 -5
  2232. package/dist/domain/application/element-registration.d.ts +0 -105
  2233. package/dist/domain/application/element-registration.js +0 -1
  2234. package/dist/domain/application/handler-registration.d.ts +0 -29
  2235. package/dist/domain/application/handler-registration.js +0 -1
  2236. package/dist/domain/application/resolve-imported-transformers.d.ts +0 -13
  2237. package/dist/domain/application/resolve-imported-transformers.js +0 -1
  2238. package/dist/domain/application/resource-builder.d.ts +0 -13
  2239. package/dist/domain/application/resource-builder.js +0 -1
  2240. package/dist/domain/available-system-components.d.ts +0 -11
  2241. package/dist/domain/available-system-components.js +0 -1
  2242. package/dist/domain/components/component-reader-types.d.ts +0 -44
  2243. package/dist/domain/components/debug-state-component.d.ts +0 -14
  2244. package/dist/domain/components/debug-state-component.js +0 -1
  2245. package/dist/domain/components/domain-component-optic.d.ts +0 -76
  2246. package/dist/domain/components/domain-component-optic.js +0 -16
  2247. package/dist/domain/components/drag-state-component.d.ts +0 -16
  2248. package/dist/domain/components/drag-state-component.js +0 -1
  2249. package/dist/domain/components/export-state-component.d.ts +0 -15
  2250. package/dist/domain/components/export-state-component.js +0 -1
  2251. package/dist/domain/components/fullscreen-state-component.d.ts +0 -14
  2252. package/dist/domain/components/fullscreen-state-component.js +0 -1
  2253. package/dist/domain/components/group-components-by-entity-id-and-name.d.ts +0 -9
  2254. package/dist/domain/components/group-components-by-entity-id-and-name.js +0 -1
  2255. package/dist/domain/components/hover-state-component.d.ts +0 -14
  2256. package/dist/domain/components/hover-state-component.js +0 -1
  2257. package/dist/domain/components/index.d.ts +0 -2
  2258. package/dist/domain/components/index.js +0 -1
  2259. package/dist/domain/components/legacy-filter.d.ts +0 -513
  2260. package/dist/domain/components/navigation-state-component.d.ts +0 -15
  2261. package/dist/domain/components/navigation-state-component.js +0 -1
  2262. package/dist/domain/components/selection-state-component.d.ts +0 -14
  2263. package/dist/domain/components/selection-state-component.js +0 -1
  2264. package/dist/domain/components/system-component-builder.d.ts +0 -12
  2265. package/dist/domain/components/system-component-builder.js +0 -1
  2266. package/dist/domain/components/system-component-filter.d.ts +0 -793
  2267. package/dist/domain/components/system-virtual-entity.js +0 -1
  2268. package/dist/domain/components/tool-state-component.d.ts +0 -14
  2269. package/dist/domain/components/tool-state-component.js +0 -1
  2270. package/dist/domain/components/updates.d.ts +0 -108
  2271. package/dist/domain/components/view-state-component.d.ts +0 -14
  2272. package/dist/domain/components/view-state-component.js +0 -1
  2273. package/dist/domain/components/viewport-state-component.d.ts +0 -29
  2274. package/dist/domain/components/viewport-state-component.js +0 -1
  2275. package/dist/domain/core/action.d.ts +0 -67
  2276. package/dist/domain/core/component.d.ts +0 -46
  2277. package/dist/domain/core/expression.d.ts +0 -50
  2278. package/dist/domain/core/json-schema.js +0 -1
  2279. package/dist/domain/core/migrations.d.ts +0 -99
  2280. package/dist/domain/core/migrations.js +0 -1
  2281. package/dist/domain/core/model.d.ts +0 -127
  2282. package/dist/domain/core/reflection.d.ts +0 -114
  2283. package/dist/domain/core/reflection.js +0 -1
  2284. package/dist/domain/core/state.d.ts +0 -10
  2285. package/dist/domain/domain-builder.d.ts +0 -40
  2286. package/dist/domain/domain-builder.js +0 -1
  2287. package/dist/domain/domain-context/recipe-system/recipes.d.ts +0 -57
  2288. package/dist/domain/domain-context/recipe-system/recipes.js +0 -1
  2289. package/dist/domain/expressions/constant-expressions.d.ts +0 -9
  2290. package/dist/domain/expressions/constant-expressions.js +0 -1
  2291. package/dist/domain/expressions/custom-expression.d.ts +0 -13
  2292. package/dist/domain/expressions/custom-expression.js +0 -1
  2293. package/dist/domain/expressions/index.d.ts +0 -1
  2294. package/dist/domain/expressions/index.js +0 -1
  2295. package/dist/domain/expressions/memoize-expression.d.ts +0 -17
  2296. package/dist/domain/expressions/prepare-domain-expressions.d.ts +0 -16
  2297. package/dist/domain/invariants/builtin-invariant.d.ts +0 -5
  2298. package/dist/domain/invariants/custom-invariants.d.ts +0 -22
  2299. package/dist/domain/invariants/custom-invariants.js +0 -1
  2300. package/dist/domain/invariants/invariants.d.ts +0 -68
  2301. package/dist/domain/invariants/invariants.js +0 -1
  2302. package/dist/domain/invariants/violation-component.js +0 -1
  2303. package/dist/domain/invariants/violation.d.ts +0 -85
  2304. package/dist/domain/invariants/violation.js +0 -1
  2305. package/dist/domain/relations/all-of-type-relation.d.ts +0 -33
  2306. package/dist/domain/relations/all-of-type-relation.js +0 -1
  2307. package/dist/domain/relations/component-factories.d.ts +0 -15
  2308. package/dist/domain/relations/component-factories.js +0 -1
  2309. package/dist/domain/relations/composed-of.d.ts +0 -12
  2310. package/dist/domain/relations/composed-of.js +0 -1
  2311. package/dist/domain/relations/direct-relation.d.ts +0 -29
  2312. package/dist/domain/relations/indirect-relation.d.ts +0 -81
  2313. package/dist/domain/relations/indirect-relation.js +0 -1
  2314. package/dist/domain/relations/reference-component.d.ts +0 -18
  2315. package/dist/domain/relations/reference-component.js +0 -1
  2316. package/dist/domain/relations/reference-field.d.ts +0 -7
  2317. package/dist/domain/relations/relation-factory.d.ts +0 -19
  2318. package/dist/domain/relations/relation-factory.js +0 -1
  2319. package/dist/domain/relations/relation-implementation.d.ts +0 -8
  2320. package/dist/domain/system-components/angle-indicator.d.ts +0 -21
  2321. package/dist/domain/system-components/angle-indicator.js +0 -1
  2322. package/dist/domain/system-components/attribute-switch.d.ts +0 -8
  2323. package/dist/domain/system-components/attribute-switch.js +0 -1
  2324. package/dist/domain/system-components/autorotate-camera-component.d.ts +0 -19
  2325. package/dist/domain/system-components/autorotate-camera-component.js +0 -1
  2326. package/dist/domain/system-components/basic-sidebar-footer.d.ts +0 -8
  2327. package/dist/domain/system-components/basic-sidebar-footer.js +0 -1
  2328. package/dist/domain/system-components/camera-based-hidden-entity-object.js +0 -1
  2329. package/dist/domain/system-components/camera-based-hidden-entity.js +0 -1
  2330. package/dist/domain/system-components/canvas-config.d.ts +0 -87
  2331. package/dist/domain/system-components/canvas-config.js +0 -1
  2332. package/dist/domain/system-components/canvas-custom-environment.js +0 -1
  2333. package/dist/domain/system-components/canvas-padding.d.ts +0 -25
  2334. package/dist/domain/system-components/canvas-padding.js +0 -1
  2335. package/dist/domain/system-components/canvas-preset-environment.d.ts +0 -37
  2336. package/dist/domain/system-components/canvas-preset-environment.js +0 -1
  2337. package/dist/domain/system-components/child-entity-recipe-hierarchy.d.ts +0 -21
  2338. package/dist/domain/system-components/child-entity-recipe-hierarchy.js +0 -1
  2339. package/dist/domain/system-components/client-side-image.d.ts +0 -14
  2340. package/dist/domain/system-components/client-side-image.js +0 -1
  2341. package/dist/domain/system-components/color-value.js +0 -1
  2342. package/dist/domain/system-components/common/angle-indicator-schema.d.ts +0 -292
  2343. package/dist/domain/system-components/common/angle-indicator-schema.js +0 -1
  2344. package/dist/domain/system-components/common/dimension-indicator-schema.d.ts +0 -607
  2345. package/dist/domain/system-components/common/dimension-indicator-schema.js +0 -1
  2346. package/dist/domain/system-components/custom-header.d.ts +0 -11
  2347. package/dist/domain/system-components/custom-header.js +0 -1
  2348. package/dist/domain/system-components/custom-price-footer.js +0 -1
  2349. package/dist/domain/system-components/custom-sidebar-footer.d.ts +0 -11
  2350. package/dist/domain/system-components/custom-sidebar-footer.js +0 -1
  2351. package/dist/domain/system-components/dimension-indicator.d.ts +0 -31
  2352. package/dist/domain/system-components/dimension-indicator.js +0 -1
  2353. package/dist/domain/system-components/editable-angle-indicator.d.ts +0 -38
  2354. package/dist/domain/system-components/editable-angle-indicator.js +0 -1
  2355. package/dist/domain/system-components/editable-distance-dimension-indicator.d.ts +0 -42
  2356. package/dist/domain/system-components/editable-distance-dimension-indicator.js +0 -1
  2357. package/dist/domain/system-components/editable-offset-indicator.d.ts +0 -41
  2358. package/dist/domain/system-components/editable-offset-indicator.js +0 -1
  2359. package/dist/domain/system-components/editable-size-indicator.d.ts +0 -38
  2360. package/dist/domain/system-components/editable-size-indicator.js +0 -1
  2361. package/dist/domain/system-components/entity-header.d.ts +0 -22
  2362. package/dist/domain/system-components/entity-header.js +0 -1
  2363. package/dist/domain/system-components/exit-tool-mode-fab.d.ts +0 -25
  2364. package/dist/domain/system-components/exit-tool-mode-fab.js +0 -1
  2365. package/dist/domain/system-components/finalize-action.d.ts +0 -20
  2366. package/dist/domain/system-components/finalize-action.js +0 -1
  2367. package/dist/domain/system-components/finalize-component.js +0 -1
  2368. package/dist/domain/system-components/fit-selection-orthographic-camera-component.js +0 -1
  2369. package/dist/domain/system-components/fit-selection-perspective-camera-component.js +0 -1
  2370. package/dist/domain/system-components/fixed-header.d.ts +0 -10
  2371. package/dist/domain/system-components/fixed-header.js +0 -1
  2372. package/dist/domain/system-components/floating-header.d.ts +0 -10
  2373. package/dist/domain/system-components/floating-header.js +0 -1
  2374. package/dist/domain/system-components/hidden-header.d.ts +0 -8
  2375. package/dist/domain/system-components/hidden-header.js +0 -1
  2376. package/dist/domain/system-components/hidden-sidebar-footer.d.ts +0 -21
  2377. package/dist/domain/system-components/hidden-sidebar-footer.js +0 -1
  2378. package/dist/domain/system-components/horizontal-tabs.d.ts +0 -28
  2379. package/dist/domain/system-components/horizontal-tabs.js +0 -1
  2380. package/dist/domain/system-components/list-selector-dimension-indicator.d.ts +0 -30
  2381. package/dist/domain/system-components/list-selector-dimension-indicator.js +0 -1
  2382. package/dist/domain/system-components/multilingual-text-value.js +0 -1
  2383. package/dist/domain/system-components/navigation-steps.d.ts +0 -19
  2384. package/dist/domain/system-components/navigation-steps.js +0 -1
  2385. package/dist/domain/system-components/offset-anchors.d.ts +0 -20
  2386. package/dist/domain/system-components/offset-anchors.js +0 -1
  2387. package/dist/domain/system-components/offset-indicator.d.ts +0 -84
  2388. package/dist/domain/system-components/offset-indicator.js +0 -1
  2389. package/dist/domain/system-components/offset.d.ts +0 -31
  2390. package/dist/domain/system-components/offset.js +0 -1
  2391. package/dist/domain/system-components/other-action.d.ts +0 -14
  2392. package/dist/domain/system-components/other-action.js +0 -1
  2393. package/dist/domain/system-components/property-page.d.ts +0 -16
  2394. package/dist/domain/system-components/property-page.js +0 -1
  2395. package/dist/domain/system-components/read-sidebar-footer.d.ts +0 -8
  2396. package/dist/domain/system-components/read-sidebar-footer.js +0 -1
  2397. package/dist/domain/system-components/replace-entity-recipe-hierarchy.d.ts +0 -21
  2398. package/dist/domain/system-components/replace-entity-recipe-hierarchy.js +0 -1
  2399. package/dist/domain/system-components/rotatable.js +0 -1
  2400. package/dist/domain/system-components/rotation-handle.d.ts +0 -53
  2401. package/dist/domain/system-components/rotation-handle.js +0 -1
  2402. package/dist/domain/system-components/save-template-thumbnail.d.ts +0 -14
  2403. package/dist/domain/system-components/save-template-thumbnail.js +0 -1
  2404. package/dist/domain/system-components/scene-entity-add-fab.d.ts +0 -32
  2405. package/dist/domain/system-components/scene-entity-add-fab.js +0 -1
  2406. package/dist/domain/system-components/scene-entity-animation.js +0 -1
  2407. package/dist/domain/system-components/scene-entity-control.js +0 -1
  2408. package/dist/domain/system-components/scene-entity-delete-fab.d.ts +0 -19
  2409. package/dist/domain/system-components/scene-entity-delete-fab.js +0 -1
  2410. package/dist/domain/system-components/scene-entity-floor-object.js +0 -1
  2411. package/dist/domain/system-components/scene-entity-html-hotspot.d.ts +0 -27
  2412. package/dist/domain/system-components/scene-entity-html-hotspot.js +0 -1
  2413. package/dist/domain/system-components/scene-entity-navigation-hotspot.d.ts +0 -20
  2414. package/dist/domain/system-components/scene-entity-navigation-hotspot.js +0 -1
  2415. package/dist/domain/system-components/scene-entity-object-html-hotspot.d.ts +0 -31
  2416. package/dist/domain/system-components/scene-entity-object-html-hotspot.js +0 -1
  2417. package/dist/domain/system-components/scene-entity-select-hotspot.d.ts +0 -5
  2418. package/dist/domain/system-components/scene-entity-select-hotspot.js +0 -1
  2419. package/dist/domain/system-components/scene-entity-wall-object.js +0 -1
  2420. package/dist/domain/system-components/selectable-component.js +0 -1
  2421. package/dist/domain/system-components/sidebar-tabs.d.ts +0 -29
  2422. package/dist/domain/system-components/sidebar-tabs.js +0 -1
  2423. package/dist/domain/system-components/simple-summary.js +0 -1
  2424. package/dist/domain/system-components/size.d.ts +0 -21
  2425. package/dist/domain/system-components/size.js +0 -1
  2426. package/dist/domain/system-components/sketching-draw.d.ts +0 -17
  2427. package/dist/domain/system-components/sketching-draw.js +0 -1
  2428. package/dist/domain/system-components/sketching-edit.d.ts +0 -28
  2429. package/dist/domain/system-components/sketching-edit.js +0 -1
  2430. package/dist/domain/system-components/summary-component.js +0 -1
  2431. package/dist/domain/system-components/text-value.js +0 -1
  2432. package/dist/domain/system-components/tool-controls.js +0 -1
  2433. package/dist/domain/system-components/tool-menu-fab.d.ts +0 -40
  2434. package/dist/domain/system-components/tool-menu-fab.js +0 -1
  2435. package/dist/domain/system-components/toolbar.d.ts +0 -13
  2436. package/dist/domain/system-components/toolbar.js +0 -1
  2437. package/dist/domain/system-components/universal-sidebar-footer.d.ts +0 -12
  2438. package/dist/domain/system-components/universal-sidebar-footer.js +0 -1
  2439. package/dist/domain/system-components/view-controls.js +0 -1
  2440. package/dist/extras/assistant/AssistantChat.d.ts +0 -6
  2441. package/dist/extras/assistant/AssistantChat.js +0 -1
  2442. package/dist/extras/assistant/index.d.ts +0 -1
  2443. package/dist/extras/assistant/index.js +0 -1
  2444. package/dist/phoenix/application-spec/generate-assistant-prompt.d.ts +0 -12
  2445. package/dist/phoenix/application-spec/generate-assistant-prompt.js +0 -1
  2446. package/dist/phoenix/commands/generate-project-files.d.ts +0 -6
  2447. package/dist/phoenix/commands/generate-project-files.js +0 -1
  2448. package/dist/phoenix/commands/generated-env-markers.d.ts +0 -7
  2449. package/dist/phoenix/commands/generated-env-markers.js +0 -1
  2450. package/dist/phoenix/services/lingui.d.ts +0 -7
  2451. package/dist/phoenix/services/lingui.js +0 -1
  2452. package/dist/react-sdk/application-runtime/runtime/god-mode.d.ts +0 -19
  2453. package/dist/react-sdk/application-runtime/runtime/god-mode.js +0 -1
  2454. package/dist/react-sdk/loading-state/LoadingStateProvider.d.ts +0 -31
  2455. package/dist/react-sdk/loading-state/LoadingStateProvider.js +0 -1
  2456. package/dist/react-sdk/loading-state/loading-state-manager.d.ts +0 -32
  2457. package/dist/react-sdk/loading-state/loading-state-manager.js +0 -1
  2458. /package/dist/application-spec/{core → enhanced-json}/eval-code-uses-self.d.ts +0 -0
  2459. /package/dist/application-spec/{core → enhanced-json}/eval-code-uses-self.js +0 -0
  2460. /package/dist/application-spec/{core → enhanced-json}/eval-to-constant.js +0 -0
  2461. /package/dist/{domain/components/component-reader-types.js → application-spec/generate-application/runtime/spec-code/spec-code-module.js} +0 -0
  2462. /package/dist/{domain/core/action.js → application-spec/parse-application-files/spec/expressions/expression-read.js} +0 -0
  2463. /package/dist/{domain/core/expression.js → configurator/ui/assistant/form/form-model.js} +0 -0
  2464. /package/dist/{domain/core/schema-validator.js → configurator/ui/assistant/form/form-state.js} +0 -0
  2465. /package/dist/{domain/core/enhanced-json-schema.js → configurator/ui/assistant/form-elements/form-element-props.js} +0 -0
  2466. /package/dist/domain/{relations/reference-field.js → application/assistant/assistant-resolved-manifest.js} +0 -0
  2467. /package/dist/domain/{actions → core/action}/action-factory.js +0 -0
  2468. /package/dist/domain/{relations/relation-implementation.js → core/action/action.js} +0 -0
  2469. /package/dist/domain/{components → core/component}/legacy-filter.js +0 -0
  2470. /package/dist/domain/{components → core/component}/system-component-filter.js +0 -0
  2471. /package/dist/domain/{components → core/component}/system-virtual-entity.d.ts +0 -0
  2472. /package/dist/domain/{components → core/component}/updates.js +0 -0
  2473. /package/dist/domain/{invariants → core/invariant}/builtin-invariant.js +0 -0
  2474. /package/dist/domain/{invariants → core/invariant}/violation-component.d.ts +0 -0
  2475. /package/dist/domain/core/{alias.d.ts → model/alias.d.ts} +0 -0
  2476. /package/dist/domain/core/{alias.js → model/alias.js} +0 -0
  2477. /package/dist/domain/core/{common-definitions.d.ts → model/common-definitions.d.ts} +0 -0
  2478. /package/dist/domain/core/{common-definitions.js → model/common-definitions.js} +0 -0
  2479. /package/dist/domain/core/{component.js → model/component.js} +0 -0
  2480. /package/dist/domain/core/{model.js → model/model.js} +0 -0
  2481. /package/dist/domain/core/{preset.d.ts → model/preset.d.ts} +0 -0
  2482. /package/dist/domain/core/{preset.js → model/preset.js} +0 -0
  2483. /package/dist/domain/{relations → core/relation}/direct-relation.js +0 -0
  2484. /package/dist/domain/core/{schema-validator-ajv.d.ts → schema/create-ajv-schema-validator.d.ts} +0 -0
  2485. /package/dist/domain/core/{schema-validator-ajv.js → schema/create-ajv-schema-validator.js} +0 -0
  2486. /package/dist/domain/core/{schema-validator-csp.d.ts → schema/create-csp-schema-validator.d.ts} +0 -0
  2487. /package/dist/domain/core/{schema-validator-csp.js → schema/create-csp-schema-validator.js} +0 -0
  2488. /package/dist/domain/core/{enhanced-json-schema.d.ts → schema/enhanced-json-schema.d.ts} +0 -0
  2489. /package/dist/domain/core/{json-schema.d.ts → schema/extended-schema-validator.d.ts} +0 -0
  2490. /package/dist/domain/core/{schema-validator.d.ts → schema/schema-validator.d.ts} +0 -0
  2491. /package/dist/domain/core/{state.js → state/state.js} +0 -0
  2492. /package/dist/domain/{expressions → domain-runtime/spec}/memoize-expression.js +0 -0
  2493. /package/dist/domain/{expressions → domain-runtime/spec}/prepare-domain-expressions.js +0 -0
  2494. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity-object.d.ts +0 -0
  2495. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity.d.ts +0 -0
  2496. /package/dist/domain/{system-components → extensions}/canvas-custom-environment.d.ts +0 -0
  2497. /package/dist/domain/{system-components → extensions}/color-value.d.ts +0 -0
  2498. /package/dist/domain/{system-components → extensions}/common/dimension-indicators.d.ts +0 -0
  2499. /package/dist/domain/{system-components → extensions}/common/dimension-indicators.js +0 -0
  2500. /package/dist/domain/{system-components → extensions}/common/editable-indicator-button-variant.d.ts +0 -0
  2501. /package/dist/domain/{system-components → extensions}/common/editable-indicator-button-variant.js +0 -0
  2502. /package/dist/domain/{system-components → extensions}/custom-price-footer.d.ts +0 -0
  2503. /package/dist/domain/{system-components → extensions}/finalize-component.d.ts +0 -0
  2504. /package/dist/domain/{system-components → extensions}/fit-selection-orthographic-camera-component.d.ts +0 -0
  2505. /package/dist/domain/{system-components → extensions}/fit-selection-perspective-camera-component.d.ts +0 -0
  2506. /package/dist/domain/{system-components → extensions}/multilingual-text-value.d.ts +0 -0
  2507. /package/dist/domain/{system-components → extensions}/rotatable.d.ts +0 -0
  2508. /package/dist/domain/{system-components → extensions}/scene-entity-animation.d.ts +0 -0
  2509. /package/dist/domain/{system-components → extensions}/scene-entity-control.d.ts +0 -0
  2510. /package/dist/domain/{system-components → extensions}/scene-entity-floor-object.d.ts +0 -0
  2511. /package/dist/domain/{system-components → extensions}/scene-entity-wall-object.d.ts +0 -0
  2512. /package/dist/domain/{system-components → extensions}/selectable-component.d.ts +0 -0
  2513. /package/dist/domain/{system-components → extensions}/simple-summary.d.ts +0 -0
  2514. /package/dist/domain/{system-components → extensions}/summary-component.d.ts +0 -0
  2515. /package/dist/domain/{system-components → extensions}/text-value.d.ts +0 -0
  2516. /package/dist/domain/{system-components → extensions}/tool-controls.d.ts +0 -0
  2517. /package/dist/domain/{system-components → extensions}/view-controls.d.ts +0 -0
  2518. /package/dist/{application-spec/core → domain/spec/application}/application-instance.d.ts +0 -0
  2519. /package/dist/{application-spec/core → domain/spec/application}/application-instance.js +0 -0
  2520. /package/dist/{application-spec/parse-application-files/spec/components/component-entry.js → domain/spec/components/sdk-code-ref.js} +0 -0
  2521. /package/dist/{application-spec/parse-application-files/spec/expressions/expression.js → domain/spec/expressions/sdk-expression-implementation.js} +0 -0
  2522. /package/dist/{application-spec/parse-application-files/spec/components → domain/spec/markers}/component-prop-target.d.ts +0 -0
  2523. /package/dist/{application-spec/parse-application-files/spec/components → domain/spec/markers}/component-prop-target.js +0 -0
  2524. /package/dist/{application-spec/core → domain/spec}/markers/eval-marker.d.ts +0 -0
  2525. /package/dist/{application-spec/core → domain/spec}/markers/eval-marker.js +0 -0
  2526. /package/dist/{configurator/configurator-context → react-sdk/domain-application-context}/OnPresetLoadedHandler.d.ts +0 -0
  2527. /package/dist/{configurator/configurator-context → react-sdk/integration}/IntegrationSubscription.d.ts +0 -0
  2528. /package/dist/{configurator/configurator-context → react-sdk/lifecycle-providers}/LifecycleProviders.d.ts +0 -0
  2529. /package/dist/{configurator/configurator-context → react-sdk/preset-selection}/PresetSelectionProvider.d.ts +0 -0
@@ -0,0 +1,2597 @@
1
+ # Custom Layout
2
+
3
+ Make the configurator look like the brand's own product page. A furniture shop wants its table configurator to read like the rest of its site: a floating panel on the left with the product's name, the edge finishes as picture cards, the price in large type and one clear call to action, and the table in the space beside it. On a phone the panel becomes a sheet at the bottom, and a button on the table's edge offers the finishes right where they apply, and the layout's own buttons switch between the whole table and a close-up of its edge. The project writes that page as one React component. Phoenix supplies the 3D scene, the product's state and a few hooks; every pixel around the scene is the project's own.
4
+
5
+ - [Choose this approach](#choose-this-approach)
6
+ - [Register the layout](#register-the-layout)
7
+ - [What the layout has to do](#what-the-layout-has-to-do)
8
+ - [Read and change the product](#read-and-change-the-product)
9
+ - [Draw the choices](#draw-the-choices)
10
+ - [Offer fullscreen](#offer-fullscreen)
11
+ - [Undo and redo](#undo-and-redo)
12
+ - [Show messages](#show-messages)
13
+ - [Request a quote](#request-a-quote)
14
+ - [Serve read mode](#serve-read-mode)
15
+ - [Fit a phone](#fit-a-phone)
16
+ - [Put a control on the product](#put-a-control-on-the-product)
17
+ - [Control the scene](#control-the-scene)
18
+ - [The spec the layout reads](#the-spec-the-layout-reads)
19
+ - [Try the example](#try-the-example)
20
+ - [Test cases](#test-cases)
21
+ - [Known gaps](#known-gaps)
22
+ - [Related pages](#related-pages)
23
+ - [Complete Implementation](#complete-implementation)
24
+
25
+ ## Choose this approach
26
+
27
+ Write your own layout when the configurator has to follow a design the built-in layout cannot take on: the brand's typography, controls and spacing, a panel on the left, a top bar with the price, an area the built-in layout has no place for.
28
+
29
+ Stay with the built-in layout when its structure fits and only its parts change. [Universal](?path=/docs/layouts-universal--docs) demonstrates that layout, and the pages of its parts describe what the spec configures: [Header](?path=/docs/layouts-header-floating--docs), [Sidebar](?path=/docs/layouts-sidebar-general--docs), [Sidebar Footer](?path=/docs/layouts-sidebar-footer-basic--docs), [Toolbar](?path=/docs/layouts-toolbar--docs) and [View Controls](?path=/docs/layouts-view-controls--docs).
30
+
31
+ A project layout replaces all of that. None of the built-in sidebar, footer, toolbar or property pages is rendered for it, so the layout builds every control the user needs. This example uses no SDK component that draws UI: only the scene and the `phx.frontend` hooks that measure the free area, read and change the product's state and record analytics. A layout may also mount the SDK's own pieces where it wants them, see [Configurator Interface → Loaded Configuration UI](?path=/docs/phoenix-configurator-interface--docs#loaded-configuration-ui).
32
+
33
+ ## Register the layout
34
+
35
+ Create `src/elements/ConfiguratorLayout.tsx` with a default export made by `phx.frontend.createCustomPhoenixLayoutElement`. The name `ConfiguratorLayout` is what makes it the layout: Phoenix renders the element registered under that name for every loaded configuration, in owner and in read mode, whatever `layout` the spec sets. Nothing in the YAML refers to it.
36
+
37
+ ```tsx
38
+ import { Box } from '@mui/material'
39
+ import { useState } from 'react'
40
+
41
+ import { LayoutSlots } from '@salsita-ai/sdk/configurator'
42
+
43
+ import { phx } from '../../.phoenix/phx.js'
44
+ import { BottomSheet } from '../_shared/BottomSheet.js'
45
+ import { FullscreenToggle } from '../_shared/FullscreenToggle.js'
46
+ import { MessageToast } from '../_shared/MessageToast.js'
47
+ import { ProductPanel } from '../_shared/ProductPanel.js'
48
+ import { SceneControls } from '../_shared/SceneControls.js'
49
+ import { UndoRedo } from '../_shared/UndoRedo.js'
50
+
51
+ const GUTTER = 24
52
+ const PANEL_WIDTH = 380
53
+ const PHONE_GUTTER = 16
54
+ const TOUCH_TARGET = 44
55
+
56
+ const ConfiguratorLayout = () => {
57
+ const { containerRef, safeAreaRef } = phx.frontend.useSceneSafeArea()
58
+ const isFullscreen = phx.frontend.useIsFullscreenActive()
59
+ // `null` until the container has been measured; the layout shows only the scene until then
60
+ const viewports = phx.frontend.useActiveViewports()
61
+ const [isSheetOpen, setSheetOpen] = useState(false)
62
+
63
+ const isDesktop = viewports?.includes('desktop') ?? false
64
+ const gutter = isDesktop ? GUTTER : PHONE_GUTTER
65
+
66
+ return (
67
+ <Box
68
+ component="div"
69
+ ref={containerRef}
70
+ // `clip`, not `hidden`: what overflows, such as the sheet's fill below its edge, can never be scrolled into view,
71
+ // not even by the browser when the focus moves
72
+ sx={{ position: 'absolute', inset: 0, display: 'flex', flexDirection: 'column', overflow: 'clip' }}
73
+ >
74
+ <LayoutSlots.SharedCanvas />
75
+
76
+ {viewports !== null && isDesktop && !isFullscreen && (
77
+ <Box
78
+ component="aside"
79
+ sx={{
80
+ position: 'absolute',
81
+ insetBlockStart: GUTTER,
82
+ insetInlineStart: GUTTER,
83
+ inlineSize: PANEL_WIDTH,
84
+ maxBlockSize: `calc(100% - ${2 * GUTTER}px)`,
85
+ display: 'flex',
86
+ flexDirection: 'column',
87
+ borderRadius: 5,
88
+ bgcolor: 'background.paper',
89
+ boxShadow: '0 12px 40px rgba(0, 0, 0, 0.12)',
90
+ // A very short container, such as a phone held sideways, scrolls the panel instead of clipping its footer
91
+ overflowX: 'hidden',
92
+ overflowY: 'auto',
93
+ overscrollBehavior: 'contain',
94
+ }}
95
+ >
96
+ <ProductPanel />
97
+ </Box>
98
+ )}
99
+
100
+ {viewports !== null && (
101
+ <Box
102
+ component="div"
103
+ ref={safeAreaRef}
104
+ sx={{
105
+ // Desktop: right of the panel. Phone: above the sheet, whose height the column gives the rest.
106
+ ...(isDesktop
107
+ ? {
108
+ position: 'absolute',
109
+ insetBlock: 0,
110
+ insetInlineStart: isFullscreen ? 0 : PANEL_WIDTH + 2 * GUTTER,
111
+ insetInlineEnd: 0,
112
+ }
113
+ : { position: 'relative', flex: '1 1 0', minBlockSize: 0 }),
114
+ pointerEvents: 'none',
115
+ }}
116
+ >
117
+ <Box
118
+ component="div"
119
+ sx={{
120
+ position: 'absolute',
121
+ insetBlockStart: gutter,
122
+ insetInlineEnd: gutter,
123
+ display: 'flex',
124
+ gap: 1,
125
+ pointerEvents: 'auto',
126
+ }}
127
+ >
128
+ {!isFullscreen && <UndoRedo />}
129
+ <FullscreenToggle compact={!isDesktop} />
130
+ </Box>
131
+ <Box
132
+ component="div"
133
+ sx={{
134
+ position: 'absolute',
135
+ pointerEvents: 'auto',
136
+ // Desktop: bottom left, above the row of view controls. Phone: at the top below the row of undo, redo and
137
+ // fullscreen, clear of the sheet's handle and the view controls.
138
+ ...(isDesktop
139
+ ? { insetBlockEnd: 2 * GUTTER + TOUCH_TARGET, insetInlineStart: GUTTER }
140
+ : { insetBlockStart: gutter + TOUCH_TARGET + gutter / 2, insetInline: gutter }),
141
+ }}
142
+ >
143
+ <MessageToast />
144
+ </Box>
145
+ {/* A phone in fullscreen keeps only the reset, as the built-in layout does. Below 1024 pixels (`tablet`) the
146
+ free area beside the panel is narrow, so the reset shows only its icon there too. */}
147
+ <Box
148
+ component="div"
149
+ sx={{ position: 'absolute', insetBlockEnd: gutter, insetInlineEnd: gutter, pointerEvents: 'auto' }}
150
+ >
151
+ <SceneControls
152
+ compact={!isDesktop || (viewports?.includes('tablet') ?? false)}
153
+ resetOnly={!isDesktop && isFullscreen}
154
+ />
155
+ </Box>
156
+ </Box>
157
+ )}
158
+
159
+ {viewports !== null && !isDesktop && !isFullscreen && (
160
+ <BottomSheet open={isSheetOpen} onOpenChange={setSheetOpen} label="Product details">
161
+ <ProductPanel collapsed={!isSheetOpen} inSheet />
162
+ </BottomSheet>
163
+ )}
164
+ </Box>
165
+ )
166
+ }
167
+
168
+ export default phx.frontend.createCustomPhoenixLayoutElement('ConfiguratorLayout', ConfiguratorLayout)
169
+ ```
170
+
171
+ The components it uses live in `src/_shared/`, which Phoenix does not import by convention, so the layout imports them itself. Application projects receive `phx` as a global. Storybook examples cannot rely on that project environment, so these files import it from `../../.phoenix/phx.js`; leave that import out in a project.
172
+
173
+ ## What the layout has to do
174
+
175
+ - **Position the root and cover the page.** `LayoutSlots.SharedCanvas` is absolutely positioned and fills its nearest positioned ancestor. The root here is `position: absolute; inset: 0`.
176
+ - **Mount the shared canvas.** It renders the scene, and the app loader stays on screen until the scene has loaded. A layout without a canvas is not held by the loader: it leaves once the configuration is up.
177
+ - **Put the UI above the canvas.** The canvas is opaque. Content that is positioned and comes after it in the markup is painted above it; unpositioned content is painted under it and cannot be seen.
178
+ - **Tell the camera where the free area is.** `phx.frontend.useSceneSafeArea()` returns two refs. `containerRef` goes on the element that covers the whole canvas, `safeAreaRef` on the region the product should stay visible in, here everything right of the panel, or above the sheet on a phone. The camera then frames the product in that region. The hook measures again whenever either of the two elements resizes; for a change no resize reports, such as a `transform` on an ancestor settling at the end of an animation, it also returns `update` to call. Without the two refs the product is centred in the whole canvas and sits against the panel.
179
+ - **Let the pointer through.** The safe-area element lies over the canvas, so it sets `pointerEvents: 'none'`; otherwise the scene cannot be orbited. The fullscreen button inside it switches pointer events back on.
180
+ - **Honour fullscreen.** Fullscreen is a flag in the product's state, not a browser feature. The layout reads it with `phx.frontend.useIsFullscreenActive()`, removes the panel or the sheet and lets the safe area cover the canvas, so the camera frames the product in the whole canvas.
181
+ - **Fit the width it is given.** The configurator can be embedded in a narrow column or opened on a phone. The layout reads the container's width class with `phx.frontend.useActiveViewports()` and renders a desktop or a phone arrangement, see [Fit a phone](#fit-a-phone).
182
+ - **Serve read mode.** The same element renders a configuration shared for viewing, or one the host page opens read-only, and the layout decides what a viewer sees; see [Serve read mode](#serve-read-mode).
183
+
184
+ ## Read and change the product
185
+
186
+ The panel reads everything it shows from hooks and writes the customer's choice back through one of them. The table lists the hooks the whole layout uses:
187
+
188
+ ```tsx
189
+ import { Box, Button, Typography } from '@mui/material'
190
+
191
+ import { detailComponent } from '@salsita-ai/sdk/domain'
192
+
193
+ import { phx } from '../../.phoenix/phx.js'
194
+ import { EdgeFinishCards } from './EdgeFinishCards.js'
195
+ import { ReviewActions } from './ReviewActions.js'
196
+
197
+ const BUTTON_SX = { minBlockSize: 48, borderRadius: 999, textTransform: 'none', fontWeight: 600 } as const
198
+
199
+ interface ProductPanelProps {
200
+ // Only the name, the price and the action, for a collapsed bottom sheet
201
+ readonly collapsed?: boolean
202
+ // In a bottom sheet the cards region keeps the top of the cards in view, and the sheet scrolls when that does not fit
203
+ readonly inSheet?: boolean
204
+ }
205
+
206
+ export const ProductPanel = ({ collapsed = false, inSheet = false }: ProductPanelProps) => {
207
+ const resolve = phx.frontend.useResolveLocalizable()
208
+ const detail = phx.frontend.useFirstRootComponent(detailComponent)
209
+ const price = phx.frontend.useRootEntityPrice()
210
+ const tableId = phx.frontend.useRootEntityId()
211
+ const edgeFinish = phx.frontend.useAttributeSelection(tableId, 'edgeFinish')
212
+ const { accessInfo } = phx.frontend.useAccessService()
213
+ const navigationState = phx.frontend.useActiveNavigationState()
214
+ const pushNavigate = phx.frontend.usePushNavigate()
215
+ const popNavigate = phx.frontend.usePopNavigate()
216
+ const navigate = phx.frontend.useNavigate()
217
+
218
+ const isReadMode = accessInfo.viewMode
219
+ const isReview = isReadMode || navigationState !== 'configure'
220
+ const chosenEdge = edgeFinish.options.find(option => option.value === edgeFinish.value)
221
+
222
+ return (
223
+ <>
224
+ <Box component="header" sx={{ display: 'grid', gap: 1, padding: 3, paddingBlockEnd: 2 }}>
225
+ {isReadMode ? (
226
+ <Typography
227
+ variant="overline"
228
+ sx={{ justifySelf: 'start', paddingInline: 1.5, borderRadius: 999, bgcolor: 'action.selected' }}
229
+ >
230
+ View only
231
+ </Typography>
232
+ ) : (
233
+ <Typography variant="overline" color="text.secondary">
234
+ {resolve(detail?.state.subtitle)}
235
+ </Typography>
236
+ )}
237
+ <Typography variant="h5" component="h2" fontWeight={700}>
238
+ {resolve(detail?.state.title)}
239
+ </Typography>
240
+ {!collapsed && (
241
+ <Typography variant="body2" color="text.secondary">
242
+ {resolve(detail?.state.description)}
243
+ </Typography>
244
+ )}
245
+ </Box>
246
+
247
+ {!collapsed && (
248
+ <Box
249
+ component="div"
250
+ sx={{
251
+ display: 'grid',
252
+ gap: 1.5,
253
+ paddingInline: 3,
254
+ paddingBlockEnd: 3,
255
+ // In a short container the region shrinks and scrolls; a scroll past its end moves its container on
256
+ minBlockSize: inSheet ? 120 : 0,
257
+ overflowY: 'auto',
258
+ }}
259
+ >
260
+ <Typography variant="subtitle2" component="h3">
261
+ Edge finish
262
+ </Typography>
263
+ {isReview ? (
264
+ <Box component="div" sx={{ padding: 2, borderRadius: 3, bgcolor: 'action.hover' }}>
265
+ <Typography variant="body2" fontWeight={600}>
266
+ {resolve(chosenEdge?.title)}
267
+ </Typography>
268
+ <Typography variant="caption" color="text.secondary">
269
+ {resolve(chosenEdge?.description)}
270
+ </Typography>
271
+ </Box>
272
+ ) : (
273
+ <EdgeFinishCards selection={edgeFinish} />
274
+ )}
275
+ </Box>
276
+ )}
277
+
278
+ <Box component="footer" sx={{ display: 'grid', gap: 2, padding: 3, borderTop: 1, borderColor: 'divider' }}>
279
+ <Box component="div" sx={{ display: 'flex', alignItems: 'baseline', justifyContent: 'space-between' }}>
280
+ <Typography variant="body2" color="text.secondary">
281
+ Total price
282
+ </Typography>
283
+ <Typography variant="h5" component="p" fontWeight={700}>
284
+ {price}
285
+ </Typography>
286
+ </Box>
287
+ {!isReadMode && navigationState === 'configure' && (
288
+ <Button size="large" variant="contained" onClick={() => pushNavigate('checkout')} sx={BUTTON_SX}>
289
+ Review and request a quote
290
+ </Button>
291
+ )}
292
+ {!isReadMode && navigationState === 'checkout' && (
293
+ <>
294
+ <Typography variant="body2" color="text.secondary">
295
+ Your table is ready for a quote. A real shop collects the contact details here.
296
+ </Typography>
297
+ <ReviewActions onBack={popNavigate} />
298
+ </>
299
+ )}
300
+ {!isReadMode && navigationState === 'requested' && (
301
+ <>
302
+ <Typography variant="body2" role="status">
303
+ Thank you. Your quote request is on its way, and the shop replies within two working days.
304
+ </Typography>
305
+ <Button size="large" variant="outlined" onClick={() => navigate('configure')} sx={BUTTON_SX}>
306
+ Back to the configuration
307
+ </Button>
308
+ </>
309
+ )}
310
+ </Box>
311
+ </>
312
+ )
313
+ }
314
+ ```
315
+
316
+ | Hook | What the layout uses it for |
317
+ | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
318
+ | `phx.frontend.useFirstRootComponent(detailComponent)` | The `detail` component of the root entity: name, subtitle and description. `detailComponent` comes from `@salsita-ai/sdk/domain`; the hook returns `null` without one. |
319
+ | `phx.frontend.useRootEntityId()` | The id of the table, which the control hooks take. |
320
+ | `phx.frontend.useAttributeSelection(entityId, instanceName)` | The `attributeSelection` component named `edgeFinish`: the current `value` and the `options`, each with `title`, `description`, `value`, `disabled` and `onSelect`. |
321
+ | `phx.frontend.useRootEntityPrice()` | The root entity's `price` component, formatted for the current locale and currency, or `null` without one. |
322
+ | `phx.frontend.useResolveLocalizable()` | Turns the localizable texts of the spec into strings in the current language. [Localization](?path=/docs/phoenix-localization--docs) describes it, `phx.frontend.useLocalizable(text)` and `LocalizableMessage`. |
323
+ | `phx.frontend.useAccessService()` | `accessInfo.viewMode` is `true` while a configuration shared for viewing is open, and also while the host sets the `readonly` property; see [Serve read mode](#serve-read-mode). |
324
+ | `phx.frontend.useActiveNavigationState()` | The active navigation state; the panel shows its review step while it is `checkout`. |
325
+ | `phx.frontend.usePushNavigate()` and `phx.frontend.usePopNavigate()` | Enter the review step and leave it again. |
326
+ | `phx.frontend.useNavigate()` | Return from the confirmation to the configuration, forgetting the review step. |
327
+ | `phx.frontend.useFinalizeActions()` | The spec's `finalizeAction` components with what a button needs; the review step offers the `primary` one and runs it, with its pending state, its error and whether finalizing is possible; see [Request a quote](#request-a-quote). |
328
+ | `phx.frontend.useUndoRedo()` | Whether there is a change to undo or redo, and `undo` and `redo`, for the layout's own buttons; see [Undo and redo](#undo-and-redo). |
329
+ | `phx.frontend.useIsFullscreenActive()` and `phx.frontend.useSetFullscreen()` | Read the fullscreen flag, and set it from the layout's own button. |
330
+ | `phx.frontend.useAnalytics()` | Record the fullscreen button's click as the built-in button does; see [Offer fullscreen](#offer-fullscreen). |
331
+ | `phx.frontend.useSceneSafeArea()` | The two refs that tell the camera which part of the canvas the panel or the sheet leaves free; see [What the layout has to do](#what-the-layout-has-to-do). |
332
+ | `phx.frontend.useActiveViewports()` | The width classes of the configurator's container, or `null` before it is measured; the layout renders its phone arrangement unless it includes `desktop`, see [Fit a phone](#fit-a-phone). |
333
+ | `phx.frontend.useActiveViewState()` and `phx.frontend.useSetViewState()` | Read the active view state, one of the spec's `viewStates`, to mark the active view button, and make another one active; see [Control the scene](#control-the-scene). |
334
+ | `phx.frontend.useResetCamera()` | Move the camera back to the framing of the active camera, undoing the customer's orbit, pan and zoom. |
335
+ | `phx.frontend.useConfiguratorMessages(onMessage)` | Receive violations, side-effect hints and errors one by one, with their text resolved, for the layout's own toast; see [Show messages](#show-messages). |
336
+
337
+ Calling an option's `onSelect` is the whole write: it changes `edgeFinish` on the table, the scene morphs the edge and the price expression recalculates. The option fields are named for display: the spec's `label` arrives as `title`, its `img` as `imageSrc`.
338
+
339
+ The review step is the layout's own: the button pushes the `checkout` navigation state, and the panel shows a summary instead of the cards. There **Request a quote** runs the spec's finalize action, whose handler moves the panel on to the `requested` state and its confirmation; see [Request a quote](#request-a-quote). A real shop collects the contact details in the review step before it sends the request.
340
+
341
+ ## Draw the choices
342
+
343
+ The edge finish is a visual choice, so the panel shows it as cards with a drawing of each profile, as [Choosing a Control](?path=/docs/ux-guidelines-choosing-a-control--docs) recommends for shapes. The selected card has a border in the theme's primary colour, a tinted background and a check mark, so the state does not depend on colour alone. The cards form a radio group: the group has `role="radiogroup"` and a label, each card `role="radio"` and `aria-checked`, only the selected card is in the tab order, and the arrow keys move the selection, skipping disabled options, as in a native radio group. Each card is at least 44 pixels high and shows a focus ring for keyboard users.
344
+
345
+ ```tsx
346
+ import { Box, ButtonBase, type SxProps, type Theme, Typography } from '@mui/material'
347
+ import type { KeyboardEvent } from 'react'
348
+
349
+ import type { UseAttributeSelection } from '@salsita-ai/sdk/react'
350
+
351
+ import { phx } from '../../.phoenix/phx.js'
352
+
353
+ // Cross-sections of the tabletop's edge, keyed by the option values of the spec.
354
+ const EDGE_PROFILES: Readonly<Record<string, string>> = {
355
+ None: 'M0 4H32V20H0Z',
356
+ Facet: 'M0 4H26L32 10V14L26 20H0Z',
357
+ Round: 'M0 4H24A8 8 0 0 1 24 20H0Z',
358
+ TreeTrunk: 'M0 4H27C33 5 28 9 34 11C29 13 34 17 27 20H0Z',
359
+ }
360
+
361
+ const CHECK_BADGE: SxProps<Theme> = {
362
+ position: 'absolute',
363
+ insetBlockStart: 10,
364
+ insetInlineEnd: 10,
365
+ display: 'grid',
366
+ placeItems: 'center',
367
+ inlineSize: 22,
368
+ blockSize: 22,
369
+ borderRadius: '50%',
370
+ bgcolor: 'primary.main',
371
+ color: 'primary.contrastText',
372
+ fontSize: 13,
373
+ }
374
+
375
+ // Arrow keys move the selection between the cards, as in a native radio group.
376
+ const ARROW_STEPS: Readonly<Record<string, number | undefined>> = {
377
+ ArrowRight: 1,
378
+ ArrowDown: 1,
379
+ ArrowLeft: -1,
380
+ ArrowUp: -1,
381
+ }
382
+
383
+ interface EdgeFinishCardsProps {
384
+ readonly selection: ReturnType<UseAttributeSelection>
385
+ }
386
+
387
+ export const EdgeFinishCards = ({ selection }: EdgeFinishCardsProps) => {
388
+ const resolve = phx.frontend.useResolveLocalizable()
389
+ const { options } = selection
390
+ // The card in the tab order: the selected one, or the first enabled one. Disabled cards are never in it.
391
+ const selectedIndex = options.findIndex(option => option.value === selection.value && !option.disabled)
392
+ const focusIndex = selectedIndex >= 0 ? selectedIndex : options.findIndex(option => !option.disabled)
393
+
394
+ const handleKeyDown = (event: KeyboardEvent<HTMLElement>, index: number) => {
395
+ const step = ARROW_STEPS[event.key]
396
+
397
+ if (step === undefined) {
398
+ return
399
+ }
400
+
401
+ event.preventDefault()
402
+ // The next enabled option in the arrow's direction, wrapping around; disabled options are skipped.
403
+ const count = options.length
404
+ const next = Array.from(
405
+ { length: count - 1 },
406
+ (_, offset) => (((index + step * (offset + 1)) % count) + count) % count
407
+ ).find(candidate => !options[candidate]?.disabled)
408
+
409
+ if (next === undefined) {
410
+ return
411
+ }
412
+
413
+ options[next]?.onSelect()
414
+ event.currentTarget.parentElement?.querySelectorAll<HTMLElement>('[role="radio"]')[next]?.focus()
415
+ }
416
+
417
+ return (
418
+ <Box
419
+ component="div"
420
+ role="radiogroup"
421
+ aria-label="Edge finish"
422
+ sx={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 1.5 }}
423
+ >
424
+ {options.map((option, index) => {
425
+ const isSelected = option.value === selection.value
426
+
427
+ return (
428
+ <ButtonBase
429
+ key={String(option.value)}
430
+ role="radio"
431
+ aria-checked={isSelected}
432
+ tabIndex={index === focusIndex ? 0 : -1}
433
+ disabled={option.disabled}
434
+ onClick={option.onSelect}
435
+ onKeyDown={event => handleKeyDown(event, index)}
436
+ sx={{
437
+ position: 'relative',
438
+ display: 'grid',
439
+ justifyItems: 'start',
440
+ gap: 0.5,
441
+ padding: 2,
442
+ borderRadius: 3,
443
+ border: 2,
444
+ borderColor: isSelected ? 'primary.main' : 'divider',
445
+ bgcolor: isSelected ? 'action.hover' : 'transparent',
446
+ textAlign: 'start',
447
+ transition: 'border-color 150ms, background-color 150ms',
448
+ '&:hover': { borderColor: isSelected ? 'primary.main' : 'text.disabled' },
449
+ '&.Mui-focusVisible': { outline: 2, outlineColor: 'primary.main', outlineOffset: 2 },
450
+ '&.Mui-disabled': { opacity: 0.4 },
451
+ }}
452
+ >
453
+ {isSelected && (
454
+ <Box component="span" aria-hidden sx={CHECK_BADGE}>
455
+ ✓
456
+ </Box>
457
+ )}
458
+ <Box
459
+ component="svg"
460
+ viewBox="0 0 36 24"
461
+ aria-hidden
462
+ sx={{ inlineSize: 60, blockSize: 40, color: '#b98b5e' }}
463
+ >
464
+ <path d={EDGE_PROFILES[String(option.value)]} fill="currentColor" />
465
+ </Box>
466
+ <Typography variant="body2" fontWeight={600}>
467
+ {resolve(option.title)}
468
+ </Typography>
469
+ <Typography variant="caption" color="text.secondary">
470
+ {resolve(option.description)}
471
+ </Typography>
472
+ </ButtonBase>
473
+ )
474
+ })}
475
+ </Box>
476
+ )
477
+ }
478
+ ```
479
+
480
+ The drawings are keyed by the option values of the spec. A spec can carry a picture per option instead, as `img`, which the hook returns as `imageSrc`; [CardSelect](?path=/docs/controls-select-attribute-cardselect--docs) shows the SDK's own card control.
481
+
482
+ ## Offer fullscreen
483
+
484
+ Fullscreen is a flag in the configurator's state, not the browser's fullscreen mode. `phx.frontend.useIsFullscreenActive()` reads it and `phx.frontend.useSetFullscreen()` returns a function that sets it: `setFullscreen(true)` turns it on, `setFullscreen(false)` off. The layout's own button flips it, and the layout decides what to hide. Before it flips the flag, the button records the click with `phx.frontend.useAnalytics().push(FrontendAnalyticsFactory.FullScreenModeToggled())`, the event the built-in fullscreen button records, so the shop's analytics count fullscreen the same way with either layout. `FrontendAnalyticsFactory` comes from `@salsita-ai/sdk/configurator`.
485
+
486
+ ```tsx
487
+ import { Button, Tooltip } from '@mui/material'
488
+
489
+ import { FrontendAnalyticsFactory } from '@salsita-ai/sdk/configurator'
490
+
491
+ import { phx } from '../../.phoenix/phx.js'
492
+
493
+ const ENTER_ICON = 'M4 9V4h5M15 4h5v5M20 15v5h-5M9 20H4v-5'
494
+ const EXIT_ICON = 'M9 4v5H4M15 4v5h5M15 20v-5h5M9 20v-5H4'
495
+
496
+ interface FullscreenToggleProps {
497
+ // Only the icon, with the label as its accessible name and tooltip, where a label would cover the product
498
+ readonly compact?: boolean
499
+ }
500
+
501
+ export const FullscreenToggle = ({ compact = false }: FullscreenToggleProps) => {
502
+ const isFullscreen = phx.frontend.useIsFullscreenActive()
503
+ const setFullscreen = phx.frontend.useSetFullscreen()
504
+ const analytics = phx.frontend.useAnalytics()
505
+ const label = isFullscreen ? 'Exit fullscreen' : 'Fullscreen'
506
+ const icon = (
507
+ <svg viewBox="0 0 24 24" width={20} height={20} fill="none" stroke="currentColor" strokeWidth={2}>
508
+ <path d={isFullscreen ? EXIT_ICON : ENTER_ICON} />
509
+ </svg>
510
+ )
511
+
512
+ // The same event the built-in fullscreen button records, for entering and for leaving
513
+ const toggle = () => {
514
+ analytics.push(FrontendAnalyticsFactory.FullScreenModeToggled())
515
+ setFullscreen(!isFullscreen)
516
+ }
517
+
518
+ return (
519
+ <Tooltip title={compact ? label : ''}>
520
+ <Button
521
+ onClick={toggle}
522
+ aria-label={compact ? label : undefined}
523
+ startIcon={compact ? undefined : icon}
524
+ sx={{
525
+ minBlockSize: 44,
526
+ minInlineSize: 44,
527
+ paddingInline: compact ? 0 : 2.5,
528
+ borderRadius: 999,
529
+ bgcolor: 'background.paper',
530
+ color: 'text.primary',
531
+ boxShadow: '0 4px 16px rgba(0, 0, 0, 0.12)',
532
+ textTransform: 'none',
533
+ fontWeight: 600,
534
+ '&:hover': { bgcolor: 'background.paper', boxShadow: '0 6px 20px rgba(0, 0, 0, 0.18)' },
535
+ }}
536
+ >
537
+ {compact ? icon : label}
538
+ </Button>
539
+ </Tooltip>
540
+ )
541
+ }
542
+ ```
543
+
544
+ The button stays in the free area in both states, so the way back is always where the user left it. [Interaction Modes](?path=/docs/ux-guidelines-interaction-modes--docs#full-screen-preview) describes what fullscreen hides.
545
+
546
+ ## Undo and redo
547
+
548
+ The customer tries the four finishes against each other, so the layout offers **Undo** and **Redo** at the top right of the free area, beside the fullscreen button. `phx.frontend.useUndoRedo()` returns `canUndo` and `canRedo`, whether the history has a change to undo or to redo, and `undo` and `redo`, which change the configuration back or forward as the built-in toolbar's buttons do and push the same analytics events:
549
+
550
+ ```tsx
551
+ import { Box, IconButton, Tooltip } from '@mui/material'
552
+
553
+ import { phx } from '../../.phoenix/phx.js'
554
+
555
+ const UNDO_ICON = 'M9 14 4 9l5-5M4 9h10.5a5.5 5.5 0 0 1 0 11H11'
556
+ const REDO_ICON = 'M15 14l5-5-5-5M20 9H9.5a5.5 5.5 0 0 0 0 11H13'
557
+
558
+ interface HistoryButtonProps {
559
+ readonly label: string
560
+ readonly icon: string
561
+ readonly enabled: boolean
562
+ readonly onClick: () => void
563
+ }
564
+
565
+ const HistoryButton = ({ label, icon, enabled, onClick }: HistoryButtonProps) => (
566
+ <Tooltip title={label}>
567
+ {/* A disabled button fires no pointer events, so the span keeps the tooltip working */}
568
+ <span>
569
+ <IconButton
570
+ aria-label={label}
571
+ disabled={!enabled}
572
+ onClick={onClick}
573
+ sx={{ inlineSize: 44, blockSize: 44, color: 'text.primary' }}
574
+ >
575
+ <svg viewBox="0 0 24 24" width={20} height={20} fill="none" stroke="currentColor" strokeWidth={2}>
576
+ <path d={icon} />
577
+ </svg>
578
+ </IconButton>
579
+ </span>
580
+ </Tooltip>
581
+ )
582
+
583
+ // Undo and redo for the customer's choices. They change the configuration, so they are offered only where the cards
584
+ // are: not to a viewer, and not in the review step, where the summary and a running request must not change under the
585
+ // customer. `useUndoRedo` pushes the same analytics events as the built-in toolbar's buttons.
586
+ export const UndoRedo = () => {
587
+ const { canUndo, canRedo, undo, redo } = phx.frontend.useUndoRedo()
588
+ const { accessInfo } = phx.frontend.useAccessService()
589
+ const navigationState = phx.frontend.useActiveNavigationState()
590
+
591
+ if (accessInfo.viewMode || navigationState !== 'configure') {
592
+ return null
593
+ }
594
+
595
+ return (
596
+ <Box
597
+ component="div"
598
+ role="group"
599
+ aria-label="History"
600
+ sx={{
601
+ display: 'flex',
602
+ borderRadius: 999,
603
+ bgcolor: 'background.paper',
604
+ boxShadow: '0 4px 16px rgba(0, 0, 0, 0.12)',
605
+ }}
606
+ >
607
+ <HistoryButton label="Undo" icon={UNDO_ICON} enabled={canUndo} onClick={undo} />
608
+ <HistoryButton label="Redo" icon={REDO_ICON} enabled={canRedo} onClick={redo} />
609
+ </Box>
610
+ )
611
+ }
612
+ ```
613
+
614
+ - Each choice of a finish is one step of the history, whether it is made on the cards or on the button on the table's edge; undoing it moves the check mark back, changes the edge back and restores the price.
615
+ - Each button is disabled while there is nothing to undo or redo, and keeps its tooltip and accessible name. A disabled MUI button receives no pointer events, so a `span` around it carries the tooltip.
616
+ - The hook does not look at read mode or at the navigation state. The buttons change the configuration, so the component renders them only while the cards are shown: not to a viewer, not in the review step, where the summary and a running request must not change under the customer, and not in the confirmation. The layout also leaves them out in fullscreen, which gives the canvas to the product and keeps only the controls placed on it or for looking at it. The button on the table's edge stays there and still changes the finish; the history keeps that change, so **Undo** undoes it after fullscreen is left.
617
+
618
+ ## Show messages
619
+
620
+ When a change is rejected because it breaks an invariant, when a committed change carries a hint, when an error is thrown while a change is validated, or when saving the configuration fails and later succeeds again, the configurator has a message for the customer. `phx.frontend.useConfiguratorMessages(onMessage)` calls `onMessage` once for each, with the text already in the customer's language, and the layout shows it its own way. Here a toast shows a message for six seconds, colored by its severity, at the bottom left of the free area above the view controls on a desktop, and at its top, below the row of buttons, on a phone:
621
+
622
+ ```tsx
623
+ import { Alert } from '@mui/material'
624
+ import { useEffect, useState } from 'react'
625
+
626
+ import type { ConfiguratorMessage } from '@salsita-ai/sdk/react'
627
+
628
+ import { phx } from '../../.phoenix/phx.js'
629
+
630
+ const VIOLATION_SEVERITY = { fatal: 'error', fixable: 'error', warning: 'warning', notice: 'info' } as const
631
+ const RANK = { info: 0, warning: 1, error: 2 } as const
632
+ const VISIBLE_MS = 6000
633
+
634
+ const severityOf = (message: ConfiguratorMessage) => {
635
+ if (message.kind === 'violation') {
636
+ return VIOLATION_SEVERITY[message.violation.severity]
637
+ }
638
+
639
+ return message.kind === 'error' || message.kind === 'saveError' ? 'error' : 'info'
640
+ }
641
+
642
+ export const MessageToast = () => {
643
+ const [message, setMessage] = useState<ConfiguratorMessage | null>(null)
644
+
645
+ // A rejected change also reports the notices already present; keep the worst message while it is shown
646
+ phx.frontend.useConfiguratorMessages(next => {
647
+ setMessage(shown => (shown !== null && RANK[severityOf(next)] < RANK[severityOf(shown)] ? shown : next))
648
+ })
649
+
650
+ useEffect(() => {
651
+ if (message === null) {
652
+ return
653
+ }
654
+
655
+ const timeout = setTimeout(() => setMessage(null), VISIBLE_MS)
656
+
657
+ return () => clearTimeout(timeout)
658
+ }, [message])
659
+
660
+ if (message === null) {
661
+ return null
662
+ }
663
+
664
+ return (
665
+ <Alert
666
+ severity={severityOf(message)}
667
+ onClose={() => setMessage(null)}
668
+ sx={{ maxInlineSize: 420, borderRadius: 3, boxShadow: '0 12px 40px rgba(0, 0, 0, 0.12)' }}
669
+ >
670
+ {message.text}
671
+ </Alert>
672
+ )
673
+ }
674
+ ```
675
+
676
+ The hook takes a new function on every render without missing a message, so passing the state setter, or an inline function, is fine. `message.kind` is `'violation'`, `'sideEffect'`, `'error'`, `'saveError'` or `'saveRecovery'`; the toast shows an error and a failed save as errors, a hint and the save that succeeded again as information. A violation also carries `entityId` and the `violation` itself, with its `severity`. A rejected change brings one message for each violation of the rejected state, including notices and warnings that were already present, so the toast keeps the most severe message while it is shown instead of letting a later notice replace the reason for the rejection. The layout mounts the toast in the safe-area element, which sets `pointerEvents: 'none'`, so the toast's wrapper switches pointer events back on for the close button.
677
+
678
+ To give the toast something to show, the spec registers one transformer. Choosing **Tree trunk** keeps the change and adds a hint to it, which arrives as a `sideEffect` message:
679
+
680
+ ```ts
681
+ import { msg } from '@lingui/core/macro'
682
+
683
+ import { phx } from '../../.phoenix/phx.js'
684
+
685
+ // A tree-trunk edge is cut by hand; choosing it carries a hint, which reaches the layout as a side-effect message
686
+ export default phx.frontend.transformerBuilder.when
687
+ .entity(['Table'])
688
+ .modified({ atFields: ['edgeFinish'] })
689
+ .then.overrideMatchingUpdate(({ update }) => {
690
+ if (update.stateDelta.edgeFinish !== 'TreeTrunk') {
691
+ return [update]
692
+ }
693
+
694
+ return [{ ...update, hint: msg`Tree trunk edges are cut by hand, so delivery takes three weeks longer.` }]
695
+ })
696
+ .build('tree-trunk-delivery')
697
+ ```
698
+
699
+ [Configurator Interface → Loaded Configuration UI](?path=/docs/phoenix-configurator-interface--docs#loaded-configuration-ui) lists the messages the hook does not deliver: errors of the built-in finalize and other actions stay snackbars, and a failure to start from a preset is raised on the preset screen.
700
+
701
+ ## Request a quote
702
+
703
+ The spec declares what finalizing means for this product as a `finalizeAction` component, and the project registers the handler it names:
704
+
705
+ ```yaml
706
+ components:
707
+ Table:
708
+ finalizeAction:
709
+ quote:
710
+ variant: primary
711
+ label: Request a quote
712
+ title: Send the configuration to the shop for a quote
713
+ icon: PaperPlaneTilt
714
+ handler: requestQuote
715
+ ```
716
+
717
+ ```ts
718
+ import { useCallback } from 'react'
719
+
720
+ import { phx } from '../../.phoenix/phx.js'
721
+
722
+ // Stands in for the shop's quote service: the request takes a moment, then the panel shows the confirmation
723
+ export default phx.frontend.createPhoenixHandler('requestQuote', () => {
724
+ const navigate = phx.frontend.useNavigate()
725
+
726
+ return {
727
+ handler: useCallback(async () => {
728
+ await new Promise(resolve => setTimeout(resolve, 1500))
729
+ navigate('requested')
730
+ }, [navigate]),
731
+ }
732
+ })
733
+ ```
734
+
735
+ The handler stands in for the shop's quote service: it waits a moment, as a request would, and then enters the `requested` navigation state, in which the panel thanks the customer. A handler is a hook factory, so it can use any hook, here `phx.frontend.useNavigate()`.
736
+
737
+ The review step offers the spec's primary finalize action, or the first one when none is primary, with `phx.frontend.useFinalizeActions()`. The hook lists the active `finalizeAction` components with what a button needs, the label and the title resolved to the customer's language, and runs their handlers itself, beside the layout, so the buttons need no handler boundary and the component may be called anywhere and as often as the layout likes. **Back to the configuration** lives in the same component, so it can be disabled while the request is pending.
738
+
739
+ ```tsx
740
+ import { Alert, Box, Button, CircularProgress, Typography } from '@mui/material'
741
+
742
+ import { phx } from '../../.phoenix/phx.js'
743
+
744
+ const BUTTON_SX = { minBlockSize: 48, borderRadius: 999, textTransform: 'none', fontWeight: 600 } as const
745
+
746
+ interface ReviewActionsProps {
747
+ readonly onBack: () => void
748
+ }
749
+
750
+ // The review step's buttons: the spec's primary finalize action and the way back. `useFinalizeActions` runs the
751
+ // action's handler beside the layout, so its pending state and error outlive this component: when the panel unmounts,
752
+ // as in fullscreen, the request goes on and the remounted buttons still show it. Back is disabled while the request
753
+ // is pending, so the customer cannot change the configuration while it is sent.
754
+ export const ReviewActions = ({ onBack }: ReviewActionsProps) => {
755
+ const { primary, hints } = phx.frontend.useFinalizeActions()
756
+ const isPending = primary?.isPending ?? false
757
+
758
+ return (
759
+ <Box component="div" sx={{ display: 'grid', gap: 2 }}>
760
+ {primary && (
761
+ <Box component="div" sx={{ display: 'grid', gap: 1 }}>
762
+ <Button
763
+ size="large"
764
+ variant="contained"
765
+ disabled={primary.disabled || isPending}
766
+ onClick={() => void primary.run()}
767
+ title={primary.title}
768
+ startIcon={isPending ? <CircularProgress size={18} color="inherit" /> : undefined}
769
+ sx={BUTTON_SX}
770
+ >
771
+ {isPending ? 'Sending the request…' : primary.label}
772
+ </Button>
773
+ {primary.disabled && hints && (
774
+ <Typography variant="caption" color="text.secondary">
775
+ {hints}
776
+ </Typography>
777
+ )}
778
+ {primary.error && <Alert severity="error">The request could not be sent: {primary.error.message}</Alert>}
779
+ </Box>
780
+ )}
781
+ <Button size="large" variant="outlined" disabled={isPending} onClick={onBack} sx={BUTTON_SX}>
782
+ Back to the configuration
783
+ </Button>
784
+ </Box>
785
+ )
786
+ }
787
+ ```
788
+
789
+ - `primary` is the first `'primary'` action, or else the first action, or `null` when the spec has none; the component then shows only **Back to the configuration**. `secondary` holds the others, which this product does not have.
790
+ - `run()` records the finalize-button click for analytics and runs the handler; it does nothing while `disabled` or `isPending`, and returns a promise that never rejects.
791
+ - While `isPending` the button shows a spinner and cannot be clicked again, and **Back to the configuration** is disabled, so the customer cannot change the configuration while it is sent. The configurator keeps `isPending` and `error` while the layout's components unmount: entering fullscreen during the request removes the panel, and the panel shown after fullscreen still shows the spinner until the handler settles.
792
+ - `error` is what the handler rejected with. The layout shows it under the button; no snackbar is raised. It is cleared when the customer tries again.
793
+ - `disabled` and `hints` come from the configuration's violations: while a `warning` or worse holds, or the configuration failed to save, finalizing is not possible and `hints` says why.
794
+
795
+ The review step stays: a quote request is a commitment, so the customer sees the summary first, and a real shop collects the contact details there. A product that finalizes without a review offers the button in place of **Review and request a quote**. [Configurator Interface → Hooks for a Project Layout](?path=/docs/phoenix-configurator-interface--docs#hooks-for-a-project-layout) describes the hook, and `phx.frontend.useFinalizeAction(handler)`, which runs one known action inside the layout instead, and [Finalization](?path=/docs/phoenix-finalization--docs) what a real flow does on the server.
796
+
797
+ ## Serve read mode
798
+
799
+ A configuration is in read mode by one of two routes, and the layout does not need to know which:
800
+
801
+ - **A configuration shared for viewing.** The configuration is opened with `read-revision` access, as a viewer of a shared link opens it. The `read` mock template sets that access, and the **Read Mode** story below opens it.
802
+ - **The host page sets `readonly`.** The page that embeds the configurator sets the web component's `readonly` property, here on a configuration the user owns. The mock template `mocks/readonly-host.yaml`, **Host sets readonly** in the editor's **Mocks** panel, keeps `access: owner` and sets the property with `webComponentProperties: { readonly: true }`.
803
+
804
+ Both routes set `accessInfo.viewMode` to `true`, and both switch the spec's filter mode to read, so a component filtered with `$filter.modes: [owner]` is left out either way. While `viewMode` is `true` the panel marks the view as view only, replaces the cards with the chosen finish and shows the price without an action; neither the finalize action nor undo and redo are offered, since `useFinalizeActions` and `useUndoRedo` do not check read mode themselves. The hooks do not hide or disable anything in read mode: what a viewer can change is decided by what the layout renders. Rotating and zooming the scene, and fullscreen, stay available, as [Interaction Modes](?path=/docs/ux-guidelines-interaction-modes--docs#view-only-mode) recommends. The button on the table's edge is hidden for viewers by the spec, see [Put a control on the product](#put-a-control-on-the-product).
805
+
806
+ A viewer of a shared configuration has no way here to edit a copy of it; see **Clone to edit in read mode** in [Known gaps](#known-gaps).
807
+
808
+ ## Fit a phone
809
+
810
+ A panel 380 pixels wide beside the scene leaves nothing of the table on a phone. Below a desktop width the layout puts the panel into a sheet at the bottom and lets the camera frame the table in the area above it. The layout above shows both arrangements.
811
+
812
+ **The switch.** `phx.frontend.useActiveViewports()` returns the width classes the configurator's container satisfies. The container decides, not the window, so a configurator embedded in a narrow column of a wide page gets the phone arrangement too. The built-in layout switches on `desktop` as well.
813
+
814
+ | Value | When it is active |
815
+ | ----------- | ---------------------------------------------------------------------------------- |
816
+ | `phone` | The container is narrower than 480 pixels. |
817
+ | `mobile` | The container is at most 768 pixels wide. |
818
+ | `tablet` | The container is wider than 480 and narrower than 1024 pixels. |
819
+ | `desktop` | The container is wider than 768 pixels; `mobile` and `desktop` exclude each other. |
820
+ | `landscape` | The browser window, not the container, is wider than it is high. |
821
+ | `portrait` | The browser window, not the container, is higher than it is wide. |
822
+
823
+ The hook returns `null` until the container has been measured, and the layout renders only the scene until then, so a phone never shows the desktop panel for a frame.
824
+
825
+ **The sheet.** On a phone the layout is a column: the safe-area element takes the height the sheet leaves, and the sheet sits below it. The sheet has two positions. Collapsed, it shows the name, the price and the action; open, it shows the description and the cards too. The `collapsed` prop of the panel hides the description and the cards, and nothing else, and `inSheet` keeps the top of the cards in view. The sheet scrolls what does not fit, so the price, the review step, **Request a quote** and the thank-you message are reachable in both positions.
826
+
827
+ ```tsx
828
+ import { Box, ButtonBase } from '@mui/material'
829
+ import { type MouseEvent, type PointerEvent, type ReactNode, useRef } from 'react'
830
+
831
+ // A drag shorter than this is a tap, and the handle's click toggles the sheet
832
+ const TAP_DISTANCE = 6
833
+ // A drag that ends this far from where it started snaps to the other position
834
+ const SNAP_DISTANCE = 48
835
+ // A drag faster than this, in pixels per millisecond, snaps in its direction even when it is short
836
+ const SNAP_VELOCITY = 0.5
837
+ // How far the sheet follows the finger towards the position it is already in
838
+ const OVERDRAG = 0.25
839
+
840
+ interface BottomSheetProps {
841
+ readonly open: boolean
842
+ readonly onOpenChange: (open: boolean) => void
843
+ readonly label: string
844
+ readonly children: ReactNode
845
+ }
846
+
847
+ interface Drag {
848
+ readonly startY: number
849
+ readonly startTime: number
850
+ delta: number
851
+ }
852
+
853
+ // A persistent sheet at the bottom of the layout with two positions, open and collapsed. It is not a modal: the scene
854
+ // above it stays interactive. Its height comes from its content, so the layout's safe area ends where the sheet
855
+ // starts and changes only when the sheet snaps. While the handle is dragged the sheet follows the finger with a
856
+ // transform, which the safe area does not see, so the camera refits once per snap and not on every move.
857
+ export const BottomSheet = ({ open, onOpenChange, label, children }: BottomSheetProps) => {
858
+ const sheetRef = useRef<HTMLElement>(null)
859
+ const dragRef = useRef<Drag | null>(null)
860
+ const draggedRef = useRef(false)
861
+
862
+ const moveSheet = (offset: number, animate: boolean) => {
863
+ if (sheetRef.current) {
864
+ sheetRef.current.style.transition = animate ? 'transform 200ms ease-out' : 'none'
865
+ sheetRef.current.style.transform = offset === 0 ? '' : `translateY(${offset}px)`
866
+ }
867
+ }
868
+
869
+ const handlePointerDown = (event: PointerEvent<HTMLButtonElement>) => {
870
+ event.currentTarget.setPointerCapture(event.pointerId)
871
+ dragRef.current = { startY: event.clientY, startTime: event.timeStamp, delta: 0 }
872
+ draggedRef.current = false
873
+ }
874
+
875
+ const handlePointerMove = (event: PointerEvent<HTMLButtonElement>) => {
876
+ const drag = dragRef.current
877
+
878
+ if (drag === null) {
879
+ return
880
+ }
881
+
882
+ drag.delta = event.clientY - drag.startY
883
+ // Down closes an open sheet and up opens a collapsed one; the other direction only gives a little
884
+ const towardsOther = open ? drag.delta > 0 : drag.delta < 0
885
+ moveSheet(towardsOther ? drag.delta : drag.delta * OVERDRAG, false)
886
+ }
887
+
888
+ const handlePointerEnd = (event: PointerEvent<HTMLButtonElement>) => {
889
+ const drag = dragRef.current
890
+ dragRef.current = null
891
+
892
+ if (drag === null) {
893
+ return
894
+ }
895
+
896
+ moveSheet(0, true)
897
+
898
+ if (Math.abs(drag.delta) < TAP_DISTANCE) {
899
+ return
900
+ }
901
+
902
+ draggedRef.current = true
903
+ const velocity = drag.delta / Math.max(event.timeStamp - drag.startTime, 1)
904
+ const flicked = Math.abs(drag.delta) >= SNAP_DISTANCE || Math.abs(velocity) >= SNAP_VELOCITY
905
+
906
+ if (flicked && (open ? drag.delta > 0 : drag.delta < 0)) {
907
+ onOpenChange(!open)
908
+ }
909
+ }
910
+
911
+ // A tap, Enter or Space toggles the sheet. The pointer click that ends a drag has already been handled; a keyboard
912
+ // click (`detail` 0) always toggles, also after a touch drag that was followed by no click.
913
+ const handleClick = (event: MouseEvent<HTMLButtonElement>) => {
914
+ const dragged = draggedRef.current
915
+ draggedRef.current = false
916
+
917
+ if (dragged && event.detail !== 0) {
918
+ return
919
+ }
920
+
921
+ onOpenChange(!open)
922
+ }
923
+
924
+ return (
925
+ <Box
926
+ component="section"
927
+ ref={sheetRef}
928
+ aria-label={label}
929
+ sx={{
930
+ position: 'relative',
931
+ flexShrink: 0,
932
+ display: 'flex',
933
+ flexDirection: 'column',
934
+ maxBlockSize: '55%',
935
+ paddingBlockEnd: 'env(safe-area-inset-bottom)',
936
+ borderStartStartRadius: 20,
937
+ borderStartEndRadius: 20,
938
+ bgcolor: 'background.paper',
939
+ boxShadow: '0 -8px 32px rgba(0, 0, 0, 0.12)',
940
+ // Fills the gap below the sheet while it is dragged up
941
+ '&::after': {
942
+ content: '""',
943
+ position: 'absolute',
944
+ insetInline: 0,
945
+ insetBlockStart: '100%',
946
+ blockSize: '100vh',
947
+ bgcolor: 'background.paper',
948
+ },
949
+ }}
950
+ >
951
+ <ButtonBase
952
+ aria-expanded={open}
953
+ disableRipple
954
+ aria-label={open ? `Collapse ${label.toLowerCase()}` : `Expand ${label.toLowerCase()}`}
955
+ onClick={handleClick}
956
+ onPointerDown={handlePointerDown}
957
+ onPointerMove={handlePointerMove}
958
+ onPointerUp={handlePointerEnd}
959
+ onPointerCancel={handlePointerEnd}
960
+ sx={{
961
+ flexShrink: 0,
962
+ blockSize: 36,
963
+ touchAction: 'none',
964
+ '&.Mui-focusVisible': { outline: 2, outlineColor: 'primary.main', outlineOffset: -4, borderRadius: 3 },
965
+ }}
966
+ >
967
+ <Box component="span" sx={{ inlineSize: 40, blockSize: 4, borderRadius: 2, bgcolor: 'text.disabled' }} />
968
+ </ButtonBase>
969
+ {/* A column, so the panel's cards region shrinks first and the price and action stay in view; below the cards
970
+ region's minimum height the content scrolls as a whole, as the review step does on a short phone */}
971
+ <Box
972
+ component="div"
973
+ sx={{
974
+ display: 'flex',
975
+ flexDirection: 'column',
976
+ flex: '1 1 auto',
977
+ minBlockSize: 0,
978
+ overflowY: 'auto',
979
+ overscrollBehavior: 'contain',
980
+ }}
981
+ >
982
+ {children}
983
+ </Box>
984
+ </Box>
985
+ )
986
+ }
987
+ ```
988
+
989
+ - The handle is a real button with `aria-expanded`. A tap, Enter or Space toggles the sheet, and dragging it up or down snaps the sheet to the other position when the drag is long or fast enough. `touchAction: 'none'` is set on the handle only, so the cards still scroll by touch.
990
+ - The sheet's height comes from its content and is at most 55% of the configurator; when the content does not fit, the cards region shrinks until only the top of the cards shows and scrolls, and below that the sheet's content scrolls as a whole. On a phone with room for the header, the top of the cards and the footer, the price and the action stay in view with the sheet open; on a shorter one the customer scrolls the sheet to them, and the review step's buttons are reached the same way in both positions. A scroll on the cards that reaches their end moves the sheet on. Because the safe-area element is its neighbour in the column, the free area ends where the sheet starts without anything being measured by the layout.
991
+ - While the handle is dragged the sheet follows the finger with a `transform`. `phx.frontend.useSceneSafeArea()` does not see a transform, so the free area changes once, when the sheet snaps, and the camera refits once. A safe area that followed the finger would refit the camera on every move and reset an orbit the customer made.
992
+ - The sheet is not a modal: no backdrop covers the scene, so the table can be orbited with one finger and zoomed with two while the sheet is open. MUI's temporary `Drawer` and `SwipeableDrawer` are modals and would block the scene; their persistent and permanent variants have no backdrop, but no drag handle with two positions either.
993
+
994
+ **What else moves.** The toast sits at the top of the free area, below the row of undo, redo and fullscreen buttons, so it does not cover the sheet's handle, and the fullscreen button shows only its icon, with its label as tooltip and accessible name. Fullscreen removes the sheet as it removes the panel on a desktop. The sheet keeps its position while fullscreen is on.
995
+
996
+ **A camera for the phone.** The desktop camera is close enough to fill a wide free area, and on a narrow one it cuts off the ends of the table. So each camera has a filter on the viewport: the desktop camera `main` applies while `desktop` is active, and a second camera, `phone`, with a larger distance frames the whole table while `mobile` is. The filters exclude each other once the container is measured. Before that, for example when an image of the configuration is rendered, no viewport is known and a viewport filter matches, so both cameras apply and the higher priority of `main` decides:
997
+
998
+ ```yaml
999
+ components:
1000
+ Table:
1001
+ fitRootPerspectiveCamera:
1002
+ main:
1003
+ priority: 2
1004
+ fov: 35
1005
+ near: 100
1006
+ far: 10000
1007
+ minDistance: 1000
1008
+ maxDistance: 9000
1009
+ distance: 5000
1010
+ azimuthAngle: 1.5
1011
+ polarAngle: 1.1
1012
+ fitMeshChanges: true
1013
+ $filter:
1014
+ viewports: [desktop]
1015
+ phone:
1016
+ priority: 1
1017
+ fov: 35
1018
+ near: 100
1019
+ far: 10000
1020
+ minDistance: 1000
1021
+ maxDistance: 12000
1022
+ distance: 8000
1023
+ azimuthAngle: 1.5
1024
+ polarAngle: 1.1
1025
+ fitMeshChanges: true
1026
+ $filter:
1027
+ viewports: [mobile]
1028
+ ```
1029
+
1030
+ ## Put a control on the product
1031
+
1032
+ The edge finish is a detail of the tabletop, so the layout also offers it on the table itself: a round button on the middle of the long edge opens the four finishes next to the edge. On a phone it is a way to change the edge without opening the sheet.
1033
+
1034
+ A control in the scene is a spec component that names an element of the project. `htmlHotspot` places an HTML element at an offset from the entity's origin, in the model's units, here millimetres: half the table's depth towards the camera and just below the top's surface. Its `$filter` shows it only to the owner and only while the `configure` navigation state is active, so a viewer and the review step do not get it, and the element does not check either itself:
1035
+
1036
+ ```yaml
1037
+ components:
1038
+ Table:
1039
+ htmlHotspot:
1040
+ edgeFinish:
1041
+ name: EdgeFinishHotspot
1042
+ offsetX: 500
1043
+ offsetY: 800
1044
+ offsetZ: 0
1045
+ $filter:
1046
+ modes: [owner]
1047
+ navigationStates: [configure]
1048
+ ```
1049
+
1050
+ The element is registered with `phx.frontend.createCustomPhoenixEntityElement` under the name the spec gives. It receives the id of the entity the hotspot belongs to, and reads the same `attributeSelection` the panel reads:
1051
+
1052
+ ```tsx
1053
+ import { Box, ButtonBase, Popover, Tooltip } from '@mui/material'
1054
+ import { useState } from 'react'
1055
+
1056
+ import { phx } from '../../.phoenix/phx.js'
1057
+ import { EdgeFinishCards } from '../_shared/EdgeFinishCards.js'
1058
+
1059
+ // The edge profile the button shows, the square edge of the cards' drawings
1060
+ const EDGE_ICON = 'M3 7H17L21 11V13L17 17H3Z'
1061
+
1062
+ // Rendered by the spec's `htmlHotspot` on the table's edge: a button on the product that opens the edge finishes
1063
+ // next to the edge, with the same cards as the panel. The spec's `$filter` decides when it is shown.
1064
+ export default phx.frontend.createCustomPhoenixEntityElement('EdgeFinishHotspot', ({ entityId }) => {
1065
+ const edgeFinish = phx.frontend.useAttributeSelection(entityId, 'edgeFinish')
1066
+ const [anchor, setAnchor] = useState<HTMLElement | null>(null)
1067
+
1068
+ return (
1069
+ <>
1070
+ <Tooltip title="Edge finish">
1071
+ <ButtonBase
1072
+ aria-label="Edge finish"
1073
+ aria-haspopup="dialog"
1074
+ aria-expanded={anchor !== null}
1075
+ onClick={event => setAnchor(event.currentTarget)}
1076
+ sx={{
1077
+ display: 'grid',
1078
+ placeItems: 'center',
1079
+ inlineSize: 44,
1080
+ blockSize: 44,
1081
+ borderRadius: '50%',
1082
+ bgcolor: 'background.paper',
1083
+ color: 'primary.main',
1084
+ boxShadow: '0 4px 16px rgba(0, 0, 0, 0.2)',
1085
+ '&.Mui-focusVisible': { outline: 2, outlineColor: 'primary.main', outlineOffset: 2 },
1086
+ }}
1087
+ >
1088
+ <svg viewBox="0 0 24 24" width={22} height={22} aria-hidden>
1089
+ <path d={EDGE_ICON} fill="currentColor" />
1090
+ </svg>
1091
+ </ButtonBase>
1092
+ </Tooltip>
1093
+ <Popover
1094
+ open={anchor !== null}
1095
+ anchorEl={anchor}
1096
+ onClose={() => setAnchor(null)}
1097
+ anchorOrigin={{ vertical: 'top', horizontal: 'center' }}
1098
+ transformOrigin={{ vertical: 'bottom', horizontal: 'center' }}
1099
+ slotProps={{
1100
+ paper: { role: 'dialog', 'aria-label': 'Edge finish', sx: { borderRadius: 4, marginBlockStart: -1 } },
1101
+ }}
1102
+ >
1103
+ <Box component="div" sx={{ inlineSize: 340, maxInlineSize: 'calc(100vw - 32px)', padding: 2 }}>
1104
+ <EdgeFinishCards selection={edgeFinish} />
1105
+ </Box>
1106
+ </Popover>
1107
+ </>
1108
+ )
1109
+ })
1110
+ ```
1111
+
1112
+ - The hotspot is rendered inside the scene, but it has the theme and every `phx.frontend` hook, like the layout. MUI's `Popover` and `Tooltip` render into the configurator's own modal root, so they are styled and work inside its shadow root.
1113
+ - The cards in the popover are the panel's `EdgeFinishCards`, used a second time. A choice changes the edge, the price and the panel's cards at once, and the popover stays open so the customer can compare the finishes on the table.
1114
+ - Keyboard: the button is in the tab order, Enter and Space open the popover and move the focus into it, the arrow keys change the finish, and Escape closes it and returns the focus to the button.
1115
+ - `controlHotspot: true` would hide the hotspot while a change is being applied, which would also unmount the open popover on every choice, so this hotspot does not set it.
1116
+ - The scene's HTML is painted inside the canvas's stacking context, under the layout's panel and sheet. A hotspot that a panel covers cannot be clicked there.
1117
+
1118
+ [Html Hotspots](?path=/docs/controls-scene-html-hotspots--docs) describes the component and its other properties.
1119
+
1120
+ The SDK's own controls on the product, such as `sceneEntityAddFab` and `sceneEntitySelectHotspot`, keep the SDK's look in a project layout too. Each is rendered through an entity element of its own name, so a project gives it the brand's look by registering that name, for example with `phx.frontend.createAddEntityFab`; see [Configurator Interface → In-Scene Controls](?path=/docs/phoenix-configurator-interface--docs#in-scene-controls). `htmlHotspot` is for a control the SDK has none of, like this one.
1121
+
1122
+ ## Control the scene
1123
+
1124
+ The four finishes differ by a few millimetres on a table two metres long, so from the default distance the difference is hard to judge. The layout offers two views, **Whole table** and **Edge close-up**, a close and low look at a corner of the top, and a **Reset view** button that brings back the framing after the customer has orbited, panned or zoomed.
1125
+
1126
+ **Views are view states.** The spec lists them, and each camera says by its `$filter` in which view states and at which widths it applies. The two close-up cameras have the highest priorities and apply only in the `edge` view state, the desktop one with `desktop` and the phone one with `mobile`, a little farther away. In the `overview` view state, the first in the list and so the initial one, only the two whole-table cameras of [Fit a phone](#fit-a-phone) apply. A camera always looks at the middle of the table, so the close-up shows the near corner, where the edge profile is seen on both sides:
1127
+
1128
+ ```yaml
1129
+ viewStates:
1130
+ - overview
1131
+ - edge
1132
+
1133
+ components:
1134
+ Table:
1135
+ fitRootPerspectiveCamera:
1136
+ edge:
1137
+ priority: 4
1138
+ fov: 35
1139
+ near: 100
1140
+ far: 10000
1141
+ minDistance: 800
1142
+ maxDistance: 9000
1143
+ distance: 2000
1144
+ azimuthAngle: 0.5
1145
+ polarAngle: 1.15
1146
+ fitMeshChanges: true
1147
+ $filter:
1148
+ viewports: [desktop]
1149
+ viewStates: [edge]
1150
+ edgePhone:
1151
+ priority: 3
1152
+ fov: 35
1153
+ near: 100
1154
+ far: 10000
1155
+ minDistance: 800
1156
+ maxDistance: 12000
1157
+ distance: 3000
1158
+ azimuthAngle: 0.5
1159
+ polarAngle: 1.15
1160
+ fitMeshChanges: true
1161
+ $filter:
1162
+ viewports: [mobile]
1163
+ viewStates: [edge]
1164
+ ```
1165
+
1166
+ **The buttons.** `phx.frontend.useActiveViewState()` returns the active view state and `phx.frontend.useSetViewState()` a function that makes another one active; the camera then moves to the camera of that view state. `phx.frontend.useResetCamera()` returns a function that moves the camera back to the framing of the active camera, the whole table or the close-up:
1167
+
1168
+ ```tsx
1169
+ import { Box, Button, Tooltip } from '@mui/material'
1170
+
1171
+ import { phx } from '../../.phoenix/phx.js'
1172
+
1173
+ // The spec's view states, each with the label of the button that shows it
1174
+ const VIEWS = [
1175
+ { state: 'overview', label: 'Whole table' },
1176
+ { state: 'edge', label: 'Edge close-up' },
1177
+ ] as const
1178
+
1179
+ const RESET_ICON = 'M4 12a8 8 0 1 0 2.4-5.7M4 4v4h4'
1180
+
1181
+ const SURFACE_SX = {
1182
+ borderRadius: 999,
1183
+ bgcolor: 'background.paper',
1184
+ boxShadow: '0 4px 16px rgba(0, 0, 0, 0.12)',
1185
+ } as const
1186
+
1187
+ const BUTTON_SX = {
1188
+ minBlockSize: 44,
1189
+ minInlineSize: 44,
1190
+ borderRadius: 999,
1191
+ textTransform: 'none',
1192
+ fontWeight: 600,
1193
+ whiteSpace: 'nowrap',
1194
+ } as const
1195
+
1196
+ interface SceneControlsProps {
1197
+ // The reset button shows only its icon, with its label as tooltip and accessible name
1198
+ readonly compact?: boolean
1199
+ // Only the reset button, without the view buttons
1200
+ readonly resetOnly?: boolean
1201
+ }
1202
+
1203
+ // The layout's own camera controls: one button per view state of the spec, and a reset that undoes an orbit
1204
+ export const SceneControls = ({ compact = false, resetOnly = false }: SceneControlsProps) => {
1205
+ const activeView = phx.frontend.useActiveViewState()
1206
+ const setViewState = phx.frontend.useSetViewState()
1207
+ const resetCamera = phx.frontend.useResetCamera()
1208
+ const resetIcon = (
1209
+ <svg viewBox="0 0 24 24" width={20} height={20} fill="none" stroke="currentColor" strokeWidth={2}>
1210
+ <path d={RESET_ICON} />
1211
+ </svg>
1212
+ )
1213
+
1214
+ return (
1215
+ <Box component="div" sx={{ display: 'flex', gap: 1 }}>
1216
+ {!resetOnly && (
1217
+ <Box component="div" role="group" aria-label="View" sx={{ ...SURFACE_SX, display: 'flex' }}>
1218
+ {VIEWS.map(view => {
1219
+ const isActive = activeView === view.state
1220
+
1221
+ return (
1222
+ <Button
1223
+ key={view.state}
1224
+ aria-pressed={isActive}
1225
+ onClick={() => setViewState(view.state)}
1226
+ sx={{
1227
+ ...BUTTON_SX,
1228
+ paddingInline: 2,
1229
+ bgcolor: isActive ? 'text.primary' : 'transparent',
1230
+ color: isActive ? 'background.paper' : 'text.primary',
1231
+ '&:hover': { bgcolor: isActive ? 'text.primary' : 'action.hover' },
1232
+ }}
1233
+ >
1234
+ {view.label}
1235
+ </Button>
1236
+ )
1237
+ })}
1238
+ </Box>
1239
+ )}
1240
+ <Tooltip title={compact ? 'Reset view' : ''}>
1241
+ <Button
1242
+ onClick={resetCamera}
1243
+ aria-label={compact ? 'Reset view' : undefined}
1244
+ startIcon={compact ? undefined : resetIcon}
1245
+ sx={{
1246
+ ...SURFACE_SX,
1247
+ ...BUTTON_SX,
1248
+ paddingInline: compact ? 0 : 2,
1249
+ color: 'text.primary',
1250
+ '&:hover': { bgcolor: 'background.paper', boxShadow: '0 6px 20px rgba(0, 0, 0, 0.18)' },
1251
+ }}
1252
+ >
1253
+ {compact ? resetIcon : 'Reset view'}
1254
+ </Button>
1255
+ </Tooltip>
1256
+ </Box>
1257
+ )
1258
+ }
1259
+ ```
1260
+
1261
+ - The view buttons are a group with `aria-pressed`, so a screen reader announces which view is active, and the active one is drawn dark, not only in another colour.
1262
+ - On a desktop the controls sit at the bottom right of the free area and the toast above its bottom left; on a phone they sit at the bottom of the free area, just above the sheet. On a phone, and on a desktop arrangement below 1024 pixels, where `tablet` is also active and the free area beside the panel is narrow, **Reset view** shows only its icon, with its label as tooltip and accessible name.
1263
+ - In fullscreen the controls stay on a desktop. On a phone the view buttons are hidden and **Reset view** stays, as [Interaction Modes](?path=/docs/ux-guidelines-interaction-modes--docs#full-screen-preview) describes for the built-in layout: on a phone the canvas is small and the product comes first, and the way back to the framed product is still needed after an orbit.
1264
+ - The controls stay in the review step and in read mode: changing the view changes nothing in the configuration, and a viewer may look at the product as closely as the customer.
1265
+ - The hooks need no `viewControls` component. That component configures the built-in layout's view controls and has no effect here.
1266
+
1267
+ ## The spec the layout reads
1268
+
1269
+ The layout reads four components of the root entity and its navigation and view states; the scene components are in the complete implementation below. `SceneControls` names the view states `overview` and `edge` in its code, so they must match the spec's `viewStates`.
1270
+
1271
+ ```yaml
1272
+ navigationStates:
1273
+ - configure
1274
+ - checkout
1275
+ - requested
1276
+
1277
+ viewStates:
1278
+ - overview
1279
+ - edge
1280
+
1281
+ components:
1282
+ Table:
1283
+ detail:
1284
+ main:
1285
+ title: Linden dining table
1286
+ subtitle: Solid oak, seats six
1287
+ description: A solid oak top on slender steel legs, finished with the edge profile of your choice.
1288
+ price:
1289
+ main:
1290
+ price:
1291
+ $read: $price
1292
+ attributeSelection:
1293
+ edgeFinish:
1294
+ value:
1295
+ $bind: edgeFinish
1296
+ options:
1297
+ - label: Square
1298
+ description: Crisp and modern
1299
+ value: None
1300
+ - label: Facet
1301
+ description: A light bevel
1302
+ value: Facet
1303
+ - label: Round
1304
+ description: Soft to the touch
1305
+ value: Round
1306
+ - label: Tree trunk
1307
+ description: The natural edge
1308
+ value: TreeTrunk
1309
+ finalizeAction:
1310
+ quote:
1311
+ variant: primary
1312
+ label: Request a quote
1313
+ title: Send the configuration to the shop for a quote
1314
+ icon: PaperPlaneTilt
1315
+ handler: requestQuote
1316
+
1317
+ transformers:
1318
+ - name: tree-trunk-delivery
1319
+ ```
1320
+
1321
+ `$price` is a custom expression in `src/expressions/table.ts` that adds a surcharge per finish, and `tree-trunk-delivery` is the transformer in `src/transformers/tree-trunk-delivery.ts` that adds the hint shown in [Show messages](#show-messages), and `requestQuote` is the handler in `src/handlers/request-quote.ts`. The example sets no `applicationConfig` and no layout components: `layout`, the header, the sidebar footer, the toolbar, `viewControls` and property pages configure the built-in layout and have no effect on this one. The `finalizeAction` is not one of them: it describes the product's own finalizing, which this layout offers itself.
1322
+
1323
+ ## Try the example
1324
+
1325
+ Each story names the mock template it opens with `args: { mockTemplate }`: **Example** and **Phone** open `default-user`, and **Read Mode** opens `read`. A template applied from the **Mocks** panel lasts until the story is opened again.
1326
+
1327
+ The same layout in a frame 390 pixels wide, as on a phone. Opened on its own from the sidebar, the **Phone** story sets Storybook's viewport to 390 × 844.
1328
+
1329
+ ## Test cases
1330
+
1331
+ - The panel is on the left and the table is centred in the area to the right of it, not in the whole canvas.
1332
+ - Choosing **Tree trunk** moves the check mark to that card, changes the edge of the tabletop and raises the price from $1,290.00 to $1,630.00.
1333
+ - Choosing **Tree trunk** also shows "Tree trunk edges are cut by hand, so delivery takes three weeks longer." at the bottom left of the free area, above the view controls, until its close button is clicked or six seconds pass. Choosing another finish shows nothing.
1334
+ - Tab reaches the selected card, and the arrow keys move the selection to the next or previous card.
1335
+ - Dragging in the area to the right of the panel orbits the camera.
1336
+ - **Review and request a quote** replaces the cards with the chosen finish and offers **Request a quote**; **Back to the configuration** brings the cards back.
1337
+ - **Request a quote** shows a spinner and "Sending the request…" for about a second and a half, with **Back to the configuration** disabled, then "Thank you. Your quote request is on its way, and the shop replies within two working days."; **Back to the configuration** then returns to the cards.
1338
+ - **Fullscreen** removes the panel and the table moves to the centre of the canvas; **Exit fullscreen** brings both back.
1339
+ - In the **Read Mode** story the panel says **View only**, shows the chosen finish and the price, and has no button, so no quote can be requested; **Undo**, **Redo** and the button on the table's edge are not shown, and **Fullscreen**, the view buttons and **Reset view** work.
1340
+ - Applying **Host sets readonly** from the **Mocks** panel in the **Example** story shows the same read mode: **View only**, the chosen finish, no button in the panel, no **Undo**, **Redo** or button on the table's edge. Applying **Default User** brings the cards back.
1341
+ - **Undo** and **Redo** are disabled when the story opens. After choosing **Tree trunk**, **Undo** restores **Square** and $1,290.00 and enables **Redo**; **Redo** chooses **Tree trunk** again at $1,630.00.
1342
+ - **Undo** and **Redo** are not shown in the review step, in the confirmation or in fullscreen.
1343
+ - Clicking **Fullscreen** and **Exit fullscreen** each pushes the `fullscreenButton` user-action event, as an `AnalyticsService.push` line in the browser console shows: without a Google Tag Manager id, Storybook's analytics only log their events with `console.debug`, which the console shows only with its Verbose level enabled.
1344
+ - Entering fullscreen while **Request a quote** is pending and leaving it again shows the panel with the spinner still running, until the thank-you message appears.
1345
+ - A round button sits on the middle of the table's long edge. Clicking it opens the four finishes next to it; choosing **Round** there moves the check mark in the popover and in the panel, rounds the edge and raises the price to $1,410.00. Escape closes the popover.
1346
+ - Tab reaches the button on the edge, and Enter or Space opens the popover.
1347
+ - The button on the edge is gone in the review step, in the confirmation and in both read routes, and stays in fullscreen.
1348
+ - In the **Phone** story the panel is a sheet at the bottom showing the name, the price and **Review and request a quote**, and the whole table is visible above it.
1349
+ - Tapping the sheet's handle, or dragging it up, opens the sheet with the cards; the table moves up once the sheet has snapped and stays fully visible. Dragging the handle down, or tapping it again, collapses the sheet.
1350
+ - On the phone, the review step, **Request a quote** and the thank-you message work with the sheet collapsed and open.
1351
+ - On the phone, choosing **Tree trunk** shows the hint at the top of the free area, below the undo, redo and fullscreen buttons.
1352
+ - On the phone, the fullscreen button removes the sheet and the table moves to the centre of the canvas; pressing it again brings the sheet back in the position it had.
1353
+ - **Edge close-up** moves the camera close to the near corner of the top, where the edge profile shows; the button is drawn dark and the other light. **Whole table** returns to the whole table.
1354
+ - After dragging in the free area to orbit the table, **Reset view** returns to the framing of the active view, the whole table or the close-up.
1355
+ - The view buttons and **Reset view** sit at the bottom right of the free area on a desktop and just above the sheet on a phone, and overlap neither the panel, the sheet, the button on the edge nor the toast.
1356
+ - In fullscreen the view controls stay on a desktop. On a phone the view buttons are hidden and **Reset view** stays; after an orbit it restores the framing.
1357
+
1358
+ ## Known gaps
1359
+
1360
+ A project layout has only what it renders. This one leaves out the following, each of which a product may need. [Layout Slots](?path=/docs/phoenix-layout-slots--docs) describes every `LayoutSlots` member named here.
1361
+
1362
+ - **Messages that stay snackbars.** The toast shows violations, side effects, errors and failed saves, and the finalize button shows its own error. Two kinds of message stay snackbars. An error of a built-in action, such as one from `LayoutSlots.DesktopToolbar`, renders into `LayoutSlots.DesktopSnackbarsRoot`; this layout mounts neither, and a layout that mounts such an action mounts the root too, or the snackbar appears outside the configurator. A failure to start from a preset appears on the preset screen, before this layout mounts; a project replaces that screen with `phx.frontend.createPresetUi`, see [Configurator Interface → Preset UI](?path=/docs/phoenix-configurator-interface--docs#preset-ui).
1363
+ - **Toolbar actions.** Measurements, sharing and language switching are not offered; undo and redo are the layout's own buttons, see [Undo and redo](#undo-and-redo). A layout can mount `LayoutSlots.DesktopToolbar` for the toolbar the spec configures, or build its own buttons: `phx.frontend.useToolbarActions()` returns the spec's toolbar as runnable entries, and `phx.frontend.useUndoRedo()`, `useMeasurements()`, `useShareLinks()` and `useLocaleSwitch()` serve single actions, pushing the same analytics events as the built-in buttons; see [Configurator Interface → Hooks for a Project Layout](?path=/docs/phoenix-configurator-interface--docs#hooks-for-a-project-layout).
1364
+ - **The spec's view controls, tool controls and leaving a tool mode.** A spec can configure view controls and tool controls, and a tool mode has a button that leaves it. The built-in layout places them with `LayoutSlots.DesktopViewControls`, `LayoutSlots.DesktopToolControls` and `LayoutSlots.DesktopCallToAction`; this layout mounts none of them, so the spec's `viewControls` and `toolControls` do not appear. Its views come from its own buttons instead, see [Control the scene](#control-the-scene), and it has no tool modes.
1365
+ - **A project's layout dialog.** A dialog the project registers with `phx.frontend.createLayoutDialog` is shown by `LayoutDialog`, which the built-in layout mounts. This layout does not; a layout that needs the dialog mounts `LayoutDialog` from `@salsita-ai/sdk/configurator`.
1366
+ - **Selection.** The table has no parts to select. A product with selectable parts reads `phx.frontend.useSelectedDomainEntityId()` and shows the controls of the selected part.
1367
+ - **Clone to edit in read mode.** With `shareCloneToEdit` set, the built-in layout's `LayoutSlots.DesktopReadonlyBanner` offers **Edit configuration** to a viewer; this layout's "View only" label offers nothing. A layout mounts the banner, or builds its own action with `phx.frontend.useIsCloningAllowed()` and `LayoutSlots.CloneToEditDialog`. The example leaves it out because Storybook cannot show the result: the dialog creates and opens the copy, but the mock template keeps its `read-revision` access on every configuration it opens, so the copy opens in read mode again.
1368
+ - **Back and close.** The built-in header's back button returns to the product choice, runs the host's close action or leaves the expanded view, whichever applies. This layout has none of them. `phx.frontend.useCloseAction()` returns the host's close action, or `null` when there is none, as in this Storybook example; the hook that chooses among the three is not exported.
1369
+ - **Analytics.** The finalize button records `FinalizeButtonClicked` through `useFinalizeActions`, the cards record the attribute choice through `useAttributeSelection`, undo and redo record their events through `useUndoRedo`, and the fullscreen button records `FullScreenModeToggled` itself. The review step's navigation buttons, the view buttons, **Reset view**, the sheet's handle and the button on the table's edge record nothing. A layout that wants more events pushes them from `FrontendAnalyticsFactory`, from `@salsita-ai/sdk/configurator`, with `phx.frontend.useAnalytics().push(...)`, as [Offer fullscreen](#offer-fullscreen) does.
1370
+ - **Preview start screen.** The built-in layout shows a preview while `phx.frontend.usePreview().isPreview` is set, which `preview: auto` does on phones without the project opting in. This layout ignores it and always renders the interface.
1371
+ - **Assistant panel.** A project layout gets it only with `LayoutSlots.DesktopSidebar`, the built-in sidebar as one piece, see [Sidebar in a Custom Layout](?path=/docs/layouts-sidebar-in-a-custom-layout--docs); this layout does not use it.
1372
+ - **"Powered by Salsita" mark.** The built-in layout shows it; a project layout decides whether to mount `LayoutSlots.DesktopPoweredBy`, and this one does not.
1373
+
1374
+ ## Related pages
1375
+
1376
+ - [Configurator Interface → Loaded Configuration UI](?path=/docs/phoenix-configurator-interface--docs#loaded-configuration-ui) is the reference for the element name, the minimal layout, the SDK pieces a layout can mount and the hooks it reads.
1377
+ - [Universal](?path=/docs/layouts-universal--docs) is the built-in layout this one replaces.
1378
+ - [Header / Custom](?path=/docs/layouts-header-custom--docs) replaces only the header, with the price from `useRootEntityPrice()`.
1379
+ - [Canvas Padding](?path=/docs/layouts-canvas-padding--docs) scales the gaps `phx.frontend.useSceneSafeArea()` measures.
1380
+ - [Presets / Custom](?path=/docs/layouts-presets-custom--docs) replaces the preset screen the same way.
1381
+
1382
+ ## Complete Implementation
1383
+
1384
+ {/* AUTO-GENERATED SECTION: This section is automatically updated by 'phoenix story build' */}
1385
+
1386
+ <details>
1387
+ <summary>Click to view the complete implementation files</summary>
1388
+
1389
+ ### ./spec/domain.yaml
1390
+
1391
+ ```yaml
1392
+ model:
1393
+ latest:
1394
+ entityTypes:
1395
+ - Table
1396
+ aliases:
1397
+ RootEntity:
1398
+ - Table
1399
+ commonTypes:
1400
+ EdgeFinish:
1401
+ enum:
1402
+ - None
1403
+ - Facet
1404
+ - Round
1405
+ - TreeTrunk
1406
+ shapes:
1407
+ Table:
1408
+ edgeFinish:
1409
+ $ref: '#/model/latest/commonTypes/EdgeFinish'
1410
+
1411
+ presets:
1412
+ - rootEntityType: Table
1413
+ initialDomainEntities:
1414
+ - id: Table-1
1415
+ type: Table
1416
+ edgeFinish: None
1417
+
1418
+ navigationStates:
1419
+ - configure
1420
+ - checkout
1421
+ - requested
1422
+
1423
+ viewStates:
1424
+ - overview
1425
+ - edge
1426
+
1427
+ components:
1428
+ Table:
1429
+ detail:
1430
+ main:
1431
+ title: Linden dining table
1432
+ subtitle: Solid oak, seats six
1433
+ description: A solid oak top on slender steel legs, finished with the edge profile of your choice.
1434
+ price:
1435
+ main:
1436
+ price:
1437
+ $read: $price
1438
+ attributeSelection:
1439
+ edgeFinish:
1440
+ value:
1441
+ $bind: edgeFinish
1442
+ options:
1443
+ - label: Square
1444
+ description: Crisp and modern
1445
+ value: None
1446
+ - label: Facet
1447
+ description: A light bevel
1448
+ value: Facet
1449
+ - label: Round
1450
+ description: Soft to the touch
1451
+ value: Round
1452
+ - label: Tree trunk
1453
+ description: The natural edge
1454
+ value: TreeTrunk
1455
+ finalizeAction:
1456
+ quote:
1457
+ variant: primary
1458
+ label: Request a quote
1459
+ title: Send the configuration to the shop for a quote
1460
+ icon: PaperPlaneTilt
1461
+ handler: requestQuote
1462
+ htmlHotspot:
1463
+ edgeFinish:
1464
+ name: EdgeFinishHotspot
1465
+ offsetX: 500
1466
+ offsetY: 800
1467
+ offsetZ: 0
1468
+ $filter:
1469
+ modes: [owner]
1470
+ navigationStates: [configure]
1471
+ fitRootPerspectiveCamera:
1472
+ main:
1473
+ priority: 2
1474
+ fov: 35
1475
+ near: 100
1476
+ far: 10000
1477
+ minDistance: 1000
1478
+ maxDistance: 9000
1479
+ distance: 5000
1480
+ azimuthAngle: 1.5
1481
+ polarAngle: 1.1
1482
+ fitMeshChanges: true
1483
+ $filter:
1484
+ viewports: [desktop]
1485
+ phone:
1486
+ priority: 1
1487
+ fov: 35
1488
+ near: 100
1489
+ far: 10000
1490
+ minDistance: 1000
1491
+ maxDistance: 12000
1492
+ distance: 8000
1493
+ azimuthAngle: 1.5
1494
+ polarAngle: 1.1
1495
+ fitMeshChanges: true
1496
+ $filter:
1497
+ viewports: [mobile]
1498
+ edge:
1499
+ priority: 4
1500
+ fov: 35
1501
+ near: 100
1502
+ far: 10000
1503
+ minDistance: 800
1504
+ maxDistance: 9000
1505
+ distance: 2000
1506
+ azimuthAngle: 0.5
1507
+ polarAngle: 1.15
1508
+ fitMeshChanges: true
1509
+ $filter:
1510
+ viewports: [desktop]
1511
+ viewStates: [edge]
1512
+ edgePhone:
1513
+ priority: 3
1514
+ fov: 35
1515
+ near: 100
1516
+ far: 10000
1517
+ minDistance: 800
1518
+ maxDistance: 12000
1519
+ distance: 3000
1520
+ azimuthAngle: 0.5
1521
+ polarAngle: 1.15
1522
+ fitMeshChanges: true
1523
+ $filter:
1524
+ viewports: [mobile]
1525
+ viewStates: [edge]
1526
+ sceneEntityRemoteObject:
1527
+ top:
1528
+ fileUrl: /models/tables.gltf
1529
+ objectName: RECHTHOEK_RECTANGLE
1530
+ dimensionUnit: m
1531
+ leg:
1532
+ fileUrl: /models/tables.gltf
1533
+ objectName: AXL_LEG
1534
+ dimensionUnit: m
1535
+ sceneEntityObjectProperties:
1536
+ top:
1537
+ offsetY: 820
1538
+ morphTargetInfluences:
1539
+ Facet:
1540
+ value:
1541
+ $read: $edgeFinishFacet
1542
+ scaleOne: 1
1543
+ scaleZero: 0
1544
+ Bol:
1545
+ value:
1546
+ $read: $edgeFinishRound
1547
+ scaleOne: 1
1548
+ scaleZero: 0
1549
+ Boomstamrand:
1550
+ value:
1551
+ $read: $edgeFinishTreeTrunk
1552
+ scaleOne: 1
1553
+ scaleZero: 0
1554
+ leg:
1555
+ morphTargetInfluences:
1556
+ Length:
1557
+ value: 1000
1558
+ scaleOne: 3000
1559
+ scaleZero: 1400
1560
+ Width:
1561
+ value: 700
1562
+ scaleOne: 1300
1563
+ scaleZero: 600
1564
+ Height:
1565
+ value: 780
1566
+ scaleOne: 780
1567
+ scaleZero: 740
1568
+
1569
+ transformers:
1570
+ - name: tree-trunk-delivery
1571
+ ```
1572
+
1573
+ ### ./src/\_shared/BottomSheet.tsx
1574
+
1575
+ ```tsx
1576
+ import { Box, ButtonBase } from '@mui/material'
1577
+ import { type MouseEvent, type PointerEvent, type ReactNode, useRef } from 'react'
1578
+
1579
+ // A drag shorter than this is a tap, and the handle's click toggles the sheet
1580
+ const TAP_DISTANCE = 6
1581
+ // A drag that ends this far from where it started snaps to the other position
1582
+ const SNAP_DISTANCE = 48
1583
+ // A drag faster than this, in pixels per millisecond, snaps in its direction even when it is short
1584
+ const SNAP_VELOCITY = 0.5
1585
+ // How far the sheet follows the finger towards the position it is already in
1586
+ const OVERDRAG = 0.25
1587
+
1588
+ interface BottomSheetProps {
1589
+ readonly open: boolean
1590
+ readonly onOpenChange: (open: boolean) => void
1591
+ readonly label: string
1592
+ readonly children: ReactNode
1593
+ }
1594
+
1595
+ interface Drag {
1596
+ readonly startY: number
1597
+ readonly startTime: number
1598
+ delta: number
1599
+ }
1600
+
1601
+ // A persistent sheet at the bottom of the layout with two positions, open and collapsed. It is not a modal: the scene
1602
+ // above it stays interactive. Its height comes from its content, so the layout's safe area ends where the sheet
1603
+ // starts and changes only when the sheet snaps. While the handle is dragged the sheet follows the finger with a
1604
+ // transform, which the safe area does not see, so the camera refits once per snap and not on every move.
1605
+ export const BottomSheet = ({ open, onOpenChange, label, children }: BottomSheetProps) => {
1606
+ const sheetRef = useRef<HTMLElement>(null)
1607
+ const dragRef = useRef<Drag | null>(null)
1608
+ const draggedRef = useRef(false)
1609
+
1610
+ const moveSheet = (offset: number, animate: boolean) => {
1611
+ if (sheetRef.current) {
1612
+ sheetRef.current.style.transition = animate ? 'transform 200ms ease-out' : 'none'
1613
+ sheetRef.current.style.transform = offset === 0 ? '' : `translateY(${offset}px)`
1614
+ }
1615
+ }
1616
+
1617
+ const handlePointerDown = (event: PointerEvent<HTMLButtonElement>) => {
1618
+ event.currentTarget.setPointerCapture(event.pointerId)
1619
+ dragRef.current = { startY: event.clientY, startTime: event.timeStamp, delta: 0 }
1620
+ draggedRef.current = false
1621
+ }
1622
+
1623
+ const handlePointerMove = (event: PointerEvent<HTMLButtonElement>) => {
1624
+ const drag = dragRef.current
1625
+
1626
+ if (drag === null) {
1627
+ return
1628
+ }
1629
+
1630
+ drag.delta = event.clientY - drag.startY
1631
+ // Down closes an open sheet and up opens a collapsed one; the other direction only gives a little
1632
+ const towardsOther = open ? drag.delta > 0 : drag.delta < 0
1633
+ moveSheet(towardsOther ? drag.delta : drag.delta * OVERDRAG, false)
1634
+ }
1635
+
1636
+ const handlePointerEnd = (event: PointerEvent<HTMLButtonElement>) => {
1637
+ const drag = dragRef.current
1638
+ dragRef.current = null
1639
+
1640
+ if (drag === null) {
1641
+ return
1642
+ }
1643
+
1644
+ moveSheet(0, true)
1645
+
1646
+ if (Math.abs(drag.delta) < TAP_DISTANCE) {
1647
+ return
1648
+ }
1649
+
1650
+ draggedRef.current = true
1651
+ const velocity = drag.delta / Math.max(event.timeStamp - drag.startTime, 1)
1652
+ const flicked = Math.abs(drag.delta) >= SNAP_DISTANCE || Math.abs(velocity) >= SNAP_VELOCITY
1653
+
1654
+ if (flicked && (open ? drag.delta > 0 : drag.delta < 0)) {
1655
+ onOpenChange(!open)
1656
+ }
1657
+ }
1658
+
1659
+ // A tap, Enter or Space toggles the sheet. The pointer click that ends a drag has already been handled; a keyboard
1660
+ // click (`detail` 0) always toggles, also after a touch drag that was followed by no click.
1661
+ const handleClick = (event: MouseEvent<HTMLButtonElement>) => {
1662
+ const dragged = draggedRef.current
1663
+ draggedRef.current = false
1664
+
1665
+ if (dragged && event.detail !== 0) {
1666
+ return
1667
+ }
1668
+
1669
+ onOpenChange(!open)
1670
+ }
1671
+
1672
+ return (
1673
+ <Box
1674
+ component="section"
1675
+ ref={sheetRef}
1676
+ aria-label={label}
1677
+ sx={{
1678
+ position: 'relative',
1679
+ flexShrink: 0,
1680
+ display: 'flex',
1681
+ flexDirection: 'column',
1682
+ maxBlockSize: '55%',
1683
+ paddingBlockEnd: 'env(safe-area-inset-bottom)',
1684
+ borderStartStartRadius: 20,
1685
+ borderStartEndRadius: 20,
1686
+ bgcolor: 'background.paper',
1687
+ boxShadow: '0 -8px 32px rgba(0, 0, 0, 0.12)',
1688
+ // Fills the gap below the sheet while it is dragged up
1689
+ '&::after': {
1690
+ content: '""',
1691
+ position: 'absolute',
1692
+ insetInline: 0,
1693
+ insetBlockStart: '100%',
1694
+ blockSize: '100vh',
1695
+ bgcolor: 'background.paper',
1696
+ },
1697
+ }}
1698
+ >
1699
+ <ButtonBase
1700
+ aria-expanded={open}
1701
+ disableRipple
1702
+ aria-label={open ? `Collapse ${label.toLowerCase()}` : `Expand ${label.toLowerCase()}`}
1703
+ onClick={handleClick}
1704
+ onPointerDown={handlePointerDown}
1705
+ onPointerMove={handlePointerMove}
1706
+ onPointerUp={handlePointerEnd}
1707
+ onPointerCancel={handlePointerEnd}
1708
+ sx={{
1709
+ flexShrink: 0,
1710
+ blockSize: 36,
1711
+ touchAction: 'none',
1712
+ '&.Mui-focusVisible': { outline: 2, outlineColor: 'primary.main', outlineOffset: -4, borderRadius: 3 },
1713
+ }}
1714
+ >
1715
+ <Box component="span" sx={{ inlineSize: 40, blockSize: 4, borderRadius: 2, bgcolor: 'text.disabled' }} />
1716
+ </ButtonBase>
1717
+ {/* A column, so the panel's cards region shrinks first and the price and action stay in view; below the cards
1718
+ region's minimum height the content scrolls as a whole, as the review step does on a short phone */}
1719
+ <Box
1720
+ component="div"
1721
+ sx={{
1722
+ display: 'flex',
1723
+ flexDirection: 'column',
1724
+ flex: '1 1 auto',
1725
+ minBlockSize: 0,
1726
+ overflowY: 'auto',
1727
+ overscrollBehavior: 'contain',
1728
+ }}
1729
+ >
1730
+ {children}
1731
+ </Box>
1732
+ </Box>
1733
+ )
1734
+ }
1735
+ ```
1736
+
1737
+ ### ./src/\_shared/EdgeFinishCards.tsx
1738
+
1739
+ ```tsx
1740
+ import { Box, ButtonBase, type SxProps, type Theme, Typography } from '@mui/material'
1741
+ import type { KeyboardEvent } from 'react'
1742
+
1743
+ import type { UseAttributeSelection } from '@salsita-ai/sdk/react'
1744
+
1745
+ import { phx } from '../../.phoenix/phx.js'
1746
+
1747
+ // Cross-sections of the tabletop's edge, keyed by the option values of the spec.
1748
+ const EDGE_PROFILES: Readonly<Record<string, string>> = {
1749
+ None: 'M0 4H32V20H0Z',
1750
+ Facet: 'M0 4H26L32 10V14L26 20H0Z',
1751
+ Round: 'M0 4H24A8 8 0 0 1 24 20H0Z',
1752
+ TreeTrunk: 'M0 4H27C33 5 28 9 34 11C29 13 34 17 27 20H0Z',
1753
+ }
1754
+
1755
+ const CHECK_BADGE: SxProps<Theme> = {
1756
+ position: 'absolute',
1757
+ insetBlockStart: 10,
1758
+ insetInlineEnd: 10,
1759
+ display: 'grid',
1760
+ placeItems: 'center',
1761
+ inlineSize: 22,
1762
+ blockSize: 22,
1763
+ borderRadius: '50%',
1764
+ bgcolor: 'primary.main',
1765
+ color: 'primary.contrastText',
1766
+ fontSize: 13,
1767
+ }
1768
+
1769
+ // Arrow keys move the selection between the cards, as in a native radio group.
1770
+ const ARROW_STEPS: Readonly<Record<string, number | undefined>> = {
1771
+ ArrowRight: 1,
1772
+ ArrowDown: 1,
1773
+ ArrowLeft: -1,
1774
+ ArrowUp: -1,
1775
+ }
1776
+
1777
+ interface EdgeFinishCardsProps {
1778
+ readonly selection: ReturnType<UseAttributeSelection>
1779
+ }
1780
+
1781
+ export const EdgeFinishCards = ({ selection }: EdgeFinishCardsProps) => {
1782
+ const resolve = phx.frontend.useResolveLocalizable()
1783
+ const { options } = selection
1784
+ // The card in the tab order: the selected one, or the first enabled one. Disabled cards are never in it.
1785
+ const selectedIndex = options.findIndex(option => option.value === selection.value && !option.disabled)
1786
+ const focusIndex = selectedIndex >= 0 ? selectedIndex : options.findIndex(option => !option.disabled)
1787
+
1788
+ const handleKeyDown = (event: KeyboardEvent<HTMLElement>, index: number) => {
1789
+ const step = ARROW_STEPS[event.key]
1790
+
1791
+ if (step === undefined) {
1792
+ return
1793
+ }
1794
+
1795
+ event.preventDefault()
1796
+ // The next enabled option in the arrow's direction, wrapping around; disabled options are skipped.
1797
+ const count = options.length
1798
+ const next = Array.from(
1799
+ { length: count - 1 },
1800
+ (_, offset) => (((index + step * (offset + 1)) % count) + count) % count
1801
+ ).find(candidate => !options[candidate]?.disabled)
1802
+
1803
+ if (next === undefined) {
1804
+ return
1805
+ }
1806
+
1807
+ options[next]?.onSelect()
1808
+ event.currentTarget.parentElement?.querySelectorAll<HTMLElement>('[role="radio"]')[next]?.focus()
1809
+ }
1810
+
1811
+ return (
1812
+ <Box
1813
+ component="div"
1814
+ role="radiogroup"
1815
+ aria-label="Edge finish"
1816
+ sx={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 1.5 }}
1817
+ >
1818
+ {options.map((option, index) => {
1819
+ const isSelected = option.value === selection.value
1820
+
1821
+ return (
1822
+ <ButtonBase
1823
+ key={String(option.value)}
1824
+ role="radio"
1825
+ aria-checked={isSelected}
1826
+ tabIndex={index === focusIndex ? 0 : -1}
1827
+ disabled={option.disabled}
1828
+ onClick={option.onSelect}
1829
+ onKeyDown={event => handleKeyDown(event, index)}
1830
+ sx={{
1831
+ position: 'relative',
1832
+ display: 'grid',
1833
+ justifyItems: 'start',
1834
+ gap: 0.5,
1835
+ padding: 2,
1836
+ borderRadius: 3,
1837
+ border: 2,
1838
+ borderColor: isSelected ? 'primary.main' : 'divider',
1839
+ bgcolor: isSelected ? 'action.hover' : 'transparent',
1840
+ textAlign: 'start',
1841
+ transition: 'border-color 150ms, background-color 150ms',
1842
+ '&:hover': { borderColor: isSelected ? 'primary.main' : 'text.disabled' },
1843
+ '&.Mui-focusVisible': { outline: 2, outlineColor: 'primary.main', outlineOffset: 2 },
1844
+ '&.Mui-disabled': { opacity: 0.4 },
1845
+ }}
1846
+ >
1847
+ {isSelected && (
1848
+ <Box component="span" aria-hidden sx={CHECK_BADGE}>
1849
+ ✓
1850
+ </Box>
1851
+ )}
1852
+ <Box
1853
+ component="svg"
1854
+ viewBox="0 0 36 24"
1855
+ aria-hidden
1856
+ sx={{ inlineSize: 60, blockSize: 40, color: '#b98b5e' }}
1857
+ >
1858
+ <path d={EDGE_PROFILES[String(option.value)]} fill="currentColor" />
1859
+ </Box>
1860
+ <Typography variant="body2" fontWeight={600}>
1861
+ {resolve(option.title)}
1862
+ </Typography>
1863
+ <Typography variant="caption" color="text.secondary">
1864
+ {resolve(option.description)}
1865
+ </Typography>
1866
+ </ButtonBase>
1867
+ )
1868
+ })}
1869
+ </Box>
1870
+ )
1871
+ }
1872
+ ```
1873
+
1874
+ ### ./src/\_shared/FullscreenToggle.tsx
1875
+
1876
+ ```tsx
1877
+ import { Button, Tooltip } from '@mui/material'
1878
+
1879
+ import { FrontendAnalyticsFactory } from '@salsita-ai/sdk/configurator'
1880
+
1881
+ import { phx } from '../../.phoenix/phx.js'
1882
+
1883
+ const ENTER_ICON = 'M4 9V4h5M15 4h5v5M20 15v5h-5M9 20H4v-5'
1884
+ const EXIT_ICON = 'M9 4v5H4M15 4v5h5M15 20v-5h5M9 20v-5H4'
1885
+
1886
+ interface FullscreenToggleProps {
1887
+ // Only the icon, with the label as its accessible name and tooltip, where a label would cover the product
1888
+ readonly compact?: boolean
1889
+ }
1890
+
1891
+ export const FullscreenToggle = ({ compact = false }: FullscreenToggleProps) => {
1892
+ const isFullscreen = phx.frontend.useIsFullscreenActive()
1893
+ const setFullscreen = phx.frontend.useSetFullscreen()
1894
+ const analytics = phx.frontend.useAnalytics()
1895
+ const label = isFullscreen ? 'Exit fullscreen' : 'Fullscreen'
1896
+ const icon = (
1897
+ <svg viewBox="0 0 24 24" width={20} height={20} fill="none" stroke="currentColor" strokeWidth={2}>
1898
+ <path d={isFullscreen ? EXIT_ICON : ENTER_ICON} />
1899
+ </svg>
1900
+ )
1901
+
1902
+ // The same event the built-in fullscreen button records, for entering and for leaving
1903
+ const toggle = () => {
1904
+ analytics.push(FrontendAnalyticsFactory.FullScreenModeToggled())
1905
+ setFullscreen(!isFullscreen)
1906
+ }
1907
+
1908
+ return (
1909
+ <Tooltip title={compact ? label : ''}>
1910
+ <Button
1911
+ onClick={toggle}
1912
+ aria-label={compact ? label : undefined}
1913
+ startIcon={compact ? undefined : icon}
1914
+ sx={{
1915
+ minBlockSize: 44,
1916
+ minInlineSize: 44,
1917
+ paddingInline: compact ? 0 : 2.5,
1918
+ borderRadius: 999,
1919
+ bgcolor: 'background.paper',
1920
+ color: 'text.primary',
1921
+ boxShadow: '0 4px 16px rgba(0, 0, 0, 0.12)',
1922
+ textTransform: 'none',
1923
+ fontWeight: 600,
1924
+ '&:hover': { bgcolor: 'background.paper', boxShadow: '0 6px 20px rgba(0, 0, 0, 0.18)' },
1925
+ }}
1926
+ >
1927
+ {compact ? icon : label}
1928
+ </Button>
1929
+ </Tooltip>
1930
+ )
1931
+ }
1932
+ ```
1933
+
1934
+ ### ./src/\_shared/MessageToast.tsx
1935
+
1936
+ ```tsx
1937
+ import { Alert } from '@mui/material'
1938
+ import { useEffect, useState } from 'react'
1939
+
1940
+ import type { ConfiguratorMessage } from '@salsita-ai/sdk/react'
1941
+
1942
+ import { phx } from '../../.phoenix/phx.js'
1943
+
1944
+ const VIOLATION_SEVERITY = { fatal: 'error', fixable: 'error', warning: 'warning', notice: 'info' } as const
1945
+ const RANK = { info: 0, warning: 1, error: 2 } as const
1946
+ const VISIBLE_MS = 6000
1947
+
1948
+ const severityOf = (message: ConfiguratorMessage) => {
1949
+ if (message.kind === 'violation') {
1950
+ return VIOLATION_SEVERITY[message.violation.severity]
1951
+ }
1952
+
1953
+ return message.kind === 'error' || message.kind === 'saveError' ? 'error' : 'info'
1954
+ }
1955
+
1956
+ export const MessageToast = () => {
1957
+ const [message, setMessage] = useState<ConfiguratorMessage | null>(null)
1958
+
1959
+ // A rejected change also reports the notices already present; keep the worst message while it is shown
1960
+ phx.frontend.useConfiguratorMessages(next => {
1961
+ setMessage(shown => (shown !== null && RANK[severityOf(next)] < RANK[severityOf(shown)] ? shown : next))
1962
+ })
1963
+
1964
+ useEffect(() => {
1965
+ if (message === null) {
1966
+ return
1967
+ }
1968
+
1969
+ const timeout = setTimeout(() => setMessage(null), VISIBLE_MS)
1970
+
1971
+ return () => clearTimeout(timeout)
1972
+ }, [message])
1973
+
1974
+ if (message === null) {
1975
+ return null
1976
+ }
1977
+
1978
+ return (
1979
+ <Alert
1980
+ severity={severityOf(message)}
1981
+ onClose={() => setMessage(null)}
1982
+ sx={{ maxInlineSize: 420, borderRadius: 3, boxShadow: '0 12px 40px rgba(0, 0, 0, 0.12)' }}
1983
+ >
1984
+ {message.text}
1985
+ </Alert>
1986
+ )
1987
+ }
1988
+ ```
1989
+
1990
+ ### ./src/\_shared/ProductPanel.tsx
1991
+
1992
+ ```tsx
1993
+ import { Box, Button, Typography } from '@mui/material'
1994
+
1995
+ import { detailComponent } from '@salsita-ai/sdk/domain'
1996
+
1997
+ import { phx } from '../../.phoenix/phx.js'
1998
+ import { EdgeFinishCards } from './EdgeFinishCards.js'
1999
+ import { ReviewActions } from './ReviewActions.js'
2000
+
2001
+ const BUTTON_SX = { minBlockSize: 48, borderRadius: 999, textTransform: 'none', fontWeight: 600 } as const
2002
+
2003
+ interface ProductPanelProps {
2004
+ // Only the name, the price and the action, for a collapsed bottom sheet
2005
+ readonly collapsed?: boolean
2006
+ // In a bottom sheet the cards region keeps the top of the cards in view, and the sheet scrolls when that does not fit
2007
+ readonly inSheet?: boolean
2008
+ }
2009
+
2010
+ export const ProductPanel = ({ collapsed = false, inSheet = false }: ProductPanelProps) => {
2011
+ const resolve = phx.frontend.useResolveLocalizable()
2012
+ const detail = phx.frontend.useFirstRootComponent(detailComponent)
2013
+ const price = phx.frontend.useRootEntityPrice()
2014
+ const tableId = phx.frontend.useRootEntityId()
2015
+ const edgeFinish = phx.frontend.useAttributeSelection(tableId, 'edgeFinish')
2016
+ const { accessInfo } = phx.frontend.useAccessService()
2017
+ const navigationState = phx.frontend.useActiveNavigationState()
2018
+ const pushNavigate = phx.frontend.usePushNavigate()
2019
+ const popNavigate = phx.frontend.usePopNavigate()
2020
+ const navigate = phx.frontend.useNavigate()
2021
+
2022
+ const isReadMode = accessInfo.viewMode
2023
+ const isReview = isReadMode || navigationState !== 'configure'
2024
+ const chosenEdge = edgeFinish.options.find(option => option.value === edgeFinish.value)
2025
+
2026
+ return (
2027
+ <>
2028
+ <Box component="header" sx={{ display: 'grid', gap: 1, padding: 3, paddingBlockEnd: 2 }}>
2029
+ {isReadMode ? (
2030
+ <Typography
2031
+ variant="overline"
2032
+ sx={{ justifySelf: 'start', paddingInline: 1.5, borderRadius: 999, bgcolor: 'action.selected' }}
2033
+ >
2034
+ View only
2035
+ </Typography>
2036
+ ) : (
2037
+ <Typography variant="overline" color="text.secondary">
2038
+ {resolve(detail?.state.subtitle)}
2039
+ </Typography>
2040
+ )}
2041
+ <Typography variant="h5" component="h2" fontWeight={700}>
2042
+ {resolve(detail?.state.title)}
2043
+ </Typography>
2044
+ {!collapsed && (
2045
+ <Typography variant="body2" color="text.secondary">
2046
+ {resolve(detail?.state.description)}
2047
+ </Typography>
2048
+ )}
2049
+ </Box>
2050
+
2051
+ {!collapsed && (
2052
+ <Box
2053
+ component="div"
2054
+ sx={{
2055
+ display: 'grid',
2056
+ gap: 1.5,
2057
+ paddingInline: 3,
2058
+ paddingBlockEnd: 3,
2059
+ // In a short container the region shrinks and scrolls; a scroll past its end moves its container on
2060
+ minBlockSize: inSheet ? 120 : 0,
2061
+ overflowY: 'auto',
2062
+ }}
2063
+ >
2064
+ <Typography variant="subtitle2" component="h3">
2065
+ Edge finish
2066
+ </Typography>
2067
+ {isReview ? (
2068
+ <Box component="div" sx={{ padding: 2, borderRadius: 3, bgcolor: 'action.hover' }}>
2069
+ <Typography variant="body2" fontWeight={600}>
2070
+ {resolve(chosenEdge?.title)}
2071
+ </Typography>
2072
+ <Typography variant="caption" color="text.secondary">
2073
+ {resolve(chosenEdge?.description)}
2074
+ </Typography>
2075
+ </Box>
2076
+ ) : (
2077
+ <EdgeFinishCards selection={edgeFinish} />
2078
+ )}
2079
+ </Box>
2080
+ )}
2081
+
2082
+ <Box component="footer" sx={{ display: 'grid', gap: 2, padding: 3, borderTop: 1, borderColor: 'divider' }}>
2083
+ <Box component="div" sx={{ display: 'flex', alignItems: 'baseline', justifyContent: 'space-between' }}>
2084
+ <Typography variant="body2" color="text.secondary">
2085
+ Total price
2086
+ </Typography>
2087
+ <Typography variant="h5" component="p" fontWeight={700}>
2088
+ {price}
2089
+ </Typography>
2090
+ </Box>
2091
+ {!isReadMode && navigationState === 'configure' && (
2092
+ <Button size="large" variant="contained" onClick={() => pushNavigate('checkout')} sx={BUTTON_SX}>
2093
+ Review and request a quote
2094
+ </Button>
2095
+ )}
2096
+ {!isReadMode && navigationState === 'checkout' && (
2097
+ <>
2098
+ <Typography variant="body2" color="text.secondary">
2099
+ Your table is ready for a quote. A real shop collects the contact details here.
2100
+ </Typography>
2101
+ <ReviewActions onBack={popNavigate} />
2102
+ </>
2103
+ )}
2104
+ {!isReadMode && navigationState === 'requested' && (
2105
+ <>
2106
+ <Typography variant="body2" role="status">
2107
+ Thank you. Your quote request is on its way, and the shop replies within two working days.
2108
+ </Typography>
2109
+ <Button size="large" variant="outlined" onClick={() => navigate('configure')} sx={BUTTON_SX}>
2110
+ Back to the configuration
2111
+ </Button>
2112
+ </>
2113
+ )}
2114
+ </Box>
2115
+ </>
2116
+ )
2117
+ }
2118
+ ```
2119
+
2120
+ ### ./src/\_shared/ReviewActions.tsx
2121
+
2122
+ ```tsx
2123
+ import { Alert, Box, Button, CircularProgress, Typography } from '@mui/material'
2124
+
2125
+ import { phx } from '../../.phoenix/phx.js'
2126
+
2127
+ const BUTTON_SX = { minBlockSize: 48, borderRadius: 999, textTransform: 'none', fontWeight: 600 } as const
2128
+
2129
+ interface ReviewActionsProps {
2130
+ readonly onBack: () => void
2131
+ }
2132
+
2133
+ // The review step's buttons: the spec's primary finalize action and the way back. `useFinalizeActions` runs the
2134
+ // action's handler beside the layout, so its pending state and error outlive this component: when the panel unmounts,
2135
+ // as in fullscreen, the request goes on and the remounted buttons still show it. Back is disabled while the request
2136
+ // is pending, so the customer cannot change the configuration while it is sent.
2137
+ export const ReviewActions = ({ onBack }: ReviewActionsProps) => {
2138
+ const { primary, hints } = phx.frontend.useFinalizeActions()
2139
+ const isPending = primary?.isPending ?? false
2140
+
2141
+ return (
2142
+ <Box component="div" sx={{ display: 'grid', gap: 2 }}>
2143
+ {primary && (
2144
+ <Box component="div" sx={{ display: 'grid', gap: 1 }}>
2145
+ <Button
2146
+ size="large"
2147
+ variant="contained"
2148
+ disabled={primary.disabled || isPending}
2149
+ onClick={() => void primary.run()}
2150
+ title={primary.title}
2151
+ startIcon={isPending ? <CircularProgress size={18} color="inherit" /> : undefined}
2152
+ sx={BUTTON_SX}
2153
+ >
2154
+ {isPending ? 'Sending the request…' : primary.label}
2155
+ </Button>
2156
+ {primary.disabled && hints && (
2157
+ <Typography variant="caption" color="text.secondary">
2158
+ {hints}
2159
+ </Typography>
2160
+ )}
2161
+ {primary.error && <Alert severity="error">The request could not be sent: {primary.error.message}</Alert>}
2162
+ </Box>
2163
+ )}
2164
+ <Button size="large" variant="outlined" disabled={isPending} onClick={onBack} sx={BUTTON_SX}>
2165
+ Back to the configuration
2166
+ </Button>
2167
+ </Box>
2168
+ )
2169
+ }
2170
+ ```
2171
+
2172
+ ### ./src/\_shared/SceneControls.tsx
2173
+
2174
+ ```tsx
2175
+ import { Box, Button, Tooltip } from '@mui/material'
2176
+
2177
+ import { phx } from '../../.phoenix/phx.js'
2178
+
2179
+ // The spec's view states, each with the label of the button that shows it
2180
+ const VIEWS = [
2181
+ { state: 'overview', label: 'Whole table' },
2182
+ { state: 'edge', label: 'Edge close-up' },
2183
+ ] as const
2184
+
2185
+ const RESET_ICON = 'M4 12a8 8 0 1 0 2.4-5.7M4 4v4h4'
2186
+
2187
+ const SURFACE_SX = {
2188
+ borderRadius: 999,
2189
+ bgcolor: 'background.paper',
2190
+ boxShadow: '0 4px 16px rgba(0, 0, 0, 0.12)',
2191
+ } as const
2192
+
2193
+ const BUTTON_SX = {
2194
+ minBlockSize: 44,
2195
+ minInlineSize: 44,
2196
+ borderRadius: 999,
2197
+ textTransform: 'none',
2198
+ fontWeight: 600,
2199
+ whiteSpace: 'nowrap',
2200
+ } as const
2201
+
2202
+ interface SceneControlsProps {
2203
+ // The reset button shows only its icon, with its label as tooltip and accessible name
2204
+ readonly compact?: boolean
2205
+ // Only the reset button, without the view buttons
2206
+ readonly resetOnly?: boolean
2207
+ }
2208
+
2209
+ // The layout's own camera controls: one button per view state of the spec, and a reset that undoes an orbit
2210
+ export const SceneControls = ({ compact = false, resetOnly = false }: SceneControlsProps) => {
2211
+ const activeView = phx.frontend.useActiveViewState()
2212
+ const setViewState = phx.frontend.useSetViewState()
2213
+ const resetCamera = phx.frontend.useResetCamera()
2214
+ const resetIcon = (
2215
+ <svg viewBox="0 0 24 24" width={20} height={20} fill="none" stroke="currentColor" strokeWidth={2}>
2216
+ <path d={RESET_ICON} />
2217
+ </svg>
2218
+ )
2219
+
2220
+ return (
2221
+ <Box component="div" sx={{ display: 'flex', gap: 1 }}>
2222
+ {!resetOnly && (
2223
+ <Box component="div" role="group" aria-label="View" sx={{ ...SURFACE_SX, display: 'flex' }}>
2224
+ {VIEWS.map(view => {
2225
+ const isActive = activeView === view.state
2226
+
2227
+ return (
2228
+ <Button
2229
+ key={view.state}
2230
+ aria-pressed={isActive}
2231
+ onClick={() => setViewState(view.state)}
2232
+ sx={{
2233
+ ...BUTTON_SX,
2234
+ paddingInline: 2,
2235
+ bgcolor: isActive ? 'text.primary' : 'transparent',
2236
+ color: isActive ? 'background.paper' : 'text.primary',
2237
+ '&:hover': { bgcolor: isActive ? 'text.primary' : 'action.hover' },
2238
+ }}
2239
+ >
2240
+ {view.label}
2241
+ </Button>
2242
+ )
2243
+ })}
2244
+ </Box>
2245
+ )}
2246
+ <Tooltip title={compact ? 'Reset view' : ''}>
2247
+ <Button
2248
+ onClick={resetCamera}
2249
+ aria-label={compact ? 'Reset view' : undefined}
2250
+ startIcon={compact ? undefined : resetIcon}
2251
+ sx={{
2252
+ ...SURFACE_SX,
2253
+ ...BUTTON_SX,
2254
+ paddingInline: compact ? 0 : 2,
2255
+ color: 'text.primary',
2256
+ '&:hover': { bgcolor: 'background.paper', boxShadow: '0 6px 20px rgba(0, 0, 0, 0.18)' },
2257
+ }}
2258
+ >
2259
+ {compact ? resetIcon : 'Reset view'}
2260
+ </Button>
2261
+ </Tooltip>
2262
+ </Box>
2263
+ )
2264
+ }
2265
+ ```
2266
+
2267
+ ### ./src/\_shared/UndoRedo.tsx
2268
+
2269
+ ```tsx
2270
+ import { Box, IconButton, Tooltip } from '@mui/material'
2271
+
2272
+ import { phx } from '../../.phoenix/phx.js'
2273
+
2274
+ const UNDO_ICON = 'M9 14 4 9l5-5M4 9h10.5a5.5 5.5 0 0 1 0 11H11'
2275
+ const REDO_ICON = 'M15 14l5-5-5-5M20 9H9.5a5.5 5.5 0 0 0 0 11H13'
2276
+
2277
+ interface HistoryButtonProps {
2278
+ readonly label: string
2279
+ readonly icon: string
2280
+ readonly enabled: boolean
2281
+ readonly onClick: () => void
2282
+ }
2283
+
2284
+ const HistoryButton = ({ label, icon, enabled, onClick }: HistoryButtonProps) => (
2285
+ <Tooltip title={label}>
2286
+ {/* A disabled button fires no pointer events, so the span keeps the tooltip working */}
2287
+ <span>
2288
+ <IconButton
2289
+ aria-label={label}
2290
+ disabled={!enabled}
2291
+ onClick={onClick}
2292
+ sx={{ inlineSize: 44, blockSize: 44, color: 'text.primary' }}
2293
+ >
2294
+ <svg viewBox="0 0 24 24" width={20} height={20} fill="none" stroke="currentColor" strokeWidth={2}>
2295
+ <path d={icon} />
2296
+ </svg>
2297
+ </IconButton>
2298
+ </span>
2299
+ </Tooltip>
2300
+ )
2301
+
2302
+ // Undo and redo for the customer's choices. They change the configuration, so they are offered only where the cards
2303
+ // are: not to a viewer, and not in the review step, where the summary and a running request must not change under the
2304
+ // customer. `useUndoRedo` pushes the same analytics events as the built-in toolbar's buttons.
2305
+ export const UndoRedo = () => {
2306
+ const { canUndo, canRedo, undo, redo } = phx.frontend.useUndoRedo()
2307
+ const { accessInfo } = phx.frontend.useAccessService()
2308
+ const navigationState = phx.frontend.useActiveNavigationState()
2309
+
2310
+ if (accessInfo.viewMode || navigationState !== 'configure') {
2311
+ return null
2312
+ }
2313
+
2314
+ return (
2315
+ <Box
2316
+ component="div"
2317
+ role="group"
2318
+ aria-label="History"
2319
+ sx={{
2320
+ display: 'flex',
2321
+ borderRadius: 999,
2322
+ bgcolor: 'background.paper',
2323
+ boxShadow: '0 4px 16px rgba(0, 0, 0, 0.12)',
2324
+ }}
2325
+ >
2326
+ <HistoryButton label="Undo" icon={UNDO_ICON} enabled={canUndo} onClick={undo} />
2327
+ <HistoryButton label="Redo" icon={REDO_ICON} enabled={canRedo} onClick={redo} />
2328
+ </Box>
2329
+ )
2330
+ }
2331
+ ```
2332
+
2333
+ ### ./src/elements/ConfiguratorLayout.tsx
2334
+
2335
+ ```tsx
2336
+ import { Box } from '@mui/material'
2337
+ import { useState } from 'react'
2338
+
2339
+ import { LayoutSlots } from '@salsita-ai/sdk/configurator'
2340
+
2341
+ import { phx } from '../../.phoenix/phx.js'
2342
+ import { BottomSheet } from '../_shared/BottomSheet.js'
2343
+ import { FullscreenToggle } from '../_shared/FullscreenToggle.js'
2344
+ import { MessageToast } from '../_shared/MessageToast.js'
2345
+ import { ProductPanel } from '../_shared/ProductPanel.js'
2346
+ import { SceneControls } from '../_shared/SceneControls.js'
2347
+ import { UndoRedo } from '../_shared/UndoRedo.js'
2348
+
2349
+ const GUTTER = 24
2350
+ const PANEL_WIDTH = 380
2351
+ const PHONE_GUTTER = 16
2352
+ const TOUCH_TARGET = 44
2353
+
2354
+ const ConfiguratorLayout = () => {
2355
+ const { containerRef, safeAreaRef } = phx.frontend.useSceneSafeArea()
2356
+ const isFullscreen = phx.frontend.useIsFullscreenActive()
2357
+ // `null` until the container has been measured; the layout shows only the scene until then
2358
+ const viewports = phx.frontend.useActiveViewports()
2359
+ const [isSheetOpen, setSheetOpen] = useState(false)
2360
+
2361
+ const isDesktop = viewports?.includes('desktop') ?? false
2362
+ const gutter = isDesktop ? GUTTER : PHONE_GUTTER
2363
+
2364
+ return (
2365
+ <Box
2366
+ component="div"
2367
+ ref={containerRef}
2368
+ // `clip`, not `hidden`: what overflows, such as the sheet's fill below its edge, can never be scrolled into view,
2369
+ // not even by the browser when the focus moves
2370
+ sx={{ position: 'absolute', inset: 0, display: 'flex', flexDirection: 'column', overflow: 'clip' }}
2371
+ >
2372
+ <LayoutSlots.SharedCanvas />
2373
+
2374
+ {viewports !== null && isDesktop && !isFullscreen && (
2375
+ <Box
2376
+ component="aside"
2377
+ sx={{
2378
+ position: 'absolute',
2379
+ insetBlockStart: GUTTER,
2380
+ insetInlineStart: GUTTER,
2381
+ inlineSize: PANEL_WIDTH,
2382
+ maxBlockSize: `calc(100% - ${2 * GUTTER}px)`,
2383
+ display: 'flex',
2384
+ flexDirection: 'column',
2385
+ borderRadius: 5,
2386
+ bgcolor: 'background.paper',
2387
+ boxShadow: '0 12px 40px rgba(0, 0, 0, 0.12)',
2388
+ // A very short container, such as a phone held sideways, scrolls the panel instead of clipping its footer
2389
+ overflowX: 'hidden',
2390
+ overflowY: 'auto',
2391
+ overscrollBehavior: 'contain',
2392
+ }}
2393
+ >
2394
+ <ProductPanel />
2395
+ </Box>
2396
+ )}
2397
+
2398
+ {viewports !== null && (
2399
+ <Box
2400
+ component="div"
2401
+ ref={safeAreaRef}
2402
+ sx={{
2403
+ // Desktop: right of the panel. Phone: above the sheet, whose height the column gives the rest.
2404
+ ...(isDesktop
2405
+ ? {
2406
+ position: 'absolute',
2407
+ insetBlock: 0,
2408
+ insetInlineStart: isFullscreen ? 0 : PANEL_WIDTH + 2 * GUTTER,
2409
+ insetInlineEnd: 0,
2410
+ }
2411
+ : { position: 'relative', flex: '1 1 0', minBlockSize: 0 }),
2412
+ pointerEvents: 'none',
2413
+ }}
2414
+ >
2415
+ <Box
2416
+ component="div"
2417
+ sx={{
2418
+ position: 'absolute',
2419
+ insetBlockStart: gutter,
2420
+ insetInlineEnd: gutter,
2421
+ display: 'flex',
2422
+ gap: 1,
2423
+ pointerEvents: 'auto',
2424
+ }}
2425
+ >
2426
+ {!isFullscreen && <UndoRedo />}
2427
+ <FullscreenToggle compact={!isDesktop} />
2428
+ </Box>
2429
+ <Box
2430
+ component="div"
2431
+ sx={{
2432
+ position: 'absolute',
2433
+ pointerEvents: 'auto',
2434
+ // Desktop: bottom left, above the row of view controls. Phone: at the top below the row of undo, redo and
2435
+ // fullscreen, clear of the sheet's handle and the view controls.
2436
+ ...(isDesktop
2437
+ ? { insetBlockEnd: 2 * GUTTER + TOUCH_TARGET, insetInlineStart: GUTTER }
2438
+ : { insetBlockStart: gutter + TOUCH_TARGET + gutter / 2, insetInline: gutter }),
2439
+ }}
2440
+ >
2441
+ <MessageToast />
2442
+ </Box>
2443
+ {/* A phone in fullscreen keeps only the reset, as the built-in layout does. Below 1024 pixels (`tablet`) the
2444
+ free area beside the panel is narrow, so the reset shows only its icon there too. */}
2445
+ <Box
2446
+ component="div"
2447
+ sx={{ position: 'absolute', insetBlockEnd: gutter, insetInlineEnd: gutter, pointerEvents: 'auto' }}
2448
+ >
2449
+ <SceneControls
2450
+ compact={!isDesktop || (viewports?.includes('tablet') ?? false)}
2451
+ resetOnly={!isDesktop && isFullscreen}
2452
+ />
2453
+ </Box>
2454
+ </Box>
2455
+ )}
2456
+
2457
+ {viewports !== null && !isDesktop && !isFullscreen && (
2458
+ <BottomSheet open={isSheetOpen} onOpenChange={setSheetOpen} label="Product details">
2459
+ <ProductPanel collapsed={!isSheetOpen} inSheet />
2460
+ </BottomSheet>
2461
+ )}
2462
+ </Box>
2463
+ )
2464
+ }
2465
+
2466
+ export default phx.frontend.createCustomPhoenixLayoutElement('ConfiguratorLayout', ConfiguratorLayout)
2467
+ ```
2468
+
2469
+ ### ./src/elements/EdgeFinishHotspot.tsx
2470
+
2471
+ ```tsx
2472
+ import { Box, ButtonBase, Popover, Tooltip } from '@mui/material'
2473
+ import { useState } from 'react'
2474
+
2475
+ import { phx } from '../../.phoenix/phx.js'
2476
+ import { EdgeFinishCards } from '../_shared/EdgeFinishCards.js'
2477
+
2478
+ // The edge profile the button shows, the square edge of the cards' drawings
2479
+ const EDGE_ICON = 'M3 7H17L21 11V13L17 17H3Z'
2480
+
2481
+ // Rendered by the spec's `htmlHotspot` on the table's edge: a button on the product that opens the edge finishes
2482
+ // next to the edge, with the same cards as the panel. The spec's `$filter` decides when it is shown.
2483
+ export default phx.frontend.createCustomPhoenixEntityElement('EdgeFinishHotspot', ({ entityId }) => {
2484
+ const edgeFinish = phx.frontend.useAttributeSelection(entityId, 'edgeFinish')
2485
+ const [anchor, setAnchor] = useState<HTMLElement | null>(null)
2486
+
2487
+ return (
2488
+ <>
2489
+ <Tooltip title="Edge finish">
2490
+ <ButtonBase
2491
+ aria-label="Edge finish"
2492
+ aria-haspopup="dialog"
2493
+ aria-expanded={anchor !== null}
2494
+ onClick={event => setAnchor(event.currentTarget)}
2495
+ sx={{
2496
+ display: 'grid',
2497
+ placeItems: 'center',
2498
+ inlineSize: 44,
2499
+ blockSize: 44,
2500
+ borderRadius: '50%',
2501
+ bgcolor: 'background.paper',
2502
+ color: 'primary.main',
2503
+ boxShadow: '0 4px 16px rgba(0, 0, 0, 0.2)',
2504
+ '&.Mui-focusVisible': { outline: 2, outlineColor: 'primary.main', outlineOffset: 2 },
2505
+ }}
2506
+ >
2507
+ <svg viewBox="0 0 24 24" width={22} height={22} aria-hidden>
2508
+ <path d={EDGE_ICON} fill="currentColor" />
2509
+ </svg>
2510
+ </ButtonBase>
2511
+ </Tooltip>
2512
+ <Popover
2513
+ open={anchor !== null}
2514
+ anchorEl={anchor}
2515
+ onClose={() => setAnchor(null)}
2516
+ anchorOrigin={{ vertical: 'top', horizontal: 'center' }}
2517
+ transformOrigin={{ vertical: 'bottom', horizontal: 'center' }}
2518
+ slotProps={{
2519
+ paper: { role: 'dialog', 'aria-label': 'Edge finish', sx: { borderRadius: 4, marginBlockStart: -1 } },
2520
+ }}
2521
+ >
2522
+ <Box component="div" sx={{ inlineSize: 340, maxInlineSize: 'calc(100vw - 32px)', padding: 2 }}>
2523
+ <EdgeFinishCards selection={edgeFinish} />
2524
+ </Box>
2525
+ </Popover>
2526
+ </>
2527
+ )
2528
+ })
2529
+ ```
2530
+
2531
+ ### ./src/expressions/table.ts
2532
+
2533
+ ```ts
2534
+ import { phx } from '../../.phoenix/phx.js'
2535
+
2536
+ const EDGE_FINISH_SURCHARGE = { None: 0, Facet: 90, Round: 120, TreeTrunk: 340 }
2537
+
2538
+ export default phx.domain.implementCustomExpressions({
2539
+ Table: {
2540
+ $price: s => {
2541
+ return 1290 + EDGE_FINISH_SURCHARGE[s.edgeFinish]
2542
+ },
2543
+ $edgeFinishFacet: s => {
2544
+ return s.edgeFinish === 'Facet' ? 1 : 0
2545
+ },
2546
+ $edgeFinishRound: s => {
2547
+ return s.edgeFinish === 'Round' ? 1 : 0
2548
+ },
2549
+ $edgeFinishTreeTrunk: s => {
2550
+ return s.edgeFinish === 'TreeTrunk' ? 1 : 0
2551
+ },
2552
+ },
2553
+ })
2554
+ ```
2555
+
2556
+ ### ./src/handlers/request-quote.ts
2557
+
2558
+ ```ts
2559
+ import { useCallback } from 'react'
2560
+
2561
+ import { phx } from '../../.phoenix/phx.js'
2562
+
2563
+ // Stands in for the shop's quote service: the request takes a moment, then the panel shows the confirmation
2564
+ export default phx.frontend.createPhoenixHandler('requestQuote', () => {
2565
+ const navigate = phx.frontend.useNavigate()
2566
+
2567
+ return {
2568
+ handler: useCallback(async () => {
2569
+ await new Promise(resolve => setTimeout(resolve, 1500))
2570
+ navigate('requested')
2571
+ }, [navigate]),
2572
+ }
2573
+ })
2574
+ ```
2575
+
2576
+ ### ./src/transformers/tree-trunk-delivery.ts
2577
+
2578
+ ```ts
2579
+ import { msg } from '@lingui/core/macro'
2580
+
2581
+ import { phx } from '../../.phoenix/phx.js'
2582
+
2583
+ // A tree-trunk edge is cut by hand; choosing it carries a hint, which reaches the layout as a side-effect message
2584
+ export default phx.frontend.transformerBuilder.when
2585
+ .entity(['Table'])
2586
+ .modified({ atFields: ['edgeFinish'] })
2587
+ .then.overrideMatchingUpdate(({ update }) => {
2588
+ if (update.stateDelta.edgeFinish !== 'TreeTrunk') {
2589
+ return [update]
2590
+ }
2591
+
2592
+ return [{ ...update, hint: msg`Tree trunk edges are cut by hand, so delivery takes three weeks longer.` }]
2593
+ })
2594
+ .build('tree-trunk-delivery')
2595
+ ```
2596
+
2597
+ </details>