@salsita-ai/sdk 0.50.0-develop.68d6fe1d1b → 0.50.0-develop.70dc8d05b6

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 (1012) hide show
  1. package/README.md +3 -3
  2. package/dist/admin/create-admin-pages-from-spec.d.ts +1 -1
  3. package/dist/application-spec/errors/diagnostic-codes.d.ts +9 -0
  4. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  5. package/dist/application-spec/errors/diagnostic-messages.d.ts +12 -0
  6. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  7. package/dist/application-spec/generate-application/code/common/index.d.ts +1 -0
  8. package/dist/application-spec/generate-application/code/common/index.js +1 -1
  9. package/dist/application-spec/generate-application/code/common/project-module-list.d.ts +8 -0
  10. package/dist/application-spec/generate-application/code/common/project-module-list.js +3 -0
  11. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  12. package/dist/application-spec/generate-application/code/project-scaffolding.d.ts +8 -1
  13. package/dist/application-spec/generate-application/code/project-scaffolding.js +2 -2
  14. package/dist/application-spec/generate-application/code/templates/admin-domain-code.d.ts +1 -2
  15. package/dist/application-spec/generate-application/code/templates/admin-domain-code.js +6 -14
  16. package/dist/application-spec/generate-application/code/templates/admin-frontend-code.d.ts +1 -2
  17. package/dist/application-spec/generate-application/code/templates/admin-frontend-code.js +4 -4
  18. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.d.ts +1 -2
  19. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.js +7 -16
  20. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.d.ts +1 -2
  21. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.js +7 -9
  22. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-assistant.d.ts +2 -2
  23. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-assistant.js +1 -1
  24. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.d.ts +4 -2
  25. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +56 -56
  26. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.d.ts +1 -1
  27. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.js +1 -1
  28. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +3 -0
  29. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-relation-expressions.js +1 -1
  30. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.d.ts +6 -8
  31. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.js +11 -11
  32. package/dist/application-spec/generate-application/code/templates/domain-spec/index.d.ts +1 -1
  33. package/dist/application-spec/generate-application/code/templates/domain-spec/index.js +1 -1
  34. package/dist/application-spec/generate-application/code/templates/domain-spec.js +12 -12
  35. package/dist/application-spec/generate-application/code/templates/domain.js +5 -5
  36. package/dist/application-spec/generate-application/code/templates/globals.js +5 -4
  37. package/dist/application-spec/generate-application/code/templates/index.d.ts +0 -7
  38. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  39. package/dist/application-spec/generate-application/code/templates/package-json.js +1 -1
  40. package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.js +93 -41
  41. package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.js +9 -3
  42. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.js +1 -1
  43. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +27 -11
  44. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +18 -6
  45. package/dist/application-spec/generate-application/code/templates/webhook-builders.js +9 -4
  46. package/dist/application-spec/generate-application/code/templates/webhooks-config.js +2 -2
  47. package/dist/application-spec/generate-application/runtime/application-runtime.d.ts +1 -3
  48. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.d.ts +1 -3
  49. package/dist/application-spec/generate-application/runtime/sections/assistant-runtime.d.ts +4 -3
  50. package/dist/application-spec/generate-application/runtime/sections/assistant-runtime.js +1 -1
  51. package/dist/application-spec/generate-application/runtime/sections/component-optic.d.ts +2 -1
  52. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +1 -1
  53. package/dist/application-spec/generate-application/runtime/sections/transformers-runtime.d.ts +2 -4
  54. package/dist/application-spec/parse-application-files/categorize/module-analysis.d.ts +1 -1
  55. package/dist/application-spec/parse-application-files/categorize/module-analysis.js +1 -1
  56. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +16 -3
  57. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  58. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-spec.js +1 -1
  59. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.js +1 -1
  60. package/dist/application-spec/parse-application-files/spec/model/defaults.d.ts +7 -2
  61. package/dist/application-spec/parse-application-files/spec/model/defaults.js +1 -1
  62. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.d.ts +25 -0
  63. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.js +1 -0
  64. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.d.ts +46 -0
  65. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.js +1 -0
  66. package/dist/application-spec/parse-application-files/spec/relations/relations.d.ts +4 -3
  67. package/dist/application-spec/parse-application-files/spec/relations/relations.js +1 -1
  68. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-field-type.d.ts +3 -8
  69. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-field-type.js +1 -1
  70. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +9 -43
  71. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  72. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.d.ts +2 -2
  73. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant.d.ts +5 -21
  74. package/dist/application-spec/parse-application-files/spec/sections/infra.d.ts +2 -0
  75. package/dist/application-spec/parse-application-files/spec/sections/infra.js +1 -1
  76. package/dist/client/authorized-client.d.ts +3 -1
  77. package/dist/client/authorized-client.js +1 -1
  78. package/dist/client/contract.d.ts +34 -0
  79. package/dist/client/contract.js +1 -1
  80. package/dist/client/index.d.ts +2 -2
  81. package/dist/client/index.js +1 -1
  82. package/dist/client/local-authorized-client.d.ts +3 -1
  83. package/dist/client/local-authorized-client.js +1 -1
  84. package/dist/client/memory-authorized-client.d.ts +3 -1
  85. package/dist/client/memory-authorized-client.js +1 -1
  86. package/dist/client/phoenix-api.d.ts +271 -30
  87. package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
  88. package/dist/configurator/application-runtime/extensions/selectors.d.ts +3 -1
  89. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  90. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +107 -6
  91. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  92. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  93. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +14 -4
  94. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  95. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.d.ts +11 -0
  96. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.js +1 -0
  97. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +1 -1
  98. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.js +1 -1
  99. package/dist/configurator/common/configurator-interface.d.ts +5 -1
  100. package/dist/configurator/common/configurator-interface.js +1 -1
  101. package/dist/configurator/pages/DefaultConfiguratorLayout.d.ts +6 -0
  102. package/dist/configurator/pages/DefaultConfiguratorLayout.js +1 -0
  103. package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
  104. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  105. package/dist/configurator/ui/assistant/AssistantComposer.d.ts +2 -1
  106. package/dist/configurator/ui/assistant/AssistantComposer.js +1 -1
  107. package/dist/configurator/ui/assistant/AssistantThread.d.ts +6 -2
  108. package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
  109. package/dist/configurator/ui/assistant/thread-items.d.ts +13 -2
  110. package/dist/configurator/ui/assistant/thread-items.js +1 -1
  111. package/dist/configurator/ui/assistant/tool-chip.d.ts +8 -1
  112. package/dist/configurator/ui/assistant/tool-chip.js +1 -1
  113. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.d.ts +1 -75
  114. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.js +5 -20
  115. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  116. package/dist/configurator/ui/configurator-layout/universal/DesktopSidebar.d.ts +92 -0
  117. package/dist/configurator/ui/configurator-layout/universal/DesktopSidebar.js +16 -0
  118. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +4 -4
  119. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  120. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.d.ts +47 -0
  121. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -0
  122. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.d.ts +11 -26
  123. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.js +1 -1
  124. package/dist/docs/complex-use-cases/filtered-controls-with-fix-dialog.mdx +100 -117
  125. package/dist/docs/complex-use-cases/navigation-reset-selection.mdx +18 -12
  126. package/dist/docs/complex-use-cases/sketching.mdx +0 -38
  127. package/dist/docs/controls/select-attribute/cardselect.mdx +9 -13
  128. package/dist/docs/index.json +11 -1
  129. package/dist/docs/integrations/woocommerce/local-development.mdx +1 -1
  130. package/dist/docs/layouts/custom-layout.mdx +981 -0
  131. package/dist/docs/layouts/custom-price.mdx +14 -16
  132. package/dist/docs/layouts/sidebar/tabs.mdx +24 -21
  133. package/dist/docs/other-features/domain-actions.mdx +1 -1
  134. package/dist/docs/other-features/side-effects.mdx +50 -45
  135. package/dist/docs/other-features/transformers.mdx +1 -1
  136. package/dist/docs/other-features/violation-messages.mdx +52 -56
  137. package/dist/docs/phoenix/admin.mdx +9 -24
  138. package/dist/docs/phoenix/configurator-interface.mdx +105 -65
  139. package/dist/docs/phoenix/deployments.mdx +1 -1
  140. package/dist/docs/phoenix/domain-model.mdx +4 -0
  141. package/dist/docs/phoenix/expression-context.mdx +11 -3
  142. package/dist/docs/phoenix/getting-started.mdx +1 -1
  143. package/dist/docs/phoenix/localization.mdx +3 -22
  144. package/dist/docs/phoenix/phoenix-cli.mdx +44 -48
  145. package/dist/docs/phoenix/project-structure.mdx +22 -10
  146. package/dist/docs/phoenix/quickstart.mdx +2 -2
  147. package/dist/docs/phoenix/sdk-builder-workflow.mdx +12 -11
  148. package/dist/docs/phoenix/webhook-membership.mdx +10 -9
  149. package/dist/docs/phoenix/webhooks.mdx +2 -2
  150. package/dist/docs/recipes-and-delete/recipe-hierarchy-selection.mdx +15 -13
  151. package/dist/docs/relations/hierarchy.mdx +13 -2
  152. package/dist/docs/ux-guidelines/choosing-a-control.mdx +11 -0
  153. package/dist/domain/admin-domain/__generated/enhanced-model.d.ts +1 -2
  154. package/dist/domain/admin-domain/__generated/model/versions/v1.d.ts +1 -1
  155. package/dist/domain/admin-domain/__generated/model/versions/v2.d.ts +1 -1
  156. package/dist/domain/admin-domain/__generated/model/versions/v3.d.ts +1 -1
  157. package/dist/domain/admin-domain/__generated/model/versions/v4.d.ts +1 -1
  158. package/dist/domain/admin-domain/__generated/model/versions/v5.d.ts +1 -1
  159. package/dist/domain/admin-domain/__generated/model/versions/v6.d.ts +2 -2
  160. package/dist/domain/admin-domain/__generated/model/versions/v6.js +1 -1
  161. package/dist/domain/admin-domain/implementation/common-admin-expressions.d.ts +26 -14
  162. package/dist/domain/admin-domain/implementation/common-admin-migrations.d.ts +1 -1
  163. package/dist/domain/admin-domain/implementation/common-admin-publish.d.ts +1 -2
  164. package/dist/domain/admin-domain/index.d.ts +9 -5
  165. package/dist/domain/admin-domain/index.js +1 -1
  166. package/dist/domain/application/GetApplicationWrapperHandler.d.ts +2 -2
  167. package/dist/domain/application/GetThemeHandler.d.ts +1 -1
  168. package/dist/domain/application/GetWebComponentOptions.d.ts +1 -1
  169. package/dist/domain/application/admin-page-factories.d.ts +1 -2
  170. package/dist/domain/application/application-config.d.ts +28 -97
  171. package/dist/domain/application/assistant/assistant-fields.d.ts +12 -0
  172. package/dist/domain/application/assistant/assistant-fields.js +1 -0
  173. package/dist/domain/application/assistant/assistant-manifest.d.ts +71 -0
  174. package/dist/domain/application/assistant/assistant-resolved-manifest.d.ts +131 -0
  175. package/dist/domain/application/assistant/assistant-resolved-manifest.js +1 -0
  176. package/dist/domain/application/assistant/assistant-value-type.d.ts +9 -0
  177. package/dist/domain/application/assistant/assistant-value-type.js +1 -0
  178. package/dist/domain/application/assistant/build-assistant-lenses.d.ts +14 -0
  179. package/dist/domain/application/assistant/build-assistant-lenses.js +5 -0
  180. package/dist/domain/application/assistant/build-assistant-manifest.d.ts +4 -0
  181. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -0
  182. package/dist/domain/application/assistant/create-assistant-execution-schema.d.ts +32 -0
  183. package/dist/domain/application/assistant/create-assistant-execution-schema.js +1 -0
  184. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +3 -0
  185. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -0
  186. package/dist/domain/application/assistant/index.d.ts +9 -0
  187. package/dist/domain/application/assistant/index.js +1 -0
  188. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.d.ts +20 -0
  189. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.js +1 -0
  190. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.d.ts +10 -0
  191. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -0
  192. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +48 -0
  193. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -0
  194. package/dist/domain/application/assistant/session-setup/create-session-assistant.d.ts +15 -0
  195. package/dist/domain/application/assistant/session-setup/create-session-assistant.js +1 -0
  196. package/dist/domain/application/assistant/session-setup/index.d.ts +4 -0
  197. package/dist/domain/application/assistant/session-setup/index.js +1 -0
  198. package/dist/domain/application/assistant-field-options.d.ts +2 -3
  199. package/dist/domain/application/assistant-mutations.d.ts +3 -5
  200. package/dist/domain/application/assistant-mutations.js +1 -1
  201. package/dist/domain/application/assistant-recipe-groups.d.ts +3 -7
  202. package/dist/domain/application/configurator-builder.d.ts +33 -18
  203. package/dist/domain/application/configurator-builder.js +1 -1
  204. package/dist/domain/application/create-initial-published-data.d.ts +6 -7
  205. package/dist/domain/application/index.d.ts +3 -6
  206. package/dist/domain/application/index.js +1 -1
  207. package/dist/domain/application/published-data/DataRowValidatorHandler.d.ts +1 -1
  208. package/dist/domain/application/published-data/FilterPublishedChunksHandler.d.ts +1 -1
  209. package/dist/domain/application/published-data/MapPublishedChunkedDataHandler.d.ts +1 -1
  210. package/dist/domain/application/published-data/MapPublishedRevisionDataHandler.d.ts +1 -1
  211. package/dist/domain/application/published-data/SheetValidatorHandler.d.ts +1 -1
  212. package/dist/domain/application/published-data/build-legend-data.d.ts +1 -1
  213. package/dist/domain/application/published-data/create-finalize-admin-domain.d.ts +1 -2
  214. package/dist/domain/application/published-data/format-field-type.d.ts +1 -1
  215. package/dist/domain/application/published-data/map-data-to-sheet.d.ts +1 -1
  216. package/dist/domain/application/published-data/map-published-chunked-data.d.ts +3 -3
  217. package/dist/domain/application/published-data/map-published-data.d.ts +7 -4
  218. package/dist/domain/application/published-data/validate-sheet-data.d.ts +1 -1
  219. package/dist/domain/available-system-components.js +1 -1
  220. package/dist/domain/core/action/action-factory.d.ts +11 -0
  221. package/dist/domain/core/{action.d.ts → action/action.d.ts} +22 -18
  222. package/dist/domain/core/action/index.d.ts +2 -0
  223. package/dist/domain/core/action/index.js +1 -0
  224. package/dist/domain/{components → core/component}/component-reader-types.d.ts +1 -2
  225. package/dist/domain/{components → core/component}/debug-state-component.d.ts +1 -1
  226. package/dist/domain/core/component/debug-state-component.js +1 -0
  227. package/dist/domain/core/component/domain-component-optic.d.ts +65 -0
  228. package/dist/domain/core/component/domain-component-optic.js +16 -0
  229. package/dist/domain/{components → core/component}/drag-state-component.d.ts +1 -1
  230. package/dist/domain/core/component/drag-state-component.js +1 -0
  231. package/dist/domain/{components → core/component}/export-state-component.d.ts +1 -1
  232. package/dist/domain/core/component/export-state-component.js +1 -0
  233. package/dist/domain/{components → core/component}/fullscreen-state-component.d.ts +1 -1
  234. package/dist/domain/core/component/fullscreen-state-component.js +1 -0
  235. package/dist/domain/{components → core/component}/group-components-by-entity-id-and-name.d.ts +1 -2
  236. package/dist/domain/core/component/group-components-by-entity-id-and-name.js +1 -0
  237. package/dist/domain/{components → core/component}/hover-state-component.d.ts +1 -1
  238. package/dist/domain/core/component/hover-state-component.js +1 -0
  239. package/dist/domain/core/component/index.d.ts +18 -0
  240. package/dist/domain/core/component/index.js +1 -0
  241. package/dist/domain/{components → core/component}/legacy-filter.d.ts +4 -19
  242. package/dist/domain/{components → core/component}/navigation-state-component.d.ts +1 -1
  243. package/dist/domain/core/component/navigation-state-component.js +1 -0
  244. package/dist/domain/{components → core/component}/selection-state-component.d.ts +1 -1
  245. package/dist/domain/core/component/selection-state-component.js +1 -0
  246. package/dist/domain/{components → core/component}/system-component-builder.d.ts +1 -2
  247. package/dist/domain/core/component/system-component-builder.js +1 -0
  248. package/dist/domain/{components → core/component}/system-component-filter.d.ts +38 -20
  249. package/dist/domain/core/component/system-virtual-entity.js +1 -0
  250. package/dist/domain/{components → core/component}/tool-state-component.d.ts +1 -1
  251. package/dist/domain/core/component/tool-state-component.js +1 -0
  252. package/dist/domain/{components → core/component}/updates.d.ts +1 -2
  253. package/dist/domain/{components → core/component}/view-state-component.d.ts +1 -1
  254. package/dist/domain/core/component/view-state-component.js +1 -0
  255. package/dist/domain/{components → core/component}/viewport-state-component.d.ts +1 -1
  256. package/dist/domain/core/component/viewport-state-component.js +1 -0
  257. package/dist/domain/core/data-schema/data-cell-value.d.ts +4 -0
  258. package/dist/domain/core/data-schema/data-schema-array-field.d.ts +5 -0
  259. package/dist/domain/core/data-schema/data-schema-field-object.d.ts +4 -0
  260. package/dist/domain/core/data-schema/data-schema-field.d.ts +2 -0
  261. package/dist/domain/core/data-schema/data-schema-localized-field.d.ts +4 -0
  262. package/dist/domain/core/data-schema/data-schema-localized-field.js +1 -0
  263. package/dist/domain/core/data-schema/data-schema-primitive-field.d.ts +5 -0
  264. package/dist/domain/core/data-schema/data-schema-primitive-field.js +1 -0
  265. package/dist/domain/core/data-schema/data-schema.d.ts +2 -0
  266. package/dist/domain/core/data-schema/data-schema.js +1 -0
  267. package/dist/domain/core/data-schema/index.d.ts +7 -0
  268. package/dist/domain/core/data-schema/index.js +1 -0
  269. package/dist/domain/core/decoder/create-decoder.d.ts +6 -0
  270. package/dist/domain/core/decoder/create-decoder.js +1 -0
  271. package/dist/domain/core/decoder/decoder.d.ts +6 -0
  272. package/dist/domain/core/decoder/decoder.js +1 -0
  273. package/dist/domain/core/decoder/index.d.ts +2 -0
  274. package/dist/domain/core/decoder/index.js +1 -0
  275. package/dist/domain/core/domain-factory.d.ts +4 -5
  276. package/dist/domain/core/domain-factory.js +1 -1
  277. package/dist/domain/core/domain.d.ts +4 -5
  278. package/dist/domain/core/domain.js +1 -1
  279. package/dist/domain/core/emission/index.d.ts +8 -0
  280. package/dist/domain/core/emission/index.js +1 -0
  281. package/dist/domain/core/emission/reset-state-emission.d.ts +12 -0
  282. package/dist/domain/core/emission/reset-state-emission.js +1 -0
  283. package/dist/domain/core/emission/state-emission.d.ts +4 -0
  284. package/dist/domain/core/emission/state-emission.js +1 -0
  285. package/dist/domain/core/emission/state-update-emission.d.ts +14 -0
  286. package/dist/domain/core/emission/state-update-emission.js +1 -0
  287. package/dist/domain/core/emission/state-validation-result.d.ts +18 -0
  288. package/dist/domain/core/emission/state-validation-result.js +1 -0
  289. package/dist/domain/core/emission/transformation-log.d.ts +2 -0
  290. package/dist/domain/core/emission/transformation-log.js +1 -0
  291. package/dist/domain/core/emission/transformer-log-entry.d.ts +6 -0
  292. package/dist/domain/core/emission/transformer-log-entry.js +1 -0
  293. package/dist/domain/core/emission/transformer-log.d.ts +11 -0
  294. package/dist/domain/core/emission/transformer-log.js +1 -0
  295. package/dist/domain/core/emission/transformer-phase.d.ts +1 -0
  296. package/dist/domain/core/emission/transformer-phase.js +1 -0
  297. package/dist/domain/core/expression/aliased-expressions.d.ts +10 -0
  298. package/dist/domain/core/expression/aliased-expressions.js +1 -0
  299. package/dist/domain/core/expression/constant-expressions.d.ts +16 -0
  300. package/dist/domain/core/expression/constant-expressions.js +1 -0
  301. package/dist/domain/core/expression/custom-expression.d.ts +25 -0
  302. package/dist/domain/core/expression/custom-expression.js +1 -0
  303. package/dist/domain/core/expression/expression.d.ts +46 -0
  304. package/dist/domain/core/expression/expression.js +1 -0
  305. package/dist/domain/core/expression/index.d.ts +4 -0
  306. package/dist/domain/core/expression/index.js +1 -0
  307. package/dist/domain/core/index.d.ts +13 -17
  308. package/dist/domain/core/index.js +1 -1
  309. package/dist/domain/{invariants → core/invariant}/builtin-invariant.d.ts +2 -2
  310. package/dist/domain/core/invariant/custom-invariants.d.ts +13 -0
  311. package/dist/domain/core/invariant/custom-invariants.js +1 -0
  312. package/dist/domain/core/invariant/index.d.ts +5 -0
  313. package/dist/domain/core/invariant/index.js +1 -0
  314. package/dist/domain/core/invariant/invariants.d.ts +10 -0
  315. package/dist/domain/core/invariant/invariants.js +1 -0
  316. package/dist/domain/core/invariant/violation-component.js +1 -0
  317. package/dist/domain/{invariants → core/invariant}/violation.d.ts +2 -2
  318. package/dist/domain/core/{component.d.ts → model/component.d.ts} +1 -1
  319. package/dist/domain/core/model/index.d.ts +6 -0
  320. package/dist/domain/core/model/index.js +1 -0
  321. package/dist/domain/core/{reflection.d.ts → model/reflection.d.ts} +1 -1
  322. package/dist/domain/core/model/reflection.js +1 -0
  323. package/dist/domain/core/recipe/index.d.ts +1 -0
  324. package/dist/domain/core/recipe/index.js +1 -0
  325. package/dist/domain/core/recipe/recipes.d.ts +23 -0
  326. package/dist/domain/core/recipe/recipes.js +1 -0
  327. package/dist/domain/core/relation/all-of-type-relation.d.ts +19 -0
  328. package/dist/domain/core/relation/all-of-type-relation.js +1 -0
  329. package/dist/domain/{relations → core/relation}/component-factories.d.ts +1 -2
  330. package/dist/domain/core/relation/component-factories.js +1 -0
  331. package/dist/domain/{relations → core/relation}/composed-of.d.ts +1 -1
  332. package/dist/domain/core/relation/composed-of.js +1 -0
  333. package/dist/domain/core/relation/direct-relation.d.ts +17 -0
  334. package/dist/domain/core/relation/index.d.ts +8 -0
  335. package/dist/domain/core/relation/index.js +1 -0
  336. package/dist/domain/core/relation/indirect-relation.d.ts +25 -0
  337. package/dist/domain/core/relation/indirect-relation.js +1 -0
  338. package/dist/domain/{relations → core/relation}/reference-component.d.ts +4 -5
  339. package/dist/domain/core/relation/reference-component.js +1 -0
  340. package/dist/domain/{relations → core/relation}/reference-field.d.ts +1 -1
  341. package/dist/domain/core/relation/reference-field.js +1 -0
  342. package/dist/domain/core/relation/relation-factory.d.ts +22 -0
  343. package/dist/domain/core/relation/relation-factory.js +1 -0
  344. package/dist/domain/core/schema/enhanced-json-schema.js +1 -0
  345. package/dist/domain/core/schema/extended-schema-validator.js +1 -0
  346. package/dist/domain/core/schema/index.d.ts +3 -0
  347. package/dist/domain/core/schema/index.js +1 -0
  348. package/dist/domain/core/schema/schema-validator.js +1 -0
  349. package/dist/domain/core/state/id-sequence.d.ts +15 -0
  350. package/dist/domain/core/state/id-sequence.js +1 -0
  351. package/dist/domain/core/state/index.d.ts +3 -0
  352. package/dist/domain/core/state/index.js +1 -0
  353. package/dist/domain/core/{migrations.d.ts → state/migrations.d.ts} +15 -47
  354. package/dist/domain/core/state/migrations.js +1 -0
  355. package/dist/domain/core/{state.d.ts → state/state.d.ts} +2 -3
  356. package/dist/domain/domain-builder.d.ts +11 -11
  357. package/dist/domain/domain-builder.js +1 -1
  358. package/dist/domain/domain-context/action-system/action-system.d.ts +2 -4
  359. package/dist/domain/domain-context/action-system/action-system.js +1 -1
  360. package/dist/domain/domain-context/action-system/index.d.ts +1 -0
  361. package/dist/domain/domain-context/action-system/index.js +1 -0
  362. package/dist/domain/domain-context/analytics-system/index.d.ts +2 -0
  363. package/dist/domain/domain-context/analytics-system/index.js +1 -0
  364. package/dist/domain/domain-context/create-transformer.d.ts +2 -2
  365. package/dist/domain/domain-context/dimension-system/dimension-state.js +1 -1
  366. package/dist/domain/domain-context/dimension-system/dimension-system.d.ts +3 -4
  367. package/dist/domain/domain-context/dimension-system/dimension-system.js +1 -1
  368. package/dist/domain/domain-context/dimension-system/index.d.ts +1 -0
  369. package/dist/domain/domain-context/dimension-system/index.js +1 -0
  370. package/dist/domain/domain-context/domain-context-systems.d.ts +8 -10
  371. package/dist/domain/domain-context/index.d.ts +8 -18
  372. package/dist/domain/domain-context/index.js +1 -1
  373. package/dist/domain/domain-context/navigation-system/index.d.ts +3 -0
  374. package/dist/domain/domain-context/navigation-system/index.js +1 -0
  375. package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +5 -8
  376. package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
  377. package/dist/domain/domain-context/navigation-system/navigation-updates.d.ts +1 -12
  378. package/dist/domain/domain-context/navigation-system/navigation-updates.js +1 -1
  379. package/dist/domain/domain-context/navigation-system/selection-transformers.d.ts +2 -2
  380. package/dist/domain/domain-context/navigation-system/selection-transformers.js +1 -1
  381. package/dist/domain/domain-context/recipe-system/index.d.ts +1 -0
  382. package/dist/domain/domain-context/recipe-system/index.js +1 -0
  383. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.d.ts +2 -4
  384. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.js +1 -1
  385. package/dist/domain/domain-context/relation-transformers/cascade-deletes.d.ts +3 -3
  386. package/dist/domain/domain-context/relation-transformers/cascade-deletes.js +1 -1
  387. package/dist/domain/domain-context/relation-transformers/cascade-ref-pruning.d.ts +3 -3
  388. package/dist/domain/domain-context/relation-transformers/cascade-ref-pruning.js +1 -1
  389. package/dist/domain/domain-context/relation-transformers/create-entity-refs.d.ts +3 -3
  390. package/dist/domain/domain-context/relation-transformers/create-entity-refs.js +2 -2
  391. package/dist/domain/domain-context/relation-transformers/index.d.ts +4 -0
  392. package/dist/domain/domain-context/relation-transformers/index.js +1 -0
  393. package/dist/domain/domain-context/relation-transformers/replace-refs.d.ts +3 -3
  394. package/dist/domain/domain-context/relation-transformers/replace-refs.js +1 -1
  395. package/dist/domain/domain-context/store-system/apply-updates.d.ts +1 -3
  396. package/dist/domain/domain-context/store-system/apply-updates.js +1 -1
  397. package/dist/domain/domain-context/store-system/index.d.ts +4 -0
  398. package/dist/domain/domain-context/store-system/index.js +1 -0
  399. package/dist/domain/domain-context/store-system/next-domain-entity-id.d.ts +1 -13
  400. package/dist/domain/domain-context/store-system/next-domain-entity-id.js +1 -1
  401. package/dist/domain/domain-context/store-system/reconcile-projected-entities.d.ts +1 -2
  402. package/dist/domain/domain-context/store-system/reconcile-projected-entities.js +1 -1
  403. package/dist/domain/domain-context/store-system/store-system.d.ts +2 -39
  404. package/dist/domain/domain-context/store-system/store-system.js +2 -2
  405. package/dist/domain/domain-context/store-system/system-state.d.ts +2 -4
  406. package/dist/domain/domain-context/store-system/system-state.js +1 -1
  407. package/dist/domain/domain-context/transformers/actions-builder.d.ts +1 -2
  408. package/dist/domain/domain-context/transformers/actions-builder.js +1 -1
  409. package/dist/domain/domain-context/transformers/auto-snap-transformer.d.ts +6 -10
  410. package/dist/domain/domain-context/transformers/auto-snap-transformer.js +1 -1
  411. package/dist/domain/domain-context/transformers/chain-builder.d.ts +3 -3
  412. package/dist/domain/domain-context/transformers/context.d.ts +2 -7
  413. package/dist/domain/domain-context/transformers/context.js +1 -1
  414. package/dist/domain/domain-context/transformers/entity-builder.d.ts +1 -5
  415. package/dist/domain/domain-context/transformers/entity-builder.js +1 -1
  416. package/dist/domain/domain-context/transformers/index.d.ts +1 -1
  417. package/dist/domain/domain-context/transformers/index.js +1 -1
  418. package/dist/domain/domain-context/transformers/then-builder.d.ts +1 -2
  419. package/dist/domain/domain-context/transformers/then-builder.js +1 -1
  420. package/dist/domain/domain-context/transformers/when-builder.d.ts +3 -9
  421. package/dist/domain/domain-context/transformers/when-builder.js +1 -1
  422. package/dist/domain/domain-context/undo-system.d.ts +2 -3
  423. package/dist/domain/domain-runtime/access/selectors.d.ts +9 -0
  424. package/dist/domain/domain-runtime/access/selectors.js +1 -1
  425. package/dist/domain/domain-runtime/access/types.d.ts +2 -0
  426. package/dist/domain/domain-runtime/access/types.js +1 -1
  427. package/dist/domain/domain-runtime/domain-context/action-context.d.ts +11 -0
  428. package/dist/domain/domain-runtime/domain-context/action-context.js +1 -0
  429. package/dist/domain/domain-runtime/domain-context/component-reader.d.ts +1 -4
  430. package/dist/domain/domain-runtime/domain-context/component-reader.js +1 -1
  431. package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
  432. package/dist/domain/domain-runtime/domain-context/expression-context.d.ts +8 -0
  433. package/dist/domain/domain-runtime/domain-context/expression-context.js +1 -0
  434. package/dist/domain/domain-runtime/domain-context/index.d.ts +3 -0
  435. package/dist/domain/domain-runtime/domain-context/runtime-expression-context.d.ts +18 -0
  436. package/dist/domain/domain-runtime/domain-context/runtime-expression-context.js +1 -0
  437. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +19 -25
  438. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  439. package/dist/domain/domain-runtime/domain-context/types.d.ts +4 -1
  440. package/dist/domain/domain-runtime/domain-runtime.d.ts +88 -72
  441. package/dist/domain/domain-runtime/errors/implementation-error-collector.d.ts +19 -0
  442. package/dist/domain/domain-runtime/errors/implementation-error-collector.js +1 -0
  443. package/dist/domain/domain-runtime/errors/implementation-error.d.ts +46 -0
  444. package/dist/domain/domain-runtime/errors/implementation-error.js +1 -0
  445. package/dist/domain/domain-runtime/errors/implementation-errors.d.ts +13 -0
  446. package/dist/domain/domain-runtime/errors/implementation-errors.js +1 -0
  447. package/dist/domain/domain-runtime/errors/index.d.ts +4 -0
  448. package/dist/domain/domain-runtime/errors/index.js +1 -0
  449. package/dist/domain/domain-runtime/errors/to-implementation-errors.d.ts +10 -0
  450. package/dist/domain/domain-runtime/errors/to-implementation-errors.js +1 -0
  451. package/dist/domain/domain-runtime/index.d.ts +1 -0
  452. package/dist/domain/domain-runtime/index.js +1 -1
  453. package/dist/domain/domain-runtime/spec/create-violation-expressions.d.ts +24 -0
  454. package/dist/domain/domain-runtime/spec/create-violation-expressions.js +1 -0
  455. package/dist/domain/domain-runtime/spec/index.d.ts +5 -0
  456. package/dist/domain/domain-runtime/spec/index.js +1 -1
  457. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  458. package/dist/domain/{expressions → domain-runtime/spec}/memoize-expression.d.ts +1 -2
  459. package/dist/domain/{application → domain-runtime/spec/module-checks}/element-registration.d.ts +6 -1
  460. package/dist/domain/domain-runtime/spec/module-checks/element-registration.js +1 -0
  461. package/dist/domain/{application → domain-runtime/spec/module-checks}/handler-registration.d.ts +5 -0
  462. package/dist/domain/domain-runtime/spec/module-checks/handler-registration.js +1 -0
  463. package/dist/domain/domain-runtime/spec/module-checks/index.d.ts +8 -0
  464. package/dist/domain/domain-runtime/spec/module-checks/index.js +1 -0
  465. package/dist/domain/domain-runtime/spec/module-checks/project-modules.d.ts +32 -0
  466. package/dist/domain/domain-runtime/spec/module-checks/project-modules.js +1 -0
  467. package/dist/domain/domain-runtime/spec/module-checks/resolve-action-modules.d.ts +4 -0
  468. package/dist/domain/domain-runtime/spec/module-checks/resolve-action-modules.js +1 -0
  469. package/dist/domain/domain-runtime/spec/module-checks/resolve-component-optic-modules.d.ts +4 -0
  470. package/dist/domain/domain-runtime/spec/module-checks/resolve-component-optic-modules.js +1 -0
  471. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.d.ts +15 -0
  472. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.js +1 -0
  473. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.d.ts +22 -0
  474. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.js +1 -0
  475. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.d.ts +6 -0
  476. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.js +1 -0
  477. package/dist/domain/{actions → domain-runtime/spec}/prepare-action-implementations.d.ts +1 -1
  478. package/dist/domain/domain-runtime/spec/prepare-action-implementations.js +5 -0
  479. package/dist/domain/{expressions → domain-runtime/spec}/prepare-domain-expressions.d.ts +1 -1
  480. package/dist/domain/domain-runtime/spec/selectors.d.ts +7 -8
  481. package/dist/domain/domain-runtime/spec/selectors.js +1 -1
  482. package/dist/domain/domain-runtime/spec/types.d.ts +6 -6
  483. package/dist/domain/{system-components → extensions}/angle-indicator.d.ts +1 -1
  484. package/dist/domain/extensions/angle-indicator.js +1 -0
  485. package/dist/domain/extensions/attribute-switch.js +1 -0
  486. package/dist/domain/{system-components → extensions}/autorotate-camera-component.d.ts +1 -1
  487. package/dist/domain/extensions/autorotate-camera-component.js +1 -0
  488. package/dist/domain/{system-components → extensions}/basic-sidebar-footer.d.ts +1 -1
  489. package/dist/domain/extensions/basic-sidebar-footer.js +1 -0
  490. package/dist/domain/extensions/camera-based-hidden-entity-object.js +1 -0
  491. package/dist/domain/extensions/camera-based-hidden-entity.js +1 -0
  492. package/dist/domain/{system-components → extensions}/canvas-config.d.ts +1 -1
  493. package/dist/domain/extensions/canvas-config.js +1 -0
  494. package/dist/domain/extensions/canvas-custom-environment.js +1 -0
  495. package/dist/domain/{system-components → extensions}/canvas-padding.d.ts +1 -1
  496. package/dist/domain/extensions/canvas-padding.js +1 -0
  497. package/dist/domain/{system-components → extensions}/canvas-preset-environment.d.ts +1 -1
  498. package/dist/domain/extensions/canvas-preset-environment.js +1 -0
  499. package/dist/domain/{system-components → extensions}/child-entity-recipe-hierarchy.d.ts +2 -2
  500. package/dist/domain/extensions/child-entity-recipe-hierarchy.js +1 -0
  501. package/dist/domain/extensions/client-side-image.js +1 -0
  502. package/dist/domain/extensions/color-value.js +1 -0
  503. package/dist/domain/{system-components → extensions}/common/angle-indicator-schema.d.ts +1 -1
  504. package/dist/domain/extensions/common/angle-indicator-schema.js +1 -0
  505. package/dist/domain/{system-components → extensions}/common/dimension-indicator-schema.d.ts +1 -1
  506. package/dist/domain/extensions/common/dimension-indicator-schema.js +1 -0
  507. package/dist/domain/extensions/common/index.d.ts +4 -0
  508. package/dist/domain/extensions/common/index.js +1 -0
  509. package/dist/domain/{system-components → extensions}/custom-header.d.ts +2 -2
  510. package/dist/domain/{system-components → extensions}/custom-header.js +1 -1
  511. package/dist/domain/extensions/custom-price-footer.js +1 -0
  512. package/dist/domain/{system-components → extensions}/custom-sidebar-footer.d.ts +2 -2
  513. package/dist/domain/{system-components → extensions}/custom-sidebar-footer.js +1 -1
  514. package/dist/domain/{system-components → extensions}/dimension-indicator.d.ts +1 -1
  515. package/dist/domain/extensions/dimension-indicator.js +1 -0
  516. package/dist/domain/{system-components → extensions}/editable-angle-indicator.d.ts +3 -2
  517. package/dist/domain/extensions/editable-angle-indicator.js +1 -0
  518. package/dist/domain/{system-components → extensions}/editable-distance-dimension-indicator.d.ts +3 -2
  519. package/dist/domain/extensions/editable-distance-dimension-indicator.js +1 -0
  520. package/dist/domain/{system-components → extensions}/editable-offset-indicator.d.ts +3 -2
  521. package/dist/domain/extensions/editable-offset-indicator.js +1 -0
  522. package/dist/domain/{system-components → extensions}/editable-size-indicator.d.ts +3 -2
  523. package/dist/domain/extensions/editable-size-indicator.js +1 -0
  524. package/dist/domain/{system-components → extensions}/entity-header.d.ts +1 -1
  525. package/dist/domain/extensions/entity-header.js +1 -0
  526. package/dist/domain/{system-components → extensions}/exit-tool-mode-fab.d.ts +1 -1
  527. package/dist/domain/extensions/exit-tool-mode-fab.js +1 -0
  528. package/dist/domain/{system-components → extensions}/finalize-action.d.ts +1 -1
  529. package/dist/domain/extensions/finalize-action.js +1 -0
  530. package/dist/domain/extensions/finalize-component.js +1 -0
  531. package/dist/domain/extensions/fit-selection-orthographic-camera-component.js +1 -0
  532. package/dist/domain/extensions/fit-selection-perspective-camera-component.js +1 -0
  533. package/dist/domain/{system-components → extensions}/fixed-header.d.ts +1 -1
  534. package/dist/domain/extensions/fixed-header.js +1 -0
  535. package/dist/domain/{system-components → extensions}/floating-header.d.ts +1 -1
  536. package/dist/domain/extensions/floating-header.js +1 -0
  537. package/dist/domain/{system-components → extensions}/hidden-header.d.ts +1 -1
  538. package/dist/domain/extensions/hidden-header.js +1 -0
  539. package/dist/domain/{system-components → extensions}/hidden-sidebar-footer.d.ts +1 -1
  540. package/dist/domain/extensions/hidden-sidebar-footer.js +1 -0
  541. package/dist/domain/{system-components → extensions}/horizontal-tabs.d.ts +1 -1
  542. package/dist/domain/extensions/horizontal-tabs.js +1 -0
  543. package/dist/domain/extensions/index.d.ts +69 -0
  544. package/dist/domain/extensions/index.js +1 -0
  545. package/dist/domain/{system-components → extensions}/list-selector-dimension-indicator.d.ts +3 -2
  546. package/dist/domain/extensions/list-selector-dimension-indicator.js +1 -0
  547. package/dist/domain/extensions/multilingual-text-value.js +1 -0
  548. package/dist/domain/extensions/navigation-steps.js +1 -0
  549. package/dist/domain/{system-components → extensions}/offset-anchors.d.ts +1 -1
  550. package/dist/domain/extensions/offset-anchors.js +1 -0
  551. package/dist/domain/{system-components → extensions}/offset-indicator.d.ts +1 -2
  552. package/dist/domain/extensions/offset-indicator.js +1 -0
  553. package/dist/domain/{system-components → extensions}/offset.d.ts +1 -1
  554. package/dist/domain/extensions/offset.js +1 -0
  555. package/dist/domain/{system-components → extensions}/other-action.d.ts +1 -1
  556. package/dist/domain/extensions/other-action.js +1 -0
  557. package/dist/domain/{system-components → extensions}/property-page.d.ts +2 -2
  558. package/dist/domain/extensions/property-page.js +1 -0
  559. package/dist/domain/{system-components → extensions}/read-sidebar-footer.d.ts +1 -1
  560. package/dist/domain/extensions/read-sidebar-footer.js +1 -0
  561. package/dist/domain/{system-components → extensions}/replace-entity-recipe-hierarchy.d.ts +2 -2
  562. package/dist/domain/extensions/replace-entity-recipe-hierarchy.js +1 -0
  563. package/dist/domain/extensions/rotatable.js +1 -0
  564. package/dist/domain/extensions/rotation-handle.js +1 -0
  565. package/dist/domain/extensions/save-template-thumbnail.js +1 -0
  566. package/dist/domain/{system-components → extensions}/scene-entity-add-fab.d.ts +1 -1
  567. package/dist/domain/extensions/scene-entity-add-fab.js +1 -0
  568. package/dist/domain/extensions/scene-entity-animation.js +1 -0
  569. package/dist/domain/extensions/scene-entity-control.js +1 -0
  570. package/dist/domain/{system-components → extensions}/scene-entity-delete-fab.d.ts +1 -1
  571. package/dist/domain/extensions/scene-entity-delete-fab.js +1 -0
  572. package/dist/domain/extensions/scene-entity-floor-object.js +1 -0
  573. package/dist/domain/{system-components → extensions}/scene-entity-html-hotspot.d.ts +1 -1
  574. package/dist/domain/extensions/scene-entity-html-hotspot.js +1 -0
  575. package/dist/domain/{system-components → extensions}/scene-entity-navigation-hotspot.d.ts +1 -1
  576. package/dist/domain/extensions/scene-entity-navigation-hotspot.js +1 -0
  577. package/dist/domain/{system-components → extensions}/scene-entity-object-html-hotspot.d.ts +1 -1
  578. package/dist/domain/extensions/scene-entity-object-html-hotspot.js +1 -0
  579. package/dist/domain/{system-components → extensions}/scene-entity-select-hotspot.d.ts +1 -1
  580. package/dist/domain/extensions/scene-entity-select-hotspot.js +1 -0
  581. package/dist/domain/extensions/scene-entity-wall-object.js +1 -0
  582. package/dist/domain/extensions/selectable-component.js +1 -0
  583. package/dist/domain/{system-components → extensions}/sidebar-tabs.d.ts +1 -1
  584. package/dist/domain/extensions/sidebar-tabs.js +1 -0
  585. package/dist/domain/extensions/simple-summary.js +1 -0
  586. package/dist/domain/{system-components → extensions}/size.d.ts +1 -1
  587. package/dist/domain/extensions/size.js +1 -0
  588. package/dist/domain/{system-components → extensions}/sketching-draw.d.ts +1 -1
  589. package/dist/domain/extensions/sketching-draw.js +1 -0
  590. package/dist/domain/{system-components → extensions}/sketching-edit.d.ts +2 -2
  591. package/dist/domain/extensions/sketching-edit.js +1 -0
  592. package/dist/domain/extensions/summary-component.js +1 -0
  593. package/dist/domain/extensions/text-value.js +1 -0
  594. package/dist/domain/extensions/tool-controls.js +1 -0
  595. package/dist/domain/{system-components → extensions}/tool-menu-fab.d.ts +2 -2
  596. package/dist/domain/extensions/tool-menu-fab.js +1 -0
  597. package/dist/domain/{system-components → extensions}/toolbar.d.ts +2 -2
  598. package/dist/domain/{system-components → extensions}/toolbar.js +1 -1
  599. package/dist/domain/{system-components → extensions}/universal-sidebar-footer.d.ts +1 -1
  600. package/dist/domain/extensions/universal-sidebar-footer.js +1 -0
  601. package/dist/domain/extensions/view-controls.js +1 -0
  602. package/dist/domain/index.d.ts +2 -32
  603. package/dist/domain/index.js +1 -1
  604. package/dist/domain/mocks/create-mock-domain-context.d.ts +1 -1
  605. package/dist/domain/mocks/create-mock-domain-runtime-services.d.ts +1 -1
  606. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +30 -21
  607. package/dist/domain/mocks/create-mock-domain-runtime.js +1 -1
  608. package/dist/domain/mocks/create-mock-domain.d.ts +1 -1
  609. package/dist/domain/mocks/create-mock-domain.js +1 -1
  610. package/dist/domain/mocks/create-mock-state.d.ts +2 -2
  611. package/dist/domain/projections/blender-projections/blender-projections.d.ts +2 -3
  612. package/dist/domain/projections/blender-projections/blender-projections.js +1 -1
  613. package/dist/domain/projections/blender-projections/camera.d.ts +2 -2
  614. package/dist/domain/projections/collision-projections.d.ts +1 -1
  615. package/dist/domain/projections/composition-projections.d.ts +1 -1
  616. package/dist/domain/projections/composition-projections.js +1 -1
  617. package/dist/domain/projections/constraint-projections.d.ts +1 -1
  618. package/dist/domain/projections/index.d.ts +1 -1
  619. package/dist/domain/projections/position-projections.d.ts +1 -1
  620. package/dist/domain/projections/projected-entities-projections.d.ts +2 -3
  621. package/dist/domain/projections/snap-matching.d.ts +1 -2
  622. package/dist/domain/projections/snap-utils.d.ts +1 -2
  623. package/dist/domain/projections/snapping-projections.d.ts +1 -1
  624. package/dist/domain/projections/validation-projections.d.ts +3 -20
  625. package/dist/domain/projections/validation-projections.js +1 -1
  626. package/dist/domain/sketching/sketching-projections.d.ts +1 -1
  627. package/dist/domain/system-components/admin-sidebar.d.ts +1 -1
  628. package/dist/domain/system-components/admin-sidebar.js +1 -1
  629. package/dist/domain/system-components/angle-dimension.js +1 -1
  630. package/dist/domain/system-components/application-config.d.ts +1 -1
  631. package/dist/domain/system-components/application-config.js +1 -1
  632. package/dist/domain/system-components/attribute-selection.js +1 -1
  633. package/dist/domain/system-components/bounding-box-component.d.ts +1 -1
  634. package/dist/domain/system-components/bounding-box-component.js +1 -1
  635. package/dist/domain/system-components/bounding-sphere-component.d.ts +1 -1
  636. package/dist/domain/system-components/bounding-sphere-component.js +1 -1
  637. package/dist/domain/system-components/child-entity-recipes.d.ts +1 -1
  638. package/dist/domain/system-components/child-entity-recipes.js +1 -1
  639. package/dist/domain/system-components/child-entity-selection.d.ts +1 -2
  640. package/dist/domain/system-components/child-entity-selection.js +1 -1
  641. package/dist/domain/system-components/collision-box-geometry.d.ts +1 -1
  642. package/dist/domain/system-components/collision-box-geometry.js +1 -1
  643. package/dist/domain/system-components/collision-geometries.d.ts +1 -1
  644. package/dist/domain/system-components/collision-geometry.d.ts +1 -1
  645. package/dist/domain/system-components/collision-geometry.js +1 -1
  646. package/dist/domain/system-components/collision-point-geometry.d.ts +1 -1
  647. package/dist/domain/system-components/collision-point-geometry.js +1 -1
  648. package/dist/domain/system-components/common/index.d.ts +0 -4
  649. package/dist/domain/system-components/common/index.js +1 -1
  650. package/dist/domain/system-components/common/recipes.d.ts +1 -2
  651. package/dist/domain/system-components/constraint.d.ts +1 -1
  652. package/dist/domain/system-components/constraint.js +1 -1
  653. package/dist/domain/system-components/create-blueprint.d.ts +1 -1
  654. package/dist/domain/system-components/custom-scene-entity.d.ts +1 -1
  655. package/dist/domain/system-components/custom-scene-entity.js +1 -1
  656. package/dist/domain/system-components/detail.js +1 -1
  657. package/dist/domain/system-components/distance-dimension-select.d.ts +1 -1
  658. package/dist/domain/system-components/distance-dimension-select.js +1 -1
  659. package/dist/domain/system-components/distance-dimension.d.ts +1 -1
  660. package/dist/domain/system-components/distance-dimension.js +1 -1
  661. package/dist/domain/system-components/drag-handle.d.ts +1 -1
  662. package/dist/domain/system-components/drag-handle.js +1 -1
  663. package/dist/domain/system-components/fit-entity-orthographic-camera-component.js +1 -1
  664. package/dist/domain/system-components/fit-entity-perspective-camera-component.js +1 -1
  665. package/dist/domain/system-components/fit-root-orthographic-camera-component.js +1 -1
  666. package/dist/domain/system-components/fit-root-perspective-camera-component.js +1 -1
  667. package/dist/domain/system-components/generic-dimension.d.ts +1 -1
  668. package/dist/domain/system-components/generic-dimension.js +1 -1
  669. package/dist/domain/system-components/hidden-entity.js +1 -1
  670. package/dist/domain/system-components/hotspot-drag-handle.d.ts +1 -2
  671. package/dist/domain/system-components/hotspot-drag-handle.js +1 -1
  672. package/dist/domain/system-components/index.d.ts +0 -68
  673. package/dist/domain/system-components/index.js +1 -1
  674. package/dist/domain/system-components/material-override-property-transition.js +1 -1
  675. package/dist/domain/system-components/material-override-transformer.js +1 -1
  676. package/dist/domain/system-components/material-swatch.js +1 -1
  677. package/dist/domain/system-components/navigation-page.js +1 -1
  678. package/dist/domain/system-components/navigation-panel-list.js +1 -1
  679. package/dist/domain/system-components/phoenix-entity-elements/admin-data-table-sidebar.d.ts +1 -1
  680. package/dist/domain/system-components/phoenix-layout-elements/admin-connected-resource-page.d.ts +1 -1
  681. package/dist/domain/system-components/phoenix-layout-elements/admin-data-table-actions.d.ts +1 -1
  682. package/dist/domain/system-components/phoenix-layout-elements/admin-data-table-page.d.ts +1 -1
  683. package/dist/domain/system-components/pivot-point.d.ts +1 -1
  684. package/dist/domain/system-components/pivot-point.js +1 -1
  685. package/dist/domain/system-components/price.js +1 -1
  686. package/dist/domain/system-components/projected-entities.d.ts +1 -1
  687. package/dist/domain/system-components/projected-entities.js +1 -1
  688. package/dist/domain/system-components/replace-entity-recipes.d.ts +1 -1
  689. package/dist/domain/system-components/replace-entity-recipes.js +1 -1
  690. package/dist/domain/system-components/scene-entity-ambient-light.js +1 -1
  691. package/dist/domain/system-components/scene-entity-box-object.js +1 -1
  692. package/dist/domain/system-components/scene-entity-directional-light.js +1 -1
  693. package/dist/domain/system-components/scene-entity-local-material-override.js +1 -1
  694. package/dist/domain/system-components/scene-entity-material-override.js +1 -1
  695. package/dist/domain/system-components/scene-entity-object-clip.js +1 -1
  696. package/dist/domain/system-components/scene-entity-object-decal.js +1 -1
  697. package/dist/domain/system-components/scene-entity-object-group.js +1 -1
  698. package/dist/domain/system-components/scene-entity-object-local-material-override.js +1 -1
  699. package/dist/domain/system-components/scene-entity-object-material-override.js +1 -1
  700. package/dist/domain/system-components/scene-entity-object-properties.js +1 -1
  701. package/dist/domain/system-components/scene-entity-object-remote-material-override.js +1 -1
  702. package/dist/domain/system-components/scene-entity-object-text-decal.js +1 -1
  703. package/dist/domain/system-components/scene-entity-object-transformer.js +1 -1
  704. package/dist/domain/system-components/scene-entity-object-transimissive-material-override.js +1 -1
  705. package/dist/domain/system-components/scene-entity-object.js +1 -1
  706. package/dist/domain/system-components/scene-entity-point-light.js +1 -1
  707. package/dist/domain/system-components/scene-entity-properties.js +1 -1
  708. package/dist/domain/system-components/scene-entity-rect-area-light.js +1 -1
  709. package/dist/domain/system-components/scene-entity-remote-material-override.js +1 -1
  710. package/dist/domain/system-components/scene-entity-remote-object.js +1 -1
  711. package/dist/domain/system-components/scene-entity-spot-light.js +1 -1
  712. package/dist/domain/system-components/scene-entity-transimissive-material-override.js +1 -1
  713. package/dist/domain/system-components/sketching-line.d.ts +1 -1
  714. package/dist/domain/system-components/sketching-line.js +1 -1
  715. package/dist/domain/system-components/sketching-rectangle.d.ts +1 -1
  716. package/dist/domain/system-components/sketching-rectangle.js +1 -1
  717. package/dist/domain/system-components/sketching.d.ts +1 -1
  718. package/dist/domain/system-components/sketching.js +1 -1
  719. package/dist/domain/system-components/snap-axis.d.ts +1 -1
  720. package/dist/domain/system-components/snap-axis.js +1 -1
  721. package/dist/domain/system-components/snap-edge.d.ts +1 -1
  722. package/dist/domain/system-components/snap-edge.js +1 -1
  723. package/dist/domain/system-components/snap-plane.d.ts +1 -1
  724. package/dist/domain/system-components/snap-plane.js +1 -1
  725. package/dist/domain/system-components/snap-point.d.ts +1 -1
  726. package/dist/domain/system-components/snap-point.js +1 -1
  727. package/dist/domain/system-components/static-orthographic-camera-component.d.ts +1 -1
  728. package/dist/domain/system-components/static-orthographic-camera-component.js +1 -1
  729. package/dist/domain/system-components/static-perspective-camera-component.d.ts +1 -1
  730. package/dist/domain/system-components/static-perspective-camera-component.js +1 -1
  731. package/dist/domain/utils/eval-cache.d.ts +2 -3
  732. package/dist/domain/utils/map-nested-object.d.ts +1 -1
  733. package/dist/domain/utils/memo-eval.d.ts +2 -4
  734. package/dist/editor/domain-editors/use-implementation-files.d.ts +8 -8
  735. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  736. package/dist/editor/mocks/EditorMockContext.js +1 -1
  737. package/dist/i18n/locales/cs/messages.js +1 -1
  738. package/dist/i18n/locales/da/messages.js +1 -1
  739. package/dist/i18n/locales/de/messages.js +1 -1
  740. package/dist/i18n/locales/de-AT/messages.js +1 -1
  741. package/dist/i18n/locales/en/messages.js +1 -1
  742. package/dist/i18n/locales/en-AU/messages.js +1 -1
  743. package/dist/i18n/locales/en-GB/messages.js +1 -1
  744. package/dist/i18n/locales/es/messages.js +1 -1
  745. package/dist/i18n/locales/fr/messages.js +1 -1
  746. package/dist/i18n/locales/hu/messages.js +1 -1
  747. package/dist/i18n/locales/it/messages.js +1 -1
  748. package/dist/i18n/locales/nl/messages.js +1 -1
  749. package/dist/i18n/locales/pl/messages.js +1 -1
  750. package/dist/i18n/locales/pt/messages.js +1 -1
  751. package/dist/i18n/locales/ro/messages.js +1 -1
  752. package/dist/i18n/locales/sk/messages.js +1 -1
  753. package/dist/i18n/locales/tr/messages.js +1 -1
  754. package/dist/legacy/domain-cli/gen/configurator-builder.js +30 -16
  755. package/dist/legacy/domain-cli/gen/constant-expressions.js +1 -3
  756. package/dist/legacy/domain-cli/gen/defaults.js +1 -7
  757. package/dist/legacy/domain-cli/gen/implementation.js +7 -11
  758. package/dist/legacy/domain-cli/gen/invariants.js +7 -6
  759. package/dist/legacy/domain-cli/gen/relations.js +1 -1
  760. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  761. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  762. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/claude-md.d.ts +1 -1
  763. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/cursor-rules.d.ts +1 -1
  764. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.d.ts +1 -1
  765. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.js +1 -0
  766. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/domain-index.js +17 -15
  767. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/env-example.d.ts +1 -1
  768. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/env-example.js +4 -0
  769. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-admin.js +18 -19
  770. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-configurator.js +15 -16
  771. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-admin.js +22 -23
  772. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-configurator.js +15 -16
  773. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/generator-shared.d.ts +7 -2
  774. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/generator-shared.js +8 -12
  775. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/index.d.ts +1 -1
  776. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/index.js +1 -1
  777. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/webhook-builders.js +7 -7
  778. package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
  779. package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +4 -3
  780. package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
  781. package/dist/phoenix/commands/init.d.ts +4 -4
  782. package/dist/phoenix/commands/init.js +1 -1
  783. package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
  784. package/dist/phoenix/commands/prepare-local-environment-command.js +1 -1
  785. package/dist/phoenix/commands/prettier.js +1 -1
  786. package/dist/phoenix/scripts/build-admin.js +1 -1
  787. package/dist/phoenix/services/prepare-development-environment.js +1 -1
  788. package/dist/phoenix/services/variant-file-session.js +1 -1
  789. package/dist/phoenix/utils/git/index.d.ts +1 -0
  790. package/dist/phoenix/utils/git/index.js +1 -0
  791. package/dist/phoenix/utils/git/is-inside-git-repository.d.ts +6 -0
  792. package/dist/phoenix/utils/git/is-inside-git-repository.js +1 -0
  793. package/dist/phoenix/utils/index.d.ts +1 -0
  794. package/dist/phoenix/utils/index.js +1 -1
  795. package/dist/react-sdk/application-runtime/hooks/use-access-service.d.ts +2 -0
  796. package/dist/react-sdk/application-runtime/hooks/use-domain-application-props.d.ts +5 -2
  797. package/dist/react-sdk/application-runtime/hooks/use-spec.d.ts +1 -1
  798. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.d.ts +1 -1
  799. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  800. package/dist/react-sdk/application-runtime/routing/access-service.d.ts +1 -0
  801. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +57 -40
  802. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  803. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +9 -9
  804. package/dist/react-sdk/domain-context/index.d.ts +1 -1
  805. package/dist/react-sdk/domain-context/index.js +1 -1
  806. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +6 -0
  807. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  808. package/dist/ui-sdk/theme/types.d.ts +1 -1
  809. package/dist/webhook/builders/common.d.ts +8 -0
  810. package/dist/webhook/builders/webhook-builder.d.ts +1 -1
  811. package/dist/webhook/builders/webhook-builder.js +1 -1
  812. package/package.json +3 -3
  813. package/dist/application-spec/generate-application/code/templates/env-ci.d.ts +0 -1
  814. package/dist/application-spec/generate-application/code/templates/env-ci.js +0 -25
  815. package/dist/application-spec/generate-application/code/templates/env-example.d.ts +0 -1
  816. package/dist/application-spec/generate-application/code/templates/env-example.js +0 -90
  817. package/dist/application-spec/generate-application/code/templates/prettier-ignore.d.ts +0 -1
  818. package/dist/application-spec/generate-application/code/templates/prettier-ignore.js +0 -6
  819. package/dist/application-spec/generate-application/code/templates/private-assets-readme.d.ts +0 -1
  820. package/dist/application-spec/generate-application/code/templates/private-assets-readme.js +0 -24
  821. package/dist/application-spec/generate-application/code/templates/public-assets-readme.d.ts +0 -1
  822. package/dist/application-spec/generate-application/code/templates/public-assets-readme.js +0 -24
  823. package/dist/application-spec/generate-application/code/templates/readme.d.ts +0 -1
  824. package/dist/application-spec/generate-application/code/templates/readme.js +0 -23
  825. package/dist/application-spec/generate-application/code/templates/skills/agents-md.d.ts +0 -1
  826. package/dist/application-spec/generate-application/code/templates/skills/agents-md.js +0 -2
  827. package/dist/domain/actions/action-factory.d.ts +0 -10
  828. package/dist/domain/actions/prepare-action-implementations.js +0 -5
  829. package/dist/domain/application/element-registration.js +0 -1
  830. package/dist/domain/application/handler-registration.js +0 -1
  831. package/dist/domain/application/resolve-imported-transformers.d.ts +0 -13
  832. package/dist/domain/application/resolve-imported-transformers.js +0 -1
  833. package/dist/domain/application/resource-builder.d.ts +0 -13
  834. package/dist/domain/application/resource-builder.js +0 -1
  835. package/dist/domain/components/debug-state-component.js +0 -1
  836. package/dist/domain/components/domain-component-optic.d.ts +0 -76
  837. package/dist/domain/components/domain-component-optic.js +0 -16
  838. package/dist/domain/components/drag-state-component.js +0 -1
  839. package/dist/domain/components/export-state-component.js +0 -1
  840. package/dist/domain/components/fullscreen-state-component.js +0 -1
  841. package/dist/domain/components/group-components-by-entity-id-and-name.js +0 -1
  842. package/dist/domain/components/hover-state-component.js +0 -1
  843. package/dist/domain/components/index.d.ts +0 -2
  844. package/dist/domain/components/index.js +0 -1
  845. package/dist/domain/components/navigation-state-component.js +0 -1
  846. package/dist/domain/components/selection-state-component.js +0 -1
  847. package/dist/domain/components/system-component-builder.js +0 -1
  848. package/dist/domain/components/system-virtual-entity.js +0 -1
  849. package/dist/domain/components/tool-state-component.js +0 -1
  850. package/dist/domain/components/view-state-component.js +0 -1
  851. package/dist/domain/components/viewport-state-component.js +0 -1
  852. package/dist/domain/core/expression.d.ts +0 -50
  853. package/dist/domain/core/json-schema.js +0 -1
  854. package/dist/domain/core/migrations.js +0 -1
  855. package/dist/domain/core/reflection.js +0 -1
  856. package/dist/domain/domain-context/recipe-system/recipes.d.ts +0 -57
  857. package/dist/domain/domain-context/recipe-system/recipes.js +0 -1
  858. package/dist/domain/expressions/constant-expressions.d.ts +0 -9
  859. package/dist/domain/expressions/constant-expressions.js +0 -1
  860. package/dist/domain/expressions/custom-expression.d.ts +0 -13
  861. package/dist/domain/expressions/custom-expression.js +0 -1
  862. package/dist/domain/expressions/index.d.ts +0 -1
  863. package/dist/domain/expressions/index.js +0 -1
  864. package/dist/domain/invariants/custom-invariants.d.ts +0 -22
  865. package/dist/domain/invariants/custom-invariants.js +0 -1
  866. package/dist/domain/invariants/invariants.d.ts +0 -68
  867. package/dist/domain/invariants/invariants.js +0 -1
  868. package/dist/domain/invariants/violation-component.js +0 -1
  869. package/dist/domain/relations/all-of-type-relation.d.ts +0 -33
  870. package/dist/domain/relations/all-of-type-relation.js +0 -1
  871. package/dist/domain/relations/component-factories.js +0 -1
  872. package/dist/domain/relations/composed-of.js +0 -1
  873. package/dist/domain/relations/direct-relation.d.ts +0 -29
  874. package/dist/domain/relations/indirect-relation.d.ts +0 -81
  875. package/dist/domain/relations/indirect-relation.js +0 -1
  876. package/dist/domain/relations/reference-component.js +0 -1
  877. package/dist/domain/relations/relation-factory.d.ts +0 -19
  878. package/dist/domain/relations/relation-factory.js +0 -1
  879. package/dist/domain/relations/relation-implementation.d.ts +0 -8
  880. package/dist/domain/system-components/angle-indicator.js +0 -1
  881. package/dist/domain/system-components/attribute-switch.js +0 -1
  882. package/dist/domain/system-components/autorotate-camera-component.js +0 -1
  883. package/dist/domain/system-components/basic-sidebar-footer.js +0 -1
  884. package/dist/domain/system-components/camera-based-hidden-entity-object.js +0 -1
  885. package/dist/domain/system-components/camera-based-hidden-entity.js +0 -1
  886. package/dist/domain/system-components/canvas-config.js +0 -1
  887. package/dist/domain/system-components/canvas-custom-environment.js +0 -1
  888. package/dist/domain/system-components/canvas-padding.js +0 -1
  889. package/dist/domain/system-components/canvas-preset-environment.js +0 -1
  890. package/dist/domain/system-components/child-entity-recipe-hierarchy.js +0 -1
  891. package/dist/domain/system-components/client-side-image.js +0 -1
  892. package/dist/domain/system-components/color-value.js +0 -1
  893. package/dist/domain/system-components/common/angle-indicator-schema.js +0 -1
  894. package/dist/domain/system-components/common/dimension-indicator-schema.js +0 -1
  895. package/dist/domain/system-components/custom-price-footer.js +0 -1
  896. package/dist/domain/system-components/dimension-indicator.js +0 -1
  897. package/dist/domain/system-components/editable-angle-indicator.js +0 -1
  898. package/dist/domain/system-components/editable-distance-dimension-indicator.js +0 -1
  899. package/dist/domain/system-components/editable-offset-indicator.js +0 -1
  900. package/dist/domain/system-components/editable-size-indicator.js +0 -1
  901. package/dist/domain/system-components/entity-header.js +0 -1
  902. package/dist/domain/system-components/exit-tool-mode-fab.js +0 -1
  903. package/dist/domain/system-components/finalize-action.js +0 -1
  904. package/dist/domain/system-components/finalize-component.js +0 -1
  905. package/dist/domain/system-components/fit-selection-orthographic-camera-component.js +0 -1
  906. package/dist/domain/system-components/fit-selection-perspective-camera-component.js +0 -1
  907. package/dist/domain/system-components/fixed-header.js +0 -1
  908. package/dist/domain/system-components/floating-header.js +0 -1
  909. package/dist/domain/system-components/hidden-header.js +0 -1
  910. package/dist/domain/system-components/hidden-sidebar-footer.js +0 -1
  911. package/dist/domain/system-components/horizontal-tabs.js +0 -1
  912. package/dist/domain/system-components/list-selector-dimension-indicator.js +0 -1
  913. package/dist/domain/system-components/multilingual-text-value.js +0 -1
  914. package/dist/domain/system-components/navigation-steps.js +0 -1
  915. package/dist/domain/system-components/offset-anchors.js +0 -1
  916. package/dist/domain/system-components/offset-indicator.js +0 -1
  917. package/dist/domain/system-components/offset.js +0 -1
  918. package/dist/domain/system-components/other-action.js +0 -1
  919. package/dist/domain/system-components/property-page.js +0 -1
  920. package/dist/domain/system-components/read-sidebar-footer.js +0 -1
  921. package/dist/domain/system-components/replace-entity-recipe-hierarchy.js +0 -1
  922. package/dist/domain/system-components/rotatable.js +0 -1
  923. package/dist/domain/system-components/rotation-handle.js +0 -1
  924. package/dist/domain/system-components/save-template-thumbnail.js +0 -1
  925. package/dist/domain/system-components/scene-entity-add-fab.js +0 -1
  926. package/dist/domain/system-components/scene-entity-animation.js +0 -1
  927. package/dist/domain/system-components/scene-entity-control.js +0 -1
  928. package/dist/domain/system-components/scene-entity-delete-fab.js +0 -1
  929. package/dist/domain/system-components/scene-entity-floor-object.js +0 -1
  930. package/dist/domain/system-components/scene-entity-html-hotspot.js +0 -1
  931. package/dist/domain/system-components/scene-entity-navigation-hotspot.js +0 -1
  932. package/dist/domain/system-components/scene-entity-object-html-hotspot.js +0 -1
  933. package/dist/domain/system-components/scene-entity-select-hotspot.js +0 -1
  934. package/dist/domain/system-components/scene-entity-wall-object.js +0 -1
  935. package/dist/domain/system-components/selectable-component.js +0 -1
  936. package/dist/domain/system-components/sidebar-tabs.js +0 -1
  937. package/dist/domain/system-components/simple-summary.js +0 -1
  938. package/dist/domain/system-components/size.js +0 -1
  939. package/dist/domain/system-components/sketching-draw.js +0 -1
  940. package/dist/domain/system-components/sketching-edit.js +0 -1
  941. package/dist/domain/system-components/summary-component.js +0 -1
  942. package/dist/domain/system-components/text-value.js +0 -1
  943. package/dist/domain/system-components/tool-controls.js +0 -1
  944. package/dist/domain/system-components/tool-menu-fab.js +0 -1
  945. package/dist/domain/system-components/universal-sidebar-footer.js +0 -1
  946. package/dist/domain/system-components/view-controls.js +0 -1
  947. package/dist/phoenix/application-spec/generate-assistant-prompt.d.ts +0 -13
  948. package/dist/phoenix/application-spec/generate-assistant-prompt.js +0 -1
  949. /package/dist/domain/{components/component-reader-types.js → application/assistant/assistant-manifest.js} +0 -0
  950. /package/dist/domain/{actions → core/action}/action-factory.js +0 -0
  951. /package/dist/domain/core/{action.js → action/action.js} +0 -0
  952. /package/dist/domain/core/{enhanced-json-schema.js → component/component-reader-types.js} +0 -0
  953. /package/dist/domain/{components → core/component}/legacy-filter.js +0 -0
  954. /package/dist/domain/{components → core/component}/system-component-filter.js +0 -0
  955. /package/dist/domain/{components → core/component}/system-virtual-entity.d.ts +0 -0
  956. /package/dist/domain/{components → core/component}/updates.js +0 -0
  957. /package/dist/domain/core/{expression.js → data-schema/data-cell-value.js} +0 -0
  958. /package/dist/domain/core/{schema-validator.js → data-schema/data-schema-array-field.js} +0 -0
  959. /package/dist/domain/{relations/reference-field.js → core/data-schema/data-schema-field-object.js} +0 -0
  960. /package/dist/domain/{relations/relation-implementation.js → core/data-schema/data-schema-field.js} +0 -0
  961. /package/dist/domain/{invariants → core/invariant}/builtin-invariant.js +0 -0
  962. /package/dist/domain/{invariants → core/invariant}/violation-component.d.ts +0 -0
  963. /package/dist/domain/{invariants → core/invariant}/violation.js +0 -0
  964. /package/dist/domain/core/{alias.d.ts → model/alias.d.ts} +0 -0
  965. /package/dist/domain/core/{alias.js → model/alias.js} +0 -0
  966. /package/dist/domain/core/{common-definitions.d.ts → model/common-definitions.d.ts} +0 -0
  967. /package/dist/domain/core/{common-definitions.js → model/common-definitions.js} +0 -0
  968. /package/dist/domain/core/{component.js → model/component.js} +0 -0
  969. /package/dist/domain/core/{model.d.ts → model/model.d.ts} +0 -0
  970. /package/dist/domain/core/{model.js → model/model.js} +0 -0
  971. /package/dist/domain/core/{preset.d.ts → model/preset.d.ts} +0 -0
  972. /package/dist/domain/core/{preset.js → model/preset.js} +0 -0
  973. /package/dist/domain/{relations → core/relation}/direct-relation.js +0 -0
  974. /package/dist/domain/core/{schema-validator-ajv.d.ts → schema/create-ajv-schema-validator.d.ts} +0 -0
  975. /package/dist/domain/core/{schema-validator-ajv.js → schema/create-ajv-schema-validator.js} +0 -0
  976. /package/dist/domain/core/{schema-validator-csp.d.ts → schema/create-csp-schema-validator.d.ts} +0 -0
  977. /package/dist/domain/core/{schema-validator-csp.js → schema/create-csp-schema-validator.js} +0 -0
  978. /package/dist/domain/core/{enhanced-json-schema.d.ts → schema/enhanced-json-schema.d.ts} +0 -0
  979. /package/dist/domain/core/{json-schema.d.ts → schema/extended-schema-validator.d.ts} +0 -0
  980. /package/dist/domain/core/{schema-validator.d.ts → schema/schema-validator.d.ts} +0 -0
  981. /package/dist/domain/core/{state.js → state/state.js} +0 -0
  982. /package/dist/domain/{expressions → domain-runtime/spec}/memoize-expression.js +0 -0
  983. /package/dist/domain/{expressions → domain-runtime/spec}/prepare-domain-expressions.js +0 -0
  984. /package/dist/domain/{system-components → extensions}/attribute-switch.d.ts +0 -0
  985. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity-object.d.ts +0 -0
  986. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity.d.ts +0 -0
  987. /package/dist/domain/{system-components → extensions}/canvas-custom-environment.d.ts +0 -0
  988. /package/dist/domain/{system-components → extensions}/client-side-image.d.ts +0 -0
  989. /package/dist/domain/{system-components → extensions}/color-value.d.ts +0 -0
  990. /package/dist/domain/{system-components → extensions}/common/dimension-indicators.d.ts +0 -0
  991. /package/dist/domain/{system-components → extensions}/common/dimension-indicators.js +0 -0
  992. /package/dist/domain/{system-components → extensions}/common/editable-indicator-button-variant.d.ts +0 -0
  993. /package/dist/domain/{system-components → extensions}/common/editable-indicator-button-variant.js +0 -0
  994. /package/dist/domain/{system-components → extensions}/custom-price-footer.d.ts +0 -0
  995. /package/dist/domain/{system-components → extensions}/finalize-component.d.ts +0 -0
  996. /package/dist/domain/{system-components → extensions}/fit-selection-orthographic-camera-component.d.ts +0 -0
  997. /package/dist/domain/{system-components → extensions}/fit-selection-perspective-camera-component.d.ts +0 -0
  998. /package/dist/domain/{system-components → extensions}/multilingual-text-value.d.ts +0 -0
  999. /package/dist/domain/{system-components → extensions}/navigation-steps.d.ts +0 -0
  1000. /package/dist/domain/{system-components → extensions}/rotatable.d.ts +0 -0
  1001. /package/dist/domain/{system-components → extensions}/rotation-handle.d.ts +0 -0
  1002. /package/dist/domain/{system-components → extensions}/save-template-thumbnail.d.ts +0 -0
  1003. /package/dist/domain/{system-components → extensions}/scene-entity-animation.d.ts +0 -0
  1004. /package/dist/domain/{system-components → extensions}/scene-entity-control.d.ts +0 -0
  1005. /package/dist/domain/{system-components → extensions}/scene-entity-floor-object.d.ts +0 -0
  1006. /package/dist/domain/{system-components → extensions}/scene-entity-wall-object.d.ts +0 -0
  1007. /package/dist/domain/{system-components → extensions}/selectable-component.d.ts +0 -0
  1008. /package/dist/domain/{system-components → extensions}/simple-summary.d.ts +0 -0
  1009. /package/dist/domain/{system-components → extensions}/summary-component.d.ts +0 -0
  1010. /package/dist/domain/{system-components → extensions}/text-value.d.ts +0 -0
  1011. /package/dist/domain/{system-components → extensions}/tool-controls.d.ts +0 -0
  1012. /package/dist/domain/{system-components → extensions}/view-controls.d.ts +0 -0
