@salsita-ai/sdk 0.50.0-develop.dfac20c66b → 0.50.0-develop.e33a64224f

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 (3131) hide show
  1. package/README.md +36 -18
  2. package/dist/admin/AdminShell.js +1 -1
  3. package/dist/admin/common/admin-interface.d.ts +3 -3
  4. package/dist/admin/create-admin-pages-from-spec.d.ts +1 -1
  5. package/dist/admin/default-admin-elements.d.ts +9 -0
  6. package/dist/admin/default-admin-elements.js +1 -0
  7. package/dist/admin/default-elements/built-in-entity-element.d.ts +10 -0
  8. package/dist/admin/default-elements/built-in-entity-element.js +1 -0
  9. package/dist/admin/default-elements/built-in-layout-element.d.ts +10 -0
  10. package/dist/admin/default-elements/built-in-layout-element.js +1 -0
  11. package/dist/admin/default-elements/index.d.ts +2 -0
  12. package/dist/admin/default-elements/index.js +1 -0
  13. package/dist/admin/index.d.ts +1 -0
  14. package/dist/admin/index.js +1 -1
  15. package/dist/admin/legacy-admin/Application.js +1 -1
  16. package/dist/application/index.d.ts +1 -0
  17. package/dist/application/index.js +1 -1
  18. package/dist/application/mount-application.d.ts +1 -1
  19. package/dist/application/mount-application.js +1 -1
  20. package/dist/application/mount-configurator.d.ts +19 -0
  21. package/dist/application/mount-configurator.js +1 -0
  22. package/dist/application/mounted-application-runtime.d.ts +4 -0
  23. package/dist/application/mounted-application-runtime.js +1 -0
  24. package/dist/application/register-web-component.d.ts +2 -0
  25. package/dist/application/register-web-component.js +1 -0
  26. package/dist/application-spec/caching/content-diff.js +1 -1
  27. package/dist/application-spec/caching/index.d.ts +6 -1
  28. package/dist/application-spec/caching/index.js +1 -1
  29. package/dist/application-spec/core/application-file.d.ts +0 -2
  30. package/dist/application-spec/core/application-file.js +1 -1
  31. package/dist/application-spec/core/enhanced-json-value.d.ts +2 -99
  32. package/dist/application-spec/core/enhanced-json-value.js +1 -1
  33. package/dist/application-spec/core/index.d.ts +1 -1
  34. package/dist/application-spec/core/index.js +1 -1
  35. package/dist/application-spec/core/json-schema.d.ts +2 -52
  36. package/dist/application-spec/core/json-value.d.ts +1 -1
  37. package/dist/application-spec/core/markers/index.d.ts +1 -1
  38. package/dist/application-spec/core/markers/index.js +1 -1
  39. package/dist/application-spec/core/markers/msg-marker.d.ts +2 -28
  40. package/dist/application-spec/core/markers/msg-marker.js +1 -1
  41. package/dist/application-spec/core/markers/raw-eval-write-marker.d.ts +1 -1
  42. package/dist/application-spec/core/markers/raw-eval-write-marker.js +1 -1
  43. package/dist/application-spec/core/markers/raw-read-write-marker.js +1 -1
  44. package/dist/application-spec/enhanced-json/eval-to-constant.d.ts +14 -0
  45. package/dist/application-spec/enhanced-json/index.d.ts +4 -0
  46. package/dist/application-spec/enhanced-json/index.js +1 -0
  47. package/dist/application-spec/enhanced-json/is-enhanced-json-array.d.ts +2 -0
  48. package/dist/application-spec/enhanced-json/is-enhanced-json-array.js +1 -0
  49. package/dist/application-spec/enhanced-json/resolve-enhanced-json-value.d.ts +18 -0
  50. package/dist/application-spec/enhanced-json/resolve-enhanced-json-value.js +1 -0
  51. package/dist/application-spec/enhanced-json/schema-from-value.d.ts +24 -0
  52. package/dist/application-spec/enhanced-json/schema-from-value.js +1 -0
  53. package/dist/application-spec/enhanced-json/stringify-enhanced-json-value.d.ts +14 -0
  54. package/dist/application-spec/enhanced-json/stringify-enhanced-json-value.js +1 -0
  55. package/dist/application-spec/enhanced-json/validate-enhanced-json-value-caps.d.ts +12 -0
  56. package/dist/application-spec/enhanced-json/validate-enhanced-json-value-caps.js +1 -0
  57. package/dist/application-spec/enhanced-json/validate-no-legacy-code-ref.d.ts +13 -0
  58. package/dist/application-spec/enhanced-json/validate-no-legacy-code-ref.js +1 -0
  59. package/dist/application-spec/errors/diagnostic-codes.d.ts +34 -1
  60. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  61. package/dist/application-spec/errors/diagnostic-messages.d.ts +45 -2
  62. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  63. package/dist/application-spec/generate-application/code/common/code-imports.js +1 -1
  64. package/dist/application-spec/generate-application/code/common/env-reader.js +2 -2
  65. package/dist/application-spec/generate-application/code/common/index.d.ts +2 -0
  66. package/dist/application-spec/generate-application/code/common/index.js +1 -1
  67. package/dist/application-spec/generate-application/code/common/project-module-list.d.ts +8 -0
  68. package/dist/application-spec/generate-application/code/common/project-module-list.js +3 -0
  69. package/dist/application-spec/generate-application/code/common/single-quoted-string.d.ts +6 -0
  70. package/dist/application-spec/generate-application/code/common/single-quoted-string.js +1 -0
  71. package/dist/application-spec/generate-application/code/domain-runtime-files.d.ts +0 -19
  72. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  73. package/dist/application-spec/generate-application/code/generate-application-code.d.ts +3 -2
  74. package/dist/application-spec/generate-application/code/generate-application-code.js +1 -1
  75. package/dist/application-spec/generate-application/code/index.d.ts +1 -0
  76. package/dist/application-spec/generate-application/code/project-scaffolding.d.ts +22 -14
  77. package/dist/application-spec/generate-application/code/project-scaffolding.js +2 -2
  78. package/dist/application-spec/generate-application/code/standalone-app-files.d.ts +6 -5
  79. package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
  80. package/dist/application-spec/generate-application/code/story-files.js +1 -1
  81. package/dist/application-spec/generate-application/code/templates/admin-config.d.ts +1 -1
  82. package/dist/application-spec/generate-application/code/templates/admin-config.js +5 -1
  83. package/dist/application-spec/generate-application/code/templates/admin-domain-code.d.ts +1 -2
  84. package/dist/application-spec/generate-application/code/templates/admin-domain-code.js +6 -14
  85. package/dist/application-spec/generate-application/code/templates/admin-frontend-code.d.ts +1 -2
  86. package/dist/application-spec/generate-application/code/templates/admin-frontend-code.js +4 -4
  87. package/dist/application-spec/generate-application/code/templates/application-types.js +6 -6
  88. package/dist/application-spec/generate-application/code/templates/common/doc-comment.d.ts +2 -0
  89. package/dist/application-spec/generate-application/code/templates/common/doc-comment.js +1 -0
  90. package/dist/application-spec/generate-application/code/templates/common/format-property-key.d.ts +7 -0
  91. package/dist/application-spec/generate-application/code/templates/common/format-property-key.js +1 -0
  92. package/dist/application-spec/generate-application/code/templates/common/schema-to-type-string.js +3 -3
  93. package/dist/application-spec/generate-application/code/templates/configurator-config.js +7 -4
  94. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.d.ts +1 -2
  95. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.js +7 -16
  96. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.d.ts +1 -2
  97. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.js +7 -9
  98. package/dist/application-spec/generate-application/code/templates/configurator-globals.d.ts +2 -1
  99. package/dist/application-spec/generate-application/code/templates/configurator-globals.js +19 -6
  100. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +36 -0
  101. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +5 -0
  102. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.d.ts +1 -0
  103. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.js +1 -0
  104. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-assistant.d.ts +2 -2
  105. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-assistant.js +1 -1
  106. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-base-configurator-builder.js +2 -1
  107. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.d.ts +1 -1
  108. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.js +7 -7
  109. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.d.ts +4 -2
  110. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.js +1 -1
  111. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +72 -76
  112. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.d.ts +9 -1
  113. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.js +1 -1
  114. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-locale.js +1 -1
  115. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +3 -0
  116. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-presets.js +1 -1
  117. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-relation-expressions.js +1 -1
  118. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.d.ts +6 -8
  119. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.js +21 -21
  120. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.d.ts +1 -1
  121. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.js +2 -2
  122. package/dist/application-spec/generate-application/code/templates/domain-spec/index.d.ts +3 -2
  123. package/dist/application-spec/generate-application/code/templates/domain-spec/index.js +1 -1
  124. package/dist/application-spec/generate-application/code/templates/domain-spec.js +12 -12
  125. package/dist/application-spec/generate-application/code/templates/domain.js +5 -5
  126. package/dist/application-spec/generate-application/code/templates/editor.d.ts +1 -1
  127. package/dist/application-spec/generate-application/code/templates/editor.js +16 -3
  128. package/dist/application-spec/generate-application/code/templates/eslint-config.d.ts +5 -0
  129. package/dist/application-spec/generate-application/code/templates/eslint-config.js +4 -5
  130. package/dist/application-spec/generate-application/code/templates/frontend-config.js +3 -5
  131. package/dist/application-spec/generate-application/code/templates/gitignore.js +2 -4
  132. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +7 -7
  133. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +12 -0
  134. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -0
  135. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.d.ts +43 -0
  136. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +33 -0
  137. package/dist/application-spec/generate-application/code/templates/global-definition/index.d.ts +2 -0
  138. package/dist/application-spec/generate-application/code/templates/global-definition/index.js +1 -1
  139. package/dist/application-spec/generate-application/code/templates/globals.js +24 -43
  140. package/dist/application-spec/generate-application/code/templates/html-index.d.ts +12 -1
  141. package/dist/application-spec/generate-application/code/templates/html-index.js +9 -10
  142. package/dist/application-spec/generate-application/code/templates/index.d.ts +6 -16
  143. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  144. package/dist/application-spec/generate-application/code/templates/lingui-rc.d.ts +5 -0
  145. package/dist/application-spec/generate-application/code/templates/lingui-rc.js +3 -2
  146. package/dist/application-spec/generate-application/code/templates/prettier-config.d.ts +5 -0
  147. package/dist/application-spec/generate-application/code/templates/prettier-config.js +4 -5
  148. package/dist/application-spec/generate-application/code/templates/root-tsconfig.d.ts +6 -0
  149. package/dist/application-spec/generate-application/code/templates/root-tsconfig.js +2 -0
  150. package/dist/application-spec/generate-application/code/templates/skills/core/cli.d.ts +2 -0
  151. package/dist/application-spec/generate-application/code/templates/skills/core/cli.js +1 -0
  152. package/dist/application-spec/generate-application/code/templates/skills/core/index.d.ts +3 -0
  153. package/dist/application-spec/generate-application/code/templates/skills/core/index.js +1 -0
  154. package/dist/application-spec/generate-application/code/templates/skills/core/sdk.d.ts +2 -0
  155. package/dist/application-spec/generate-application/code/templates/skills/core/sdk.js +89 -0
  156. package/dist/application-spec/generate-application/code/templates/skills/core/workflow.d.ts +2 -0
  157. package/dist/application-spec/generate-application/code/templates/skills/core/workflow.js +46 -0
  158. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/application-states.d.ts +3 -0
  159. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/application-states.js +3 -0
  160. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/index.d.ts +1 -0
  161. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/index.js +1 -0
  162. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/navigation.d.ts +3 -0
  163. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/navigation.js +48 -0
  164. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/presets.d.ts +3 -0
  165. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/presets.js +38 -0
  166. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/selection.d.ts +3 -0
  167. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/selection.js +35 -0
  168. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/views-and-tools.d.ts +3 -0
  169. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/views-and-tools.js +61 -0
  170. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/custom-layout.d.ts +3 -0
  171. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/custom-layout.js +7 -0
  172. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/finalization-actions.d.ts +3 -0
  173. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/finalization-actions.js +79 -0
  174. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/index.d.ts +1 -0
  175. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/index.js +1 -0
  176. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/messages.d.ts +3 -0
  177. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/messages.js +52 -0
  178. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.d.ts +3 -0
  179. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.js +49 -0
  180. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/scene-and-safe-area.d.ts +3 -0
  181. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/scene-and-safe-area.js +62 -0
  182. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/slots.d.ts +3 -0
  183. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/slots.js +40 -0
  184. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/tabs-and-steps.d.ts +3 -0
  185. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/tabs-and-steps.js +65 -0
  186. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/toolbar-actions.d.ts +3 -0
  187. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/toolbar-actions.js +58 -0
  188. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/view-mode.d.ts +3 -0
  189. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/view-mode.js +41 -0
  190. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/control-components.d.ts +3 -0
  191. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/control-components.js +24 -0
  192. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/control-hooks.d.ts +3 -0
  193. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/control-hooks.js +44 -0
  194. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/custom-controls.d.ts +3 -0
  195. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/custom-controls.js +74 -0
  196. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/domain-controls.d.ts +3 -0
  197. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/domain-controls.js +8 -0
  198. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/index.d.ts +1 -0
  199. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/index.js +1 -0
  200. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/scene-controls.d.ts +3 -0
  201. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/scene-controls.js +48 -0
  202. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/actions.d.ts +3 -0
  203. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/actions.js +64 -0
  204. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/components.d.ts +3 -0
  205. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/components.js +62 -0
  206. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/domain-model.d.ts +3 -0
  207. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/domain-model.js +1 -0
  208. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/entities-and-relations.d.ts +3 -0
  209. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/entities-and-relations.js +59 -0
  210. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/expressions.d.ts +3 -0
  211. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/expressions.js +46 -0
  212. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/index.d.ts +1 -0
  213. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/index.js +1 -0
  214. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/transformers.d.ts +3 -0
  215. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/transformers.js +43 -0
  216. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/validation-and-repair.d.ts +3 -0
  217. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/validation-and-repair.js +30 -0
  218. package/dist/application-spec/generate-application/code/templates/skills/features/features.d.ts +3 -0
  219. package/dist/application-spec/generate-application/code/templates/skills/features/features.js +1 -0
  220. package/dist/application-spec/generate-application/code/templates/skills/features/index.d.ts +1 -0
  221. package/dist/application-spec/generate-application/code/templates/skills/features/index.js +1 -0
  222. package/dist/application-spec/generate-application/code/templates/skills/features/inspection.d.ts +2 -0
  223. package/dist/application-spec/generate-application/code/templates/skills/features/inspection.js +1 -0
  224. package/dist/application-spec/generate-application/code/templates/skills/features/localization.d.ts +3 -0
  225. package/dist/application-spec/generate-application/code/templates/skills/features/localization.js +87 -0
  226. package/dist/application-spec/generate-application/code/templates/skills/features/scene-objects.d.ts +3 -0
  227. package/dist/application-spec/generate-application/code/templates/skills/features/scene-objects.js +43 -0
  228. package/dist/application-spec/generate-application/code/templates/skills/features/state/index.d.ts +1 -0
  229. package/dist/application-spec/generate-application/code/templates/skills/features/state/index.js +1 -0
  230. package/dist/application-spec/generate-application/code/templates/skills/features/state/slices.d.ts +3 -0
  231. package/dist/application-spec/generate-application/code/templates/skills/features/state/slices.js +48 -0
  232. package/dist/application-spec/generate-application/code/templates/skills/features/state/state.d.ts +3 -0
  233. package/dist/application-spec/generate-application/code/templates/skills/features/state/state.js +1 -0
  234. package/dist/application-spec/generate-application/code/templates/skills/features/state/updates.d.ts +3 -0
  235. package/dist/application-spec/generate-application/code/templates/skills/features/state/updates.js +39 -0
  236. package/dist/application-spec/generate-application/code/templates/skills/features/state/violations.d.ts +3 -0
  237. package/dist/application-spec/generate-application/code/templates/skills/features/state/violations.js +36 -0
  238. package/dist/application-spec/generate-application/code/templates/skills/features/variants.d.ts +2 -0
  239. package/dist/application-spec/generate-application/code/templates/skills/features/variants.js +1 -0
  240. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/assistant-setup.d.ts +3 -0
  241. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/assistant-setup.js +32 -0
  242. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.d.ts +3 -0
  243. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.js +42 -0
  244. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/backend-data.d.ts +3 -0
  245. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/backend-data.js +45 -0
  246. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.d.ts +3 -0
  247. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.js +38 -0
  248. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/finalization.d.ts +3 -0
  249. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/finalization.js +92 -0
  250. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/index.d.ts +1 -0
  251. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/index.js +1 -0
  252. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/publishing.d.ts +3 -0
  253. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/publishing.js +1 -0
  254. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/callback.d.ts +3 -0
  255. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/callback.js +26 -0
  256. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/documents.d.ts +3 -0
  257. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/documents.js +51 -0
  258. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/email.d.ts +3 -0
  259. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/email.js +38 -0
  260. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/index.d.ts +1 -0
  261. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/index.js +1 -0
  262. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/integrations.d.ts +3 -0
  263. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/integrations.js +88 -0
  264. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/links-and-images.d.ts +3 -0
  265. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/links-and-images.js +68 -0
  266. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/tasks.d.ts +3 -0
  267. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/tasks.js +1 -0
  268. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.d.ts +3 -0
  269. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.js +1 -0
  270. package/dist/application-spec/generate-application/code/templates/skills/guide.d.ts +68 -0
  271. package/dist/application-spec/generate-application/code/templates/skills/guide.js +18 -0
  272. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.d.ts +10 -0
  273. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +14 -0
  274. package/dist/application-spec/generate-application/code/templates/skills/phx-members-without-guide.d.ts +9 -0
  275. package/dist/application-spec/generate-application/code/templates/skills/phx-members-without-guide.js +1 -0
  276. package/dist/application-spec/generate-application/code/templates/skills/processes/asset-conversion.d.ts +2 -0
  277. package/dist/application-spec/generate-application/code/templates/skills/processes/asset-conversion.js +23 -0
  278. package/dist/application-spec/generate-application/code/templates/skills/processes/beta.d.ts +14 -0
  279. package/dist/application-spec/generate-application/code/templates/skills/processes/beta.js +4 -0
  280. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/evaluate.d.ts +2 -0
  281. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/evaluate.js +38 -0
  282. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/feedback.d.ts +3 -0
  283. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/feedback.js +1 -0
  284. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/index.d.ts +1 -0
  285. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/index.js +1 -0
  286. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/report.d.ts +2 -0
  287. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/report.js +35 -0
  288. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/send.d.ts +2 -0
  289. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/send.js +2 -0
  290. package/dist/application-spec/generate-application/code/templates/skills/processes/finalization.d.ts +2 -0
  291. package/dist/application-spec/generate-application/code/templates/skills/processes/finalization.js +2 -0
  292. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/build.d.ts +2 -0
  293. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/build.js +25 -0
  294. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/direction.d.ts +2 -0
  295. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/direction.js +35 -0
  296. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/first-draft.d.ts +3 -0
  297. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/first-draft.js +3 -0
  298. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/handoff.d.ts +2 -0
  299. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/handoff.js +9 -0
  300. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/index.d.ts +1 -0
  301. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/index.js +1 -0
  302. package/dist/application-spec/generate-application/code/templates/skills/processes/index.d.ts +8 -0
  303. package/dist/application-spec/generate-application/code/templates/skills/processes/index.js +1 -0
  304. package/dist/application-spec/generate-application/code/templates/skills/processes/model-migration.d.ts +2 -0
  305. package/dist/application-spec/generate-application/code/templates/skills/processes/model-migration.js +1 -0
  306. package/dist/application-spec/generate-application/code/templates/skills/processes/review/appearance.d.ts +2 -0
  307. package/dist/application-spec/generate-application/code/templates/skills/processes/review/appearance.js +46 -0
  308. package/dist/application-spec/generate-application/code/templates/skills/processes/review/code.d.ts +2 -0
  309. package/dist/application-spec/generate-application/code/templates/skills/processes/review/code.js +2 -0
  310. package/dist/application-spec/generate-application/code/templates/skills/processes/review/hand-over.d.ts +2 -0
  311. package/dist/application-spec/generate-application/code/templates/skills/processes/review/hand-over.js +6 -0
  312. package/dist/application-spec/generate-application/code/templates/skills/processes/review/index.d.ts +1 -0
  313. package/dist/application-spec/generate-application/code/templates/skills/processes/review/index.js +1 -0
  314. package/dist/application-spec/generate-application/code/templates/skills/processes/review/review.d.ts +3 -0
  315. package/dist/application-spec/generate-application/code/templates/skills/processes/review/review.js +1 -0
  316. package/dist/application-spec/generate-application/code/templates/skills/processes/review/visual-inspection.d.ts +2 -0
  317. package/dist/application-spec/generate-application/code/templates/skills/processes/review/visual-inspection.js +13 -0
  318. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/branding.d.ts +2 -0
  319. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/branding.js +20 -0
  320. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/catalog.d.ts +2 -0
  321. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/catalog.js +1 -0
  322. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/index.d.ts +1 -0
  323. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/index.js +1 -0
  324. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/product-definition.d.ts +2 -0
  325. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/product-definition.js +22 -0
  326. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/specification.d.ts +3 -0
  327. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/specification.js +1 -0
  328. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.d.ts +2 -0
  329. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.js +25 -0
  330. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +49 -212
  331. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +2 -45
  332. package/dist/application-spec/generate-application/code/templates/skills/sdk-subpath-imports.d.ts +9 -0
  333. package/dist/application-spec/generate-application/code/templates/skills/sdk-subpath-imports.js +1 -0
  334. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.d.ts +58 -0
  335. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.js +1 -0
  336. package/dist/application-spec/generate-application/code/templates/spec-code/index.d.ts +2 -0
  337. package/dist/application-spec/generate-application/code/templates/spec-code/index.js +1 -0
  338. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.d.ts +18 -0
  339. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.js +41 -0
  340. package/dist/application-spec/generate-application/code/templates/spec-messages/index.d.ts +1 -0
  341. package/dist/application-spec/generate-application/code/templates/spec-messages/index.js +1 -0
  342. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.d.ts +20 -0
  343. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.js +6 -0
  344. package/dist/application-spec/generate-application/code/templates/story/phx-module.d.ts +8 -2
  345. package/dist/application-spec/generate-application/code/templates/story/phx-module.js +15 -3
  346. package/dist/application-spec/generate-application/code/templates/story/wrapper.d.ts +3 -0
  347. package/dist/application-spec/generate-application/code/templates/story/wrapper.js +4 -5
  348. package/dist/application-spec/generate-application/code/templates/tsconfig.d.ts +5 -0
  349. package/dist/application-spec/generate-application/code/templates/tsconfig.js +2 -1
  350. package/dist/application-spec/generate-application/code/templates/webhook-builders.js +12 -6
  351. package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +7 -1
  352. package/dist/application-spec/generate-application/code/templates/webhook-index.js +10 -1
  353. package/dist/application-spec/generate-application/code/templates/webhooks-config.js +2 -3
  354. package/dist/application-spec/generate-application/index.d.ts +1 -4
  355. package/dist/application-spec/generate-application/index.js +1 -1
  356. package/dist/application-spec/index.d.ts +1 -0
  357. package/dist/application-spec/index.js +1 -1
  358. package/dist/application-spec/parse-application-files/categorize/categorize-files.d.ts +34 -0
  359. package/dist/application-spec/parse-application-files/categorize/categorize-files.js +1 -1
  360. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.d.ts +16 -0
  361. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.js +9 -0
  362. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.d.ts +9 -0
  363. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.js +1 -0
  364. package/dist/application-spec/parse-application-files/categorize/module-analysis.d.ts +1 -1
  365. package/dist/application-spec/parse-application-files/categorize/module-analysis.js +1 -1
  366. package/dist/application-spec/parse-application-files/merge/merged-app-metadata.d.ts +1 -0
  367. package/dist/application-spec/parse-application-files/merge/merged-app-metadata.js +1 -1
  368. package/dist/application-spec/parse-application-files/merge/merged-assistant.d.ts +13 -4
  369. package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
  370. package/dist/application-spec/parse-application-files/merge/merged-infra.d.ts +4 -11
  371. package/dist/application-spec/parse-application-files/merge/merged-transformers.d.ts +2 -4
  372. package/dist/application-spec/parse-application-files/parse-application-files.js +1 -1
  373. package/dist/application-spec/parse-application-files/raw-spec/parse-yaml-spec-file.js +1 -1
  374. package/dist/application-spec/parse-application-files/raw-spec/raw-acl.d.ts +2 -2
  375. package/dist/application-spec/parse-application-files/raw-spec/raw-acl.js +1 -1
  376. package/dist/application-spec/parse-application-files/raw-spec/raw-admin-pages.d.ts +3 -24
  377. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +72 -24
  378. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  379. package/dist/application-spec/parse-application-files/raw-spec/raw-expressions.d.ts +1 -1
  380. package/dist/application-spec/parse-application-files/raw-spec/raw-expressions.js +1 -1
  381. package/dist/application-spec/parse-application-files/raw-spec/raw-resources.d.ts +19 -64
  382. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.d.ts +1 -0
  383. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
  384. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-pages.d.ts +3 -20
  385. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-spec.js +1 -1
  386. package/dist/application-spec/parse-application-files/spec/application/admin-spec/states.d.ts +3 -5
  387. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.js +1 -1
  388. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/states.d.ts +3 -8
  389. package/dist/application-spec/parse-application-files/spec/common/index.d.ts +1 -0
  390. package/dist/application-spec/parse-application-files/spec/common/index.js +1 -1
  391. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.d.ts +3 -0
  392. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.js +1 -0
  393. package/dist/application-spec/parse-application-files/spec/common/value-type/index.d.ts +5 -0
  394. package/dist/application-spec/parse-application-files/spec/common/value-type/index.js +1 -0
  395. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.d.ts +6 -0
  396. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.js +1 -0
  397. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.d.ts +8 -0
  398. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.js +1 -0
  399. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.d.ts +10 -0
  400. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.js +1 -0
  401. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.d.ts +98 -0
  402. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.js +1 -0
  403. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.d.ts +13 -0
  404. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.js +1 -0
  405. package/dist/application-spec/parse-application-files/spec/components/bindings/index.d.ts +2 -0
  406. package/dist/application-spec/parse-application-files/spec/components/bindings/index.js +1 -1
  407. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.d.ts +24 -0
  408. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.js +1 -0
  409. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding.d.ts +3 -13
  410. package/dist/application-spec/parse-application-files/spec/components/bindings/write-binding.d.ts +4 -32
  411. package/dist/application-spec/parse-application-files/spec/components/component-filter.d.ts +3 -62
  412. package/dist/application-spec/parse-application-files/spec/components/component-filter.js +1 -1
  413. package/dist/application-spec/parse-application-files/spec/components/component-state-type.d.ts +8 -0
  414. package/dist/application-spec/parse-application-files/spec/components/component-state-type.js +1 -0
  415. package/dist/application-spec/parse-application-files/spec/components/components.d.ts +3 -4
  416. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.d.ts +13 -0
  417. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.js +1 -0
  418. package/dist/application-spec/parse-application-files/spec/components/index.d.ts +1 -2
  419. package/dist/application-spec/parse-application-files/spec/components/index.js +1 -1
  420. package/dist/application-spec/parse-application-files/spec/components/sdk-component-entry.d.ts +1 -1
  421. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.d.ts +14 -0
  422. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.js +1 -0
  423. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.d.ts +8 -3
  424. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.js +1 -1
  425. package/dist/application-spec/parse-application-files/spec/components/user-components.d.ts +9 -7
  426. package/dist/application-spec/parse-application-files/spec/components/user-components.js +1 -1
  427. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.d.ts +24 -0
  428. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.js +1 -0
  429. package/dist/application-spec/parse-application-files/spec/expressions/expression-read.d.ts +13 -0
  430. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.d.ts +9 -0
  431. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.js +1 -0
  432. package/dist/application-spec/parse-application-files/spec/expressions/expressions.d.ts +12 -30
  433. package/dist/application-spec/parse-application-files/spec/expressions/expressions.js +1 -1
  434. package/dist/application-spec/parse-application-files/spec/expressions/index.d.ts +0 -2
  435. package/dist/application-spec/parse-application-files/spec/expressions/index.js +1 -1
  436. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.d.ts +4 -71
  437. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.js +1 -1
  438. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.d.ts +5 -3
  439. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
  440. package/dist/application-spec/parse-application-files/spec/invariants/invariant.d.ts +5 -21
  441. package/dist/application-spec/parse-application-files/spec/invariants/invariants.d.ts +6 -16
  442. package/dist/application-spec/parse-application-files/spec/invariants/invariants.js +1 -1
  443. package/dist/application-spec/parse-application-files/spec/model/aliases.d.ts +3 -9
  444. package/dist/application-spec/parse-application-files/spec/model/common-types.d.ts +6 -14
  445. package/dist/application-spec/parse-application-files/spec/model/defaults.d.ts +6 -26
  446. package/dist/application-spec/parse-application-files/spec/model/defaults.js +1 -1
  447. package/dist/application-spec/parse-application-files/spec/model/entity-types.d.ts +3 -8
  448. package/dist/application-spec/parse-application-files/spec/model/index.d.ts +1 -0
  449. package/dist/application-spec/parse-application-files/spec/model/index.js +1 -1
  450. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.d.ts +10 -0
  451. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.js +1 -0
  452. package/dist/application-spec/parse-application-files/spec/model/model-version-key.d.ts +3 -3
  453. package/dist/application-spec/parse-application-files/spec/model/names/action-name.d.ts +3 -7
  454. package/dist/application-spec/parse-application-files/spec/model/names/alias-name.d.ts +3 -7
  455. package/dist/application-spec/parse-application-files/spec/model/names/entity-or-alias-name.d.ts +3 -8
  456. package/dist/application-spec/parse-application-files/spec/model/names/entity-type-name.d.ts +3 -8
  457. package/dist/application-spec/parse-application-files/spec/model/names/expression-name.d.ts +3 -6
  458. package/dist/application-spec/parse-application-files/spec/model/names/instance-name.d.ts +3 -7
  459. package/dist/application-spec/parse-application-files/spec/model/names/invariant-name.d.ts +3 -3
  460. package/dist/application-spec/parse-application-files/spec/model/names/shape-property-name.d.ts +3 -11
  461. package/dist/application-spec/parse-application-files/spec/model/names/violation-type-name.d.ts +3 -3
  462. package/dist/application-spec/parse-application-files/spec/model/presets.d.ts +6 -29
  463. package/dist/application-spec/parse-application-files/spec/model/session-data-schema.js +1 -1
  464. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.d.ts +25 -0
  465. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.js +1 -0
  466. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.d.ts +46 -0
  467. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.js +1 -0
  468. package/dist/application-spec/parse-application-files/spec/relations/relations.d.ts +4 -3
  469. package/dist/application-spec/parse-application-files/spec/relations/relations.js +1 -1
  470. package/dist/application-spec/parse-application-files/spec/sections/actions.d.ts +6 -23
  471. package/dist/application-spec/parse-application-files/spec/sections/app-metadata.d.ts +3 -18
  472. package/dist/application-spec/parse-application-files/spec/sections/app-metadata.js +1 -1
  473. package/dist/application-spec/parse-application-files/spec/sections/application-version.d.ts +3 -7
  474. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-field-type.d.ts +3 -8
  475. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-field-type.js +1 -1
  476. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +9 -0
  477. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -0
  478. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +13 -44
  479. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  480. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.d.ts +2 -2
  481. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant.d.ts +5 -21
  482. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant.js +1 -1
  483. package/dist/application-spec/parse-application-files/spec/sections/data-spec/chunks.d.ts +6 -23
  484. package/dist/application-spec/parse-application-files/spec/sections/data-spec/custom-data-spec.d.ts +1 -16
  485. package/dist/application-spec/parse-application-files/spec/sections/data-spec/data-entry-key.d.ts +3 -9
  486. package/dist/application-spec/parse-application-files/spec/sections/data-spec/data-spec.d.ts +1 -10
  487. package/dist/application-spec/parse-application-files/spec/sections/data-spec/swatch-data-spec.d.ts +1 -14
  488. package/dist/application-spec/parse-application-files/spec/sections/infra.d.ts +2 -0
  489. package/dist/application-spec/parse-application-files/spec/sections/infra.js +1 -1
  490. package/dist/application-spec/parse-application-files/spec/sections/state-value.d.ts +3 -7
  491. package/dist/application-spec/parse-application-files/spec/sections/theme.d.ts +3 -10
  492. package/dist/application-spec/parse-application-files/spec/sections/transformers.d.ts +4 -11
  493. package/dist/application-spec/parse-application-files/spec/sections/ui.d.ts +3 -12
  494. package/dist/application-spec/webhook-boundary.js +1 -1
  495. package/dist/client/authorized-client.d.ts +6 -1
  496. package/dist/client/authorized-client.js +1 -1
  497. package/dist/client/contract.d.ts +85 -0
  498. package/dist/client/contract.js +1 -1
  499. package/dist/client/index.d.ts +2 -2
  500. package/dist/client/index.js +1 -1
  501. package/dist/client/local-authorized-client.d.ts +6 -1
  502. package/dist/client/local-authorized-client.js +1 -1
  503. package/dist/client/memory-authorized-client.d.ts +7 -1
  504. package/dist/client/memory-authorized-client.js +1 -1
  505. package/dist/client/phoenix-api.d.ts +2154 -262
  506. package/dist/configurator/ConfiguratorApp.js +1 -1
  507. package/dist/configurator/agent-at-work/AgentAtWorkFallback.d.ts +7 -0
  508. package/dist/configurator/agent-at-work/AgentAtWorkFallback.js +1 -0
  509. package/dist/configurator/agent-at-work/AgentAtWorkPage.d.ts +20 -0
  510. package/dist/configurator/agent-at-work/AgentAtWorkPage.js +1 -0
  511. package/dist/configurator/agent-at-work/AgentModeBadge.d.ts +11 -0
  512. package/dist/configurator/agent-at-work/AgentModeBadge.js +1 -0
  513. package/dist/configurator/agent-at-work/StudioMark.d.ts +8 -0
  514. package/dist/configurator/agent-at-work/StudioMark.js +1 -0
  515. package/dist/configurator/agent-at-work/agent-at-work-copy.d.ts +17 -0
  516. package/dist/configurator/agent-at-work/agent-at-work-copy.js +1 -0
  517. package/dist/configurator/agent-at-work/agent-at-work-styles.d.ts +23 -0
  518. package/dist/configurator/agent-at-work/agent-at-work-styles.js +374 -0
  519. package/dist/configurator/agent-at-work/index.d.ts +3 -0
  520. package/dist/configurator/agent-at-work/index.js +1 -0
  521. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.d.ts +2 -0
  522. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.js +5 -0
  523. package/dist/configurator/app-loader-content/index.d.ts +1 -0
  524. package/dist/configurator/app-loader-content/index.js +1 -0
  525. package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
  526. package/dist/configurator/application-runtime/extensions/selectors.d.ts +3 -1
  527. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  528. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-annotation.d.ts +34 -0
  529. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-image-view.d.ts +18 -0
  530. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-speech-player.d.ts +69 -0
  531. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-speech-player.js +1 -0
  532. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +562 -14
  533. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  534. package/dist/configurator/application-runtime/extensions/systems/assistant-system/change-recorder.d.ts +85 -0
  535. package/dist/configurator/application-runtime/extensions/systems/assistant-system/change-recorder.js +1 -0
  536. package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.d.ts +68 -0
  537. package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.js +1 -0
  538. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +62 -8
  539. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  540. package/dist/configurator/application-runtime/extensions/systems/assistant-system/rasterize-image.d.ts +13 -0
  541. package/dist/configurator/application-runtime/extensions/systems/assistant-system/rasterize-image.js +1 -0
  542. package/dist/configurator/application-runtime/extensions/systems/assistant-system/speakable-reply.d.ts +7 -0
  543. package/dist/configurator/application-runtime/extensions/systems/assistant-system/speakable-reply.js +1 -0
  544. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +44 -1
  545. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.js +1 -1
  546. package/dist/configurator/application-runtime/extensions/systems/canvas-system.d.ts +8 -0
  547. package/dist/configurator/application-runtime/extensions/systems/canvas-system.js +1 -1
  548. package/dist/configurator/application-runtime/extensions/systems/drag-and-drop-system/drag-and-drop-system.d.ts +3 -3
  549. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.d.ts +8 -0
  550. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.js +1 -0
  551. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +26 -1
  552. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  553. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.d.ts +12 -0
  554. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.js +1 -0
  555. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +82 -51
  556. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  557. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +108 -9
  558. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  559. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.d.ts +11 -0
  560. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.js +1 -0
  561. package/dist/configurator/application-runtime/extensions/systems/graphql-system/side-effects.d.ts +9 -0
  562. package/dist/configurator/application-runtime/extensions/systems/graphql-system/side-effects.js +1 -0
  563. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.d.ts +40 -0
  564. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.js +1 -0
  565. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/capture-next-frame.d.ts +10 -0
  566. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/capture-next-frame.js +1 -0
  567. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +22 -5
  568. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  569. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +7 -2
  570. package/dist/configurator/application-runtime/extensions/systems/index.js +1 -1
  571. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.d.ts +15 -2
  572. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.js +1 -1
  573. package/dist/configurator/application-runtime/extensions/systems/sketching-system/sketching-system.d.ts +5 -5
  574. package/dist/configurator/common/configurator-interface.d.ts +160 -10
  575. package/dist/configurator/common/configurator-interface.js +1 -1
  576. package/dist/configurator/common/index.d.ts +3 -1
  577. package/dist/configurator/common/index.js +1 -1
  578. package/dist/configurator/common/use-reset-camera.d.ts +6 -0
  579. package/dist/configurator/common/use-reset-camera.js +1 -0
  580. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.d.ts +5 -0
  581. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.js +1 -0
  582. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.d.ts +6 -0
  583. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.js +1 -0
  584. package/dist/configurator/configuration-not-found-page/index.d.ts +2 -0
  585. package/dist/configurator/configuration-not-found-page/index.js +1 -0
  586. package/dist/configurator/configurator-context/PreviewContextProvider.js +1 -1
  587. package/dist/configurator/configurator-context/ViewportStateSync.d.ts +2 -2
  588. package/dist/configurator/configurator-context/ViewportStateSync.js +1 -1
  589. package/dist/configurator/configurator-context/configurator-hooks/index.d.ts +0 -1
  590. package/dist/configurator/configurator-context/configurator-hooks/index.js +1 -1
  591. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.d.ts +11 -1
  592. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.js +1 -1
  593. package/dist/configurator/configurator-context/index.d.ts +0 -5
  594. package/dist/configurator/configurator-context/index.js +1 -1
  595. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.d.ts +6 -0
  596. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.js +1 -0
  597. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.d.ts +7 -0
  598. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.js +1 -0
  599. package/dist/configurator/configurator-error-page/index.d.ts +2 -0
  600. package/dist/configurator/configurator-error-page/index.js +1 -0
  601. package/dist/configurator/index.d.ts +11 -1
  602. package/dist/configurator/index.js +1 -1
  603. package/dist/configurator/pages/ConfiguratorErrorPage.d.ts +0 -1
  604. package/dist/configurator/pages/ConfiguratorErrorPage.js +1 -1
  605. package/dist/configurator/pages/ConfiguratorNotFoundPage.js +1 -1
  606. package/dist/configurator/pages/DefaultConfiguratorLayout.d.ts +7 -0
  607. package/dist/configurator/pages/DefaultConfiguratorLayout.js +1 -0
  608. package/dist/configurator/pages/DefaultNotAuthenticatedPage.d.ts +8 -0
  609. package/dist/configurator/pages/DefaultNotAuthenticatedPage.js +1 -0
  610. package/dist/configurator/pages/DefaultPresetUi.d.ts +7 -0
  611. package/dist/configurator/pages/DefaultPresetUi.js +1 -0
  612. package/dist/configurator/pages/ExportingOverlay.d.ts +6 -0
  613. package/dist/configurator/pages/ExportingOverlay.js +1 -0
  614. package/dist/configurator/pages/InertRoot.d.ts +10 -0
  615. package/dist/configurator/pages/InertRoot.js +1 -0
  616. package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
  617. package/dist/configurator/pages/NewConfiguratorPage.js +1 -1
  618. package/dist/configurator/pages/PresetCreationErrorPage.d.ts +2 -2
  619. package/dist/configurator/pages/PresetCreationErrorPage.js +1 -1
  620. package/dist/configurator/pages/RootPage.js +1 -1
  621. package/dist/configurator/pages/configurator-layout-name.d.ts +2 -0
  622. package/dist/configurator/pages/configurator-layout-name.js +1 -0
  623. package/dist/configurator/pages/default-configurator-elements.d.ts +17 -0
  624. package/dist/configurator/pages/default-configurator-elements.js +1 -0
  625. package/dist/configurator/pages/default-elements/built-in-entity-element.d.ts +10 -0
  626. package/dist/configurator/pages/default-elements/built-in-entity-element.js +1 -0
  627. package/dist/configurator/pages/default-elements/built-in-layout-element.d.ts +10 -0
  628. package/dist/configurator/pages/default-elements/built-in-layout-element.js +1 -0
  629. package/dist/configurator/pages/default-elements/domain-control-elements.d.ts +6 -0
  630. package/dist/configurator/pages/default-elements/domain-control-elements.js +1 -0
  631. package/dist/configurator/pages/default-elements/index.d.ts +5 -0
  632. package/dist/configurator/pages/default-elements/index.js +1 -0
  633. package/dist/configurator/pages/default-elements/recipe-panel-elements.d.ts +3 -0
  634. package/dist/configurator/pages/default-elements/recipe-panel-elements.js +1 -0
  635. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.d.ts +3 -0
  636. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.js +1 -0
  637. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.d.ts +3 -0
  638. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.js +1 -0
  639. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.d.ts +3 -0
  640. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.js +1 -0
  641. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.d.ts +3 -0
  642. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.js +1 -0
  643. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.d.ts +3 -0
  644. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.js +1 -0
  645. package/dist/configurator/pages/default-elements/scene-controls/index.d.ts +6 -0
  646. package/dist/configurator/pages/default-elements/scene-controls/index.js +1 -0
  647. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.d.ts +6 -0
  648. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.js +1 -0
  649. package/dist/configurator/pages/default-elements/sidebar-footer-elements.d.ts +7 -0
  650. package/dist/configurator/pages/default-elements/sidebar-footer-elements.js +1 -0
  651. package/dist/configurator/pages/default-elements/toolbar-elements.d.ts +7 -0
  652. package/dist/configurator/pages/default-elements/toolbar-elements.js +1 -0
  653. package/dist/configurator/pages/error-boundaries/AgentModeErrorFallback.d.ts +8 -0
  654. package/dist/configurator/pages/error-boundaries/AgentModeErrorFallback.js +1 -0
  655. package/dist/configurator/pages/error-boundaries/BuiltInGeneralErrorFallback.d.ts +5 -0
  656. package/dist/configurator/pages/error-boundaries/BuiltInGeneralErrorFallback.js +1 -0
  657. package/dist/configurator/pages/error-boundaries/DevContextFallback.d.ts +4 -2
  658. package/dist/configurator/pages/error-boundaries/DevContextFallback.js +1 -1
  659. package/dist/configurator/pages/error-boundaries/DevLoadingFallback.d.ts +6 -4
  660. package/dist/configurator/pages/error-boundaries/DevLoadingFallback.js +1 -1
  661. package/dist/configurator/pages/error-boundaries/GeneralErrorBoundary.js +1 -1
  662. package/dist/configurator/pages/error-boundaries/LoadingErrorBoundary.js +1 -1
  663. package/dist/configurator/pages/error-boundaries/index.d.ts +1 -0
  664. package/dist/configurator/pages/error-boundaries/index.js +1 -1
  665. package/dist/configurator/pages/index.d.ts +1 -0
  666. package/dist/configurator/pages/index.js +1 -1
  667. package/dist/configurator/pages/provider-slots/ConfiguratorResponsiveProvider.d.ts +12 -0
  668. package/dist/configurator/pages/provider-slots/ConfiguratorResponsiveProvider.js +1 -0
  669. package/dist/configurator/pages/provider-slots/ContainerSlotProvider.d.ts +3 -0
  670. package/dist/configurator/pages/provider-slots/ContainerSlotProvider.js +1 -0
  671. package/dist/configurator/pages/provider-slots/LoaderSlotProvider.d.ts +3 -0
  672. package/dist/configurator/pages/provider-slots/LoaderSlotProvider.js +1 -0
  673. package/dist/configurator/pages/provider-slots/MessageHostSlotProvider.d.ts +3 -0
  674. package/dist/configurator/pages/provider-slots/MessageHostSlotProvider.js +1 -0
  675. package/dist/configurator/pages/provider-slots/SceneResourcesSlotProvider.d.ts +3 -0
  676. package/dist/configurator/pages/provider-slots/SceneResourcesSlotProvider.js +1 -0
  677. package/dist/configurator/pages/provider-slots/ThemeSlotProvider.d.ts +3 -0
  678. package/dist/configurator/pages/provider-slots/ThemeSlotProvider.js +1 -0
  679. package/dist/configurator/pages/provider-slots/configurator-provider-slot-elements.d.ts +3 -0
  680. package/dist/configurator/pages/provider-slots/configurator-provider-slot-elements.js +1 -0
  681. package/dist/configurator/pages/provider-slots/index.d.ts +6 -0
  682. package/dist/configurator/pages/provider-slots/index.js +1 -0
  683. package/dist/configurator/pages/ui-elements/BuiltInInvalidDeploymentReload.d.ts +2 -0
  684. package/dist/configurator/pages/ui-elements/BuiltInInvalidDeploymentReload.js +1 -0
  685. package/dist/configurator/pages/ui-elements/configurator-ui-elements.d.ts +3 -0
  686. package/dist/configurator/pages/ui-elements/configurator-ui-elements.js +1 -0
  687. package/dist/configurator/pages/ui-elements/index.d.ts +2 -0
  688. package/dist/configurator/pages/ui-elements/index.js +1 -0
  689. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.d.ts +4 -0
  690. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.js +1 -0
  691. package/dist/configurator/preset-screen-elements/PresetPageActionElement.d.ts +4 -0
  692. package/dist/configurator/preset-screen-elements/PresetPageActionElement.js +1 -0
  693. package/dist/configurator/preset-screen-elements/index.d.ts +2 -0
  694. package/dist/configurator/preset-screen-elements/index.js +1 -0
  695. package/dist/configurator/scene/cameras/CameraPadding.js +1 -1
  696. package/dist/configurator/scene/index.d.ts +1 -0
  697. package/dist/configurator/scene/index.js +1 -1
  698. package/dist/configurator/scene/scene-analytics/scene-analytics.d.ts +2 -2
  699. package/dist/configurator/scene/scene-controls/DeleteEntityFab.js +1 -1
  700. package/dist/configurator/scene/scene-controls/SelectionHotspot.js +1 -1
  701. package/dist/configurator/scene/scene-controls/ToolFab.d.ts +4 -0
  702. package/dist/configurator/scene/scene-controls/ToolFab.js +1 -1
  703. package/dist/configurator/scene/scene-controls/hotspot-drag-handle/HotspotDragHandle.d.ts +1 -1
  704. package/dist/configurator/scene/scene-controls/hotspot-drag-handle/HotspotDragSceneHandle.d.ts +1 -1
  705. package/dist/configurator/scene/scene-controls/use-scene-control-tooltip.d.ts +2 -1
  706. package/dist/configurator/scene/scene-entity/dimension-indicators/DimensionIndicator.d.ts +1 -1
  707. package/dist/configurator/scene/scene-entity/dimension-indicators/DimensionIndicatorInternal.d.ts +1 -1
  708. package/dist/configurator/scene/scene-entity/drag-and-drop/shared.d.ts +2 -2
  709. package/dist/configurator/scene/scene-entity/drag-and-drop/use-drag-object.d.ts +1 -1
  710. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.js +1 -1
  711. package/dist/configurator/scene/scene-entity/objects/SceneEntityObjectTextDecal.d.ts +1 -1
  712. package/dist/configurator/scene/scene-entity/scene-controls/SceneEntityHtmlHotspots.js +1 -1
  713. package/dist/configurator/toolbar-actions/index.d.ts +3 -0
  714. package/dist/configurator/toolbar-actions/index.js +1 -0
  715. package/dist/configurator/toolbar-actions/use-assistant-panel.d.ts +18 -0
  716. package/dist/configurator/toolbar-actions/use-assistant-panel.js +1 -0
  717. package/dist/configurator/toolbar-actions/use-measurements.d.ts +35 -0
  718. package/dist/configurator/toolbar-actions/use-measurements.js +1 -0
  719. package/dist/configurator/toolbar-actions/use-toolbar-actions.d.ts +100 -0
  720. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -0
  721. package/dist/configurator/toolbar-actions/use-toolbar-help.d.ts +7 -0
  722. package/dist/configurator/toolbar-actions/use-toolbar-help.js +1 -0
  723. package/dist/configurator/ui/assistant/AssistantChips.d.ts +100 -0
  724. package/dist/configurator/ui/assistant/AssistantChips.js +1 -0
  725. package/dist/configurator/ui/assistant/AssistantComposer.d.ts +108 -0
  726. package/dist/configurator/ui/assistant/AssistantComposer.js +1 -0
  727. package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +46 -0
  728. package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -0
  729. package/dist/configurator/ui/assistant/AssistantPanel.d.ts +56 -0
  730. package/dist/configurator/ui/assistant/AssistantPanel.js +1 -0
  731. package/dist/configurator/ui/assistant/AssistantThread.d.ts +86 -0
  732. package/dist/configurator/ui/assistant/AssistantThread.js +1 -0
  733. package/dist/configurator/ui/assistant/AssistantThreadItemView.d.ts +104 -0
  734. package/dist/configurator/ui/assistant/AssistantThreadItemView.js +1 -0
  735. package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +45 -0
  736. package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -0
  737. package/dist/configurator/ui/assistant/alert/index.d.ts +2 -0
  738. package/dist/configurator/ui/assistant/alert/index.js +1 -0
  739. package/dist/configurator/ui/assistant/alert/remark-alerts.d.ts +10 -0
  740. package/dist/configurator/ui/assistant/alert/remark-alerts.js +1 -0
  741. package/dist/configurator/ui/assistant/annotation/AnnotationBadge.d.ts +43 -0
  742. package/dist/configurator/ui/assistant/annotation/AnnotationBadge.js +1 -0
  743. package/dist/configurator/ui/assistant/annotation/AnnotationOverlay.d.ts +5 -0
  744. package/dist/configurator/ui/assistant/annotation/AnnotationOverlay.js +1 -0
  745. package/dist/configurator/ui/assistant/annotation/AnnotationPin.d.ts +14 -0
  746. package/dist/configurator/ui/assistant/annotation/AnnotationPin.js +1 -0
  747. package/dist/configurator/ui/assistant/annotation/AnnotationViewer.d.ts +12 -0
  748. package/dist/configurator/ui/assistant/annotation/AnnotationViewer.js +1 -0
  749. package/dist/configurator/ui/assistant/annotation/MessageAnnotations.d.ts +11 -0
  750. package/dist/configurator/ui/assistant/annotation/MessageAnnotations.js +1 -0
  751. package/dist/configurator/ui/assistant/annotation/annotation-layout.d.ts +80 -0
  752. package/dist/configurator/ui/assistant/annotation/annotation-layout.js +1 -0
  753. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.d.ts +49 -0
  754. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.js +1 -0
  755. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.d.ts +18 -0
  756. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.js +1 -0
  757. package/dist/configurator/ui/assistant/annotation/editor/annotation-drawing.d.ts +22 -0
  758. package/dist/configurator/ui/assistant/annotation/editor/annotation-drawing.js +1 -0
  759. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.d.ts +22 -0
  760. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.js +1 -0
  761. package/dist/configurator/ui/assistant/annotation/editor/flatten-annotation.d.ts +17 -0
  762. package/dist/configurator/ui/assistant/annotation/editor/flatten-annotation.js +1 -0
  763. package/dist/configurator/ui/assistant/annotation/editor/index.d.ts +2 -0
  764. package/dist/configurator/ui/assistant/annotation/editor/index.js +1 -0
  765. package/dist/configurator/ui/assistant/annotation/index.d.ts +6 -0
  766. package/dist/configurator/ui/assistant/annotation/index.js +1 -0
  767. package/dist/configurator/ui/assistant/annotation/prefers-reduced-motion.d.ts +2 -0
  768. package/dist/configurator/ui/assistant/annotation/prefers-reduced-motion.js +1 -0
  769. package/dist/configurator/ui/assistant/annotation/use-end-on-unmount.d.ts +6 -0
  770. package/dist/configurator/ui/assistant/annotation/use-end-on-unmount.js +1 -0
  771. package/dist/configurator/ui/assistant/assistant-failure.d.ts +31 -0
  772. package/dist/configurator/ui/assistant/assistant-failure.js +1 -0
  773. package/dist/configurator/ui/assistant/attachments/MessageImages.d.ts +63 -0
  774. package/dist/configurator/ui/assistant/attachments/MessageImages.js +1 -0
  775. package/dist/configurator/ui/assistant/attachments/index.d.ts +2 -0
  776. package/dist/configurator/ui/assistant/attachments/index.js +1 -0
  777. package/dist/configurator/ui/assistant/attachments/prepare-image.d.ts +24 -0
  778. package/dist/configurator/ui/assistant/attachments/prepare-image.js +1 -0
  779. package/dist/configurator/ui/assistant/composer/composer-frame.d.ts +20 -0
  780. package/dist/configurator/ui/assistant/composer/composer-frame.js +1 -0
  781. package/dist/configurator/ui/assistant/composer/index.d.ts +1 -0
  782. package/dist/configurator/ui/assistant/composer/index.js +1 -0
  783. package/dist/configurator/ui/assistant/drawing/AssistantDrawing.d.ts +58 -0
  784. package/dist/configurator/ui/assistant/drawing/AssistantDrawing.js +1 -0
  785. package/dist/configurator/ui/assistant/drawing/index.d.ts +2 -0
  786. package/dist/configurator/ui/assistant/drawing/index.js +1 -0
  787. package/dist/configurator/ui/assistant/drawing/parse-drawing.d.ts +18 -0
  788. package/dist/configurator/ui/assistant/drawing/parse-drawing.js +1 -0
  789. package/dist/configurator/ui/assistant/drawing/use-drawing-url.d.ts +14 -0
  790. package/dist/configurator/ui/assistant/drawing/use-drawing-url.js +1 -0
  791. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.d.ts +47 -0
  792. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.js +1 -0
  793. package/dist/configurator/ui/assistant/entity-link/entity-link-selection.d.ts +22 -0
  794. package/dist/configurator/ui/assistant/entity-link/entity-link-selection.js +1 -0
  795. package/dist/configurator/ui/assistant/entity-link/entity-link-state.d.ts +27 -0
  796. package/dist/configurator/ui/assistant/entity-link/entity-link-state.js +1 -0
  797. package/dist/configurator/ui/assistant/entity-link/index.d.ts +2 -0
  798. package/dist/configurator/ui/assistant/entity-link/index.js +1 -0
  799. package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +76 -0
  800. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -0
  801. package/dist/configurator/ui/assistant/form/built-in-form-slots.d.ts +16 -0
  802. package/dist/configurator/ui/assistant/form/built-in-form-slots.js +1 -0
  803. package/dist/configurator/ui/assistant/form/compose-answer.d.ts +11 -0
  804. package/dist/configurator/ui/assistant/form/compose-answer.js +1 -0
  805. package/dist/configurator/ui/assistant/form/describe-build-errors.d.ts +6 -0
  806. package/dist/configurator/ui/assistant/form/describe-build-errors.js +1 -0
  807. package/dist/configurator/ui/assistant/form/form-model.d.ts +37 -0
  808. package/dist/configurator/ui/assistant/form/form-state.d.ts +4 -0
  809. package/dist/configurator/ui/assistant/form/index.d.ts +5 -0
  810. package/dist/configurator/ui/assistant/form/index.js +1 -0
  811. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +10 -0
  812. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -0
  813. package/dist/configurator/ui/assistant/form/read-form-attributes.d.ts +13 -0
  814. package/dist/configurator/ui/assistant/form/read-form-attributes.js +1 -0
  815. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +29 -0
  816. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -0
  817. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +31 -0
  818. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.js +1 -0
  819. package/dist/configurator/ui/assistant/form/registry/form-element-definition.d.ts +16 -0
  820. package/dist/configurator/ui/assistant/form/registry/form-element-definition.js +1 -0
  821. package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +31 -0
  822. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -0
  823. package/dist/configurator/ui/assistant/form/registry/index.d.ts +6 -0
  824. package/dist/configurator/ui/assistant/form/registry/index.js +1 -0
  825. package/dist/configurator/ui/assistant/form/registry/use-form-registry.d.ts +8 -0
  826. package/dist/configurator/ui/assistant/form/registry/use-form-registry.js +1 -0
  827. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +68 -0
  828. package/dist/configurator/ui/assistant/form-elements/FormCard.js +1 -0
  829. package/dist/configurator/ui/assistant/form-elements/FormConfirm.d.ts +60 -0
  830. package/dist/configurator/ui/assistant/form-elements/FormConfirm.js +1 -0
  831. package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +53 -0
  832. package/dist/configurator/ui/assistant/form-elements/FormGroup.js +1 -0
  833. package/dist/configurator/ui/assistant/form-elements/FormNumber.d.ts +52 -0
  834. package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -0
  835. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +57 -0
  836. package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -0
  837. package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +49 -0
  838. package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -0
  839. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +61 -0
  840. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +1 -0
  841. package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +53 -0
  842. package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -0
  843. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.d.ts +10 -0
  844. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.js +1 -0
  845. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +38 -0
  846. package/dist/configurator/ui/assistant/form-elements/index.d.ts +9 -0
  847. package/dist/configurator/ui/assistant/form-elements/index.js +1 -0
  848. package/dist/configurator/ui/assistant/image-view/ImageView.d.ts +66 -0
  849. package/dist/configurator/ui/assistant/image-view/ImageView.js +1 -0
  850. package/dist/configurator/ui/assistant/image-view/index.d.ts +1 -0
  851. package/dist/configurator/ui/assistant/image-view/index.js +1 -0
  852. package/dist/configurator/ui/assistant/image-view/use-image-blob.d.ts +7 -0
  853. package/dist/configurator/ui/assistant/image-view/use-image-blob.js +1 -0
  854. package/dist/configurator/ui/assistant/index.d.ts +26 -0
  855. package/dist/configurator/ui/assistant/index.js +1 -0
  856. package/dist/configurator/ui/assistant/panel/AssistantPanelHeader.d.ts +57 -0
  857. package/dist/configurator/ui/assistant/panel/AssistantPanelHeader.js +1 -0
  858. package/dist/configurator/ui/assistant/panel/index.d.ts +1 -0
  859. package/dist/configurator/ui/assistant/panel/index.js +1 -0
  860. package/dist/configurator/ui/assistant/popover/AssistantPopover.d.ts +24 -0
  861. package/dist/configurator/ui/assistant/popover/AssistantPopover.js +1 -0
  862. package/dist/configurator/ui/assistant/popover/index.d.ts +1 -0
  863. package/dist/configurator/ui/assistant/popover/index.js +1 -0
  864. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.d.ts +58 -0
  865. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -0
  866. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.d.ts +34 -0
  867. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.js +1 -0
  868. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +25 -0
  869. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -0
  870. package/dist/configurator/ui/assistant/reference-link/index.d.ts +3 -0
  871. package/dist/configurator/ui/assistant/reference-link/index.js +1 -0
  872. package/dist/configurator/ui/assistant/reference-link/reference-styles.d.ts +12 -0
  873. package/dist/configurator/ui/assistant/reference-link/reference-styles.js +1 -0
  874. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.d.ts +8 -0
  875. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.js +1 -0
  876. package/dist/configurator/ui/assistant/resource-image/AssistantImage.d.ts +56 -0
  877. package/dist/configurator/ui/assistant/resource-image/AssistantImage.js +1 -0
  878. package/dist/configurator/ui/assistant/resource-image/index.d.ts +3 -0
  879. package/dist/configurator/ui/assistant/resource-image/index.js +1 -0
  880. package/dist/configurator/ui/assistant/resource-image/resource-path.d.ts +2 -0
  881. package/dist/configurator/ui/assistant/resource-image/resource-path.js +1 -0
  882. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.d.ts +5 -0
  883. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.js +1 -0
  884. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +43 -0
  885. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -0
  886. package/dist/configurator/ui/assistant/screenshots/index.d.ts +3 -0
  887. package/dist/configurator/ui/assistant/screenshots/index.js +1 -0
  888. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +16 -0
  889. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -0
  890. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +8 -0
  891. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -0
  892. package/dist/configurator/ui/assistant/streamed-markdown.d.ts +19 -0
  893. package/dist/configurator/ui/assistant/streamed-markdown.js +2 -0
  894. package/dist/configurator/ui/assistant/thread-items.d.ts +74 -0
  895. package/dist/configurator/ui/assistant/thread-items.js +1 -0
  896. package/dist/configurator/ui/assistant/tool-chip.d.ts +54 -0
  897. package/dist/configurator/ui/assistant/tool-chip.js +1 -0
  898. package/dist/configurator/ui/assistant/use-assistant-composer.d.ts +88 -0
  899. package/dist/configurator/ui/assistant/use-assistant-composer.js +2 -0
  900. package/dist/configurator/ui/assistant/use-assistant-thread.d.ts +52 -0
  901. package/dist/configurator/ui/assistant/use-assistant-thread.js +1 -0
  902. package/dist/configurator/ui/assistant/use-follow-stream.d.ts +17 -0
  903. package/dist/configurator/ui/assistant/use-follow-stream.js +1 -0
  904. package/dist/configurator/ui/assistant/use-is-assistant-panel-open.d.ts +5 -0
  905. package/dist/configurator/ui/assistant/use-is-assistant-panel-open.js +1 -0
  906. package/dist/configurator/ui/assistant/use-load-older-on-top.d.ts +22 -0
  907. package/dist/configurator/ui/assistant/use-load-older-on-top.js +1 -0
  908. package/dist/configurator/ui/assistant/voice/RecordingBar.d.ts +21 -0
  909. package/dist/configurator/ui/assistant/voice/RecordingBar.js +1 -0
  910. package/dist/configurator/ui/assistant/voice/ReplyPlayButton.d.ts +43 -0
  911. package/dist/configurator/ui/assistant/voice/ReplyPlayButton.js +1 -0
  912. package/dist/configurator/ui/assistant/voice/index.d.ts +4 -0
  913. package/dist/configurator/ui/assistant/voice/index.js +1 -0
  914. package/dist/configurator/ui/assistant/voice/use-voice-recording.d.ts +39 -0
  915. package/dist/configurator/ui/assistant/voice/use-voice-recording.js +1 -0
  916. package/dist/configurator/ui/assistant/voice/voice-capture.d.ts +22 -0
  917. package/dist/configurator/ui/assistant/voice/voice-capture.js +1 -0
  918. package/dist/configurator/ui/configurator-layout/sidebar-keys/index.d.ts +1 -0
  919. package/dist/configurator/ui/configurator-layout/sidebar-keys/index.js +1 -0
  920. package/dist/configurator/ui/configurator-layout/sidebar-keys/sidebar-keys.d.ts +11 -0
  921. package/dist/configurator/ui/configurator-layout/sidebar-keys/sidebar-keys.js +1 -0
  922. package/dist/configurator/ui/configurator-layout/slots/canvas/GPUAccelerationDisabled.js +1 -1
  923. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  924. package/dist/configurator/ui/configurator-layout/slots/canvas/SharedCanvas.js +1 -1
  925. package/dist/configurator/ui/configurator-layout/slots/canvas/WebGLNotSupported.js +1 -1
  926. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.d.ts +101 -0
  927. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +16 -0
  928. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/index.d.ts +1 -0
  929. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/index.js +1 -0
  930. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.d.ts +1 -1
  931. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.js +1 -1
  932. package/dist/configurator/ui/configurator-layout/slots/readonly-banner/CloneToEditDialog.js +1 -1
  933. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.d.ts +4 -4
  934. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.js +1 -1
  935. package/dist/configurator/ui/configurator-layout/slots/services/Services.js +1 -1
  936. package/dist/configurator/ui/configurator-layout/slots/services/SideEffects.d.ts +3 -6
  937. package/dist/configurator/ui/configurator-layout/slots/services/SideEffects.js +1 -1
  938. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.d.ts +1 -1
  939. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.js +1 -1
  940. package/dist/configurator/ui/configurator-layout/slots/slots.d.ts +1 -0
  941. package/dist/configurator/ui/configurator-layout/slots/slots.js +1 -1
  942. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.d.ts +0 -74
  943. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.js +5 -20
  944. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  945. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.d.ts +2 -0
  946. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +3 -3
  947. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  948. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.d.ts +47 -0
  949. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -0
  950. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.d.ts +11 -26
  951. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.js +1 -1
  952. package/dist/configurator/ui/index.d.ts +1 -0
  953. package/dist/configurator/ui/index.js +1 -1
  954. package/dist/configurator/ui/legacy/chat/MobileChat.js +1 -1
  955. package/dist/configurator/ui/legacy/layout/common/CommonFinalizeButton.js +1 -1
  956. package/dist/configurator/ui/legacy/layout/common/CommonSummaryButton.js +1 -1
  957. package/dist/configurator/ui/legacy/layout/common/CommonTopNavigation.js +1 -1
  958. package/dist/configurator/ui/legacy/layout/common/ReactiveInterfaceLayout.js +1 -1
  959. package/dist/configurator/ui/legacy/layout/common/ResponsiveFinalizeButton.js +1 -1
  960. package/dist/configurator/ui/legacy/layout/common/SummaryReadLayout.js +1 -1
  961. package/dist/configurator/ui/legacy/layout/simple/SimpleOwnerLayout.js +1 -1
  962. package/dist/configurator/ui/legacy/layout/simple/SimpleSidebar.js +1 -1
  963. package/dist/configurator/ui/legacy/layout/simple/SimpleTopNavigation.js +1 -1
  964. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.d.ts +2 -2
  965. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.js +1 -1
  966. package/dist/configurator/ui/legacy/layout/steps/StepsOwnerLayout.js +1 -1
  967. package/dist/configurator/ui/legacy/layout/steps/StepsSideBar.js +1 -1
  968. package/dist/configurator/ui/legacy/layout/steps/StepsSidebarFooter.js +1 -1
  969. package/dist/configurator/ui/legacy/layout/tabs/TabsOwnerLayout.js +1 -1
  970. package/dist/configurator/ui/legacy/layout/tabs/TabsSidebar.js +1 -1
  971. package/dist/configurator/ui/legacy/mobile-controls/MobileControls.d.ts +1 -1
  972. package/dist/configurator/ui/legacy/toolbar/common/DimensionUnitSelector.js +1 -1
  973. package/dist/configurator/ui/legacy/toolbar/common/MeasurementsIndicatorsSwitch.js +1 -1
  974. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/FullscreenToolbarAction.js +1 -1
  975. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/HelpToolbarAction.js +1 -1
  976. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/MeasurementsToolbarAction.js +1 -1
  977. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/UndoRedoToolbarGroup.js +1 -1
  978. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.d.ts +0 -7
  979. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.js +2 -6
  980. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.d.ts +10 -0
  981. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -0
  982. package/dist/configurator/ui/phoenix-layout-elements/EnterFullscreenToolbarButton.js +1 -1
  983. package/dist/configurator/ui/phoenix-layout-elements/ExitFullscreenToolbarButton.js +1 -1
  984. package/dist/configurator/ui/phoenix-layout-elements/HelpToolbarButton.js +1 -1
  985. package/dist/configurator/ui/phoenix-layout-elements/LanguageMenuAction.js +1 -1
  986. package/dist/configurator/ui/phoenix-layout-elements/LanguageToolbarButton.js +1 -1
  987. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.d.ts +1 -0
  988. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.js +1 -1
  989. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.d.ts +1 -0
  990. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.js +1 -1
  991. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsMenuAction.js +1 -1
  992. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsToolbarButton.js +1 -1
  993. package/dist/configurator/ui/phoenix-layout-elements/RedoToolbarButton.js +1 -1
  994. package/dist/configurator/ui/phoenix-layout-elements/ShareToolbarButton.js +1 -1
  995. package/dist/configurator/ui/phoenix-layout-elements/UndoToolbarButton.js +1 -1
  996. package/dist/configurator/ui/phoenix-layout-elements/header/common/back-button/use-go-back-action.js +1 -1
  997. package/dist/configurator/ui/phoenix-layout-elements/header/common/horizontal-tabs/DesktopHorizontalTabs.js +1 -1
  998. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.d.ts +1 -1
  999. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.js +1 -1
  1000. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.d.ts +2 -8
  1001. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.js +1 -1
  1002. package/dist/configurator/ui/phoenix-layout-elements/index.d.ts +9 -1
  1003. package/dist/configurator/ui/phoenix-layout-elements/index.js +1 -1
  1004. package/dist/configurator/ui/phoenix-layout-elements/measurements/DimensionUnitSelector.js +1 -1
  1005. package/dist/configurator/ui/phoenix-layout-elements/measurements/MeasurementsIndicatorsSwitch.js +1 -1
  1006. package/dist/configurator/ui/phoenix-layout-elements/share/ShareModal.js +1 -1
  1007. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.d.ts +7 -8
  1008. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.js +1 -1
  1009. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/BasicFinalizeButton.js +1 -1
  1010. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/use-basic-sidebar-footer.js +1 -1
  1011. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/CustomFinalizeButton.js +1 -1
  1012. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/EnterSummaryButton.js +1 -1
  1013. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/FinalizeActions.js +1 -1
  1014. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/NextStepButton.js +1 -1
  1015. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/PreviousStepButton.js +1 -1
  1016. package/dist/configurator/ui/preset-layout/CategoryPresetUi.js +1 -1
  1017. package/dist/configurator/ui/preset-layout/PresetUi.d.ts +4 -2
  1018. package/dist/configurator/ui/preset-layout/PresetUi.js +1 -1
  1019. package/dist/configurator/ui/preset-layout/index.d.ts +6 -1
  1020. package/dist/configurator/ui/preset-layout/index.js +1 -1
  1021. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.d.ts +10 -0
  1022. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.js +1 -0
  1023. package/dist/configurator/ui/save-message-snackbars/index.d.ts +1 -0
  1024. package/dist/configurator/ui/save-message-snackbars/index.js +1 -0
  1025. package/dist/docs/3d-scene/animations-basic.mdx +0 -4
  1026. package/dist/docs/3d-scene/camera-based-hiding.mdx +0 -2
  1027. package/dist/docs/3d-scene/cameras/custom.mdx +4 -4
  1028. package/dist/docs/3d-scene/cameras/fit-during-drag.mdx +0 -4
  1029. package/dist/docs/3d-scene/cameras/locks.mdx +0 -4
  1030. package/dist/docs/3d-scene/cameras/transitions.mdx +0 -2
  1031. package/dist/docs/3d-scene/engraving.mdx +0 -4
  1032. package/dist/docs/3d-scene/materials/custom.mdx +1 -2
  1033. package/dist/docs/3d-scene/materials/inherit.mdx +0 -4
  1034. package/dist/docs/3d-scene/materials/multilevel.mdx +0 -47
  1035. package/dist/docs/3d-scene/materials/override.mdx +0 -4
  1036. package/dist/docs/3d-scene/materials/simple.mdx +0 -4
  1037. package/dist/docs/3d-scene/materials/transformer.mdx +0 -4
  1038. package/dist/docs/3d-scene/materials/transition.mdx +0 -4
  1039. package/dist/docs/3d-scene/materials/transmissive.mdx +0 -4
  1040. package/dist/docs/3d-scene/postprocessing.mdx +0 -2
  1041. package/dist/docs/3d-scene/rendering/basic.mdx +5 -9
  1042. package/dist/docs/3d-scene/rendering/custom-entity.mdx +0 -6
  1043. package/dist/docs/3d-scene/rendering/lights/ambient-light.mdx +0 -2
  1044. package/dist/docs/3d-scene/rendering/lights/directional-light.mdx +0 -2
  1045. package/dist/docs/3d-scene/rendering/lights/point-light.mdx +0 -2
  1046. package/dist/docs/3d-scene/rendering/lights/rect-area-light.mdx +0 -2
  1047. package/dist/docs/3d-scene/rendering/lights/spot-light.mdx +0 -2
  1048. package/dist/docs/3d-scene/rendering/object-groups.mdx +0 -2
  1049. package/dist/docs/3d-scene/rendering/objects.mdx +0 -4
  1050. package/dist/docs/3d-scene/rendering/scene-entity-object.mdx +0 -43
  1051. package/dist/docs/3d-scene/rendering/smma.mdx +0 -2
  1052. package/dist/docs/3d-scene/rendering/soft-shadows.mdx +0 -2
  1053. package/dist/docs/3d-scene/rendering/transformer.mdx +1 -3
  1054. package/dist/docs/complex-use-cases/custom-ui-on-root-level.mdx +0 -1
  1055. package/dist/docs/complex-use-cases/filtered-controls-with-fix-dialog.mdx +119 -136
  1056. package/dist/docs/complex-use-cases/focus-mode.mdx +2 -0
  1057. package/dist/docs/complex-use-cases/navigation-guard.mdx +81 -19
  1058. package/dist/docs/complex-use-cases/navigation-reset-selection.mdx +33 -64
  1059. package/dist/docs/complex-use-cases/navigation-reset-undo.mdx +16 -20
  1060. package/dist/docs/complex-use-cases/sketching.mdx +2 -48
  1061. package/dist/docs/controls/custom.mdx +88 -87
  1062. package/dist/docs/controls/manage-child-entities/entitychildrenlist.mdx +0 -4
  1063. package/dist/docs/controls/nullable-attributes.mdx +0 -2
  1064. package/dist/docs/controls/scene/custom-controls.mdx +7 -8
  1065. package/dist/docs/controls/scene/html-hotspots.mdx +0 -4
  1066. package/dist/docs/controls/scene/object-html-hotspots.mdx +0 -4
  1067. package/dist/docs/controls/select-attribute/cardselect.mdx +9 -17
  1068. package/dist/docs/controls/select-attribute/listselect.mdx +0 -4
  1069. package/dist/docs/controls/select-attribute/select.mdx +0 -4
  1070. package/dist/docs/controls/select-attribute/swatchselect.mdx +0 -4
  1071. package/dist/docs/controls/select-attribute/switchselect.mdx +0 -4
  1072. package/dist/docs/controls/select-attribute/toggleselect.mdx +0 -4
  1073. package/dist/docs/controls/select-child-entity/cardselect.mdx +3 -6
  1074. package/dist/docs/controls/select-child-entity/listselect.mdx +5 -11
  1075. package/dist/docs/controls/select-child-entity/toggleselect.mdx +4 -10
  1076. package/dist/docs/controls/text-input.mdx +90 -19
  1077. package/dist/docs/demos/glass.mdx +0 -4
  1078. package/dist/docs/demos/heater.mdx +0 -10
  1079. package/dist/docs/demos/office-chair.mdx +0 -8
  1080. package/dist/docs/demos/office-desk.mdx +0 -8
  1081. package/dist/docs/demos/ring.mdx +0 -9
  1082. package/dist/docs/dimensions/3d-scene-integration/angle-indicators.mdx +0 -2
  1083. package/dist/docs/dimensions/3d-scene-integration/dimension-indicators.mdx +2 -2
  1084. package/dist/docs/dimensions/3d-scene-integration/editable-angle-indicator.mdx +1 -3
  1085. package/dist/docs/dimensions/3d-scene-integration/editable-distance-dimension-indicator.mdx +1 -15
  1086. package/dist/docs/dimensions/3d-scene-integration/editable-offset-indicator.mdx +0 -6
  1087. package/dist/docs/dimensions/3d-scene-integration/editable-size-indicator.mdx +0 -4
  1088. package/dist/docs/dimensions/3d-scene-integration/list-selector-dimension-indicator.mdx +1 -17
  1089. package/dist/docs/dimensions/3d-scene-integration/offset-indicator.mdx +0 -6
  1090. package/dist/docs/dimensions/3d-scene-integration/overlap-offset-demo.mdx +0 -6
  1091. package/dist/docs/dimensions/basic-concepts/dimension-data-unit.mdx +0 -12
  1092. package/dist/docs/dimensions/basic-concepts/dimension-unit-config.mdx +0 -12
  1093. package/dist/docs/dimensions/input-controls/distance-input.mdx +0 -12
  1094. package/dist/docs/dimensions/input-controls/distance-slider.mdx +6 -18
  1095. package/dist/docs/dimensions/selection-controls/list-selector.mdx +0 -14
  1096. package/dist/docs/dimensions/selection-controls/toggle-selector.mdx +0 -14
  1097. package/dist/docs/drag-and-drop/drag-handle.mdx +1 -2
  1098. package/dist/docs/drag-and-drop/hotspot-handle.mdx +1 -2
  1099. package/dist/docs/drag-and-drop/no-selection.mdx +0 -1
  1100. package/dist/docs/drag-and-drop/planes.mdx +1 -4
  1101. package/dist/docs/drag-and-drop/room-planner.mdx +1 -7
  1102. package/dist/docs/drag-and-drop/rotatable.mdx +2 -3
  1103. package/dist/docs/drag-and-drop/snapping/auto-rotation-demo.mdx +0 -2
  1104. package/dist/docs/drag-and-drop/snapping/label-matching-demo.mdx +0 -2
  1105. package/dist/docs/drag-and-drop/snapping/multi-snap-composition-demo.mdx +0 -2
  1106. package/dist/docs/drag-and-drop/snapping/nested-entity-demo.mdx +0 -2
  1107. package/dist/docs/drag-and-drop/snapping/priority-demo.mdx +0 -2
  1108. package/dist/docs/drag-and-drop/snapping/snap-axis-demo.mdx +0 -2
  1109. package/dist/docs/drag-and-drop/snapping/snap-edge-demo.mdx +0 -2
  1110. package/dist/docs/drag-and-drop/snapping/snap-plane-demo.mdx +0 -5
  1111. package/dist/docs/drag-and-drop/snapping/snap-point-demo.mdx +0 -2
  1112. package/dist/docs/drag-and-drop/spatial-constraints/collision-system.mdx +0 -2
  1113. package/dist/docs/drag-and-drop/spatial-constraints/disjoint-and-within.mdx +0 -6
  1114. package/dist/docs/drag-and-drop/spatial-constraints/geometry-override.mdx +0 -4
  1115. package/dist/docs/drag-and-drop/spatial-constraints/multiple-collision-meshes.mdx +0 -4
  1116. package/dist/docs/drag-and-drop/spatial-constraints/touches.mdx +0 -4
  1117. package/dist/docs/drag-and-drop/swap.mdx +0 -4
  1118. package/dist/docs/fabs/basic.mdx +12 -14
  1119. package/dist/docs/fabs/layout.mdx +0 -7
  1120. package/dist/docs/index.json +141 -6
  1121. package/dist/docs/integrations/lifecycle-providers.mdx +0 -12
  1122. package/dist/docs/integrations/onloadprovider.mdx +0 -3
  1123. package/dist/docs/integrations/webcomponent-api/basics.mdx +8 -2
  1124. package/dist/docs/integrations/webcomponent-api/preset-tags.mdx +4 -1
  1125. package/dist/docs/integrations/woocommerce/local-development.mdx +1 -1
  1126. package/dist/docs/integrations/woocommerce/overview.mdx +4 -2
  1127. package/dist/docs/layouts/custom-layout.mdx +2557 -0
  1128. package/dist/docs/layouts/custom-price.mdx +14 -18
  1129. package/dist/docs/layouts/custom-theme-handler.mdx +0 -4
  1130. package/dist/docs/layouts/gallery/ardent-compressor.mdx +3485 -0
  1131. package/dist/docs/layouts/gallery/corvid-drone.mdx +3399 -0
  1132. package/dist/docs/layouts/gallery/fenwick-window.mdx +2778 -0
  1133. package/dist/docs/layouts/gallery/ferrule-bar-station.mdx +6540 -0
  1134. package/dist/docs/layouts/gallery/kestrel-kettle.mdx +1829 -0
  1135. package/dist/docs/layouts/gallery/nightjar-guitar.mdx +3665 -0
  1136. package/dist/docs/layouts/gallery/sunfold-solar.mdx +2657 -0
  1137. package/dist/docs/layouts/gallery/tidepool-aquascape.mdx +5157 -0
  1138. package/dist/docs/layouts/header/custom.mdx +0 -2
  1139. package/dist/docs/layouts/header/fixed.mdx +2 -2
  1140. package/dist/docs/layouts/header/floating.mdx +2 -2
  1141. package/dist/docs/layouts/icon-sets.mdx +0 -6
  1142. package/dist/docs/layouts/phoenix-elements.mdx +0 -4
  1143. package/dist/docs/layouts/phoenix-handlers.mdx +19 -28
  1144. package/dist/docs/layouts/presets/action-and-overlay.mdx +0 -8
  1145. package/dist/docs/layouts/presets/custom.mdx +6 -13
  1146. package/dist/docs/layouts/preview/always-expand.mdx +4 -14
  1147. package/dist/docs/layouts/preview/always.mdx +4 -14
  1148. package/dist/docs/layouts/preview/auto-presets.mdx +4 -14
  1149. package/dist/docs/layouts/preview/auto.mdx +4 -14
  1150. package/dist/docs/layouts/preview/never.mdx +4 -14
  1151. package/dist/docs/layouts/sidebar/in-a-custom-layout.mdx +385 -0
  1152. package/dist/docs/layouts/sidebar/property-page-stack.mdx +0 -2
  1153. package/dist/docs/layouts/sidebar/property-page.mdx +0 -2
  1154. package/dist/docs/layouts/sidebar/tabs.mdx +24 -25
  1155. package/dist/docs/layouts/sidebar-footer/basic.mdx +32 -77
  1156. package/dist/docs/layouts/sidebar-footer/custom.mdx +0 -2
  1157. package/dist/docs/layouts/sidebar-footer/universal.mdx +0 -10
  1158. package/dist/docs/layouts/tool-controls.mdx +0 -1
  1159. package/dist/docs/layouts/toolbar.mdx +6 -4
  1160. package/dist/docs/layouts/universal.mdx +2 -22
  1161. package/dist/docs/other-features/client-side-rendering/camera-padding.mdx +0 -2
  1162. package/dist/docs/other-features/client-side-rendering/custom.mdx +0 -6
  1163. package/dist/docs/other-features/client-side-rendering/declarative.mdx +2 -6
  1164. package/dist/docs/other-features/client-side-rendering/postprocessing.mdx +0 -6
  1165. package/dist/docs/other-features/component-filters.mdx +0 -7
  1166. package/dist/docs/other-features/currency.mdx +5 -6
  1167. package/dist/docs/other-features/domain-actions.mdx +34 -8
  1168. package/dist/docs/other-features/dynamic-component-attachments.mdx +75 -46
  1169. package/dist/docs/other-features/error-5xx.mdx +1 -15
  1170. package/dist/docs/other-features/navigation-hotspot.mdx +2 -5
  1171. package/dist/docs/other-features/not-found-404.mdx +1 -15
  1172. package/dist/docs/other-features/projected-entities.mdx +0 -5
  1173. package/dist/docs/other-features/side-effects.mdx +76 -68
  1174. package/dist/docs/other-features/transformers.mdx +105 -96
  1175. package/dist/docs/other-features/violation-messages.mdx +52 -60
  1176. package/dist/docs/other-features/violation-severity.mdx +2 -3
  1177. package/dist/docs/performance/clone-highlight.mdx +0 -7
  1178. package/dist/docs/performance/dynamic-components.mdx +0 -6
  1179. package/dist/docs/performance/editable-dimension-stress-test.mdx +0 -2
  1180. package/dist/docs/performance/fast-highlight.mdx +0 -7
  1181. package/dist/docs/performance/general.mdx +0 -7
  1182. package/dist/docs/performance/render-isolation.mdx +0 -6
  1183. package/dist/docs/phoenix/admin.mdx +111 -155
  1184. package/dist/docs/phoenix/application-states.mdx +54 -34
  1185. package/dist/docs/phoenix/blender-rendering.mdx +3 -1
  1186. package/dist/docs/phoenix/clerk-sign-in.mdx +1 -1
  1187. package/dist/docs/phoenix/components.mdx +59 -46
  1188. package/dist/docs/phoenix/configurator-interface.mdx +642 -165
  1189. package/dist/docs/phoenix/data-sources.mdx +61 -37
  1190. package/dist/docs/phoenix/deployments.mdx +14 -8
  1191. package/dist/docs/phoenix/domain-model.mdx +30 -16
  1192. package/dist/docs/phoenix/expression-context.mdx +14 -32
  1193. package/dist/docs/phoenix/finalization.mdx +3 -2
  1194. package/dist/docs/phoenix/getting-started.mdx +7 -6
  1195. package/dist/docs/phoenix/integration/authentication-internal.mdx +2 -2
  1196. package/dist/docs/phoenix/integration/finalization-internal.mdx +1 -1
  1197. package/dist/docs/phoenix/layout-slots.mdx +137 -0
  1198. package/dist/docs/phoenix/localization.mdx +74 -78
  1199. package/dist/docs/phoenix/migration-guide.mdx +34 -22
  1200. package/dist/docs/phoenix/phoenix-cli.mdx +246 -73
  1201. package/dist/docs/phoenix/project-structure.mdx +121 -73
  1202. package/dist/docs/phoenix/quickstart.mdx +10 -12
  1203. package/dist/docs/phoenix/sdk-builder-workflow.mdx +44 -33
  1204. package/dist/docs/phoenix/sessions-and-access.mdx +63 -40
  1205. package/dist/docs/phoenix/sharing.mdx +1 -1
  1206. package/dist/docs/phoenix/state-management.mdx +18 -16
  1207. package/dist/docs/phoenix/testing.mdx +153 -0
  1208. package/dist/docs/phoenix/webhook-membership.mdx +10 -9
  1209. package/dist/docs/phoenix/webhooks.mdx +446 -245
  1210. package/dist/docs/recipes-and-delete/delete-entity.mdx +3 -6
  1211. package/dist/docs/recipes-and-delete/dynamic-root-entity.mdx +0 -2
  1212. package/dist/docs/recipes-and-delete/grouped-button.mdx +0 -3
  1213. package/dist/docs/recipes-and-delete/grouped-panel.mdx +0 -3
  1214. package/dist/docs/recipes-and-delete/horizontal.mdx +3 -6
  1215. package/dist/docs/recipes-and-delete/recipe-hierarchy-lists.mdx +0 -3
  1216. package/dist/docs/recipes-and-delete/recipe-hierarchy-selection.mdx +15 -18
  1217. package/dist/docs/recipes-and-delete/replace-dropdown.mdx +3 -6
  1218. package/dist/docs/recipes-and-delete/replace-panel.mdx +0 -7
  1219. package/dist/docs/recipes-and-delete/simple.mdx +3 -6
  1220. package/dist/docs/recipes-and-delete/vertical.mdx +3 -6
  1221. package/dist/docs/relations/aliases.mdx +0 -2
  1222. package/dist/docs/relations/all-of-type.mdx +0 -4
  1223. package/dist/docs/relations/child-nullable.mdx +0 -4
  1224. package/dist/docs/relations/child-required.mdx +0 -2
  1225. package/dist/docs/relations/collection-direct.mdx +0 -4
  1226. package/dist/docs/relations/collection-indirect.mdx +0 -4
  1227. package/dist/docs/relations/collection-multiple.mdx +0 -2
  1228. package/dist/docs/relations/cross-reference.mdx +0 -2
  1229. package/dist/docs/relations/hierarchy.mdx +13 -4
  1230. package/dist/docs/selection-and-highlight/canvas.mdx +0 -1
  1231. package/dist/docs/selection-and-highlight/disable-highlight-per-object.mdx +0 -1
  1232. package/dist/docs/selection-and-highlight/disable-highlight.mdx +0 -1
  1233. package/dist/docs/selection-and-highlight/effects/outline.mdx +0 -3
  1234. package/dist/docs/selection-and-highlight/effects/overlay.mdx +0 -3
  1235. package/dist/docs/selection-and-highlight/fast-emissive-highlight.mdx +0 -3
  1236. package/dist/docs/selection-and-highlight/group-highlighting.mdx +0 -1
  1237. package/dist/docs/selection-and-highlight/hierarchy.mdx +100 -151
  1238. package/dist/docs/selection-and-highlight/hotspots.mdx +2 -1
  1239. package/dist/docs/ux-guidelines/choosing-a-control.mdx +11 -0
  1240. package/dist/domain/admin-domain/__generated/enhanced-model.d.ts +1 -2
  1241. package/dist/domain/admin-domain/__generated/model/versions/v1.d.ts +1 -1
  1242. package/dist/domain/admin-domain/__generated/model/versions/v2.d.ts +1 -1
  1243. package/dist/domain/admin-domain/__generated/model/versions/v3.d.ts +1 -1
  1244. package/dist/domain/admin-domain/__generated/model/versions/v4.d.ts +1 -1
  1245. package/dist/domain/admin-domain/__generated/model/versions/v5.d.ts +1 -1
  1246. package/dist/domain/admin-domain/__generated/model/versions/v6.d.ts +2 -2
  1247. package/dist/domain/admin-domain/__generated/model/versions/v6.js +1 -1
  1248. package/dist/domain/admin-domain/implementation/common-admin-expressions.d.ts +26 -14
  1249. package/dist/domain/admin-domain/implementation/common-admin-migrations.d.ts +1 -1
  1250. package/dist/domain/admin-domain/implementation/common-admin-publish.d.ts +1 -2
  1251. package/dist/domain/admin-domain/index.d.ts +10 -6
  1252. package/dist/domain/admin-domain/index.js +1 -1
  1253. package/dist/domain/application/GetApplicationWrapperHandler.d.ts +2 -2
  1254. package/dist/domain/application/GetThemeHandler.d.ts +1 -1
  1255. package/dist/domain/application/GetWebComponentOptions.d.ts +1 -1
  1256. package/dist/domain/application/admin-page-factories.d.ts +1 -2
  1257. package/dist/domain/application/application-config.d.ts +32 -119
  1258. package/dist/domain/application/assistant/assistant-fields.d.ts +12 -0
  1259. package/dist/domain/application/assistant/assistant-fields.js +1 -0
  1260. package/dist/domain/application/assistant/assistant-value-type.d.ts +9 -0
  1261. package/dist/domain/application/assistant/assistant-value-type.js +1 -0
  1262. package/dist/domain/application/assistant/build-assistant-lenses.d.ts +13 -0
  1263. package/dist/domain/application/assistant/build-assistant-lenses.js +5 -0
  1264. package/dist/domain/application/assistant/build-assistant-manifest.d.ts +3 -0
  1265. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -0
  1266. package/dist/domain/application/assistant/create-assistant-execution-schema.d.ts +32 -0
  1267. package/dist/domain/application/assistant/create-assistant-execution-schema.js +1 -0
  1268. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +5 -0
  1269. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -0
  1270. package/dist/domain/application/assistant/index.d.ts +6 -0
  1271. package/dist/domain/application/assistant/index.js +1 -0
  1272. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.d.ts +20 -0
  1273. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.js +1 -0
  1274. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.d.ts +10 -0
  1275. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -0
  1276. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +48 -0
  1277. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -0
  1278. package/dist/domain/application/assistant/session-setup/create-session-assistant.d.ts +14 -0
  1279. package/dist/domain/application/assistant/session-setup/create-session-assistant.js +1 -0
  1280. package/dist/domain/application/assistant/session-setup/index.d.ts +4 -0
  1281. package/dist/domain/application/assistant/session-setup/index.js +1 -0
  1282. package/dist/domain/application/assistant-field-options.d.ts +2 -3
  1283. package/dist/domain/application/assistant-mutations.d.ts +3 -5
  1284. package/dist/domain/application/assistant-mutations.js +1 -1
  1285. package/dist/domain/application/assistant-recipe-groups.d.ts +6 -8
  1286. package/dist/domain/application/configurator-builder.d.ts +70 -47
  1287. package/dist/domain/application/configurator-builder.js +1 -1
  1288. package/dist/domain/application/create-initial-published-data.d.ts +6 -6
  1289. package/dist/domain/application/index.d.ts +4 -7
  1290. package/dist/domain/application/index.js +1 -1
  1291. package/dist/domain/application/published-data/DataRowValidatorHandler.d.ts +1 -1
  1292. package/dist/domain/application/published-data/FilterPublishedChunksHandler.d.ts +1 -1
  1293. package/dist/domain/application/published-data/MapPublishedChunkedDataHandler.d.ts +1 -1
  1294. package/dist/domain/application/published-data/MapPublishedRevisionDataHandler.d.ts +1 -1
  1295. package/dist/domain/application/published-data/SheetValidatorHandler.d.ts +1 -1
  1296. package/dist/domain/application/published-data/build-legend-data.d.ts +1 -1
  1297. package/dist/domain/application/published-data/create-finalize-admin-domain.d.ts +1 -2
  1298. package/dist/domain/application/published-data/format-field-type.d.ts +1 -1
  1299. package/dist/domain/application/published-data/map-data-to-sheet.d.ts +1 -1
  1300. package/dist/domain/application/published-data/map-published-chunked-data.d.ts +3 -3
  1301. package/dist/domain/application/published-data/map-published-data.d.ts +7 -4
  1302. package/dist/domain/application/published-data/validate-sheet-data.d.ts +1 -1
  1303. package/dist/domain/application/standard-properties.js +1 -1
  1304. package/dist/domain/application/web-component-property.d.ts +3 -1
  1305. package/dist/domain/application/web-component-property.js +1 -1
  1306. package/dist/domain/available-system-components/available-system-components.d.ts +11 -0
  1307. package/dist/domain/available-system-components/available-system-components.js +1 -0
  1308. package/dist/domain/available-system-components/index.d.ts +1 -0
  1309. package/dist/domain/available-system-components/index.js +1 -0
  1310. package/dist/domain/core/action/action.d.ts +71 -0
  1311. package/dist/domain/core/action/index.d.ts +1 -0
  1312. package/dist/domain/core/action/index.js +1 -0
  1313. package/dist/domain/core/component/component-reader-types.d.ts +43 -0
  1314. package/dist/domain/core/component/component-reader-types.js +1 -0
  1315. package/dist/domain/core/component/debug-state-component.d.ts +14 -0
  1316. package/dist/domain/core/component/debug-state-component.js +1 -0
  1317. package/dist/domain/core/component/domain-component-optic.d.ts +65 -0
  1318. package/dist/domain/core/component/domain-component-optic.js +16 -0
  1319. package/dist/domain/core/component/drag-state-component.d.ts +16 -0
  1320. package/dist/domain/core/component/drag-state-component.js +1 -0
  1321. package/dist/domain/core/component/export-state-component.d.ts +15 -0
  1322. package/dist/domain/core/component/export-state-component.js +1 -0
  1323. package/dist/domain/core/component/fullscreen-state-component.d.ts +14 -0
  1324. package/dist/domain/core/component/fullscreen-state-component.js +1 -0
  1325. package/dist/domain/core/component/group-components-by-entity-id-and-name.d.ts +8 -0
  1326. package/dist/domain/core/component/group-components-by-entity-id-and-name.js +1 -0
  1327. package/dist/domain/core/component/hover-state-component.d.ts +14 -0
  1328. package/dist/domain/core/component/hover-state-component.js +1 -0
  1329. package/dist/domain/core/component/index.d.ts +18 -0
  1330. package/dist/domain/core/component/index.js +1 -0
  1331. package/dist/domain/core/component/legacy-filter.d.ts +498 -0
  1332. package/dist/domain/core/component/navigation-state-component.d.ts +15 -0
  1333. package/dist/domain/core/component/navigation-state-component.js +1 -0
  1334. package/dist/domain/core/component/selection-state-component.d.ts +14 -0
  1335. package/dist/domain/core/component/selection-state-component.js +1 -0
  1336. package/dist/domain/core/component/system-component-builder.d.ts +11 -0
  1337. package/dist/domain/core/component/system-component-builder.js +1 -0
  1338. package/dist/domain/core/component/system-component-filter.d.ts +811 -0
  1339. package/dist/domain/core/component/system-virtual-entity.js +1 -0
  1340. package/dist/domain/core/component/tool-state-component.d.ts +14 -0
  1341. package/dist/domain/core/component/tool-state-component.js +1 -0
  1342. package/dist/domain/core/component/updates.d.ts +123 -0
  1343. package/dist/domain/core/component/view-state-component.d.ts +14 -0
  1344. package/dist/domain/core/component/view-state-component.js +1 -0
  1345. package/dist/domain/core/component/viewport-state-component.d.ts +29 -0
  1346. package/dist/domain/core/component/viewport-state-component.js +1 -0
  1347. package/dist/domain/core/data-schema/data-cell-value.d.ts +4 -0
  1348. package/dist/domain/core/data-schema/data-cell-value.js +1 -0
  1349. package/dist/domain/core/data-schema/data-schema-array-field.d.ts +5 -0
  1350. package/dist/domain/core/data-schema/data-schema-array-field.js +1 -0
  1351. package/dist/domain/core/data-schema/data-schema-field-object.d.ts +4 -0
  1352. package/dist/domain/core/data-schema/data-schema-field-object.js +1 -0
  1353. package/dist/domain/core/data-schema/data-schema-field.d.ts +2 -0
  1354. package/dist/domain/core/data-schema/data-schema-field.js +1 -0
  1355. package/dist/domain/core/data-schema/data-schema-localized-field.d.ts +4 -0
  1356. package/dist/domain/core/data-schema/data-schema-localized-field.js +1 -0
  1357. package/dist/domain/core/data-schema/data-schema-primitive-field.d.ts +5 -0
  1358. package/dist/domain/core/data-schema/data-schema-primitive-field.js +1 -0
  1359. package/dist/domain/core/data-schema/data-schema.d.ts +2 -0
  1360. package/dist/domain/core/data-schema/data-schema.js +1 -0
  1361. package/dist/domain/core/data-schema/index.d.ts +7 -0
  1362. package/dist/domain/core/data-schema/index.js +1 -0
  1363. package/dist/domain/core/decoder/create-decoder.d.ts +6 -0
  1364. package/dist/domain/core/decoder/create-decoder.js +1 -0
  1365. package/dist/domain/core/decoder/decoder.d.ts +6 -0
  1366. package/dist/domain/core/decoder/decoder.js +1 -0
  1367. package/dist/domain/core/decoder/index.d.ts +2 -0
  1368. package/dist/domain/core/decoder/index.js +1 -0
  1369. package/dist/domain/core/domain-factory.d.ts +4 -5
  1370. package/dist/domain/core/domain-factory.js +1 -1
  1371. package/dist/domain/core/domain.d.ts +4 -5
  1372. package/dist/domain/core/domain.js +1 -1
  1373. package/dist/domain/core/emission/index.d.ts +8 -0
  1374. package/dist/domain/core/emission/index.js +1 -0
  1375. package/dist/domain/core/emission/reset-state-emission.d.ts +12 -0
  1376. package/dist/domain/core/emission/reset-state-emission.js +1 -0
  1377. package/dist/domain/core/emission/state-emission.d.ts +4 -0
  1378. package/dist/domain/core/emission/state-emission.js +1 -0
  1379. package/dist/domain/core/emission/state-update-emission.d.ts +14 -0
  1380. package/dist/domain/core/emission/state-update-emission.js +1 -0
  1381. package/dist/domain/core/emission/state-validation-result.d.ts +18 -0
  1382. package/dist/domain/core/emission/state-validation-result.js +1 -0
  1383. package/dist/domain/core/emission/transformation-log.d.ts +2 -0
  1384. package/dist/domain/core/emission/transformation-log.js +1 -0
  1385. package/dist/domain/core/emission/transformer-log-entry.d.ts +6 -0
  1386. package/dist/domain/core/emission/transformer-log-entry.js +1 -0
  1387. package/dist/domain/core/emission/transformer-log.d.ts +11 -0
  1388. package/dist/domain/core/emission/transformer-log.js +1 -0
  1389. package/dist/domain/core/emission/transformer-phase.d.ts +1 -0
  1390. package/dist/domain/core/emission/transformer-phase.js +1 -0
  1391. package/dist/domain/core/expression/aliased-expressions.d.ts +10 -0
  1392. package/dist/domain/core/expression/aliased-expressions.js +1 -0
  1393. package/dist/domain/core/expression/constant-expressions.d.ts +16 -0
  1394. package/dist/domain/core/expression/constant-expressions.js +1 -0
  1395. package/dist/domain/core/expression/custom-expression.d.ts +25 -0
  1396. package/dist/domain/core/expression/custom-expression.js +1 -0
  1397. package/dist/domain/core/expression/expression.d.ts +46 -0
  1398. package/dist/domain/core/expression/expression.js +1 -0
  1399. package/dist/domain/core/expression/index.d.ts +4 -0
  1400. package/dist/domain/core/expression/index.js +1 -0
  1401. package/dist/domain/core/index.d.ts +13 -17
  1402. package/dist/domain/core/index.js +1 -1
  1403. package/dist/domain/core/invariant/builtin-invariant.d.ts +5 -0
  1404. package/dist/domain/core/invariant/custom-invariants.d.ts +13 -0
  1405. package/dist/domain/core/invariant/custom-invariants.js +1 -0
  1406. package/dist/domain/core/invariant/index.d.ts +5 -0
  1407. package/dist/domain/core/invariant/index.js +1 -0
  1408. package/dist/domain/core/invariant/invariants.d.ts +10 -0
  1409. package/dist/domain/core/invariant/invariants.js +1 -0
  1410. package/dist/domain/core/invariant/violation-component.js +1 -0
  1411. package/dist/domain/core/invariant/violation.d.ts +134 -0
  1412. package/dist/domain/core/invariant/violation.js +1 -0
  1413. package/dist/domain/core/model/component.d.ts +46 -0
  1414. package/dist/domain/core/model/index.d.ts +6 -0
  1415. package/dist/domain/core/model/index.js +1 -0
  1416. package/dist/domain/core/model/model.d.ts +127 -0
  1417. package/dist/domain/core/model/reflection.d.ts +114 -0
  1418. package/dist/domain/core/model/reflection.js +1 -0
  1419. package/dist/domain/core/recipe/index.d.ts +1 -0
  1420. package/dist/domain/core/recipe/index.js +1 -0
  1421. package/dist/domain/core/recipe/recipes.d.ts +23 -0
  1422. package/dist/domain/core/recipe/recipes.js +1 -0
  1423. package/dist/domain/core/relation/all-of-type-relation.d.ts +19 -0
  1424. package/dist/domain/core/relation/all-of-type-relation.js +1 -0
  1425. package/dist/domain/core/relation/component-factories.d.ts +14 -0
  1426. package/dist/domain/core/relation/component-factories.js +1 -0
  1427. package/dist/domain/core/relation/composed-of.d.ts +12 -0
  1428. package/dist/domain/core/relation/composed-of.js +1 -0
  1429. package/dist/domain/core/relation/direct-relation.d.ts +17 -0
  1430. package/dist/domain/core/relation/index.d.ts +8 -0
  1431. package/dist/domain/core/relation/index.js +1 -0
  1432. package/dist/domain/core/relation/indirect-relation.d.ts +25 -0
  1433. package/dist/domain/core/relation/indirect-relation.js +1 -0
  1434. package/dist/domain/core/relation/reference-component.d.ts +17 -0
  1435. package/dist/domain/core/relation/reference-component.js +1 -0
  1436. package/dist/domain/core/relation/reference-field.d.ts +7 -0
  1437. package/dist/domain/core/relation/reference-field.js +1 -0
  1438. package/dist/domain/core/relation/relation-factory.d.ts +22 -0
  1439. package/dist/domain/core/relation/relation-factory.js +1 -0
  1440. package/dist/domain/core/schema/enhanced-json-schema.js +1 -0
  1441. package/dist/domain/core/schema/extended-schema-validator.js +1 -0
  1442. package/dist/domain/core/schema/index.d.ts +3 -0
  1443. package/dist/domain/core/schema/index.js +1 -0
  1444. package/dist/domain/core/schema/schema-validator.js +1 -0
  1445. package/dist/domain/core/state/id-sequence.d.ts +15 -0
  1446. package/dist/domain/core/state/id-sequence.js +1 -0
  1447. package/dist/domain/core/state/index.d.ts +3 -0
  1448. package/dist/domain/core/state/index.js +1 -0
  1449. package/dist/domain/core/state/migrations.d.ts +67 -0
  1450. package/dist/domain/core/state/migrations.js +1 -0
  1451. package/dist/domain/core/state/state.d.ts +9 -0
  1452. package/dist/domain/domain-builder/domain-builder.d.ts +46 -0
  1453. package/dist/domain/domain-builder/domain-builder.js +1 -0
  1454. package/dist/domain/domain-builder/index.d.ts +1 -0
  1455. package/dist/domain/domain-builder/index.js +1 -0
  1456. package/dist/domain/domain-context/action-system/action-system.d.ts +32 -8
  1457. package/dist/domain/domain-context/action-system/action-system.js +1 -1
  1458. package/dist/domain/domain-context/action-system/index.d.ts +1 -0
  1459. package/dist/domain/domain-context/action-system/index.js +1 -0
  1460. package/dist/domain/domain-context/analytics-system/index.d.ts +2 -0
  1461. package/dist/domain/domain-context/analytics-system/index.js +1 -0
  1462. package/dist/domain/domain-context/create-transformer.d.ts +2 -2
  1463. package/dist/domain/domain-context/dimension-system/dimension-state.js +1 -1
  1464. package/dist/domain/domain-context/dimension-system/dimension-system.d.ts +3 -4
  1465. package/dist/domain/domain-context/dimension-system/dimension-system.js +1 -1
  1466. package/dist/domain/domain-context/dimension-system/index.d.ts +1 -0
  1467. package/dist/domain/domain-context/dimension-system/index.js +1 -0
  1468. package/dist/domain/domain-context/domain-context-systems.d.ts +9 -11
  1469. package/dist/domain/domain-context/index.d.ts +8 -18
  1470. package/dist/domain/domain-context/index.js +1 -1
  1471. package/dist/domain/domain-context/navigation-system/index.d.ts +3 -0
  1472. package/dist/domain/domain-context/navigation-system/index.js +1 -0
  1473. package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +5 -8
  1474. package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
  1475. package/dist/domain/domain-context/navigation-system/navigation-updates.d.ts +1 -12
  1476. package/dist/domain/domain-context/navigation-system/navigation-updates.js +1 -1
  1477. package/dist/domain/domain-context/navigation-system/selection-transformers.d.ts +2 -2
  1478. package/dist/domain/domain-context/navigation-system/selection-transformers.js +1 -1
  1479. package/dist/domain/domain-context/recipe-system/index.d.ts +1 -0
  1480. package/dist/domain/domain-context/recipe-system/index.js +1 -0
  1481. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.d.ts +2 -4
  1482. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.js +1 -1
  1483. package/dist/domain/domain-context/relation-transformers/cascade-deletes.d.ts +3 -3
  1484. package/dist/domain/domain-context/relation-transformers/cascade-deletes.js +1 -1
  1485. package/dist/domain/domain-context/relation-transformers/cascade-ref-pruning.d.ts +3 -3
  1486. package/dist/domain/domain-context/relation-transformers/cascade-ref-pruning.js +1 -1
  1487. package/dist/domain/domain-context/relation-transformers/create-entity-refs.d.ts +3 -3
  1488. package/dist/domain/domain-context/relation-transformers/create-entity-refs.js +2 -2
  1489. package/dist/domain/domain-context/relation-transformers/index.d.ts +4 -0
  1490. package/dist/domain/domain-context/relation-transformers/index.js +1 -0
  1491. package/dist/domain/domain-context/relation-transformers/replace-refs.d.ts +3 -3
  1492. package/dist/domain/domain-context/relation-transformers/replace-refs.js +1 -1
  1493. package/dist/domain/domain-context/store-system/apply-updates.d.ts +1 -3
  1494. package/dist/domain/domain-context/store-system/apply-updates.js +1 -1
  1495. package/dist/domain/domain-context/store-system/index.d.ts +4 -0
  1496. package/dist/domain/domain-context/store-system/index.js +1 -0
  1497. package/dist/domain/domain-context/store-system/next-domain-entity-id.d.ts +1 -13
  1498. package/dist/domain/domain-context/store-system/next-domain-entity-id.js +1 -1
  1499. package/dist/domain/domain-context/store-system/reconcile-projected-entities.d.ts +1 -2
  1500. package/dist/domain/domain-context/store-system/reconcile-projected-entities.js +1 -1
  1501. package/dist/domain/domain-context/store-system/store-system.d.ts +7 -39
  1502. package/dist/domain/domain-context/store-system/store-system.js +2 -2
  1503. package/dist/domain/domain-context/store-system/system-state.d.ts +2 -4
  1504. package/dist/domain/domain-context/store-system/system-state.js +1 -1
  1505. package/dist/domain/domain-context/transformers/actions-builder.d.ts +1 -2
  1506. package/dist/domain/domain-context/transformers/actions-builder.js +1 -1
  1507. package/dist/domain/domain-context/transformers/auto-snap-transformer.d.ts +6 -10
  1508. package/dist/domain/domain-context/transformers/auto-snap-transformer.js +1 -1
  1509. package/dist/domain/domain-context/transformers/chain-builder.d.ts +3 -3
  1510. package/dist/domain/domain-context/transformers/context.d.ts +6 -9
  1511. package/dist/domain/domain-context/transformers/context.js +1 -1
  1512. package/dist/domain/domain-context/transformers/entity-builder.d.ts +1 -5
  1513. package/dist/domain/domain-context/transformers/entity-builder.js +1 -1
  1514. package/dist/domain/domain-context/transformers/index.d.ts +1 -1
  1515. package/dist/domain/domain-context/transformers/index.js +1 -1
  1516. package/dist/domain/domain-context/transformers/then-builder.d.ts +1 -2
  1517. package/dist/domain/domain-context/transformers/then-builder.js +1 -1
  1518. package/dist/domain/domain-context/transformers/when-builder.d.ts +5 -10
  1519. package/dist/domain/domain-context/transformers/when-builder.js +1 -1
  1520. package/dist/domain/domain-context/undo-system.d.ts +29 -3
  1521. package/dist/domain/domain-context/undo-system.js +1 -1
  1522. package/dist/domain/domain-runtime/access/selectors.d.ts +9 -0
  1523. package/dist/domain/domain-runtime/access/selectors.js +1 -1
  1524. package/dist/domain/domain-runtime/access/types.d.ts +2 -0
  1525. package/dist/domain/domain-runtime/access/types.js +1 -1
  1526. package/dist/domain/domain-runtime/action-factory.d.ts +11 -0
  1527. package/dist/domain/domain-runtime/application.d.ts +39 -0
  1528. package/dist/domain/domain-runtime/application.js +1 -0
  1529. package/dist/domain/domain-runtime/domain-context/action-context.d.ts +11 -0
  1530. package/dist/domain/domain-runtime/domain-context/action-context.js +1 -0
  1531. package/dist/domain/domain-runtime/domain-context/component-reader.d.ts +1 -4
  1532. package/dist/domain/domain-runtime/domain-context/component-reader.js +1 -1
  1533. package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
  1534. package/dist/domain/domain-runtime/domain-context/expression-context.d.ts +8 -0
  1535. package/dist/domain/domain-runtime/domain-context/expression-context.js +1 -0
  1536. package/dist/domain/domain-runtime/domain-context/index.d.ts +3 -0
  1537. package/dist/domain/domain-runtime/domain-context/runtime-expression-context.d.ts +18 -0
  1538. package/dist/domain/domain-runtime/domain-context/runtime-expression-context.js +1 -0
  1539. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +22 -25
  1540. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  1541. package/dist/domain/domain-runtime/domain-context/types.d.ts +4 -1
  1542. package/dist/domain/domain-runtime/domain-runtime.d.ts +120 -52
  1543. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  1544. package/dist/domain/domain-runtime/environment/actions.d.ts +1 -0
  1545. package/dist/domain/domain-runtime/environment/actions.js +1 -1
  1546. package/dist/domain/domain-runtime/environment/initialize.d.ts +1 -1
  1547. package/dist/domain/domain-runtime/environment/initialize.js +1 -1
  1548. package/dist/domain/domain-runtime/environment/selectors.d.ts +2 -0
  1549. package/dist/domain/domain-runtime/environment/selectors.js +1 -1
  1550. package/dist/domain/domain-runtime/environment/types.d.ts +7 -1
  1551. package/dist/domain/domain-runtime/index.d.ts +2 -0
  1552. package/dist/domain/domain-runtime/index.js +1 -1
  1553. package/dist/domain/domain-runtime/spec/create-violation-expressions.d.ts +24 -0
  1554. package/dist/domain/domain-runtime/spec/create-violation-expressions.js +1 -0
  1555. package/dist/domain/domain-runtime/spec/index.d.ts +5 -0
  1556. package/dist/domain/domain-runtime/spec/index.js +1 -1
  1557. package/dist/domain/domain-runtime/spec/initialize.d.ts +11 -0
  1558. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  1559. package/dist/domain/domain-runtime/spec/memoize-expression.d.ts +16 -0
  1560. package/dist/domain/domain-runtime/spec/prepare-action-implementations.d.ts +15 -0
  1561. package/dist/domain/domain-runtime/spec/prepare-action-implementations.js +5 -0
  1562. package/dist/domain/domain-runtime/spec/prepare-domain-expressions.d.ts +16 -0
  1563. package/dist/domain/domain-runtime/spec/resolve-imported-transformers.d.ts +22 -0
  1564. package/dist/domain/domain-runtime/spec/resolve-imported-transformers.js +1 -0
  1565. package/dist/domain/domain-runtime/spec/selectors.d.ts +6 -5
  1566. package/dist/domain/domain-runtime/spec/selectors.js +1 -1
  1567. package/dist/domain/domain-runtime/spec/types.d.ts +8 -6
  1568. package/dist/domain/domain-runtime/web-component/actions.d.ts +3 -0
  1569. package/dist/domain/domain-runtime/web-component/actions.js +1 -1
  1570. package/dist/domain/domain-runtime/web-component/initialize.d.ts +1 -0
  1571. package/dist/domain/domain-runtime/web-component/initialize.js +1 -1
  1572. package/dist/domain/domain-runtime/web-component/selectors.d.ts +2 -0
  1573. package/dist/domain/domain-runtime/web-component/selectors.js +1 -1
  1574. package/dist/domain/domain-runtime/web-component/types.d.ts +6 -3
  1575. package/dist/domain/extensions/angle-indicator.d.ts +21 -0
  1576. package/dist/domain/extensions/angle-indicator.js +1 -0
  1577. package/dist/domain/extensions/attribute-switch.d.ts +8 -0
  1578. package/dist/domain/extensions/attribute-switch.js +1 -0
  1579. package/dist/domain/extensions/autorotate-camera-component.d.ts +19 -0
  1580. package/dist/domain/extensions/autorotate-camera-component.js +1 -0
  1581. package/dist/domain/extensions/basic-sidebar-footer.d.ts +8 -0
  1582. package/dist/domain/extensions/basic-sidebar-footer.js +1 -0
  1583. package/dist/domain/extensions/camera-based-hidden-entity-object.js +1 -0
  1584. package/dist/domain/extensions/camera-based-hidden-entity.js +1 -0
  1585. package/dist/domain/extensions/canvas-config.d.ts +87 -0
  1586. package/dist/domain/extensions/canvas-config.js +1 -0
  1587. package/dist/domain/extensions/canvas-custom-environment.js +1 -0
  1588. package/dist/domain/extensions/canvas-padding.d.ts +25 -0
  1589. package/dist/domain/extensions/canvas-padding.js +1 -0
  1590. package/dist/domain/extensions/canvas-preset-environment.d.ts +37 -0
  1591. package/dist/domain/extensions/canvas-preset-environment.js +1 -0
  1592. package/dist/domain/extensions/child-entity-recipe-hierarchy.d.ts +21 -0
  1593. package/dist/domain/extensions/child-entity-recipe-hierarchy.js +1 -0
  1594. package/dist/domain/extensions/color-value.js +1 -0
  1595. package/dist/domain/extensions/common/angle-indicator-schema.d.ts +292 -0
  1596. package/dist/domain/extensions/common/angle-indicator-schema.js +1 -0
  1597. package/dist/domain/extensions/common/dimension-indicator-schema.d.ts +607 -0
  1598. package/dist/domain/extensions/common/dimension-indicator-schema.js +1 -0
  1599. package/dist/domain/extensions/common/index.d.ts +4 -0
  1600. package/dist/domain/extensions/common/index.js +1 -0
  1601. package/dist/domain/extensions/custom-header.d.ts +11 -0
  1602. package/dist/domain/extensions/custom-header.js +1 -0
  1603. package/dist/domain/extensions/custom-price-footer.js +1 -0
  1604. package/dist/domain/extensions/custom-sidebar-footer.d.ts +11 -0
  1605. package/dist/domain/extensions/custom-sidebar-footer.js +1 -0
  1606. package/dist/domain/extensions/dimension-indicator.d.ts +31 -0
  1607. package/dist/domain/extensions/dimension-indicator.js +1 -0
  1608. package/dist/domain/extensions/editable-angle-indicator.d.ts +39 -0
  1609. package/dist/domain/extensions/editable-angle-indicator.js +1 -0
  1610. package/dist/domain/extensions/editable-distance-dimension-indicator.d.ts +43 -0
  1611. package/dist/domain/extensions/editable-distance-dimension-indicator.js +1 -0
  1612. package/dist/domain/extensions/editable-offset-indicator.d.ts +42 -0
  1613. package/dist/domain/extensions/editable-offset-indicator.js +1 -0
  1614. package/dist/domain/extensions/editable-size-indicator.d.ts +39 -0
  1615. package/dist/domain/extensions/editable-size-indicator.js +1 -0
  1616. package/dist/domain/extensions/entity-header.d.ts +22 -0
  1617. package/dist/domain/extensions/entity-header.js +1 -0
  1618. package/dist/domain/extensions/exit-tool-mode-fab.d.ts +25 -0
  1619. package/dist/domain/extensions/exit-tool-mode-fab.js +1 -0
  1620. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +30 -0
  1621. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -0
  1622. package/dist/domain/extensions/export-images/client-side-image.d.ts +14 -0
  1623. package/dist/domain/extensions/export-images/client-side-image.js +1 -0
  1624. package/dist/domain/extensions/export-images/index.d.ts +3 -0
  1625. package/dist/domain/extensions/export-images/index.js +1 -0
  1626. package/dist/domain/extensions/export-images/save-template-thumbnail.d.ts +14 -0
  1627. package/dist/domain/extensions/export-images/save-template-thumbnail.js +1 -0
  1628. package/dist/domain/extensions/finalize-action.d.ts +20 -0
  1629. package/dist/domain/extensions/finalize-action.js +1 -0
  1630. package/dist/domain/extensions/finalize-component.js +1 -0
  1631. package/dist/domain/extensions/fit-selection-orthographic-camera-component.js +1 -0
  1632. package/dist/domain/extensions/fit-selection-perspective-camera-component.js +1 -0
  1633. package/dist/domain/extensions/fixed-header.d.ts +10 -0
  1634. package/dist/domain/extensions/fixed-header.js +1 -0
  1635. package/dist/domain/extensions/floating-header.d.ts +10 -0
  1636. package/dist/domain/extensions/floating-header.js +1 -0
  1637. package/dist/domain/extensions/hidden-header.d.ts +8 -0
  1638. package/dist/domain/extensions/hidden-header.js +1 -0
  1639. package/dist/domain/extensions/hidden-sidebar-footer.d.ts +21 -0
  1640. package/dist/domain/extensions/hidden-sidebar-footer.js +1 -0
  1641. package/dist/domain/extensions/horizontal-tabs.d.ts +28 -0
  1642. package/dist/domain/extensions/horizontal-tabs.js +1 -0
  1643. package/dist/domain/extensions/index.d.ts +68 -0
  1644. package/dist/domain/extensions/index.js +1 -0
  1645. package/dist/domain/extensions/list-selector-dimension-indicator.d.ts +31 -0
  1646. package/dist/domain/extensions/list-selector-dimension-indicator.js +1 -0
  1647. package/dist/domain/extensions/multilingual-text-value.js +1 -0
  1648. package/dist/domain/extensions/navigation-steps.d.ts +19 -0
  1649. package/dist/domain/extensions/navigation-steps.js +1 -0
  1650. package/dist/domain/extensions/offset-anchors.d.ts +20 -0
  1651. package/dist/domain/extensions/offset-anchors.js +1 -0
  1652. package/dist/domain/extensions/offset-indicator.d.ts +83 -0
  1653. package/dist/domain/extensions/offset-indicator.js +1 -0
  1654. package/dist/domain/extensions/offset.d.ts +31 -0
  1655. package/dist/domain/extensions/offset.js +1 -0
  1656. package/dist/domain/extensions/other-action.d.ts +14 -0
  1657. package/dist/domain/extensions/other-action.js +1 -0
  1658. package/dist/domain/extensions/property-page.d.ts +16 -0
  1659. package/dist/domain/extensions/property-page.js +1 -0
  1660. package/dist/domain/extensions/read-sidebar-footer.d.ts +8 -0
  1661. package/dist/domain/extensions/read-sidebar-footer.js +1 -0
  1662. package/dist/domain/extensions/replace-entity-recipe-hierarchy.d.ts +21 -0
  1663. package/dist/domain/extensions/replace-entity-recipe-hierarchy.js +1 -0
  1664. package/dist/domain/extensions/rotatable.js +1 -0
  1665. package/dist/domain/extensions/rotation-handle.d.ts +53 -0
  1666. package/dist/domain/extensions/rotation-handle.js +1 -0
  1667. package/dist/domain/extensions/scene-entity-add-fab.d.ts +32 -0
  1668. package/dist/domain/extensions/scene-entity-add-fab.js +1 -0
  1669. package/dist/domain/extensions/scene-entity-animation.js +1 -0
  1670. package/dist/domain/extensions/scene-entity-control.js +1 -0
  1671. package/dist/domain/extensions/scene-entity-delete-fab.d.ts +19 -0
  1672. package/dist/domain/extensions/scene-entity-delete-fab.js +1 -0
  1673. package/dist/domain/extensions/scene-entity-floor-object.js +1 -0
  1674. package/dist/domain/extensions/scene-entity-html-hotspot.d.ts +27 -0
  1675. package/dist/domain/extensions/scene-entity-html-hotspot.js +1 -0
  1676. package/dist/domain/extensions/scene-entity-navigation-hotspot.d.ts +20 -0
  1677. package/dist/domain/extensions/scene-entity-navigation-hotspot.js +1 -0
  1678. package/dist/domain/extensions/scene-entity-object-html-hotspot.d.ts +31 -0
  1679. package/dist/domain/extensions/scene-entity-object-html-hotspot.js +1 -0
  1680. package/dist/domain/extensions/scene-entity-select-hotspot.d.ts +5 -0
  1681. package/dist/domain/extensions/scene-entity-select-hotspot.js +1 -0
  1682. package/dist/domain/extensions/scene-entity-wall-object.js +1 -0
  1683. package/dist/domain/extensions/selectable-component.js +1 -0
  1684. package/dist/domain/extensions/sidebar-tabs.d.ts +29 -0
  1685. package/dist/domain/extensions/sidebar-tabs.js +1 -0
  1686. package/dist/domain/extensions/simple-summary.js +1 -0
  1687. package/dist/domain/extensions/size.d.ts +21 -0
  1688. package/dist/domain/extensions/size.js +1 -0
  1689. package/dist/domain/extensions/sketching-draw.d.ts +17 -0
  1690. package/dist/domain/extensions/sketching-draw.js +1 -0
  1691. package/dist/domain/extensions/sketching-edit.d.ts +28 -0
  1692. package/dist/domain/extensions/sketching-edit.js +1 -0
  1693. package/dist/domain/extensions/summary-component.js +1 -0
  1694. package/dist/domain/extensions/text-value.js +1 -0
  1695. package/dist/domain/extensions/tool-controls.js +1 -0
  1696. package/dist/domain/extensions/tool-menu-fab.d.ts +40 -0
  1697. package/dist/domain/extensions/tool-menu-fab.js +1 -0
  1698. package/dist/domain/extensions/toolbar.d.ts +13 -0
  1699. package/dist/domain/extensions/toolbar.js +1 -0
  1700. package/dist/domain/extensions/universal-sidebar-footer.d.ts +12 -0
  1701. package/dist/domain/extensions/universal-sidebar-footer.js +1 -0
  1702. package/dist/domain/extensions/view-controls.js +1 -0
  1703. package/dist/domain/index.d.ts +16 -33
  1704. package/dist/domain/index.js +1 -1
  1705. package/dist/domain/mocks/create-mock-domain-context.d.ts +1 -1
  1706. package/dist/domain/mocks/create-mock-domain-runtime-services.d.ts +1 -1
  1707. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +44 -21
  1708. package/dist/domain/mocks/create-mock-domain-runtime.js +1 -1
  1709. package/dist/domain/mocks/create-mock-domain.d.ts +1 -1
  1710. package/dist/domain/mocks/create-mock-domain.js +1 -1
  1711. package/dist/domain/mocks/create-mock-state.d.ts +2 -2
  1712. package/dist/domain/mocks/create-test-application-config.d.ts +59 -0
  1713. package/dist/domain/mocks/create-test-application-config.js +1 -0
  1714. package/dist/domain/mocks/index.d.ts +1 -0
  1715. package/dist/domain/mocks/index.js +1 -1
  1716. package/dist/domain/projections/blender-projections/blender-projections.d.ts +2 -3
  1717. package/dist/domain/projections/blender-projections/blender-projections.js +1 -1
  1718. package/dist/domain/projections/blender-projections/camera.d.ts +2 -2
  1719. package/dist/domain/projections/collision-projections.d.ts +1 -1
  1720. package/dist/domain/projections/composition-projections.d.ts +1 -1
  1721. package/dist/domain/projections/composition-projections.js +1 -1
  1722. package/dist/domain/projections/constraint-projections.d.ts +1 -1
  1723. package/dist/domain/projections/index.d.ts +1 -1
  1724. package/dist/domain/projections/position-projections.d.ts +1 -1
  1725. package/dist/domain/projections/projected-entities-projections.d.ts +2 -3
  1726. package/dist/domain/projections/snap-matching.d.ts +1 -2
  1727. package/dist/domain/projections/snap-utils.d.ts +1 -2
  1728. package/dist/domain/projections/snapping-projections.d.ts +1 -1
  1729. package/dist/domain/projections/validation-projections.d.ts +3 -20
  1730. package/dist/domain/projections/validation-projections.js +1 -1
  1731. package/dist/domain/sketching/sketching-projections.d.ts +1 -1
  1732. package/dist/domain/spec/application/admin-pages-section.d.ts +29 -0
  1733. package/dist/domain/spec/application/admin-pages-section.js +1 -0
  1734. package/dist/domain/spec/application/admin-pages.d.ts +26 -0
  1735. package/dist/domain/spec/application/admin-pages.js +1 -0
  1736. package/dist/domain/spec/application/admin-states.d.ts +5 -0
  1737. package/dist/domain/spec/application/admin-states.js +1 -0
  1738. package/dist/domain/spec/application/configurator-states.d.ts +8 -0
  1739. package/dist/domain/spec/application/configurator-states.js +1 -0
  1740. package/dist/domain/spec/application/index.d.ts +5 -0
  1741. package/dist/domain/spec/application/index.js +1 -0
  1742. package/dist/domain/spec/components/bindings/index.d.ts +2 -0
  1743. package/dist/domain/spec/components/bindings/index.js +1 -0
  1744. package/dist/domain/spec/components/bindings/read-binding.d.ts +13 -0
  1745. package/dist/domain/spec/components/bindings/read-binding.js +1 -0
  1746. package/dist/domain/spec/components/bindings/write-binding.d.ts +32 -0
  1747. package/dist/domain/spec/components/bindings/write-binding.js +1 -0
  1748. package/dist/domain/spec/components/component-entry.d.ts +90 -0
  1749. package/dist/domain/spec/components/component-entry.js +1 -0
  1750. package/dist/domain/spec/components/component-filter.d.ts +54 -0
  1751. package/dist/domain/spec/components/component-filter.js +1 -0
  1752. package/dist/domain/spec/components/component-filters.d.ts +10 -0
  1753. package/dist/domain/spec/components/component-filters.js +1 -0
  1754. package/dist/domain/spec/components/components.d.ts +4 -0
  1755. package/dist/domain/spec/components/components.js +1 -0
  1756. package/dist/domain/spec/components/index.d.ts +6 -0
  1757. package/dist/domain/spec/components/index.js +1 -0
  1758. package/dist/domain/spec/components/sdk-code-ref.d.ts +9 -0
  1759. package/dist/domain/spec/enhanced-json/enhanced-json-value.d.ts +30 -0
  1760. package/dist/domain/spec/enhanced-json/enhanced-json-value.js +1 -0
  1761. package/dist/domain/spec/enhanced-json/index.d.ts +1 -0
  1762. package/dist/domain/spec/enhanced-json/index.js +1 -0
  1763. package/dist/domain/spec/errors/implementation-error-collector.d.ts +21 -0
  1764. package/dist/domain/spec/errors/implementation-error-collector.js +1 -0
  1765. package/dist/domain/spec/errors/implementation-error.d.ts +46 -0
  1766. package/dist/domain/spec/errors/implementation-error.js +1 -0
  1767. package/dist/domain/spec/errors/implementation-errors.d.ts +13 -0
  1768. package/dist/domain/spec/errors/implementation-errors.js +1 -0
  1769. package/dist/domain/spec/errors/index.d.ts +4 -0
  1770. package/dist/domain/spec/errors/index.js +1 -0
  1771. package/dist/domain/spec/errors/to-implementation-errors.d.ts +10 -0
  1772. package/dist/domain/spec/errors/to-implementation-errors.js +1 -0
  1773. package/dist/domain/spec/expressions/expression.d.ts +49 -0
  1774. package/dist/domain/spec/expressions/expression.js +1 -0
  1775. package/dist/domain/spec/expressions/expressions.d.ts +27 -0
  1776. package/dist/domain/spec/expressions/expressions.js +1 -0
  1777. package/dist/domain/spec/expressions/index.d.ts +5 -0
  1778. package/dist/domain/spec/expressions/index.js +1 -0
  1779. package/dist/domain/spec/expressions/memo-eval-plan.d.ts +70 -0
  1780. package/dist/domain/spec/expressions/memo-eval-plan.js +1 -0
  1781. package/dist/domain/spec/expressions/relation-expression-params.d.ts +11 -0
  1782. package/dist/domain/spec/expressions/relation-expression-params.js +1 -0
  1783. package/dist/domain/spec/expressions/sdk-expression-implementation.d.ts +24 -0
  1784. package/dist/domain/spec/index.d.ts +4 -0
  1785. package/dist/domain/spec/index.js +1 -0
  1786. package/dist/domain/spec/invariants/index.d.ts +2 -0
  1787. package/dist/domain/spec/invariants/index.js +1 -0
  1788. package/dist/domain/spec/invariants/invariant.d.ts +24 -0
  1789. package/dist/domain/spec/invariants/invariant.js +1 -0
  1790. package/dist/domain/spec/invariants/invariants.d.ts +14 -0
  1791. package/dist/domain/spec/invariants/invariants.js +1 -0
  1792. package/dist/domain/spec/json-schema.d.ts +52 -0
  1793. package/dist/domain/spec/json-schema.js +1 -0
  1794. package/dist/domain/spec/markers/index.d.ts +3 -0
  1795. package/dist/domain/spec/markers/index.js +1 -0
  1796. package/dist/domain/spec/markers/msg-marker.d.ts +28 -0
  1797. package/dist/domain/spec/markers/msg-marker.js +1 -0
  1798. package/dist/domain/spec/model/aliases.d.ts +9 -0
  1799. package/dist/domain/spec/model/aliases.js +1 -0
  1800. package/dist/domain/spec/model/common-types.d.ts +15 -0
  1801. package/dist/domain/spec/model/common-types.js +1 -0
  1802. package/dist/domain/spec/model/defaults.d.ts +33 -0
  1803. package/dist/domain/spec/model/defaults.js +1 -0
  1804. package/dist/domain/spec/model/entity-types.d.ts +8 -0
  1805. package/dist/domain/spec/model/entity-types.js +1 -0
  1806. package/dist/domain/spec/model/index.d.ts +7 -0
  1807. package/dist/domain/spec/model/index.js +1 -0
  1808. package/dist/domain/spec/model/model-version-key.d.ts +3 -0
  1809. package/dist/domain/spec/model/model-version-key.js +1 -0
  1810. package/dist/domain/spec/model/names/action-name.d.ts +7 -0
  1811. package/dist/domain/spec/model/names/action-name.js +1 -0
  1812. package/dist/domain/spec/model/names/alias-name.d.ts +7 -0
  1813. package/dist/domain/spec/model/names/alias-name.js +1 -0
  1814. package/dist/domain/spec/model/names/entity-or-alias-name.d.ts +8 -0
  1815. package/dist/domain/spec/model/names/entity-or-alias-name.js +1 -0
  1816. package/dist/domain/spec/model/names/entity-type-name.d.ts +8 -0
  1817. package/dist/domain/spec/model/names/entity-type-name.js +1 -0
  1818. package/dist/domain/spec/model/names/expression-name.d.ts +6 -0
  1819. package/dist/domain/spec/model/names/expression-name.js +1 -0
  1820. package/dist/domain/spec/model/names/index.d.ts +9 -0
  1821. package/dist/domain/spec/model/names/index.js +1 -0
  1822. package/dist/domain/spec/model/names/instance-name.d.ts +7 -0
  1823. package/dist/domain/spec/model/names/instance-name.js +1 -0
  1824. package/dist/domain/spec/model/names/invariant-name.d.ts +3 -0
  1825. package/dist/domain/spec/model/names/invariant-name.js +1 -0
  1826. package/dist/domain/spec/model/names/shape-property-name.d.ts +11 -0
  1827. package/dist/domain/spec/model/names/shape-property-name.js +1 -0
  1828. package/dist/domain/spec/model/names/violation-type-name.d.ts +3 -0
  1829. package/dist/domain/spec/model/names/violation-type-name.js +1 -0
  1830. package/dist/domain/spec/model/presets.d.ts +30 -0
  1831. package/dist/domain/spec/model/presets.js +1 -0
  1832. package/dist/domain/spec/modules/element-registration.d.ts +125 -0
  1833. package/dist/domain/spec/modules/element-registration.js +1 -0
  1834. package/dist/domain/spec/modules/find-assistant-form-element-errors.d.ts +12 -0
  1835. package/dist/domain/spec/modules/find-assistant-form-element-errors.js +1 -0
  1836. package/dist/domain/spec/modules/handler-registration.d.ts +34 -0
  1837. package/dist/domain/spec/modules/handler-registration.js +1 -0
  1838. package/dist/domain/spec/modules/index.d.ts +9 -0
  1839. package/dist/domain/spec/modules/index.js +1 -0
  1840. package/dist/domain/spec/modules/merge-expression-modules.d.ts +23 -0
  1841. package/dist/domain/spec/modules/merge-expression-modules.js +1 -0
  1842. package/dist/domain/spec/modules/project-modules.d.ts +32 -0
  1843. package/dist/domain/spec/modules/project-modules.js +1 -0
  1844. package/dist/domain/spec/modules/resolve-action-modules.d.ts +4 -0
  1845. package/dist/domain/spec/modules/resolve-action-modules.js +1 -0
  1846. package/dist/domain/spec/modules/resolve-component-optic-modules.d.ts +4 -0
  1847. package/dist/domain/spec/modules/resolve-component-optic-modules.js +1 -0
  1848. package/dist/domain/spec/modules/resolve-expression-modules.d.ts +14 -0
  1849. package/dist/domain/spec/modules/resolve-expression-modules.js +1 -0
  1850. package/dist/domain/spec/modules/resolve-invariant-modules.d.ts +6 -0
  1851. package/dist/domain/spec/modules/resolve-invariant-modules.js +1 -0
  1852. package/dist/domain/spec/phx/index.d.ts +1 -0
  1853. package/dist/domain/spec/phx/index.js +1 -0
  1854. package/dist/domain/spec/phx/phx-application-types.d.ts +25 -0
  1855. package/dist/domain/spec/phx/phx-application-types.js +1 -0
  1856. package/dist/domain/spec/phx/phx-domain.d.ts +36 -0
  1857. package/dist/domain/spec/phx/phx-domain.js +1 -0
  1858. package/dist/domain/spec/phx/phx-model.d.ts +24 -0
  1859. package/dist/domain/spec/phx/phx-model.js +1 -0
  1860. package/dist/domain/spec/phx/phx.d.ts +21 -0
  1861. package/dist/domain/spec/phx/phx.js +1 -0
  1862. package/dist/domain/spec/runtime/admin-runtime/admin-runtime.d.ts +32 -0
  1863. package/dist/domain/spec/runtime/admin-runtime/admin-runtime.js +1 -0
  1864. package/dist/domain/spec/runtime/admin-runtime/admin-spec-runtime.d.ts +16 -0
  1865. package/dist/domain/spec/runtime/admin-runtime/admin-spec-runtime.js +1 -0
  1866. package/dist/domain/spec/runtime/admin-runtime/index.d.ts +2 -0
  1867. package/dist/domain/spec/runtime/admin-runtime/index.js +1 -0
  1868. package/dist/domain/spec/runtime/admin-runtime/states-runtime.d.ts +8 -0
  1869. package/dist/domain/spec/runtime/application-runtime.d.ts +62 -0
  1870. package/dist/domain/spec/runtime/application-runtime.js +1 -0
  1871. package/dist/domain/spec/runtime/application-spec-slice.d.ts +73 -0
  1872. package/dist/domain/spec/runtime/application-spec-slice.js +1 -0
  1873. package/dist/domain/spec/runtime/configurator-runtime/configurator-runtime.d.ts +37 -0
  1874. package/dist/domain/spec/runtime/configurator-runtime/configurator-runtime.js +1 -0
  1875. package/dist/domain/spec/runtime/configurator-runtime/configurator-spec-runtime.d.ts +16 -0
  1876. package/dist/domain/spec/runtime/configurator-runtime/configurator-spec-runtime.js +1 -0
  1877. package/dist/domain/spec/runtime/configurator-runtime/index.d.ts +2 -0
  1878. package/dist/domain/spec/runtime/configurator-runtime/index.js +1 -0
  1879. package/dist/domain/spec/runtime/configurator-runtime/states-runtime.d.ts +11 -0
  1880. package/dist/domain/spec/runtime/create-application.d.ts +58 -0
  1881. package/dist/domain/spec/runtime/create-application.js +1 -0
  1882. package/dist/domain/spec/runtime/expressions/expression-runtime.d.ts +57 -0
  1883. package/dist/domain/spec/runtime/expressions/expression-runtime.js +1 -0
  1884. package/dist/domain/spec/runtime/expressions/generate-memo-eval-plan-runtime.d.ts +33 -0
  1885. package/dist/domain/spec/runtime/expressions/generate-memo-eval-plan-runtime.js +1 -0
  1886. package/dist/domain/spec/runtime/expressions/index.d.ts +3 -0
  1887. package/dist/domain/spec/runtime/expressions/index.js +1 -0
  1888. package/dist/domain/spec/runtime/expressions/reflection-constants-runtime.d.ts +11 -0
  1889. package/dist/domain/spec/runtime/expressions/reflection-constants-runtime.js +1 -0
  1890. package/dist/domain/spec/runtime/factory-data/factory-data-runtime.d.ts +44 -0
  1891. package/dist/domain/spec/runtime/factory-data/factory-data-runtime.js +1 -0
  1892. package/dist/domain/spec/runtime/factory-data/index.d.ts +3 -0
  1893. package/dist/domain/spec/runtime/factory-data/index.js +1 -0
  1894. package/dist/domain/spec/runtime/factory-data/recipe-defaults.d.ts +13 -0
  1895. package/dist/domain/spec/runtime/factory-data/recipe-defaults.js +1 -0
  1896. package/dist/domain/spec/runtime/factory-data/static-violations.d.ts +16 -0
  1897. package/dist/domain/spec/runtime/factory-data/static-violations.js +1 -0
  1898. package/dist/domain/spec/runtime/generate-runtime-instance.d.ts +2 -0
  1899. package/dist/domain/spec/runtime/generate-runtime-instance.js +1 -0
  1900. package/dist/domain/spec/runtime/index.d.ts +13 -0
  1901. package/dist/domain/spec/runtime/index.js +1 -0
  1902. package/dist/domain/spec/runtime/migrations/index.d.ts +1 -0
  1903. package/dist/domain/spec/runtime/migrations/index.js +1 -0
  1904. package/dist/domain/spec/runtime/migrations/migration-runtime.d.ts +53 -0
  1905. package/dist/domain/spec/runtime/migrations/migration-runtime.js +1 -0
  1906. package/dist/domain/spec/runtime/model/admin-model-runtime.d.ts +31 -0
  1907. package/dist/domain/spec/runtime/model/admin-model-runtime.js +1 -0
  1908. package/dist/domain/spec/runtime/model/configurator-model-runtime.d.ts +33 -0
  1909. package/dist/domain/spec/runtime/model/configurator-model-runtime.js +1 -0
  1910. package/dist/domain/spec/runtime/model/index.d.ts +2 -0
  1911. package/dist/domain/spec/runtime/model/index.js +1 -0
  1912. package/dist/domain/spec/runtime/optics/build-sdk-optic.d.ts +7 -0
  1913. package/dist/domain/spec/runtime/optics/build-sdk-optic.js +1 -0
  1914. package/dist/domain/spec/runtime/optics/build-user-bound-optic.d.ts +7 -0
  1915. package/dist/domain/spec/runtime/optics/build-user-bound-optic.js +1 -0
  1916. package/dist/domain/spec/runtime/optics/built-component-optic.d.ts +11 -0
  1917. package/dist/domain/spec/runtime/optics/built-component-optic.js +1 -0
  1918. package/dist/domain/spec/runtime/optics/component-optic.d.ts +26 -0
  1919. package/dist/domain/spec/runtime/optics/component-optic.js +1 -0
  1920. package/dist/domain/spec/runtime/optics/index.d.ts +2 -0
  1921. package/dist/domain/spec/runtime/optics/index.js +1 -0
  1922. package/dist/domain/spec/runtime/runtime-reference-store.d.ts +46 -0
  1923. package/dist/domain/spec/runtime/runtime-reference-store.js +1 -0
  1924. package/dist/domain/spec/runtime/sections/actions-runtime.d.ts +14 -0
  1925. package/dist/domain/spec/runtime/sections/assistant-runtime.d.ts +10 -0
  1926. package/dist/domain/spec/runtime/sections/assistant-runtime.js +1 -0
  1927. package/dist/domain/spec/runtime/sections/data-runtime.d.ts +13 -0
  1928. package/dist/domain/spec/runtime/sections/index.d.ts +6 -0
  1929. package/dist/domain/spec/runtime/sections/index.js +1 -0
  1930. package/dist/domain/spec/runtime/sections/preset-runtime.d.ts +20 -0
  1931. package/dist/domain/spec/runtime/sections/theme-runtime.d.ts +10 -0
  1932. package/dist/domain/spec/runtime/sections/transformers-runtime.d.ts +19 -0
  1933. package/dist/domain/spec/runtime/spec-code/index.d.ts +2 -0
  1934. package/dist/domain/spec/runtime/spec-code/index.js +1 -0
  1935. package/dist/domain/spec/runtime/spec-code/resolve-spec-code.d.ts +18 -0
  1936. package/dist/domain/spec/runtime/spec-code/resolve-spec-code.js +1 -0
  1937. package/dist/domain/spec/runtime/spec-code/spec-code-module.d.ts +17 -0
  1938. package/dist/domain/spec/runtime/spec-code/spec-code-module.js +1 -0
  1939. package/dist/domain/spec/runtime/spec-runtime.d.ts +21 -0
  1940. package/dist/domain/spec/runtime/spec-runtime.js +1 -0
  1941. package/dist/domain/spec/runtime-spec/decode-runtime-spec.d.ts +9 -0
  1942. package/dist/domain/spec/runtime-spec/decode-runtime-spec.js +1 -0
  1943. package/dist/domain/spec/runtime-spec/encode-runtime-spec.d.ts +8 -0
  1944. package/dist/domain/spec/runtime-spec/encode-runtime-spec.js +1 -0
  1945. package/dist/domain/spec/runtime-spec/encoded-runtime-spec.d.ts +28 -0
  1946. package/dist/domain/spec/runtime-spec/encoded-runtime-spec.js +1 -0
  1947. package/dist/domain/spec/runtime-spec/index.d.ts +4 -0
  1948. package/dist/domain/spec/runtime-spec/index.js +1 -0
  1949. package/dist/domain/spec/runtime-spec/runtime-spec.d.ts +174 -0
  1950. package/dist/domain/spec/runtime-spec/runtime-spec.js +1 -0
  1951. package/dist/domain/spec/runtime-spec/spec-code-id.d.ts +40 -0
  1952. package/dist/domain/spec/runtime-spec/spec-code-id.js +1 -0
  1953. package/dist/domain/spec/sections/actions.d.ts +23 -0
  1954. package/dist/domain/spec/sections/actions.js +1 -0
  1955. package/dist/domain/spec/sections/app-metadata.d.ts +19 -0
  1956. package/dist/domain/spec/sections/app-metadata.js +1 -0
  1957. package/dist/domain/spec/sections/application-version.d.ts +7 -0
  1958. package/dist/domain/spec/sections/application-version.js +1 -0
  1959. package/dist/domain/spec/sections/assistant/assistant-manifest.d.ts +96 -0
  1960. package/dist/domain/spec/sections/assistant/assistant-manifest.js +1 -0
  1961. package/dist/domain/spec/sections/assistant/assistant-resolved-manifest.d.ts +135 -0
  1962. package/dist/domain/spec/sections/assistant/assistant-resolved-manifest.js +1 -0
  1963. package/dist/domain/spec/sections/assistant/form/assistant-form-element-name.d.ts +11 -0
  1964. package/dist/domain/spec/sections/assistant/form/assistant-form-element-name.js +8 -0
  1965. package/dist/domain/spec/sections/assistant/form/assistant-form-elements.d.ts +174 -0
  1966. package/dist/domain/spec/sections/assistant/form/assistant-form-elements.js +1 -0
  1967. package/dist/domain/spec/sections/assistant/form/assistant-resource-path.d.ts +10 -0
  1968. package/dist/domain/spec/sections/assistant/form/assistant-resource-path.js +1 -0
  1969. package/dist/domain/spec/sections/assistant/form/index.d.ts +4 -0
  1970. package/dist/domain/spec/sections/assistant/form/index.js +1 -0
  1971. package/dist/domain/spec/sections/assistant/index.d.ts +4 -0
  1972. package/dist/domain/spec/sections/assistant/index.js +1 -0
  1973. package/dist/domain/spec/sections/data-spec/chunks.d.ts +23 -0
  1974. package/dist/domain/spec/sections/data-spec/chunks.js +1 -0
  1975. package/dist/domain/spec/sections/data-spec/custom-data-spec-entry.d.ts +16 -0
  1976. package/dist/domain/spec/sections/data-spec/custom-data-spec-entry.js +1 -0
  1977. package/dist/domain/spec/sections/data-spec/data-entry-key.d.ts +9 -0
  1978. package/dist/domain/spec/sections/data-spec/data-entry-key.js +1 -0
  1979. package/dist/domain/spec/sections/data-spec/index.d.ts +5 -0
  1980. package/dist/domain/spec/sections/data-spec/index.js +1 -0
  1981. package/dist/domain/spec/sections/data-spec/parsed-data-spec-entries.d.ts +10 -0
  1982. package/dist/domain/spec/sections/data-spec/parsed-data-spec-entries.js +1 -0
  1983. package/dist/domain/spec/sections/data-spec/swatch-data-spec-entry.d.ts +14 -0
  1984. package/dist/domain/spec/sections/data-spec/swatch-data-spec-entry.js +1 -0
  1985. package/dist/domain/spec/sections/index.d.ts +10 -0
  1986. package/dist/domain/spec/sections/index.js +1 -0
  1987. package/dist/domain/spec/sections/infra/acl.d.ts +12 -0
  1988. package/dist/domain/spec/sections/infra/acl.js +1 -0
  1989. package/dist/domain/spec/sections/infra/index.d.ts +3 -0
  1990. package/dist/domain/spec/sections/infra/index.js +1 -0
  1991. package/dist/domain/spec/sections/infra/resource-entry.d.ts +46 -0
  1992. package/dist/domain/spec/sections/infra/resource-entry.js +1 -0
  1993. package/dist/domain/spec/sections/infra/resources-config.d.ts +10 -0
  1994. package/dist/domain/spec/sections/infra/resources-config.js +1 -0
  1995. package/dist/domain/spec/sections/state-value.d.ts +7 -0
  1996. package/dist/domain/spec/sections/state-value.js +1 -0
  1997. package/dist/domain/spec/sections/theme.d.ts +10 -0
  1998. package/dist/domain/spec/sections/theme.js +1 -0
  1999. package/dist/domain/spec/sections/transformers.d.ts +15 -0
  2000. package/dist/domain/spec/sections/transformers.js +1 -0
  2001. package/dist/domain/spec/sections/ui.d.ts +12 -0
  2002. package/dist/domain/spec/sections/ui.js +1 -0
  2003. package/dist/domain/system-components/admin-sidebar.d.ts +1 -1
  2004. package/dist/domain/system-components/admin-sidebar.js +1 -1
  2005. package/dist/domain/system-components/angle-dimension.js +1 -1
  2006. package/dist/domain/system-components/application-config.d.ts +3 -3
  2007. package/dist/domain/system-components/application-config.js +1 -1
  2008. package/dist/domain/system-components/attribute-selection.js +1 -1
  2009. package/dist/domain/system-components/bounding-box-component.d.ts +1 -1
  2010. package/dist/domain/system-components/bounding-box-component.js +1 -1
  2011. package/dist/domain/system-components/bounding-sphere-component.d.ts +1 -1
  2012. package/dist/domain/system-components/bounding-sphere-component.js +1 -1
  2013. package/dist/domain/system-components/child-entity-recipes.d.ts +1 -1
  2014. package/dist/domain/system-components/child-entity-recipes.js +1 -1
  2015. package/dist/domain/system-components/child-entity-selection.d.ts +1 -2
  2016. package/dist/domain/system-components/child-entity-selection.js +1 -1
  2017. package/dist/domain/system-components/collision-box-geometry.d.ts +5 -3
  2018. package/dist/domain/system-components/collision-box-geometry.js +1 -1
  2019. package/dist/domain/system-components/collision-geometries.d.ts +1 -1
  2020. package/dist/domain/system-components/collision-geometry.d.ts +5 -3
  2021. package/dist/domain/system-components/collision-geometry.js +1 -1
  2022. package/dist/domain/system-components/collision-point-geometry.d.ts +5 -3
  2023. package/dist/domain/system-components/collision-point-geometry.js +1 -1
  2024. package/dist/domain/system-components/common/index.d.ts +0 -4
  2025. package/dist/domain/system-components/common/index.js +1 -1
  2026. package/dist/domain/system-components/common/material-override-schema.d.ts +2 -2
  2027. package/dist/domain/system-components/common/recipes.d.ts +21 -4
  2028. package/dist/domain/system-components/common/recipes.js +1 -1
  2029. package/dist/domain/system-components/common/scene-entity-control-schema.d.ts +3 -0
  2030. package/dist/domain/system-components/common/scene-entity-control-schema.js +1 -1
  2031. package/dist/domain/system-components/constraint.d.ts +11 -24
  2032. package/dist/domain/system-components/constraint.js +1 -1
  2033. package/dist/domain/system-components/create-blueprint.d.ts +1 -1
  2034. package/dist/domain/system-components/custom-scene-entity.d.ts +1 -1
  2035. package/dist/domain/system-components/custom-scene-entity.js +1 -1
  2036. package/dist/domain/system-components/detail.js +1 -1
  2037. package/dist/domain/system-components/distance-dimension-select.d.ts +1 -1
  2038. package/dist/domain/system-components/distance-dimension-select.js +1 -1
  2039. package/dist/domain/system-components/distance-dimension.d.ts +1 -1
  2040. package/dist/domain/system-components/distance-dimension.js +1 -1
  2041. package/dist/domain/system-components/drag-handle.d.ts +2 -2
  2042. package/dist/domain/system-components/drag-handle.js +1 -1
  2043. package/dist/domain/system-components/fit-entity-orthographic-camera-component.js +1 -1
  2044. package/dist/domain/system-components/fit-entity-perspective-camera-component.js +1 -1
  2045. package/dist/domain/system-components/fit-root-orthographic-camera-component.js +1 -1
  2046. package/dist/domain/system-components/fit-root-perspective-camera-component.js +1 -1
  2047. package/dist/domain/system-components/generic-dimension.d.ts +1 -1
  2048. package/dist/domain/system-components/generic-dimension.js +1 -1
  2049. package/dist/domain/system-components/hidden-entity.js +1 -1
  2050. package/dist/domain/system-components/hotspot-drag-handle.d.ts +2 -3
  2051. package/dist/domain/system-components/hotspot-drag-handle.js +1 -1
  2052. package/dist/domain/system-components/index.d.ts +0 -68
  2053. package/dist/domain/system-components/index.js +1 -1
  2054. package/dist/domain/system-components/material-override-property-transition.js +1 -1
  2055. package/dist/domain/system-components/material-override-transformer.js +1 -1
  2056. package/dist/domain/system-components/material-swatch.js +1 -1
  2057. package/dist/domain/system-components/navigation-page.js +1 -1
  2058. package/dist/domain/system-components/navigation-panel-list.js +1 -1
  2059. package/dist/domain/system-components/phoenix-entity-elements/admin-data-table-sidebar.d.ts +1 -1
  2060. package/dist/domain/system-components/phoenix-entity-elements/child-entity-card-selector.d.ts +2 -3
  2061. package/dist/domain/system-components/phoenix-entity-elements/child-entity-list-selector.d.ts +2 -3
  2062. package/dist/domain/system-components/phoenix-entity-elements/child-entity-toggle-selector.d.ts +2 -3
  2063. package/dist/domain/system-components/phoenix-layout-elements/admin-connected-resource-page.d.ts +1 -1
  2064. package/dist/domain/system-components/phoenix-layout-elements/admin-data-table-actions.d.ts +1 -1
  2065. package/dist/domain/system-components/phoenix-layout-elements/admin-data-table-page.d.ts +1 -1
  2066. package/dist/domain/system-components/phoenix-layout-elements/assistant-toolbar-button.d.ts +44 -0
  2067. package/dist/domain/system-components/phoenix-layout-elements/assistant-toolbar-button.js +1 -0
  2068. package/dist/domain/system-components/phoenix-layout-elements/index.d.ts +1 -0
  2069. package/dist/domain/system-components/phoenix-layout-elements/index.js +1 -1
  2070. package/dist/domain/system-components/phoenix-layout-elements/phoenix-layout-element.d.ts +2 -1
  2071. package/dist/domain/system-components/phoenix-layout-elements/phoenix-layout-element.js +1 -1
  2072. package/dist/domain/system-components/pivot-point.d.ts +1 -1
  2073. package/dist/domain/system-components/pivot-point.js +1 -1
  2074. package/dist/domain/system-components/price.js +1 -1
  2075. package/dist/domain/system-components/projected-entities.d.ts +1 -1
  2076. package/dist/domain/system-components/projected-entities.js +1 -1
  2077. package/dist/domain/system-components/replace-entity-recipes.d.ts +1 -1
  2078. package/dist/domain/system-components/replace-entity-recipes.js +1 -1
  2079. package/dist/domain/system-components/scene-entity-ambient-light.js +1 -1
  2080. package/dist/domain/system-components/scene-entity-box-object.js +1 -1
  2081. package/dist/domain/system-components/scene-entity-directional-light.js +1 -1
  2082. package/dist/domain/system-components/scene-entity-local-material-override.js +1 -1
  2083. package/dist/domain/system-components/scene-entity-material-override.d.ts +1 -1
  2084. package/dist/domain/system-components/scene-entity-material-override.js +1 -1
  2085. package/dist/domain/system-components/scene-entity-object-clip.js +1 -1
  2086. package/dist/domain/system-components/scene-entity-object-decal.js +1 -1
  2087. package/dist/domain/system-components/scene-entity-object-group.js +1 -1
  2088. package/dist/domain/system-components/scene-entity-object-local-material-override.js +1 -1
  2089. package/dist/domain/system-components/scene-entity-object-material-override.d.ts +1 -1
  2090. package/dist/domain/system-components/scene-entity-object-material-override.js +1 -1
  2091. package/dist/domain/system-components/scene-entity-object-properties.js +1 -1
  2092. package/dist/domain/system-components/scene-entity-object-remote-material-override.js +1 -1
  2093. package/dist/domain/system-components/scene-entity-object-text-decal.d.ts +1 -1
  2094. package/dist/domain/system-components/scene-entity-object-text-decal.js +1 -1
  2095. package/dist/domain/system-components/scene-entity-object-transformer.js +1 -1
  2096. package/dist/domain/system-components/scene-entity-object-transimissive-material-override.d.ts +1 -1
  2097. package/dist/domain/system-components/scene-entity-object-transimissive-material-override.js +1 -1
  2098. package/dist/domain/system-components/scene-entity-object.js +1 -1
  2099. package/dist/domain/system-components/scene-entity-point-light.js +1 -1
  2100. package/dist/domain/system-components/scene-entity-properties.js +1 -1
  2101. package/dist/domain/system-components/scene-entity-rect-area-light.js +1 -1
  2102. package/dist/domain/system-components/scene-entity-remote-material-override.js +1 -1
  2103. package/dist/domain/system-components/scene-entity-remote-object.js +1 -1
  2104. package/dist/domain/system-components/scene-entity-spot-light.js +1 -1
  2105. package/dist/domain/system-components/scene-entity-transimissive-material-override.d.ts +1 -1
  2106. package/dist/domain/system-components/scene-entity-transimissive-material-override.js +1 -1
  2107. package/dist/domain/system-components/sketching-line.d.ts +1 -1
  2108. package/dist/domain/system-components/sketching-line.js +1 -1
  2109. package/dist/domain/system-components/sketching-rectangle.d.ts +1 -1
  2110. package/dist/domain/system-components/sketching-rectangle.js +1 -1
  2111. package/dist/domain/system-components/sketching.d.ts +1 -1
  2112. package/dist/domain/system-components/sketching.js +1 -1
  2113. package/dist/domain/system-components/snap-axis.d.ts +1 -1
  2114. package/dist/domain/system-components/snap-axis.js +1 -1
  2115. package/dist/domain/system-components/snap-edge.d.ts +1 -1
  2116. package/dist/domain/system-components/snap-edge.js +1 -1
  2117. package/dist/domain/system-components/snap-plane.d.ts +1 -1
  2118. package/dist/domain/system-components/snap-plane.js +1 -1
  2119. package/dist/domain/system-components/snap-point.d.ts +1 -1
  2120. package/dist/domain/system-components/snap-point.js +1 -1
  2121. package/dist/domain/system-components/static-orthographic-camera-component.d.ts +1 -1
  2122. package/dist/domain/system-components/static-orthographic-camera-component.js +1 -1
  2123. package/dist/domain/system-components/static-perspective-camera-component.d.ts +1 -1
  2124. package/dist/domain/system-components/static-perspective-camera-component.js +1 -1
  2125. package/dist/domain/system-definitions.js +1 -1
  2126. package/dist/domain/utils/eval-cache.d.ts +2 -3
  2127. package/dist/domain/utils/index.d.ts +2 -0
  2128. package/dist/domain/utils/index.js +1 -0
  2129. package/dist/domain/utils/map-nested-object.d.ts +1 -1
  2130. package/dist/domain/utils/memo-eval.d.ts +2 -4
  2131. package/dist/editor/Editor.d.ts +12 -0
  2132. package/dist/editor/Editor.js +1 -1
  2133. package/dist/editor/EditorMode.d.ts +2 -0
  2134. package/dist/editor/EditorMode.js +1 -1
  2135. package/dist/editor/agent-mode/AgentModeBridge.d.ts +10 -0
  2136. package/dist/editor/agent-mode/AgentModeBridge.js +1 -0
  2137. package/dist/editor/agent-mode/agent-at-work-fonts.d.ts +2 -0
  2138. package/dist/editor/agent-mode/agent-at-work-fonts.js +1 -0
  2139. package/dist/editor/console-reporter/BrowserConsoleReporter.js +1 -1
  2140. package/dist/editor/console-reporter/console-capture.d.ts +20 -0
  2141. package/dist/editor/console-reporter/console-capture.js +1 -0
  2142. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  2143. package/dist/editor/domain-editors/apply-spec-update.d.ts +10 -2
  2144. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  2145. package/dist/editor/domain-editors/use-implementation-files.d.ts +8 -16
  2146. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  2147. package/dist/editor/graphql/GraphQLPanel.js +1 -1
  2148. package/dist/editor/index.d.ts +1 -0
  2149. package/dist/editor/index.js +1 -1
  2150. package/dist/editor/mocks/CreateMockYaml.js +2 -2
  2151. package/dist/editor/mocks/EditorMockContext.d.ts +2 -0
  2152. package/dist/editor/mocks/EditorMockContext.js +1 -1
  2153. package/dist/editor/screenshot/ScreenshotHandler.js +1 -1
  2154. package/dist/editor/variants/VariantAnswerFooter.d.ts +24 -0
  2155. package/dist/editor/variants/VariantAnswerFooter.js +1 -0
  2156. package/dist/editor/variants/VariantPageUnavailable.d.ts +5 -0
  2157. package/dist/editor/variants/VariantPageUnavailable.js +1 -0
  2158. package/dist/editor/variants/VariantPreviewHandler.d.ts +6 -0
  2159. package/dist/editor/variants/VariantPreviewHandler.js +1 -0
  2160. package/dist/editor/variants/variant-preview-fonts.d.ts +2 -0
  2161. package/dist/editor/variants/variant-preview-fonts.js +1 -0
  2162. package/dist/editor/variants/variant-preview-styles.d.ts +41 -0
  2163. package/dist/editor/variants/variant-preview-styles.js +493 -0
  2164. package/dist/extras/cognito/CognitoSignInPage.d.ts +2 -0
  2165. package/dist/extras/cognito/CognitoSignInPage.js +1 -0
  2166. package/dist/extras/cognito/index.d.ts +1 -0
  2167. package/dist/extras/cognito/index.js +1 -0
  2168. package/dist/globals/index.d.ts +2 -0
  2169. package/dist/i18n/locales/cs/messages.js +1 -1
  2170. package/dist/i18n/locales/da/messages.js +1 -1
  2171. package/dist/i18n/locales/de/messages.js +1 -1
  2172. package/dist/i18n/locales/de-AT/messages.js +1 -1
  2173. package/dist/i18n/locales/en/messages.js +1 -1
  2174. package/dist/i18n/locales/en-AU/messages.js +1 -1
  2175. package/dist/i18n/locales/en-GB/messages.js +1 -1
  2176. package/dist/i18n/locales/es/messages.js +1 -1
  2177. package/dist/i18n/locales/fr/messages.js +1 -1
  2178. package/dist/i18n/locales/hu/messages.js +1 -1
  2179. package/dist/i18n/locales/it/messages.js +1 -1
  2180. package/dist/i18n/locales/nl/messages.js +1 -1
  2181. package/dist/i18n/locales/pl/messages.js +1 -1
  2182. package/dist/i18n/locales/pt/messages.js +1 -1
  2183. package/dist/i18n/locales/ro/messages.js +1 -1
  2184. package/dist/i18n/locales/sk/messages.js +1 -1
  2185. package/dist/i18n/locales/tr/messages.js +1 -1
  2186. package/dist/i18n/merge-catalogs.d.ts +4 -1
  2187. package/dist/i18n/merge-catalogs.js +1 -1
  2188. package/dist/legacy/domain-cli/gen/configurator-builder.js +31 -16
  2189. package/dist/legacy/domain-cli/gen/constant-expressions.js +1 -3
  2190. package/dist/legacy/domain-cli/gen/defaults.js +1 -7
  2191. package/dist/legacy/domain-cli/gen/implementation.js +7 -11
  2192. package/dist/legacy/domain-cli/gen/invariants.js +7 -6
  2193. package/dist/legacy/domain-cli/gen/relations.js +1 -1
  2194. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  2195. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  2196. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +184 -148
  2197. package/dist/legacy/domain-spec/spec/domain-spec.js +1 -1
  2198. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/claude-md.d.ts +1 -1
  2199. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/cursor-rules.d.ts +1 -1
  2200. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.d.ts +1 -1
  2201. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.js +13 -0
  2202. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/domain-index.js +17 -15
  2203. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/env-example.d.ts +1 -1
  2204. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/env-example.js +4 -0
  2205. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-admin.js +18 -18
  2206. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-configurator.js +16 -15
  2207. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-admin.js +24 -24
  2208. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-configurator.js +16 -15
  2209. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/generator-shared.d.ts +7 -2
  2210. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/generator-shared.js +8 -12
  2211. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/i18n-index.js +3 -3
  2212. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/index.d.ts +1 -1
  2213. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/index.js +1 -1
  2214. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/webhook-builders.js +7 -7
  2215. package/dist/legacy/phoenix-cli/services/webhook-service/transport.js +1 -1
  2216. package/dist/legacy/phoenix-cli/services/webhook-service/tunnel.d.ts +1 -0
  2217. package/dist/legacy/phoenix-cli/services/webhook-service/tunnel.js +1 -1
  2218. package/dist/legacy/webhook-cli/lambda-local/index.js +1 -1
  2219. package/dist/legacy/webhook-cli/lib/webhook-boundary.js +1 -1
  2220. package/dist/phoenix/application-spec/application-spec-builder.d.ts +2 -4
  2221. package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
  2222. package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +3 -3
  2223. package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
  2224. package/dist/phoenix/application-spec/generate-application-spec-story.js +2 -2
  2225. package/dist/phoenix/application-spec/generate-project-files.d.ts +4 -4
  2226. package/dist/phoenix/application-spec/generate-project-files.js +1 -1
  2227. package/dist/phoenix/application-spec/index.d.ts +3 -0
  2228. package/dist/phoenix/application-spec/index.js +1 -1
  2229. package/dist/phoenix/application-spec/project-files.d.ts +8 -2
  2230. package/dist/phoenix/application-spec/project-files.js +1 -1
  2231. package/dist/phoenix/application-spec/read-spec-project.d.ts +1 -2
  2232. package/dist/phoenix/application-spec/read-spec-project.js +1 -1
  2233. package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +16 -3
  2234. package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
  2235. package/dist/phoenix/bin.d.ts +2 -0
  2236. package/dist/phoenix/bin.js +2 -0
  2237. package/dist/phoenix/check-configs/built-in-eslint-config.d.ts +9 -0
  2238. package/dist/phoenix/check-configs/built-in-eslint-config.js +1 -0
  2239. package/dist/phoenix/check-configs/eslint-config.d.ts +10 -0
  2240. package/dist/phoenix/check-configs/eslint-config.js +1 -0
  2241. package/dist/phoenix/check-configs/index.d.ts +8 -0
  2242. package/dist/phoenix/check-configs/index.js +1 -0
  2243. package/dist/phoenix/check-configs/typescript-project.d.ts +5 -0
  2244. package/dist/phoenix/check-configs/typescript-project.js +1 -0
  2245. package/dist/phoenix/cli.d.ts +0 -1
  2246. package/dist/phoenix/cli.js +1 -2
  2247. package/dist/phoenix/commands/account/index.d.ts +1 -0
  2248. package/dist/phoenix/commands/account/index.js +1 -0
  2249. package/dist/phoenix/commands/account/whoami.d.ts +4 -0
  2250. package/dist/phoenix/commands/account/whoami.js +3 -0
  2251. package/dist/phoenix/commands/activate-deployment.js +1 -1
  2252. package/dist/phoenix/commands/build.d.ts +2 -1
  2253. package/dist/phoenix/commands/build.js +1 -1
  2254. package/dist/phoenix/commands/changelog.js +1 -1
  2255. package/dist/phoenix/commands/check.js +1 -1
  2256. package/dist/phoenix/commands/clean.d.ts +2 -1
  2257. package/dist/phoenix/commands/clean.js +1 -1
  2258. package/dist/phoenix/commands/cleanup-environment.js +2 -2
  2259. package/dist/phoenix/commands/create-environment.js +1 -1
  2260. package/dist/phoenix/commands/data.js +1 -1
  2261. package/dist/phoenix/commands/deploy.js +3 -3
  2262. package/dist/phoenix/commands/deployment-build-envs-command.js +1 -1
  2263. package/dist/phoenix/commands/deps/deps.d.ts +73 -0
  2264. package/dist/phoenix/commands/deps/deps.js +3 -0
  2265. package/dist/phoenix/commands/deps/index.d.ts +1 -0
  2266. package/dist/phoenix/commands/deps/index.js +1 -0
  2267. package/dist/phoenix/commands/deps/sdk-manifest.d.ts +12 -0
  2268. package/dist/phoenix/commands/deps/sdk-manifest.js +1 -0
  2269. package/dist/phoenix/commands/dev.d.ts +2 -1
  2270. package/dist/phoenix/commands/dev.js +4 -5
  2271. package/dist/phoenix/commands/docs.js +1 -1
  2272. package/dist/phoenix/commands/feedback.js +1 -1
  2273. package/dist/phoenix/commands/finish-deployment-command.js +1 -1
  2274. package/dist/phoenix/commands/fix.js +1 -1
  2275. package/dist/phoenix/commands/index.d.ts +3 -0
  2276. package/dist/phoenix/commands/index.js +1 -1
  2277. package/dist/phoenix/commands/init.d.ts +17 -5
  2278. package/dist/phoenix/commands/init.js +1 -1
  2279. package/dist/phoenix/commands/inspect-assets.js +1 -1
  2280. package/dist/phoenix/commands/link.js +1 -1
  2281. package/dist/phoenix/commands/list-environments.js +1 -1
  2282. package/dist/phoenix/commands/login.d.ts +9 -3
  2283. package/dist/phoenix/commands/login.js +3 -3
  2284. package/dist/phoenix/commands/logout.js +1 -1
  2285. package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
  2286. package/dist/phoenix/commands/prepare-local-environment-command.js +1 -1
  2287. package/dist/phoenix/commands/prettier.js +1 -1
  2288. package/dist/phoenix/commands/register-deployment.js +1 -1
  2289. package/dist/phoenix/commands/scene.js +1 -1
  2290. package/dist/phoenix/commands/screenshot.js +1 -1
  2291. package/dist/phoenix/commands/state.js +1 -1
  2292. package/dist/phoenix/commands/story-build.js +3 -3
  2293. package/dist/phoenix/commands/story-create.js +1 -1
  2294. package/dist/phoenix/commands/story-dev.js +2 -2
  2295. package/dist/phoenix/commands/sync.d.ts +2 -1
  2296. package/dist/phoenix/commands/sync.js +1 -1
  2297. package/dist/phoenix/commands/unlink.js +1 -1
  2298. package/dist/phoenix/commands/variants.d.ts +35 -0
  2299. package/dist/phoenix/commands/variants.js +1 -0
  2300. package/dist/phoenix/editor-server/commands-router.d.ts +68 -1
  2301. package/dist/phoenix/editor-server/commands-router.js +1 -1
  2302. package/dist/phoenix/editor-server/editor-router.d.ts +65 -0
  2303. package/dist/phoenix/editor-server/editor-server.d.ts +3 -14
  2304. package/dist/phoenix/editor-server/editor-server.js +1 -1
  2305. package/dist/phoenix/editor-server/protocol.d.ts +1 -0
  2306. package/dist/phoenix/editor-server/spec-router.js +1 -1
  2307. package/dist/phoenix/editor-server/trpc.d.ts +2 -9
  2308. package/dist/phoenix/lingui/index.d.ts +1 -0
  2309. package/dist/phoenix/lingui/index.js +1 -0
  2310. package/dist/phoenix/lingui/lingui.d.ts +18 -0
  2311. package/dist/phoenix/lingui/lingui.js +1 -0
  2312. package/dist/phoenix/scripts/build-admin.js +1 -1
  2313. package/dist/phoenix/scripts/docs-utils.js +1 -1
  2314. package/dist/phoenix/services/application-spec-project-watcher.d.ts +29 -11
  2315. package/dist/phoenix/services/application-spec-project-watcher.js +3 -3
  2316. package/dist/phoenix/services/cli-credentials.d.ts +17 -6
  2317. package/dist/phoenix/services/cli-credentials.js +2 -2
  2318. package/dist/phoenix/services/cli-exit.d.ts +5 -0
  2319. package/dist/phoenix/services/cli-exit.js +1 -0
  2320. package/dist/phoenix/services/deployment/deployment-preparation-service.d.ts +28 -0
  2321. package/dist/phoenix/services/deployment/deployment-preparation-service.js +1 -0
  2322. package/dist/phoenix/services/deployment/generated-env-markers.d.ts +8 -0
  2323. package/dist/phoenix/services/deployment/generated-env-markers.js +1 -0
  2324. package/dist/phoenix/services/deployment/index.d.ts +2 -0
  2325. package/dist/phoenix/services/deployment/index.js +1 -0
  2326. package/dist/phoenix/services/dev-experience/dev-experience.d.ts +31 -0
  2327. package/dist/phoenix/services/dev-experience/dev-experience.js +1 -0
  2328. package/dist/phoenix/services/dev-experience/index.d.ts +3 -0
  2329. package/dist/phoenix/services/dev-experience/index.js +1 -0
  2330. package/dist/phoenix/services/dev-experience/read-explicit-editor-setting.d.ts +7 -0
  2331. package/dist/phoenix/services/dev-experience/read-explicit-editor-setting.js +1 -0
  2332. package/dist/phoenix/services/dev-experience/regenerated-page-experience.d.ts +24 -0
  2333. package/dist/phoenix/services/dev-experience/regenerated-page-experience.js +1 -0
  2334. package/dist/phoenix/services/index.d.ts +11 -2
  2335. package/dist/phoenix/services/index.js +1 -1
  2336. package/dist/phoenix/services/lingui-watcher.js +1 -1
  2337. package/dist/phoenix/services/phoenix-pubsub.d.ts +4 -0
  2338. package/dist/phoenix/services/phoenix-regions.d.ts +1 -1
  2339. package/dist/phoenix/services/phoenix-regions.js +1 -1
  2340. package/dist/phoenix/services/phoenix-store.d.ts +51 -0
  2341. package/dist/phoenix/services/phoenix-store.js +1 -0
  2342. package/dist/phoenix/services/phx-variant-previews-plugin.d.ts +9 -0
  2343. package/dist/phoenix/services/phx-variant-previews-plugin.js +1 -0
  2344. package/dist/phoenix/services/prepare-development-environment.js +1 -1
  2345. package/dist/phoenix/services/session/editor-server-handle.d.ts +5 -0
  2346. package/dist/phoenix/services/session/editor-server-handle.js +1 -0
  2347. package/dist/phoenix/services/session/index.d.ts +2 -0
  2348. package/dist/phoenix/services/session/index.js +1 -0
  2349. package/dist/phoenix/services/session/phoenix-application.d.ts +83 -0
  2350. package/dist/phoenix/services/session/phoenix-application.js +2 -0
  2351. package/dist/phoenix/services/signed-in-development-environment.js +1 -1
  2352. package/dist/phoenix/services/source-archive.d.ts +3 -0
  2353. package/dist/phoenix/services/source-archive.js +1 -1
  2354. package/dist/phoenix/services/swc.d.ts +5 -4
  2355. package/dist/phoenix/services/swc.js +2 -2
  2356. package/dist/phoenix/services/telemetry/amplitude-telemetry-transport.d.ts +9 -0
  2357. package/dist/phoenix/services/telemetry/amplitude-telemetry-transport.js +1 -0
  2358. package/dist/phoenix/services/telemetry/index.d.ts +3 -0
  2359. package/dist/phoenix/services/telemetry/index.js +1 -0
  2360. package/dist/phoenix/services/telemetry/telemetry-client.d.ts +25 -0
  2361. package/dist/phoenix/services/telemetry/telemetry-client.js +1 -0
  2362. package/dist/phoenix/services/telemetry/telemetry-command.d.ts +2 -0
  2363. package/dist/phoenix/services/telemetry/telemetry-command.js +1 -0
  2364. package/dist/phoenix/services/telemetry/telemetry-event.d.ts +44 -0
  2365. package/dist/phoenix/services/telemetry/telemetry-event.js +1 -0
  2366. package/dist/phoenix/services/telemetry/telemetry-state.d.ts +25 -0
  2367. package/dist/phoenix/services/telemetry/telemetry-state.js +2 -0
  2368. package/dist/phoenix/services/variant-file-session.d.ts +36 -0
  2369. package/dist/phoenix/services/variant-file-session.js +1 -0
  2370. package/dist/phoenix/services/variant-preview-service.d.ts +80 -0
  2371. package/dist/phoenix/services/variant-preview-service.js +1 -0
  2372. package/dist/phoenix/services/vite-config.d.ts +2 -1
  2373. package/dist/phoenix/services/vite-config.js +1 -1
  2374. package/dist/phoenix/services/webhook-service/transport.js +1 -1
  2375. package/dist/phoenix/services/webhook-service/tunnel.d.ts +1 -0
  2376. package/dist/phoenix/services/webhook-service/tunnel.js +1 -1
  2377. package/dist/phoenix/utils/git/index.d.ts +1 -0
  2378. package/dist/phoenix/utils/git/index.js +1 -0
  2379. package/dist/phoenix/utils/git/is-inside-git-repository.d.ts +6 -0
  2380. package/dist/phoenix/utils/git/is-inside-git-repository.js +1 -0
  2381. package/dist/phoenix/utils/index.d.ts +5 -2
  2382. package/dist/phoenix/utils/index.js +1 -1
  2383. package/dist/phoenix/utils/node-version/index.d.ts +1 -0
  2384. package/dist/phoenix/utils/node-version/index.js +1 -0
  2385. package/dist/phoenix/utils/node-version/supported-node-version.d.ts +12 -0
  2386. package/dist/phoenix/utils/node-version/supported-node-version.js +4 -0
  2387. package/dist/phoenix/utils/package-info.d.ts +0 -9
  2388. package/dist/phoenix/utils/package-info.js +1 -1
  2389. package/dist/phoenix/utils/package-manager/index.d.ts +2 -0
  2390. package/dist/phoenix/utils/package-manager/index.js +1 -0
  2391. package/dist/phoenix/utils/package-manager/package-manager-commands.d.ts +19 -0
  2392. package/dist/phoenix/utils/package-manager/package-manager-commands.js +1 -0
  2393. package/dist/phoenix/utils/package-manager/pnpm-project.d.ts +9 -0
  2394. package/dist/phoenix/utils/package-manager/pnpm-project.js +1 -0
  2395. package/dist/phoenix/utils/run-command.d.ts +11 -0
  2396. package/dist/phoenix/utils/run-command.js +1 -1
  2397. package/dist/phoenix/utils/sdk-tool/index.d.ts +1 -0
  2398. package/dist/phoenix/utils/sdk-tool/index.js +1 -0
  2399. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.d.ts +15 -0
  2400. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.js +1 -0
  2401. package/dist/react-sdk/application-runtime/common-services/analytics/analytics-service.d.ts +3 -3
  2402. package/dist/react-sdk/application-runtime/common-services/analytics/domain-controls-analytics.d.ts +21 -21
  2403. package/dist/react-sdk/application-runtime/common-services/analytics/frontend-analytics.d.ts +52 -0
  2404. package/dist/react-sdk/application-runtime/common-services/analytics/frontend-analytics.js +1 -0
  2405. package/dist/react-sdk/application-runtime/common-services/analytics/index.d.ts +1 -0
  2406. package/dist/react-sdk/application-runtime/common-services/analytics/index.js +1 -1
  2407. package/dist/react-sdk/application-runtime/common-services/initialize.d.ts +2 -2
  2408. package/dist/react-sdk/application-runtime/domain-application-context/chat-system.d.ts +1 -1
  2409. package/dist/react-sdk/application-runtime/hooks/data/use-published-data.d.ts +1 -1
  2410. package/dist/react-sdk/application-runtime/hooks/index.d.ts +2 -0
  2411. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  2412. package/dist/react-sdk/application-runtime/hooks/loading/index.d.ts +5 -0
  2413. package/dist/react-sdk/application-runtime/hooks/loading/index.js +1 -0
  2414. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.d.ts +11 -0
  2415. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.js +1 -0
  2416. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.d.ts +8 -0
  2417. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.js +1 -0
  2418. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.d.ts +7 -0
  2419. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.js +1 -0
  2420. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.d.ts +9 -0
  2421. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.js +1 -0
  2422. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.d.ts +24 -0
  2423. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.js +1 -0
  2424. package/dist/react-sdk/application-runtime/hooks/responsive/index.d.ts +3 -0
  2425. package/dist/react-sdk/application-runtime/hooks/responsive/index.js +1 -0
  2426. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.d.ts +9 -0
  2427. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.js +1 -0
  2428. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +28 -0
  2429. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.js +1 -0
  2430. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.d.ts +10 -0
  2431. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.js +1 -0
  2432. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.d.ts +24 -0
  2433. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -0
  2434. package/dist/react-sdk/application-runtime/hooks/use-access-service.d.ts +7 -0
  2435. package/dist/react-sdk/application-runtime/hooks/use-access-service.js +1 -1
  2436. package/dist/react-sdk/application-runtime/hooks/use-domain-application-props.d.ts +5 -2
  2437. package/dist/react-sdk/application-runtime/hooks/use-environment.d.ts +7 -0
  2438. package/dist/react-sdk/application-runtime/hooks/use-environment.js +1 -1
  2439. package/dist/react-sdk/application-runtime/hooks/use-phoenix-element-slots.d.ts +2 -1
  2440. package/dist/react-sdk/application-runtime/hooks/use-spec.d.ts +1 -1
  2441. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.d.ts +4 -11
  2442. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.js +1 -1
  2443. package/dist/react-sdk/application-runtime/hooks/use-web-component.d.ts +5 -0
  2444. package/dist/react-sdk/application-runtime/hooks/use-web-component.js +1 -1
  2445. package/dist/react-sdk/application-runtime/host-properties/actions.d.ts +15 -0
  2446. package/dist/react-sdk/application-runtime/host-properties/actions.js +1 -0
  2447. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.d.ts +30 -0
  2448. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.js +1 -0
  2449. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.d.ts +7 -0
  2450. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.js +1 -0
  2451. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.d.ts +21 -0
  2452. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.js +1 -0
  2453. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.d.ts +42 -0
  2454. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.js +1 -0
  2455. package/dist/react-sdk/application-runtime/host-properties/index.d.ts +8 -0
  2456. package/dist/react-sdk/application-runtime/host-properties/index.js +1 -0
  2457. package/dist/react-sdk/application-runtime/host-properties/initialize.d.ts +7 -0
  2458. package/dist/react-sdk/application-runtime/host-properties/initialize.js +1 -0
  2459. package/dist/react-sdk/application-runtime/host-properties/selectors.d.ts +54 -0
  2460. package/dist/react-sdk/application-runtime/host-properties/selectors.js +1 -0
  2461. package/dist/react-sdk/application-runtime/host-properties/types.d.ts +18 -0
  2462. package/dist/react-sdk/application-runtime/host-properties/types.js +1 -0
  2463. package/dist/react-sdk/application-runtime/index.d.ts +3 -0
  2464. package/dist/react-sdk/application-runtime/integration/initialize.d.ts +7 -6
  2465. package/dist/react-sdk/application-runtime/integration/initialize.js +1 -1
  2466. package/dist/react-sdk/application-runtime/integration/selectors.d.ts +11 -2
  2467. package/dist/react-sdk/application-runtime/integration/selectors.js +1 -1
  2468. package/dist/react-sdk/application-runtime/integration/types.d.ts +5 -2
  2469. package/dist/react-sdk/application-runtime/loading/actions.d.ts +45 -0
  2470. package/dist/react-sdk/application-runtime/loading/actions.js +1 -0
  2471. package/dist/react-sdk/application-runtime/loading/index.d.ts +4 -0
  2472. package/dist/react-sdk/application-runtime/loading/index.js +1 -0
  2473. package/dist/react-sdk/application-runtime/loading/initialize.d.ts +3 -0
  2474. package/dist/react-sdk/application-runtime/loading/initialize.js +1 -0
  2475. package/dist/react-sdk/application-runtime/loading/selectors.d.ts +18 -0
  2476. package/dist/react-sdk/application-runtime/loading/selectors.js +1 -0
  2477. package/dist/react-sdk/application-runtime/loading/types.d.ts +59 -0
  2478. package/dist/react-sdk/application-runtime/loading/types.js +1 -0
  2479. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.d.ts +1 -1
  2480. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  2481. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.d.ts +6 -0
  2482. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.js +1 -1
  2483. package/dist/react-sdk/application-runtime/provider/ApplicationType.d.ts +7 -0
  2484. package/dist/react-sdk/application-runtime/provider/ApplicationType.js +1 -1
  2485. package/dist/react-sdk/application-runtime/responsive/actions.d.ts +53 -0
  2486. package/dist/react-sdk/application-runtime/responsive/actions.js +1 -0
  2487. package/dist/react-sdk/application-runtime/responsive/index.d.ts +4 -0
  2488. package/dist/react-sdk/application-runtime/responsive/index.js +1 -0
  2489. package/dist/react-sdk/application-runtime/responsive/initialize.d.ts +3 -0
  2490. package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -0
  2491. package/dist/react-sdk/application-runtime/responsive/selectors.d.ts +20 -0
  2492. package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -0
  2493. package/dist/react-sdk/application-runtime/responsive/types.d.ts +113 -0
  2494. package/dist/react-sdk/application-runtime/responsive/types.js +1 -0
  2495. package/dist/react-sdk/application-runtime/routing/access-service.d.ts +1 -0
  2496. package/dist/react-sdk/application-runtime/routing/routing-service.d.ts +34 -2
  2497. package/dist/react-sdk/application-runtime/routing/routing-service.js +1 -1
  2498. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +388 -50
  2499. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  2500. package/dist/react-sdk/configurator-routing/ConfiguratorRoutingProvider.d.ts +11 -0
  2501. package/dist/react-sdk/configurator-routing/ConfiguratorRoutingProvider.js +1 -0
  2502. package/dist/react-sdk/configurator-routing/OnGoToIndexHandler.d.ts +9 -0
  2503. package/dist/react-sdk/configurator-routing/OnGoToIndexHandler.js +1 -0
  2504. package/dist/react-sdk/configurator-routing/index.d.ts +3 -0
  2505. package/dist/react-sdk/configurator-routing/index.js +1 -0
  2506. package/dist/react-sdk/configurator-routing/use-power-routing-lifecycle.d.ts +11 -0
  2507. package/dist/react-sdk/configurator-routing/use-power-routing-lifecycle.js +1 -0
  2508. package/dist/react-sdk/configurator-ui-elements/ConfiguratorUiElementHost.d.ts +7 -0
  2509. package/dist/react-sdk/configurator-ui-elements/ConfiguratorUiElementHost.js +1 -0
  2510. package/dist/react-sdk/configurator-ui-elements/ErrorFallbackElement.d.ts +14 -0
  2511. package/dist/react-sdk/configurator-ui-elements/ErrorFallbackElement.js +1 -0
  2512. package/dist/react-sdk/configurator-ui-elements/ErrorFallbackPropsProvider.d.ts +18 -0
  2513. package/dist/react-sdk/configurator-ui-elements/ErrorFallbackPropsProvider.js +1 -0
  2514. package/dist/react-sdk/configurator-ui-elements/PlainErrorFallback.d.ts +5 -0
  2515. package/dist/react-sdk/configurator-ui-elements/PlainErrorFallback.js +1 -0
  2516. package/dist/react-sdk/configurator-ui-elements/configurator-ui-element.d.ts +17 -0
  2517. package/dist/react-sdk/configurator-ui-elements/configurator-ui-element.js +1 -0
  2518. package/dist/react-sdk/configurator-ui-elements/create-configurator-ui-element.d.ts +5 -0
  2519. package/dist/react-sdk/configurator-ui-elements/create-configurator-ui-element.js +1 -0
  2520. package/dist/react-sdk/configurator-ui-elements/index.d.ts +6 -0
  2521. package/dist/react-sdk/configurator-ui-elements/index.js +1 -0
  2522. package/dist/react-sdk/domain-application-context/BackendDataProvider.js +1 -1
  2523. package/dist/react-sdk/domain-application-context/ConfigurationPersistSystemFailureHandler.js +1 -1
  2524. package/dist/react-sdk/domain-application-context/DomainLifecycleBoundary.js +1 -1
  2525. package/dist/react-sdk/domain-application-context/FrontendDataProvider.js +1 -1
  2526. package/dist/react-sdk/domain-application-context/OnPresetLoadedHandler.js +1 -0
  2527. package/dist/react-sdk/domain-application-context/PublishedDataProvider.js +1 -1
  2528. package/dist/react-sdk/domain-application-context/chat-hooks.d.ts +4 -0
  2529. package/dist/react-sdk/domain-application-context/chat-hooks.js +1 -0
  2530. package/dist/react-sdk/domain-application-context/index.d.ts +2 -0
  2531. package/dist/react-sdk/domain-application-context/index.js +1 -1
  2532. package/dist/react-sdk/domain-context/common-hooks/index.d.ts +9 -0
  2533. package/dist/react-sdk/domain-context/common-hooks/index.js +1 -0
  2534. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.d.ts +23 -0
  2535. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.js +1 -0
  2536. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.d.ts +41 -0
  2537. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.js +1 -0
  2538. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +14 -12
  2539. package/dist/react-sdk/domain-context/common-hooks/use-state-validity.d.ts +6 -1
  2540. package/dist/react-sdk/domain-context/common-hooks/use-state-validity.js +1 -1
  2541. package/dist/react-sdk/domain-context/component-hooks/index.d.ts +1 -0
  2542. package/dist/react-sdk/domain-context/component-hooks/index.js +1 -0
  2543. package/dist/react-sdk/domain-context/component-hooks/use-component.js +1 -1
  2544. package/dist/react-sdk/domain-context/entity-hooks/use-domain-entity-state.js +1 -1
  2545. package/dist/react-sdk/domain-context/entity-hooks/use-entity-price.js +1 -1
  2546. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-id.js +1 -1
  2547. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-state.js +1 -1
  2548. package/dist/react-sdk/domain-context/index.d.ts +9 -1
  2549. package/dist/react-sdk/domain-context/index.js +1 -1
  2550. package/dist/react-sdk/domain-context/system-hooks/composition-hooks.js +1 -1
  2551. package/dist/react-sdk/domain-context/system-hooks/dimension-hooks.js +1 -1
  2552. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +8 -0
  2553. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -0
  2554. package/dist/react-sdk/domain-context/system-hooks/hover-hooks.d.ts +2 -2
  2555. package/dist/react-sdk/domain-context/system-hooks/hover-hooks.js +1 -1
  2556. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.d.ts +24 -0
  2557. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.js +1 -0
  2558. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +11 -0
  2559. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  2560. package/dist/react-sdk/domain-context/system-hooks/selection-hooks.js +1 -1
  2561. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.d.ts +32 -0
  2562. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.js +1 -0
  2563. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.d.ts +57 -0
  2564. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.js +1 -0
  2565. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.d.ts +61 -0
  2566. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.js +1 -0
  2567. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.d.ts +20 -0
  2568. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.js +1 -0
  2569. package/dist/react-sdk/domain-controls/ChildEntityCardSelector.d.ts +2 -3
  2570. package/dist/react-sdk/domain-controls/ChildEntityListSelector.d.ts +2 -3
  2571. package/dist/react-sdk/domain-controls/ChildEntityToggleSelector.d.ts +2 -3
  2572. package/dist/react-sdk/domain-controls/hooks/use-angle-dimension.d.ts +1 -1
  2573. package/dist/react-sdk/domain-controls/hooks/use-cook-replace-recipes.d.ts +3 -3
  2574. package/dist/react-sdk/elements/PhoenixEntityElement.js +1 -1
  2575. package/dist/react-sdk/elements/PhoenixLayoutElement.js +1 -1
  2576. package/dist/react-sdk/handlers/FinalizeActionRunner.d.ts +13 -0
  2577. package/dist/react-sdk/handlers/FinalizeActionRunner.js +1 -0
  2578. package/dist/react-sdk/handlers/FinalizeActionsHost.d.ts +10 -0
  2579. package/dist/react-sdk/handlers/FinalizeActionsHost.js +1 -0
  2580. package/dist/react-sdk/handlers/FinalizeActionsProvider.d.ts +11 -0
  2581. package/dist/react-sdk/handlers/FinalizeActionsProvider.js +1 -0
  2582. package/dist/react-sdk/handlers/finalize-actions-context.d.ts +6 -0
  2583. package/dist/react-sdk/handlers/finalize-actions-context.js +1 -0
  2584. package/dist/react-sdk/handlers/finalize-actions-store.d.ts +23 -0
  2585. package/dist/react-sdk/handlers/finalize-actions-store.js +1 -0
  2586. package/dist/react-sdk/handlers/index.d.ts +6 -0
  2587. package/dist/react-sdk/handlers/index.js +1 -1
  2588. package/dist/react-sdk/handlers/use-finalize-action.d.ts +32 -0
  2589. package/dist/react-sdk/handlers/use-finalize-action.js +1 -0
  2590. package/dist/react-sdk/handlers/use-finalize-actions.d.ts +53 -0
  2591. package/dist/react-sdk/handlers/use-finalize-actions.js +1 -0
  2592. package/dist/react-sdk/index.d.ts +9 -0
  2593. package/dist/react-sdk/index.js +1 -1
  2594. package/dist/react-sdk/integration/IntegrationSubscription.js +1 -0
  2595. package/dist/react-sdk/integration/index.d.ts +1 -0
  2596. package/dist/react-sdk/integration/index.js +1 -0
  2597. package/dist/react-sdk/lifecycle-providers/ConfiguratorDataProvider.d.ts +8 -0
  2598. package/dist/react-sdk/lifecycle-providers/ConfiguratorDataProvider.js +1 -0
  2599. package/dist/react-sdk/lifecycle-providers/LifecycleProviders.js +1 -0
  2600. package/dist/react-sdk/lifecycle-providers/index.d.ts +2 -0
  2601. package/dist/react-sdk/lifecycle-providers/index.js +1 -0
  2602. package/dist/react-sdk/loading-state/LoaderHost.d.ts +20 -0
  2603. package/dist/react-sdk/loading-state/LoaderHost.js +1 -0
  2604. package/dist/react-sdk/loading-state/built-in-loading-phase.d.ts +9 -0
  2605. package/dist/react-sdk/loading-state/built-in-loading-phase.js +1 -0
  2606. package/dist/react-sdk/loading-state/create-app-loader.d.ts +18 -0
  2607. package/dist/react-sdk/loading-state/create-app-loader.js +1 -0
  2608. package/dist/react-sdk/loading-state/index.d.ts +4 -2
  2609. package/dist/react-sdk/loading-state/index.js +1 -1
  2610. package/dist/react-sdk/loading-state/loading-state-hooks.d.ts +22 -0
  2611. package/dist/react-sdk/loading-state/loading-state-hooks.js +1 -0
  2612. package/dist/react-sdk/notifications/index.d.ts +1 -0
  2613. package/dist/react-sdk/notifications/index.js +1 -0
  2614. package/dist/react-sdk/notifications/snackbar-action-button.d.ts +30 -0
  2615. package/dist/react-sdk/notifications/snackbar-action-button.js +1 -0
  2616. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.d.ts +17 -0
  2617. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.js +1 -0
  2618. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.d.ts +17 -0
  2619. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.js +1 -0
  2620. package/dist/react-sdk/page-elements/configurator-error-page-props.d.ts +20 -0
  2621. package/dist/react-sdk/page-elements/configurator-error-page-props.js +1 -0
  2622. package/dist/react-sdk/page-elements/create-configuration-not-found-page.d.ts +15 -0
  2623. package/dist/react-sdk/page-elements/create-configuration-not-found-page.js +1 -0
  2624. package/dist/react-sdk/page-elements/create-configurator-error-page.d.ts +14 -0
  2625. package/dist/react-sdk/page-elements/create-configurator-error-page.js +1 -0
  2626. package/dist/react-sdk/page-elements/create-preset-ui.d.ts +9 -0
  2627. package/dist/react-sdk/page-elements/create-preset-ui.js +1 -0
  2628. package/dist/react-sdk/page-elements/index.d.ts +6 -0
  2629. package/dist/react-sdk/page-elements/index.js +1 -0
  2630. package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -0
  2631. package/dist/react-sdk/preset-selection/index.d.ts +1 -0
  2632. package/dist/react-sdk/preset-selection/index.js +1 -0
  2633. package/dist/react-sdk/provider-slots/ConfiguratorProviderSlotHost.d.ts +11 -0
  2634. package/dist/react-sdk/provider-slots/ConfiguratorProviderSlotHost.js +1 -0
  2635. package/dist/react-sdk/provider-slots/configurator-provider-slot.d.ts +24 -0
  2636. package/dist/react-sdk/provider-slots/configurator-provider-slot.js +1 -0
  2637. package/dist/react-sdk/provider-slots/create-configurator-provider-slot.d.ts +5 -0
  2638. package/dist/react-sdk/provider-slots/create-configurator-provider-slot.js +1 -0
  2639. package/dist/react-sdk/provider-slots/index.d.ts +3 -0
  2640. package/dist/react-sdk/provider-slots/index.js +1 -0
  2641. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.d.ts +36 -0
  2642. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.js +1 -0
  2643. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.d.ts +44 -0
  2644. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.js +1 -0
  2645. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.d.ts +38 -0
  2646. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.js +1 -0
  2647. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.d.ts +30 -0
  2648. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.js +1 -0
  2649. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.d.ts +30 -0
  2650. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.js +1 -0
  2651. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.d.ts +9 -0
  2652. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.js +1 -0
  2653. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.d.ts +9 -0
  2654. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.js +1 -0
  2655. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.d.ts +10 -0
  2656. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.js +1 -0
  2657. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.d.ts +9 -0
  2658. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.js +1 -0
  2659. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.d.ts +9 -0
  2660. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.js +1 -0
  2661. package/dist/react-sdk/scene-control-elements/index.d.ts +11 -0
  2662. package/dist/react-sdk/scene-control-elements/index.js +1 -0
  2663. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.d.ts +5 -0
  2664. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.js +1 -0
  2665. package/dist/react-sdk/session/NotAuthenticatedPage.d.ts +4 -0
  2666. package/dist/react-sdk/session/NotAuthenticatedPage.js +1 -1
  2667. package/dist/react-sdk/session/SessionServiceProvider.d.ts +5 -0
  2668. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  2669. package/dist/react-sdk/web-component/create-web-component.js +1 -1
  2670. package/dist/react-sdk/web-component/god-mode/god-mode-registry.d.ts +30 -0
  2671. package/dist/react-sdk/web-component/god-mode/god-mode-registry.js +1 -0
  2672. package/dist/react-sdk/web-component/god-mode/index.d.ts +1 -0
  2673. package/dist/react-sdk/web-component/god-mode/index.js +1 -0
  2674. package/dist/ui-sdk/common/use-viewport-size.d.ts +4 -1
  2675. package/dist/ui-sdk/common/use-viewport-size.js +1 -1
  2676. package/dist/ui-sdk/components/mobile-controls/index.d.ts +1 -1
  2677. package/dist/ui-sdk/components/numerical-input/InputField.d.ts +2 -0
  2678. package/dist/ui-sdk/components/numerical-input/InputField.js +1 -1
  2679. package/dist/ui-sdk/components/numerical-input/NumericalInput.d.ts +2 -2
  2680. package/dist/ui-sdk/components/numerical-input/Slider.d.ts +3 -1
  2681. package/dist/ui-sdk/components/numerical-input/Slider.js +1 -1
  2682. package/dist/ui-sdk/components/snackbar/Snackbar.d.ts +24 -3
  2683. package/dist/ui-sdk/components/snackbar/Snackbar.js +1 -1
  2684. package/dist/ui-sdk/icons/__generated/ChatCircleText.d.ts +3 -0
  2685. package/dist/ui-sdk/icons/__generated/ChatCircleText.js +1 -0
  2686. package/dist/ui-sdk/icons/__generated/Lightbulb.d.ts +3 -0
  2687. package/dist/ui-sdk/icons/__generated/Lightbulb.js +1 -0
  2688. package/dist/ui-sdk/icons/__generated/Microphone.d.ts +3 -0
  2689. package/dist/ui-sdk/icons/__generated/Microphone.js +1 -0
  2690. package/dist/ui-sdk/icons/__generated/MicrophoneSlash.d.ts +3 -0
  2691. package/dist/ui-sdk/icons/__generated/MicrophoneSlash.js +1 -0
  2692. package/dist/ui-sdk/icons/__generated/Paperclip.d.ts +3 -0
  2693. package/dist/ui-sdk/icons/__generated/Paperclip.js +1 -0
  2694. package/dist/ui-sdk/icons/__generated/PencilSimpleLine.d.ts +3 -0
  2695. package/dist/ui-sdk/icons/__generated/PencilSimpleLine.js +1 -0
  2696. package/dist/ui-sdk/icons/__generated/SpeakerHigh.d.ts +3 -0
  2697. package/dist/ui-sdk/icons/__generated/SpeakerHigh.js +1 -0
  2698. package/dist/ui-sdk/icons/__generated/SpeakerSlash.d.ts +3 -0
  2699. package/dist/ui-sdk/icons/__generated/SpeakerSlash.js +1 -0
  2700. package/dist/ui-sdk/icons/__generated/Stop.d.ts +3 -0
  2701. package/dist/ui-sdk/icons/__generated/Stop.js +1 -0
  2702. package/dist/ui-sdk/icons/__generated/XCircle.d.ts +3 -0
  2703. package/dist/ui-sdk/icons/__generated/XCircle.js +1 -0
  2704. package/dist/ui-sdk/icons/__generated/index.d.ts +20 -0
  2705. package/dist/ui-sdk/icons/__generated/index.js +1 -1
  2706. package/dist/ui-sdk/icons/icons-registry.js +1 -1
  2707. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.d.ts +9 -0
  2708. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.js +1 -1
  2709. package/dist/ui-sdk/responsive-application/index.d.ts +1 -0
  2710. package/dist/ui-sdk/responsive-application/responsive-state-store.d.ts +59 -0
  2711. package/dist/ui-sdk/responsive-application/responsive-state-store.js +1 -0
  2712. package/dist/ui-sdk/responsive-application/use-store-responsive-info.d.ts +7 -0
  2713. package/dist/ui-sdk/responsive-application/use-store-responsive-info.js +1 -0
  2714. package/dist/ui-sdk/theme/types.d.ts +4 -0
  2715. package/dist/watch/glob-matcher.d.ts +4 -4
  2716. package/dist/watch/glob-matcher.js +1 -1
  2717. package/dist/watch/watch.d.ts +4 -4
  2718. package/dist/watch/watch.js +1 -1
  2719. package/dist/webhook/builders/auth-handler-builder.d.ts +3 -0
  2720. package/dist/webhook/builders/auth-handler-builder.js +1 -1
  2721. package/dist/webhook/builders/common.d.ts +12 -2
  2722. package/dist/webhook/builders/webhook-builder.d.ts +1 -1
  2723. package/dist/webhook/builders/webhook-builder.js +1 -1
  2724. package/package.json +67 -42
  2725. package/schema/domain-spec.json +1449 -217
  2726. package/dist/application-spec/caching/runtime-reference-store.d.ts +0 -50
  2727. package/dist/application-spec/caching/runtime-reference-store.js +0 -1
  2728. package/dist/application-spec/core/eval-to-constant.d.ts +0 -14
  2729. package/dist/application-spec/generate-application/code/templates/env-ci.d.ts +0 -1
  2730. package/dist/application-spec/generate-application/code/templates/env-ci.js +0 -25
  2731. package/dist/application-spec/generate-application/code/templates/env-example.d.ts +0 -1
  2732. package/dist/application-spec/generate-application/code/templates/env-example.js +0 -90
  2733. package/dist/application-spec/generate-application/code/templates/nvmrc.d.ts +0 -1
  2734. package/dist/application-spec/generate-application/code/templates/nvmrc.js +0 -2
  2735. package/dist/application-spec/generate-application/code/templates/package-json.d.ts +0 -10
  2736. package/dist/application-spec/generate-application/code/templates/package-json.js +0 -1
  2737. package/dist/application-spec/generate-application/code/templates/prettier-ignore.d.ts +0 -1
  2738. package/dist/application-spec/generate-application/code/templates/prettier-ignore.js +0 -6
  2739. package/dist/application-spec/generate-application/code/templates/private-assets-readme.d.ts +0 -1
  2740. package/dist/application-spec/generate-application/code/templates/private-assets-readme.js +0 -24
  2741. package/dist/application-spec/generate-application/code/templates/public-assets-readme.d.ts +0 -1
  2742. package/dist/application-spec/generate-application/code/templates/public-assets-readme.js +0 -24
  2743. package/dist/application-spec/generate-application/code/templates/readme.d.ts +0 -1
  2744. package/dist/application-spec/generate-application/code/templates/readme.js +0 -23
  2745. package/dist/application-spec/generate-application/code/templates/skills/agents-md.d.ts +0 -1
  2746. package/dist/application-spec/generate-application/code/templates/skills/agents-md.js +0 -2
  2747. package/dist/application-spec/generate-application/code/templates/skills/phoenix-cli-skill.d.ts +0 -1
  2748. package/dist/application-spec/generate-application/code/templates/skills/phoenix-cli-skill.js +0 -1
  2749. package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.d.ts +0 -3
  2750. package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.js +0 -114
  2751. package/dist/application-spec/generate-application/code/templates/skills/phoenix-feedback-skill.d.ts +0 -1
  2752. package/dist/application-spec/generate-application/code/templates/skills/phoenix-feedback-skill.js +0 -54
  2753. package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.d.ts +0 -1
  2754. package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.js +0 -109
  2755. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.d.ts +0 -13
  2756. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.js +0 -1
  2757. package/dist/application-spec/generate-application/code/templates/webhook-implementation.d.ts +0 -1
  2758. package/dist/application-spec/generate-application/code/templates/webhook-implementation.js +0 -7
  2759. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.d.ts +0 -28
  2760. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.js +0 -1
  2761. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.d.ts +0 -23
  2762. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.js +0 -1
  2763. package/dist/application-spec/generate-application/runtime/admin-runtime/states-runtime.d.ts +0 -8
  2764. package/dist/application-spec/generate-application/runtime/application-runtime.d.ts +0 -35
  2765. package/dist/application-spec/generate-application/runtime/application-runtime.js +0 -1
  2766. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.d.ts +0 -30
  2767. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.js +0 -1
  2768. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.d.ts +0 -34
  2769. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.js +0 -1
  2770. package/dist/application-spec/generate-application/runtime/configurator-runtime/states-runtime.d.ts +0 -11
  2771. package/dist/application-spec/generate-application/runtime/generate-runtime-instance.d.ts +0 -2
  2772. package/dist/application-spec/generate-application/runtime/generate-runtime-instance.js +0 -1
  2773. package/dist/application-spec/generate-application/runtime/sections/actions-runtime.d.ts +0 -14
  2774. package/dist/application-spec/generate-application/runtime/sections/assistant-runtime.d.ts +0 -9
  2775. package/dist/application-spec/generate-application/runtime/sections/assistant-runtime.js +0 -1
  2776. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.d.ts +0 -7
  2777. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.js +0 -1
  2778. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.d.ts +0 -7
  2779. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.js +0 -1
  2780. package/dist/application-spec/generate-application/runtime/sections/component-optic.d.ts +0 -32
  2781. package/dist/application-spec/generate-application/runtime/sections/component-optic.js +0 -1
  2782. package/dist/application-spec/generate-application/runtime/sections/data-runtime.d.ts +0 -13
  2783. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.d.ts +0 -46
  2784. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +0 -1
  2785. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.d.ts +0 -29
  2786. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.js +0 -1
  2787. package/dist/application-spec/generate-application/runtime/sections/index.d.ts +0 -10
  2788. package/dist/application-spec/generate-application/runtime/sections/index.js +0 -1
  2789. package/dist/application-spec/generate-application/runtime/sections/preset-runtime.d.ts +0 -20
  2790. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.d.ts +0 -8
  2791. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.js +0 -1
  2792. package/dist/application-spec/generate-application/runtime/sections/theme-runtime.d.ts +0 -10
  2793. package/dist/application-spec/generate-application/runtime/sections/transformers-runtime.d.ts +0 -21
  2794. package/dist/application-spec/parse-application-files/spec/components/component-entry.d.ts +0 -98
  2795. package/dist/application-spec/parse-application-files/spec/expressions/expression.d.ts +0 -70
  2796. package/dist/configurator/application-runtime/extensions/systems/assistant-system/browser-details.d.ts +0 -17
  2797. package/dist/configurator/application-runtime/extensions/systems/assistant-system/browser-details.js +0 -1
  2798. package/dist/configurator/assistant/index.d.ts +0 -1
  2799. package/dist/configurator/assistant/index.js +0 -1
  2800. package/dist/configurator/assistant/use-assistant-chat.d.ts +0 -20
  2801. package/dist/configurator/assistant/use-assistant-chat.js +0 -1
  2802. package/dist/configurator/common/frontend-analytics.d.ts +0 -46
  2803. package/dist/configurator/common/frontend-analytics.js +0 -1
  2804. package/dist/configurator/configurator-context/ConfiguratorDataProvider.d.ts +0 -2
  2805. package/dist/configurator/configurator-context/ConfiguratorDataProvider.js +0 -1
  2806. package/dist/configurator/configurator-context/IntegrationSubscription.js +0 -1
  2807. package/dist/configurator/configurator-context/LifecycleProviders.js +0 -1
  2808. package/dist/configurator/configurator-context/OnPresetLoadedHandler.js +0 -1
  2809. package/dist/configurator/configurator-context/PresetSelectionProvider.js +0 -1
  2810. package/dist/configurator/configurator-context/configurator-hooks/chat-hooks.d.ts +0 -1
  2811. package/dist/configurator/configurator-context/configurator-hooks/chat-hooks.js +0 -1
  2812. package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.d.ts +0 -11
  2813. package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.js +0 -1
  2814. package/dist/configurator/configurator-context/configurator-routing/OnGoToIndexHandler.d.ts +0 -10
  2815. package/dist/configurator/configurator-context/configurator-routing/OnGoToIndexHandler.js +0 -1
  2816. package/dist/configurator/configurator-context/configurator-routing/index.d.ts +0 -2
  2817. package/dist/configurator/configurator-context/configurator-routing/index.js +0 -1
  2818. package/dist/configurator/configurator-context/configurator-routing/use-power-routing-lifecycle.d.ts +0 -9
  2819. package/dist/configurator/configurator-context/configurator-routing/use-power-routing-lifecycle.js +0 -1
  2820. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.d.ts +0 -4
  2821. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.js +0 -1
  2822. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.d.ts +0 -4
  2823. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.js +0 -1
  2824. package/dist/domain/actions/action-factory.d.ts +0 -10
  2825. package/dist/domain/actions/prepare-action-implementations.d.ts +0 -15
  2826. package/dist/domain/actions/prepare-action-implementations.js +0 -5
  2827. package/dist/domain/application/element-registration.d.ts +0 -105
  2828. package/dist/domain/application/element-registration.js +0 -1
  2829. package/dist/domain/application/handler-registration.d.ts +0 -29
  2830. package/dist/domain/application/handler-registration.js +0 -1
  2831. package/dist/domain/application/resolve-imported-transformers.d.ts +0 -13
  2832. package/dist/domain/application/resolve-imported-transformers.js +0 -1
  2833. package/dist/domain/application/resource-builder.d.ts +0 -13
  2834. package/dist/domain/application/resource-builder.js +0 -1
  2835. package/dist/domain/available-system-components.d.ts +0 -11
  2836. package/dist/domain/available-system-components.js +0 -1
  2837. package/dist/domain/components/component-reader-types.d.ts +0 -44
  2838. package/dist/domain/components/debug-state-component.d.ts +0 -14
  2839. package/dist/domain/components/debug-state-component.js +0 -1
  2840. package/dist/domain/components/domain-component-optic.d.ts +0 -76
  2841. package/dist/domain/components/domain-component-optic.js +0 -16
  2842. package/dist/domain/components/drag-state-component.d.ts +0 -16
  2843. package/dist/domain/components/drag-state-component.js +0 -1
  2844. package/dist/domain/components/export-state-component.d.ts +0 -15
  2845. package/dist/domain/components/export-state-component.js +0 -1
  2846. package/dist/domain/components/fullscreen-state-component.d.ts +0 -14
  2847. package/dist/domain/components/fullscreen-state-component.js +0 -1
  2848. package/dist/domain/components/group-components-by-entity-id-and-name.d.ts +0 -9
  2849. package/dist/domain/components/group-components-by-entity-id-and-name.js +0 -1
  2850. package/dist/domain/components/hover-state-component.d.ts +0 -14
  2851. package/dist/domain/components/hover-state-component.js +0 -1
  2852. package/dist/domain/components/index.d.ts +0 -2
  2853. package/dist/domain/components/index.js +0 -1
  2854. package/dist/domain/components/legacy-filter.d.ts +0 -513
  2855. package/dist/domain/components/navigation-state-component.d.ts +0 -15
  2856. package/dist/domain/components/navigation-state-component.js +0 -1
  2857. package/dist/domain/components/selection-state-component.d.ts +0 -14
  2858. package/dist/domain/components/selection-state-component.js +0 -1
  2859. package/dist/domain/components/system-component-builder.d.ts +0 -12
  2860. package/dist/domain/components/system-component-builder.js +0 -1
  2861. package/dist/domain/components/system-component-filter.d.ts +0 -793
  2862. package/dist/domain/components/system-virtual-entity.js +0 -1
  2863. package/dist/domain/components/tool-state-component.d.ts +0 -14
  2864. package/dist/domain/components/tool-state-component.js +0 -1
  2865. package/dist/domain/components/updates.d.ts +0 -108
  2866. package/dist/domain/components/view-state-component.d.ts +0 -14
  2867. package/dist/domain/components/view-state-component.js +0 -1
  2868. package/dist/domain/components/viewport-state-component.d.ts +0 -29
  2869. package/dist/domain/components/viewport-state-component.js +0 -1
  2870. package/dist/domain/core/action.d.ts +0 -67
  2871. package/dist/domain/core/component.d.ts +0 -46
  2872. package/dist/domain/core/expression.d.ts +0 -50
  2873. package/dist/domain/core/json-schema.js +0 -1
  2874. package/dist/domain/core/migrations.d.ts +0 -99
  2875. package/dist/domain/core/migrations.js +0 -1
  2876. package/dist/domain/core/model.d.ts +0 -127
  2877. package/dist/domain/core/reflection.d.ts +0 -114
  2878. package/dist/domain/core/reflection.js +0 -1
  2879. package/dist/domain/core/state.d.ts +0 -10
  2880. package/dist/domain/domain-builder.d.ts +0 -40
  2881. package/dist/domain/domain-builder.js +0 -1
  2882. package/dist/domain/domain-context/recipe-system/recipes.d.ts +0 -57
  2883. package/dist/domain/domain-context/recipe-system/recipes.js +0 -1
  2884. package/dist/domain/expressions/constant-expressions.d.ts +0 -9
  2885. package/dist/domain/expressions/constant-expressions.js +0 -1
  2886. package/dist/domain/expressions/custom-expression.d.ts +0 -13
  2887. package/dist/domain/expressions/custom-expression.js +0 -1
  2888. package/dist/domain/expressions/index.d.ts +0 -1
  2889. package/dist/domain/expressions/index.js +0 -1
  2890. package/dist/domain/expressions/memoize-expression.d.ts +0 -17
  2891. package/dist/domain/expressions/prepare-domain-expressions.d.ts +0 -16
  2892. package/dist/domain/invariants/builtin-invariant.d.ts +0 -5
  2893. package/dist/domain/invariants/custom-invariants.d.ts +0 -22
  2894. package/dist/domain/invariants/custom-invariants.js +0 -1
  2895. package/dist/domain/invariants/invariants.d.ts +0 -68
  2896. package/dist/domain/invariants/invariants.js +0 -1
  2897. package/dist/domain/invariants/violation-component.js +0 -1
  2898. package/dist/domain/invariants/violation.d.ts +0 -85
  2899. package/dist/domain/invariants/violation.js +0 -1
  2900. package/dist/domain/relations/all-of-type-relation.d.ts +0 -33
  2901. package/dist/domain/relations/all-of-type-relation.js +0 -1
  2902. package/dist/domain/relations/component-factories.d.ts +0 -15
  2903. package/dist/domain/relations/component-factories.js +0 -1
  2904. package/dist/domain/relations/composed-of.d.ts +0 -12
  2905. package/dist/domain/relations/composed-of.js +0 -1
  2906. package/dist/domain/relations/direct-relation.d.ts +0 -29
  2907. package/dist/domain/relations/indirect-relation.d.ts +0 -81
  2908. package/dist/domain/relations/indirect-relation.js +0 -1
  2909. package/dist/domain/relations/reference-component.d.ts +0 -18
  2910. package/dist/domain/relations/reference-component.js +0 -1
  2911. package/dist/domain/relations/reference-field.d.ts +0 -7
  2912. package/dist/domain/relations/relation-factory.d.ts +0 -19
  2913. package/dist/domain/relations/relation-factory.js +0 -1
  2914. package/dist/domain/relations/relation-implementation.d.ts +0 -8
  2915. package/dist/domain/system-components/angle-indicator.d.ts +0 -21
  2916. package/dist/domain/system-components/angle-indicator.js +0 -1
  2917. package/dist/domain/system-components/attribute-switch.d.ts +0 -8
  2918. package/dist/domain/system-components/attribute-switch.js +0 -1
  2919. package/dist/domain/system-components/autorotate-camera-component.d.ts +0 -19
  2920. package/dist/domain/system-components/autorotate-camera-component.js +0 -1
  2921. package/dist/domain/system-components/basic-sidebar-footer.d.ts +0 -8
  2922. package/dist/domain/system-components/basic-sidebar-footer.js +0 -1
  2923. package/dist/domain/system-components/camera-based-hidden-entity-object.js +0 -1
  2924. package/dist/domain/system-components/camera-based-hidden-entity.js +0 -1
  2925. package/dist/domain/system-components/canvas-config.d.ts +0 -87
  2926. package/dist/domain/system-components/canvas-config.js +0 -1
  2927. package/dist/domain/system-components/canvas-custom-environment.js +0 -1
  2928. package/dist/domain/system-components/canvas-padding.d.ts +0 -25
  2929. package/dist/domain/system-components/canvas-padding.js +0 -1
  2930. package/dist/domain/system-components/canvas-preset-environment.d.ts +0 -37
  2931. package/dist/domain/system-components/canvas-preset-environment.js +0 -1
  2932. package/dist/domain/system-components/child-entity-recipe-hierarchy.d.ts +0 -21
  2933. package/dist/domain/system-components/child-entity-recipe-hierarchy.js +0 -1
  2934. package/dist/domain/system-components/client-side-image.d.ts +0 -14
  2935. package/dist/domain/system-components/client-side-image.js +0 -1
  2936. package/dist/domain/system-components/color-value.js +0 -1
  2937. package/dist/domain/system-components/common/angle-indicator-schema.d.ts +0 -292
  2938. package/dist/domain/system-components/common/angle-indicator-schema.js +0 -1
  2939. package/dist/domain/system-components/common/dimension-indicator-schema.d.ts +0 -607
  2940. package/dist/domain/system-components/common/dimension-indicator-schema.js +0 -1
  2941. package/dist/domain/system-components/custom-header.d.ts +0 -11
  2942. package/dist/domain/system-components/custom-header.js +0 -1
  2943. package/dist/domain/system-components/custom-price-footer.js +0 -1
  2944. package/dist/domain/system-components/custom-sidebar-footer.d.ts +0 -11
  2945. package/dist/domain/system-components/custom-sidebar-footer.js +0 -1
  2946. package/dist/domain/system-components/dimension-indicator.d.ts +0 -31
  2947. package/dist/domain/system-components/dimension-indicator.js +0 -1
  2948. package/dist/domain/system-components/editable-angle-indicator.d.ts +0 -38
  2949. package/dist/domain/system-components/editable-angle-indicator.js +0 -1
  2950. package/dist/domain/system-components/editable-distance-dimension-indicator.d.ts +0 -42
  2951. package/dist/domain/system-components/editable-distance-dimension-indicator.js +0 -1
  2952. package/dist/domain/system-components/editable-offset-indicator.d.ts +0 -41
  2953. package/dist/domain/system-components/editable-offset-indicator.js +0 -1
  2954. package/dist/domain/system-components/editable-size-indicator.d.ts +0 -38
  2955. package/dist/domain/system-components/editable-size-indicator.js +0 -1
  2956. package/dist/domain/system-components/entity-header.d.ts +0 -22
  2957. package/dist/domain/system-components/entity-header.js +0 -1
  2958. package/dist/domain/system-components/exit-tool-mode-fab.d.ts +0 -25
  2959. package/dist/domain/system-components/exit-tool-mode-fab.js +0 -1
  2960. package/dist/domain/system-components/finalize-action.d.ts +0 -20
  2961. package/dist/domain/system-components/finalize-action.js +0 -1
  2962. package/dist/domain/system-components/finalize-component.js +0 -1
  2963. package/dist/domain/system-components/fit-selection-orthographic-camera-component.js +0 -1
  2964. package/dist/domain/system-components/fit-selection-perspective-camera-component.js +0 -1
  2965. package/dist/domain/system-components/fixed-header.d.ts +0 -10
  2966. package/dist/domain/system-components/fixed-header.js +0 -1
  2967. package/dist/domain/system-components/floating-header.d.ts +0 -10
  2968. package/dist/domain/system-components/floating-header.js +0 -1
  2969. package/dist/domain/system-components/hidden-header.d.ts +0 -8
  2970. package/dist/domain/system-components/hidden-header.js +0 -1
  2971. package/dist/domain/system-components/hidden-sidebar-footer.d.ts +0 -21
  2972. package/dist/domain/system-components/hidden-sidebar-footer.js +0 -1
  2973. package/dist/domain/system-components/horizontal-tabs.d.ts +0 -28
  2974. package/dist/domain/system-components/horizontal-tabs.js +0 -1
  2975. package/dist/domain/system-components/list-selector-dimension-indicator.d.ts +0 -30
  2976. package/dist/domain/system-components/list-selector-dimension-indicator.js +0 -1
  2977. package/dist/domain/system-components/multilingual-text-value.js +0 -1
  2978. package/dist/domain/system-components/navigation-steps.d.ts +0 -19
  2979. package/dist/domain/system-components/navigation-steps.js +0 -1
  2980. package/dist/domain/system-components/offset-anchors.d.ts +0 -20
  2981. package/dist/domain/system-components/offset-anchors.js +0 -1
  2982. package/dist/domain/system-components/offset-indicator.d.ts +0 -84
  2983. package/dist/domain/system-components/offset-indicator.js +0 -1
  2984. package/dist/domain/system-components/offset.d.ts +0 -31
  2985. package/dist/domain/system-components/offset.js +0 -1
  2986. package/dist/domain/system-components/other-action.d.ts +0 -14
  2987. package/dist/domain/system-components/other-action.js +0 -1
  2988. package/dist/domain/system-components/property-page.d.ts +0 -16
  2989. package/dist/domain/system-components/property-page.js +0 -1
  2990. package/dist/domain/system-components/read-sidebar-footer.d.ts +0 -8
  2991. package/dist/domain/system-components/read-sidebar-footer.js +0 -1
  2992. package/dist/domain/system-components/replace-entity-recipe-hierarchy.d.ts +0 -21
  2993. package/dist/domain/system-components/replace-entity-recipe-hierarchy.js +0 -1
  2994. package/dist/domain/system-components/rotatable.js +0 -1
  2995. package/dist/domain/system-components/rotation-handle.d.ts +0 -53
  2996. package/dist/domain/system-components/rotation-handle.js +0 -1
  2997. package/dist/domain/system-components/save-template-thumbnail.d.ts +0 -14
  2998. package/dist/domain/system-components/save-template-thumbnail.js +0 -1
  2999. package/dist/domain/system-components/scene-entity-add-fab.d.ts +0 -32
  3000. package/dist/domain/system-components/scene-entity-add-fab.js +0 -1
  3001. package/dist/domain/system-components/scene-entity-animation.js +0 -1
  3002. package/dist/domain/system-components/scene-entity-control.js +0 -1
  3003. package/dist/domain/system-components/scene-entity-delete-fab.d.ts +0 -19
  3004. package/dist/domain/system-components/scene-entity-delete-fab.js +0 -1
  3005. package/dist/domain/system-components/scene-entity-floor-object.js +0 -1
  3006. package/dist/domain/system-components/scene-entity-html-hotspot.d.ts +0 -27
  3007. package/dist/domain/system-components/scene-entity-html-hotspot.js +0 -1
  3008. package/dist/domain/system-components/scene-entity-navigation-hotspot.d.ts +0 -20
  3009. package/dist/domain/system-components/scene-entity-navigation-hotspot.js +0 -1
  3010. package/dist/domain/system-components/scene-entity-object-html-hotspot.d.ts +0 -31
  3011. package/dist/domain/system-components/scene-entity-object-html-hotspot.js +0 -1
  3012. package/dist/domain/system-components/scene-entity-select-hotspot.d.ts +0 -5
  3013. package/dist/domain/system-components/scene-entity-select-hotspot.js +0 -1
  3014. package/dist/domain/system-components/scene-entity-wall-object.js +0 -1
  3015. package/dist/domain/system-components/selectable-component.js +0 -1
  3016. package/dist/domain/system-components/sidebar-tabs.d.ts +0 -29
  3017. package/dist/domain/system-components/sidebar-tabs.js +0 -1
  3018. package/dist/domain/system-components/simple-summary.js +0 -1
  3019. package/dist/domain/system-components/size.d.ts +0 -21
  3020. package/dist/domain/system-components/size.js +0 -1
  3021. package/dist/domain/system-components/sketching-draw.d.ts +0 -17
  3022. package/dist/domain/system-components/sketching-draw.js +0 -1
  3023. package/dist/domain/system-components/sketching-edit.d.ts +0 -28
  3024. package/dist/domain/system-components/sketching-edit.js +0 -1
  3025. package/dist/domain/system-components/summary-component.js +0 -1
  3026. package/dist/domain/system-components/text-value.js +0 -1
  3027. package/dist/domain/system-components/tool-controls.js +0 -1
  3028. package/dist/domain/system-components/tool-menu-fab.d.ts +0 -40
  3029. package/dist/domain/system-components/tool-menu-fab.js +0 -1
  3030. package/dist/domain/system-components/toolbar.d.ts +0 -13
  3031. package/dist/domain/system-components/toolbar.js +0 -1
  3032. package/dist/domain/system-components/universal-sidebar-footer.d.ts +0 -12
  3033. package/dist/domain/system-components/universal-sidebar-footer.js +0 -1
  3034. package/dist/domain/system-components/view-controls.js +0 -1
  3035. package/dist/extras/assistant/AssistantChat.d.ts +0 -6
  3036. package/dist/extras/assistant/AssistantChat.js +0 -1
  3037. package/dist/extras/assistant/index.d.ts +0 -1
  3038. package/dist/extras/assistant/index.js +0 -1
  3039. package/dist/phoenix/application-spec/generate-assistant-prompt.d.ts +0 -12
  3040. package/dist/phoenix/application-spec/generate-assistant-prompt.js +0 -1
  3041. package/dist/phoenix/commands/generate-project-files.d.ts +0 -6
  3042. package/dist/phoenix/commands/generate-project-files.js +0 -1
  3043. package/dist/phoenix/commands/generated-env-markers.d.ts +0 -7
  3044. package/dist/phoenix/commands/generated-env-markers.js +0 -1
  3045. package/dist/phoenix/services/lingui.d.ts +0 -7
  3046. package/dist/phoenix/services/lingui.js +0 -1
  3047. package/dist/react-sdk/application-runtime/runtime/god-mode.d.ts +0 -19
  3048. package/dist/react-sdk/application-runtime/runtime/god-mode.js +0 -1
  3049. package/dist/react-sdk/loading-state/LoadingStateProvider.d.ts +0 -31
  3050. package/dist/react-sdk/loading-state/LoadingStateProvider.js +0 -1
  3051. package/dist/react-sdk/loading-state/loading-state-manager.d.ts +0 -32
  3052. package/dist/react-sdk/loading-state/loading-state-manager.js +0 -1
  3053. /package/dist/application-spec/{core → enhanced-json}/eval-code-uses-self.d.ts +0 -0
  3054. /package/dist/application-spec/{core → enhanced-json}/eval-code-uses-self.js +0 -0
  3055. /package/dist/application-spec/{core → enhanced-json}/eval-to-constant.js +0 -0
  3056. /package/dist/{domain/components/component-reader-types.js → application-spec/parse-application-files/spec/expressions/expression-read.js} +0 -0
  3057. /package/dist/{domain/core/action.js → configurator/application-runtime/extensions/systems/assistant-system/assistant-annotation.js} +0 -0
  3058. /package/dist/{domain/core/enhanced-json-schema.js → configurator/application-runtime/extensions/systems/assistant-system/assistant-image-view.js} +0 -0
  3059. /package/dist/{domain/core/schema-validator.js → configurator/ui/assistant/form/form-model.js} +0 -0
  3060. /package/dist/{domain/relations/reference-field.js → configurator/ui/assistant/form/form-state.js} +0 -0
  3061. /package/dist/{domain/core/expression.js → configurator/ui/assistant/form-elements/form-element-props.js} +0 -0
  3062. /package/dist/domain/{relations/relation-implementation.js → core/action/action.js} +0 -0
  3063. /package/dist/domain/{components → core/component}/legacy-filter.js +0 -0
  3064. /package/dist/domain/{components → core/component}/system-component-filter.js +0 -0
  3065. /package/dist/domain/{components → core/component}/system-virtual-entity.d.ts +0 -0
  3066. /package/dist/domain/{components → core/component}/updates.js +0 -0
  3067. /package/dist/domain/{invariants → core/invariant}/builtin-invariant.js +0 -0
  3068. /package/dist/domain/{invariants → core/invariant}/violation-component.d.ts +0 -0
  3069. /package/dist/domain/core/{alias.d.ts → model/alias.d.ts} +0 -0
  3070. /package/dist/domain/core/{alias.js → model/alias.js} +0 -0
  3071. /package/dist/domain/core/{common-definitions.d.ts → model/common-definitions.d.ts} +0 -0
  3072. /package/dist/domain/core/{common-definitions.js → model/common-definitions.js} +0 -0
  3073. /package/dist/domain/core/{component.js → model/component.js} +0 -0
  3074. /package/dist/domain/core/{model.js → model/model.js} +0 -0
  3075. /package/dist/domain/core/{preset.d.ts → model/preset.d.ts} +0 -0
  3076. /package/dist/domain/core/{preset.js → model/preset.js} +0 -0
  3077. /package/dist/domain/{relations → core/relation}/direct-relation.js +0 -0
  3078. /package/dist/domain/core/{schema-validator-ajv.d.ts → schema/create-ajv-schema-validator.d.ts} +0 -0
  3079. /package/dist/domain/core/{schema-validator-ajv.js → schema/create-ajv-schema-validator.js} +0 -0
  3080. /package/dist/domain/core/{schema-validator-csp.d.ts → schema/create-csp-schema-validator.d.ts} +0 -0
  3081. /package/dist/domain/core/{schema-validator-csp.js → schema/create-csp-schema-validator.js} +0 -0
  3082. /package/dist/domain/core/{enhanced-json-schema.d.ts → schema/enhanced-json-schema.d.ts} +0 -0
  3083. /package/dist/domain/core/{json-schema.d.ts → schema/extended-schema-validator.d.ts} +0 -0
  3084. /package/dist/domain/core/{schema-validator.d.ts → schema/schema-validator.d.ts} +0 -0
  3085. /package/dist/domain/core/{state.js → state/state.js} +0 -0
  3086. /package/dist/domain/{actions → domain-runtime}/action-factory.js +0 -0
  3087. /package/dist/domain/{expressions → domain-runtime/spec}/memoize-expression.js +0 -0
  3088. /package/dist/domain/{expressions → domain-runtime/spec}/prepare-domain-expressions.js +0 -0
  3089. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity-object.d.ts +0 -0
  3090. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity.d.ts +0 -0
  3091. /package/dist/domain/{system-components → extensions}/canvas-custom-environment.d.ts +0 -0
  3092. /package/dist/domain/{system-components → extensions}/color-value.d.ts +0 -0
  3093. /package/dist/domain/{system-components → extensions}/common/dimension-indicators.d.ts +0 -0
  3094. /package/dist/domain/{system-components → extensions}/common/dimension-indicators.js +0 -0
  3095. /package/dist/domain/{system-components → extensions}/common/editable-indicator-button-variant.d.ts +0 -0
  3096. /package/dist/domain/{system-components → extensions}/common/editable-indicator-button-variant.js +0 -0
  3097. /package/dist/domain/{system-components → extensions}/custom-price-footer.d.ts +0 -0
  3098. /package/dist/domain/{system-components → extensions}/finalize-component.d.ts +0 -0
  3099. /package/dist/domain/{system-components → extensions}/fit-selection-orthographic-camera-component.d.ts +0 -0
  3100. /package/dist/domain/{system-components → extensions}/fit-selection-perspective-camera-component.d.ts +0 -0
  3101. /package/dist/domain/{system-components → extensions}/multilingual-text-value.d.ts +0 -0
  3102. /package/dist/domain/{system-components → extensions}/rotatable.d.ts +0 -0
  3103. /package/dist/domain/{system-components → extensions}/scene-entity-animation.d.ts +0 -0
  3104. /package/dist/domain/{system-components → extensions}/scene-entity-control.d.ts +0 -0
  3105. /package/dist/domain/{system-components → extensions}/scene-entity-floor-object.d.ts +0 -0
  3106. /package/dist/domain/{system-components → extensions}/scene-entity-wall-object.d.ts +0 -0
  3107. /package/dist/domain/{system-components → extensions}/selectable-component.d.ts +0 -0
  3108. /package/dist/domain/{system-components → extensions}/simple-summary.d.ts +0 -0
  3109. /package/dist/domain/{system-components → extensions}/summary-component.d.ts +0 -0
  3110. /package/dist/domain/{system-components → extensions}/text-value.d.ts +0 -0
  3111. /package/dist/domain/{system-components → extensions}/tool-controls.d.ts +0 -0
  3112. /package/dist/domain/{system-components → extensions}/view-controls.d.ts +0 -0
  3113. /package/dist/{application-spec/core → domain/spec/application}/application-instance.d.ts +0 -0
  3114. /package/dist/{application-spec/core → domain/spec/application}/application-instance.js +0 -0
  3115. /package/dist/{application-spec/parse-application-files/spec/components/component-entry.js → domain/spec/components/sdk-code-ref.js} +0 -0
  3116. /package/dist/{application-spec/parse-application-files/spec/expressions/expression.js → domain/spec/expressions/sdk-expression-implementation.js} +0 -0
  3117. /package/dist/{application-spec/parse-application-files/spec/components → domain/spec/markers}/component-prop-target.d.ts +0 -0
  3118. /package/dist/{application-spec/parse-application-files/spec/components → domain/spec/markers}/component-prop-target.js +0 -0
  3119. /package/dist/{application-spec/core → domain/spec}/markers/eval-marker.d.ts +0 -0
  3120. /package/dist/{application-spec/core → domain/spec}/markers/eval-marker.js +0 -0
  3121. /package/dist/{application-spec/generate-application → domain/spec}/runtime/admin-runtime/states-runtime.js +0 -0
  3122. /package/dist/{application-spec/generate-application → domain/spec}/runtime/configurator-runtime/states-runtime.js +0 -0
  3123. /package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/actions-runtime.js +0 -0
  3124. /package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/data-runtime.js +0 -0
  3125. /package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/preset-runtime.js +0 -0
  3126. /package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/theme-runtime.js +0 -0
  3127. /package/dist/{application-spec/generate-application → domain/spec}/runtime/sections/transformers-runtime.js +0 -0
  3128. /package/dist/{configurator/configurator-context → react-sdk/domain-application-context}/OnPresetLoadedHandler.d.ts +0 -0
  3129. /package/dist/{configurator/configurator-context → react-sdk/integration}/IntegrationSubscription.d.ts +0 -0
  3130. /package/dist/{configurator/configurator-context → react-sdk/lifecycle-providers}/LifecycleProviders.d.ts +0 -0
  3131. /package/dist/{configurator/configurator-context → react-sdk/preset-selection}/PresetSelectionProvider.d.ts +0 -0
@@ -0,0 +1,3485 @@
1
+ # Ardent Compressor
2
+
3
+ Quote an engineered product from a form, with no 3D model at all. An industrial compressor maker, Ardent Air, lets plant engineers size a rotary screw compressor and ask for a firm quote. The engineer works through five steps: the air demand, the air treatment, the plant room, service and delivery, and a review. Questions appear only when an earlier answer makes them relevant, conflicts between choices are flagged at the field that can fix them, and a price breakdown with every line, the subtotal and an express-delivery surcharge follows each change. **Request quote** sends the configuration to an application engineer and shows the answer. The configurator mounts no canvas: the spec holds the product, the prices, the rules and the quote action, and the layout is an ordinary React form.
4
+
5
+ - [Try it](#try-it)
6
+ - [What the example demonstrates](#what-the-example-demonstrates)
7
+ - [A configurator with no scene](#a-configurator-with-no-scene)
8
+ - [Steps from the spec](#steps-from-the-spec)
9
+ - [Questions that depend on earlier answers](#questions-that-depend-on-earlier-answers)
10
+ - [Options that follow the configuration](#options-that-follow-the-configuration)
11
+ - [Validation from invariants](#validation-from-invariants)
12
+ - [A live price breakdown](#a-live-price-breakdown)
13
+ - [Request a quote](#request-a-quote)
14
+ - [On a phone](#on-a-phone)
15
+ - [Test cases](#test-cases)
16
+ - [What this layout leaves out](#what-this-layout-leaves-out)
17
+ - [Related pages](#related-pages)
18
+ - [Complete Implementation](#complete-implementation)
19
+
20
+ ## Try it
21
+
22
+ The phone version is under [On a phone](#on-a-phone).
23
+
24
+ ## What the example demonstrates
25
+
26
+ [Custom Layout](?path=/docs/layouts-custom-layout--docs) explains how a project layout works. This page uses the same element for a product that has no model: the configuration backend, with its spec, rules, storage and finalize actions, runs a form.
27
+
28
+ | Piece | Where |
29
+ | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
30
+ | A `ConfiguratorLayout` that mounts no `LayoutSlots.SharedCanvas` | [A configurator with no scene](#a-configurator-with-no-scene) |
31
+ | `navigationSteps` with `phx.frontend.useStepNavigation()` | `StepHeader`, [Steps from the spec](#steps-from-the-spec) |
32
+ | `$filter.active` with `$eval`, and `phx.frontend.useComponent()` to follow it | `ChoiceField`, [Questions that depend on earlier answers](#questions-that-depend-on-earlier-answers) |
33
+ | `attributeSelection` options read from an expression | [Options that follow the configuration](#options-that-follow-the-configuration) |
34
+ | `warning` invariants shown at the field, read with `phx.frontend.useFinalizeViolations()` | `useWarnings`, `FieldShell`, [Validation from invariants](#validation-from-invariants) |
35
+ | Typed expressions declared in `expressions:` and read with `phx.frontend.useRootEntityState()` | `PriceBreakdown`, [A live price breakdown](#a-live-price-breakdown) |
36
+ | `genericDimension`, `attributeSwitch` and `textValue` controls in the layout's own inputs | `NumberField`, `SwitchField`, `TextInputField` |
37
+ | `phx.frontend.useFinalizeActions()` with a project handler that stands in for a webhook | `QuoteAction`, `request-quote.ts`, [Request a quote](#request-a-quote) |
38
+ | `phx.frontend.useUndoRedo()` in the brand bar | `DesktopPage` |
39
+
40
+ ## A configurator with no scene
41
+
42
+ `src/elements/ConfiguratorLayout.tsx` mounts the services and a page, and never `LayoutSlots.SharedCanvas`. Without a canvas the app loader leaves as soon as the configuration is up, nothing waits for a scene, and no model, environment map or texture is downloaded, even when the spec names one; see [Configurator Interface → App Loader](?path=/docs/phoenix-configurator-interface--docs#app-loader). The spec needs no camera and no scene component.
43
+
44
+ ```tsx
45
+ import { Box } from '@mui/material'
46
+
47
+ import { LayoutSlots } from '@salsita-ai/sdk/configurator'
48
+
49
+ import { ARDENT } from '../_form/index.js'
50
+ import { DesktopPage } from '../_shared/DesktopPage.js'
51
+ import { PhonePage } from '../_shared/PhonePage.js'
52
+
53
+ // A quote builder with no scene: the layout mounts the services and a page, never `LayoutSlots.SharedCanvas`, so the
54
+ // configurator loads no 3D scene and the app loader does not wait for one. Desktop or phone follows the width of the
55
+ // configurator's container.
56
+ const ConfiguratorLayout = () => {
57
+ // `null` until the container has been measured
58
+ const viewports = phx.frontend.useActiveViewports()
59
+ const isDesktop = viewports?.includes('desktop') ?? false
60
+
61
+ return (
62
+ <Box component="div" sx={{ position: 'absolute', inset: 0, overflow: 'clip', bgcolor: ARDENT.page }}>
63
+ <LayoutSlots.Services />
64
+ {viewports !== null && (isDesktop ? <DesktopPage /> : <PhonePage />)}
65
+ </Box>
66
+ )
67
+ }
68
+
69
+ export default phx.frontend.createCustomPhoenixLayoutElement('ConfiguratorLayout', ConfiguratorLayout)
70
+ ```
71
+
72
+ `phx.frontend.useActiveViewports()` measures the configurator's container, not the window, so the **Phone** story's 390-pixel frame shows the phone page. Finalizing works the same without a canvas, as long as the spec asks for no client-side images: an image capture waits for a canvas and fails after 10 seconds without one.
73
+
74
+ ## Steps from the spec
75
+
76
+ The steps are the spec's `navigationSteps`. Each step names the navigation state it enters; the last one also holds `requested`, the state the quote handler enters, so the review stays the active step after the request.
77
+
78
+ ```yaml
79
+ navigationStates:
80
+ - duty
81
+ - treatment
82
+ - installation
83
+ - service
84
+ - review
85
+ - requested
86
+ ```
87
+
88
+ ```yaml
89
+ components:
90
+ Compressor:
91
+ navigationSteps:
92
+ main:
93
+ steps:
94
+ - label: Duty
95
+ navigationStates:
96
+ - duty
97
+ - label: Air treatment
98
+ navigationStates:
99
+ - treatment
100
+ - label: Installation
101
+ navigationStates:
102
+ - installation
103
+ - label: Service and delivery
104
+ navigationStates:
105
+ - service
106
+ - label: Review
107
+ navigationStates:
108
+ - review
109
+ - requested
110
+ ```
111
+
112
+ `StepHeader` draws them with `phx.frontend.useStepNavigation()`: each step has a `label`, a `status` of `complete`, `active` or `upcoming`, and `goTo(index)` enters it. The hook enforces no order, so the engineer can jump back to any step from the review. A step that holds a conflict carries a mark until it is resolved; which step resolves which invariant is the layout's own map, `STEP_WARNINGS`. `StepForm` renders the active step's sections by switching on `phx.frontend.useActiveNavigationState()`, and the page's **Back** and **Next** buttons call `previous()` and `next()`.
113
+
114
+ ```tsx
115
+ import { Box, ButtonBase, Typography } from '@mui/material'
116
+
117
+ import { ARDENT, useWarnings } from '../_form/index.js'
118
+ import { STEP_WARNINGS } from './step-warnings.js'
119
+
120
+ const CHECK_ICON = 'M5 12.5 10 17.5 19 7'
121
+
122
+ interface StepHeaderProps {
123
+ readonly compact: boolean
124
+ }
125
+
126
+ // The spec's `navigationSteps` as a stepper. Every step can be entered, in any order; a step that holds a warning
127
+ // carries a mark until the warning is resolved. On a phone the stepper is one line with a segmented progress bar.
128
+ export const StepHeader = ({ compact }: StepHeaderProps) => {
129
+ const { steps, activeStep, goTo } = phx.frontend.useStepNavigation()
130
+ const warnings = useWarnings()
131
+
132
+ const hasWarning = (states: readonly string[]) => {
133
+ return states.some(state => warnings.some(warning => STEP_WARNINGS[state]?.includes(warning.type)))
134
+ }
135
+
136
+ if (compact) {
137
+ return (
138
+ <Box
139
+ component="nav"
140
+ aria-label="Quote steps"
141
+ sx={{ display: 'grid', gap: 1, paddingInline: 2, paddingBlock: 1.5 }}
142
+ >
143
+ <Box component="div" sx={{ display: 'flex', alignItems: 'baseline', gap: 1 }}>
144
+ <Typography sx={{ fontFamily: ARDENT.font, fontSize: 13, color: ARDENT.steel }}>
145
+ Step {(activeStep?.index ?? 0) + 1} of {steps.length}
146
+ </Typography>
147
+ <Typography component="h2" sx={{ fontFamily: ARDENT.font, fontSize: 17, fontWeight: 600, color: ARDENT.ink }}>
148
+ {activeStep?.label}
149
+ </Typography>
150
+ </Box>
151
+ <Box component="ol" sx={{ display: 'flex', gap: 0.5, margin: 0, padding: 0, listStyle: 'none' }}>
152
+ {steps.map(step => (
153
+ <Box component="li" key={step.state} sx={{ flex: 1 }}>
154
+ <ButtonBase
155
+ aria-label={`${step.label}${hasWarning(step.navigationStates) ? ', needs attention' : ''}`}
156
+ aria-current={step.status === 'active' ? 'step' : undefined}
157
+ onClick={() => goTo(step.index)}
158
+ sx={{
159
+ display: 'block',
160
+ inlineSize: '100%',
161
+ blockSize: 6,
162
+ borderRadius: 3,
163
+ // A bigger target than the bar itself, for a finger
164
+ outline: '8px solid transparent',
165
+ bgcolor: hasWarning(step.navigationStates)
166
+ ? ARDENT.warning
167
+ : step.status === 'upcoming'
168
+ ? ARDENT.line
169
+ : ARDENT.signal,
170
+ }}
171
+ />
172
+ </Box>
173
+ ))}
174
+ </Box>
175
+ </Box>
176
+ )
177
+ }
178
+
179
+ return (
180
+ <Box
181
+ component="nav"
182
+ aria-label="Quote steps"
183
+ sx={{ display: 'flex', alignItems: 'center', gap: 1, paddingInline: 4, paddingBlock: 1.5, overflowX: 'auto' }}
184
+ >
185
+ {steps.map((step, index) => {
186
+ const warn = hasWarning(step.navigationStates)
187
+ const isActive = step.status === 'active'
188
+ const isComplete = step.status === 'complete'
189
+
190
+ return (
191
+ <Box component="div" key={step.state} sx={{ display: 'flex', alignItems: 'center', gap: 1, flex: 'none' }}>
192
+ {index > 0 && (
193
+ <Box
194
+ component="span"
195
+ aria-hidden
196
+ sx={{ inlineSize: 32, blockSize: 2, bgcolor: isComplete || isActive ? ARDENT.signal : ARDENT.line }}
197
+ />
198
+ )}
199
+ <ButtonBase
200
+ aria-current={isActive ? 'step' : undefined}
201
+ onClick={() => goTo(step.index)}
202
+ sx={{
203
+ display: 'flex',
204
+ alignItems: 'center',
205
+ gap: 1,
206
+ paddingInline: 1,
207
+ paddingBlock: 0.75,
208
+ borderRadius: 2,
209
+ '&:hover': { bgcolor: ARDENT.page },
210
+ '&.Mui-focusVisible': { outline: `2px solid ${ARDENT.navy}` },
211
+ }}
212
+ >
213
+ <Box
214
+ component="span"
215
+ sx={{
216
+ display: 'grid',
217
+ placeItems: 'center',
218
+ inlineSize: 28,
219
+ blockSize: 28,
220
+ borderRadius: '50%',
221
+ fontFamily: ARDENT.font,
222
+ fontSize: 14,
223
+ fontWeight: 600,
224
+ color: isActive || isComplete ? ARDENT.panel : ARDENT.steel,
225
+ bgcolor: isActive ? ARDENT.signal : isComplete ? ARDENT.navy : 'transparent',
226
+ border: isActive || isComplete ? 'none' : `2px solid ${ARDENT.line}`,
227
+ }}
228
+ >
229
+ {isComplete ? (
230
+ <Box component="svg" viewBox="0 0 24 24" aria-hidden sx={{ inlineSize: 16, blockSize: 16 }}>
231
+ <path d={CHECK_ICON} fill="none" stroke="currentColor" strokeWidth={3} strokeLinecap="round" />
232
+ </Box>
233
+ ) : (
234
+ index + 1
235
+ )}
236
+ </Box>
237
+ <Typography
238
+ component="span"
239
+ sx={{
240
+ fontFamily: ARDENT.font,
241
+ fontSize: 15,
242
+ fontWeight: isActive ? 600 : 500,
243
+ color: isActive ? ARDENT.ink : ARDENT.steel,
244
+ whiteSpace: 'nowrap',
245
+ }}
246
+ >
247
+ {step.label}
248
+ </Typography>
249
+ {warn && (
250
+ <Box
251
+ component="span"
252
+ role="img"
253
+ aria-label="needs attention"
254
+ sx={{ inlineSize: 8, blockSize: 8, borderRadius: '50%', bgcolor: ARDENT.warning }}
255
+ />
256
+ )}
257
+ </ButtonBase>
258
+ </Box>
259
+ )
260
+ })}
261
+ </Box>
262
+ )
263
+ }
264
+ ```
265
+
266
+ ## Questions that depend on earlier answers
267
+
268
+ A question that only makes sense after an earlier answer is a spec component with a filter. The dew point is asked only with a desiccant dryer, and heat recovery only for a water-cooled machine:
269
+
270
+ ```yaml
271
+ components:
272
+ Compressor:
273
+ attributeSelection:
274
+ dewPoint:
275
+ value:
276
+ $bind: dewPoint
277
+ options:
278
+ - label: −40 °C
279
+ description: Outdoor lines, food and pharma
280
+ value: Minus40
281
+ - label: −70 °C
282
+ description: Electronics and laboratories
283
+ value: Minus70
284
+ $filter:
285
+ active:
286
+ $eval: self.dryer === 'Desiccant'
287
+ attributeSwitch:
288
+ heatRecovery:
289
+ value:
290
+ $bind: heatRecovery
291
+ $filter:
292
+ active:
293
+ $eval: self.cooling === 'Water'
294
+ ```
295
+
296
+ The layout lists every field of a step and lets the spec decide which exist. A control hook such as `phx.frontend.useAttributeSelection()` throws when its component is not active, so `ChoiceField` first asks `phx.frontend.useComponent()` for the component and mounts the cards only when it is there. `SwitchField` does the same for `attributeSwitch`. The value of a hidden question stays in the configuration, so the expressions and the summary read it only where the question applies, such as the dew point of a desiccant dryer.
297
+
298
+ ```tsx
299
+ import { Box, ButtonBase, Typography } from '@mui/material'
300
+ import type { KeyboardEvent } from 'react'
301
+
302
+ import { attributeSelectionComponent } from '@salsita-ai/sdk/domain'
303
+
304
+ import { FieldShell } from './FieldShell.js'
305
+ import { ARDENT } from './tokens.js'
306
+
307
+ // Arrow keys move the selection between the cards, as in a native radio group
308
+ const ARROW_STEPS: Readonly<Record<string, number | undefined>> = {
309
+ ArrowRight: 1,
310
+ ArrowDown: 1,
311
+ ArrowLeft: -1,
312
+ ArrowUp: -1,
313
+ }
314
+
315
+ interface ChoiceFieldProps {
316
+ readonly instanceName: string
317
+ readonly label: string
318
+ readonly hint?: string
319
+ readonly warningTypes?: readonly string[]
320
+ readonly readOnly: boolean
321
+ // The narrowest a card gets before the cards wrap onto another row
322
+ readonly minCardWidth?: number
323
+ }
324
+
325
+ const ChoiceCards = ({ instanceName, label, hint, warningTypes, readOnly, minCardWidth = 150 }: ChoiceFieldProps) => {
326
+ const resolve = phx.frontend.useResolveLocalizable()
327
+ const compressorId = phx.frontend.useRootEntityId()
328
+ const { value, options } = phx.frontend.useAttributeSelection(compressorId, instanceName)
329
+ // An option a `fixable` or `fatal` invariant rules out is `disabled`, with the reason in its `hint`
330
+ const optionHint = options.find(option => option.disabled && option.hint)?.hint
331
+
332
+ const handleKeyDown = (event: KeyboardEvent<HTMLElement>, index: number) => {
333
+ const step = ARROW_STEPS[event.key]
334
+
335
+ if (step === undefined) {
336
+ return
337
+ }
338
+
339
+ event.preventDefault()
340
+ const next = (index + step + options.length) % options.length
341
+ options[next]?.onSelect()
342
+ event.currentTarget.parentElement?.querySelectorAll<HTMLElement>('[role="radio"]')[next]?.focus()
343
+ }
344
+
345
+ return (
346
+ <FieldShell id={`ardent-${instanceName}`} label={label} hint={optionHint ?? hint} warningTypes={warningTypes}>
347
+ <Box
348
+ component="div"
349
+ role="radiogroup"
350
+ aria-labelledby={`ardent-${instanceName}-label`}
351
+ sx={{ display: 'grid', gridTemplateColumns: `repeat(auto-fit, minmax(${minCardWidth}px, 1fr))`, gap: 1.25 }}
352
+ >
353
+ {options.map((option, index) => {
354
+ const isSelected = option.value === value
355
+ const description = resolve(option.description)
356
+
357
+ return (
358
+ <ButtonBase
359
+ key={String(option.value)}
360
+ role="radio"
361
+ aria-checked={isSelected}
362
+ aria-disabled={option.disabled}
363
+ tabIndex={isSelected ? 0 : -1}
364
+ disabled={readOnly && !isSelected}
365
+ onClick={readOnly ? undefined : option.onSelect}
366
+ onKeyDown={readOnly ? undefined : event => handleKeyDown(event, index)}
367
+ sx={{
368
+ display: 'grid',
369
+ gridTemplateColumns: 'auto 1fr',
370
+ alignItems: 'start',
371
+ columnGap: 1.25,
372
+ rowGap: 0.25,
373
+ padding: 1.5,
374
+ textAlign: 'start',
375
+ borderRadius: 2,
376
+ border: `1px solid ${isSelected ? ARDENT.signal : ARDENT.line}`,
377
+ boxShadow: isSelected ? `inset 0 0 0 1px ${ARDENT.signal}` : 'none',
378
+ bgcolor: isSelected ? ARDENT.signalTint : ARDENT.panel,
379
+ fontFamily: ARDENT.font,
380
+ opacity: option.disabled ? 0.45 : 1,
381
+ transition: 'border-color 140ms, background-color 140ms',
382
+ '&:hover': { borderColor: isSelected ? ARDENT.signal : ARDENT.steel },
383
+ '&.Mui-focusVisible': { outline: `2px solid ${ARDENT.navy}`, outlineOffset: 2 },
384
+ '&.Mui-disabled': { opacity: 0.45 },
385
+ }}
386
+ >
387
+ {/* The radio mark: a ring, filled with a dot when the card is chosen */}
388
+ <Box
389
+ component="span"
390
+ aria-hidden
391
+ sx={{
392
+ gridRow: 'span 2',
393
+ marginBlockStart: 0.25,
394
+ inlineSize: 18,
395
+ blockSize: 18,
396
+ borderRadius: '50%',
397
+ border: `2px solid ${isSelected ? ARDENT.signal : ARDENT.steel}`,
398
+ boxShadow: isSelected ? `inset 0 0 0 3px ${ARDENT.signalTint}` : 'none',
399
+ bgcolor: isSelected ? ARDENT.signal : 'transparent',
400
+ }}
401
+ />
402
+ <Typography
403
+ component="span"
404
+ sx={{ fontFamily: ARDENT.font, fontSize: 15, fontWeight: 600, color: ARDENT.ink }}
405
+ >
406
+ {resolve(option.title)}
407
+ </Typography>
408
+ {description && (
409
+ <Typography
410
+ component="span"
411
+ sx={{ fontFamily: ARDENT.font, fontSize: 13, lineHeight: 1.35, color: ARDENT.steel }}
412
+ >
413
+ {description}
414
+ </Typography>
415
+ )}
416
+ </ButtonBase>
417
+ )
418
+ })}
419
+ </Box>
420
+ </FieldShell>
421
+ )
422
+ }
423
+
424
+ // One `attributeSelection` of the spec as a group of cards. The field exists only while the spec's component is
425
+ // active: a `$filter` in the spec decides when a question is asked, and the layout follows it. The control hook throws
426
+ // for an inactive component, so the cards mount only after `useComponent` has found it. An option that a `fixable`
427
+ // invariant rules out is faded with its hint below the cards; it stays clickable, the change is rejected and the
428
+ // built-in snackbar says why.
429
+ export const ChoiceField = (props: ChoiceFieldProps) => {
430
+ const compressorId = phx.frontend.useRootEntityId()
431
+ const component = phx.frontend.useComponent({
432
+ entityId: compressorId,
433
+ componentType: attributeSelectionComponent,
434
+ instanceName: props.instanceName,
435
+ })
436
+
437
+ return component === null ? null : <ChoiceCards {...props} />
438
+ }
439
+ ```
440
+
441
+ ## Options that follow the configuration
442
+
443
+ The delivery options name their lead time, and express delivery is offered only for the stock frames up to 110 kW. The options are an expression instead of a list:
444
+
445
+ ```yaml
446
+ components:
447
+ Compressor:
448
+ attributeSelection:
449
+ delivery:
450
+ value:
451
+ $bind: delivery
452
+ options:
453
+ $read: $deliveryOptions
454
+ ```
455
+
456
+ `$deliveryOptions` in `src/expressions/compressor.ts` returns `{ label, description, value }` entries, "Standard, 6 weeks" and "Express, 3 weeks" for the first configuration. When a larger frame drops the express option while it is chosen, no card is selected and the `expressUnavailable` warning below tells the engineer to choose again.
457
+
458
+ ## Validation from invariants
459
+
460
+ The rules between choices are invariants of the spec. Every one is a `warning`: a change that breaks it is kept, so the engineer sees the conflict and fixes it where it is shown, and finalizing waits until no warning is left. A `fixable` or `fatal` invariant would reject the change instead, as the [Kestrel Kettle](?path=/docs/layouts-gallery-kestrel-kettle--docs#a-rule-between-two-choices) shows. Two rules name numbers in their message, so they are declared with `types` and build the message in code.
461
+
462
+ ```yaml
463
+ invariants:
464
+ Compressor:
465
+ flowRange:
466
+ types:
467
+ - flowAboveRange
468
+ desiccantNeedsFiltration:
469
+ type: desiccantNeedsFiltration
470
+ severity: warning
471
+ message: A desiccant dryer needs high-efficiency or oil-vapour filtration upstream, or oil aerosol spoils the desiccant.
472
+ receiverSize:
473
+ types:
474
+ - receiverTooSmall
475
+ expressUnavailable:
476
+ type: expressUnavailable
477
+ severity: warning
478
+ message: Express delivery covers stock frames up to 110 kW. Choose standard delivery for this frame.
479
+ companyMissing:
480
+ type: companyMissing
481
+ severity: warning
482
+ message: Enter the company the quote is for.
483
+ emailInvalid:
484
+ type: emailInvalid
485
+ severity: warning
486
+ message: Enter a valid email address for the quote.
487
+ ```
488
+
489
+ ```ts
490
+ const PRESSURE_LABEL = { Bar7: '7.5 bar', Bar10: '10 bar', Bar13: '13 bar' }
491
+ const RECEIVER_LITRES = { None: 0, Litres500: 500, Litres1000: 1000, Litres2000: 2000 }
492
+ const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/
493
+
494
+ // Each rule is a `warning` in the spec: a change that breaks it is kept, so the customer can fix the conflict where it
495
+ // is shown, and finalizing waits until no warning is left
496
+ export default phx.domain.implementCustomInvariants({
497
+ Compressor: {
498
+ // The largest frame delivers less air at a higher pressure, so the limit depends on an earlier choice
499
+ flowRange: s => {
500
+ if (s.flow <= s.$maxFlow) {
501
+ return []
502
+ }
503
+
504
+ return [
505
+ {
506
+ type: 'flowAboveRange',
507
+ severity: 'warning',
508
+ message: `At ${PRESSURE_LABEL[s.pressure]} the largest frame delivers ${s.$maxFlow.toFixed(1)} m³/min. Lower the flow or the pressure.`,
509
+ },
510
+ ]
511
+ },
512
+ desiccantNeedsFiltration: s => {
513
+ return s.dryer !== 'Desiccant' || s.filtration !== 'General'
514
+ },
515
+ // The message names the size the flow needs, so it is built here rather than in the spec
516
+ receiverSize: s => {
517
+ if (RECEIVER_LITRES[s.receiver] >= s.$minReceiverLitres) {
518
+ return []
519
+ }
520
+
521
+ return [
522
+ {
523
+ type: 'receiverTooSmall',
524
+ severity: 'warning',
525
+ message: `A fixed-speed compressor at ${s.flow.toFixed(1)} m³/min needs a receiver of at least ${s.$minReceiverLitres.toLocaleString('en')} L.`,
526
+ },
527
+ ]
528
+ },
529
+ expressUnavailable: s => {
530
+ return s.delivery !== 'Express' || s.$frameKw <= 110
531
+ },
532
+ companyMissing: s => {
533
+ return s.company.trim().length > 0
534
+ },
535
+ emailInvalid: s => {
536
+ return EMAIL.test(s.email.trim())
537
+ },
538
+ },
539
+ })
540
+ ```
541
+
542
+ The flow's limit depends on the pressure: at 13 bar the largest frame delivers less air. The `flow` dimension keeps a fixed range of 2 to 40 m³/min and the `flowAboveRange` warning carries the limit. A `max` read from an expression would not do: a pressure change that leaves the flow above a dimension's `max` is rejected with a built-in message, so the engineer could not choose 13 bar at all.
543
+
544
+ `useWarnings` resolves the warnings of the committed configuration. It reads them from `phx.frontend.useFinalizeViolations()`, which lists the violations that block finalizing.
545
+
546
+ ```ts
547
+ import { useMemo } from 'react'
548
+
549
+ export interface Warning {
550
+ readonly type: string
551
+ readonly text: string
552
+ }
553
+
554
+ // The warnings of the committed configuration with their text resolved. A `warning` invariant keeps the change, so its
555
+ // violation stays in the committed state until the customer resolves it, and finalizing waits for that.
556
+ // `useFinalizeViolations` lists them.
557
+ export const useWarnings = (): readonly Warning[] => {
558
+ const { violations } = phx.frontend.useFinalizeViolations()
559
+ const resolve = phx.frontend.useResolveLocalizable()
560
+
561
+ return useMemo(() => {
562
+ return (violations ?? []).map(({ violation }) => ({ type: violation.type, text: resolve(violation.message) ?? '' }))
563
+ }, [violations, resolve])
564
+ }
565
+ ```
566
+
567
+ `FieldShell` shows a field's warning below its input in place of the help text. A field names the types it can resolve, so the receiver field shows the receiver rule and the filter package the desiccant rule. The contact fields on the review step show theirs once the engineer has left the field, or after a request was attempted. The review step also lists every conflict left, each with a button to the step that resolves it.
568
+
569
+ ## A live price breakdown
570
+
571
+ Every number of the breakdown is an expression. Declaring them in `expressions:` types them for the layout: `phx.frontend.useRootEntityState()` returns the root entity with its expressions, so `$quoteLines` is an array of `{ key, label, detail, amount }`. An expression that is only inferred from where the spec reads it gets the type of that place, which can be wider than the layout wants.
572
+
573
+ ```yaml
574
+ expressions:
575
+ Compressor:
576
+ $leadTimeWeeks:
577
+ type: number
578
+ $quoteLines:
579
+ type: array
580
+ items:
581
+ type: object
582
+ properties:
583
+ key:
584
+ type: string
585
+ label:
586
+ type: string
587
+ detail:
588
+ type: string
589
+ amount:
590
+ type: number
591
+ required:
592
+ - key
593
+ - label
594
+ - detail
595
+ - amount
596
+ additionalProperties: false
597
+ $subtotal:
598
+ type: number
599
+ $leadTimeSurcharge:
600
+ type: number
601
+ $total:
602
+ type: number
603
+ ```
604
+
605
+ `src/expressions/compressor.ts` picks the smallest frame that delivers the flow at the pressure and prices it, then adds a line for each option that costs extra: the variable speed drive, the dryer, the filters, water cooling and heat recovery, the receiver, the canopy, the 60 Hz build, the service plan and commissioning. Express delivery adds 8 % of the subtotal. The `price` component reads `$total`, so `phx.frontend.useRootEntityPrice()` formats the total in the component's currency:
606
+
607
+ ```yaml
608
+ components:
609
+ Compressor:
610
+ price:
611
+ main:
612
+ price:
613
+ $read: $total
614
+ currency: EUR
615
+ ```
616
+
617
+ ```tsx
618
+ import { Box, Typography } from '@mui/material'
619
+
620
+ import { ARDENT, OVERLINE_SX } from '../_form/index.js'
621
+
622
+ const formatEuro = (amount: number) => {
623
+ return amount.toLocaleString('en-IE', { style: 'currency', currency: 'EUR', maximumFractionDigits: 0 })
624
+ }
625
+
626
+ const ROW_SX = {
627
+ display: 'grid',
628
+ gridTemplateColumns: '1fr auto',
629
+ columnGap: 2,
630
+ alignItems: 'baseline',
631
+ paddingBlock: 1,
632
+ } as const
633
+
634
+ // The quote's lines, subtotal, lead-time surcharge and total. Every number comes from an expression of the spec
635
+ // (`$quoteLines`, `$subtotal`, `$leadTimeSurcharge`, `$leadTimeWeeks`), read from the root entity, so the breakdown
636
+ // changes with each choice, and the total is the `price` component's value.
637
+ export const PriceBreakdown = () => {
638
+ const compressor = phx.frontend.useRootEntityState()
639
+ const total = phx.frontend.useRootEntityPrice()
640
+
641
+ return (
642
+ <Box component="section" aria-label="Price breakdown" sx={{ display: 'grid', fontFamily: ARDENT.font }}>
643
+ <Typography component="h2" sx={{ ...OVERLINE_SX, paddingBlockEnd: 1 }}>
644
+ Price breakdown
645
+ </Typography>
646
+
647
+ <Box component="ul" sx={{ margin: 0, padding: 0, listStyle: 'none' }}>
648
+ {compressor.$quoteLines.map(line => (
649
+ <Box component="li" key={line.key} sx={{ ...ROW_SX, borderBlockEnd: `1px solid ${ARDENT.line}` }}>
650
+ <Box component="div" sx={{ display: 'grid', minInlineSize: 0 }}>
651
+ <Typography
652
+ component="span"
653
+ sx={{ fontFamily: ARDENT.font, fontSize: 15, fontWeight: 500, color: ARDENT.ink }}
654
+ >
655
+ {line.label}
656
+ </Typography>
657
+ <Typography component="span" sx={{ fontFamily: ARDENT.font, fontSize: 13, color: ARDENT.steel }}>
658
+ {line.detail}
659
+ </Typography>
660
+ </Box>
661
+ <Typography
662
+ component="span"
663
+ sx={{ fontFamily: ARDENT.font, fontSize: 15, color: ARDENT.ink, fontVariantNumeric: 'tabular-nums' }}
664
+ >
665
+ {formatEuro(line.amount)}
666
+ </Typography>
667
+ </Box>
668
+ ))}
669
+ </Box>
670
+
671
+ <Box component="div" sx={{ ...ROW_SX, paddingBlockStart: 1.5 }}>
672
+ <Typography component="span" sx={{ fontFamily: ARDENT.font, fontSize: 15, color: ARDENT.steel }}>
673
+ Subtotal
674
+ </Typography>
675
+ <Typography
676
+ component="span"
677
+ sx={{ fontFamily: ARDENT.font, fontSize: 15, color: ARDENT.ink, fontVariantNumeric: 'tabular-nums' }}
678
+ >
679
+ {formatEuro(compressor.$subtotal)}
680
+ </Typography>
681
+ </Box>
682
+ {compressor.$leadTimeSurcharge > 0 && (
683
+ <Box component="div" sx={ROW_SX}>
684
+ <Typography component="span" sx={{ fontFamily: ARDENT.font, fontSize: 15, color: ARDENT.steel }}>
685
+ Express delivery surcharge
686
+ </Typography>
687
+ <Typography
688
+ component="span"
689
+ sx={{ fontFamily: ARDENT.font, fontSize: 15, color: ARDENT.ink, fontVariantNumeric: 'tabular-nums' }}
690
+ >
691
+ {formatEuro(compressor.$leadTimeSurcharge)}
692
+ </Typography>
693
+ </Box>
694
+ )}
695
+
696
+ <Box
697
+ component="div"
698
+ sx={{ ...ROW_SX, marginBlockStart: 1, paddingBlockStart: 1.5, borderBlockStart: `2px solid ${ARDENT.ink}` }}
699
+ >
700
+ <Typography component="span" sx={{ fontFamily: ARDENT.font, fontSize: 17, fontWeight: 600, color: ARDENT.ink }}>
701
+ Total, ex works
702
+ </Typography>
703
+ <Typography
704
+ component="span"
705
+ sx={{
706
+ fontFamily: ARDENT.font,
707
+ fontSize: 26,
708
+ fontWeight: 700,
709
+ color: ARDENT.ink,
710
+ fontVariantNumeric: 'tabular-nums',
711
+ }}
712
+ >
713
+ {total}
714
+ </Typography>
715
+ </Box>
716
+ <Typography sx={{ fontFamily: ARDENT.font, fontSize: 14, color: ARDENT.steel, textAlign: 'end' }}>
717
+ Lead time {compressor.$leadTimeWeeks} weeks · prices excl. VAT
718
+ </Typography>
719
+ </Box>
720
+ )
721
+ }
722
+ ```
723
+
724
+ On a desktop the breakdown is a column beside the form. On a phone the total sits in the bottom bar and opens the breakdown as a sheet.
725
+
726
+ ## Request a quote
727
+
728
+ The spec declares one finalize action. Its handler is project code registered with `phx.frontend.createPhoenixHandler`; in a deployed project it sends the configuration to the project's finalize webhook (see [Finalization](?path=/docs/phoenix-finalization--docs) and [Webhooks](?path=/docs/phoenix-webhooks--docs)), and a CPQ system behind that webhook prices and answers. Storybook has no server, so this handler waits and answers with a fixed engineer and a reference made from the configuration's id.
729
+
730
+ ```yaml
731
+ components:
732
+ Compressor:
733
+ finalizeAction:
734
+ quote:
735
+ variant: primary
736
+ label: Request quote
737
+ title: Send the configuration to an application engineer for a firm quote
738
+ icon: PaperPlaneTilt
739
+ handler: requestQuote
740
+ ```
741
+
742
+ ```ts
743
+ import { useCallback } from 'react'
744
+
745
+ import { setQuoteReceipt } from '../_shared/quote-receipt.js'
746
+
747
+ const VALID_DAYS = 30
748
+
749
+ // Stands in for Ardent's quote service. A deployed project sends the configuration to its finalize webhook here and
750
+ // waits for the answer; this one answers after a moment with a fixed engineer and a reference made from the
751
+ // configuration's id, then enters the `requested` navigation state.
752
+ export default phx.frontend.createPhoenixHandler('requestQuote', () => {
753
+ const navigate = phx.frontend.useNavigate()
754
+ const configurationId = phx.frontend.useConfigurationId()
755
+ const total = phx.frontend.useRootEntityPrice()
756
+
757
+ return {
758
+ handler: useCallback(async () => {
759
+ await new Promise(resolve => setTimeout(resolve, 1600))
760
+
761
+ const validUntil = new Date(Date.now() + VALID_DAYS * 24 * 60 * 60 * 1000)
762
+
763
+ setQuoteReceipt({
764
+ reference: `AQ-${String(configurationId)
765
+ .replace(/[^a-z0-9]/gi, '')
766
+ .slice(-6)
767
+ .toUpperCase()}`,
768
+ engineer: 'Marta Kovács, application engineer',
769
+ validUntil: validUntil.toLocaleDateString('en-GB', { day: 'numeric', month: 'long', year: 'numeric' }),
770
+ total: total ?? '',
771
+ })
772
+ navigate('requested')
773
+ }, [configurationId, navigate, total]),
774
+ }
775
+ })
776
+ ```
777
+
778
+ A finalize action's `run()` resolves without a value, so the answer has no way back to the layout through the action. The handler keeps it in a small store of the project's own, which the review step reads:
779
+
780
+ ```ts
781
+ import { useSyncExternalStore } from 'react'
782
+
783
+ /** What the quote service answers when a quote is requested: the reference the engineer will quote against */
784
+ export interface QuoteReceipt {
785
+ readonly reference: string
786
+ readonly engineer: string
787
+ readonly validUntil: string
788
+ readonly total: string
789
+ }
790
+
791
+ let receipt: QuoteReceipt | null = null
792
+ const listeners = new Set<() => void>()
793
+
794
+ const subscribe = (listener: () => void) => {
795
+ listeners.add(listener)
796
+
797
+ return () => {
798
+ listeners.delete(listener)
799
+ }
800
+ }
801
+
802
+ // A finalize action's `run()` resolves without a value, so the `requestQuote` handler keeps the service's answer here
803
+ // for the layout to show. The project owns this store; the configurator does not persist it.
804
+ export const setQuoteReceipt = (next: QuoteReceipt | null) => {
805
+ receipt = next
806
+ listeners.forEach(listener => listener())
807
+ }
808
+
809
+ export const useQuoteReceipt = () => {
810
+ return useSyncExternalStore(subscribe, () => receipt)
811
+ }
812
+ ```
813
+
814
+ `QuoteAction` runs the action from `phx.frontend.useFinalizeActions().primary`. While a warning holds, the action is `disabled` and `hints` lists the warnings; the button stays clickable and, instead of running, reveals the warnings of the contact fields the engineer has not visited yet. During the request the button shows a spinner and "Sending to an engineer…"; afterwards the review step shows the reference, the engineer, the validity and the quoted total, and **Back to summary** returns to the `review` state. A failed request would show the handler's error below the button. A viewer of a shared configuration sees no button.
815
+
816
+ ```tsx
817
+ import { Alert, Box, Button, CircularProgress, Typography } from '@mui/material'
818
+
819
+ import { ARDENT } from '../_form/index.js'
820
+
821
+ interface QuoteActionProps {
822
+ // Called instead of running the action while a warning blocks it, so the layout can show every warning
823
+ readonly onBlocked: () => void
824
+ // Leaves out the list of what blocks the request, for the phone's bottom bar
825
+ readonly compact: boolean
826
+ }
827
+
828
+ // The spec's `quote` finalize action. While any warning holds, `useFinalizeActions` reports the action `disabled` with
829
+ // the warnings as `hints`: the button stays clickable and reveals them instead of running. A viewer sees no button.
830
+ export const QuoteAction = ({ onBlocked, compact }: QuoteActionProps) => {
831
+ const { primary, hints } = phx.frontend.useFinalizeActions()
832
+ const { accessInfo } = phx.frontend.useAccessService()
833
+
834
+ if (primary === null || accessInfo.viewMode) {
835
+ return null
836
+ }
837
+
838
+ return (
839
+ <Box component="div" sx={{ display: 'grid', gap: 1.25 }}>
840
+ <Button
841
+ variant="contained"
842
+ disableElevation
843
+ disabled={primary.isPending}
844
+ aria-disabled={primary.disabled}
845
+ title={primary.title}
846
+ onClick={() => (primary.disabled ? onBlocked() : void primary.run())}
847
+ startIcon={primary.isPending ? <CircularProgress size={18} color="inherit" /> : undefined}
848
+ sx={{
849
+ minBlockSize: 52,
850
+ borderRadius: 2,
851
+ bgcolor: primary.disabled ? ARDENT.steel : ARDENT.signal,
852
+ color: ARDENT.panel,
853
+ fontFamily: ARDENT.font,
854
+ fontSize: 17,
855
+ fontWeight: 600,
856
+ textTransform: 'none',
857
+ '&:hover': { bgcolor: primary.disabled ? ARDENT.steel : ARDENT.signalDark },
858
+ '&.Mui-disabled': { bgcolor: ARDENT.signal, color: ARDENT.panel, opacity: 0.7 },
859
+ }}
860
+ >
861
+ {primary.isPending ? 'Sending to an engineer…' : primary.label}
862
+ </Button>
863
+ {!compact && primary.disabled && hints && (
864
+ <Typography sx={{ fontFamily: ARDENT.font, fontSize: 14, lineHeight: 1.4, color: ARDENT.warning }}>
865
+ Resolve before requesting: {hints}
866
+ </Typography>
867
+ )}
868
+ {primary.error && (
869
+ <Alert severity="error">The quote could not be sent: {primary.error.message} Try again in a moment.</Alert>
870
+ )}
871
+ </Box>
872
+ )
873
+ }
874
+ ```
875
+
876
+ ## On a phone
877
+
878
+ The same layout in a frame 390 pixels wide. The stepper is one line with a segmented bar, the form scrolls, and the bottom bar holds the total, the lead time and the way on: **Next** on every step, **Request quote** on the review. Tapping the total opens the breakdown above the bar. Opened on its own from the sidebar, the **Phone** story sets Storybook's viewport to 390 × 844.
879
+
880
+ ## Test cases
881
+
882
+ - The page opens on **Duty** with the RSV-75 frame selected for 9 m³/min at 10 bar. The breakdown lists the compressor, the refrigerant dryer, the 500 L receiver, the Essential plan and commissioning, a total of **€40,975.00** and a lead time of 6 weeks.
883
+ - Typing 30 into the flow selects the RSV-250 frame and the total rises to €111,640.00; the stepper marks **Installation**, where a fixed-speed machine at this flow needs a 1,200 L receiver.
884
+ - Choosing **13 bar** with a flow of 30 shows "At 13 bar the largest frame delivers 29.5 m³/min. Lower the flow or the pressure." under the flow and marks **Duty**; choosing 10 bar again removes it.
885
+ - **Variable speed** adds the "Variable speed drive" line and clears the receiver mark.
886
+ - On **Air treatment**, **Desiccant** makes **Pressure dew point** appear and shows the filtration warning under **Filter package**; **High efficiency** clears it; **Refrigerant** removes the dew point question again.
887
+ - On **Installation**, **Water-cooled** makes **Heat recovery** appear; turning it on adds the "Heat recovery" line.
888
+ - On **Service and delivery** with the RSV-250 frame, **Delivery** offers only standard delivery. With a flow of 12 it also offers express; choosing it adds the "Express delivery surcharge" and shortens the lead time.
889
+ - Raising the flow to 25 while express is chosen shows "Express delivery covers stock frames up to 110 kW. …" under **Delivery**.
890
+ - The **Review** step lists the conflict with **Go to Service and delivery**. **Request quote** reveals "Enter the company the quote is for." and "Enter a valid email address for the quote." under the empty contact fields and does not send.
891
+ - **Go to Service and delivery** and **Standard** delivery clear the conflict: the mark leaves the stepper and the list leaves the review.
892
+ - An email without a domain shows the email warning after leaving the field; a valid company and email clear both warnings and the text under **Request quote**.
893
+ - **Request quote** shows a spinner and "Sending to an engineer…" for about two seconds, then "Quote requested" with a reference, the engineer, the date the price is valid until and the quoted total. **Back to summary** returns to the contact form with its values.
894
+ - **Undo** reverts the last change and **Redo** repeats it.
895
+ - In the **Phone** story, **Next** walks through the steps, the total opens and closes the breakdown, **Request quote** on the review reveals the contact warnings, and a filled form shows "Quote requested".
896
+ - The browser console shows no errors, the page has no `canvas` element, and no model or texture is requested.
897
+
898
+ ## What this layout leaves out
899
+
900
+ - **Read mode.** The fields are inert and **Request quote** is hidden while `phx.frontend.useAccessService().accessInfo.viewMode` is set, but the example ships no read template; [Custom Layout → Serve read mode](?path=/docs/layouts-custom-layout--docs#serve-read-mode) shows one.
901
+ - **A quote that outlives the page.** The answer lives in the project's store for as long as the page; a configuration reopened in the `requested` state shows "Quote requested" without the details. A deployed project keeps the answer where its webhook stores it.
902
+ - **The built-in arrangement.** Header, sidebar, footer, tabs and the preview start screen are not mounted; [Layout Slots](?path=/docs/phoenix-layout-slots--docs) lists every slot a project layout can mount.
903
+
904
+ ## Related pages
905
+
906
+ - [Fenwick Window](?path=/docs/layouts-gallery-fenwick-window--docs) draws the configuration as a shop drawing, and [Sunfold Solar](?path=/docs/layouts-gallery-sunfold-solar--docs) shows it as a dashboard; neither mounts a canvas either.
907
+ - [Custom Layout](?path=/docs/layouts-custom-layout--docs) explains a project layout step by step.
908
+ - [Configurator Interface → Hooks for a Project Layout](?path=/docs/phoenix-configurator-interface--docs#hooks-for-a-project-layout) lists the hooks used here.
909
+ - [Domain Model → Invariants](?path=/docs/phoenix-domain-model--docs#invariants) and [Domain Model → Expressions](?path=/docs/phoenix-domain-model--docs#expressions) describe the rules and the computed values.
910
+ - [Finalization](?path=/docs/phoenix-finalization--docs) describes the server side of a finalize action.
911
+
912
+ ## Complete Implementation
913
+
914
+ {/* AUTO-GENERATED SECTION: This section is automatically updated by 'phoenix story build' */}
915
+
916
+ <details>
917
+ <summary>Click to view the complete implementation files</summary>
918
+
919
+ ### ./spec/domain.yaml
920
+
921
+ ```yaml
922
+ model:
923
+ latest:
924
+ entityTypes:
925
+ - Compressor
926
+ aliases:
927
+ RootEntity:
928
+ - Compressor
929
+ commonTypes:
930
+ Pressure:
931
+ enum:
932
+ - Bar7
933
+ - Bar10
934
+ - Bar13
935
+ DutyCycle:
936
+ enum:
937
+ - Intermittent
938
+ - Continuous
939
+ Drive:
940
+ enum:
941
+ - FixedSpeed
942
+ - VariableSpeed
943
+ Dryer:
944
+ enum:
945
+ - None
946
+ - Refrigerant
947
+ - Desiccant
948
+ DewPoint:
949
+ enum:
950
+ - Minus40
951
+ - Minus70
952
+ Filtration:
953
+ enum:
954
+ - General
955
+ - HighEfficiency
956
+ - OilVapour
957
+ Cooling:
958
+ enum:
959
+ - Air
960
+ - Water
961
+ Receiver:
962
+ enum:
963
+ - None
964
+ - Litres500
965
+ - Litres1000
966
+ - Litres2000
967
+ Enclosure:
968
+ enum:
969
+ - Standard
970
+ - LowNoise
971
+ Supply:
972
+ enum:
973
+ - V400Hz50
974
+ - V480Hz60
975
+ ServicePlan:
976
+ enum:
977
+ - None
978
+ - Essential
979
+ - TotalCare
980
+ Delivery:
981
+ enum:
982
+ - Standard
983
+ - Express
984
+ shapes:
985
+ Compressor:
986
+ flow:
987
+ type: number
988
+ pressure:
989
+ $ref: '#/model/latest/commonTypes/Pressure'
990
+ dutyCycle:
991
+ $ref: '#/model/latest/commonTypes/DutyCycle'
992
+ drive:
993
+ $ref: '#/model/latest/commonTypes/Drive'
994
+ dryer:
995
+ $ref: '#/model/latest/commonTypes/Dryer'
996
+ dewPoint:
997
+ $ref: '#/model/latest/commonTypes/DewPoint'
998
+ filtration:
999
+ $ref: '#/model/latest/commonTypes/Filtration'
1000
+ cooling:
1001
+ $ref: '#/model/latest/commonTypes/Cooling'
1002
+ heatRecovery:
1003
+ type: boolean
1004
+ receiver:
1005
+ $ref: '#/model/latest/commonTypes/Receiver'
1006
+ enclosure:
1007
+ $ref: '#/model/latest/commonTypes/Enclosure'
1008
+ supply:
1009
+ $ref: '#/model/latest/commonTypes/Supply'
1010
+ servicePlan:
1011
+ $ref: '#/model/latest/commonTypes/ServicePlan'
1012
+ commissioning:
1013
+ type: boolean
1014
+ delivery:
1015
+ $ref: '#/model/latest/commonTypes/Delivery'
1016
+ company:
1017
+ type: string
1018
+ email:
1019
+ type: string
1020
+ projectReference:
1021
+ type: string
1022
+
1023
+ presets:
1024
+ - rootEntityType: Compressor
1025
+ initialDomainEntities:
1026
+ - id: Compressor-1
1027
+ type: Compressor
1028
+ flow: 9
1029
+ pressure: Bar10
1030
+ dutyCycle: Intermittent
1031
+ drive: FixedSpeed
1032
+ dryer: Refrigerant
1033
+ dewPoint: Minus40
1034
+ filtration: General
1035
+ cooling: Air
1036
+ heatRecovery: false
1037
+ receiver: Litres500
1038
+ enclosure: Standard
1039
+ supply: V400Hz50
1040
+ servicePlan: Essential
1041
+ commissioning: true
1042
+ delivery: Standard
1043
+ company: ''
1044
+ email: ''
1045
+ projectReference: ''
1046
+
1047
+ navigationStates:
1048
+ - duty
1049
+ - treatment
1050
+ - installation
1051
+ - service
1052
+ - review
1053
+ - requested
1054
+
1055
+ # The quote's price, lead time and summary: declared here, computed in src/expressions/compressor.ts
1056
+ expressions:
1057
+ Compressor:
1058
+ $maxFlow:
1059
+ type: number
1060
+ $frameName:
1061
+ type: string
1062
+ $frameKw:
1063
+ type: number
1064
+ $minReceiverLitres:
1065
+ type: number
1066
+ $leadTimeWeeks:
1067
+ type: number
1068
+ $quoteLines:
1069
+ type: array
1070
+ items:
1071
+ type: object
1072
+ properties:
1073
+ key:
1074
+ type: string
1075
+ label:
1076
+ type: string
1077
+ detail:
1078
+ type: string
1079
+ amount:
1080
+ type: number
1081
+ required:
1082
+ - key
1083
+ - label
1084
+ - detail
1085
+ - amount
1086
+ additionalProperties: false
1087
+ $subtotal:
1088
+ type: number
1089
+ $leadTimeSurcharge:
1090
+ type: number
1091
+ $total:
1092
+ type: number
1093
+ $specSheet:
1094
+ type: array
1095
+ items:
1096
+ type: object
1097
+ properties:
1098
+ label:
1099
+ type: string
1100
+ value:
1101
+ type: string
1102
+ required:
1103
+ - label
1104
+ - value
1105
+ additionalProperties: false
1106
+
1107
+ # Every rule is a warning: the change is kept, the layout shows the message at the field, and finalizing waits
1108
+ # until it is resolved
1109
+ invariants:
1110
+ Compressor:
1111
+ flowRange:
1112
+ types:
1113
+ - flowAboveRange
1114
+ desiccantNeedsFiltration:
1115
+ type: desiccantNeedsFiltration
1116
+ severity: warning
1117
+ message: A desiccant dryer needs high-efficiency or oil-vapour filtration upstream, or oil aerosol spoils the desiccant.
1118
+ receiverSize:
1119
+ types:
1120
+ - receiverTooSmall
1121
+ expressUnavailable:
1122
+ type: expressUnavailable
1123
+ severity: warning
1124
+ message: Express delivery covers stock frames up to 110 kW. Choose standard delivery for this frame.
1125
+ companyMissing:
1126
+ type: companyMissing
1127
+ severity: warning
1128
+ message: Enter the company the quote is for.
1129
+ emailInvalid:
1130
+ type: emailInvalid
1131
+ severity: warning
1132
+ message: Enter a valid email address for the quote.
1133
+
1134
+ components:
1135
+ Compressor:
1136
+ price:
1137
+ main:
1138
+ price:
1139
+ $read: $total
1140
+ currency: EUR
1141
+ navigationSteps:
1142
+ main:
1143
+ steps:
1144
+ - label: Duty
1145
+ navigationStates:
1146
+ - duty
1147
+ - label: Air treatment
1148
+ navigationStates:
1149
+ - treatment
1150
+ - label: Installation
1151
+ navigationStates:
1152
+ - installation
1153
+ - label: Service and delivery
1154
+ navigationStates:
1155
+ - service
1156
+ - label: Review
1157
+ navigationStates:
1158
+ - review
1159
+ - requested
1160
+ finalizeAction:
1161
+ quote:
1162
+ variant: primary
1163
+ label: Request quote
1164
+ title: Send the configuration to an application engineer for a firm quote
1165
+ icon: PaperPlaneTilt
1166
+ handler: requestQuote
1167
+
1168
+ # Duty
1169
+ genericDimension:
1170
+ flow:
1171
+ value:
1172
+ $bind: flow
1173
+ min: 2
1174
+ max: 40
1175
+ unit: m³/min
1176
+ decimalPlaces: 1
1177
+ attributeSelection:
1178
+ pressure:
1179
+ value:
1180
+ $bind: pressure
1181
+ options:
1182
+ - label: 7.5 bar
1183
+ description: Workshops and general tools
1184
+ value: Bar7
1185
+ - label: 10 bar
1186
+ description: Most production plants
1187
+ value: Bar10
1188
+ - label: 13 bar
1189
+ description: Blow moulding pre-blow, long networks
1190
+ value: Bar13
1191
+ dutyCycle:
1192
+ value:
1193
+ $bind: dutyCycle
1194
+ options:
1195
+ - label: Intermittent
1196
+ description: Up to 60 % load, one or two shifts
1197
+ value: Intermittent
1198
+ - label: Continuous
1199
+ description: Around the clock, heavy-duty package
1200
+ value: Continuous
1201
+ drive:
1202
+ value:
1203
+ $bind: drive
1204
+ options:
1205
+ - label: Fixed speed
1206
+ description: Load and unload control, lowest first cost
1207
+ value: FixedSpeed
1208
+ - label: Variable speed
1209
+ description: Follows demand, about 30 % less energy
1210
+ value: VariableSpeed
1211
+
1212
+ # Air treatment
1213
+ dryer:
1214
+ value:
1215
+ $bind: dryer
1216
+ options:
1217
+ - label: No dryer
1218
+ description: Wet air, for tools that tolerate it
1219
+ value: None
1220
+ - label: Refrigerant
1221
+ description: Pressure dew point +3 °C
1222
+ value: Refrigerant
1223
+ - label: Desiccant
1224
+ description: Pressure dew point below freezing
1225
+ value: Desiccant
1226
+ dewPoint:
1227
+ value:
1228
+ $bind: dewPoint
1229
+ options:
1230
+ - label: −40 °C
1231
+ description: Outdoor lines, food and pharma
1232
+ value: Minus40
1233
+ - label: −70 °C
1234
+ description: Electronics and laboratories
1235
+ value: Minus70
1236
+ $filter:
1237
+ active:
1238
+ $eval: self.dryer === 'Desiccant'
1239
+ filtration:
1240
+ value:
1241
+ $bind: filtration
1242
+ options:
1243
+ - label: General purpose
1244
+ description: Removes particles down to 1 µm
1245
+ value: General
1246
+ - label: High efficiency
1247
+ description: Oil aerosol down to 0.01 mg/m³
1248
+ value: HighEfficiency
1249
+ - label: Oil vapour
1250
+ description: Adds activated carbon, 0.003 mg/m³
1251
+ value: OilVapour
1252
+
1253
+ # Installation
1254
+ cooling:
1255
+ value:
1256
+ $bind: cooling
1257
+ options:
1258
+ - label: Air-cooled
1259
+ description: Needs ventilation in the plant room
1260
+ value: Air
1261
+ - label: Water-cooled
1262
+ description: For hot rooms and heat recovery
1263
+ value: Water
1264
+ receiver:
1265
+ value:
1266
+ $bind: receiver
1267
+ options:
1268
+ - label: No receiver
1269
+ value: None
1270
+ - label: 500 L
1271
+ value: Litres500
1272
+ - label: 1,000 L
1273
+ value: Litres1000
1274
+ - label: 2,000 L
1275
+ value: Litres2000
1276
+ enclosure:
1277
+ value:
1278
+ $bind: enclosure
1279
+ options:
1280
+ - label: Standard canopy
1281
+ description: About 72 dB(A) at 1 m
1282
+ value: Standard
1283
+ - label: Low-noise canopy
1284
+ description: About 66 dB(A) at 1 m
1285
+ value: LowNoise
1286
+ supply:
1287
+ value:
1288
+ $bind: supply
1289
+ options:
1290
+ - label: 400 V, 50 Hz
1291
+ value: V400Hz50
1292
+ - label: 480 V, 60 Hz
1293
+ value: V480Hz60
1294
+
1295
+ # Service and delivery
1296
+ servicePlan:
1297
+ value:
1298
+ $bind: servicePlan
1299
+ options:
1300
+ - label: No plan
1301
+ description: Service on call
1302
+ value: None
1303
+ - label: Essential, 3 years
1304
+ description: Scheduled service and parts
1305
+ value: Essential
1306
+ - label: Total care, 5 years
1307
+ description: Parts, labour and an extended warranty
1308
+ value: TotalCare
1309
+ delivery:
1310
+ value:
1311
+ $bind: delivery
1312
+ options:
1313
+ $read: $deliveryOptions
1314
+ attributeSwitch:
1315
+ heatRecovery:
1316
+ value:
1317
+ $bind: heatRecovery
1318
+ $filter:
1319
+ active:
1320
+ $eval: self.cooling === 'Water'
1321
+ commissioning:
1322
+ value:
1323
+ $bind: commissioning
1324
+ textValue:
1325
+ company:
1326
+ value:
1327
+ $bind: company
1328
+ email:
1329
+ value:
1330
+ $bind: email
1331
+ projectReference:
1332
+ value:
1333
+ $bind: projectReference
1334
+ ```
1335
+
1336
+ ### ./src/\_form/ChoiceField.tsx
1337
+
1338
+ ```tsx
1339
+ import { Box, ButtonBase, Typography } from '@mui/material'
1340
+ import type { KeyboardEvent } from 'react'
1341
+
1342
+ import { attributeSelectionComponent } from '@salsita-ai/sdk/domain'
1343
+
1344
+ import { FieldShell } from './FieldShell.js'
1345
+ import { ARDENT } from './tokens.js'
1346
+
1347
+ // Arrow keys move the selection between the cards, as in a native radio group
1348
+ const ARROW_STEPS: Readonly<Record<string, number | undefined>> = {
1349
+ ArrowRight: 1,
1350
+ ArrowDown: 1,
1351
+ ArrowLeft: -1,
1352
+ ArrowUp: -1,
1353
+ }
1354
+
1355
+ interface ChoiceFieldProps {
1356
+ readonly instanceName: string
1357
+ readonly label: string
1358
+ readonly hint?: string
1359
+ readonly warningTypes?: readonly string[]
1360
+ readonly readOnly: boolean
1361
+ // The narrowest a card gets before the cards wrap onto another row
1362
+ readonly minCardWidth?: number
1363
+ }
1364
+
1365
+ const ChoiceCards = ({ instanceName, label, hint, warningTypes, readOnly, minCardWidth = 150 }: ChoiceFieldProps) => {
1366
+ const resolve = phx.frontend.useResolveLocalizable()
1367
+ const compressorId = phx.frontend.useRootEntityId()
1368
+ const { value, options } = phx.frontend.useAttributeSelection(compressorId, instanceName)
1369
+ // An option a `fixable` or `fatal` invariant rules out is `disabled`, with the reason in its `hint`
1370
+ const optionHint = options.find(option => option.disabled && option.hint)?.hint
1371
+
1372
+ const handleKeyDown = (event: KeyboardEvent<HTMLElement>, index: number) => {
1373
+ const step = ARROW_STEPS[event.key]
1374
+
1375
+ if (step === undefined) {
1376
+ return
1377
+ }
1378
+
1379
+ event.preventDefault()
1380
+ const next = (index + step + options.length) % options.length
1381
+ options[next]?.onSelect()
1382
+ event.currentTarget.parentElement?.querySelectorAll<HTMLElement>('[role="radio"]')[next]?.focus()
1383
+ }
1384
+
1385
+ return (
1386
+ <FieldShell id={`ardent-${instanceName}`} label={label} hint={optionHint ?? hint} warningTypes={warningTypes}>
1387
+ <Box
1388
+ component="div"
1389
+ role="radiogroup"
1390
+ aria-labelledby={`ardent-${instanceName}-label`}
1391
+ sx={{ display: 'grid', gridTemplateColumns: `repeat(auto-fit, minmax(${minCardWidth}px, 1fr))`, gap: 1.25 }}
1392
+ >
1393
+ {options.map((option, index) => {
1394
+ const isSelected = option.value === value
1395
+ const description = resolve(option.description)
1396
+
1397
+ return (
1398
+ <ButtonBase
1399
+ key={String(option.value)}
1400
+ role="radio"
1401
+ aria-checked={isSelected}
1402
+ aria-disabled={option.disabled}
1403
+ tabIndex={isSelected ? 0 : -1}
1404
+ disabled={readOnly && !isSelected}
1405
+ onClick={readOnly ? undefined : option.onSelect}
1406
+ onKeyDown={readOnly ? undefined : event => handleKeyDown(event, index)}
1407
+ sx={{
1408
+ display: 'grid',
1409
+ gridTemplateColumns: 'auto 1fr',
1410
+ alignItems: 'start',
1411
+ columnGap: 1.25,
1412
+ rowGap: 0.25,
1413
+ padding: 1.5,
1414
+ textAlign: 'start',
1415
+ borderRadius: 2,
1416
+ border: `1px solid ${isSelected ? ARDENT.signal : ARDENT.line}`,
1417
+ boxShadow: isSelected ? `inset 0 0 0 1px ${ARDENT.signal}` : 'none',
1418
+ bgcolor: isSelected ? ARDENT.signalTint : ARDENT.panel,
1419
+ fontFamily: ARDENT.font,
1420
+ opacity: option.disabled ? 0.45 : 1,
1421
+ transition: 'border-color 140ms, background-color 140ms',
1422
+ '&:hover': { borderColor: isSelected ? ARDENT.signal : ARDENT.steel },
1423
+ '&.Mui-focusVisible': { outline: `2px solid ${ARDENT.navy}`, outlineOffset: 2 },
1424
+ '&.Mui-disabled': { opacity: 0.45 },
1425
+ }}
1426
+ >
1427
+ {/* The radio mark: a ring, filled with a dot when the card is chosen */}
1428
+ <Box
1429
+ component="span"
1430
+ aria-hidden
1431
+ sx={{
1432
+ gridRow: 'span 2',
1433
+ marginBlockStart: 0.25,
1434
+ inlineSize: 18,
1435
+ blockSize: 18,
1436
+ borderRadius: '50%',
1437
+ border: `2px solid ${isSelected ? ARDENT.signal : ARDENT.steel}`,
1438
+ boxShadow: isSelected ? `inset 0 0 0 3px ${ARDENT.signalTint}` : 'none',
1439
+ bgcolor: isSelected ? ARDENT.signal : 'transparent',
1440
+ }}
1441
+ />
1442
+ <Typography
1443
+ component="span"
1444
+ sx={{ fontFamily: ARDENT.font, fontSize: 15, fontWeight: 600, color: ARDENT.ink }}
1445
+ >
1446
+ {resolve(option.title)}
1447
+ </Typography>
1448
+ {description && (
1449
+ <Typography
1450
+ component="span"
1451
+ sx={{ fontFamily: ARDENT.font, fontSize: 13, lineHeight: 1.35, color: ARDENT.steel }}
1452
+ >
1453
+ {description}
1454
+ </Typography>
1455
+ )}
1456
+ </ButtonBase>
1457
+ )
1458
+ })}
1459
+ </Box>
1460
+ </FieldShell>
1461
+ )
1462
+ }
1463
+
1464
+ // One `attributeSelection` of the spec as a group of cards. The field exists only while the spec's component is
1465
+ // active: a `$filter` in the spec decides when a question is asked, and the layout follows it. The control hook throws
1466
+ // for an inactive component, so the cards mount only after `useComponent` has found it. An option that a `fixable`
1467
+ // invariant rules out is faded with its hint below the cards; it stays clickable, the change is rejected and the
1468
+ // built-in snackbar says why.
1469
+ export const ChoiceField = (props: ChoiceFieldProps) => {
1470
+ const compressorId = phx.frontend.useRootEntityId()
1471
+ const component = phx.frontend.useComponent({
1472
+ entityId: compressorId,
1473
+ componentType: attributeSelectionComponent,
1474
+ instanceName: props.instanceName,
1475
+ })
1476
+
1477
+ return component === null ? null : <ChoiceCards {...props} />
1478
+ }
1479
+ ```
1480
+
1481
+ ### ./src/\_form/FieldShell.tsx
1482
+
1483
+ ```tsx
1484
+ import { Box, Typography } from '@mui/material'
1485
+ import type { ReactNode } from 'react'
1486
+
1487
+ import { ARDENT } from './tokens.js'
1488
+ import { useWarnings } from './use-warnings.js'
1489
+
1490
+ const WARNING_ICON = 'M12 3 2 21h20L12 3Zm0 6v5m0 3.5v.5'
1491
+
1492
+ export interface FieldShellProps {
1493
+ readonly id: string
1494
+ readonly label: string
1495
+ // Help shown below the input while the field has no warning
1496
+ readonly hint?: string
1497
+ // The invariant types whose warning belongs to this field
1498
+ readonly warningTypes?: readonly string[]
1499
+ // Hides the warning until the customer has had a chance to fill the field in
1500
+ readonly showWarning?: boolean
1501
+ readonly aside?: ReactNode
1502
+ readonly children: ReactNode
1503
+ }
1504
+
1505
+ // A field's frame: the label, the input, and below it either the help text or the warning of an invariant that the
1506
+ // field can resolve. The warning comes from the committed configuration, so it appears and disappears with the rule.
1507
+ export const FieldShell = ({
1508
+ id,
1509
+ label,
1510
+ hint,
1511
+ warningTypes = [],
1512
+ showWarning = true,
1513
+ aside,
1514
+ children,
1515
+ }: FieldShellProps) => {
1516
+ const warning = useWarnings().find(candidate => warningTypes.includes(candidate.type))
1517
+ const visibleWarning = showWarning ? warning : undefined
1518
+
1519
+ return (
1520
+ <Box
1521
+ component="div"
1522
+ role="group"
1523
+ aria-labelledby={`${id}-label`}
1524
+ sx={{
1525
+ display: 'grid',
1526
+ gap: 1.25,
1527
+ animation: 'ardent-field-in 220ms ease-out',
1528
+ '@keyframes ardent-field-in': {
1529
+ from: { opacity: 0, transform: 'translateY(-4px)' },
1530
+ to: { opacity: 1, transform: 'none' },
1531
+ },
1532
+ }}
1533
+ >
1534
+ <Box component="div" sx={{ display: 'flex', alignItems: 'baseline', justifyContent: 'space-between', gap: 2 }}>
1535
+ <Typography
1536
+ id={`${id}-label`}
1537
+ component="h4"
1538
+ sx={{ fontFamily: ARDENT.font, fontSize: 16, fontWeight: 600, color: ARDENT.ink }}
1539
+ >
1540
+ {label}
1541
+ </Typography>
1542
+ {aside}
1543
+ </Box>
1544
+ {children}
1545
+ {visibleWarning ? (
1546
+ <Box
1547
+ component="p"
1548
+ role="alert"
1549
+ sx={{
1550
+ display: 'flex',
1551
+ gap: 1,
1552
+ alignItems: 'flex-start',
1553
+ margin: 0,
1554
+ paddingBlock: 1,
1555
+ paddingInline: 1.5,
1556
+ borderRadius: 1.5,
1557
+ bgcolor: ARDENT.warningTint,
1558
+ color: ARDENT.warning,
1559
+ fontFamily: ARDENT.font,
1560
+ fontSize: 14,
1561
+ lineHeight: 1.4,
1562
+ }}
1563
+ >
1564
+ <Box component="svg" viewBox="0 0 24 24" aria-hidden sx={{ inlineSize: 18, blockSize: 18, flex: 'none' }}>
1565
+ <path d={WARNING_ICON} fill="none" stroke="currentColor" strokeWidth={2} strokeLinejoin="round" />
1566
+ </Box>
1567
+ {visibleWarning.text}
1568
+ </Box>
1569
+ ) : (
1570
+ hint && <Typography sx={{ fontFamily: ARDENT.font, fontSize: 14, color: ARDENT.steel }}>{hint}</Typography>
1571
+ )}
1572
+ </Box>
1573
+ )
1574
+ }
1575
+ ```
1576
+
1577
+ ### ./src/\_form/NumberField.tsx
1578
+
1579
+ ```tsx
1580
+ import { Box, InputBase, Slider, Typography } from '@mui/material'
1581
+ import { useEffect, useState } from 'react'
1582
+
1583
+ import { FieldShell } from './FieldShell.js'
1584
+ import { ARDENT } from './tokens.js'
1585
+
1586
+ interface NumberFieldProps {
1587
+ readonly instanceName: string
1588
+ readonly label: string
1589
+ readonly hint?: string
1590
+ readonly warningTypes?: readonly string[]
1591
+ readonly readOnly: boolean
1592
+ readonly step: number
1593
+ }
1594
+
1595
+ // One `genericDimension` of the spec as a slider with a typed value beside it. Dragging stages each value, so the
1596
+ // price follows the thumb, and letting go commits it; a typed value is committed on Enter or when the input loses
1597
+ // focus. The slider's range is the component's `min` and `max`, which the spec can read from expressions.
1598
+ export const NumberField = ({ instanceName, label, hint, warningTypes, readOnly, step }: NumberFieldProps) => {
1599
+ const compressorId = phx.frontend.useRootEntityId()
1600
+ const dimension = phx.frontend.useGenericDimension(compressorId, instanceName)
1601
+ const [draft, setDraft] = useState(String(dimension.value))
1602
+ const min = dimension.min ?? 0
1603
+ const max = dimension.max ?? 100
1604
+
1605
+ useEffect(() => {
1606
+ setDraft(String(dimension.value))
1607
+ }, [dimension.value])
1608
+
1609
+ const commitDraft = () => {
1610
+ const parsed = Number(draft.replace(',', '.'))
1611
+
1612
+ if (!Number.isFinite(parsed)) {
1613
+ setDraft(String(dimension.value))
1614
+
1615
+ return
1616
+ }
1617
+
1618
+ dimension.update(parsed)
1619
+ dimension.resolve()
1620
+ }
1621
+
1622
+ return (
1623
+ <FieldShell
1624
+ id={`ardent-${instanceName}`}
1625
+ label={label}
1626
+ hint={hint}
1627
+ warningTypes={warningTypes}
1628
+ aside={
1629
+ <Box
1630
+ component="label"
1631
+ sx={{
1632
+ display: 'flex',
1633
+ alignItems: 'baseline',
1634
+ gap: 0.75,
1635
+ paddingInline: 1.25,
1636
+ paddingBlock: 0.5,
1637
+ borderRadius: 1.5,
1638
+ border: `1px solid ${ARDENT.line}`,
1639
+ bgcolor: ARDENT.panel,
1640
+ '&:focus-within': { borderColor: ARDENT.navy },
1641
+ }}
1642
+ >
1643
+ <InputBase
1644
+ value={draft}
1645
+ disabled={readOnly}
1646
+ onChange={event => setDraft(event.target.value)}
1647
+ onBlur={commitDraft}
1648
+ onKeyDown={event => {
1649
+ if (event.key === 'Enter') {
1650
+ commitDraft()
1651
+ }
1652
+ }}
1653
+ inputProps={{ inputMode: 'decimal', 'aria-label': `${label}, ${dimension.unit}` }}
1654
+ sx={{
1655
+ inlineSize: 56,
1656
+ fontFamily: ARDENT.font,
1657
+ fontSize: 20,
1658
+ fontWeight: 600,
1659
+ color: ARDENT.ink,
1660
+ '& input': { padding: 0, textAlign: 'end' },
1661
+ }}
1662
+ />
1663
+ <Typography component="span" sx={{ fontFamily: ARDENT.font, fontSize: 14, color: ARDENT.steel }}>
1664
+ {dimension.unit}
1665
+ </Typography>
1666
+ </Box>
1667
+ }
1668
+ >
1669
+ <Box component="div" sx={{ paddingInline: 1.25 }}>
1670
+ <Slider
1671
+ value={Math.min(dimension.value, max)}
1672
+ min={min}
1673
+ max={max}
1674
+ step={step}
1675
+ disabled={readOnly}
1676
+ onChange={(_, value) => dimension.update(Array.isArray(value) ? (value[0] ?? min) : value)}
1677
+ onChangeCommitted={() => dimension.resolve()}
1678
+ marks={[
1679
+ { value: min, label: `${min}` },
1680
+ { value: max, label: `${max}` },
1681
+ ]}
1682
+ slotProps={{ input: { 'aria-label': label } }}
1683
+ sx={{
1684
+ color: ARDENT.signal,
1685
+ blockSize: 6,
1686
+ '& .MuiSlider-rail': { bgcolor: ARDENT.line, opacity: 1 },
1687
+ '& .MuiSlider-thumb': {
1688
+ inlineSize: 22,
1689
+ blockSize: 22,
1690
+ bgcolor: ARDENT.panel,
1691
+ border: `3px solid ${ARDENT.signal}`,
1692
+ },
1693
+ '& .MuiSlider-markLabel': { fontFamily: ARDENT.font, fontSize: 12, color: ARDENT.steel },
1694
+ '& .MuiSlider-mark': { display: 'none' },
1695
+ }}
1696
+ />
1697
+ </Box>
1698
+ </FieldShell>
1699
+ )
1700
+ }
1701
+ ```
1702
+
1703
+ ### ./src/\_form/SwitchField.tsx
1704
+
1705
+ ```tsx
1706
+ import { Box, Switch, Typography } from '@mui/material'
1707
+
1708
+ import { attributeSwitchComponent } from '@salsita-ai/sdk/domain'
1709
+
1710
+ import { ARDENT } from './tokens.js'
1711
+
1712
+ interface SwitchFieldProps {
1713
+ readonly instanceName: string
1714
+ readonly label: string
1715
+ readonly description: string
1716
+ readonly readOnly: boolean
1717
+ }
1718
+
1719
+ const SwitchRow = ({ instanceName, label, description, readOnly }: SwitchFieldProps) => {
1720
+ const compressorId = phx.frontend.useRootEntityId()
1721
+ const toggle = phx.frontend.useAttributeSwitch(compressorId, instanceName)
1722
+ const labelId = `ardent-${instanceName}-label`
1723
+
1724
+ return (
1725
+ <Box
1726
+ component="div"
1727
+ sx={{
1728
+ display: 'flex',
1729
+ alignItems: 'center',
1730
+ justifyContent: 'space-between',
1731
+ gap: 2,
1732
+ padding: 1.5,
1733
+ borderRadius: 2,
1734
+ border: `1px solid ${ARDENT.line}`,
1735
+ animation: 'ardent-switch-in 220ms ease-out',
1736
+ '@keyframes ardent-switch-in': { from: { opacity: 0 }, to: { opacity: 1 } },
1737
+ }}
1738
+ >
1739
+ <Box component="div" sx={{ display: 'grid', gap: 0.25 }}>
1740
+ <Typography id={labelId} sx={{ fontFamily: ARDENT.font, fontSize: 16, fontWeight: 600, color: ARDENT.ink }}>
1741
+ {label}
1742
+ </Typography>
1743
+ <Typography sx={{ fontFamily: ARDENT.font, fontSize: 14, color: ARDENT.steel }}>{description}</Typography>
1744
+ </Box>
1745
+ <Switch
1746
+ checked={toggle.state.value}
1747
+ disabled={readOnly || toggle.disabled}
1748
+ onChange={toggle.onChange}
1749
+ inputProps={{ 'aria-labelledby': labelId }}
1750
+ sx={{
1751
+ '& .MuiSwitch-switchBase.Mui-checked': { color: ARDENT.panel },
1752
+ '& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track': { bgcolor: ARDENT.signal, opacity: 1 },
1753
+ '& .MuiSwitch-track': { bgcolor: ARDENT.steel, opacity: 0.5 },
1754
+ }}
1755
+ />
1756
+ </Box>
1757
+ )
1758
+ }
1759
+
1760
+ // One `attributeSwitch` of the spec as a labelled switch, shown only while the spec's component is active
1761
+ export const SwitchField = (props: SwitchFieldProps) => {
1762
+ const compressorId = phx.frontend.useRootEntityId()
1763
+ const component = phx.frontend.useComponent({
1764
+ entityId: compressorId,
1765
+ componentType: attributeSwitchComponent,
1766
+ instanceName: props.instanceName,
1767
+ })
1768
+
1769
+ return component === null ? null : <SwitchRow {...props} />
1770
+ }
1771
+ ```
1772
+
1773
+ ### ./src/\_form/TextInputField.tsx
1774
+
1775
+ ```tsx
1776
+ import { InputBase } from '@mui/material'
1777
+ import { useState } from 'react'
1778
+
1779
+ import { FieldShell } from './FieldShell.js'
1780
+ import { ARDENT } from './tokens.js'
1781
+
1782
+ interface TextInputFieldProps {
1783
+ readonly instanceName: string
1784
+ readonly label: string
1785
+ readonly hint?: string
1786
+ readonly warningTypes?: readonly string[]
1787
+ readonly readOnly: boolean
1788
+ readonly type?: 'text' | 'email'
1789
+ readonly autoComplete?: string
1790
+ // Shows the field's warning before the customer has left the field, after a request was attempted
1791
+ readonly revealWarning: boolean
1792
+ }
1793
+
1794
+ // One `textValue` of the spec as a text input. Typing stages the text and leaving the field commits it, so the
1795
+ // invariants judge the committed text; their warning is shown once the customer has left the field.
1796
+ export const TextInputField = ({
1797
+ instanceName,
1798
+ label,
1799
+ hint,
1800
+ warningTypes,
1801
+ readOnly,
1802
+ type = 'text',
1803
+ autoComplete,
1804
+ revealWarning,
1805
+ }: TextInputFieldProps) => {
1806
+ const compressorId = phx.frontend.useRootEntityId()
1807
+ const text = phx.frontend.useTextValue(compressorId, instanceName)
1808
+ const [touched, setTouched] = useState(false)
1809
+
1810
+ return (
1811
+ <FieldShell
1812
+ id={`ardent-${instanceName}`}
1813
+ label={label}
1814
+ hint={hint}
1815
+ warningTypes={warningTypes}
1816
+ showWarning={touched || revealWarning}
1817
+ >
1818
+ <InputBase
1819
+ value={text.value}
1820
+ type={type}
1821
+ disabled={readOnly}
1822
+ autoComplete={autoComplete}
1823
+ onChange={event => text.update(event, event.target.value)}
1824
+ onBlur={() => {
1825
+ text.resolve()
1826
+ setTouched(true)
1827
+ }}
1828
+ inputProps={{ 'aria-labelledby': `ardent-${instanceName}-label` }}
1829
+ sx={{
1830
+ paddingInline: 1.5,
1831
+ paddingBlock: 1,
1832
+ borderRadius: 2,
1833
+ border: `1px solid ${ARDENT.line}`,
1834
+ bgcolor: ARDENT.panel,
1835
+ fontFamily: ARDENT.font,
1836
+ fontSize: 16,
1837
+ color: ARDENT.ink,
1838
+ '&.Mui-focused': { borderColor: ARDENT.navy, boxShadow: `0 0 0 3px ${ARDENT.page}` },
1839
+ }}
1840
+ />
1841
+ </FieldShell>
1842
+ )
1843
+ }
1844
+ ```
1845
+
1846
+ ### ./src/\_form/tokens.ts
1847
+
1848
+ ```ts
1849
+ // Ardent Air's palette and type: a navy shell, white work surfaces and the signal orange of the machines' doors.
1850
+ // Barlow is the brand's typeface; the stack falls back to system fonts where it is not loaded.
1851
+ export const ARDENT = {
1852
+ navy: '#0d1b2e',
1853
+ navySoft: '#1b2c45',
1854
+ ink: '#15202e',
1855
+ steel: '#5a6778',
1856
+ line: '#dde2e9',
1857
+ page: '#f1f3f6',
1858
+ panel: '#ffffff',
1859
+ signal: '#f0641a',
1860
+ signalDark: '#c84f0e',
1861
+ signalTint: '#fff1e8',
1862
+ warning: '#9a4b00',
1863
+ warningTint: '#fff6e0',
1864
+ success: '#17703f',
1865
+ successTint: '#e9f6ee',
1866
+ font: "'Barlow', 'Helvetica Neue', Arial, sans-serif",
1867
+ } as const
1868
+
1869
+ // Small capitals with wide tracking, for section labels and table headings
1870
+ export const OVERLINE_SX = {
1871
+ fontFamily: ARDENT.font,
1872
+ fontSize: 12,
1873
+ fontWeight: 500,
1874
+ letterSpacing: '0.14em',
1875
+ textTransform: 'uppercase',
1876
+ color: ARDENT.steel,
1877
+ } as const
1878
+ ```
1879
+
1880
+ ### ./src/\_form/use-warnings.ts
1881
+
1882
+ ```ts
1883
+ import { useMemo } from 'react'
1884
+
1885
+ export interface Warning {
1886
+ readonly type: string
1887
+ readonly text: string
1888
+ }
1889
+
1890
+ // The warnings of the committed configuration with their text resolved. A `warning` invariant keeps the change, so its
1891
+ // violation stays in the committed state until the customer resolves it, and finalizing waits for that.
1892
+ // `useFinalizeViolations` lists them.
1893
+ export const useWarnings = (): readonly Warning[] => {
1894
+ const { violations } = phx.frontend.useFinalizeViolations()
1895
+ const resolve = phx.frontend.useResolveLocalizable()
1896
+
1897
+ return useMemo(() => {
1898
+ return (violations ?? []).map(({ violation }) => ({ type: violation.type, text: resolve(violation.message) ?? '' }))
1899
+ }, [violations, resolve])
1900
+ }
1901
+ ```
1902
+
1903
+ ### ./src/\_shared/DesktopPage.tsx
1904
+
1905
+ ```tsx
1906
+ import { Box, Button, IconButton, Tooltip, Typography } from '@mui/material'
1907
+ import { useEffect, useRef, useState } from 'react'
1908
+
1909
+ import { LayoutSlots } from '@salsita-ai/sdk/configurator'
1910
+
1911
+ import { ARDENT, useWarnings } from '../_form/index.js'
1912
+ import { PriceBreakdown } from './PriceBreakdown.js'
1913
+ import { QuoteAction } from './QuoteAction.js'
1914
+ import { StepForm } from './StepForm.js'
1915
+ import { StepHeader } from './StepHeader.js'
1916
+ import { STEP_WARNINGS } from './step-warnings.js'
1917
+
1918
+ const UNDO_ICON = 'M9 14 4 9l5-5M4 9h10.5a5.5 5.5 0 0 1 0 11H11'
1919
+ const REDO_ICON = 'M15 14l5-5-5-5M20 9H9.5a5.5 5.5 0 0 0 0 11H13'
1920
+ const PANEL_WIDTH = 400
1921
+
1922
+ interface IconProps {
1923
+ readonly path: string
1924
+ }
1925
+
1926
+ const Icon = ({ path }: IconProps) => {
1927
+ return (
1928
+ <Box component="svg" viewBox="0 0 24 24" aria-hidden sx={{ inlineSize: 20, blockSize: 20 }}>
1929
+ <path d={path} fill="none" stroke="currentColor" strokeWidth={2} strokeLinecap="round" strokeLinejoin="round" />
1930
+ </Box>
1931
+ )
1932
+ }
1933
+
1934
+ // The desktop page: the brand bar with undo and redo, the stepper, the active step's form, and a column with the live
1935
+ // price breakdown and the way on. The form scrolls; the column stays.
1936
+ export const DesktopPage = () => {
1937
+ const { accessInfo } = phx.frontend.useAccessService()
1938
+ const { canUndo, canRedo, undo, redo } = phx.frontend.useUndoRedo()
1939
+ const { activeStep, isLast, canGoPrevious, canGoNext, steps, next, previous, goTo } = phx.frontend.useStepNavigation()
1940
+ const navigationState = phx.frontend.useActiveNavigationState()
1941
+ const compressor = phx.frontend.useRootEntityState()
1942
+ const warnings = useWarnings()
1943
+ const [revealWarnings, setRevealWarnings] = useState(false)
1944
+ const formRef = useRef<HTMLElement>(null)
1945
+
1946
+ // Each step starts at its top, as a new page would
1947
+ useEffect(() => {
1948
+ formRef.current?.scrollTo({ top: 0 })
1949
+ }, [navigationState])
1950
+ const readOnly = accessInfo.viewMode
1951
+ const nextStep = steps[(activeStep?.index ?? -1) + 1]
1952
+ const conflictCount = warnings.filter(warning =>
1953
+ Object.values(STEP_WARNINGS).some(types => types.includes(warning.type))
1954
+ ).length
1955
+
1956
+ return (
1957
+ <Box
1958
+ component="div"
1959
+ sx={{
1960
+ position: 'absolute',
1961
+ inset: 0,
1962
+ display: 'grid',
1963
+ gridTemplateRows: 'auto auto minmax(0, 1fr)',
1964
+ gridTemplateColumns: `minmax(0, 1fr) ${PANEL_WIDTH}px`,
1965
+ bgcolor: ARDENT.page,
1966
+ fontFamily: ARDENT.font,
1967
+ }}
1968
+ >
1969
+ <Box
1970
+ component="header"
1971
+ sx={{
1972
+ gridColumn: '1 / -1',
1973
+ display: 'flex',
1974
+ alignItems: 'center',
1975
+ gap: 3,
1976
+ paddingInline: 4,
1977
+ blockSize: 64,
1978
+ bgcolor: ARDENT.navy,
1979
+ color: ARDENT.panel,
1980
+ }}
1981
+ >
1982
+ <Typography sx={{ fontFamily: ARDENT.font, fontSize: 22, fontWeight: 700, letterSpacing: '0.12em' }}>
1983
+ ARDENT
1984
+ <Box component="span" sx={{ color: ARDENT.signal }}>
1985
+ {' '}
1986
+ AIR
1987
+ </Box>
1988
+ </Typography>
1989
+ <Box component="span" aria-hidden sx={{ inlineSize: 1, blockSize: 28, bgcolor: ARDENT.navySoft }} />
1990
+ <Typography component="h1" sx={{ fontFamily: ARDENT.font, fontSize: 18, fontWeight: 500 }}>
1991
+ Compressor quote
1992
+ </Typography>
1993
+ <Typography sx={{ fontFamily: ARDENT.font, fontSize: 15, color: '#9fb0c6' }}>
1994
+ {compressor.$frameName} · {compressor.$frameKw} kW
1995
+ </Typography>
1996
+ <Box component="div" sx={{ marginInlineStart: 'auto', display: 'flex', gap: 0.5 }}>
1997
+ <Tooltip title="Undo">
1998
+ <span>
1999
+ <IconButton
2000
+ aria-label="Undo"
2001
+ disabled={!canUndo || readOnly}
2002
+ onClick={undo}
2003
+ sx={{ color: ARDENT.panel, '&.Mui-disabled': { color: ARDENT.navySoft } }}
2004
+ >
2005
+ <Icon path={UNDO_ICON} />
2006
+ </IconButton>
2007
+ </span>
2008
+ </Tooltip>
2009
+ <Tooltip title="Redo">
2010
+ <span>
2011
+ <IconButton
2012
+ aria-label="Redo"
2013
+ disabled={!canRedo || readOnly}
2014
+ onClick={redo}
2015
+ sx={{ color: ARDENT.panel, '&.Mui-disabled': { color: ARDENT.navySoft } }}
2016
+ >
2017
+ <Icon path={REDO_ICON} />
2018
+ </IconButton>
2019
+ </span>
2020
+ </Tooltip>
2021
+ </Box>
2022
+ </Box>
2023
+
2024
+ <Box
2025
+ component="div"
2026
+ sx={{ gridColumn: '1 / -1', bgcolor: ARDENT.panel, borderBlockEnd: `1px solid ${ARDENT.line}` }}
2027
+ >
2028
+ <StepHeader compact={false} />
2029
+ </Box>
2030
+
2031
+ <Box component="main" ref={formRef} sx={{ overflowY: 'auto', minBlockSize: 0 }}>
2032
+ <Box component="div" sx={{ display: 'grid', gap: 3, maxInlineSize: 820, marginInline: 'auto', padding: 4 }}>
2033
+ <Box component="div" sx={{ display: 'grid', gap: 0.5 }}>
2034
+ <Typography sx={{ fontFamily: ARDENT.font, fontSize: 14, color: ARDENT.steel }}>
2035
+ Step {(activeStep?.index ?? 0) + 1} of {steps.length}
2036
+ </Typography>
2037
+ <Typography
2038
+ component="h2"
2039
+ sx={{ fontFamily: ARDENT.font, fontSize: 32, fontWeight: 700, color: ARDENT.ink }}
2040
+ >
2041
+ {activeStep?.label}
2042
+ </Typography>
2043
+ </Box>
2044
+ <StepForm readOnly={readOnly} revealWarnings={revealWarnings} />
2045
+ <Box
2046
+ component="nav"
2047
+ aria-label="Step navigation"
2048
+ sx={{ display: 'flex', justifyContent: 'space-between', gap: 2 }}
2049
+ >
2050
+ <Button
2051
+ disabled={!canGoPrevious}
2052
+ onClick={previous}
2053
+ sx={{
2054
+ color: ARDENT.ink,
2055
+ fontFamily: ARDENT.font,
2056
+ fontSize: 16,
2057
+ textTransform: 'none',
2058
+ visibility: canGoPrevious ? 'visible' : 'hidden',
2059
+ }}
2060
+ >
2061
+ ← Back
2062
+ </Button>
2063
+ {canGoNext && !isLast && (
2064
+ <Button
2065
+ variant="contained"
2066
+ disableElevation
2067
+ onClick={next}
2068
+ sx={{
2069
+ borderRadius: 2,
2070
+ paddingInline: 3,
2071
+ bgcolor: ARDENT.navy,
2072
+ fontFamily: ARDENT.font,
2073
+ fontSize: 16,
2074
+ fontWeight: 600,
2075
+ textTransform: 'none',
2076
+ '&:hover': { bgcolor: ARDENT.ink },
2077
+ }}
2078
+ >
2079
+ Next: {nextStep?.label}
2080
+ </Button>
2081
+ )}
2082
+ </Box>
2083
+ </Box>
2084
+ </Box>
2085
+
2086
+ <Box
2087
+ component="aside"
2088
+ aria-label="Quote"
2089
+ sx={{
2090
+ display: 'flex',
2091
+ flexDirection: 'column',
2092
+ gap: 3,
2093
+ minBlockSize: 0,
2094
+ overflowY: 'auto',
2095
+ padding: 4,
2096
+ bgcolor: ARDENT.panel,
2097
+ borderInlineStart: `1px solid ${ARDENT.line}`,
2098
+ }}
2099
+ >
2100
+ <PriceBreakdown />
2101
+ {isLast ? (
2102
+ navigationState !== 'requested' && <QuoteAction onBlocked={() => setRevealWarnings(true)} compact={false} />
2103
+ ) : (
2104
+ <Box component="div" sx={{ display: 'grid', gap: 1 }}>
2105
+ {conflictCount > 0 && (
2106
+ <Typography sx={{ fontFamily: ARDENT.font, fontSize: 14, color: ARDENT.warning }}>
2107
+ {conflictCount === 1 ? 'One choice needs attention' : `${conflictCount} choices need attention`} before
2108
+ the quote can be requested.
2109
+ </Typography>
2110
+ )}
2111
+ <Button
2112
+ variant="outlined"
2113
+ onClick={() => goTo('review')}
2114
+ sx={{
2115
+ minBlockSize: 48,
2116
+ borderRadius: 2,
2117
+ borderColor: ARDENT.ink,
2118
+ color: ARDENT.ink,
2119
+ fontFamily: ARDENT.font,
2120
+ fontSize: 16,
2121
+ fontWeight: 600,
2122
+ textTransform: 'none',
2123
+ }}
2124
+ >
2125
+ Review and request quote
2126
+ </Button>
2127
+ </Box>
2128
+ )}
2129
+ {/* Snackbars for a failed save stack upwards from the bottom of the column */}
2130
+ <Box component="div" sx={{ marginBlockStart: 'auto' }}>
2131
+ <LayoutSlots.DesktopSnackbarsRoot />
2132
+ </Box>
2133
+ </Box>
2134
+ </Box>
2135
+ )
2136
+ }
2137
+ ```
2138
+
2139
+ ### ./src/\_shared/PhonePage.tsx
2140
+
2141
+ ```tsx
2142
+ import { Box, Button, ButtonBase, Typography } from '@mui/material'
2143
+ import { useEffect, useRef, useState } from 'react'
2144
+
2145
+ import { LayoutSlots } from '@salsita-ai/sdk/configurator'
2146
+
2147
+ import { ARDENT } from '../_form/index.js'
2148
+ import { PriceBreakdown } from './PriceBreakdown.js'
2149
+ import { QuoteAction } from './QuoteAction.js'
2150
+ import { StepForm } from './StepForm.js'
2151
+ import { StepHeader } from './StepHeader.js'
2152
+
2153
+ const CHEVRON_ICON = 'M6 15l6-6 6 6'
2154
+
2155
+ // The phone page: one column with the compact stepper, the active step's form, and a bar at the bottom with the total
2156
+ // and the way on. The total opens the price breakdown as a sheet above the bar.
2157
+ export const PhonePage = () => {
2158
+ const { accessInfo } = phx.frontend.useAccessService()
2159
+ const { activeStep, isLast, steps, next } = phx.frontend.useStepNavigation()
2160
+ const navigationState = phx.frontend.useActiveNavigationState()
2161
+ const compressor = phx.frontend.useRootEntityState()
2162
+ const total = phx.frontend.useRootEntityPrice()
2163
+ const [isBreakdownOpen, setBreakdownOpen] = useState(false)
2164
+ const [revealWarnings, setRevealWarnings] = useState(false)
2165
+ const formRef = useRef<HTMLElement>(null)
2166
+
2167
+ // Each step starts at its top, as a new page would
2168
+ useEffect(() => {
2169
+ formRef.current?.scrollTo({ top: 0 })
2170
+ }, [navigationState])
2171
+ const nextStep = steps[(activeStep?.index ?? -1) + 1]
2172
+
2173
+ return (
2174
+ <Box
2175
+ component="div"
2176
+ sx={{
2177
+ position: 'absolute',
2178
+ inset: 0,
2179
+ display: 'grid',
2180
+ gridTemplateRows: 'auto auto minmax(0, 1fr) auto',
2181
+ bgcolor: ARDENT.page,
2182
+ fontFamily: ARDENT.font,
2183
+ }}
2184
+ >
2185
+ <Box
2186
+ component="header"
2187
+ sx={{
2188
+ display: 'flex',
2189
+ alignItems: 'center',
2190
+ gap: 1.5,
2191
+ paddingInline: 2,
2192
+ blockSize: 52,
2193
+ bgcolor: ARDENT.navy,
2194
+ color: ARDENT.panel,
2195
+ }}
2196
+ >
2197
+ <Typography sx={{ fontFamily: ARDENT.font, fontSize: 18, fontWeight: 700, letterSpacing: '0.12em' }}>
2198
+ ARDENT
2199
+ <Box component="span" sx={{ color: ARDENT.signal }}>
2200
+ {' '}
2201
+ AIR
2202
+ </Box>
2203
+ </Typography>
2204
+ <Typography
2205
+ component="h1"
2206
+ sx={{ marginInlineStart: 'auto', fontFamily: ARDENT.font, fontSize: 15, color: '#c9d3e0' }}
2207
+ >
2208
+ Quote · {compressor.$frameName}
2209
+ </Typography>
2210
+ </Box>
2211
+
2212
+ <Box component="div" sx={{ bgcolor: ARDENT.panel, borderBlockEnd: `1px solid ${ARDENT.line}` }}>
2213
+ <StepHeader compact />
2214
+ </Box>
2215
+
2216
+ <Box component="main" ref={formRef} sx={{ overflowY: 'auto', minBlockSize: 0 }}>
2217
+ <Box component="div" sx={{ display: 'grid', gap: 2, padding: 2, paddingBlockEnd: 3 }}>
2218
+ <StepForm readOnly={accessInfo.viewMode} revealWarnings={revealWarnings} />
2219
+ </Box>
2220
+ </Box>
2221
+
2222
+ {isBreakdownOpen && (
2223
+ <Box
2224
+ component="div"
2225
+ onClick={() => setBreakdownOpen(false)}
2226
+ sx={{ position: 'absolute', inset: 0, bgcolor: 'rgba(13, 27, 46, 0.4)' }}
2227
+ />
2228
+ )}
2229
+
2230
+ <Box
2231
+ component="footer"
2232
+ sx={{
2233
+ position: 'relative',
2234
+ display: 'grid',
2235
+ gap: 1.5,
2236
+ padding: 2,
2237
+ bgcolor: ARDENT.panel,
2238
+ borderBlockStart: `1px solid ${ARDENT.line}`,
2239
+ boxShadow: '0 -8px 24px rgba(13, 27, 46, 0.08)',
2240
+ }}
2241
+ >
2242
+ {isBreakdownOpen && (
2243
+ <Box component="div" sx={{ maxBlockSize: '55vh', overflowY: 'auto', paddingBlockEnd: 1 }}>
2244
+ <PriceBreakdown />
2245
+ </Box>
2246
+ )}
2247
+ <Box component="div" sx={{ display: 'flex', alignItems: 'center', gap: 2 }}>
2248
+ <ButtonBase
2249
+ aria-expanded={isBreakdownOpen}
2250
+ aria-label={isBreakdownOpen ? 'Hide the price breakdown' : 'Show the price breakdown'}
2251
+ onClick={() => setBreakdownOpen(open => !open)}
2252
+ sx={{ display: 'grid', justifyItems: 'start', textAlign: 'start', borderRadius: 1, paddingInlineEnd: 1 }}
2253
+ >
2254
+ <Typography
2255
+ component="span"
2256
+ sx={{
2257
+ display: 'flex',
2258
+ alignItems: 'center',
2259
+ gap: 0.5,
2260
+ fontFamily: ARDENT.font,
2261
+ fontSize: 13,
2262
+ color: ARDENT.steel,
2263
+ }}
2264
+ >
2265
+ Total, {compressor.$leadTimeWeeks} weeks
2266
+ <Box
2267
+ component="svg"
2268
+ viewBox="0 0 24 24"
2269
+ aria-hidden
2270
+ sx={{
2271
+ inlineSize: 16,
2272
+ blockSize: 16,
2273
+ transform: isBreakdownOpen ? 'rotate(180deg)' : 'none',
2274
+ transition: 'transform 160ms',
2275
+ }}
2276
+ >
2277
+ <path d={CHEVRON_ICON} fill="none" stroke="currentColor" strokeWidth={2} strokeLinecap="round" />
2278
+ </Box>
2279
+ </Typography>
2280
+ <Typography
2281
+ component="span"
2282
+ sx={{ fontFamily: ARDENT.font, fontSize: 22, fontWeight: 700, color: ARDENT.ink }}
2283
+ >
2284
+ {total}
2285
+ </Typography>
2286
+ </ButtonBase>
2287
+ <Box component="div" sx={{ flex: 1, minInlineSize: 0 }}>
2288
+ {isLast ? (
2289
+ navigationState !== 'requested' && <QuoteAction onBlocked={() => setRevealWarnings(true)} compact />
2290
+ ) : (
2291
+ <Button
2292
+ fullWidth
2293
+ variant="contained"
2294
+ disableElevation
2295
+ onClick={next}
2296
+ sx={{
2297
+ minBlockSize: 48,
2298
+ borderRadius: 2,
2299
+ bgcolor: ARDENT.navy,
2300
+ fontFamily: ARDENT.font,
2301
+ fontSize: 16,
2302
+ fontWeight: 600,
2303
+ textTransform: 'none',
2304
+ '&:hover': { bgcolor: ARDENT.ink },
2305
+ }}
2306
+ >
2307
+ Next: {nextStep?.label}
2308
+ </Button>
2309
+ )}
2310
+ </Box>
2311
+ </Box>
2312
+ </Box>
2313
+
2314
+ <LayoutSlots.MobileSnackbarsRoot />
2315
+ </Box>
2316
+ )
2317
+ }
2318
+ ```
2319
+
2320
+ ### ./src/\_shared/PriceBreakdown.tsx
2321
+
2322
+ ```tsx
2323
+ import { Box, Typography } from '@mui/material'
2324
+
2325
+ import { ARDENT, OVERLINE_SX } from '../_form/index.js'
2326
+
2327
+ const formatEuro = (amount: number) => {
2328
+ return amount.toLocaleString('en-IE', { style: 'currency', currency: 'EUR', maximumFractionDigits: 0 })
2329
+ }
2330
+
2331
+ const ROW_SX = {
2332
+ display: 'grid',
2333
+ gridTemplateColumns: '1fr auto',
2334
+ columnGap: 2,
2335
+ alignItems: 'baseline',
2336
+ paddingBlock: 1,
2337
+ } as const
2338
+
2339
+ // The quote's lines, subtotal, lead-time surcharge and total. Every number comes from an expression of the spec
2340
+ // (`$quoteLines`, `$subtotal`, `$leadTimeSurcharge`, `$leadTimeWeeks`), read from the root entity, so the breakdown
2341
+ // changes with each choice, and the total is the `price` component's value.
2342
+ export const PriceBreakdown = () => {
2343
+ const compressor = phx.frontend.useRootEntityState()
2344
+ const total = phx.frontend.useRootEntityPrice()
2345
+
2346
+ return (
2347
+ <Box component="section" aria-label="Price breakdown" sx={{ display: 'grid', fontFamily: ARDENT.font }}>
2348
+ <Typography component="h2" sx={{ ...OVERLINE_SX, paddingBlockEnd: 1 }}>
2349
+ Price breakdown
2350
+ </Typography>
2351
+
2352
+ <Box component="ul" sx={{ margin: 0, padding: 0, listStyle: 'none' }}>
2353
+ {compressor.$quoteLines.map(line => (
2354
+ <Box component="li" key={line.key} sx={{ ...ROW_SX, borderBlockEnd: `1px solid ${ARDENT.line}` }}>
2355
+ <Box component="div" sx={{ display: 'grid', minInlineSize: 0 }}>
2356
+ <Typography
2357
+ component="span"
2358
+ sx={{ fontFamily: ARDENT.font, fontSize: 15, fontWeight: 500, color: ARDENT.ink }}
2359
+ >
2360
+ {line.label}
2361
+ </Typography>
2362
+ <Typography component="span" sx={{ fontFamily: ARDENT.font, fontSize: 13, color: ARDENT.steel }}>
2363
+ {line.detail}
2364
+ </Typography>
2365
+ </Box>
2366
+ <Typography
2367
+ component="span"
2368
+ sx={{ fontFamily: ARDENT.font, fontSize: 15, color: ARDENT.ink, fontVariantNumeric: 'tabular-nums' }}
2369
+ >
2370
+ {formatEuro(line.amount)}
2371
+ </Typography>
2372
+ </Box>
2373
+ ))}
2374
+ </Box>
2375
+
2376
+ <Box component="div" sx={{ ...ROW_SX, paddingBlockStart: 1.5 }}>
2377
+ <Typography component="span" sx={{ fontFamily: ARDENT.font, fontSize: 15, color: ARDENT.steel }}>
2378
+ Subtotal
2379
+ </Typography>
2380
+ <Typography
2381
+ component="span"
2382
+ sx={{ fontFamily: ARDENT.font, fontSize: 15, color: ARDENT.ink, fontVariantNumeric: 'tabular-nums' }}
2383
+ >
2384
+ {formatEuro(compressor.$subtotal)}
2385
+ </Typography>
2386
+ </Box>
2387
+ {compressor.$leadTimeSurcharge > 0 && (
2388
+ <Box component="div" sx={ROW_SX}>
2389
+ <Typography component="span" sx={{ fontFamily: ARDENT.font, fontSize: 15, color: ARDENT.steel }}>
2390
+ Express delivery surcharge
2391
+ </Typography>
2392
+ <Typography
2393
+ component="span"
2394
+ sx={{ fontFamily: ARDENT.font, fontSize: 15, color: ARDENT.ink, fontVariantNumeric: 'tabular-nums' }}
2395
+ >
2396
+ {formatEuro(compressor.$leadTimeSurcharge)}
2397
+ </Typography>
2398
+ </Box>
2399
+ )}
2400
+
2401
+ <Box
2402
+ component="div"
2403
+ sx={{ ...ROW_SX, marginBlockStart: 1, paddingBlockStart: 1.5, borderBlockStart: `2px solid ${ARDENT.ink}` }}
2404
+ >
2405
+ <Typography component="span" sx={{ fontFamily: ARDENT.font, fontSize: 17, fontWeight: 600, color: ARDENT.ink }}>
2406
+ Total, ex works
2407
+ </Typography>
2408
+ <Typography
2409
+ component="span"
2410
+ sx={{
2411
+ fontFamily: ARDENT.font,
2412
+ fontSize: 26,
2413
+ fontWeight: 700,
2414
+ color: ARDENT.ink,
2415
+ fontVariantNumeric: 'tabular-nums',
2416
+ }}
2417
+ >
2418
+ {total}
2419
+ </Typography>
2420
+ </Box>
2421
+ <Typography sx={{ fontFamily: ARDENT.font, fontSize: 14, color: ARDENT.steel, textAlign: 'end' }}>
2422
+ Lead time {compressor.$leadTimeWeeks} weeks · prices excl. VAT
2423
+ </Typography>
2424
+ </Box>
2425
+ )
2426
+ }
2427
+ ```
2428
+
2429
+ ### ./src/\_shared/QuoteAction.tsx
2430
+
2431
+ ```tsx
2432
+ import { Alert, Box, Button, CircularProgress, Typography } from '@mui/material'
2433
+
2434
+ import { ARDENT } from '../_form/index.js'
2435
+
2436
+ interface QuoteActionProps {
2437
+ // Called instead of running the action while a warning blocks it, so the layout can show every warning
2438
+ readonly onBlocked: () => void
2439
+ // Leaves out the list of what blocks the request, for the phone's bottom bar
2440
+ readonly compact: boolean
2441
+ }
2442
+
2443
+ // The spec's `quote` finalize action. While any warning holds, `useFinalizeActions` reports the action `disabled` with
2444
+ // the warnings as `hints`: the button stays clickable and reveals them instead of running. A viewer sees no button.
2445
+ export const QuoteAction = ({ onBlocked, compact }: QuoteActionProps) => {
2446
+ const { primary, hints } = phx.frontend.useFinalizeActions()
2447
+ const { accessInfo } = phx.frontend.useAccessService()
2448
+
2449
+ if (primary === null || accessInfo.viewMode) {
2450
+ return null
2451
+ }
2452
+
2453
+ return (
2454
+ <Box component="div" sx={{ display: 'grid', gap: 1.25 }}>
2455
+ <Button
2456
+ variant="contained"
2457
+ disableElevation
2458
+ disabled={primary.isPending}
2459
+ aria-disabled={primary.disabled}
2460
+ title={primary.title}
2461
+ onClick={() => (primary.disabled ? onBlocked() : void primary.run())}
2462
+ startIcon={primary.isPending ? <CircularProgress size={18} color="inherit" /> : undefined}
2463
+ sx={{
2464
+ minBlockSize: 52,
2465
+ borderRadius: 2,
2466
+ bgcolor: primary.disabled ? ARDENT.steel : ARDENT.signal,
2467
+ color: ARDENT.panel,
2468
+ fontFamily: ARDENT.font,
2469
+ fontSize: 17,
2470
+ fontWeight: 600,
2471
+ textTransform: 'none',
2472
+ '&:hover': { bgcolor: primary.disabled ? ARDENT.steel : ARDENT.signalDark },
2473
+ '&.Mui-disabled': { bgcolor: ARDENT.signal, color: ARDENT.panel, opacity: 0.7 },
2474
+ }}
2475
+ >
2476
+ {primary.isPending ? 'Sending to an engineer…' : primary.label}
2477
+ </Button>
2478
+ {!compact && primary.disabled && hints && (
2479
+ <Typography sx={{ fontFamily: ARDENT.font, fontSize: 14, lineHeight: 1.4, color: ARDENT.warning }}>
2480
+ Resolve before requesting: {hints}
2481
+ </Typography>
2482
+ )}
2483
+ {primary.error && (
2484
+ <Alert severity="error">The quote could not be sent: {primary.error.message} Try again in a moment.</Alert>
2485
+ )}
2486
+ </Box>
2487
+ )
2488
+ }
2489
+ ```
2490
+
2491
+ ### ./src/\_shared/ReviewStep.tsx
2492
+
2493
+ ```tsx
2494
+ import { Box, Button, Typography } from '@mui/material'
2495
+
2496
+ import { ARDENT, OVERLINE_SX, TextInputField, useWarnings } from '../_form/index.js'
2497
+ import { setQuoteReceipt, useQuoteReceipt } from './quote-receipt.js'
2498
+ import { STEP_WARNINGS } from './step-warnings.js'
2499
+
2500
+ const CARD_SX = {
2501
+ display: 'grid',
2502
+ gap: 2.5,
2503
+ padding: { xs: 2.5, sm: 3 },
2504
+ borderRadius: 3,
2505
+ border: `1px solid ${ARDENT.line}`,
2506
+ bgcolor: ARDENT.panel,
2507
+ } as const
2508
+
2509
+ // The quote service's answer, kept visible after the request: what to quote against and who answers
2510
+ const Receipt = () => {
2511
+ const receipt = useQuoteReceipt()
2512
+ const navigate = phx.frontend.useNavigate()
2513
+ // The answer lives only as long as the page; a configuration reopened in the `requested` state shows no details
2514
+ const rows =
2515
+ receipt === null
2516
+ ? []
2517
+ : [
2518
+ { label: 'Reference', value: receipt.reference },
2519
+ { label: 'Your engineer', value: receipt.engineer },
2520
+ { label: 'Price valid until', value: receipt.validUntil },
2521
+ { label: 'Quoted total', value: receipt.total },
2522
+ ]
2523
+
2524
+ return (
2525
+ <Box
2526
+ component="section"
2527
+ role="status"
2528
+ sx={{ ...CARD_SX, borderColor: ARDENT.success, bgcolor: ARDENT.successTint }}
2529
+ >
2530
+ <Box component="header" sx={{ display: 'grid', gap: 0.5 }}>
2531
+ <Typography
2532
+ component="h3"
2533
+ sx={{ fontFamily: ARDENT.font, fontSize: 24, fontWeight: 700, color: ARDENT.success }}
2534
+ >
2535
+ Quote requested
2536
+ </Typography>
2537
+ <Typography sx={{ fontFamily: ARDENT.font, fontSize: 15, color: ARDENT.ink }}>
2538
+ Your engineer checks the duty and sends a firm quote within one working day.
2539
+ </Typography>
2540
+ </Box>
2541
+ <Box
2542
+ component="dl"
2543
+ sx={{ display: 'grid', gridTemplateColumns: 'max-content 1fr', columnGap: 3, rowGap: 1, margin: 0 }}
2544
+ >
2545
+ {rows.map(row => (
2546
+ <Box component="div" key={row.label} sx={{ display: 'contents' }}>
2547
+ <Typography component="dt" sx={{ fontFamily: ARDENT.font, fontSize: 15, color: ARDENT.steel }}>
2548
+ {row.label}
2549
+ </Typography>
2550
+ <Typography
2551
+ component="dd"
2552
+ sx={{ margin: 0, fontFamily: ARDENT.font, fontSize: 15, fontWeight: 600, color: ARDENT.ink }}
2553
+ >
2554
+ {row.value}
2555
+ </Typography>
2556
+ </Box>
2557
+ ))}
2558
+ </Box>
2559
+ <Box component="div">
2560
+ <Button
2561
+ variant="outlined"
2562
+ onClick={() => {
2563
+ setQuoteReceipt(null)
2564
+ navigate('review')
2565
+ }}
2566
+ sx={{
2567
+ borderColor: ARDENT.ink,
2568
+ color: ARDENT.ink,
2569
+ fontFamily: ARDENT.font,
2570
+ fontSize: 15,
2571
+ textTransform: 'none',
2572
+ }}
2573
+ >
2574
+ Back to summary
2575
+ </Button>
2576
+ </Box>
2577
+ </Box>
2578
+ )
2579
+ }
2580
+
2581
+ // The conflicts left between choices, each with a way to the step that resolves it
2582
+ const Conflicts = () => {
2583
+ const warnings = useWarnings()
2584
+ const { steps, goTo } = phx.frontend.useStepNavigation()
2585
+ const conflicts = warnings.flatMap(warning => {
2586
+ const step = steps.find(candidate => STEP_WARNINGS[candidate.state]?.includes(warning.type))
2587
+
2588
+ return step ? [{ ...warning, step }] : []
2589
+ })
2590
+
2591
+ if (conflicts.length === 0) {
2592
+ return null
2593
+ }
2594
+
2595
+ return (
2596
+ <Box
2597
+ component="section"
2598
+ role="alert"
2599
+ sx={{ ...CARD_SX, gap: 1.5, borderColor: ARDENT.warning, bgcolor: ARDENT.warningTint }}
2600
+ >
2601
+ <Typography component="h3" sx={{ fontFamily: ARDENT.font, fontSize: 18, fontWeight: 600, color: ARDENT.warning }}>
2602
+ {conflicts.length === 1 ? 'One choice needs attention' : `${conflicts.length} choices need attention`}
2603
+ </Typography>
2604
+ {conflicts.map(conflict => (
2605
+ <Box
2606
+ component="div"
2607
+ key={conflict.type}
2608
+ sx={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 2 }}
2609
+ >
2610
+ <Typography sx={{ fontFamily: ARDENT.font, fontSize: 15, color: ARDENT.ink }}>{conflict.text}</Typography>
2611
+ <Button
2612
+ onClick={() => goTo(conflict.step.index)}
2613
+ sx={{
2614
+ flex: 'none',
2615
+ color: ARDENT.warning,
2616
+ fontFamily: ARDENT.font,
2617
+ fontSize: 15,
2618
+ fontWeight: 600,
2619
+ textTransform: 'none',
2620
+ }}
2621
+ >
2622
+ Go to {conflict.step.label}
2623
+ </Button>
2624
+ </Box>
2625
+ ))}
2626
+ </Box>
2627
+ )
2628
+ }
2629
+
2630
+ interface ReviewStepProps {
2631
+ readonly readOnly: boolean
2632
+ readonly revealWarnings: boolean
2633
+ }
2634
+
2635
+ // The last step: the conflicts left, the contact details the quote needs, and the summary of what is quoted, from the
2636
+ // spec's `$specSheet` expression. After the request, the service's answer takes the place of the contact details.
2637
+ export const ReviewStep = ({ readOnly, revealWarnings }: ReviewStepProps) => {
2638
+ const compressor = phx.frontend.useRootEntityState()
2639
+ const navigationState = phx.frontend.useActiveNavigationState()
2640
+ const isRequested = navigationState === 'requested'
2641
+
2642
+ return (
2643
+ <>
2644
+ {isRequested ? (
2645
+ <Receipt />
2646
+ ) : (
2647
+ <>
2648
+ <Conflicts />
2649
+ <Box component="section" sx={CARD_SX}>
2650
+ <Typography component="h3" sx={OVERLINE_SX}>
2651
+ Your details
2652
+ </Typography>
2653
+ <Box component="div" sx={{ display: 'grid', gridTemplateColumns: { xs: '1fr', md: '1fr 1fr' }, gap: 2.5 }}>
2654
+ <TextInputField
2655
+ instanceName="company"
2656
+ label="Company"
2657
+ warningTypes={['companyMissing']}
2658
+ readOnly={readOnly}
2659
+ autoComplete="organization"
2660
+ revealWarning={revealWarnings}
2661
+ />
2662
+ <TextInputField
2663
+ instanceName="email"
2664
+ label="Email"
2665
+ type="email"
2666
+ warningTypes={['emailInvalid']}
2667
+ readOnly={readOnly}
2668
+ autoComplete="email"
2669
+ revealWarning={revealWarnings}
2670
+ />
2671
+ </Box>
2672
+ <TextInputField
2673
+ instanceName="projectReference"
2674
+ label="Project reference"
2675
+ hint="Optional. It is printed on the quote."
2676
+ readOnly={readOnly}
2677
+ revealWarning={revealWarnings}
2678
+ />
2679
+ </Box>
2680
+ </>
2681
+ )}
2682
+
2683
+ <Box component="section" sx={CARD_SX}>
2684
+ <Typography component="h3" sx={OVERLINE_SX}>
2685
+ {isRequested ? 'What was quoted' : 'Quote summary'}
2686
+ </Typography>
2687
+ <Box
2688
+ component="dl"
2689
+ sx={{ display: 'grid', gridTemplateColumns: { xs: '1fr', sm: '1fr 1fr' }, columnGap: 4, margin: 0 }}
2690
+ >
2691
+ {compressor.$specSheet.map(row => (
2692
+ <Box
2693
+ component="div"
2694
+ key={row.label}
2695
+ sx={{
2696
+ display: 'flex',
2697
+ justifyContent: 'space-between',
2698
+ gap: 2,
2699
+ paddingBlock: 1,
2700
+ borderBlockEnd: `1px solid ${ARDENT.line}`,
2701
+ }}
2702
+ >
2703
+ <Typography component="dt" sx={{ fontFamily: ARDENT.font, fontSize: 15, color: ARDENT.steel }}>
2704
+ {row.label}
2705
+ </Typography>
2706
+ <Typography
2707
+ component="dd"
2708
+ sx={{
2709
+ margin: 0,
2710
+ fontFamily: ARDENT.font,
2711
+ fontSize: 15,
2712
+ fontWeight: 500,
2713
+ color: ARDENT.ink,
2714
+ textAlign: 'end',
2715
+ }}
2716
+ >
2717
+ {row.value}
2718
+ </Typography>
2719
+ </Box>
2720
+ ))}
2721
+ </Box>
2722
+ </Box>
2723
+ </>
2724
+ )
2725
+ }
2726
+ ```
2727
+
2728
+ ### ./src/\_shared/StepForm.tsx
2729
+
2730
+ ```tsx
2731
+ import { Box, Typography } from '@mui/material'
2732
+ import type { ReactNode } from 'react'
2733
+
2734
+ import { ARDENT, ChoiceField, NumberField, OVERLINE_SX, SwitchField } from '../_form/index.js'
2735
+ import { ReviewStep } from './ReviewStep.js'
2736
+
2737
+ interface SectionProps {
2738
+ readonly title: string
2739
+ readonly description?: string
2740
+ readonly children: ReactNode
2741
+ }
2742
+
2743
+ const Section = ({ title, description, children }: SectionProps) => {
2744
+ return (
2745
+ <Box
2746
+ component="section"
2747
+ sx={{
2748
+ display: 'grid',
2749
+ gap: 3,
2750
+ padding: { xs: 2.5, sm: 3 },
2751
+ borderRadius: 3,
2752
+ border: `1px solid ${ARDENT.line}`,
2753
+ bgcolor: ARDENT.panel,
2754
+ }}
2755
+ >
2756
+ <Box component="header" sx={{ display: 'grid', gap: 0.5 }}>
2757
+ <Typography component="h3" sx={OVERLINE_SX}>
2758
+ {title}
2759
+ </Typography>
2760
+ {description && (
2761
+ <Typography sx={{ fontFamily: ARDENT.font, fontSize: 15, color: ARDENT.steel }}>{description}</Typography>
2762
+ )}
2763
+ </Box>
2764
+ {children}
2765
+ </Box>
2766
+ )
2767
+ }
2768
+
2769
+ // The frame the duty selects, from the spec's expressions, so the customer sees what the numbers mean
2770
+ const FrameStrip = () => {
2771
+ const compressor = phx.frontend.useRootEntityState()
2772
+
2773
+ return (
2774
+ <Box
2775
+ component="div"
2776
+ role="status"
2777
+ sx={{
2778
+ display: 'flex',
2779
+ flexWrap: 'wrap',
2780
+ alignItems: 'baseline',
2781
+ columnGap: 1.5,
2782
+ rowGap: 0.5,
2783
+ paddingInline: 2,
2784
+ paddingBlock: 1.5,
2785
+ borderRadius: 2,
2786
+ bgcolor: ARDENT.navy,
2787
+ color: ARDENT.panel,
2788
+ fontFamily: ARDENT.font,
2789
+ }}
2790
+ >
2791
+ <Typography component="span" sx={{ ...OVERLINE_SX, color: '#9fb0c6' }}>
2792
+ Selected frame
2793
+ </Typography>
2794
+ <Typography component="span" sx={{ fontFamily: ARDENT.font, fontSize: 20, fontWeight: 700 }}>
2795
+ {compressor.$frameName}
2796
+ </Typography>
2797
+ <Typography component="span" sx={{ fontFamily: ARDENT.font, fontSize: 15, color: '#c9d3e0' }}>
2798
+ {compressor.$frameKw} kW motor, the smallest frame that meets the duty
2799
+ </Typography>
2800
+ </Box>
2801
+ )
2802
+ }
2803
+
2804
+ interface StepFormProps {
2805
+ readonly readOnly: boolean
2806
+ readonly revealWarnings: boolean
2807
+ }
2808
+
2809
+ // The form of the active step. Each section lists the fields the step asks for; a field whose spec component is
2810
+ // inactive, such as the dew point without a desiccant dryer, renders nothing, so the conditions stay in the spec.
2811
+ export const StepForm = ({ readOnly, revealWarnings }: StepFormProps) => {
2812
+ const navigationState = phx.frontend.useActiveNavigationState()
2813
+ const compressor = phx.frontend.useRootEntityState()
2814
+ const receiverHint =
2815
+ compressor.$minReceiverLitres > 0
2816
+ ? `A fixed-speed machine at this flow needs at least ${compressor.$minReceiverLitres.toLocaleString('en')} L.`
2817
+ : 'A variable-speed machine follows demand and needs no large buffer.'
2818
+
2819
+ switch (navigationState) {
2820
+ case 'duty':
2821
+ return (
2822
+ <>
2823
+ <Section title="Air demand" description="How much air the plant draws at peak, and at what pressure.">
2824
+ <NumberField
2825
+ instanceName="flow"
2826
+ label="Free air delivery"
2827
+ hint="Read it from the plate of the machine you replace, or from a flow log."
2828
+ warningTypes={['flowAboveRange']}
2829
+ readOnly={readOnly}
2830
+ step={0.5}
2831
+ />
2832
+ <ChoiceField instanceName="pressure" label="Working pressure" readOnly={readOnly} />
2833
+ <FrameStrip />
2834
+ </Section>
2835
+ <Section title="Drive and duty">
2836
+ <ChoiceField instanceName="drive" label="Drive" readOnly={readOnly} minCardWidth={200} />
2837
+ <ChoiceField instanceName="dutyCycle" label="Duty cycle" readOnly={readOnly} minCardWidth={200} />
2838
+ </Section>
2839
+ </>
2840
+ )
2841
+ case 'treatment':
2842
+ return (
2843
+ <>
2844
+ <Section title="Drying" description="Compressed air leaves the machine saturated with water.">
2845
+ <ChoiceField instanceName="dryer" label="Dryer" readOnly={readOnly} />
2846
+ <ChoiceField instanceName="dewPoint" label="Pressure dew point" readOnly={readOnly} minCardWidth={200} />
2847
+ </Section>
2848
+ <Section title="Filtration">
2849
+ <ChoiceField
2850
+ instanceName="filtration"
2851
+ label="Filter package"
2852
+ warningTypes={['desiccantNeedsFiltration']}
2853
+ readOnly={readOnly}
2854
+ />
2855
+ </Section>
2856
+ </>
2857
+ )
2858
+ case 'installation':
2859
+ return (
2860
+ <>
2861
+ <Section title="Plant room">
2862
+ <ChoiceField instanceName="cooling" label="Cooling" readOnly={readOnly} minCardWidth={200} />
2863
+ <SwitchField
2864
+ instanceName="heatRecovery"
2865
+ label="Heat recovery"
2866
+ description="Turns up to 70 % of the motor's power into hot water for the plant."
2867
+ readOnly={readOnly}
2868
+ />
2869
+ <ChoiceField instanceName="enclosure" label="Canopy" readOnly={readOnly} minCardWidth={200} />
2870
+ </Section>
2871
+ <Section title="Air network">
2872
+ <ChoiceField
2873
+ instanceName="receiver"
2874
+ label="Air receiver"
2875
+ hint={receiverHint}
2876
+ warningTypes={['receiverTooSmall']}
2877
+ readOnly={readOnly}
2878
+ minCardWidth={110}
2879
+ />
2880
+ <ChoiceField instanceName="supply" label="Electrical supply" readOnly={readOnly} minCardWidth={200} />
2881
+ </Section>
2882
+ </>
2883
+ )
2884
+ case 'service':
2885
+ return (
2886
+ <>
2887
+ <Section title="Service">
2888
+ <ChoiceField instanceName="servicePlan" label="Service plan" readOnly={readOnly} />
2889
+ <SwitchField
2890
+ instanceName="commissioning"
2891
+ label="Commissioning on site"
2892
+ description="An Ardent engineer starts the machine and trains your staff."
2893
+ readOnly={readOnly}
2894
+ />
2895
+ </Section>
2896
+ <Section title="Delivery" description="Lead times are ex works, from the order's confirmation.">
2897
+ <ChoiceField
2898
+ instanceName="delivery"
2899
+ label="Delivery"
2900
+ warningTypes={['expressUnavailable']}
2901
+ readOnly={readOnly}
2902
+ minCardWidth={200}
2903
+ />
2904
+ </Section>
2905
+ </>
2906
+ )
2907
+ default:
2908
+ return <ReviewStep readOnly={readOnly} revealWarnings={revealWarnings} />
2909
+ }
2910
+ }
2911
+ ```
2912
+
2913
+ ### ./src/\_shared/StepHeader.tsx
2914
+
2915
+ ```tsx
2916
+ import { Box, ButtonBase, Typography } from '@mui/material'
2917
+
2918
+ import { ARDENT, useWarnings } from '../_form/index.js'
2919
+ import { STEP_WARNINGS } from './step-warnings.js'
2920
+
2921
+ const CHECK_ICON = 'M5 12.5 10 17.5 19 7'
2922
+
2923
+ interface StepHeaderProps {
2924
+ readonly compact: boolean
2925
+ }
2926
+
2927
+ // The spec's `navigationSteps` as a stepper. Every step can be entered, in any order; a step that holds a warning
2928
+ // carries a mark until the warning is resolved. On a phone the stepper is one line with a segmented progress bar.
2929
+ export const StepHeader = ({ compact }: StepHeaderProps) => {
2930
+ const { steps, activeStep, goTo } = phx.frontend.useStepNavigation()
2931
+ const warnings = useWarnings()
2932
+
2933
+ const hasWarning = (states: readonly string[]) => {
2934
+ return states.some(state => warnings.some(warning => STEP_WARNINGS[state]?.includes(warning.type)))
2935
+ }
2936
+
2937
+ if (compact) {
2938
+ return (
2939
+ <Box
2940
+ component="nav"
2941
+ aria-label="Quote steps"
2942
+ sx={{ display: 'grid', gap: 1, paddingInline: 2, paddingBlock: 1.5 }}
2943
+ >
2944
+ <Box component="div" sx={{ display: 'flex', alignItems: 'baseline', gap: 1 }}>
2945
+ <Typography sx={{ fontFamily: ARDENT.font, fontSize: 13, color: ARDENT.steel }}>
2946
+ Step {(activeStep?.index ?? 0) + 1} of {steps.length}
2947
+ </Typography>
2948
+ <Typography component="h2" sx={{ fontFamily: ARDENT.font, fontSize: 17, fontWeight: 600, color: ARDENT.ink }}>
2949
+ {activeStep?.label}
2950
+ </Typography>
2951
+ </Box>
2952
+ <Box component="ol" sx={{ display: 'flex', gap: 0.5, margin: 0, padding: 0, listStyle: 'none' }}>
2953
+ {steps.map(step => (
2954
+ <Box component="li" key={step.state} sx={{ flex: 1 }}>
2955
+ <ButtonBase
2956
+ aria-label={`${step.label}${hasWarning(step.navigationStates) ? ', needs attention' : ''}`}
2957
+ aria-current={step.status === 'active' ? 'step' : undefined}
2958
+ onClick={() => goTo(step.index)}
2959
+ sx={{
2960
+ display: 'block',
2961
+ inlineSize: '100%',
2962
+ blockSize: 6,
2963
+ borderRadius: 3,
2964
+ // A bigger target than the bar itself, for a finger
2965
+ outline: '8px solid transparent',
2966
+ bgcolor: hasWarning(step.navigationStates)
2967
+ ? ARDENT.warning
2968
+ : step.status === 'upcoming'
2969
+ ? ARDENT.line
2970
+ : ARDENT.signal,
2971
+ }}
2972
+ />
2973
+ </Box>
2974
+ ))}
2975
+ </Box>
2976
+ </Box>
2977
+ )
2978
+ }
2979
+
2980
+ return (
2981
+ <Box
2982
+ component="nav"
2983
+ aria-label="Quote steps"
2984
+ sx={{ display: 'flex', alignItems: 'center', gap: 1, paddingInline: 4, paddingBlock: 1.5, overflowX: 'auto' }}
2985
+ >
2986
+ {steps.map((step, index) => {
2987
+ const warn = hasWarning(step.navigationStates)
2988
+ const isActive = step.status === 'active'
2989
+ const isComplete = step.status === 'complete'
2990
+
2991
+ return (
2992
+ <Box component="div" key={step.state} sx={{ display: 'flex', alignItems: 'center', gap: 1, flex: 'none' }}>
2993
+ {index > 0 && (
2994
+ <Box
2995
+ component="span"
2996
+ aria-hidden
2997
+ sx={{ inlineSize: 32, blockSize: 2, bgcolor: isComplete || isActive ? ARDENT.signal : ARDENT.line }}
2998
+ />
2999
+ )}
3000
+ <ButtonBase
3001
+ aria-current={isActive ? 'step' : undefined}
3002
+ onClick={() => goTo(step.index)}
3003
+ sx={{
3004
+ display: 'flex',
3005
+ alignItems: 'center',
3006
+ gap: 1,
3007
+ paddingInline: 1,
3008
+ paddingBlock: 0.75,
3009
+ borderRadius: 2,
3010
+ '&:hover': { bgcolor: ARDENT.page },
3011
+ '&.Mui-focusVisible': { outline: `2px solid ${ARDENT.navy}` },
3012
+ }}
3013
+ >
3014
+ <Box
3015
+ component="span"
3016
+ sx={{
3017
+ display: 'grid',
3018
+ placeItems: 'center',
3019
+ inlineSize: 28,
3020
+ blockSize: 28,
3021
+ borderRadius: '50%',
3022
+ fontFamily: ARDENT.font,
3023
+ fontSize: 14,
3024
+ fontWeight: 600,
3025
+ color: isActive || isComplete ? ARDENT.panel : ARDENT.steel,
3026
+ bgcolor: isActive ? ARDENT.signal : isComplete ? ARDENT.navy : 'transparent',
3027
+ border: isActive || isComplete ? 'none' : `2px solid ${ARDENT.line}`,
3028
+ }}
3029
+ >
3030
+ {isComplete ? (
3031
+ <Box component="svg" viewBox="0 0 24 24" aria-hidden sx={{ inlineSize: 16, blockSize: 16 }}>
3032
+ <path d={CHECK_ICON} fill="none" stroke="currentColor" strokeWidth={3} strokeLinecap="round" />
3033
+ </Box>
3034
+ ) : (
3035
+ index + 1
3036
+ )}
3037
+ </Box>
3038
+ <Typography
3039
+ component="span"
3040
+ sx={{
3041
+ fontFamily: ARDENT.font,
3042
+ fontSize: 15,
3043
+ fontWeight: isActive ? 600 : 500,
3044
+ color: isActive ? ARDENT.ink : ARDENT.steel,
3045
+ whiteSpace: 'nowrap',
3046
+ }}
3047
+ >
3048
+ {step.label}
3049
+ </Typography>
3050
+ {warn && (
3051
+ <Box
3052
+ component="span"
3053
+ role="img"
3054
+ aria-label="needs attention"
3055
+ sx={{ inlineSize: 8, blockSize: 8, borderRadius: '50%', bgcolor: ARDENT.warning }}
3056
+ />
3057
+ )}
3058
+ </ButtonBase>
3059
+ </Box>
3060
+ )
3061
+ })}
3062
+ </Box>
3063
+ )
3064
+ }
3065
+ ```
3066
+
3067
+ ### ./src/\_shared/quote-receipt.ts
3068
+
3069
+ ```ts
3070
+ import { useSyncExternalStore } from 'react'
3071
+
3072
+ /** What the quote service answers when a quote is requested: the reference the engineer will quote against */
3073
+ export interface QuoteReceipt {
3074
+ readonly reference: string
3075
+ readonly engineer: string
3076
+ readonly validUntil: string
3077
+ readonly total: string
3078
+ }
3079
+
3080
+ let receipt: QuoteReceipt | null = null
3081
+ const listeners = new Set<() => void>()
3082
+
3083
+ const subscribe = (listener: () => void) => {
3084
+ listeners.add(listener)
3085
+
3086
+ return () => {
3087
+ listeners.delete(listener)
3088
+ }
3089
+ }
3090
+
3091
+ // A finalize action's `run()` resolves without a value, so the `requestQuote` handler keeps the service's answer here
3092
+ // for the layout to show. The project owns this store; the configurator does not persist it.
3093
+ export const setQuoteReceipt = (next: QuoteReceipt | null) => {
3094
+ receipt = next
3095
+ listeners.forEach(listener => listener())
3096
+ }
3097
+
3098
+ export const useQuoteReceipt = () => {
3099
+ return useSyncExternalStore(subscribe, () => receipt)
3100
+ }
3101
+ ```
3102
+
3103
+ ### ./src/\_shared/step-warnings.ts
3104
+
3105
+ ```ts
3106
+ // Which step resolves each conflict between choices: the stepper marks a step that holds one, and the review sends the
3107
+ // customer to the step that can fix it. The contact details' warnings stay with their fields on the review step.
3108
+ export const STEP_WARNINGS: Readonly<Record<string, readonly string[]>> = {
3109
+ duty: ['flowAboveRange'],
3110
+ treatment: ['desiccantNeedsFiltration'],
3111
+ installation: ['receiverTooSmall'],
3112
+ service: ['expressUnavailable'],
3113
+ }
3114
+ ```
3115
+
3116
+ ### ./src/elements/ConfiguratorLayout.tsx
3117
+
3118
+ ```tsx
3119
+ import { Box } from '@mui/material'
3120
+
3121
+ import { LayoutSlots } from '@salsita-ai/sdk/configurator'
3122
+
3123
+ import { ARDENT } from '../_form/index.js'
3124
+ import { DesktopPage } from '../_shared/DesktopPage.js'
3125
+ import { PhonePage } from '../_shared/PhonePage.js'
3126
+
3127
+ // A quote builder with no scene: the layout mounts the services and a page, never `LayoutSlots.SharedCanvas`, so the
3128
+ // configurator loads no 3D scene and the app loader does not wait for one. Desktop or phone follows the width of the
3129
+ // configurator's container.
3130
+ const ConfiguratorLayout = () => {
3131
+ // `null` until the container has been measured
3132
+ const viewports = phx.frontend.useActiveViewports()
3133
+ const isDesktop = viewports?.includes('desktop') ?? false
3134
+
3135
+ return (
3136
+ <Box component="div" sx={{ position: 'absolute', inset: 0, overflow: 'clip', bgcolor: ARDENT.page }}>
3137
+ <LayoutSlots.Services />
3138
+ {viewports !== null && (isDesktop ? <DesktopPage /> : <PhonePage />)}
3139
+ </Box>
3140
+ )
3141
+ }
3142
+
3143
+ export default phx.frontend.createCustomPhoenixLayoutElement('ConfiguratorLayout', ConfiguratorLayout)
3144
+ ```
3145
+
3146
+ ### ./src/expressions/compressor.ts
3147
+
3148
+ ```ts
3149
+ // The frames Ardent builds, by motor power, with the free air delivery of each at 7.5 bar in m³/min
3150
+ const LARGEST_FRAME = { kw: 250, flow: 41 }
3151
+ const FRAMES = [
3152
+ { kw: 22, flow: 3.6 },
3153
+ { kw: 30, flow: 5 },
3154
+ { kw: 37, flow: 6.3 },
3155
+ { kw: 45, flow: 7.6 },
3156
+ { kw: 55, flow: 9.6 },
3157
+ { kw: 75, flow: 13 },
3158
+ { kw: 90, flow: 15.8 },
3159
+ { kw: 110, flow: 19.6 },
3160
+ { kw: 132, flow: 23 },
3161
+ { kw: 160, flow: 27.5 },
3162
+ { kw: 200, flow: 34 },
3163
+ LARGEST_FRAME,
3164
+ ]
3165
+
3166
+ // A higher pressure takes more power, so the same frame delivers less air
3167
+ const PRESSURE = {
3168
+ Bar7: { factor: 1, label: '7.5 bar' },
3169
+ Bar10: { factor: 0.85, label: '10 bar' },
3170
+ Bar13: { factor: 0.72, label: '13 bar' },
3171
+ }
3172
+
3173
+ const LARGEST_STOCK_FRAME_KW = 110
3174
+ const RECEIVER_LITRES = { None: 0, Litres500: 500, Litres1000: 1000, Litres2000: 2000 }
3175
+ const RECEIVER_PRICE = { None: 0, Litres500: 1150, Litres1000: 1900, Litres2000: 3400 }
3176
+ const EXPRESS_SURCHARGE = 0.08
3177
+
3178
+ const DRYER_LABEL = { None: 'No dryer', Refrigerant: 'Refrigerant dryer, +3 °C', Desiccant: 'Desiccant dryer' }
3179
+ const DEW_POINT_LABEL = { Minus40: '−40 °C', Minus70: '−70 °C' }
3180
+ const FILTRATION_LABEL = { General: 'General purpose', HighEfficiency: 'High efficiency', OilVapour: 'Oil vapour' }
3181
+ const PLAN_LABEL = { None: 'No plan', Essential: 'Essential, 3 years', TotalCare: 'Total care, 5 years' }
3182
+
3183
+ interface CompressorChoices {
3184
+ readonly flow: number
3185
+ readonly pressure: keyof typeof PRESSURE
3186
+ readonly drive: 'FixedSpeed' | 'VariableSpeed'
3187
+ readonly dryer: keyof typeof DRYER_LABEL
3188
+ readonly cooling: 'Air' | 'Water'
3189
+ readonly enclosure: 'Standard' | 'LowNoise'
3190
+ readonly supply: 'V400Hz50' | 'V480Hz60'
3191
+ }
3192
+
3193
+ // The smallest frame that delivers the flow at the pressure, or the largest one when none does
3194
+ const frameFor = (s: CompressorChoices) => {
3195
+ const factor = PRESSURE[s.pressure].factor
3196
+
3197
+ return FRAMES.find(frame => frame.flow * factor >= s.flow) ?? LARGEST_FRAME
3198
+ }
3199
+
3200
+ const basePriceOf = (kw: number) => {
3201
+ return 6000 + 360 * kw
3202
+ }
3203
+
3204
+ const standardWeeks = (s: CompressorChoices) => {
3205
+ return (
3206
+ (s.drive === 'VariableSpeed' ? 8 : 6) +
3207
+ (s.dryer === 'Desiccant' ? 2 : 0) +
3208
+ (s.cooling === 'Water' ? 1 : 0) +
3209
+ (s.enclosure === 'LowNoise' ? 1 : 0) +
3210
+ (s.supply === 'V480Hz60' ? 1 : 0)
3211
+ )
3212
+ }
3213
+
3214
+ const expressWeeks = (s: CompressorChoices) => {
3215
+ return Math.max(3, standardWeeks(s) - 4)
3216
+ }
3217
+
3218
+ export default phx.domain.implementCustomExpressions({
3219
+ Compressor: {
3220
+ $maxFlow: s => {
3221
+ return Math.floor(LARGEST_FRAME.flow * PRESSURE[s.pressure].factor * 2) / 2
3222
+ },
3223
+ $frameKw: s => {
3224
+ return frameFor(s).kw
3225
+ },
3226
+ $frameName: s => {
3227
+ return `RSV-${frameFor(s).kw}`
3228
+ },
3229
+ // A fixed-speed machine loads and unloads, so it needs a buffer of about 40 litres per m³/min
3230
+ $minReceiverLitres: s => {
3231
+ return s.drive === 'FixedSpeed' ? Math.ceil(s.flow * 40) : 0
3232
+ },
3233
+ $leadTimeWeeks: s => {
3234
+ return s.delivery === 'Express' ? expressWeeks(s) : standardWeeks(s)
3235
+ },
3236
+ // The delivery options name their lead time; express is offered for stock frames only
3237
+ $deliveryOptions: s => {
3238
+ const standard = {
3239
+ label: `Standard, ${standardWeeks(s)} weeks`,
3240
+ description: 'Built to order',
3241
+ value: 'Standard',
3242
+ }
3243
+ const express = {
3244
+ label: `Express, ${expressWeeks(s)} weeks`,
3245
+ description: `From stock, ${EXPRESS_SURCHARGE * 100} % surcharge`,
3246
+ value: 'Express',
3247
+ }
3248
+
3249
+ return frameFor(s).kw > LARGEST_STOCK_FRAME_KW ? [standard] : [standard, express]
3250
+ },
3251
+ $quoteLines: s => {
3252
+ const frame = frameFor(s)
3253
+ const base = basePriceOf(frame.kw)
3254
+ const lines = [
3255
+ {
3256
+ key: 'frame',
3257
+ label: `RSV-${frame.kw} rotary screw compressor`,
3258
+ detail: `${frame.kw} kW, ${PRESSURE[s.pressure].label}, ${(frame.flow * PRESSURE[s.pressure].factor).toFixed(1)} m³/min`,
3259
+ amount: base,
3260
+ },
3261
+ ]
3262
+
3263
+ if (s.drive === 'VariableSpeed') {
3264
+ lines.push({
3265
+ key: 'drive',
3266
+ label: 'Variable speed drive',
3267
+ detail: 'Inverter and PM motor',
3268
+ amount: base * 0.28,
3269
+ })
3270
+ }
3271
+
3272
+ if (s.dutyCycle === 'Continuous') {
3273
+ lines.push({ key: 'duty', label: 'Heavy-duty package', detail: 'For continuous duty', amount: base * 0.06 })
3274
+ }
3275
+
3276
+ if (s.dryer === 'Refrigerant') {
3277
+ lines.push({ key: 'dryer', label: 'Refrigerant dryer', detail: '+3 °C dew point', amount: 1200 + 95 * s.flow })
3278
+ }
3279
+
3280
+ if (s.dryer === 'Desiccant') {
3281
+ const dryer = (3800 + 310 * s.flow) * (s.dewPoint === 'Minus70' ? 1.18 : 1)
3282
+ lines.push({
3283
+ key: 'dryer',
3284
+ label: 'Desiccant dryer',
3285
+ detail: `${DEW_POINT_LABEL[s.dewPoint]} dew point`,
3286
+ amount: dryer,
3287
+ })
3288
+ }
3289
+
3290
+ if (s.filtration === 'HighEfficiency') {
3291
+ lines.push({
3292
+ key: 'filters',
3293
+ label: 'High-efficiency filters',
3294
+ detail: '0.01 mg/m³',
3295
+ amount: 1450 + 20 * s.flow,
3296
+ })
3297
+ }
3298
+
3299
+ if (s.filtration === 'OilVapour') {
3300
+ lines.push({ key: 'filters', label: 'Oil-vapour filters', detail: '0.003 mg/m³', amount: 2900 + 40 * s.flow })
3301
+ }
3302
+
3303
+ if (s.cooling === 'Water') {
3304
+ lines.push({ key: 'cooling', label: 'Water cooling', detail: 'Plate heat exchangers', amount: base * 0.07 })
3305
+ }
3306
+
3307
+ if (s.cooling === 'Water' && s.heatRecovery) {
3308
+ lines.push({
3309
+ key: 'heat',
3310
+ label: 'Heat recovery',
3311
+ detail: 'Up to 70 °C hot water',
3312
+ amount: 4200 + 25 * frame.kw,
3313
+ })
3314
+ }
3315
+
3316
+ if (s.receiver !== 'None') {
3317
+ const litres = RECEIVER_LITRES[s.receiver]
3318
+ lines.push({
3319
+ key: 'receiver',
3320
+ label: 'Air receiver',
3321
+ detail: `${litres.toLocaleString('en')} L, 11 bar`,
3322
+ amount: RECEIVER_PRICE[s.receiver],
3323
+ })
3324
+ }
3325
+
3326
+ if (s.enclosure === 'LowNoise') {
3327
+ lines.push({ key: 'canopy', label: 'Low-noise canopy', detail: 'About 66 dB(A)', amount: 2600 + 30 * frame.kw })
3328
+ }
3329
+
3330
+ if (s.supply === 'V480Hz60') {
3331
+ lines.push({ key: 'supply', label: '60 Hz build', detail: '480 V motor and starter', amount: base * 0.04 })
3332
+ }
3333
+
3334
+ if (s.servicePlan !== 'None') {
3335
+ const share = s.servicePlan === 'Essential' ? 0.09 : 0.22
3336
+ lines.push({ key: 'service', label: 'Service plan', detail: PLAN_LABEL[s.servicePlan], amount: base * share })
3337
+ }
3338
+
3339
+ if (s.commissioning) {
3340
+ lines.push({
3341
+ key: 'commissioning',
3342
+ label: 'Commissioning on site',
3343
+ detail: 'One engineer, one day',
3344
+ amount: 1800,
3345
+ })
3346
+ }
3347
+
3348
+ return lines.map(line => ({ ...line, amount: Math.round(line.amount) }))
3349
+ },
3350
+ $subtotal: s => {
3351
+ return s.$quoteLines.reduce((sum, line) => sum + line.amount, 0)
3352
+ },
3353
+ $leadTimeSurcharge: s => {
3354
+ return s.delivery === 'Express' ? Math.round(s.$subtotal * EXPRESS_SURCHARGE) : 0
3355
+ },
3356
+ $total: s => {
3357
+ return s.$subtotal + s.$leadTimeSurcharge
3358
+ },
3359
+ $specSheet: s => {
3360
+ const frame = frameFor(s)
3361
+
3362
+ return [
3363
+ { label: 'Model', value: `RSV-${frame.kw}, ${frame.kw} kW` },
3364
+ { label: 'Free air delivery', value: `${s.flow.toFixed(1)} m³/min required` },
3365
+ { label: 'Working pressure', value: PRESSURE[s.pressure].label },
3366
+ { label: 'Drive', value: s.drive === 'VariableSpeed' ? 'Variable speed' : 'Fixed speed' },
3367
+ { label: 'Duty', value: s.dutyCycle === 'Continuous' ? 'Continuous' : 'Intermittent' },
3368
+ {
3369
+ label: 'Dryer',
3370
+ value: s.dryer === 'Desiccant' ? `Desiccant, ${DEW_POINT_LABEL[s.dewPoint]}` : DRYER_LABEL[s.dryer],
3371
+ },
3372
+ { label: 'Filtration', value: FILTRATION_LABEL[s.filtration] },
3373
+ {
3374
+ label: 'Cooling',
3375
+ value: s.cooling === 'Water' ? `Water${s.heatRecovery ? ', with heat recovery' : ''}` : 'Air',
3376
+ },
3377
+ {
3378
+ label: 'Receiver',
3379
+ value: s.receiver === 'None' ? 'None' : `${RECEIVER_LITRES[s.receiver].toLocaleString('en')} L`,
3380
+ },
3381
+ { label: 'Canopy', value: s.enclosure === 'LowNoise' ? 'Low-noise' : 'Standard' },
3382
+ { label: 'Supply', value: s.supply === 'V480Hz60' ? '480 V, 60 Hz' : '400 V, 50 Hz' },
3383
+ { label: 'Service', value: PLAN_LABEL[s.servicePlan] },
3384
+ { label: 'Commissioning', value: s.commissioning ? 'On site' : 'Not included' },
3385
+ { label: 'Delivery', value: `${s.delivery === 'Express' ? 'Express' : 'Standard'}, ${s.$leadTimeWeeks} weeks` },
3386
+ ]
3387
+ },
3388
+ },
3389
+ })
3390
+ ```
3391
+
3392
+ ### ./src/handlers/request-quote.ts
3393
+
3394
+ ```ts
3395
+ import { useCallback } from 'react'
3396
+
3397
+ import { setQuoteReceipt } from '../_shared/quote-receipt.js'
3398
+
3399
+ const VALID_DAYS = 30
3400
+
3401
+ // Stands in for Ardent's quote service. A deployed project sends the configuration to its finalize webhook here and
3402
+ // waits for the answer; this one answers after a moment with a fixed engineer and a reference made from the
3403
+ // configuration's id, then enters the `requested` navigation state.
3404
+ export default phx.frontend.createPhoenixHandler('requestQuote', () => {
3405
+ const navigate = phx.frontend.useNavigate()
3406
+ const configurationId = phx.frontend.useConfigurationId()
3407
+ const total = phx.frontend.useRootEntityPrice()
3408
+
3409
+ return {
3410
+ handler: useCallback(async () => {
3411
+ await new Promise(resolve => setTimeout(resolve, 1600))
3412
+
3413
+ const validUntil = new Date(Date.now() + VALID_DAYS * 24 * 60 * 60 * 1000)
3414
+
3415
+ setQuoteReceipt({
3416
+ reference: `AQ-${String(configurationId)
3417
+ .replace(/[^a-z0-9]/gi, '')
3418
+ .slice(-6)
3419
+ .toUpperCase()}`,
3420
+ engineer: 'Marta Kovács, application engineer',
3421
+ validUntil: validUntil.toLocaleDateString('en-GB', { day: 'numeric', month: 'long', year: 'numeric' }),
3422
+ total: total ?? '',
3423
+ })
3424
+ navigate('requested')
3425
+ }, [configurationId, navigate, total]),
3426
+ }
3427
+ })
3428
+ ```
3429
+
3430
+ ### ./src/invariants/compressor.ts
3431
+
3432
+ ```ts
3433
+ const PRESSURE_LABEL = { Bar7: '7.5 bar', Bar10: '10 bar', Bar13: '13 bar' }
3434
+ const RECEIVER_LITRES = { None: 0, Litres500: 500, Litres1000: 1000, Litres2000: 2000 }
3435
+ const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/
3436
+
3437
+ // Each rule is a `warning` in the spec: a change that breaks it is kept, so the customer can fix the conflict where it
3438
+ // is shown, and finalizing waits until no warning is left
3439
+ export default phx.domain.implementCustomInvariants({
3440
+ Compressor: {
3441
+ // The largest frame delivers less air at a higher pressure, so the limit depends on an earlier choice
3442
+ flowRange: s => {
3443
+ if (s.flow <= s.$maxFlow) {
3444
+ return []
3445
+ }
3446
+
3447
+ return [
3448
+ {
3449
+ type: 'flowAboveRange',
3450
+ severity: 'warning',
3451
+ message: `At ${PRESSURE_LABEL[s.pressure]} the largest frame delivers ${s.$maxFlow.toFixed(1)} m³/min. Lower the flow or the pressure.`,
3452
+ },
3453
+ ]
3454
+ },
3455
+ desiccantNeedsFiltration: s => {
3456
+ return s.dryer !== 'Desiccant' || s.filtration !== 'General'
3457
+ },
3458
+ // The message names the size the flow needs, so it is built here rather than in the spec
3459
+ receiverSize: s => {
3460
+ if (RECEIVER_LITRES[s.receiver] >= s.$minReceiverLitres) {
3461
+ return []
3462
+ }
3463
+
3464
+ return [
3465
+ {
3466
+ type: 'receiverTooSmall',
3467
+ severity: 'warning',
3468
+ message: `A fixed-speed compressor at ${s.flow.toFixed(1)} m³/min needs a receiver of at least ${s.$minReceiverLitres.toLocaleString('en')} L.`,
3469
+ },
3470
+ ]
3471
+ },
3472
+ expressUnavailable: s => {
3473
+ return s.delivery !== 'Express' || s.$frameKw <= 110
3474
+ },
3475
+ companyMissing: s => {
3476
+ return s.company.trim().length > 0
3477
+ },
3478
+ emailInvalid: s => {
3479
+ return EMAIL.test(s.email.trim())
3480
+ },
3481
+ },
3482
+ })
3483
+ ```
3484
+
3485
+ </details>