@salsita-ai/sdk 0.50.0-develop.c1dcc73e88 → 0.50.0-develop.c33986dc44

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 (1225) hide show
  1. package/README.md +19 -14
  2. package/dist/admin/default-admin-elements.d.ts +9 -0
  3. package/dist/admin/default-admin-elements.js +1 -0
  4. package/dist/admin/default-elements/built-in-entity-element.d.ts +10 -0
  5. package/dist/admin/default-elements/built-in-entity-element.js +1 -0
  6. package/dist/admin/default-elements/built-in-layout-element.d.ts +10 -0
  7. package/dist/admin/default-elements/built-in-layout-element.js +1 -0
  8. package/dist/admin/default-elements/index.d.ts +2 -0
  9. package/dist/admin/default-elements/index.js +1 -0
  10. package/dist/admin/index.d.ts +1 -0
  11. package/dist/admin/index.js +1 -1
  12. package/dist/application/index.d.ts +1 -0
  13. package/dist/application/index.js +1 -1
  14. package/dist/application/mount-application.d.ts +1 -1
  15. package/dist/application/mount-application.js +1 -1
  16. package/dist/application/mount-configurator.d.ts +19 -0
  17. package/dist/application/mount-configurator.js +1 -0
  18. package/dist/application/mounted-application-runtime.d.ts +4 -0
  19. package/dist/application/mounted-application-runtime.js +1 -0
  20. package/dist/application/register-web-component.d.ts +2 -0
  21. package/dist/application/register-web-component.js +1 -0
  22. package/dist/application-spec/caching/content-diff.js +1 -1
  23. package/dist/application-spec/core/application-file.d.ts +0 -2
  24. package/dist/application-spec/core/application-file.js +1 -1
  25. package/dist/application-spec/core/components/component-filter.d.ts +53 -0
  26. package/dist/application-spec/core/components/component-filter.js +1 -0
  27. package/dist/application-spec/core/components/index.d.ts +2 -0
  28. package/dist/application-spec/core/components/index.js +1 -0
  29. package/dist/application-spec/core/components/sdk-code-ref.d.ts +9 -0
  30. package/dist/application-spec/core/components/sdk-code-ref.js +1 -0
  31. package/dist/application-spec/core/enhanced-json-value.d.ts +0 -68
  32. package/dist/application-spec/core/enhanced-json-value.js +1 -1
  33. package/dist/application-spec/core/expressions/index.d.ts +2 -0
  34. package/dist/application-spec/core/expressions/index.js +1 -0
  35. package/dist/application-spec/core/expressions/relation-expression-params.d.ts +11 -0
  36. package/dist/application-spec/core/expressions/relation-expression-params.js +1 -0
  37. package/dist/application-spec/core/expressions/sdk-expression-implementation.d.ts +24 -0
  38. package/dist/application-spec/core/expressions/sdk-expression-implementation.js +1 -0
  39. package/dist/application-spec/core/index.d.ts +2 -0
  40. package/dist/application-spec/core/index.js +1 -1
  41. package/dist/application-spec/core/json-value.d.ts +1 -1
  42. package/dist/application-spec/{core → enhanced-json}/eval-to-constant.d.ts +1 -1
  43. package/dist/application-spec/enhanced-json/index.d.ts +4 -0
  44. package/dist/application-spec/enhanced-json/index.js +1 -0
  45. package/dist/application-spec/enhanced-json/is-enhanced-json-array.d.ts +2 -0
  46. package/dist/application-spec/enhanced-json/is-enhanced-json-array.js +1 -0
  47. package/dist/application-spec/enhanced-json/resolve-enhanced-json-value.d.ts +18 -0
  48. package/dist/application-spec/enhanced-json/resolve-enhanced-json-value.js +1 -0
  49. package/dist/application-spec/enhanced-json/schema-from-value.d.ts +24 -0
  50. package/dist/application-spec/enhanced-json/schema-from-value.js +1 -0
  51. package/dist/application-spec/enhanced-json/stringify-enhanced-json-value.d.ts +14 -0
  52. package/dist/application-spec/enhanced-json/stringify-enhanced-json-value.js +1 -0
  53. package/dist/application-spec/enhanced-json/validate-enhanced-json-value-caps.d.ts +12 -0
  54. package/dist/application-spec/enhanced-json/validate-enhanced-json-value-caps.js +1 -0
  55. package/dist/application-spec/enhanced-json/validate-no-legacy-code-ref.d.ts +13 -0
  56. package/dist/application-spec/enhanced-json/validate-no-legacy-code-ref.js +1 -0
  57. package/dist/application-spec/errors/diagnostic-codes.d.ts +18 -0
  58. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  59. package/dist/application-spec/errors/diagnostic-messages.d.ts +22 -1
  60. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  61. package/dist/application-spec/generate-application/code/common/code-imports.js +1 -1
  62. package/dist/application-spec/generate-application/code/common/env-reader.js +2 -2
  63. package/dist/application-spec/generate-application/code/common/index.d.ts +1 -0
  64. package/dist/application-spec/generate-application/code/common/index.js +1 -1
  65. package/dist/application-spec/generate-application/code/common/single-quoted-string.d.ts +6 -0
  66. package/dist/application-spec/generate-application/code/common/single-quoted-string.js +1 -0
  67. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  68. package/dist/application-spec/generate-application/code/generate-application-code.d.ts +3 -2
  69. package/dist/application-spec/generate-application/code/generate-application-code.js +1 -1
  70. package/dist/application-spec/generate-application/code/project-scaffolding.d.ts +15 -14
  71. package/dist/application-spec/generate-application/code/project-scaffolding.js +2 -2
  72. package/dist/application-spec/generate-application/code/standalone-app-files.d.ts +2 -2
  73. package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
  74. package/dist/application-spec/generate-application/code/story-files.js +1 -1
  75. package/dist/application-spec/generate-application/code/templates/admin-config.js +3 -0
  76. package/dist/application-spec/generate-application/code/templates/application-types.js +6 -6
  77. package/dist/application-spec/generate-application/code/templates/common/doc-comment.d.ts +2 -0
  78. package/dist/application-spec/generate-application/code/templates/common/doc-comment.js +1 -0
  79. package/dist/application-spec/generate-application/code/templates/common/format-property-key.d.ts +7 -0
  80. package/dist/application-spec/generate-application/code/templates/common/format-property-key.js +1 -0
  81. package/dist/application-spec/generate-application/code/templates/common/schema-to-type-string.js +3 -3
  82. package/dist/application-spec/generate-application/code/templates/configurator-config.js +6 -4
  83. package/dist/application-spec/generate-application/code/templates/configurator-globals.d.ts +2 -1
  84. package/dist/application-spec/generate-application/code/templates/configurator-globals.js +19 -6
  85. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +35 -0
  86. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +5 -0
  87. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.d.ts +1 -0
  88. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.js +1 -0
  89. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.d.ts +1 -1
  90. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.js +7 -7
  91. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.js +1 -1
  92. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +67 -70
  93. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.d.ts +8 -0
  94. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.js +1 -1
  95. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +3 -0
  96. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-presets.js +1 -1
  97. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.js +13 -13
  98. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.d.ts +1 -1
  99. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.js +2 -2
  100. package/dist/application-spec/generate-application/code/templates/domain-spec/index.d.ts +2 -1
  101. package/dist/application-spec/generate-application/code/templates/domain-spec/index.js +1 -1
  102. package/dist/application-spec/generate-application/code/templates/eslint-config.d.ts +5 -0
  103. package/dist/application-spec/generate-application/code/templates/eslint-config.js +4 -5
  104. package/dist/application-spec/generate-application/code/templates/frontend-config.js +3 -5
  105. package/dist/application-spec/generate-application/code/templates/gitignore.js +0 -3
  106. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +7 -7
  107. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +12 -0
  108. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -0
  109. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.d.ts +43 -0
  110. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +33 -0
  111. package/dist/application-spec/generate-application/code/templates/global-definition/index.d.ts +2 -0
  112. package/dist/application-spec/generate-application/code/templates/global-definition/index.js +1 -1
  113. package/dist/application-spec/generate-application/code/templates/globals.js +24 -43
  114. package/dist/application-spec/generate-application/code/templates/index.d.ts +3 -3
  115. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  116. package/dist/application-spec/generate-application/code/templates/lingui-rc.d.ts +5 -0
  117. package/dist/application-spec/generate-application/code/templates/lingui-rc.js +4 -4
  118. package/dist/application-spec/generate-application/code/templates/prettier-config.d.ts +5 -0
  119. package/dist/application-spec/generate-application/code/templates/prettier-config.js +4 -5
  120. package/dist/application-spec/generate-application/code/templates/root-tsconfig.d.ts +6 -0
  121. package/dist/application-spec/generate-application/code/templates/root-tsconfig.js +2 -0
  122. package/dist/application-spec/generate-application/code/templates/skills/phoenix-cli-skill.js +1 -1
  123. package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.js +1 -1
  124. package/dist/application-spec/generate-application/code/templates/skills/phoenix-feedback-skill.js +5 -5
  125. package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.js +9 -3
  126. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.js +1 -1
  127. package/dist/application-spec/generate-application/code/templates/skills/phoenix-variants-skill.js +2 -2
  128. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +33 -7
  129. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +2 -2
  130. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.d.ts +58 -0
  131. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.js +1 -0
  132. package/dist/application-spec/generate-application/code/templates/spec-code/index.d.ts +2 -0
  133. package/dist/application-spec/generate-application/code/templates/spec-code/index.js +1 -0
  134. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.d.ts +18 -0
  135. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.js +41 -0
  136. package/dist/application-spec/generate-application/code/templates/spec-messages/index.d.ts +1 -0
  137. package/dist/application-spec/generate-application/code/templates/spec-messages/index.js +1 -0
  138. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.d.ts +20 -0
  139. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.js +6 -0
  140. package/dist/application-spec/generate-application/code/templates/story/phx-module.d.ts +8 -2
  141. package/dist/application-spec/generate-application/code/templates/story/phx-module.js +15 -3
  142. package/dist/application-spec/generate-application/code/templates/story/wrapper.d.ts +3 -0
  143. package/dist/application-spec/generate-application/code/templates/story/wrapper.js +2 -1
  144. package/dist/application-spec/generate-application/code/templates/tsconfig.d.ts +5 -0
  145. package/dist/application-spec/generate-application/code/templates/tsconfig.js +1 -1
  146. package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +6 -1
  147. package/dist/application-spec/generate-application/code/templates/webhook-index.js +10 -1
  148. package/dist/application-spec/generate-application/code/templates/webhooks-config.js +2 -3
  149. package/dist/application-spec/generate-application/implementations/phx-application-types.d.ts +25 -0
  150. package/dist/application-spec/generate-application/implementations/phx-application-types.js +1 -0
  151. package/dist/application-spec/generate-application/implementations/phx-domain.d.ts +36 -0
  152. package/dist/application-spec/generate-application/implementations/phx-domain.js +1 -0
  153. package/dist/application-spec/generate-application/implementations/phx-model.d.ts +24 -0
  154. package/dist/application-spec/generate-application/implementations/phx-model.js +1 -0
  155. package/dist/application-spec/generate-application/implementations/phx.d.ts +22 -0
  156. package/dist/application-spec/generate-application/implementations/phx.js +1 -0
  157. package/dist/application-spec/generate-application/index.d.ts +4 -0
  158. package/dist/application-spec/generate-application/index.js +1 -1
  159. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.d.ts +6 -4
  160. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.js +1 -1
  161. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.d.ts +12 -4
  162. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.js +1 -1
  163. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.d.ts +16 -0
  164. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.js +1 -0
  165. package/dist/application-spec/generate-application/runtime/admin-runtime/states-runtime.d.ts +2 -2
  166. package/dist/application-spec/generate-application/runtime/application-runtime.d.ts +35 -8
  167. package/dist/application-spec/generate-application/runtime/application-runtime.js +1 -1
  168. package/dist/application-spec/generate-application/runtime/application-spec-slice.d.ts +71 -0
  169. package/dist/application-spec/generate-application/runtime/application-spec-slice.js +1 -0
  170. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.d.ts +7 -5
  171. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.js +1 -1
  172. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.d.ts +12 -5
  173. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.js +1 -1
  174. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.d.ts +16 -0
  175. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.js +1 -0
  176. package/dist/application-spec/generate-application/runtime/configurator-runtime/states-runtime.d.ts +2 -2
  177. package/dist/application-spec/generate-application/runtime/create-application.d.ts +57 -0
  178. package/dist/application-spec/generate-application/runtime/create-application.js +1 -0
  179. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.d.ts +43 -0
  180. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.js +1 -0
  181. package/dist/application-spec/generate-application/runtime/factory-data/index.d.ts +3 -0
  182. package/dist/application-spec/generate-application/runtime/factory-data/index.js +1 -0
  183. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.d.ts +13 -0
  184. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.js +1 -0
  185. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.d.ts +16 -0
  186. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.js +1 -0
  187. package/dist/application-spec/generate-application/runtime/index.d.ts +8 -0
  188. package/dist/application-spec/generate-application/runtime/index.js +1 -0
  189. package/dist/application-spec/generate-application/runtime/migrations/index.d.ts +1 -0
  190. package/dist/application-spec/generate-application/runtime/migrations/index.js +1 -0
  191. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.d.ts +53 -0
  192. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.js +1 -0
  193. package/dist/application-spec/generate-application/runtime/sections/assistant-runtime.d.ts +2 -2
  194. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.d.ts +3 -2
  195. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.js +1 -1
  196. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.d.ts +2 -1
  197. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.js +1 -1
  198. package/dist/application-spec/generate-application/runtime/sections/component-optic.d.ts +3 -0
  199. package/dist/application-spec/generate-application/runtime/sections/component-optic.js +1 -1
  200. package/dist/application-spec/generate-application/runtime/sections/data-runtime.d.ts +4 -4
  201. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.d.ts +15 -6
  202. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +1 -1
  203. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.d.ts +9 -5
  204. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.js +1 -1
  205. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.d.ts +3 -1
  206. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.js +1 -1
  207. package/dist/application-spec/generate-application/runtime/sections/theme-runtime.d.ts +2 -2
  208. package/dist/application-spec/generate-application/runtime/sections/transformers-runtime.d.ts +3 -3
  209. package/dist/application-spec/generate-application/runtime/spec-code/index.d.ts +2 -0
  210. package/dist/application-spec/generate-application/runtime/spec-code/index.js +1 -0
  211. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.d.ts +18 -0
  212. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.js +1 -0
  213. package/dist/application-spec/generate-application/runtime/spec-code/spec-code-module.d.ts +17 -0
  214. package/dist/application-spec/generate-application/runtime/spec-code/spec-code-module.js +1 -0
  215. package/dist/application-spec/generate-application/runtime/spec-runtime.d.ts +21 -0
  216. package/dist/application-spec/generate-application/runtime/spec-runtime.js +1 -0
  217. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.d.ts +9 -0
  218. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.js +1 -0
  219. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.d.ts +8 -0
  220. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.js +1 -0
  221. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.d.ts +28 -0
  222. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.js +1 -0
  223. package/dist/application-spec/generate-application/runtime-spec/index.d.ts +5 -0
  224. package/dist/application-spec/generate-application/runtime-spec/index.js +1 -0
  225. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.d.ts +103 -0
  226. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.js +1 -0
  227. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.d.ts +40 -0
  228. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.js +1 -0
  229. package/dist/application-spec/index.d.ts +1 -0
  230. package/dist/application-spec/index.js +1 -1
  231. package/dist/application-spec/parse-application-files/categorize/categorize-files.d.ts +34 -0
  232. package/dist/application-spec/parse-application-files/categorize/categorize-files.js +1 -1
  233. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.d.ts +16 -0
  234. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.js +9 -0
  235. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.d.ts +9 -0
  236. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.js +1 -0
  237. package/dist/application-spec/parse-application-files/categorize/module-analysis.d.ts +1 -1
  238. package/dist/application-spec/parse-application-files/categorize/module-analysis.js +1 -1
  239. package/dist/application-spec/parse-application-files/raw-spec/parse-yaml-spec-file.js +1 -1
  240. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +47 -4
  241. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  242. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
  243. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-spec.js +1 -1
  244. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.js +1 -1
  245. package/dist/application-spec/parse-application-files/spec/common/index.d.ts +1 -0
  246. package/dist/application-spec/parse-application-files/spec/common/index.js +1 -1
  247. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.d.ts +3 -0
  248. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.js +1 -0
  249. package/dist/application-spec/parse-application-files/spec/common/value-type/index.d.ts +5 -0
  250. package/dist/application-spec/parse-application-files/spec/common/value-type/index.js +1 -0
  251. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.d.ts +6 -0
  252. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.js +1 -0
  253. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.d.ts +8 -0
  254. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.js +1 -0
  255. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.d.ts +10 -0
  256. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.js +1 -0
  257. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.d.ts +98 -0
  258. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.js +1 -0
  259. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.d.ts +13 -0
  260. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.js +1 -0
  261. package/dist/application-spec/parse-application-files/spec/components/bindings/index.d.ts +2 -0
  262. package/dist/application-spec/parse-application-files/spec/components/bindings/index.js +1 -1
  263. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.d.ts +24 -0
  264. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.js +1 -0
  265. package/dist/application-spec/parse-application-files/spec/components/component-entry.d.ts +1 -9
  266. package/dist/application-spec/parse-application-files/spec/components/component-entry.js +1 -1
  267. package/dist/application-spec/parse-application-files/spec/components/component-filter.d.ts +1 -54
  268. package/dist/application-spec/parse-application-files/spec/components/component-filter.js +1 -1
  269. package/dist/application-spec/parse-application-files/spec/components/component-state-type.d.ts +8 -0
  270. package/dist/application-spec/parse-application-files/spec/components/component-state-type.js +1 -0
  271. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.d.ts +13 -0
  272. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.js +1 -0
  273. package/dist/application-spec/parse-application-files/spec/components/index.d.ts +1 -1
  274. package/dist/application-spec/parse-application-files/spec/components/index.js +1 -1
  275. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.d.ts +14 -0
  276. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.js +1 -0
  277. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.d.ts +6 -0
  278. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.js +1 -1
  279. package/dist/application-spec/parse-application-files/spec/components/user-components.d.ts +7 -4
  280. package/dist/application-spec/parse-application-files/spec/components/user-components.js +1 -1
  281. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.d.ts +24 -0
  282. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.js +1 -0
  283. package/dist/application-spec/parse-application-files/spec/expressions/expression-read.d.ts +13 -0
  284. package/dist/application-spec/parse-application-files/spec/expressions/expression-read.js +1 -0
  285. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.d.ts +9 -0
  286. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.js +1 -0
  287. package/dist/application-spec/parse-application-files/spec/expressions/expression.d.ts +1 -28
  288. package/dist/application-spec/parse-application-files/spec/expressions/expression.js +1 -1
  289. package/dist/application-spec/parse-application-files/spec/expressions/expressions.d.ts +7 -3
  290. package/dist/application-spec/parse-application-files/spec/expressions/expressions.js +1 -1
  291. package/dist/application-spec/parse-application-files/spec/expressions/index.d.ts +0 -1
  292. package/dist/application-spec/parse-application-files/spec/expressions/index.js +1 -1
  293. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.js +1 -1
  294. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.d.ts +3 -1
  295. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
  296. package/dist/application-spec/parse-application-files/spec/invariants/invariants.d.ts +2 -2
  297. package/dist/application-spec/parse-application-files/spec/invariants/invariants.js +1 -1
  298. package/dist/application-spec/parse-application-files/spec/model/defaults.js +1 -1
  299. package/dist/application-spec/parse-application-files/spec/model/index.d.ts +1 -0
  300. package/dist/application-spec/parse-application-files/spec/model/index.js +1 -1
  301. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.d.ts +10 -0
  302. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.js +1 -0
  303. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +9 -0
  304. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -0
  305. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +4 -1
  306. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  307. package/dist/client/phoenix-api.d.ts +463 -0
  308. package/dist/configurator/ConfiguratorApp.js +1 -1
  309. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.d.ts +2 -0
  310. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.js +5 -0
  311. package/dist/configurator/app-loader-content/index.d.ts +1 -0
  312. package/dist/configurator/app-loader-content/index.js +1 -0
  313. package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
  314. package/dist/configurator/application-runtime/extensions/selectors.d.ts +3 -1
  315. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  316. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +41 -3
  317. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  318. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +39 -7
  319. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  320. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +1 -1
  321. package/dist/configurator/application-runtime/extensions/systems/canvas-system.d.ts +8 -0
  322. package/dist/configurator/application-runtime/extensions/systems/canvas-system.js +1 -1
  323. package/dist/configurator/application-runtime/extensions/systems/drag-and-drop-system/drag-and-drop-system.d.ts +3 -3
  324. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.d.ts +8 -0
  325. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.js +1 -0
  326. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +23 -1
  327. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  328. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.d.ts +12 -0
  329. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.js +1 -0
  330. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +14 -1
  331. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  332. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +64 -7
  333. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  334. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.d.ts +11 -0
  335. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.js +1 -0
  336. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +14 -5
  337. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  338. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +1 -1
  339. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.d.ts +2 -2
  340. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.js +1 -1
  341. package/dist/configurator/common/configurator-interface.d.ts +141 -5
  342. package/dist/configurator/common/configurator-interface.js +1 -1
  343. package/dist/configurator/common/index.d.ts +3 -1
  344. package/dist/configurator/common/index.js +1 -1
  345. package/dist/configurator/common/use-reset-camera.d.ts +6 -0
  346. package/dist/configurator/common/use-reset-camera.js +1 -0
  347. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.d.ts +5 -0
  348. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.js +1 -0
  349. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.d.ts +6 -0
  350. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.js +1 -0
  351. package/dist/configurator/configuration-not-found-page/index.d.ts +2 -0
  352. package/dist/configurator/configuration-not-found-page/index.js +1 -0
  353. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.d.ts +12 -0
  354. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.js +1 -0
  355. package/dist/configurator/configurator-context/PresetSelectionProvider.js +1 -1
  356. package/dist/configurator/configurator-context/PreviewContextProvider.js +1 -1
  357. package/dist/configurator/configurator-context/ViewportStateSync.d.ts +2 -2
  358. package/dist/configurator/configurator-context/ViewportStateSync.js +1 -1
  359. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.d.ts +11 -1
  360. package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.js +1 -1
  361. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.d.ts +6 -0
  362. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.js +1 -0
  363. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.d.ts +7 -0
  364. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.js +1 -0
  365. package/dist/configurator/configurator-error-page/index.d.ts +2 -0
  366. package/dist/configurator/configurator-error-page/index.js +1 -0
  367. package/dist/configurator/index.d.ts +10 -0
  368. package/dist/configurator/index.js +1 -1
  369. package/dist/configurator/pages/ConfiguratorErrorPage.d.ts +0 -1
  370. package/dist/configurator/pages/ConfiguratorErrorPage.js +1 -1
  371. package/dist/configurator/pages/ConfiguratorNotFoundPage.js +1 -1
  372. package/dist/configurator/pages/DefaultConfiguratorLayout.d.ts +3 -2
  373. package/dist/configurator/pages/DefaultNotAuthenticatedPage.d.ts +8 -0
  374. package/dist/configurator/pages/DefaultNotAuthenticatedPage.js +1 -0
  375. package/dist/configurator/pages/DefaultPresetUi.d.ts +7 -0
  376. package/dist/configurator/pages/DefaultPresetUi.js +1 -0
  377. package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
  378. package/dist/configurator/pages/NewConfiguratorPage.js +1 -1
  379. package/dist/configurator/pages/PresetCreationErrorPage.d.ts +1 -1
  380. package/dist/configurator/pages/PresetCreationErrorPage.js +1 -1
  381. package/dist/configurator/pages/RootPage.js +1 -1
  382. package/dist/configurator/pages/configurator-layout-name.d.ts +2 -0
  383. package/dist/configurator/pages/configurator-layout-name.js +1 -0
  384. package/dist/configurator/pages/default-configurator-elements.d.ts +13 -0
  385. package/dist/configurator/pages/default-configurator-elements.js +1 -0
  386. package/dist/configurator/pages/default-elements/built-in-entity-element.d.ts +10 -0
  387. package/dist/configurator/pages/default-elements/built-in-entity-element.js +1 -0
  388. package/dist/configurator/pages/default-elements/built-in-layout-element.d.ts +10 -0
  389. package/dist/configurator/pages/default-elements/built-in-layout-element.js +1 -0
  390. package/dist/configurator/pages/default-elements/domain-control-elements.d.ts +6 -0
  391. package/dist/configurator/pages/default-elements/domain-control-elements.js +1 -0
  392. package/dist/configurator/pages/default-elements/index.d.ts +5 -0
  393. package/dist/configurator/pages/default-elements/index.js +1 -0
  394. package/dist/configurator/pages/default-elements/recipe-panel-elements.d.ts +3 -0
  395. package/dist/configurator/pages/default-elements/recipe-panel-elements.js +1 -0
  396. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.d.ts +3 -0
  397. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.js +1 -0
  398. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.d.ts +3 -0
  399. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.js +1 -0
  400. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.d.ts +3 -0
  401. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.js +1 -0
  402. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.d.ts +3 -0
  403. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.js +1 -0
  404. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.d.ts +3 -0
  405. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.js +1 -0
  406. package/dist/configurator/pages/default-elements/scene-controls/index.d.ts +6 -0
  407. package/dist/configurator/pages/default-elements/scene-controls/index.js +1 -0
  408. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.d.ts +6 -0
  409. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.js +1 -0
  410. package/dist/configurator/pages/default-elements/sidebar-footer-elements.d.ts +7 -0
  411. package/dist/configurator/pages/default-elements/sidebar-footer-elements.js +1 -0
  412. package/dist/configurator/pages/default-elements/toolbar-elements.d.ts +7 -0
  413. package/dist/configurator/pages/default-elements/toolbar-elements.js +1 -0
  414. package/dist/configurator/pages/error-boundaries/GeneralErrorBoundary.js +1 -1
  415. package/dist/configurator/pages/error-boundaries/LoadingErrorBoundary.js +1 -1
  416. package/dist/configurator/pages/index.d.ts +1 -0
  417. package/dist/configurator/pages/index.js +1 -1
  418. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.d.ts +4 -0
  419. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.js +1 -0
  420. package/dist/configurator/preset-screen-elements/PresetPageActionElement.d.ts +4 -0
  421. package/dist/configurator/preset-screen-elements/PresetPageActionElement.js +1 -0
  422. package/dist/configurator/preset-screen-elements/index.d.ts +2 -0
  423. package/dist/configurator/preset-screen-elements/index.js +1 -0
  424. package/dist/configurator/scene/index.d.ts +1 -0
  425. package/dist/configurator/scene/index.js +1 -1
  426. package/dist/configurator/scene/scene-controls/DeleteEntityFab.js +1 -1
  427. package/dist/configurator/scene/scene-controls/SelectionHotspot.js +1 -1
  428. package/dist/configurator/scene/scene-controls/ToolFab.d.ts +4 -0
  429. package/dist/configurator/scene/scene-controls/ToolFab.js +1 -1
  430. package/dist/configurator/scene/scene-controls/hotspot-drag-handle/HotspotDragHandle.d.ts +1 -1
  431. package/dist/configurator/scene/scene-controls/hotspot-drag-handle/HotspotDragSceneHandle.d.ts +1 -1
  432. package/dist/configurator/scene/scene-controls/use-scene-control-tooltip.d.ts +2 -1
  433. package/dist/configurator/scene/scene-entity/dimension-indicators/DimensionIndicator.d.ts +1 -1
  434. package/dist/configurator/scene/scene-entity/dimension-indicators/DimensionIndicatorInternal.d.ts +1 -1
  435. package/dist/configurator/scene/scene-entity/drag-and-drop/shared.d.ts +2 -2
  436. package/dist/configurator/scene/scene-entity/drag-and-drop/use-drag-object.d.ts +1 -1
  437. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.js +1 -1
  438. package/dist/configurator/scene/scene-entity/objects/SceneEntityObjectTextDecal.d.ts +1 -1
  439. package/dist/configurator/scene/scene-entity/scene-controls/SceneEntityHtmlHotspots.js +1 -1
  440. package/dist/configurator/toolbar-actions/index.d.ts +3 -0
  441. package/dist/configurator/toolbar-actions/index.js +1 -0
  442. package/dist/configurator/toolbar-actions/use-assistant-panel.d.ts +18 -0
  443. package/dist/configurator/toolbar-actions/use-assistant-panel.js +1 -0
  444. package/dist/configurator/toolbar-actions/use-measurements.d.ts +35 -0
  445. package/dist/configurator/toolbar-actions/use-measurements.js +1 -0
  446. package/dist/configurator/toolbar-actions/use-toolbar-actions.d.ts +100 -0
  447. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -0
  448. package/dist/configurator/toolbar-actions/use-toolbar-help.d.ts +7 -0
  449. package/dist/configurator/toolbar-actions/use-toolbar-help.js +1 -0
  450. package/dist/configurator/ui/assistant/AssistantChips.d.ts +10 -3
  451. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  452. package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +7 -2
  453. package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -1
  454. package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
  455. package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
  456. package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +8 -0
  457. package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -0
  458. package/dist/configurator/ui/assistant/alert/index.d.ts +2 -0
  459. package/dist/configurator/ui/assistant/alert/index.js +1 -0
  460. package/dist/configurator/ui/assistant/alert/remark-alerts.d.ts +10 -0
  461. package/dist/configurator/ui/assistant/alert/remark-alerts.js +1 -0
  462. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.d.ts +13 -0
  463. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.js +1 -0
  464. package/dist/configurator/ui/assistant/entity-link/entity-link-selection.d.ts +22 -0
  465. package/dist/configurator/ui/assistant/entity-link/entity-link-selection.js +1 -0
  466. package/dist/configurator/ui/assistant/entity-link/entity-link-state.d.ts +27 -0
  467. package/dist/configurator/ui/assistant/entity-link/entity-link-state.js +1 -0
  468. package/dist/configurator/ui/assistant/entity-link/index.d.ts +2 -0
  469. package/dist/configurator/ui/assistant/entity-link/index.js +1 -0
  470. package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +19 -0
  471. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -0
  472. package/dist/configurator/ui/assistant/form/compose-answer.d.ts +11 -0
  473. package/dist/configurator/ui/assistant/form/compose-answer.js +1 -0
  474. package/dist/configurator/ui/assistant/form/describe-build-errors.d.ts +6 -0
  475. package/dist/configurator/ui/assistant/form/describe-build-errors.js +1 -0
  476. package/dist/configurator/ui/assistant/form/form-model.d.ts +37 -0
  477. package/dist/configurator/ui/assistant/form/form-model.js +1 -0
  478. package/dist/configurator/ui/assistant/form/form-state.d.ts +4 -0
  479. package/dist/configurator/ui/assistant/form/form-state.js +1 -0
  480. package/dist/configurator/ui/assistant/form/index.d.ts +4 -0
  481. package/dist/configurator/ui/assistant/form/index.js +1 -0
  482. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +10 -0
  483. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -0
  484. package/dist/configurator/ui/assistant/form/read-form-attributes.d.ts +13 -0
  485. package/dist/configurator/ui/assistant/form/read-form-attributes.js +1 -0
  486. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +3 -0
  487. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -0
  488. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +31 -0
  489. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.js +1 -0
  490. package/dist/configurator/ui/assistant/form/registry/form-element-definition.d.ts +16 -0
  491. package/dist/configurator/ui/assistant/form/registry/form-element-definition.js +1 -0
  492. package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +31 -0
  493. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -0
  494. package/dist/configurator/ui/assistant/form/registry/index.d.ts +6 -0
  495. package/dist/configurator/ui/assistant/form/registry/index.js +1 -0
  496. package/dist/configurator/ui/assistant/form/registry/use-form-registry.d.ts +8 -0
  497. package/dist/configurator/ui/assistant/form/registry/use-form-registry.js +1 -0
  498. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +9 -0
  499. package/dist/configurator/ui/assistant/form-elements/FormCard.js +1 -0
  500. package/dist/configurator/ui/assistant/form-elements/FormConfirm.d.ts +9 -0
  501. package/dist/configurator/ui/assistant/form-elements/FormConfirm.js +1 -0
  502. package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +6 -0
  503. package/dist/configurator/ui/assistant/form-elements/FormGroup.js +1 -0
  504. package/dist/configurator/ui/assistant/form-elements/FormNumber.d.ts +9 -0
  505. package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -0
  506. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +6 -0
  507. package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -0
  508. package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +6 -0
  509. package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -0
  510. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +10 -0
  511. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +1 -0
  512. package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +6 -0
  513. package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -0
  514. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.d.ts +10 -0
  515. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.js +1 -0
  516. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +38 -0
  517. package/dist/configurator/ui/assistant/form-elements/form-element-props.js +1 -0
  518. package/dist/configurator/ui/assistant/form-elements/index.d.ts +9 -0
  519. package/dist/configurator/ui/assistant/form-elements/index.js +1 -0
  520. package/dist/configurator/ui/assistant/index.d.ts +3 -0
  521. package/dist/configurator/ui/assistant/index.js +1 -1
  522. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.d.ts +16 -0
  523. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -0
  524. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.d.ts +34 -0
  525. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.js +1 -0
  526. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +25 -0
  527. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -0
  528. package/dist/configurator/ui/assistant/reference-link/index.d.ts +3 -0
  529. package/dist/configurator/ui/assistant/reference-link/index.js +1 -0
  530. package/dist/configurator/ui/assistant/reference-link/reference-styles.d.ts +12 -0
  531. package/dist/configurator/ui/assistant/reference-link/reference-styles.js +1 -0
  532. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.d.ts +8 -0
  533. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.js +1 -0
  534. package/dist/configurator/ui/assistant/resource-image/AssistantImage.d.ts +9 -0
  535. package/dist/configurator/ui/assistant/resource-image/AssistantImage.js +1 -0
  536. package/dist/configurator/ui/assistant/resource-image/index.d.ts +3 -0
  537. package/dist/configurator/ui/assistant/resource-image/index.js +1 -0
  538. package/dist/configurator/ui/assistant/resource-image/resource-path.d.ts +2 -0
  539. package/dist/configurator/ui/assistant/resource-image/resource-path.js +1 -0
  540. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.d.ts +5 -0
  541. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.js +1 -0
  542. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +9 -0
  543. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -0
  544. package/dist/configurator/ui/assistant/screenshots/index.d.ts +2 -0
  545. package/dist/configurator/ui/assistant/screenshots/index.js +1 -0
  546. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +14 -0
  547. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -0
  548. package/dist/configurator/ui/assistant/streamed-markdown.d.ts +4 -2
  549. package/dist/configurator/ui/assistant/streamed-markdown.js +2 -2
  550. package/dist/configurator/ui/assistant/thread-items.d.ts +8 -1
  551. package/dist/configurator/ui/assistant/thread-items.js +1 -1
  552. package/dist/configurator/ui/assistant/tool-chip.js +1 -1
  553. package/dist/configurator/ui/assistant/use-follow-stream.js +1 -1
  554. package/dist/configurator/ui/configurator-layout/sidebar-keys/index.d.ts +1 -0
  555. package/dist/configurator/ui/configurator-layout/sidebar-keys/index.js +1 -0
  556. package/dist/configurator/ui/configurator-layout/sidebar-keys/sidebar-keys.d.ts +11 -0
  557. package/dist/configurator/ui/configurator-layout/sidebar-keys/sidebar-keys.js +1 -0
  558. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  559. package/dist/configurator/ui/configurator-layout/slots/canvas/SharedCanvas.js +1 -1
  560. package/dist/configurator/ui/configurator-layout/{universal → slots/desktop-sidebar}/DesktopSidebar.d.ts +23 -14
  561. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +16 -0
  562. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/index.d.ts +1 -0
  563. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/index.js +1 -0
  564. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.d.ts +1 -1
  565. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.js +1 -1
  566. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.d.ts +4 -4
  567. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.js +1 -1
  568. package/dist/configurator/ui/configurator-layout/slots/services/Services.js +1 -1
  569. package/dist/configurator/ui/configurator-layout/slots/services/SideEffects.d.ts +3 -6
  570. package/dist/configurator/ui/configurator-layout/slots/services/SideEffects.js +1 -1
  571. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.d.ts +1 -1
  572. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.js +1 -1
  573. package/dist/configurator/ui/configurator-layout/slots/slots.d.ts +1 -0
  574. package/dist/configurator/ui/configurator-layout/slots/slots.js +1 -1
  575. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.d.ts +1 -1
  576. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.js +2 -2
  577. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.d.ts +5 -0
  578. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.js +1 -0
  579. package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
  580. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.d.ts +1 -1
  581. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -1
  582. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.d.ts +1 -1
  583. package/dist/configurator/ui/index.d.ts +1 -0
  584. package/dist/configurator/ui/index.js +1 -1
  585. package/dist/configurator/ui/legacy/layout/common/CommonFinalizeButton.js +1 -1
  586. package/dist/configurator/ui/legacy/layout/common/CommonSummaryButton.js +1 -1
  587. package/dist/configurator/ui/legacy/layout/common/CommonTopNavigation.js +1 -1
  588. package/dist/configurator/ui/legacy/layout/common/ReactiveInterfaceLayout.js +1 -1
  589. package/dist/configurator/ui/legacy/layout/common/ResponsiveFinalizeButton.js +1 -1
  590. package/dist/configurator/ui/legacy/layout/common/SummaryReadLayout.js +1 -1
  591. package/dist/configurator/ui/legacy/layout/simple/SimpleOwnerLayout.js +1 -1
  592. package/dist/configurator/ui/legacy/layout/simple/SimpleTopNavigation.js +1 -1
  593. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.d.ts +2 -2
  594. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.js +1 -1
  595. package/dist/configurator/ui/legacy/layout/steps/StepsOwnerLayout.js +1 -1
  596. package/dist/configurator/ui/legacy/layout/steps/StepsSidebarFooter.js +1 -1
  597. package/dist/configurator/ui/legacy/layout/tabs/TabsOwnerLayout.js +1 -1
  598. package/dist/configurator/ui/legacy/toolbar/common/DimensionUnitSelector.js +1 -1
  599. package/dist/configurator/ui/legacy/toolbar/common/MeasurementsIndicatorsSwitch.js +1 -1
  600. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/FullscreenToolbarAction.js +1 -1
  601. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/HelpToolbarAction.js +1 -1
  602. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/MeasurementsToolbarAction.js +1 -1
  603. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/UndoRedoToolbarGroup.js +1 -1
  604. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.d.ts +0 -7
  605. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.js +2 -6
  606. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -1
  607. package/dist/configurator/ui/phoenix-layout-elements/EnterFullscreenToolbarButton.js +1 -1
  608. package/dist/configurator/ui/phoenix-layout-elements/ExitFullscreenToolbarButton.js +1 -1
  609. package/dist/configurator/ui/phoenix-layout-elements/HelpToolbarButton.js +1 -1
  610. package/dist/configurator/ui/phoenix-layout-elements/LanguageMenuAction.js +1 -1
  611. package/dist/configurator/ui/phoenix-layout-elements/LanguageToolbarButton.js +1 -1
  612. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.d.ts +1 -0
  613. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.js +1 -1
  614. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.d.ts +1 -0
  615. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.js +1 -1
  616. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsMenuAction.js +1 -1
  617. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsToolbarButton.js +1 -1
  618. package/dist/configurator/ui/phoenix-layout-elements/RedoToolbarButton.js +1 -1
  619. package/dist/configurator/ui/phoenix-layout-elements/ShareToolbarButton.js +1 -1
  620. package/dist/configurator/ui/phoenix-layout-elements/UndoToolbarButton.js +1 -1
  621. package/dist/configurator/ui/phoenix-layout-elements/header/common/back-button/use-go-back-action.js +1 -1
  622. package/dist/configurator/ui/phoenix-layout-elements/header/common/horizontal-tabs/DesktopHorizontalTabs.js +1 -1
  623. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.d.ts +1 -1
  624. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.js +1 -1
  625. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.d.ts +2 -8
  626. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.js +1 -1
  627. package/dist/configurator/ui/phoenix-layout-elements/index.d.ts +8 -1
  628. package/dist/configurator/ui/phoenix-layout-elements/index.js +1 -1
  629. package/dist/configurator/ui/phoenix-layout-elements/measurements/DimensionUnitSelector.js +1 -1
  630. package/dist/configurator/ui/phoenix-layout-elements/measurements/MeasurementsIndicatorsSwitch.js +1 -1
  631. package/dist/configurator/ui/phoenix-layout-elements/share/ShareModal.js +1 -1
  632. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.d.ts +7 -8
  633. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.js +1 -1
  634. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/BasicFinalizeButton.js +1 -1
  635. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/CustomFinalizeButton.js +1 -1
  636. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/EnterSummaryButton.js +1 -1
  637. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/FinalizeActions.js +1 -1
  638. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/NextStepButton.js +1 -1
  639. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/PreviousStepButton.js +1 -1
  640. package/dist/configurator/ui/preset-layout/CategoryPresetUi.js +1 -1
  641. package/dist/configurator/ui/preset-layout/PresetUi.d.ts +4 -2
  642. package/dist/configurator/ui/preset-layout/PresetUi.js +1 -1
  643. package/dist/configurator/ui/preset-layout/index.d.ts +6 -1
  644. package/dist/configurator/ui/preset-layout/index.js +1 -1
  645. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.d.ts +10 -0
  646. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.js +1 -0
  647. package/dist/configurator/ui/save-message-snackbars/index.d.ts +1 -0
  648. package/dist/configurator/ui/save-message-snackbars/index.js +1 -0
  649. package/dist/docs/complex-use-cases/focus-mode.mdx +2 -0
  650. package/dist/docs/controls/select-child-entity/cardselect.mdx +1 -0
  651. package/dist/docs/dimensions/3d-scene-integration/dimension-indicators.mdx +2 -2
  652. package/dist/docs/dimensions/3d-scene-integration/editable-angle-indicator.mdx +1 -1
  653. package/dist/docs/dimensions/3d-scene-integration/editable-distance-dimension-indicator.mdx +1 -1
  654. package/dist/docs/dimensions/3d-scene-integration/list-selector-dimension-indicator.mdx +1 -1
  655. package/dist/docs/drag-and-drop/drag-handle.mdx +1 -1
  656. package/dist/docs/drag-and-drop/hotspot-handle.mdx +1 -1
  657. package/dist/docs/drag-and-drop/planes.mdx +1 -1
  658. package/dist/docs/drag-and-drop/rotatable.mdx +2 -2
  659. package/dist/docs/fabs/basic.mdx +6 -2
  660. package/dist/docs/index.json +136 -1
  661. package/dist/docs/integrations/webcomponent-api/basics.mdx +2 -0
  662. package/dist/docs/layouts/custom-layout.mdx +2597 -0
  663. package/dist/docs/layouts/gallery/ardent-compressor.mdx +3516 -0
  664. package/dist/docs/layouts/gallery/corvid-drone.mdx +3428 -0
  665. package/dist/docs/layouts/gallery/fenwick-window.mdx +2803 -0
  666. package/dist/docs/layouts/gallery/ferrule-bar-station.mdx +6567 -0
  667. package/dist/docs/layouts/gallery/kestrel-kettle.mdx +1858 -0
  668. package/dist/docs/layouts/gallery/nightjar-guitar.mdx +3698 -0
  669. package/dist/docs/layouts/gallery/sunfold-solar.mdx +2683 -0
  670. package/dist/docs/layouts/gallery/tidepool-aquascape.mdx +5203 -0
  671. package/dist/docs/layouts/header/fixed.mdx +2 -2
  672. package/dist/docs/layouts/header/floating.mdx +2 -2
  673. package/dist/docs/layouts/sidebar/in-a-custom-layout.mdx +380 -0
  674. package/dist/docs/layouts/sidebar-footer/basic.mdx +32 -77
  675. package/dist/docs/other-features/client-side-rendering/declarative.mdx +2 -2
  676. package/dist/docs/other-features/error-5xx.mdx +1 -1
  677. package/dist/docs/other-features/navigation-hotspot.mdx +2 -0
  678. package/dist/docs/other-features/not-found-404.mdx +1 -1
  679. package/dist/docs/other-features/transformers.mdx +4 -0
  680. package/dist/docs/phoenix/application-states.mdx +9 -7
  681. package/dist/docs/phoenix/clerk-sign-in.mdx +1 -1
  682. package/dist/docs/phoenix/components.mdx +6 -0
  683. package/dist/docs/phoenix/configurator-interface.mdx +305 -23
  684. package/dist/docs/phoenix/deployments.mdx +2 -6
  685. package/dist/docs/phoenix/domain-model.mdx +2 -0
  686. package/dist/docs/phoenix/finalization.mdx +1 -1
  687. package/dist/docs/phoenix/getting-started.mdx +6 -3
  688. package/dist/docs/phoenix/layout-slots.mdx +116 -0
  689. package/dist/docs/phoenix/localization.mdx +10 -6
  690. package/dist/docs/phoenix/migration-guide.mdx +24 -11
  691. package/dist/docs/phoenix/phoenix-cli.mdx +72 -21
  692. package/dist/docs/phoenix/project-structure.mdx +72 -34
  693. package/dist/docs/phoenix/quickstart.mdx +7 -7
  694. package/dist/docs/phoenix/sdk-builder-workflow.mdx +12 -10
  695. package/dist/docs/phoenix/sessions-and-access.mdx +2 -0
  696. package/dist/docs/phoenix/testing.mdx +148 -0
  697. package/dist/docs/phoenix/webhook-membership.mdx +10 -9
  698. package/dist/docs/phoenix/webhooks.mdx +21 -4
  699. package/dist/docs/selection-and-highlight/hotspots.mdx +2 -0
  700. package/dist/domain/application/application-config.d.ts +3 -1
  701. package/dist/domain/application/assistant/assistant-fields.d.ts +12 -0
  702. package/dist/domain/application/assistant/assistant-fields.js +1 -0
  703. package/dist/domain/application/assistant/assistant-manifest.d.ts +25 -2
  704. package/dist/domain/application/assistant/assistant-resolved-manifest.d.ts +46 -3
  705. package/dist/domain/application/assistant/assistant-resolved-manifest.js +1 -1
  706. package/dist/domain/application/assistant/build-assistant-lenses.d.ts +14 -0
  707. package/dist/domain/application/assistant/build-assistant-lenses.js +5 -0
  708. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  709. package/dist/domain/application/assistant/create-assistant-execution-schema.d.ts +32 -0
  710. package/dist/domain/application/assistant/create-assistant-execution-schema.js +1 -0
  711. package/dist/domain/application/assistant/form/assistant-form-element-name.d.ts +11 -0
  712. package/dist/domain/application/assistant/form/assistant-form-element-name.js +8 -0
  713. package/dist/domain/application/assistant/form/assistant-form-elements.d.ts +174 -0
  714. package/dist/domain/application/assistant/form/assistant-form-elements.js +1 -0
  715. package/dist/domain/application/assistant/form/assistant-resource-path.d.ts +10 -0
  716. package/dist/domain/application/assistant/form/assistant-resource-path.js +1 -0
  717. package/dist/domain/application/assistant/form/index.d.ts +4 -0
  718. package/dist/domain/application/assistant/form/index.js +1 -0
  719. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +3 -0
  720. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  721. package/dist/domain/application/assistant/index.d.ts +8 -2
  722. package/dist/domain/application/assistant/index.js +1 -1
  723. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.d.ts +20 -0
  724. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.js +1 -0
  725. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.d.ts +10 -0
  726. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -0
  727. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +50 -0
  728. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -0
  729. package/dist/domain/application/assistant/session-setup/create-session-assistant.d.ts +15 -0
  730. package/dist/domain/application/assistant/session-setup/create-session-assistant.js +1 -0
  731. package/dist/domain/application/assistant/session-setup/index.d.ts +4 -0
  732. package/dist/domain/application/assistant/session-setup/index.js +1 -0
  733. package/dist/domain/application/assistant-recipe-groups.d.ts +3 -1
  734. package/dist/domain/application/configurator-builder.d.ts +11 -2
  735. package/dist/domain/application/configurator-builder.js +1 -1
  736. package/dist/domain/application/index.d.ts +1 -1
  737. package/dist/domain/application/index.js +1 -1
  738. package/dist/domain/application/standard-properties.js +1 -1
  739. package/dist/domain/application/web-component-property.d.ts +3 -1
  740. package/dist/domain/application/web-component-property.js +1 -1
  741. package/dist/domain/available-system-components.d.ts +1 -1
  742. package/dist/domain/available-system-components.js +1 -1
  743. package/dist/domain/core/expression/constant-expressions.d.ts +16 -8
  744. package/dist/domain/core/invariant/violation.d.ts +50 -2
  745. package/dist/domain/core/invariant/violation.js +1 -1
  746. package/dist/domain/core/model/model.d.ts +1 -1
  747. package/dist/domain/core/schema/extended-schema-validator.js +1 -1
  748. package/dist/domain/domain-builder.d.ts +9 -3
  749. package/dist/domain/domain-builder.js +1 -1
  750. package/dist/domain/domain-context/index.d.ts +1 -1
  751. package/dist/domain/domain-context/store-system/store-system.d.ts +5 -0
  752. package/dist/domain/domain-context/store-system/store-system.js +1 -1
  753. package/dist/domain/domain-context/undo-system.d.ts +28 -1
  754. package/dist/domain/domain-context/undo-system.js +1 -1
  755. package/dist/domain/domain-runtime/access/selectors.d.ts +9 -0
  756. package/dist/domain/domain-runtime/access/selectors.js +1 -1
  757. package/dist/domain/domain-runtime/access/types.d.ts +2 -0
  758. package/dist/domain/domain-runtime/access/types.js +1 -1
  759. package/dist/domain/domain-runtime/application.d.ts +39 -0
  760. package/dist/domain/domain-runtime/application.js +1 -0
  761. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +1 -0
  762. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  763. package/dist/domain/domain-runtime/domain-context/types.d.ts +4 -1
  764. package/dist/domain/domain-runtime/domain-runtime.d.ts +60 -4
  765. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  766. package/dist/domain/domain-runtime/environment/initialize.d.ts +1 -1
  767. package/dist/domain/domain-runtime/environment/types.d.ts +1 -1
  768. package/dist/domain/domain-runtime/errors/implementation-error-collector.d.ts +21 -0
  769. package/dist/domain/domain-runtime/errors/implementation-error-collector.js +1 -0
  770. package/dist/domain/domain-runtime/errors/implementation-error.d.ts +46 -0
  771. package/dist/domain/domain-runtime/errors/implementation-error.js +1 -0
  772. package/dist/domain/domain-runtime/errors/implementation-errors.d.ts +13 -0
  773. package/dist/domain/domain-runtime/errors/implementation-errors.js +1 -0
  774. package/dist/domain/domain-runtime/errors/index.d.ts +4 -0
  775. package/dist/domain/domain-runtime/errors/index.js +1 -0
  776. package/dist/domain/domain-runtime/errors/to-implementation-errors.d.ts +10 -0
  777. package/dist/domain/domain-runtime/errors/to-implementation-errors.js +1 -0
  778. package/dist/domain/domain-runtime/index.d.ts +2 -0
  779. package/dist/domain/domain-runtime/index.js +1 -1
  780. package/dist/domain/domain-runtime/spec/index.d.ts +1 -1
  781. package/dist/domain/domain-runtime/spec/index.js +1 -1
  782. package/dist/domain/domain-runtime/spec/initialize.d.ts +11 -0
  783. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  784. package/dist/domain/domain-runtime/spec/module-checks/element-registration.d.ts +27 -12
  785. package/dist/domain/domain-runtime/spec/module-checks/element-registration.js +1 -1
  786. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.d.ts +12 -0
  787. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.js +1 -0
  788. package/dist/domain/domain-runtime/spec/module-checks/index.d.ts +3 -1
  789. package/dist/domain/domain-runtime/spec/module-checks/index.js +1 -1
  790. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.d.ts +23 -0
  791. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.js +1 -0
  792. package/dist/domain/domain-runtime/spec/module-checks/project-modules.d.ts +8 -1
  793. package/dist/domain/domain-runtime/spec/module-checks/project-modules.js +1 -1
  794. package/dist/domain/domain-runtime/spec/module-checks/resolve-action-modules.js +1 -1
  795. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.d.ts +3 -4
  796. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.js +1 -1
  797. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.js +1 -1
  798. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.js +1 -1
  799. package/dist/domain/domain-runtime/spec/selectors.d.ts +3 -1
  800. package/dist/domain/domain-runtime/spec/selectors.js +1 -1
  801. package/dist/domain/domain-runtime/spec/types.d.ts +2 -0
  802. package/dist/domain/domain-runtime/web-component/actions.d.ts +3 -0
  803. package/dist/domain/domain-runtime/web-component/actions.js +1 -1
  804. package/dist/domain/domain-runtime/web-component/initialize.d.ts +1 -0
  805. package/dist/domain/domain-runtime/web-component/initialize.js +1 -1
  806. package/dist/domain/domain-runtime/web-component/selectors.d.ts +2 -0
  807. package/dist/domain/domain-runtime/web-component/selectors.js +1 -1
  808. package/dist/domain/domain-runtime/web-component/types.d.ts +6 -3
  809. package/dist/domain/extensions/attribute-switch.d.ts +1 -1
  810. package/dist/domain/extensions/attribute-switch.js +1 -1
  811. package/dist/domain/extensions/canvas-config.d.ts +1 -1
  812. package/dist/domain/extensions/common/angle-indicator-schema.d.ts +2 -2
  813. package/dist/domain/extensions/common/dimension-indicator-schema.d.ts +2 -2
  814. package/dist/domain/extensions/editable-angle-indicator.d.ts +1 -1
  815. package/dist/domain/extensions/editable-distance-dimension-indicator.d.ts +1 -1
  816. package/dist/domain/extensions/editable-offset-indicator.d.ts +1 -1
  817. package/dist/domain/extensions/editable-offset-indicator.js +1 -1
  818. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +24 -0
  819. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -0
  820. package/dist/domain/extensions/export-images/client-side-image.d.ts +14 -0
  821. package/dist/domain/extensions/export-images/client-side-image.js +1 -0
  822. package/dist/domain/extensions/export-images/index.d.ts +3 -0
  823. package/dist/domain/extensions/export-images/index.js +1 -0
  824. package/dist/domain/extensions/{save-template-thumbnail.d.ts → export-images/save-template-thumbnail.d.ts} +4 -4
  825. package/dist/domain/extensions/export-images/save-template-thumbnail.js +1 -0
  826. package/dist/domain/extensions/fit-selection-orthographic-camera-component.js +1 -1
  827. package/dist/domain/extensions/fit-selection-perspective-camera-component.js +1 -1
  828. package/dist/domain/extensions/horizontal-tabs.d.ts +2 -2
  829. package/dist/domain/extensions/index.d.ts +1 -2
  830. package/dist/domain/extensions/index.js +1 -1
  831. package/dist/domain/extensions/list-selector-dimension-indicator.d.ts +1 -1
  832. package/dist/domain/extensions/navigation-steps.d.ts +2 -2
  833. package/dist/domain/extensions/offset-indicator.js +1 -1
  834. package/dist/domain/extensions/rotation-handle.d.ts +2 -2
  835. package/dist/domain/extensions/scene-entity-animation.js +1 -1
  836. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +18 -0
  837. package/dist/domain/mocks/create-mock-domain-runtime.js +1 -1
  838. package/dist/domain/mocks/create-mock-domain.js +1 -1
  839. package/dist/domain/mocks/create-test-application-config.d.ts +59 -0
  840. package/dist/domain/mocks/create-test-application-config.js +1 -0
  841. package/dist/domain/mocks/index.d.ts +1 -0
  842. package/dist/domain/mocks/index.js +1 -1
  843. package/dist/domain/system-components/application-config.d.ts +2 -2
  844. package/dist/domain/system-components/child-entity-selection.js +1 -1
  845. package/dist/domain/system-components/collision-box-geometry.d.ts +4 -2
  846. package/dist/domain/system-components/collision-geometry.d.ts +4 -2
  847. package/dist/domain/system-components/collision-point-geometry.d.ts +4 -2
  848. package/dist/domain/system-components/common/material-override-schema.d.ts +2 -2
  849. package/dist/domain/system-components/common/recipes.d.ts +21 -3
  850. package/dist/domain/system-components/common/recipes.js +1 -1
  851. package/dist/domain/system-components/common/scene-entity-control-schema.d.ts +3 -0
  852. package/dist/domain/system-components/common/scene-entity-control-schema.js +1 -1
  853. package/dist/domain/system-components/constraint.d.ts +10 -23
  854. package/dist/domain/system-components/drag-handle.d.ts +1 -1
  855. package/dist/domain/system-components/drag-handle.js +1 -1
  856. package/dist/domain/system-components/fit-entity-orthographic-camera-component.js +1 -1
  857. package/dist/domain/system-components/fit-entity-perspective-camera-component.js +1 -1
  858. package/dist/domain/system-components/fit-root-orthographic-camera-component.js +1 -1
  859. package/dist/domain/system-components/fit-root-perspective-camera-component.js +1 -1
  860. package/dist/domain/system-components/hotspot-drag-handle.d.ts +1 -1
  861. package/dist/domain/system-components/hotspot-drag-handle.js +1 -1
  862. package/dist/domain/system-components/material-swatch.js +1 -1
  863. package/dist/domain/system-components/scene-entity-material-override.d.ts +1 -1
  864. package/dist/domain/system-components/scene-entity-object-material-override.d.ts +1 -1
  865. package/dist/domain/system-components/scene-entity-object-text-decal.d.ts +1 -1
  866. package/dist/domain/system-components/scene-entity-object-transimissive-material-override.d.ts +1 -1
  867. package/dist/domain/system-components/scene-entity-transimissive-material-override.d.ts +1 -1
  868. package/dist/domain/system-components/static-orthographic-camera-component.js +1 -1
  869. package/dist/domain/system-components/static-perspective-camera-component.js +1 -1
  870. package/dist/editor/Editor.d.ts +7 -0
  871. package/dist/editor/Editor.js +1 -1
  872. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  873. package/dist/editor/domain-editors/apply-spec-update.d.ts +10 -2
  874. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  875. package/dist/editor/domain-editors/use-implementation-files.d.ts +6 -14
  876. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  877. package/dist/editor/mocks/CreateMockYaml.js +2 -2
  878. package/dist/editor/mocks/EditorMockContext.d.ts +2 -0
  879. package/dist/editor/mocks/EditorMockContext.js +1 -1
  880. package/dist/editor/screenshot/ScreenshotHandler.js +1 -1
  881. package/dist/globals/index.d.ts +2 -0
  882. package/dist/i18n/locales/cs/messages.js +1 -1
  883. package/dist/i18n/locales/da/messages.js +1 -1
  884. package/dist/i18n/locales/de/messages.js +1 -1
  885. package/dist/i18n/locales/de-AT/messages.js +1 -1
  886. package/dist/i18n/locales/en/messages.js +1 -1
  887. package/dist/i18n/locales/en-AU/messages.js +1 -1
  888. package/dist/i18n/locales/en-GB/messages.js +1 -1
  889. package/dist/i18n/locales/es/messages.js +1 -1
  890. package/dist/i18n/locales/fr/messages.js +1 -1
  891. package/dist/i18n/locales/hu/messages.js +1 -1
  892. package/dist/i18n/locales/it/messages.js +1 -1
  893. package/dist/i18n/locales/nl/messages.js +1 -1
  894. package/dist/i18n/locales/pl/messages.js +1 -1
  895. package/dist/i18n/locales/pt/messages.js +1 -1
  896. package/dist/i18n/locales/ro/messages.js +1 -1
  897. package/dist/i18n/locales/sk/messages.js +1 -1
  898. package/dist/i18n/locales/tr/messages.js +1 -1
  899. package/dist/legacy/domain-cli/gen/constant-expressions.js +1 -1
  900. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  901. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  902. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +176 -148
  903. package/dist/legacy/domain-spec/spec/domain-spec.js +1 -1
  904. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/claude-md.d.ts +1 -1
  905. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/cursor-rules.d.ts +1 -1
  906. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.d.ts +1 -1
  907. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.js +13 -1
  908. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-admin.js +15 -14
  909. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-configurator.js +14 -12
  910. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-admin.js +14 -13
  911. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-configurator.js +13 -11
  912. package/dist/phoenix/application-spec/application-spec-builder.d.ts +0 -2
  913. package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
  914. package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +0 -2
  915. package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
  916. package/dist/phoenix/application-spec/generate-application-spec-story.js +2 -2
  917. package/dist/phoenix/application-spec/generate-project-files.d.ts +0 -2
  918. package/dist/phoenix/application-spec/project-files.js +1 -1
  919. package/dist/phoenix/bin.d.ts +2 -0
  920. package/dist/phoenix/bin.js +2 -0
  921. package/dist/phoenix/check-configs/built-in-eslint-config.d.ts +9 -0
  922. package/dist/phoenix/check-configs/built-in-eslint-config.js +1 -0
  923. package/dist/phoenix/check-configs/eslint-config.d.ts +10 -0
  924. package/dist/phoenix/check-configs/eslint-config.js +1 -0
  925. package/dist/phoenix/check-configs/index.d.ts +8 -0
  926. package/dist/phoenix/check-configs/index.js +1 -0
  927. package/dist/phoenix/check-configs/typescript-project.d.ts +5 -0
  928. package/dist/phoenix/check-configs/typescript-project.js +1 -0
  929. package/dist/phoenix/cli.d.ts +0 -1
  930. package/dist/phoenix/cli.js +1 -2
  931. package/dist/phoenix/commands/build.js +1 -1
  932. package/dist/phoenix/commands/check.js +1 -1
  933. package/dist/phoenix/commands/clean.js +1 -1
  934. package/dist/phoenix/commands/deploy.js +2 -2
  935. package/dist/phoenix/commands/deps/deps.d.ts +73 -0
  936. package/dist/phoenix/commands/deps/deps.js +3 -0
  937. package/dist/phoenix/commands/deps/index.d.ts +1 -0
  938. package/dist/phoenix/commands/deps/index.js +1 -0
  939. package/dist/phoenix/commands/deps/sdk-manifest.d.ts +12 -0
  940. package/dist/phoenix/commands/deps/sdk-manifest.js +1 -0
  941. package/dist/phoenix/commands/dev.js +5 -5
  942. package/dist/phoenix/commands/fix.js +1 -1
  943. package/dist/phoenix/commands/index.d.ts +1 -0
  944. package/dist/phoenix/commands/index.js +1 -1
  945. package/dist/phoenix/commands/init.d.ts +17 -5
  946. package/dist/phoenix/commands/init.js +1 -1
  947. package/dist/phoenix/commands/link.js +1 -1
  948. package/dist/phoenix/commands/prettier.js +1 -1
  949. package/dist/phoenix/commands/sync.js +1 -1
  950. package/dist/phoenix/commands/unlink.js +1 -1
  951. package/dist/phoenix/services/application-spec-project-watcher.d.ts +2 -2
  952. package/dist/phoenix/services/application-spec-project-watcher.js +3 -3
  953. package/dist/phoenix/services/lingui.d.ts +8 -0
  954. package/dist/phoenix/services/lingui.js +1 -1
  955. package/dist/phoenix/services/source-archive.d.ts +1 -0
  956. package/dist/phoenix/services/source-archive.js +1 -1
  957. package/dist/phoenix/services/swc.js +1 -1
  958. package/dist/phoenix/services/vite-config.js +1 -1
  959. package/dist/phoenix/utils/index.d.ts +4 -2
  960. package/dist/phoenix/utils/index.js +1 -1
  961. package/dist/phoenix/utils/node-version/index.d.ts +1 -0
  962. package/dist/phoenix/utils/node-version/index.js +1 -0
  963. package/dist/phoenix/utils/node-version/supported-node-version.d.ts +12 -0
  964. package/dist/phoenix/utils/node-version/supported-node-version.js +4 -0
  965. package/dist/phoenix/utils/package-info.d.ts +0 -9
  966. package/dist/phoenix/utils/package-info.js +1 -1
  967. package/dist/phoenix/utils/package-manager/index.d.ts +2 -0
  968. package/dist/phoenix/utils/package-manager/index.js +1 -0
  969. package/dist/phoenix/utils/package-manager/package-manager-commands.d.ts +19 -0
  970. package/dist/phoenix/utils/package-manager/package-manager-commands.js +1 -0
  971. package/dist/phoenix/utils/package-manager/pnpm-project.d.ts +9 -0
  972. package/dist/phoenix/utils/package-manager/pnpm-project.js +1 -0
  973. package/dist/phoenix/utils/run-command.d.ts +11 -0
  974. package/dist/phoenix/utils/run-command.js +1 -1
  975. package/dist/phoenix/utils/sdk-tool/index.d.ts +1 -0
  976. package/dist/phoenix/utils/sdk-tool/index.js +1 -0
  977. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.d.ts +15 -0
  978. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.js +1 -0
  979. package/dist/react-sdk/application-runtime/common-services/analytics/analytics-service.d.ts +1 -1
  980. package/dist/{configurator/common → react-sdk/application-runtime/common-services/analytics}/frontend-analytics.d.ts +6 -0
  981. package/dist/react-sdk/application-runtime/common-services/analytics/frontend-analytics.js +1 -0
  982. package/dist/react-sdk/application-runtime/common-services/analytics/index.d.ts +1 -0
  983. package/dist/react-sdk/application-runtime/common-services/analytics/index.js +1 -1
  984. package/dist/react-sdk/application-runtime/common-services/initialize.d.ts +2 -2
  985. package/dist/react-sdk/application-runtime/hooks/index.d.ts +2 -0
  986. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  987. package/dist/react-sdk/application-runtime/hooks/loading/index.d.ts +5 -0
  988. package/dist/react-sdk/application-runtime/hooks/loading/index.js +1 -0
  989. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.d.ts +11 -0
  990. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.js +1 -0
  991. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.d.ts +8 -0
  992. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.js +1 -0
  993. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.d.ts +7 -0
  994. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.js +1 -0
  995. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.d.ts +9 -0
  996. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.js +1 -0
  997. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.d.ts +24 -0
  998. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.js +1 -0
  999. package/dist/react-sdk/application-runtime/hooks/responsive/index.d.ts +3 -0
  1000. package/dist/react-sdk/application-runtime/hooks/responsive/index.js +1 -0
  1001. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.d.ts +9 -0
  1002. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.js +1 -0
  1003. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +26 -0
  1004. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.js +1 -0
  1005. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.d.ts +10 -0
  1006. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.js +1 -0
  1007. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.d.ts +24 -0
  1008. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -0
  1009. package/dist/react-sdk/application-runtime/hooks/use-access-service.d.ts +7 -0
  1010. package/dist/react-sdk/application-runtime/hooks/use-access-service.js +1 -1
  1011. package/dist/react-sdk/application-runtime/hooks/use-phoenix-element-slots.d.ts +2 -1
  1012. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.d.ts +4 -11
  1013. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.js +1 -1
  1014. package/dist/react-sdk/application-runtime/hooks/use-web-component.d.ts +5 -0
  1015. package/dist/react-sdk/application-runtime/hooks/use-web-component.js +1 -1
  1016. package/dist/react-sdk/application-runtime/host-properties/actions.d.ts +15 -0
  1017. package/dist/react-sdk/application-runtime/host-properties/actions.js +1 -0
  1018. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.d.ts +30 -0
  1019. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.js +1 -0
  1020. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.d.ts +7 -0
  1021. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.js +1 -0
  1022. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.d.ts +21 -0
  1023. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.js +1 -0
  1024. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.d.ts +42 -0
  1025. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.js +1 -0
  1026. package/dist/react-sdk/application-runtime/host-properties/index.d.ts +8 -0
  1027. package/dist/react-sdk/application-runtime/host-properties/index.js +1 -0
  1028. package/dist/react-sdk/application-runtime/host-properties/initialize.d.ts +7 -0
  1029. package/dist/react-sdk/application-runtime/host-properties/initialize.js +1 -0
  1030. package/dist/react-sdk/application-runtime/host-properties/selectors.d.ts +54 -0
  1031. package/dist/react-sdk/application-runtime/host-properties/selectors.js +1 -0
  1032. package/dist/react-sdk/application-runtime/host-properties/types.d.ts +18 -0
  1033. package/dist/react-sdk/application-runtime/host-properties/types.js +1 -0
  1034. package/dist/react-sdk/application-runtime/index.d.ts +3 -0
  1035. package/dist/react-sdk/application-runtime/integration/initialize.d.ts +7 -6
  1036. package/dist/react-sdk/application-runtime/integration/initialize.js +1 -1
  1037. package/dist/react-sdk/application-runtime/integration/selectors.d.ts +11 -2
  1038. package/dist/react-sdk/application-runtime/integration/selectors.js +1 -1
  1039. package/dist/react-sdk/application-runtime/integration/types.d.ts +5 -2
  1040. package/dist/react-sdk/application-runtime/loading/actions.d.ts +45 -0
  1041. package/dist/react-sdk/application-runtime/loading/actions.js +1 -0
  1042. package/dist/react-sdk/application-runtime/loading/index.d.ts +4 -0
  1043. package/dist/react-sdk/application-runtime/loading/index.js +1 -0
  1044. package/dist/react-sdk/application-runtime/loading/initialize.d.ts +3 -0
  1045. package/dist/react-sdk/application-runtime/loading/initialize.js +1 -0
  1046. package/dist/react-sdk/application-runtime/loading/selectors.d.ts +18 -0
  1047. package/dist/react-sdk/application-runtime/loading/selectors.js +1 -0
  1048. package/dist/react-sdk/application-runtime/loading/types.d.ts +59 -0
  1049. package/dist/react-sdk/application-runtime/loading/types.js +1 -0
  1050. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  1051. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.d.ts +6 -0
  1052. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.js +1 -1
  1053. package/dist/react-sdk/application-runtime/provider/ApplicationType.d.ts +7 -0
  1054. package/dist/react-sdk/application-runtime/provider/ApplicationType.js +1 -1
  1055. package/dist/react-sdk/application-runtime/responsive/actions.d.ts +47 -0
  1056. package/dist/react-sdk/application-runtime/responsive/actions.js +1 -0
  1057. package/dist/react-sdk/application-runtime/responsive/index.d.ts +4 -0
  1058. package/dist/react-sdk/application-runtime/responsive/index.js +1 -0
  1059. package/dist/react-sdk/application-runtime/responsive/initialize.d.ts +3 -0
  1060. package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -0
  1061. package/dist/react-sdk/application-runtime/responsive/selectors.d.ts +20 -0
  1062. package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -0
  1063. package/dist/react-sdk/application-runtime/responsive/types.d.ts +104 -0
  1064. package/dist/react-sdk/application-runtime/responsive/types.js +1 -0
  1065. package/dist/react-sdk/application-runtime/routing/access-service.d.ts +1 -0
  1066. package/dist/react-sdk/application-runtime/routing/routing-service.d.ts +34 -2
  1067. package/dist/react-sdk/application-runtime/routing/routing-service.js +1 -1
  1068. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +330 -10
  1069. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  1070. package/dist/react-sdk/domain-application-context/BackendDataProvider.js +1 -1
  1071. package/dist/react-sdk/domain-application-context/DomainLifecycleBoundary.js +1 -1
  1072. package/dist/react-sdk/domain-application-context/FrontendDataProvider.js +1 -1
  1073. package/dist/react-sdk/domain-application-context/PublishedDataProvider.js +1 -1
  1074. package/dist/react-sdk/domain-context/common-hooks/index.d.ts +9 -0
  1075. package/dist/react-sdk/domain-context/common-hooks/index.js +1 -0
  1076. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.d.ts +23 -0
  1077. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.js +1 -0
  1078. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.d.ts +41 -0
  1079. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.js +1 -0
  1080. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +1 -0
  1081. package/dist/react-sdk/domain-context/component-hooks/index.d.ts +1 -0
  1082. package/dist/react-sdk/domain-context/component-hooks/index.js +1 -0
  1083. package/dist/react-sdk/domain-context/component-hooks/use-component.js +1 -1
  1084. package/dist/react-sdk/domain-context/entity-hooks/use-domain-entity-state.js +1 -1
  1085. package/dist/react-sdk/domain-context/entity-hooks/use-entity-price.js +1 -1
  1086. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-id.js +1 -1
  1087. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-state.js +1 -1
  1088. package/dist/react-sdk/domain-context/index.d.ts +9 -1
  1089. package/dist/react-sdk/domain-context/index.js +1 -1
  1090. package/dist/react-sdk/domain-context/system-hooks/composition-hooks.js +1 -1
  1091. package/dist/react-sdk/domain-context/system-hooks/dimension-hooks.js +1 -1
  1092. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +8 -0
  1093. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -0
  1094. package/dist/react-sdk/domain-context/system-hooks/hover-hooks.js +1 -1
  1095. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.d.ts +24 -0
  1096. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.js +1 -0
  1097. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +5 -0
  1098. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  1099. package/dist/react-sdk/domain-context/system-hooks/selection-hooks.js +1 -1
  1100. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.d.ts +32 -0
  1101. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.js +1 -0
  1102. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.d.ts +57 -0
  1103. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.js +1 -0
  1104. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.d.ts +61 -0
  1105. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.js +1 -0
  1106. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.d.ts +20 -0
  1107. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.js +1 -0
  1108. package/dist/react-sdk/domain-controls/hooks/use-angle-dimension.d.ts +1 -1
  1109. package/dist/react-sdk/handlers/FinalizeActionRunner.d.ts +13 -0
  1110. package/dist/react-sdk/handlers/FinalizeActionRunner.js +1 -0
  1111. package/dist/react-sdk/handlers/FinalizeActionsHost.d.ts +10 -0
  1112. package/dist/react-sdk/handlers/FinalizeActionsHost.js +1 -0
  1113. package/dist/react-sdk/handlers/FinalizeActionsProvider.d.ts +11 -0
  1114. package/dist/react-sdk/handlers/FinalizeActionsProvider.js +1 -0
  1115. package/dist/react-sdk/handlers/finalize-actions-context.d.ts +6 -0
  1116. package/dist/react-sdk/handlers/finalize-actions-context.js +1 -0
  1117. package/dist/react-sdk/handlers/finalize-actions-store.d.ts +23 -0
  1118. package/dist/react-sdk/handlers/finalize-actions-store.js +1 -0
  1119. package/dist/react-sdk/handlers/index.d.ts +6 -0
  1120. package/dist/react-sdk/handlers/index.js +1 -1
  1121. package/dist/react-sdk/handlers/use-finalize-action.d.ts +32 -0
  1122. package/dist/react-sdk/handlers/use-finalize-action.js +1 -0
  1123. package/dist/react-sdk/handlers/use-finalize-actions.d.ts +53 -0
  1124. package/dist/react-sdk/handlers/use-finalize-actions.js +1 -0
  1125. package/dist/react-sdk/index.d.ts +2 -0
  1126. package/dist/react-sdk/index.js +1 -1
  1127. package/dist/react-sdk/loading-state/LoaderHost.d.ts +20 -0
  1128. package/dist/react-sdk/loading-state/LoaderHost.js +1 -0
  1129. package/dist/react-sdk/loading-state/built-in-loading-phase.d.ts +9 -0
  1130. package/dist/react-sdk/loading-state/built-in-loading-phase.js +1 -0
  1131. package/dist/react-sdk/loading-state/create-app-loader.d.ts +18 -0
  1132. package/dist/react-sdk/loading-state/create-app-loader.js +1 -0
  1133. package/dist/react-sdk/loading-state/index.d.ts +4 -2
  1134. package/dist/react-sdk/loading-state/index.js +1 -1
  1135. package/dist/react-sdk/loading-state/{LoadingStateProvider.d.ts → loading-state-hooks.d.ts} +3 -12
  1136. package/dist/react-sdk/loading-state/loading-state-hooks.js +1 -0
  1137. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.d.ts +17 -0
  1138. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.js +1 -0
  1139. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.d.ts +17 -0
  1140. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.js +1 -0
  1141. package/dist/react-sdk/page-elements/configurator-error-page-props.d.ts +20 -0
  1142. package/dist/react-sdk/page-elements/configurator-error-page-props.js +1 -0
  1143. package/dist/react-sdk/page-elements/create-configuration-not-found-page.d.ts +15 -0
  1144. package/dist/react-sdk/page-elements/create-configuration-not-found-page.js +1 -0
  1145. package/dist/react-sdk/page-elements/create-configurator-error-page.d.ts +14 -0
  1146. package/dist/react-sdk/page-elements/create-configurator-error-page.js +1 -0
  1147. package/dist/react-sdk/page-elements/create-preset-ui.d.ts +9 -0
  1148. package/dist/react-sdk/page-elements/create-preset-ui.js +1 -0
  1149. package/dist/react-sdk/page-elements/index.d.ts +6 -0
  1150. package/dist/react-sdk/page-elements/index.js +1 -0
  1151. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.d.ts +36 -0
  1152. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.js +1 -0
  1153. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.d.ts +44 -0
  1154. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.js +1 -0
  1155. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.d.ts +38 -0
  1156. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.js +1 -0
  1157. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.d.ts +30 -0
  1158. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.js +1 -0
  1159. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.d.ts +30 -0
  1160. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.js +1 -0
  1161. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.d.ts +9 -0
  1162. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.js +1 -0
  1163. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.d.ts +9 -0
  1164. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.js +1 -0
  1165. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.d.ts +10 -0
  1166. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.js +1 -0
  1167. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.d.ts +9 -0
  1168. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.js +1 -0
  1169. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.d.ts +9 -0
  1170. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.js +1 -0
  1171. package/dist/react-sdk/scene-control-elements/index.d.ts +11 -0
  1172. package/dist/react-sdk/scene-control-elements/index.js +1 -0
  1173. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.d.ts +5 -0
  1174. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.js +1 -0
  1175. package/dist/react-sdk/session/NotAuthenticatedPage.d.ts +4 -0
  1176. package/dist/react-sdk/session/NotAuthenticatedPage.js +1 -1
  1177. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  1178. package/dist/react-sdk/web-component/create-web-component.js +1 -1
  1179. package/dist/react-sdk/web-component/god-mode/god-mode-registry.d.ts +30 -0
  1180. package/dist/react-sdk/web-component/god-mode/god-mode-registry.js +1 -0
  1181. package/dist/react-sdk/web-component/god-mode/index.d.ts +1 -0
  1182. package/dist/react-sdk/web-component/god-mode/index.js +1 -0
  1183. package/dist/ui-sdk/icons/__generated/Lightbulb.d.ts +3 -0
  1184. package/dist/ui-sdk/icons/__generated/Lightbulb.js +1 -0
  1185. package/dist/ui-sdk/icons/__generated/XCircle.d.ts +3 -0
  1186. package/dist/ui-sdk/icons/__generated/XCircle.js +1 -0
  1187. package/dist/ui-sdk/icons/__generated/index.d.ts +4 -0
  1188. package/dist/ui-sdk/icons/__generated/index.js +1 -1
  1189. package/dist/ui-sdk/icons/icons-registry.js +1 -1
  1190. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.d.ts +9 -0
  1191. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.js +1 -1
  1192. package/dist/ui-sdk/responsive-application/index.d.ts +1 -0
  1193. package/dist/ui-sdk/responsive-application/responsive-state-store.d.ts +59 -0
  1194. package/dist/ui-sdk/responsive-application/responsive-state-store.js +1 -0
  1195. package/dist/ui-sdk/responsive-application/use-store-responsive-info.d.ts +7 -0
  1196. package/dist/ui-sdk/responsive-application/use-store-responsive-info.js +1 -0
  1197. package/dist/ui-sdk/theme/types.d.ts +5 -1
  1198. package/dist/webhook/builders/webhook-builder.js +1 -1
  1199. package/package.json +58 -36
  1200. package/schema/domain-spec.json +1341 -217
  1201. package/dist/application-spec/generate-application/code/templates/nvmrc.d.ts +0 -1
  1202. package/dist/application-spec/generate-application/code/templates/nvmrc.js +0 -2
  1203. package/dist/application-spec/generate-application/code/templates/package-json.d.ts +0 -10
  1204. package/dist/application-spec/generate-application/code/templates/package-json.js +0 -1
  1205. package/dist/application-spec/generate-application/code/templates/webhook-implementation.d.ts +0 -1
  1206. package/dist/application-spec/generate-application/code/templates/webhook-implementation.js +0 -7
  1207. package/dist/configurator/common/frontend-analytics.js +0 -1
  1208. package/dist/configurator/ui/configurator-layout/universal/DesktopSidebar.js +0 -16
  1209. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.d.ts +0 -4
  1210. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.js +0 -1
  1211. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.d.ts +0 -4
  1212. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.js +0 -1
  1213. package/dist/domain/extensions/client-side-image.d.ts +0 -14
  1214. package/dist/domain/extensions/client-side-image.js +0 -1
  1215. package/dist/domain/extensions/save-template-thumbnail.js +0 -1
  1216. package/dist/phoenix/commands/generate-project-files.d.ts +0 -6
  1217. package/dist/phoenix/commands/generate-project-files.js +0 -1
  1218. package/dist/react-sdk/application-runtime/runtime/god-mode.d.ts +0 -19
  1219. package/dist/react-sdk/application-runtime/runtime/god-mode.js +0 -1
  1220. package/dist/react-sdk/loading-state/LoadingStateProvider.js +0 -1
  1221. package/dist/react-sdk/loading-state/loading-state-manager.d.ts +0 -32
  1222. package/dist/react-sdk/loading-state/loading-state-manager.js +0 -1
  1223. /package/dist/application-spec/{core → enhanced-json}/eval-code-uses-self.d.ts +0 -0
  1224. /package/dist/application-spec/{core → enhanced-json}/eval-code-uses-self.js +0 -0
  1225. /package/dist/application-spec/{core → enhanced-json}/eval-to-constant.js +0 -0