@@ -25,8 +25,9 @@ The configurator interface is generated in `.phoenix/configurator-interface.ts`:
25
25
 
26
26
  ```typescript
27
27
  // .phoenix/configurator-interface.ts (AUTO-GENERATED - DO NOT EDIT)
28
- import {'{'} createConfiguratorInterface {'}'} from '@salsita-ai/sdk/configurator'
29
- import {'{'} configuratorBuilder {'}'} from './domain.js'
28
+ import { createConfiguratorInterface } from '@salsita-ai/sdk/configurator'
29
+
30
+ import { configuratorBuilder } from './domain.js'
30
31
 
31
32
  export const configuratorInterface = createConfiguratorInterface(configuratorBuilder)
32
33
 
@@ -64,9 +65,9 @@ type CustomMaterial = Phx['AdminModel']['CustomMaterial']
64
65
  Access the configurator interface via `phx.frontend`:
65
66
 
66
67
  ```typescript
67
- export const CustomComponent = () => {'{'}
68
+ export const CustomComponent = () => {
68
69
  // Access domain systems
69
- const {'{'} navigationSystem, storeSystem {'}'} = phx.frontend.useDomain()
70
+ const { navigationSystem, storeSystem } = phx.frontend.useDomain()
70
71
 
71
72
  // Entity state hooks
72
73
  const rootEntity = phx.frontend.useRootEntityState()
@@ -76,11 +77,11 @@ export const CustomComponent = () => {'{'}
76
77
  const selectEntity = phx.frontend.useSelectEntity()
77
78
 
78
79
  // Type-safe entity access
79
- if (selectedEntity && Cabinet.is(selectedEntity)) {'{'}
80
+ if (selectedEntity && Cabinet.is(selectedEntity)) {
80
81
  // selectedEntity is now typed as $Cabinet
81
82
  console.log(selectedEntity.width, selectedEntity.$area)
82
- {'}'}
83
- {'}'}
83
+ }
84
+ }
84
85
  ```
85
86
 
86
87
  ## Core Hooks
@@ -90,16 +91,16 @@ The configurator interface provides 100+ hooks organized by category. Use TypeSc
90
91
  ### Domain & Application Context
91
92
 
92
93
  ```typescript