@@ -1,6 +1,7 @@
1
1
  import { BehaviorSubject } from 'rxjs';
2
2
  import type { AnyApplicationConfig } from '../application/index.js';
3
3
  import { type ApplicationAccessInfo } from './access/index.js';
4
+ import { type Application } from './application.js';
4
5
  import { type ApplicationDomainContextState, type DomainApplicationType, type InitializableSystem } from './domain-context/index.js';
5
6
  import { type ApplicationDomainData } from './domain-data/index.js';
6
7
  import { type DomainRuntimeServices } from './domain-services/index.js';
@@ -21,17 +22,30 @@ export interface DomainRuntimeState {
21
22
  readonly webComponent: ApplicationWebComponentState;
22
23
  readonly domainContext: ApplicationDomainContextState;
23
24
  }
24
- interface Props<State extends DomainRuntimeState> {
25
+ /**
26
+ * What a domain runtime starts from: the spec slice and the environment of an application, or the
27
+ * config of a project built with `ConfiguratorBuilder`, which is converted to them when the runtime
28
+ * initializes.
29
+ */
30
+ type DomainRuntimeSource = {
31
+ readonly application: Pick<Application, 'spec' | 'environment'>;
32
+ readonly config?: undefined;
33
+ } | {
25
34
  readonly config: AnyApplicationConfig;
35
+ readonly application?: undefined;
36
+ };
37
+ type DomainRuntimeProps = DomainRuntimeSource & {
26
38
  readonly services: DomainRuntimeServices;
27
- readonly getSubject: () => BehaviorSubject<State>;
28
39
  /**
29
40
  * Systems a host layers onto a slot's domain initialization. Webhook and finalize hosts run the
30
41
  * domain alone and pass nothing; the application runtime contributes its domain-application
31
42
  * systems here.
32
43
  */
33
44
  readonly getExtensionSystems?: (applicationType: DomainApplicationType) => readonly InitializableSystem[];
34
- }
45
+ };
46
+ type Props<State extends DomainRuntimeState> = DomainRuntimeProps & {
47
+ readonly getSubject: () => BehaviorSubject<State>;
48
+ };
35
49
  export declare function createDomainRuntimeSlices<State extends DomainRuntimeState>(props: Props<State>): {
36
50
  initialize: () => {
37
51
  spec: ApplicationSpec;
@@ -86,6 +100,7 @@ export declare function createDomainRuntimeSlices<State extends DomainRuntimeSta
86
100
  selectElementSlots: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, {
87
101
  entityElements: Record<string, (props: import("./index.js").CustomPhoenixEntityElementProps) => JSX.Element>;
88
102
  layoutElements: Record<string, (props: import("react").PropsWithChildren) => JSX.Element>;
103
+ assistantFormElements: Record<string, import("react").ComponentType<never>>;
89
104
  hashes: Record<string, string>;
90
105
  }>;
91
106
  selectDataConfig: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, import("../index.js").DataSpec | null>;
@@ -129,6 +144,7 @@ export declare function createDomainRuntimeSlices<State extends DomainRuntimeSta
129
144
  getElementSlots: () => {
130
145
  entityElements: Record<string, (props: import("./index.js").CustomPhoenixEntityElementProps) => JSX.Element>;
131
146
  layoutElements: Record<string, (props: import("react").PropsWithChildren) => JSX.Element>;
147
+ assistantFormElements: Record<string, import("react").ComponentType<never>>;
132
148
  hashes: Record<string, string>;
133
149
  };
134
150
  getDataConfig: () => import("../index.js").DataSpec | null;
@@ -272,24 +288,28 @@ export declare function createDomainRuntimeSlices<State extends DomainRuntimeSta
272
288
  access: {
273
289
  selectConfiguratorRawAccessInfo: import("@salsita-ai/common/utils").Selector<import("./index.js").AccessSelectorState, {
274
290
  raw: string;
291
+ access: import("@salsita-ai/contracts/api").AccessLevel;
275
292
  viewMode: boolean;
276
293
  revisionId: string | undefined;
277
294
  configurationId: string;
278
295
  } | null>;
279
296
  selectAdminRawAccessInfo: import("@salsita-ai/common/utils").Selector<import("./index.js").AccessSelectorState, {
280
297
  raw: string;
298
+ access: import("@salsita-ai/contracts/api").AccessLevel;
281
299
  viewMode: boolean;
282
300
  revisionId: string | undefined;
283
301
  configurationId: string;
284
302
  } | null>;
285
303
  selectConfiguratorAccessInfo: import("@salsita-ai/common/utils").Selector<import("./index.js").AccessSelectorState, {
286
304
  raw: string;
305
+ access: import("@salsita-ai/contracts/api").AccessLevel;
287
306
  viewMode: boolean;
288
307
  revisionId: string | undefined;
289
308
  configurationId: string;
290
309
  }>;
291
310
  selectAdminAccessInfo: import("@salsita-ai/common/utils").Selector<import("./index.js").AccessSelectorState, {
292
311
  raw: string;
312
+ access: import("@salsita-ai/contracts/api").AccessLevel;
293
313
  viewMode: boolean;
294
314
  revisionId: string | undefined;
295
315
  configurationId: string;
@@ -302,24 +322,28 @@ export declare function createDomainRuntimeSlices<State extends DomainRuntimeSta
302
322
  selectAdminConfigurationId: import("@salsita-ai/common/utils").Selector<import("./index.js").AccessSelectorState, string>;
303
323
  getConfiguratorRawAccessInfo: () => {
304
324
  raw: string;
325
+ access: import("@salsita-ai/contracts/api").AccessLevel;
305
326
  viewMode: boolean;
306
327
  revisionId: string | undefined;
307
328
  configurationId: string;
308
329
  } | null;
309
330
  getAdminRawAccessInfo: () => {
310
331
  raw: string;
332
+ access: import("@salsita-ai/contracts/api").AccessLevel;
311
333
  viewMode: boolean;
312
334
  revisionId: string | undefined;
313
335
  configurationId: string;
314
336
  } | null;
315
337
  getConfiguratorAccessInfo: () => {
316
338
  raw: string;
339
+ access: import("@salsita-ai/contracts/api").AccessLevel;
317
340
  viewMode: boolean;
318
341
  revisionId: string | undefined;
319
342
  configurationId: string;
320
343
  };
321
344
  getAdminAccessInfo: () => {
322
345
  raw: string;
346
+ access: import("@salsita-ai/contracts/api").AccessLevel;
323
347
  viewMode: boolean;
324
348
  revisionId: string | undefined;
325
349
  configurationId: string;
@@ -334,6 +358,8 @@ export declare function createDomainRuntimeSlices<State extends DomainRuntimeSta
334
358
  webComponent: {
335
359
  selectReadonly: import("@salsita-ai/common/utils").Selector<import("./index.js").WebComponentSelectorState, boolean>;
336
360
  getReadonly: () => boolean;
361
+ selectLocale: import("@salsita-ai/common/utils").Selector<import("./index.js").WebComponentSelectorState, string>;
362
+ getLocale: () => string;
337
363
  getWebcomponentGeneration: () => number;
338
364
  };
339
365
  domainContext: {
@@ -407,6 +433,7 @@ export declare function createDomainRuntimeSlices<State extends DomainRuntimeSta
407
433
  getMigrate: () => import("../index.js").MigrateFunction<import("../index.js").DomainEntity<string>>;
408
434
  getActiveMode: () => import("../index.js").DomainMode;
409
435
  getIsInitialized: () => boolean;
436
+ getIsViewMode: () => boolean;
410
437
  getComponentReaderIndexes: () => import("./index.js").ComponentReaderIndexes;
411
438
  getStoreRuntimeDependencies: () => {
412
439
  componentReaderIndexes: import("./index.js").ComponentReaderIndexes;
@@ -516,6 +543,7 @@ export declare function createDomainRuntimeSlices<State extends DomainRuntimeSta
516
543
  getMigrate: () => import("../index.js").MigrateFunction<import("../index.js").DomainEntity<string>>;
517
544
  getActiveMode: () => import("../index.js").DomainMode;
518
545
  getIsInitialized: () => boolean;
546
+ getIsViewMode: () => boolean;
519
547
  getComponentReaderIndexes: () => import("./index.js").ComponentReaderIndexes;
520
548
  getStoreRuntimeDependencies: () => {
521
549
  componentReaderIndexes: import("./index.js").ComponentReaderIndexes;
@@ -620,9 +648,16 @@ export declare function createDomainRuntimeSlices<State extends DomainRuntimeSta
620
648
  };
621
649
  };
622
650
  };
651
+ /**
652
+ * Writers only the runtime that owns the host-property mirror may call, kept off the public
653
+ * `actions`: the host sets `locale` on the element, and the mirror copies it here.
654
+ */
655
+ hostMirrorActions: {
656
+ setLocale: (locale: string) => void;
657
+ };
623
658
  };
624
659
  export type DomainRuntimeSlices = ReturnType<typeof createDomainRuntimeSlices>;
625
- export declare const createDomainRuntime: (props: Omit<Props<DomainRuntimeState>, 'getSubject'>) => {
660
+ export declare const createDomainRuntime: (props: DomainRuntimeProps) => {
626
661
  initialize: () => {
627
662
  spec: ApplicationSpec;
628
663
  overrides: ApplicationOverrides;
@@ -676,6 +711,7 @@ export declare const createDomainRuntime: (props: Omit<Props<DomainRuntimeState>
676
711
  selectElementSlots: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, {
677
712
  entityElements: Record<string, (props: import("./index.js").CustomPhoenixEntityElementProps) => JSX.Element>;
678
713
  layoutElements: Record<string, (props: import("react").PropsWithChildren) => JSX.Element>;
714
+ assistantFormElements: Record<string, import("react").ComponentType<never>>;
679
715
  hashes: Record<string, string>;
680
716
  }>;
681
717
  selectDataConfig: import("@salsita-ai/common/utils").Selector<import("./index.js").SpecSelectorState, import("../index.js").DataSpec | null>;
@@ -719,6 +755,7 @@ export declare const createDomainRuntime: (props: Omit<Props<DomainRuntimeState>
719
755
  getElementSlots: () => {
720
756
  entityElements: Record<string, (props: import("./index.js").CustomPhoenixEntityElementProps) => JSX.Element>;
721
757
  layoutElements: Record<string, (props: import("react").PropsWithChildren) => JSX.Element>;
758
+ assistantFormElements: Record<string, import("react").ComponentType<never>>;
722
759
  hashes: Record<string, string>;
723
760
  };
724
761
  getDataConfig: () => import("../index.js").DataSpec | null;
@@ -862,24 +899,28 @@ export declare const createDomainRuntime: (props: Omit<Props<DomainRuntimeState>
862
899
  access: {
863
900
  selectConfiguratorRawAccessInfo: import("@salsita-ai/common/utils").Selector<import("./index.js").AccessSelectorState, {
864
901
  raw: string;
902
+ access: import("@salsita-ai/contracts/api").AccessLevel;
865
903
  viewMode: boolean;
866
904
  revisionId: string | undefined;
867
905
  configurationId: string;
868
906
  } | null>;
869
907
  selectAdminRawAccessInfo: import("@salsita-ai/common/utils").Selector<import("./index.js").AccessSelectorState, {
870
908
  raw: string;
909
+ access: import("@salsita-ai/contracts/api").AccessLevel;
871
910
  viewMode: boolean;
872
911
  revisionId: string | undefined;
873
912
  configurationId: string;
874
913
  } | null>;
875
914
  selectConfiguratorAccessInfo: import("@salsita-ai/common/utils").Selector<import("./index.js").AccessSelectorState, {
876
915
  raw: string;
916
+ access: import("@salsita-ai/contracts/api").AccessLevel;
877
917
  viewMode: boolean;
878
918
  revisionId: string | undefined;
879
919
  configurationId: string;
880
920
  }>;
881
921
  selectAdminAccessInfo: import("@salsita-ai/common/utils").Selector<import("./index.js").AccessSelectorState, {
882
922
  raw: string;
923
+ access: import("@salsita-ai/contracts/api").AccessLevel;
883
924
  viewMode: boolean;
884
925
  revisionId: string | undefined;
885
926
  configurationId: string;
@@ -892,24 +933,28 @@ export declare const createDomainRuntime: (props: Omit<Props<DomainRuntimeState>
892
933
  selectAdminConfigurationId: import("@salsita-ai/common/utils").Selector<import("./index.js").AccessSelectorState, string>;
893
934
  getConfiguratorRawAccessInfo: () => {
894
935
  raw: string;
936
+ access: import("@salsita-ai/contracts/api").AccessLevel;
895
937
  viewMode: boolean;
896
938
  revisionId: string | undefined;
897
939
  configurationId: string;
898
940
  } | null;
899
941
  getAdminRawAccessInfo: () => {
900
942
  raw: string;
943
+ access: import("@salsita-ai/contracts/api").AccessLevel;
901
944
  viewMode: boolean;
902
945
  revisionId: string | undefined;
903
946
  configurationId: string;
904
947
  } | null;
905
948
  getConfiguratorAccessInfo: () => {
906
949
  raw: string;
950
+ access: import("@salsita-ai/contracts/api").AccessLevel;
907
951
  viewMode: boolean;
908
952
  revisionId: string | undefined;
909
953
  configurationId: string;
910
954
  };
911
955
  getAdminAccessInfo: () => {
912
956
  raw: string;
957
+ access: import("@salsita-ai/contracts/api").AccessLevel;
913
958
  viewMode: boolean;
914
959
  revisionId: string | undefined;
915
960
  configurationId: string;
@@ -924,6 +969,8 @@ export declare const createDomainRuntime: (props: Omit<Props<DomainRuntimeState>
924
969
  webComponent: {
925
970
  selectReadonly: import("@salsita-ai/common/utils").Selector<import("./index.js").WebComponentSelectorState, boolean>;
926
971
  getReadonly: () => boolean;
972
+ selectLocale: import("@salsita-ai/common/utils").Selector<import("./index.js").WebComponentSelectorState, string>;
973
+ getLocale: () => string;
927
974
  getWebcomponentGeneration: () => number;
928
975
  };
929
976
  domainContext: {
@@ -997,6 +1044,7 @@ export declare const createDomainRuntime: (props: Omit<Props<DomainRuntimeState>
997
1044
  getMigrate: () => import("../index.js").MigrateFunction<import("../index.js").DomainEntity<string>>;
998
1045
  getActiveMode: () => import("../index.js").DomainMode;
999
1046
  getIsInitialized: () => boolean;
1047
+ getIsViewMode: () => boolean;
1000
1048
  getComponentReaderIndexes: () => import("./index.js").ComponentReaderIndexes;
1001
1049
  getStoreRuntimeDependencies: () => {
1002
1050
  componentReaderIndexes: import("./index.js").ComponentReaderIndexes;
@@ -1106,6 +1154,7 @@ export declare const createDomainRuntime: (props: Omit<Props<DomainRuntimeState>
1106
1154
  getMigrate: () => import("../index.js").MigrateFunction<import("../index.js").DomainEntity<string>>;
1107
1155
  getActiveMode: () => import("../index.js").DomainMode;
1108
1156
  getIsInitialized: () => boolean;
1157
+ getIsViewMode: () => boolean;
1109
1158
  getComponentReaderIndexes: () => import("./index.js").ComponentReaderIndexes;
1110
1159
  getStoreRuntimeDependencies: () => {
1111
1160
  componentReaderIndexes: import("./index.js").ComponentReaderIndexes;
@@ -1210,6 +1259,13 @@ export declare const createDomainRuntime: (props: Omit<Props<DomainRuntimeState>
1210
1259
  };
1211
1260
  };
1212
1261
  };
1262
+ /**
1263
+ * Writers only the runtime that owns the host-property mirror may call, kept off the public
1264
+ * `actions`: the host sets `locale` on the element, and the mirror copies it here.
1265
+ */
1266
+ hostMirrorActions: {
1267
+ setLocale: (locale: string) => void;
1268
+ };
1213
1269
  getState: () => DomainRuntimeState;
1214
1270
  subscribe: (callback: () => void) => () => void;
1215
1271
  };
@@ -1 +1 @@
1
- import{BehaviorSubject as e}from"rxjs";import{createAccessInfoActions as t,createAccessInfoSelectors as n,initializeAccessInfo as a}from"./access/index.js";import{createDomainContextActions as o,createDomainContextSelectors as i,initializeDomainContext as s}from"./domain-context/index.js";import{createDomainDataActions as r,createDomainDataSelectors as m,initializeDomainData as l}from"./domain-data/index.js";import{createDomainServicesSelectors as d}from"./domain-services/index.js";import{createEnvironmentActions as c,createEnvironmentSelectors as u,initializeEnvironment as v}from"./environment/index.js";import{createLoadedDataActions as x,createLoadedDataSelectors as p,initializeLoadedData as S}from"./loaded-data/index.js";import{createOverridesActions as f,createOverridesSelectors as g,initializeOverrides as C}from"./overrides/index.js";import{createSessionContextActions as D,createSessionContextSelectors as b,initializeSessionContext as j}from"./session-context/index.js";import{createSpecActions as w,createSpecSelectors as y,initializeSpec as E}from"./spec/index.js";import{createWebComponentActions as z,createWebComponentSelectors as R,initializeWebComponent as T}from"./web-component/index.js";export function createDomainRuntimeSlices(e){let{config:h,getSubject:A,services:I,getExtensionSystems:L}=e,O=w({setSpec:e=>{let t=A(),n=e(t.value.spec);t.next({...t.value,spec:n})}}),W=y({getState:()=>A().value}),k=d({services:I,specSelectors:W}),q=f({setOverrides:e=>{let t=A(),n=e(t.value.overrides);t.next({...t.value,overrides:n})}}),B=g({getState:()=>A().value}),F=u({getState:()=>A().value,overridesSelectors:B}),G=c({setEnvironment:e=>{let t=A(),n=e(t.value.environment);t.next({...t.value,environment:n})}}),H=x({setLoadedData:e=>{let t=A(),n=e(t.value.loadedData);t.next({...t.value,loadedData:n})}}),J=p({getState:()=>A().value}),K=r({setDomainDataState:e=>{let t=A(),n=e(t.value.domainData);t.next({...t.value,domainData:n})}}),M=m({getState:()=>A().value,overridesSelectors:B}),N=D({setSessionContextState:e=>{let t=A(),n=e(t.value.sessionContext);t.next({...t.value,sessionContext:n})}}),P=b({getState:()=>A().value,overridesSelectors:B}),Q=t({setAccessInfoState:e=>{let t=A(),n=e(t.value.access);t.next({...t.value,access:n})}}),U=n({getState:()=>A().value,overridesSelectors:B}),V=z({setWebComponentState:e=>{let t=A(),n=e(t.value.webComponent);t.next({...t.value,webComponent:n})}}),X=R({getState:()=>A().value}),Y=o({setDomainContextState:e=>{let t=A(),n=e(t.value.domainContext);t.next({...t.value,domainContext:n})}}),Z={configurator:i({applicationType:"configurator",getState:()=>A().value,actions:Y.configurator,getExtensionSystems:()=>L?.("configurator")??[],specSelectors:W,accessSelectors:U,webComponentSelectors:X,domainDataSelectors:M,sessionContextSelectors:P,domainServicesSelectors:k,environmentSelectors:F}),admin:i({applicationType:"admin",getState:()=>A().value,actions:Y.admin,getExtensionSystems:()=>L?.("admin")??[],specSelectors:W,accessSelectors:U,webComponentSelectors:X,domainDataSelectors:M,sessionContextSelectors:P,domainServicesSelectors:k,environmentSelectors:F})};return{initialize:()=>({spec:E(h),overrides:C(),environment:v(h),loadedData:S(),domainData:l(),sessionContext:j(),access:a(),webComponent:T(),domainContext:s()}),selectors:{domainServices:k,spec:W,overrides:B,environment:F,loadedData:J,domainData:M,sessionContext:P,access:U,webComponent:X,domainContext:Z},actions:{spec:O,overrides:q,environment:G,loadedData:H,domainData:K,sessionContext:N,access:Q,webComponent:V,domainContext:Y}}}export const createDomainRuntime=t=>{let{config:n,services:a,getExtensionSystems:o}=t,i=null,s=createDomainRuntimeSlices({config:n,getSubject:()=>{if(!i)throw Error("Subject not yet initialized!");return i},services:a,getExtensionSystems:o});return i=new e(s.initialize()),{...s,getState:()=>i.value,subscribe:e=>{let t=i.subscribe(()=>e());return()=>t.unsubscribe()}}};
1
+ import{BehaviorSubject as e}from"rxjs";import{createAccessInfoActions as t,createAccessInfoSelectors as n,initializeAccessInfo as a}from"./access/index.js";import{applicationFromConfig as o}from"./application.js";import{createDomainContextActions as i,createDomainContextSelectors as s,initializeDomainContext as r}from"./domain-context/index.js";import{createDomainDataActions as m,createDomainDataSelectors as l,initializeDomainData as c}from"./domain-data/index.js";import{createDomainServicesSelectors as d}from"./domain-services/index.js";import{createEnvironmentActions as u,createEnvironmentSelectors as v,initializeEnvironment as p}from"./environment/index.js";import{createLoadedDataActions as x,createLoadedDataSelectors as S,initializeLoadedData as f}from"./loaded-data/index.js";import{createOverridesActions as g,createOverridesSelectors as C,initializeOverrides as D}from"./overrides/index.js";import{createSessionContextActions as b,createSessionContextSelectors as j,initializeSessionContext as w}from"./session-context/index.js";import{createSpecActions as y,createSpecSelectors as E}from"./spec/index.js";import{createWebComponentActions as z,createWebComponentSelectors as R,initializeWebComponent as h}from"./web-component/index.js";export function createDomainRuntimeSlices(e){let{getSubject:A,services:T,getExtensionSystems:I}=e,L=y({setSpec:e=>{let t=A(),n=e(t.value.spec);t.next({...t.value,spec:n})}}),M=E({getState:()=>A().value}),O=d({services:T,specSelectors:M}),W=g({setOverrides:e=>{let t=A(),n=e(t.value.overrides);t.next({...t.value,overrides:n})}}),k=C({getState:()=>A().value}),q=v({getState:()=>A().value,overridesSelectors:k}),B=u({setEnvironment:e=>{let t=A(),n=e(t.value.environment);t.next({...t.value,environment:n})}}),F=x({setLoadedData:e=>{let t=A(),n=e(t.value.loadedData);t.next({...t.value,loadedData:n})}}),G=S({getState:()=>A().value}),H=m({setDomainDataState:e=>{let t=A(),n=e(t.value.domainData);t.next({...t.value,domainData:n})}}),J=l({getState:()=>A().value,overridesSelectors:k}),K=b({setSessionContextState:e=>{let t=A(),n=e(t.value.sessionContext);t.next({...t.value,sessionContext:n})}}),N=j({getState:()=>A().value,overridesSelectors:k}),P=t({setAccessInfoState:e=>{let t=A(),n=e(t.value.access);t.next({...t.value,access:n})}}),Q=n({getState:()=>A().value,overridesSelectors:k}),{setLocale:U,...V}=z({setWebComponentState:e=>{let t=A(),n=e(t.value.webComponent);t.next({...t.value,webComponent:n})}}),X=R({getState:()=>A().value}),Y=i({setDomainContextState:e=>{let t=A(),n=e(t.value.domainContext);t.next({...t.value,domainContext:n})}}),Z={configurator:s({applicationType:"configurator",getState:()=>A().value,actions:Y.configurator,getExtensionSystems:()=>I?.("configurator")??[],specSelectors:M,accessSelectors:Q,webComponentSelectors:X,domainDataSelectors:J,sessionContextSelectors:N,domainServicesSelectors:O,environmentSelectors:q}),admin:s({applicationType:"admin",getState:()=>A().value,actions:Y.admin,getExtensionSystems:()=>I?.("admin")??[],specSelectors:M,accessSelectors:Q,webComponentSelectors:X,domainDataSelectors:J,sessionContextSelectors:N,domainServicesSelectors:O,environmentSelectors:q})};return{initialize:()=>{let t=e.application??o(e.config);return{spec:t.spec,overrides:D(),environment:p(t.environment),loadedData:f(),domainData:c(),sessionContext:w(),access:a(),webComponent:h(),domainContext:r()}},selectors:{domainServices:O,spec:M,overrides:k,environment:q,loadedData:G,domainData:J,sessionContext:N,access:Q,webComponent:X,domainContext:Z},actions:{spec:L,overrides:W,environment:B,loadedData:F,domainData:H,sessionContext:K,access:P,webComponent:V,domainContext:Y},hostMirrorActions:{setLocale:U}}}export const createDomainRuntime=t=>{let n=null,a=createDomainRuntimeSlices({...t,getSubject:()=>{if(!n)throw Error("Subject not yet initialized!");return n}});return n=new e(a.initialize()),{...a,getState:()=>n.value,subscribe:e=>{let t=n.subscribe(()=>e());return()=>t.unsubscribe()}}};
@@ -2,4 +2,4 @@ import type { AnyApplicationConfig } from '../../application/index.js';
2
2
  import type { ApplicationEnvironmentConfig } from './types.js';
3
3
  export declare const GOD_MODE_SESSION_STORAGE_KEY = "salsita-god-mode";
4
4
  export declare const isNotRegisteredDeploymentId: (deploymentId: string) => boolean;
5
- export declare const initializeEnvironment: (config: AnyApplicationConfig) => ApplicationEnvironmentConfig;
5
+ export declare const initializeEnvironment: (config: Pick<AnyApplicationConfig, 'defaultEnvs' | 'deploymentId' | 'isDev' | 'persistence'>) => ApplicationEnvironmentConfig;
@@ -18,7 +18,7 @@ export interface ApplicationEnvironmentConfig {
18
18
  /**
19
19
  * Whether the maintenance "god mode" is enabled — it unlocks destructive admin tooling
20
20
  * (eg. the maintenance menu). Seeded from session storage during mount and toggled at
21
- * runtime via the `window.__salsita.setGodMode` global (see `registerGodModeGlobal`).
21
+ * runtime via the `window.__salsita.setGodMode` global, per runtime (see `SetGodMode`).
22
22
  */
23
23
  readonly godMode: boolean;
24
24
  /**
@@ -0,0 +1,21 @@
1
+ import { type ImplementationError } from './implementation-error.js';
2
+ /**
3
+ * Gathers the implementation errors of one application start. Checks that do not depend on each
4
+ * other run through `attempt`, so that the failure of one does not hide the failures of the others.
5
+ */
6
+ export interface ImplementationErrorCollector {
7
+ /**
8
+ * Runs one independent check. An implementation error it throws is recorded and `fallback` is
9
+ * returned, so the checks after it still run. Anything else it throws propagates.
10
+ */
11
+ readonly attempt: <T>(check: () => T, fallback: T) => T;
12
+ readonly add: (error: ImplementationError) => void;
13
+ /** The errors recorded so far, in the order they were recorded. A host that reports them itself, such as the editor, reads them here instead of throwing them. */
14
+ readonly recorded: () => readonly ImplementationError[];
15
+ /**
16
+ * Throws the recorded errors as one {@link ImplementationErrors}, in the order they were
17
+ * recorded. Does nothing when there are none.
18
+ */
19
+ readonly throwIfAny: () => void;
20
+ }
21
+ export declare const createImplementationErrorCollector: () => ImplementationErrorCollector;
@@ -0,0 +1 @@
1
+ import{isImplementationError as r}from"./implementation-error.js";import{ImplementationErrors as t,isImplementationErrors as e}from"./implementation-errors.js";export const createImplementationErrorCollector=()=>{let o=[],n=r=>{o.push(r)};return{add:n,attempt:(t,o)=>{try{return t()}catch(t){if(e(t))return t.errors.forEach(n),o;if(r(t))return n(t),o;throw t}},recorded:()=>[...o],throwIfAny:()=>{if(o.length>0)throw new t(o)}}};
@@ -0,0 +1,46 @@
1
+ /**
2
+ * What kind of mistake an {@link ImplementationError} reports. A host that shows the error, such as
3
+ * a webhook log, reads the code instead of parsing the message.
4
+ *
5
+ * - `MISSING_EXPORT`: a convention file exports nothing where its folder requires an export.
6
+ * - `INVALID_EXPORT`: a convention file exports a value that does not match its folder's contract.
7
+ * - `MISSING_IMPLEMENTATION`: the spec declares something that no project file implements.
8
+ * - `DUPLICATE_DEFINITION`: two files define what only one may define.
9
+ * - `INVALID_CONFIGURATION`: the application's configuration is incomplete or contradictory.
10
+ * - `STARTUP_FAILED`: project or SDK code threw while the application was starting.
11
+ */
12
+ export type ImplementationErrorCode = 'MISSING_EXPORT' | 'INVALID_EXPORT' | 'MISSING_IMPLEMENTATION' | 'DUPLICATE_DEFINITION' | 'INVALID_CONFIGURATION' | 'STARTUP_FAILED';
13
+ /** The parts an {@link ImplementationError} is made of. Its message is built from them. */
14
+ export interface ImplementationErrorProps {
15
+ readonly code: ImplementationErrorCode;
16
+ /** Project-relative path of the file to fix, or `null` when the mistake belongs to no single file. */
17
+ readonly origin: string | null;
18
+ /** What went wrong, without the file name and without a full stop. */
19
+ readonly problem: string;
20
+ /** What the SDK requires at that place, when the mistake is a wrong value. */
21
+ readonly expected?: string;
22
+ /** What it found instead. It is part of the message only together with `expected`. */
23
+ readonly received?: string;
24
+ /** What the developer can do to fix it, as one or more full sentences. */
25
+ readonly fix: string;
26
+ /** What was thrown, when the error reports a failure of other code. */
27
+ readonly cause?: unknown;
28
+ }
29
+ /**
30
+ * A mistake in a project's implementation that stops its application from starting: a convention
31
+ * file with the wrong export, a definition made twice, a project file that throws.
32
+ *
33
+ * The checks the domain runtime runs on a project's files throw it, so that every host of the
34
+ * runtime (the web component, the editor, a webhook) can tell it from a defect of its own and report
35
+ * it in its own medium. `message` is the whole report as one text; the fields hold its parts.
36
+ */
37
+ export declare class ImplementationError extends Error {
38
+ readonly code: ImplementationErrorCode;
39
+ readonly origin: string | null;
40
+ readonly problem: string;
41
+ readonly expected: string | null;
42
+ readonly received: string | null;
43
+ readonly fix: string;
44
+ constructor(props: ImplementationErrorProps);
45
+ }
46
+ export declare const isImplementationError: (error: unknown) => error is ImplementationError;
@@ -0,0 +1 @@
1
+ export class ImplementationError extends Error{code;origin;problem;expected;received;fix;constructor(e){let i,r,o;super((i=null===e.origin?"":` in ${e.origin}`,r=void 0===e.received?"":`, but got ${e.received}`,o=void 0===e.expected?"":`: expected ${e.expected}${r}`,`${e.problem}${i}${o}. ${e.fix}`),void 0===e.cause?void 0:{cause:e.cause}),this.name="ImplementationError",this.code=e.code,this.origin=e.origin,this.problem=e.problem,this.expected=e.expected??null,this.received=e.received??null,this.fix=e.fix}}export const isImplementationError=e=>e instanceof ImplementationError;
@@ -0,0 +1,13 @@
1
+ import type { ImplementationError } from './implementation-error.js';
2
+ /**
3
+ * Every {@link ImplementationError} one start of an application found, reported together, so that a
4
+ * developer with four wrong files reads four errors instead of fixing them one reload at a time.
5
+ *
6
+ * The message of a list with one error is that error's message. The message of a longer list is a
7
+ * headline with the count, followed by one numbered line per error in the order of `errors`.
8
+ */
9
+ export declare class ImplementationErrors extends Error {
10
+ readonly errors: readonly ImplementationError[];
11
+ constructor(errors: readonly ImplementationError[]);
12
+ }
13
+ export declare const isImplementationErrors: (error: unknown) => error is ImplementationErrors;
@@ -0,0 +1 @@
1
+ export class ImplementationErrors extends Error{errors;constructor(r){super((r=>{let[e]=r;return 1===r.length&&e?e.message:[`The application cannot start: ${r.length} implementation errors were found.`,...r.map((r,e)=>`${e+1}. ${r.message}`)].join("\n")})(r)),this.name="ImplementationErrors",this.errors=r}}export const isImplementationErrors=r=>r instanceof ImplementationErrors;
@@ -0,0 +1,4 @@
1
+ export { type ImplementationErrorCode, type ImplementationErrorProps, ImplementationError, isImplementationError, } from './implementation-error.js';
2
+ export { type ImplementationErrorCollector, createImplementationErrorCollector, } from './implementation-error-collector.js';
3
+ export { ImplementationErrors, isImplementationErrors } from './implementation-errors.js';
4
+ export { type StartupStage, toImplementationErrors } from './to-implementation-errors.js';
@@ -0,0 +1 @@
1
+ export{ImplementationError,isImplementationError}from"./implementation-error.js";export{createImplementationErrorCollector}from"./implementation-error-collector.js";export{ImplementationErrors,isImplementationErrors}from"./implementation-errors.js";export{toImplementationErrors}from"./to-implementation-errors.js";
@@ -0,0 +1,10 @@
1
+ import { ImplementationErrors } from './implementation-errors.js';
2
+ /** The step of an application start during which a failure that the SDK did not raise itself was caught. */
3
+ export type StartupStage = 'import' | 'initialize' | 'render';
4
+ /**
5
+ * Turns whatever stopped an application from starting into a list of implementation errors, so that
6
+ * a host handles one shape. A list is passed through and a single implementation error becomes a
7
+ * list of one. Anything else, such as a project file that throws while it loads, becomes one
8
+ * `STARTUP_FAILED` error that names the stage and keeps what was thrown as its `cause`.
9
+ */
10
+ export declare const toImplementationErrors: (error: unknown, stage: StartupStage) => ImplementationErrors;
@@ -0,0 +1 @@
1
+ import{ImplementationError as e,isImplementationError as i}from"./implementation-error.js";import{ImplementationErrors as t,isImplementationErrors as r}from"./implementation-errors.js";let n={import:"while its code was loading",initialize:"while its runtime was initializing",render:"while it was rendering"};export const toImplementationErrors=(o,a)=>r(o)?o:i(o)?new t([o]):new t([new e({code:"STARTUP_FAILED",origin:null,problem:`The application failed ${n[a]}: ${o instanceof Error?o.message:String(o)}`,fix:"Read the stack trace of the cause to find the file that threw, and fix the code it points to.",cause:o})]);
@@ -1,6 +1,8 @@
1
1
  export * from './domain-runtime.js';
2
+ export { type Application, applicationFromConfig } from './application.js';
2
3
  export * from './domain-context/index.js';
3
4
  export * from './domain-services/index.js';
5
+ export { type ImplementationErrorCode, type ImplementationErrorCollector, type ImplementationErrorProps, type StartupStage, ImplementationError, ImplementationErrors, createImplementationErrorCollector, isImplementationError, isImplementationErrors, toImplementationErrors, } from './errors/index.js';
4
6
  export * from './spec/index.js';
5
7
  export * from './environment/index.js';
6
8
  export * from './access/index.js';
@@ -1 +1 @@
1
- export*from"./domain-runtime.js";export*from"./domain-context/index.js";export*from"./domain-services/index.js";export*from"./spec/index.js";export*from"./environment/index.js";export*from"./access/index.js";export*from"./overrides/index.js";export*from"./loaded-data/index.js";export*from"./domain-data/index.js";export*from"./session-context/index.js";export*from"./web-component/index.js";
1
+ export*from"./domain-runtime.js";export{applicationFromConfig}from"./application.js";export*from"./domain-context/index.js";export*from"./domain-services/index.js";export{ImplementationError,ImplementationErrors,createImplementationErrorCollector,isImplementationError,isImplementationErrors,toImplementationErrors}from"./errors/index.js";export*from"./spec/index.js";export*from"./environment/index.js";export*from"./access/index.js";export*from"./overrides/index.js";export*from"./loaded-data/index.js";export*from"./domain-data/index.js";export*from"./session-context/index.js";export*from"./web-component/index.js";
@@ -4,6 +4,6 @@ export * from './actions.js';
4
4
  export * from './create-violation-expressions.js';
5
5
  export * from './initialize.js';
6
6
  export * from './memoize-expression.js';
7
- export { type PhoenixEntityElementProps, type PhoenixEntityElementRegistration, type PhoenixLayoutElementRegistration, type PhoenixIconRegistration, type ElementRegistration, type CustomPhoenixEntityElementProps, type PhoenixLayoutElementDefinition, type PhoenixEntityElementDefinition, type CreateCustomPhoenixLayoutElement, type CreateCustomPhoenixEntityElement, createPhoenixLayoutElement, createPhoenixEntityElement, createCustomPhoenixLayoutElement, createCustomPhoenixEntityElement, resolveElementModule, resolveElementModules, type PhoenixHandlerDefinition, type SystemPhoenixHandlerDefinition, type PhoenixHandlerRegistration, type SystemPhoenixHandlerRegistration, type SystemPhoenixAsyncHandlerDefinition, type SystemPhoenixAsyncHandlerRegistration, type HandlerRegistration, type CreatePhoenixHandler, createPhoenixHandler, createSystemPhoenixHandler, createSystemPhoenixAsyncHandler, resolveHandlerModule, resolveHandlerModules, type ProjectModule, resolveActionModules, resolveComponentOpticModules, type ExpressionModule, resolveExpressionModules, resolveImportedTransformers, resolveTransformerModule, resolveTransformerModules, resolveInvariantModules, } from './module-checks/index.js';
7
+ export { type PhoenixEntityElementProps, type PhoenixEntityElementRegistration, type PhoenixLayoutElementRegistration, type PhoenixIconRegistration, type AssistantFormElementRegistration, type ElementRegistration, type CustomPhoenixEntityElementProps, type PhoenixLayoutElementDefinition, type PhoenixEntityElementDefinition, type CreateCustomPhoenixLayoutElement, type CreateCustomPhoenixEntityElement, createPhoenixLayoutElement, createPhoenixEntityElement, createCustomPhoenixLayoutElement, createCustomPhoenixEntityElement, createAssistantFormElement, findAssistantFormElementErrors, resolveElementModule, resolveElementModules, type PhoenixHandlerDefinition, type SystemPhoenixHandlerDefinition, type PhoenixHandlerRegistration, type SystemPhoenixHandlerRegistration, type SystemPhoenixAsyncHandlerDefinition, type SystemPhoenixAsyncHandlerRegistration, type HandlerRegistration, type CreatePhoenixHandler, createPhoenixHandler, createSystemPhoenixHandler, createSystemPhoenixAsyncHandler, resolveHandlerModule, resolveHandlerModules, type ProjectModule, resolveActionModules, resolveComponentOpticModules, type ExpressionModule, resolveExpressionModules, type ValuedExpressions, mergeExpressionModules, resolveImportedTransformers, resolveTransformerModule, resolveTransformerModules, resolveInvariantModules, } from './module-checks/index.js';
8
8
  export * from './prepare-action-implementations.js';
9
9
  export * from './prepare-domain-expressions.js';
@@ -1 +1 @@
1
- export*from"./selectors.js";export*from"./actions.js";export*from"./create-violation-expressions.js";export*from"./initialize.js";export*from"./memoize-expression.js";export{createPhoenixLayoutElement,createPhoenixEntityElement,createCustomPhoenixLayoutElement,createCustomPhoenixEntityElement,resolveElementModule,resolveElementModules,createPhoenixHandler,createSystemPhoenixHandler,createSystemPhoenixAsyncHandler,resolveHandlerModule,resolveHandlerModules,resolveActionModules,resolveComponentOpticModules,resolveExpressionModules,resolveImportedTransformers,resolveTransformerModule,resolveTransformerModules,resolveInvariantModules}from"./module-checks/index.js";export*from"./prepare-action-implementations.js";export*from"./prepare-domain-expressions.js";
1
+ export*from"./selectors.js";export*from"./actions.js";export*from"./create-violation-expressions.js";export*from"./initialize.js";export*from"./memoize-expression.js";export{createPhoenixLayoutElement,createPhoenixEntityElement,createCustomPhoenixLayoutElement,createCustomPhoenixEntityElement,createAssistantFormElement,findAssistantFormElementErrors,resolveElementModule,resolveElementModules,createPhoenixHandler,createSystemPhoenixHandler,createSystemPhoenixAsyncHandler,resolveHandlerModule,resolveHandlerModules,resolveActionModules,resolveComponentOpticModules,resolveExpressionModules,mergeExpressionModules,resolveImportedTransformers,resolveTransformerModule,resolveTransformerModules,resolveInvariantModules}from"./module-checks/index.js";export*from"./prepare-action-implementations.js";export*from"./prepare-domain-expressions.js";
@@ -1,3 +1,14 @@
1
1
  import type { AnyApplicationConfig } from '../../application/index.js';
2
2
  import type { ApplicationSpec } from './types.js';
3
+ /**
4
+ * Builds the runtime spec of an application from its config.
5
+ *
6
+ * Project files reach the config unchecked; this is where each one is held to its folder's
7
+ * contract. Every file is checked on its own, and all the files that break their contract are
8
+ * thrown together as one `ImplementationErrors`. Its errors are ordered by folder (handlers,
9
+ * elements, transformers, configurator components, admin components) and inside a folder by the
10
+ * order of the config's list. No spec is returned when a file is wrong, so nothing that reads the
11
+ * spec, such as the transformer selection, runs on a list with a file missing and reports the
12
+ * mistake a second time.
13
+ */
3
14
  export declare const initializeSpec: (config: AnyApplicationConfig) => ApplicationSpec;
@@ -1 +1 @@
1
- import{SessionRole as e}from"@salsita-ai/contracts/api";import{resolveComponentOpticModules as t,resolveElementModules as a,resolveHandlerModules as n,resolveImportedTransformers as o,resolveTransformerModules as i}from"./module-checks/index.js";export const initializeSpec=s=>{let r=s.adminDomain.presets[0];if(!r)throw Error("Cannot register application spec because admin preset is required.");let m=n(s.handlers),c=a(s.elements),d=(e=>{let t={};for(let a of e)t[a.name]=(void 0)??a.name;return t})(m),l=(e=>{let t={},a=0;for(let n of e)if("entity"===n.type||"layout"===n.type)t[n.name]=(void 0)??n.name;else{let e=`icon:${a}`;t[e]=(void 0)??`${e}:${n.elements.length}`,a+=1}return t})(c),p=i(s.transformers?.importedTransformers??[]),y=s.transformers?.specTransformers??[];return{version:s.version,dataConfig:s.dataSpec??null,chunks:s.chunks,publishedDataHash:s.publishedDataHash,initialPublishedData:s.initialPublishedData,canCreate:s.features?.acl?.canCreate??Object.values(e),enableAdminRelease:s.features?.enableAdminRelease??!1,textLanguages:s.domain.textLanguages??s.adminDomain.textLanguages??["en"],baseResourcesUrl:s.resources?.baseResourcesUrl??s.defaultEnvs?.resourcesUrl??"",configurator:{factory:s.domain.domainFactory,presets:s.domain.presets,aliasMap:s.domain.domainFactory.context.aliasMap,entityReflections:s.domain.domainFactory.context.entityReflections,$entityReflections:s.domain.domainFactory.context.$entityReflections,expressions:s.domain.domainFactory.context.expressions,actions:s.domain.domainFactory.context.actions,actionImplementations:s.domain.domainFactory.context.actionImplementations,allowedRootEntityTypes:s.domain.domainFactory.context.allowedRootEntityTypes,migrate:s.domain.domainFactory.context.migrate,componentOptics:t(s.domain.componentOptics),createTransformers:e=>o(p,y,e),navigationStates:s.navigation?.navigationStates??[],viewStates:s.navigation?.viewStates??[],toolStates:s.navigation?.toolStates??[],exportStates:s.navigation?.exportStates??[],handlers:m,handlerHashes:d,elements:c,elementHashes:l,appLoader:s.ui?.appLoader??"universal",preview:s.ui?.preview??"auto",alwaysExpand:s.ui?.alwaysExpand??!1,theme:s.ui?.theme??{},assistant:s.assistant??null,deploymentQueryDisabled:s.resources?.deploymentQueryDisabled??!1,prefetchTextureUrls:s.resources?.prefetchTextureUrls??[],modelVersion:s.domain.domainFactory.modelVersion},admin:{factory:s.adminDomain.domainFactory,modelVersion:s.adminDomain.domainFactory.modelVersion,aliasMap:s.adminDomain.domainFactory.context.aliasMap,entityReflections:s.adminDomain.domainFactory.context.entityReflections,$entityReflections:s.adminDomain.domainFactory.context.$entityReflections,expressions:s.adminDomain.domainFactory.context.expressions,actions:s.adminDomain.domainFactory.context.actions,actionImplementations:s.adminDomain.domainFactory.context.actionImplementations,allowedRootEntityTypes:s.adminDomain.domainFactory.context.allowedRootEntityTypes,migrate:s.adminDomain.domainFactory.context.migrate,preset:r,componentOptics:t(s.adminDomain.componentOptics),navigationStates:s.adminNavigation?.navigationStates??[],viewStates:s.adminNavigation?.viewStates??[],handlers:m,handlerHashes:d,elements:c,elementHashes:l}}};
1
+ import{SessionRole as e}from"@salsita-ai/contracts/api";import{createImplementationErrorCollector as t}from"../errors/index.js";import{resolveComponentOpticModules as a,resolveElementModule as n,resolveHandlerModule as o,resolveImportedTransformers as i,resolveTransformerModule as s}from"./module-checks/index.js";let r=(e,t,a)=>e.flatMap(e=>a.attempt(()=>t(e),[]));export const initializeSpec=m=>{let c=m.adminDomain.presets[0];if(!c)throw Error("Cannot register application spec because admin preset is required.");let d=t(),l=r(m.handlers,o,d),p=r(m.elements,n,d),y=r(m.transformers?.importedTransformers??[],e=>[s(e)],d),u=r(m.domain.componentOptics,e=>a([e]),d),f=r(m.adminDomain.componentOptics,e=>a([e]),d);d.throwIfAny();let x=(e=>{let t={};for(let a of e)t[a.name]=(void 0)??a.name;return t})(l),g=(e=>{let t={},a=0;for(let n of e)if("assistantFormElement"!==n.type)if("entity"===n.type||"layout"===n.type)t[n.name]=(void 0)??n.name;else{let e=`icon:${a}`;t[e]=(void 0)??`${e}:${n.elements.length}`,a+=1}return t})(p),v=m.transformers?.specTransformers??[];return{version:m.version,dataConfig:m.dataSpec??null,chunks:m.chunks,publishedDataHash:m.publishedDataHash,initialPublishedData:m.initialPublishedData,canCreate:m.features?.acl?.canCreate??Object.values(e),enableAdminRelease:m.features?.enableAdminRelease??!1,textLanguages:m.domain.textLanguages??m.adminDomain.textLanguages??["en"],baseResourcesUrl:m.resources?.baseResourcesUrl??m.defaultEnvs?.resourcesUrl??"",configurator:{factory:m.domain.domainFactory,presets:m.domain.presets,aliasMap:m.domain.domainFactory.context.aliasMap,entityReflections:m.domain.domainFactory.context.entityReflections,$entityReflections:m.domain.domainFactory.context.$entityReflections,expressions:m.domain.domainFactory.context.expressions,actions:m.domain.domainFactory.context.actions,actionImplementations:m.domain.domainFactory.context.actionImplementations,allowedRootEntityTypes:m.domain.domainFactory.context.allowedRootEntityTypes,migrate:m.domain.domainFactory.context.migrate,componentOptics:u,createTransformers:e=>i(y,v,e),navigationStates:m.navigation?.navigationStates??[],viewStates:m.navigation?.viewStates??[],toolStates:m.navigation?.toolStates??[],exportStates:m.navigation?.exportStates??[],handlers:l,handlerHashes:x,elements:p,defaultElements:m.defaultElements??[],elementHashes:g,appLoader:m.ui?.appLoader??"universal",preview:m.ui?.preview??"auto",alwaysExpand:m.ui?.alwaysExpand??!1,theme:m.ui?.theme??{},assistant:m.assistant??null,deploymentQueryDisabled:m.resources?.deploymentQueryDisabled??!1,prefetchTextureUrls:m.resources?.prefetchTextureUrls??[],modelVersion:m.domain.domainFactory.modelVersion},admin:{factory:m.adminDomain.domainFactory,modelVersion:m.adminDomain.domainFactory.modelVersion,aliasMap:m.adminDomain.domainFactory.context.aliasMap,entityReflections:m.adminDomain.domainFactory.context.entityReflections,$entityReflections:m.adminDomain.domainFactory.context.$entityReflections,expressions:m.adminDomain.domainFactory.context.expressions,actions:m.adminDomain.domainFactory.context.actions,actionImplementations:m.adminDomain.domainFactory.context.actionImplementations,allowedRootEntityTypes:m.adminDomain.domainFactory.context.allowedRootEntityTypes,migrate:m.adminDomain.domainFactory.context.migrate,preset:c,componentOptics:f,navigationStates:m.adminNavigation?.navigationStates??[],viewStates:m.adminNavigation?.viewStates??[],handlers:l,handlerHashes:x,elements:p,elementHashes:g}}};
@@ -21,20 +21,23 @@ export type PhoenixIconRegistration = {
21
21
  type: 'icon';
22
22
  elements: ReadonlyArray<(props: SvgIconProps) => JSX.Element>;
23
23
  };
24
- export type ElementRegistration = PhoenixEntityElementRegistration | PhoenixLayoutElementRegistration | PhoenixIconRegistration;
24
+ /**
25
+ * The component of one of the project's own assistant form elements, registered under the name its
26
+ * YAML declares it by in `assistant.formElements`. The component's props depend on the element's
27
+ * role and are typed by `phx.frontend.createAssistantFormElement` from the YAML; the registration
28
+ * itself is untyped, since the panel validates an element's attributes against the very declaration
29
+ * its props are typed from.
30
+ */
31
+ export type AssistantFormElementRegistration = {
32
+ type: 'assistantFormElement';
33
+ name: string;
34
+ element: (props: never) => ReactNode;
35
+ };
36
+ export type ElementRegistration = PhoenixEntityElementRegistration | PhoenixLayoutElementRegistration | PhoenixIconRegistration | AssistantFormElementRegistration;
25
37
  export interface CustomPhoenixEntityElementProps {
26
38
  entityId: DomainEntityId<string>;
27
39
  children?: ReactNode;
28
40
  }
29
- export interface SystemElementRegistry {
30
- layoutElements: Record<string, (props: PropsWithChildren) => JSX.Element>;
31
- entityElements: Record<string, (props: CustomPhoenixEntityElementProps) => JSX.Element>;
32
- }
33
- /**
34
- * Internal registry for system-level elements registered at import time
35
- * via createPhoenixLayoutElement / createPhoenixEntityElement.
36
- */
37
- export declare const systemElementRegistry: SystemElementRegistry;
38
41
  type SchemaOfPhoenixLayoutElement<SCHEMA extends {
39
42
  kind: string;
40
43
  props?: Record<string, unknown>;
@@ -61,7 +64,12 @@ export interface PhoenixLayoutElementDefinition<SCHEMA extends {
61
64
  }>;
62
65
  }
63
66
  /**
64
- * For internal use in PHX only.
67
+ * Returns the component of a built-in layout element definition; it registers nothing. A layout
68
+ * element reaches the runtime only through a registration in `elements` or `defaultElements`.
69
+ *
70
+ * @deprecated Register a layout element with `createCustomPhoenixLayoutElement(name, component)`;
71
+ * the built-in ones are in `defaultConfiguratorElements` and `defaultAdminElements`. This API will
72
+ * be removed in a future version.
65
73
  */
66
74
  export declare const createPhoenixLayoutElement: <SCHEMA extends {
67
75
  kind: string;
@@ -71,6 +79,8 @@ export declare const createPhoenixLayoutElement: <SCHEMA extends {
71
79
  }>;
72
80
  export declare const createCustomPhoenixLayoutElement: (name: string, element: (props: PropsWithChildren) => JSX.Element) => PhoenixLayoutElementRegistration;
73
81
  export type CreateCustomPhoenixLayoutElement = (name: string, element: (props: PropsWithChildren) => JSX.Element) => PhoenixLayoutElementRegistration;
82
+ /** Registers a component as the assistant form element of the name. */
83
+ export declare const createAssistantFormElement: (name: string, element: (props: never) => ReactNode) => AssistantFormElementRegistration;
74
84
  type SchemaOfPhoenixElement<SCHEMA extends {
75
85
  kind: string;
76
86
  props?: Record<string, unknown>;
@@ -95,7 +105,12 @@ export interface PhoenixEntityElementDefinition<SCHEMA extends {
95
105
  component: React.FunctionComponent<SCHEMA['props'] & CustomPhoenixEntityElementProps>;
96
106
  }
97
107
  /**
98
- * For internal use in PHX only.
108
+ * Returns the component of a built-in entity element definition; it registers nothing. An entity
109
+ * element reaches the runtime only through a registration in `elements` or `defaultElements`.
110
+ *
111
+ * @deprecated Register an entity element with `createCustomPhoenixEntityElement(name, component)`;
112
+ * the built-in ones are in `defaultConfiguratorElements` and `defaultAdminElements`. This API will
113
+ * be removed in a future version.
99
114
  */
100
115
  export declare const createPhoenixEntityElement: <SCHEMA extends {
101
116
  kind: string;
@@ -1 +1 @@
1
- import{SHARED_FOLDER_HINT as e,isRecord as t,resolveListModule as n}from"./project-modules.js";export const systemElementRegistry={layoutElements:{},entityElements:{}};export const createPhoenixLayoutElement=e=>(systemElementRegistry.layoutElements[e.schema.properties.kind.enum[0]]=e.component,e.component);export const createCustomPhoenixLayoutElement=(e,t)=>({type:"layout",name:e,element:t});export const createPhoenixEntityElement=e=>(systemElementRegistry.entityElements[e.schema.properties.kind.enum[0]]=e.component,e.component);export const createCustomPhoenixEntityElement=(e,t)=>({type:"entity",name:e,element:t});let o={expected:"an element registration, or an array of them",fix:`Create it with phx.frontend.createCustomPhoenixLayoutElement(...) or phx.frontend.createCustomPhoenixEntityElement(...), ${e}.`},r=e=>!!t(e)&&("icon"===e.type?Array.isArray(e.elements):("entity"===e.type||"layout"===e.type)&&"string"==typeof e.name&&"function"==typeof e.element);export const resolveElementModule=e=>n(e,o,r);export const resolveElementModules=e=>e.flatMap(resolveElementModule);
1
+ import{SHARED_FOLDER_HINT as e,isRecord as t,resolveListModule as o}from"./project-modules.js";export const createPhoenixLayoutElement=e=>e.component;export const createCustomPhoenixLayoutElement=(e,t)=>({type:"layout",name:e,element:t});export const createAssistantFormElement=(e,t)=>({type:"assistantFormElement",name:e,element:t});export const createPhoenixEntityElement=e=>e.component;export const createCustomPhoenixEntityElement=(e,t)=>({type:"entity",name:e,element:t});let n={expected:"an element registration, or an array of them",fix:`Create it with phx.frontend.createCustomPhoenixLayoutElement(...), phx.frontend.createCustomPhoenixEntityElement(...) or phx.frontend.createAssistantFormElement(...), ${e}.`},r=e=>!!t(e)&&("icon"===e.type?Array.isArray(e.elements):("entity"===e.type||"layout"===e.type||"assistantFormElement"===e.type)&&"string"==typeof e.name&&"function"==typeof e.element);export const resolveElementModule=e=>o(e,n,r);export const resolveElementModules=e=>e.flatMap(resolveElementModule);
@@ -0,0 +1,12 @@
1
+ import { ImplementationError } from '../../errors/index.js';
2
+ import type { ElementRegistration } from './element-registration.js';
3
+ /**
4
+ * The mistakes in pairing the project's assistant form elements with their components: an element
5
+ * the YAML declares under `assistant.formElements` that no file in `src/elements/` registers, or
6
+ * that two register, and a registration of a name the YAML does not declare. Spec parsing cannot
7
+ * see which name a file registers, so the application checks this when it starts and on every hot
8
+ * reload, on the registrations of all element files together.
9
+ */
10
+ export declare const findAssistantFormElementErrors: (formElements: ReadonlyArray<{
11
+ readonly name: string;
12
+ }>, elements: readonly ElementRegistration[]) => readonly ImplementationError[];
@@ -0,0 +1 @@
1
+ import{ImplementationError as e}from"../../errors/index.js";export const findAssistantFormElementErrors=(t,n)=>{let s=n.flatMap(e=>"assistantFormElement"===e.type?[e.name]:[]),r=new Set(t.map(({name:e})=>e));return[...t.flatMap(({name:t})=>{let n=s.filter(e=>e===t).length;return 0===n?[new e({code:"MISSING_IMPLEMENTATION",origin:null,problem:`The assistant form element "${t}" declared under assistant.formElements has no component`,fix:`Add a file to src/elements/ that default-exports phx.frontend.createAssistantFormElement('${t}', Component), or remove the element from the YAML.`})]:n>1?[new e({code:"DUPLICATE_DEFINITION",origin:null,problem:`The assistant form element "${t}" is registered by ${n} files in src/elements/`,fix:`Each element has one component. Keep one phx.frontend.createAssistantFormElement('${t}', …) and remove the others.`})]:[]}),...[...new Set(s)].filter(e=>!r.has(e)).map(t=>new e({code:"MISSING_IMPLEMENTATION",origin:null,problem:`A file in src/elements/ registers the assistant form element "${t}", which assistant.formElements does not declare`,fix:`Declare "${t}" under assistant.formElements with its description, role and attributes, so the assistant knows the element, or remove the registration.`}))]};