93
- const ExampleComponent = () => {'{'}
94
+ const ExampleComponent = () => {
94
95
  // Core domain systems
95
- const {'{'} navigationSystem, storeSystem, entitySystem {'}'} = phx.frontend.useDomain()
96
+ const { navigationSystem, storeSystem, entitySystem } = phx.frontend.useDomain()
96
97
 
97
98
  // Domain application context
98
- const {'{'} configurationPersistSystem {'}'} = phx.frontend.useDomainApplication()
99
+ const { configurationPersistSystem } = phx.frontend.useDomainApplication()
99
100
 
100
101
  // Full configurator context
101
- const {'{'} imageRenderingSystem {'}'} = phx.frontend.useConfigurator()
102
- {'}'}
102
+ const { imageRenderingSystem } = phx.frontend.useConfigurator()
103
+ }
103
104
  ```
104
105
 
105
106
  ### State Subscriptions
@@ -160,6 +161,10 @@ const toolState = phx.frontend.useActiveToolState()
160
161
  const navigate = phx.frontend.useNavigate()
161
162
  const pushNavigate = phx.frontend.usePushNavigate()
162
163
  const popNavigate = phx.frontend.usePopNavigate()
164
+
165
+ // Fullscreen: a flag in the configurator's state that the layout honours; it does not put the browser into fullscreen
166
+ const isFullscreen = phx.frontend.useIsFullscreenActive()
167
+ const setFullscreen = phx.frontend.useSetFullscreen() // setFullscreen(true) or setFullscreen(false)
163
168
  ```
164
169
 
165
170
  ### Controls
@@ -209,7 +214,7 @@ const validity = phx.frontend.useStateValidity()
209
214
  const controlViolations = phx.frontend.useControlViolations(entityId, controlId)
210
215
 
211
216
  // Finalize violations
212
- const {'{'} disabled, hints {'}'} = phx.frontend.useFinalizeViolations()
217
+ const { disabled, hints } = phx.frontend.useFinalizeViolations()
213
218
 
214
219
  // Map violations to hints
215
220
  const mapViolationHints = phx.frontend.useMapViolationHints()
@@ -284,89 +289,89 @@ The interface provides factory functions for creating handlers and providers:
284
289
 
285
290
  ```typescript
286
291
  // Runs early in app startup, before session auth
287
- const OnApplicationStart = phx.frontend.createOnApplicationStartProvider(({'{'} children {'}'}) => {'{'}
288
- return <YourProvider>{'{'}children{'}'}</YourProvider>
289
- {'}'})
292
+ const OnApplicationStart = phx.frontend.createOnApplicationStartProvider(({ children }) => {
293
+ return <YourProvider>{children}</YourProvider>
294
+ })
290
295
 
291
296
  // Runs after session auth, before domain data loading
292
- const OnSessionReady = phx.frontend.createOnSessionReadyProvider(({'{'} children {'}'}) => {'{'}
293
- return <YourProvider>{'{'}children{'}'}</YourProvider>
294
- {'}'})
297
+ const OnSessionReady = phx.frontend.createOnSessionReadyProvider(({ children }) => {
298
+ return <YourProvider>{children}</YourProvider>
299
+ })
295
300
 
296
301
  // Runs after published data is parsed, before frontend/backend loading
297
- const OnPublishedDataReady = phx.frontend.createOnPublishedDataReadyProvider(({'{'} children {'}'}) => {'{'}
298
- return <YourProvider>{'{'}children{'}'}</YourProvider>
299
- {'}'})
302
+ const OnPublishedDataReady = phx.frontend.createOnPublishedDataReadyProvider(({ children }) => {
303
+ return <YourProvider>{children}</YourProvider>
304
+ })
300
305
 
301
306
  // Runs after frontend collection and parsing, before backend loading
302
- const OnFrontendDataReady = phx.frontend.createOnFrontendDataReadyProvider(({'{'} children {'}'}) => {'{'}
303
- return <YourProvider>{'{'}children{'}'}</YourProvider>
304
- {'}'})
307
+ const OnFrontendDataReady = phx.frontend.createOnFrontendDataReadyProvider(({ children }) => {
308
+ return <YourProvider>{children}</YourProvider>
309
+ })
305
310
 
306
311
  // Runs after backend loading, before preset selection and configurator initialization
307
- const OnBackendDataReady = phx.frontend.createOnBackendDataReadyProvider(({'{'} children {'}'}) => {'{'}
308
- return <YourProvider>{'{'}children{'}'}</YourProvider>
309
- {'}'})
312
+ const OnBackendDataReady = phx.frontend.createOnBackendDataReadyProvider(({ children }) => {
313
+ return <YourProvider>{children}</YourProvider>
314
+ })
310
315
 
311
316
  // Runs after routing and preset selection are ready
312
- const OnRoutingReady = phx.frontend.createOnRoutingReadyProvider(({'{'} children {'}'}) => {'{'}
313
- return <YourProvider>{'{'}children{'}'}</YourProvider>
314
- {'}'})
317
+ const OnRoutingReady = phx.frontend.createOnRoutingReadyProvider(({ children }) => {
318
+ return <YourProvider>{children}</YourProvider>
319
+ })
315
320
 
316
321
  // Wraps OwnerUi and ReadUi pages
317
- const OnConfiguratorReady = phx.frontend.createOnConfiguratorReadyProvider(({'{'} children {'}'}) => {'{'}
318
- return <YourProvider>{'{'}children{'}'}</YourProvider>
319
- {'}'})
322
+ const OnConfiguratorReady = phx.frontend.createOnConfiguratorReadyProvider(({ children }) => {
323
+ return <YourProvider>{children}</YourProvider>
324
+ })
320
325
  ```
321
326
 
322
327
  ### Data Handlers
323
328
 
324
329
  ```typescript
325
330
  // Collect frontend data during initialization
326
- const collectFrontendData = phx.frontend.createCollectFrontendDataHandler(async (context) => {'{'}
327
- return {'{'} customData: await fetchCustomData() {'}'}
328
- {'}'})
331
+ const collectFrontendData = phx.frontend.createCollectFrontendDataHandler(async context => {
332
+ return { customData: await fetchCustomData() }
333
+ })
329
334
 
330
335
  // Override which published chunks are fetched by the frontend.
331
336
  // See Publishing page for full documentation.
332
- const filterPublishedChunks = phx.frontend.createFilterPublishedChunksHandler(() => {'{'}
337
+ const filterPublishedChunks = phx.frontend.createFilterPublishedChunksHandler(() => {
333
338
  const session = phx.frontend.useSession()
334
339
 
335
- return useMemo(() => {'{'}
340
+ return useMemo(() => {
336
341
  if (session.sessionPayload?.role === 'admin') return ['styling', 'catalog-na']
337
342
  return ['styling']
338
- {'}'}, [session.sessionPayload?.role])
339
- {'}'})
343
+ }, [session.sessionPayload?.role])
344
+ })
340
345
 
341
346
  // Runs after preset data is loaded
342
- const onPresetLoaded = phx.frontend.createOnPresetLoadedHandler((entities, presetData) => {'{'}
347
+ const onPresetLoaded = phx.frontend.createOnPresetLoadedHandler((entities, presetData) => {
343
348
  // Can modify preset entities before rendering
344
349
  return entities
345
- {'}'})
350
+ })
346
351
 
347
352
  // Intercept navigation to index/presets page
348
- const onGoToIndex = phx.frontend.createOnGoToIndexHandler(() => {'{'}
353
+ const onGoToIndex = phx.frontend.createOnGoToIndexHandler(() => {
349
354
  // Custom logic before navigating
350
- {'}'})
355
+ })
351
356
  ```
352
357
 
353
358
  ### UI Components
354
359
 
355
360
  ```typescript
356
361
  // Custom Phoenix layout element
357
- const MyLayoutElement = phx.frontend.createCustomPhoenixLayoutElement(() => {'{'}
362
+ const MyLayoutElement = phx.frontend.createCustomPhoenixLayoutElement('MyLayoutElement', () => {
358
363
  return <div>Custom Layout</div>
359
- {'}'})
364
+ })
360
365
 
361
366
  // Custom Phoenix entity element
362
- const MyEntityElement = phx.frontend.createCustomPhoenixEntityElement(() => {'{'}
367
+ const MyEntityElement = phx.frontend.createCustomPhoenixEntityElement('MyEntityElement', () => {
363
368
  return <mesh>...</mesh>
364
- {'}'})
369
+ })
365
370
 
366
371
  // Custom page when auth fails
367
- const NotAuthenticatedPage = phx.frontend.createNotAuthenticatedPage(() => {'{'}
372
+ const NotAuthenticatedPage = phx.frontend.createNotAuthenticatedPage(() => {
368
373
  return <div>Please log in</div>
369
- {'}'})
374
+ })
370
375
  ```
371
376
 
372
377
  ### Preset UI
@@ -383,21 +388,56 @@ const PresetAction = phx.frontend.createPresetPageAction(PresetHelpAction)
383
388
  const PresetOverlay = phx.frontend.createPresetDeviceNotSupported(SmallScreenNotice)
384
389
  ```
385
390
 
391
+ ### Loaded Configuration UI
392
+
393
+ A layout element registered under the name `ConfiguratorLayout` replaces the whole UI of a loaded configuration, in owner and in read mode, whatever `layout` the spec sets. Without it, Phoenix renders the layout the spec selects. [Custom Layout](?path=/docs/layouts-custom-layout--docs) is a worked example: a fully custom product page with its panel on the left, built from the scene, the safe-area hook and state hooks.
394
+
395
+ ```typescript
396
+ // src/elements/ConfiguratorLayout.tsx
397
+ import { LayoutSlots, useSceneSafeArea } from '@salsita-ai/sdk/configurator'
398
+
399
+ const SIDEBAR_WIDTH = 320
400
+
401
+ export default phx.frontend.createCustomPhoenixLayoutElement('ConfiguratorLayout', () => {
402
+ const { containerRef, safeAreaRef } = useSceneSafeArea()
403
+
404
+ return (
405
+ <div ref={containerRef} style={{ position: 'absolute', inset: 0 }}>
406
+ <LayoutSlots.Services />
407
+ <LayoutSlots.SharedCanvas />
408
+ <aside style={{ position: 'absolute', insetBlock: 0, insetInlineStart: 0, inlineSize: SIDEBAR_WIDTH }}>
409
+ Project sidebar
410
+ </aside>
411
+ <div
412
+ ref={safeAreaRef}
413
+ style={{ position: 'absolute', insetBlock: 0, insetInlineStart: SIDEBAR_WIDTH, insetInlineEnd: 0, pointerEvents: 'none' }}
414
+ />
415
+ </div>
416
+ )
417
+ })
418
+ ```
419
+
420
+ - `LayoutSlots.SharedCanvas` renders the scene. It is absolutely positioned and fills its nearest positioned ancestor, so the layout's root is positioned and covers the page. The layout positions its own UI above the canvas and after it in the markup, as the `aside` does; unpositioned content is painted under the canvas.
421
+ - `useSceneSafeArea()`, called without arguments, tells the camera which part of the canvas the UI leaves free. Attach `containerRef` to the element that covers the whole canvas and `safeAreaRef` to the region the scene should stay visible in: the hook measures the gap between the two and the camera frames the scene inside the safe area. Without it the scene is framed in the whole canvas. The safe-area element lies over the canvas, so it sets `pointerEvents: 'none'` to leave orbiting and clicking to the scene. A `canvasPadding` component in the spec scales the measured gaps, see [Canvas Padding](?path=/docs/layouts-canvas-padding--docs).
422
+ - The layout has to mount `LayoutSlots.SharedCanvas`, or the project sets `appLoader: legacy`. Otherwise the app loader stays on screen.
423
+ - The layout composes the rest from what `@salsita-ai/sdk/configurator` exports: `LayoutSlots.Services` and the other members of `LayoutSlots`.
424
+ - Nothing of the built-in layouts is rendered for it. `Legacy.CommonFinalizePage` shows the page of the `finalizePage` component in a dialog while one of its finalize navigation states is active, so a layout that shows a finalize button mounts it; without it the button changes the navigation state and nothing appears. It is marked deprecated and is the only exported piece that does this. `LayoutDialog` renders only what the project registers with `createLayoutDialog` and is not part of the finalize flow. The preview start screen is `DesktopPreview` or `MobilePreview`, which the layout shows while `usePreview().isPreview` is set. Both previews frame the scene themselves, so the layout renders the component that calls `useSceneSafeArea()` only while `isPreview` is not set; it then measures when it mounts after the preview. The assistant panel is not available to a project layout.
425
+ - The layout reads the state it has to react to from hooks. Read mode: `phx.frontend.useAccessService().accessInfo.viewMode`. Fullscreen: `phx.frontend.useIsFullscreenActive()` reads it and `phx.frontend.useSetFullscreen()` sets it; the layout decides what to hide. Preview: `usePreview()` from `@salsita-ai/sdk/configurator`.
426
+ - Any project layout element named `ConfiguratorLayout` takes over the page.
427
+
386
428
  ## TransformerBuilder
387
429
 
388
430
  Use `transformerBuilder` to create entity transformers:
389
431
 
390
432
  ```typescript
391
433
  // Create a transformer that runs when specific conditions are met
392
- const cabinetTransformer = phx.frontend.transformerBuilder
393
- .when(Cabinet.is)
394
- .do((cabinet, context) => {'{'}
395
- // Transform cabinet data
396
- return {'{'}
397
- ...cabinet,
398
- $computedField: calculateSomething(cabinet)
399
- {'}'}
400
- {'}'})
434
+ const cabinetTransformer = phx.frontend.transformerBuilder.when(Cabinet.is).do((cabinet, context) => {
435
+ // Transform cabinet data
436
+ return {
437
+ ...cabinet,
438
+ $computedField: calculateSomething(cabinet),
439
+ }
440
+ })
401
441
  ```
402
442
 
403
443
  **Note**: The deprecated `createTransformer` function should not be used for new implementations.
@@ -407,19 +447,19 @@ const cabinetTransformer = phx.frontend.transformerBuilder
407
447
  The `updates` factory creates type-safe entity updates:
408
448
 
409
449
  ```typescript
410
- const {'{'} storeSystem {'}'} = phx.frontend.useDomain()
450
+ const { storeSystem } = phx.frontend.useDomain()
411
451
 
412
452
  // Create new entity
413
- const createUpdates = phx.frontend.updates.create({'{'}
453
+ const createUpdates = phx.frontend.updates.create({
414
454
  type: 'Cabinet',
415
455
  width: 800,
416
456
  height: 2000,
417
- {'}'})
457
+ })
418
458
 
419
459
  // Modify existing entity
420
- const modifyUpdates = phx.frontend.updates.modify(cabinetId, {'{'}
460
+ const modifyUpdates = phx.frontend.updates.modify(cabinetId, {
421
461
  width: 1000,
422
- {'}'})
462
+ })
423
463
 
424
464
  // Delete entity
425
465
  const deleteUpdates = phx.frontend.updates.delete(cabinetId)
@@ -464,7 +464,7 @@ Error: Failed to upload to S3
464
464
 
465
465
  - Run `deployment:prepare` again to get fresh presigned URLs
466
466
  - Check that `.upload-links.json` exists and is readable
467
- - Use `--skipUpload` / `-su` flag to test without uploading assets
467
+ - Use `--skipUpload` / `--su` flag to test without uploading assets
468
468
 
469
469
  ### "Server URL is required"
470
470
 
@@ -565,9 +565,13 @@ A relation pair can have at most one composition owner. For an ownership relatio
565
565
  Relations are validated when the application spec is parsed:
566
566
 
567
567
  - **Every relation must be declared from both sides.** A relation on `A` targeting `B` needs a counterpart declared on `B` (or on an alias containing `B`) pointing back at `A` — with the opposite kind (`direct` ↔ `indirect`, `allOfType` ↔ `allOfType`) and the same `field`. A missing or mismatched counterpart fails parsing with `RELATION_MISSING_COUNTERPART`. Self‑referencing relations (target is the declaring type) act as their own counterpart and are exempt.
568
+ - **The field of a relation must hold references to the entities the relation relates to.** A `direct` relation reads a field of the entity it is declared on, and the field must reference exactly the entity types of the target. An `indirect` relation reads a field of the target, and the field must reference exactly the entity types the relation is declared on. A field that is not a `DomainEntityId` with `references` fails parsing with `RELATION_FIELD_NOT_REFERENCE`, and one that references other entity types with `RELATION_FIELD_REFERENCES_OTHER_TYPES`.
569
+ - **The field of a `direct` relation must hold its references the way the cardinality needs.** `1-1` needs one reference that is never `null`, `0-1` one reference or `null`, and `0-N` or `1-N` an array of references. Anything else fails parsing with `RELATION_FIELD_CARDINALITY_MISMATCH`. An `indirect` relation takes any of the three, because its cardinality counts the entities that point back.
568
570
  - **At most one side may carry `composedOf: true`.** A pair may have one owner or no owner. Two owning sides fail parsing with `RELATION_COUNTERPART_COMPOSED_OF_MISMATCH` because the pair would define ownership in both directions.
569
571
  - **Every entity type must be reachable from the root** through `composedOf` edges, otherwise parsing fails with `RELATION_ENTITY_NOT_IN_COMPOSITION_TREE`.
570
572
 
573
+ **What the field checks leave out.** A field whose schema states its type as text (`tsType`) or combines schemas with `allOf` is not checked, because the parser cannot tell what it holds. With a wrong field of that kind a `direct` relation fails when it is read, and an `indirect` relation finds no related entities and fails only if its cardinality requires one. When an alias holds the field, the relation is accepted if the field fits in at least one entity type of the alias.
574
+
571
575
  **Why both sides?** The two declarations feed two different runtime systems. The `direct` side owns the id field and generates the reference bookkeeping: dangling ids are pruned when the referenced entity is deleted, and ids are written on create and replace. The `composedOf: true` side generates the composition edge: cascade deletes, the scene hierarchy, and the reachability check. Because these can be different entities — a parent may collect children by reverse lookup (`indirect` + `composedOf: true`) while each child stores the id — dropping either declaration silently disables one of the systems: without the parent side, deleting the parent leaves its children orphaned; without the child side, deleted entities leave dangling ids behind. The missing side also cannot be generated automatically, because the stored id field is compatible with many different relations: the reverse accessor's name is public API, and its cardinality (`0-N`, `1-N`, or a `0-1` slot) changes the generated types, state validation, and UI affordances without changing the stored data at all. Requiring both declarations turns these mistakes into parse errors instead of runtime surprises, and the redundancy lets the parser cross‑check the pair — a typo in `field` or a doubled owner is caught immediately.
572
576
 
573
577
  ### Picking a relation kind
@@ -35,15 +35,23 @@ interface ExpressionContext<
35
35
 
36
36
  // System services
37
37
  readonly domain: Domain // Access to domain model and other entities
38
- readonly componentReader: ComponentReader // Read component states across all entities
39
38
  readonly migrate: MigrateFunction // Data migration utilities
40
- readonly sketchingProjections: SketchingProjections // Sketching system projections
41
- readonly collisionProjections: CollisionProjections // Collision detection projections
39
+ readonly componentReader: ComponentReader // Read component states across all entities
40
+
41
+ // Projections
42
+ readonly positionProjections: PositionProjections // World matrices of scene entities
43
+ readonly sketchingProjections: SketchingProjections // Shapes and connections of a sketch
44
+ readonly collisionProjections: CollisionProjections // Collision meshes and collisions between entities
45
+ readonly constraintProjections: ConstraintProjections // Spatial constraints an entity violates
46
+ readonly snappingProjections: SnappingProjections // Snap points, edges, planes and matches
47
+ readonly projectedEntitiesProjections: ProjectedEntitiesProjections // Data of projected entities
42
48
  }
43
49
  ```
44
50
 
45
51
  The context includes data sources (session, published, frontend, backend), system services (domain access, component reader, projections), and application state (mode, role). Each part serves a different purpose in expression calculations.
46
52
 
53
+ The SDK declares the context in two parts. `CoreExpressionContext` holds the mode, the role, the data sources, `domain` and `migrate`. `RuntimeExpressionContext` holds the component reader and the projections. An editor hover or a type error therefore shows `ctx` as `OpenExpressionContext<..., RuntimeExpressionContext<AnyDomainEntity>>`, which has the members listed above. A helper of your own that takes the context declares its parameter as `ExpressionContext` with the five types of your project.
54
+
47
55
  ### Configurator Modes
48
56
 
49
57
  The `mode` property indicates the current operational context of the configurator. Different modes enable different functionality and access levels. Expressions can check the mode to change their behavior.
@@ -86,7 +86,7 @@ For inspiration and real-world implementation patterns, examine deployed Salsita
86
86
 
87
87
  When you encounter challenges or need to implement specific features, use these resources in order:
88
88
 
89
- **AI-Powered Assistance**: Every Phoenix project ships `AGENTS.md` and Phoenix agent skills, so coding agents in your project already know the SDK conventions and CLI. Start by using AI coding assistants in the `configurator-phoenix` project. While they may not solve complex problems directly, they can point you toward relevant examples or search terms that will help you find the right solution.
89
+ **AI-Powered Assistance**: Every Phoenix project ships Phoenix agent skills, so coding agents in your project already know the SDK conventions and CLI. Start by using AI coding assistants in the `configurator-phoenix` project. While they may not solve complex problems directly, they can point you toward relevant examples or search terms that will help you find the right solution.
90
90
 
91
91
  **Storybook Documentation**: Search the Phoenix Storybook for functionality similar to what you need. When you find relevant examples, examine the corresponding code in the configurator-phoenix stories to understand the implementation details.
92
92
 
@@ -116,28 +116,9 @@ After running `pnpm lingui:compile`, your custom translations will override the
116
116
  - Adapt translations for your target audience
117
117
  - Maintain consistency with your existing product language
118
118
 
119
- **Frontend integration**:
120
-
121
- ```typescript
122
- import { configuratorBuilder } from 'project-domain'
123
- import { createI18n } from 'project-i18n'
124
-
125
- const i18n = createI18n()
126
-
127
- export const config = configuratorBuilder
128
- .withComponentOptics(customComponents)
129
- .withPresets(presets)
130
- .withI18n(i18n) // Register i18n service with configurator
131
- .buildConfig({
132
- features: {
133
- availableLocales: ['en', 'de', 'cs'],
134
- },
135
- services: {
136
- logger,
137
- },
138
- // ... other configuration
139
- })
140
- ```
119
+ **Frontend integration**: the generated `.phoenix` code creates the i18n service from `.phoenix/i18n.ts` and registers
120
+ it with the application, so there is nothing to wire by hand. The languages come from `availableLocales` in
121
+ `spec/application.yaml`.
141
122
 
142
123
  ## Working with YAML Domain Specifications
143
124
 
@@ -29,10 +29,11 @@ pnpm phoenix dev
29
29
 
30
30
  1. Refuses to run when a `spec/` folder already exists, so it never touches an existing project.
31
31
  2. Writes a `package.json` that depends on the CLI's SDK version when the folder has none. An existing `package.json` is kept, as long as it depends on the SDK.
32
- 3. Writes a starter spec (`spec/application.yaml`, `spec/configurator.yaml`) with one resizable, recolorable box, and switches `package.json` to the application-spec pipeline.
33
- 4. Writes `pnpm-workspace.yaml` with the pnpm settings the first install needs: the build scripts of the SDK's dependencies are allowed or denied, and `@salsita-ai/*` packages are exempt from pnpm's minimum release age. A project inside a pnpm monorepo gets no file; the workspace root holds these settings.
32
+ 3. Adds the `dev`, `build`, `deploy`, `check` and `fix` scripts to `package.json` (see [Project Scripts](#project-scripts)). A script the project already has under one of those names keeps its command.
33
+ 4. Writes a starter spec (`spec/application.yaml`, `spec/configurator.yaml`) with one resizable, recolorable box, and switches `package.json` to the application-spec pipeline.
34
+ 5. Writes `pnpm-workspace.yaml` with the pnpm settings the first install needs: the build scripts of the SDK's dependencies are allowed or denied, and `@salsita-ai/*` packages are exempt from pnpm's minimum release age. A project inside a pnpm monorepo gets no file; the workspace root holds these settings.
34
35
 
35
- It asks nothing, writes no `.env` and contacts no server. `phoenix sync` then generates every other project file, including `AGENTS.md` and the agent skills described in [Project Structure](?path=/docs/phoenix-project-structure--docs).
36
+ It asks nothing, writes no `.env` and contacts no server. `phoenix sync` then generates every other project file, including the agent skills described in [Project Structure](?path=/docs/phoenix-project-structure--docs). The `.gitignore` is among them only when the folder is inside a git repository, so run `git init` before the first sync, or sync again after it.
36
37
 
37
38
  ### Which project `phoenix dev` develops in
38
39
 
@@ -114,8 +115,6 @@ For quick local development without a server, use:
114
115
 
115
116
  ```bash
116
117
  phoenix dev --persistence local-storage
117
- # or use the shortcut script:
118
- pnpm dev:local
119
118
  ```
120
119
 
121
120
  **Important:** The server must be running before `deployment:prepare-local` when using `server` persistence mode.
@@ -158,27 +157,19 @@ spec/application.yaml → Server prepares environment → CLI writes .env.genera
158
157
 
159
158
  ### Project Scripts
160
159
 
161
- When you run `phoenix sync` or `phoenix clean`, the CLI auto-generates standardized scripts in your `package.json`. These scripts are enforced — they cannot be overridden by custom scripts with the same name.
162
-
163
- | Script | Command | Purpose |
164
- | -------------------------- | ------------------------------------------------------- | --------------------------------------------- |
165
- | `dev` | `phoenix dev` | Dev server with hot reload |
166
- | `dev:local` | `phoenix dev --persistence local-storage` | Dev without server dependency |
167
- | `build` | `phoenix build` | Production build |
168
- | `clean` | `phoenix clean` | Clean all artifacts and rebuild |
169
- | `sync` | `phoenix sync` | Sync generated code and dependencies |
170
- | `check` | `phoenix check` | Run all checks (TypeScript, ESLint, Prettier) |
171
- | `ts:check` | `phoenix check` | Alias for `check` |
172
- | `fix` | `phoenix fix` | Auto-fix lint and formatting issues |
173
- | `lint:fix` | `eslint src --fix` | ESLint fix only |
174
- | `prettify:fix` | `prettier --write .` | Prettier fix only |
175
- | `verify:fix` | `phoenix build && phoenix fix && phoenix check --types` | Build, fix, then type-check |
176
- | `test` | `vitest --passWithNoTests run` | Run tests |
177
- | `test:watch` | `vitest` | Tests in watch mode |
178
- | `prepare:ci` | `phoenix prepare:ci` | CI environment setup |
179
- | `deployment:prepare-local` | `phoenix deployment:prepare-local` | Prepare local environment |
180
-
181
- Custom scripts you add to `package.json` are preserved during sync. Deprecated scripts (like `environment:create`, `deployment:register`) are automatically removed.
160
+ `phoenix init` writes five scripts into `package.json`, each a shortcut for the CLI command of the same name:
161
+
162
+ | Script | Command | Purpose |
163
+ | -------- | ---------------- | --------------------------------------------- |
164
+ | `dev` | `phoenix dev` | Dev server with hot reload |
165
+ | `build` | `phoenix build` | Production build |
166
+ | `deploy` | `phoenix deploy` | Build and publish the project |
167
+ | `check` | `phoenix check` | Run all checks (TypeScript, ESLint, Prettier) |
168
+ | `fix` | `phoenix fix` | Auto-fix lint and formatting issues |
169
+
170
+ The scripts are yours: change, rename or delete them, and add your own. `phoenix sync` and `phoenix clean` leave the `scripts` section of `package.json` as it is, so they add no script, restore none you removed and remove none. Every CLI command also runs without a script, as `pnpm phoenix <command>`.
171
+
172
+ A project may have other scripts than these five, such as `sync`, `test` or `verify:fix`; they are its own and stay as they are. All of this holds for a project on the application-spec pipeline, which `phoenix init` selects. In a project on the legacy pipeline (see [Current and legacy project tooling](#current-and-legacy-project-tooling)), `phoenix sync` and `phoenix clean` write their own set of scripts into `package.json` on every run, over scripts of the same name.
182
173
 
183
174
  ### Server-Generated Variables
184
175
 
@@ -257,11 +248,14 @@ The frontend reads these at runtime from the generated config:
257
248
  | Variable | Required | Default |
258
249
  | -------------------------------- | -------- | ----------------------- |
259
250
  | `IS_DEV` | No | `false` (`true` in dev) |
251
+ | `ASSISTANT_STRICT_THREADS` | No | `false` |
260
252
  | `AWS_S3_PUBLIC_RESOURCES_BUCKET` | Yes | — |
261
253
  | `AWS_S3_RESOURCES_REGION` | Yes | — |
262
254
  | `DEPLOYMENT_RESOURCES_PATH` | No | `deployment-resources` |
263
255
  | Clerk vars (if enabled) | Yes | — |
264
256
 
257
+ A development environment keeps the AI assistant's conversation when the assistant setup (manifest, instructions, AI settings) changes, and applies the new setup from the next message on. Set `ASSISTANT_STRICT_THREADS=true` in `.env` to try the behavior of every other environment locally, where a changed setup locks the conversation and the next message continues it in a summarized one. The variable has no effect outside a development environment.
258
+
265
259
  ### Precedence
266
260
 
267
261
  Environment variables are resolved in this order (highest to lowest priority):
@@ -283,20 +277,20 @@ The Phoenix CLI auto-generates config files that read these variables:
283
277
 
284
278
  Starts the full development environment: Vite dev server, development webhook tunnel, domain-cli watcher, and editor WebSocket server.
285
279
 
286
- | Flag | Env Variable | Default | Description |
287
- | ---------------------- | ------------------ | -------------------- | ------------------------------------------------------------------------------- |
288
- | `--workspace` | — | from `.phoenix.json` | Override workspace mode |
289
- | `--editor` | `ENABLE_EDITOR` | `true` | Enable editor file generation |
290
- | `--editorWsPort` | `EDITOR_WS_PORT` | `3020` | Editor WebSocket port |
291
- | `--debug` | `DEBUG` | `false` | Verbose logging |
292
- | `--projectSlug` | `PROJECT_SLUG` | `local` | Project slug |
293
- | `--environmentSlug` | `ENVIRONMENT_SLUG` | package.json name | Environment slug |
294
- | `--withLingui` | `WITH_LINGUI` | `false` | Enable i18n extraction/compilation and watch i18n sources during dev |
295
- | `--persistence` | `PERSISTENCE_MODE` | `server` | Persistence mode |
296
- | `--force` / `-f` | `FORCE_REBUILD` | `false` | Force full rebuild, skip cache |
297
- | `--serverUrl` | `SERVER_URL` | the region's server | Phoenix server URL |
298
- | `--region` | `PHOENIX_REGION` | `eu` | Region of the signed-in workspace, used when no server URL is set |
299
- | `--skipUpload` / `-su` | `SKIP_UPLOAD` | `false` | Skip the S3 asset upload when the development deployment is prepared at startup |
280
+ | Flag | Env Variable | Default | Description |
281
+ | ----------------------- | ------------------ | -------------------- | ------------------------------------------------------------------------------- |
282
+ | `--workspace` | — | from `.phoenix.json` | Override workspace mode |
283
+ | `--editor` | `ENABLE_EDITOR` | `true` | Enable editor file generation |
284
+ | `--editorWsPort` | `EDITOR_WS_PORT` | `3020` | Editor WebSocket port |
285
+ | `--debug` | `DEBUG` | `false` | Verbose logging |
286
+ | `--projectSlug` | `PROJECT_SLUG` | `local` | Project slug |
287
+ | `--environmentSlug` | `ENVIRONMENT_SLUG` | package.json name | Environment slug |
288
+ | `--withLingui` | `WITH_LINGUI` | `false` | Enable i18n extraction/compilation and watch i18n sources during dev |
289
+ | `--persistence` | `PERSISTENCE_MODE` | `server` | Persistence mode |
290
+ | `--force` / `-f` | `FORCE_REBUILD` | `false` | Force full rebuild, skip cache |
291
+ | `--serverUrl` | `SERVER_URL` | the region's server | Phoenix server URL |
292
+ | `--region` | `PHOENIX_REGION` | `eu` | Region of the signed-in workspace, used when no server URL is set |
293
+ | `--skipUpload` / `--su` | `SKIP_UPLOAD` | `false` | Skip the S3 asset upload when the development deployment is prepared at startup |
300
294
 
301
295
  In `server` persistence mode the project comes from `--projectSlug`, `PROJECT_SLUG` or `project` in the spec, and the credential from `DEVELOPMENT_KEY` or the `phoenix login` sign-in; see [Starting a New Project](#starting-a-new-project). When signed in, the environment is always your own development environment and `--environmentSlug` is ignored.
302
296
 
@@ -396,6 +390,8 @@ Removes all build artifacts (`.phoenix/`, `node_modules/`), reinstalls dependenc
396
390
 
397
391
  Syncs project dependencies and regenerates all project files without building Vite bundles or webhooks. Faster than `clean` — use this for routine updates after changing spec files or upgrading dependencies. Before installing, it adds the pnpm settings `phoenix init` writes to a standalone project's `pnpm-workspace.yaml` when they are missing; values you set there are kept.
398
392
 
393
+ With the application-spec pipeline (see [Current and legacy project tooling](#current-and-legacy-project-tooling)), `.gitignore` is written only when the project is inside a git repository: the project folder or one of its parent folders holds a `.git` entry. Outside a repository, sync neither creates the file nor changes one that is already there, and the same holds for `dev`, `build` and `clean`. Run `git init` before the first sync, or sync again after it, to get the file. The legacy pipeline writes `.gitignore` in every project.
394
+
399
395
  | Flag | Env Variable | Default | Description |
400
396
  | ---------------- | --------------- | ------- | ------------------------------ |
401
397
  | `--force` / `-f` | `FORCE_REBUILD` | `false` | Force full rebuild, skip cache |
@@ -682,7 +678,7 @@ SDK-builder workspaces sign the CLI in with a personal API token instead of proj
682
678
 
683
679
  Signs the CLI in to the SDK-builder workspace `<customer>`:
684
680
 
685
- 1. Opens Studio, where you name the token and approve the sign-in (use `--no-open` to only print the link). The page shows the workspace, your account, the computer the CLI runs on and how long the link still works. The CLI suggests the name `phoenix CLI on <computer>`; change it so you can tell your machines and agents apart later.
681
+ 1. Opens Studio, where you name the token and approve the sign-in (use `--no-open` to only print the link). Only a super admin of the workspace can open its Studio, so only a super admin can sign the CLI in. The page shows the workspace, your account, the computer the CLI runs on and how long the link still works. The CLI suggests the name `phoenix CLI on <computer>`; change it so you can tell your machines and agents apart later.
686
682
  2. Studio sends a one-time code back to the CLI on `127.0.0.1`.
687
683
  3. The CLI exchanges the code for a token with the name you approved, and sends the browser back to Studio, which confirms the sign-in.
688
684
 
@@ -690,12 +686,12 @@ Signs the CLI in to the SDK-builder workspace `<customer>`:
690
686
 
691
687
  The token is stored in `~/.phoenix/credentials.json`, readable only by you, per server, together with the Studio URL of the sign-in; `PHOENIX_CREDENTIALS_FILE` moves the file. The token works until you revoke it. Signing in again to the same server revokes the token it replaces; the CLI warns if the server could not revoke it.
692
688
 
693
- | Flag | Default | Description |
694
- | --------------------- | ------------------------------------ | ------------------------------------------------ |
695
- | `--region` | `eu` | Phoenix region of the workspace: `eu` or `us` |
696
- | `--serverUrl` / `-su` | the region's server | Phoenix server URL, for a local or custom server |
697
- | `--studioUrl` | the workspace's Studio in the region | Studio URL of the workspace |
698
- | `--open` | `true` | Open the approval page in your browser |
689
+ | Flag | Default | Description |
690
+ | ---------------------- | ------------------------------------ | ------------------------------------------------ |
691
+ | `--region` | `eu` | Phoenix region of the workspace: `eu` or `us` |
692
+ | `--serverUrl` / `--su` | the region's server | Phoenix server URL, for a local or custom server |
693
+ | `--studioUrl` | the workspace's Studio in the region | Studio URL of the workspace |
694
+ | `--open` | `true` | Open the approval page in your browser |
699
695
 
700
696
  The sign-in follows the region, not the `SERVER_URL` in a project's `.env`: that variable names the server of the project's own environment. The CLI prints the server it signs in to.
701
697
 
@@ -728,7 +724,7 @@ Pass the message as the argument for a short note, or `--file` for a longer repo
728
724
  | `--agent` | — | — | Name of the coding agent that writes the feedback |
729
725
  | `--projectSlug` / `-p` | `PROJECT_SLUG` | `project` of the spec, if any | Workspace project the feedback is about |
730
726
  | `--region` | — | `eu` | Phoenix region of the workspace: `eu` or `us` |
731
- | `--serverUrl` / `-su` | — | the region's server | Phoenix server URL, for a local or custom server |
727
+ | `--serverUrl` / `--su` | — | the region's server | Phoenix server URL, for a local or custom server |
732
728
 
733
729
  A message holds at most 100,000 characters, from the argument or from the file. Besides the message and the flags, the CLI sends only the SDK version, the operating system and the Node.js version; no file of the project is attached, and the Phoenix team reads a build's sources through the build's page in Studio. The project must belong to the signed-in workspace, otherwise the server refuses the feedback; without a project, the feedback is sent on its own.
734
730