@salsita-ai/sdk 0.50.0-develop.d81d7591c5 → 0.50.0-develop.d96df76afa

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 (1873) hide show
  1. package/README.md +20 -15
  2. package/dist/admin/create-admin-pages-from-spec.d.ts +1 -1
  3. package/dist/admin/default-admin-elements.d.ts +9 -0
  4. package/dist/admin/default-admin-elements.js +1 -0
  5. package/dist/admin/default-elements/built-in-entity-element.d.ts +10 -0
  6. package/dist/admin/default-elements/built-in-entity-element.js +1 -0
  7. package/dist/admin/default-elements/built-in-layout-element.d.ts +10 -0
  8. package/dist/admin/default-elements/built-in-layout-element.js +1 -0
  9. package/dist/admin/default-elements/index.d.ts +2 -0
  10. package/dist/admin/default-elements/index.js +1 -0
  11. package/dist/admin/index.d.ts +1 -0
  12. package/dist/admin/index.js +1 -1
  13. package/dist/application-spec/caching/content-diff.js +1 -1
  14. package/dist/application-spec/core/application-file.d.ts +0 -2
  15. package/dist/application-spec/core/application-file.js +1 -1
  16. package/dist/application-spec/core/components/component-filter.d.ts +53 -0
  17. package/dist/application-spec/core/components/component-filter.js +1 -0
  18. package/dist/application-spec/core/components/index.d.ts +2 -0
  19. package/dist/application-spec/core/components/index.js +1 -0
  20. package/dist/application-spec/core/components/sdk-code-ref.d.ts +9 -0
  21. package/dist/application-spec/core/components/sdk-code-ref.js +1 -0
  22. package/dist/application-spec/core/enhanced-json-value.d.ts +0 -68
  23. package/dist/application-spec/core/enhanced-json-value.js +1 -1
  24. package/dist/application-spec/core/expressions/index.d.ts +2 -0
  25. package/dist/application-spec/core/expressions/index.js +1 -0
  26. package/dist/application-spec/core/expressions/relation-expression-params.d.ts +11 -0
  27. package/dist/application-spec/core/expressions/sdk-expression-implementation.d.ts +24 -0
  28. package/dist/application-spec/core/expressions/sdk-expression-implementation.js +1 -0
  29. package/dist/application-spec/core/index.d.ts +2 -0
  30. package/dist/application-spec/core/index.js +1 -1
  31. package/dist/application-spec/core/json-value.d.ts +1 -1
  32. package/dist/application-spec/enhanced-json/eval-to-constant.d.ts +14 -0
  33. package/dist/application-spec/enhanced-json/index.d.ts +4 -0
  34. package/dist/application-spec/enhanced-json/index.js +1 -0
  35. package/dist/application-spec/enhanced-json/is-enhanced-json-array.d.ts +2 -0
  36. package/dist/application-spec/enhanced-json/is-enhanced-json-array.js +1 -0
  37. package/dist/application-spec/enhanced-json/resolve-enhanced-json-value.d.ts +18 -0
  38. package/dist/application-spec/enhanced-json/resolve-enhanced-json-value.js +1 -0
  39. package/dist/application-spec/enhanced-json/schema-from-value.d.ts +24 -0
  40. package/dist/application-spec/enhanced-json/schema-from-value.js +1 -0
  41. package/dist/application-spec/enhanced-json/stringify-enhanced-json-value.d.ts +14 -0
  42. package/dist/application-spec/enhanced-json/stringify-enhanced-json-value.js +1 -0
  43. package/dist/application-spec/enhanced-json/validate-enhanced-json-value-caps.d.ts +12 -0
  44. package/dist/application-spec/enhanced-json/validate-enhanced-json-value-caps.js +1 -0
  45. package/dist/application-spec/enhanced-json/validate-no-legacy-code-ref.d.ts +13 -0
  46. package/dist/application-spec/enhanced-json/validate-no-legacy-code-ref.js +1 -0
  47. package/dist/application-spec/errors/diagnostic-codes.d.ts +23 -0
  48. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  49. package/dist/application-spec/errors/diagnostic-messages.d.ts +27 -1
  50. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  51. package/dist/application-spec/generate-application/code/common/code-imports.js +1 -1
  52. package/dist/application-spec/generate-application/code/common/env-reader.js +2 -2
  53. package/dist/application-spec/generate-application/code/common/index.d.ts +1 -0
  54. package/dist/application-spec/generate-application/code/common/index.js +1 -1
  55. package/dist/application-spec/generate-application/code/common/single-quoted-string.d.ts +6 -0
  56. package/dist/application-spec/generate-application/code/common/single-quoted-string.js +1 -0
  57. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  58. package/dist/application-spec/generate-application/code/generate-application-code.d.ts +3 -2
  59. package/dist/application-spec/generate-application/code/generate-application-code.js +1 -1
  60. package/dist/application-spec/generate-application/code/project-scaffolding.d.ts +22 -14
  61. package/dist/application-spec/generate-application/code/project-scaffolding.js +2 -2
  62. package/dist/application-spec/generate-application/code/standalone-app-files.d.ts +2 -2
  63. package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
  64. package/dist/application-spec/generate-application/code/story-files.js +1 -1
  65. package/dist/application-spec/generate-application/code/templates/admin-config.js +3 -0
  66. package/dist/application-spec/generate-application/code/templates/application-types.js +6 -6
  67. package/dist/application-spec/generate-application/code/templates/common/doc-comment.d.ts +2 -0
  68. package/dist/application-spec/generate-application/code/templates/common/doc-comment.js +1 -0
  69. package/dist/application-spec/generate-application/code/templates/common/format-property-key.d.ts +7 -0
  70. package/dist/application-spec/generate-application/code/templates/common/format-property-key.js +1 -0
  71. package/dist/application-spec/generate-application/code/templates/common/schema-to-type-string.js +3 -3
  72. package/dist/application-spec/generate-application/code/templates/configurator-config.js +6 -4
  73. package/dist/application-spec/generate-application/code/templates/configurator-globals.d.ts +2 -1
  74. package/dist/application-spec/generate-application/code/templates/configurator-globals.js +19 -6
  75. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +35 -0
  76. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +5 -0
  77. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.d.ts +1 -0
  78. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.js +1 -0
  79. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.d.ts +1 -1
  80. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.js +7 -7
  81. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.d.ts +4 -2
  82. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.js +1 -1
  83. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +72 -76
  84. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.d.ts +9 -1
  85. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.js +1 -1
  86. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +3 -0
  87. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-presets.js +1 -1
  88. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-relation-expressions.js +1 -1
  89. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.d.ts +6 -8
  90. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.js +21 -21
  91. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.d.ts +1 -1
  92. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.js +2 -2
  93. package/dist/application-spec/generate-application/code/templates/domain-spec/index.d.ts +3 -2
  94. package/dist/application-spec/generate-application/code/templates/domain-spec/index.js +1 -1
  95. package/dist/application-spec/generate-application/code/templates/domain-spec.js +12 -12
  96. package/dist/application-spec/generate-application/code/templates/domain.js +3 -3
  97. package/dist/application-spec/generate-application/code/templates/eslint-config.d.ts +5 -0
  98. package/dist/application-spec/generate-application/code/templates/eslint-config.js +4 -5
  99. package/dist/application-spec/generate-application/code/templates/frontend-config.js +3 -5
  100. package/dist/application-spec/generate-application/code/templates/gitignore.js +0 -3
  101. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +7 -7
  102. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +12 -0
  103. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -0
  104. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.d.ts +43 -0
  105. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +33 -0
  106. package/dist/application-spec/generate-application/code/templates/global-definition/index.d.ts +2 -0
  107. package/dist/application-spec/generate-application/code/templates/global-definition/index.js +1 -1
  108. package/dist/application-spec/generate-application/code/templates/globals.js +24 -43
  109. package/dist/application-spec/generate-application/code/templates/index.d.ts +3 -10
  110. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  111. package/dist/application-spec/generate-application/code/templates/lingui-rc.d.ts +5 -0
  112. package/dist/application-spec/generate-application/code/templates/lingui-rc.js +4 -4
  113. package/dist/application-spec/generate-application/code/templates/prettier-config.d.ts +5 -0
  114. package/dist/application-spec/generate-application/code/templates/prettier-config.js +4 -5
  115. package/dist/application-spec/generate-application/code/templates/root-tsconfig.d.ts +6 -0
  116. package/dist/application-spec/generate-application/code/templates/root-tsconfig.js +2 -0
  117. package/dist/application-spec/generate-application/code/templates/skills/phoenix-cli-skill.js +1 -1
  118. package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.js +66 -42
  119. package/dist/application-spec/generate-application/code/templates/skills/phoenix-feedback-skill.js +5 -5
  120. package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.js +9 -3
  121. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.js +1 -1
  122. package/dist/application-spec/generate-application/code/templates/skills/phoenix-variants-skill.js +2 -2
  123. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +36 -18
  124. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +6 -8
  125. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.d.ts +58 -0
  126. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.js +1 -0
  127. package/dist/application-spec/generate-application/code/templates/spec-code/index.d.ts +2 -0
  128. package/dist/application-spec/generate-application/code/templates/spec-code/index.js +1 -0
  129. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.d.ts +18 -0
  130. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.js +41 -0
  131. package/dist/application-spec/generate-application/code/templates/spec-messages/index.d.ts +1 -0
  132. package/dist/application-spec/generate-application/code/templates/spec-messages/index.js +1 -0
  133. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.d.ts +20 -0
  134. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.js +6 -0
  135. package/dist/application-spec/generate-application/code/templates/story/phx-module.d.ts +8 -2
  136. package/dist/application-spec/generate-application/code/templates/story/phx-module.js +15 -3
  137. package/dist/application-spec/generate-application/code/templates/story/wrapper.d.ts +3 -0
  138. package/dist/application-spec/generate-application/code/templates/story/wrapper.js +2 -1
  139. package/dist/application-spec/generate-application/code/templates/tsconfig.d.ts +5 -0
  140. package/dist/application-spec/generate-application/code/templates/tsconfig.js +1 -1
  141. package/dist/application-spec/generate-application/code/templates/webhook-builders.js +4 -3
  142. package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +6 -1
  143. package/dist/application-spec/generate-application/code/templates/webhook-index.js +10 -1
  144. package/dist/application-spec/generate-application/code/templates/webhooks-config.js +2 -3
  145. package/dist/application-spec/generate-application/index.d.ts +2 -0
  146. package/dist/application-spec/generate-application/index.js +1 -1
  147. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.d.ts +6 -4
  148. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.js +1 -1
  149. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.d.ts +8 -3
  150. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.js +1 -1
  151. package/dist/application-spec/generate-application/runtime/admin-runtime/states-runtime.d.ts +2 -2
  152. package/dist/application-spec/generate-application/runtime/application-runtime.d.ts +19 -7
  153. package/dist/application-spec/generate-application/runtime/application-runtime.js +1 -1
  154. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.d.ts +6 -4
  155. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.js +1 -1
  156. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.d.ts +7 -4
  157. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.js +1 -1
  158. package/dist/application-spec/generate-application/runtime/configurator-runtime/states-runtime.d.ts +2 -2
  159. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.d.ts +43 -0
  160. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.js +1 -0
  161. package/dist/application-spec/generate-application/runtime/factory-data/index.d.ts +3 -0
  162. package/dist/application-spec/generate-application/runtime/factory-data/index.js +1 -0
  163. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.d.ts +13 -0
  164. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.js +1 -0
  165. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.d.ts +16 -0
  166. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.js +1 -0
  167. package/dist/application-spec/generate-application/runtime/migrations/index.d.ts +1 -0
  168. package/dist/application-spec/generate-application/runtime/migrations/index.js +1 -0
  169. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.d.ts +53 -0
  170. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.js +1 -0
  171. package/dist/application-spec/generate-application/runtime/sections/assistant-runtime.d.ts +2 -2
  172. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.d.ts +3 -2
  173. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.js +1 -1
  174. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.d.ts +2 -1
  175. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.js +1 -1
  176. package/dist/application-spec/generate-application/runtime/sections/component-optic.d.ts +5 -1
  177. package/dist/application-spec/generate-application/runtime/sections/component-optic.js +1 -1
  178. package/dist/application-spec/generate-application/runtime/sections/data-runtime.d.ts +4 -4
  179. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.d.ts +7 -4
  180. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +1 -1
  181. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.d.ts +9 -5
  182. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.js +1 -1
  183. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.d.ts +3 -1
  184. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.js +1 -1
  185. package/dist/application-spec/generate-application/runtime/sections/theme-runtime.d.ts +2 -2
  186. package/dist/application-spec/generate-application/runtime/sections/transformers-runtime.d.ts +4 -6
  187. package/dist/application-spec/generate-application/runtime/spec-code/index.d.ts +2 -0
  188. package/dist/application-spec/generate-application/runtime/spec-code/index.js +1 -0
  189. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.d.ts +18 -0
  190. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.js +1 -0
  191. package/dist/application-spec/generate-application/runtime/spec-code/spec-code-module.d.ts +17 -0
  192. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.d.ts +9 -0
  193. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.js +1 -0
  194. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.d.ts +8 -0
  195. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.js +1 -0
  196. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.d.ts +27 -0
  197. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.js +1 -0
  198. package/dist/application-spec/generate-application/runtime-spec/index.d.ts +5 -0
  199. package/dist/application-spec/generate-application/runtime-spec/index.js +1 -0
  200. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.d.ts +68 -0
  201. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.js +1 -0
  202. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.d.ts +40 -0
  203. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.js +1 -0
  204. package/dist/application-spec/index.d.ts +1 -0
  205. package/dist/application-spec/index.js +1 -1
  206. package/dist/application-spec/parse-application-files/categorize/categorize-files.d.ts +34 -0
  207. package/dist/application-spec/parse-application-files/categorize/categorize-files.js +1 -1
  208. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.d.ts +16 -0
  209. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.js +9 -0
  210. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.d.ts +9 -0
  211. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.js +1 -0
  212. package/dist/application-spec/parse-application-files/categorize/module-analysis.d.ts +1 -1
  213. package/dist/application-spec/parse-application-files/categorize/module-analysis.js +1 -1
  214. package/dist/application-spec/parse-application-files/raw-spec/parse-yaml-spec-file.js +1 -1
  215. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +47 -4
  216. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  217. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
  218. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-spec.js +1 -1
  219. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.js +1 -1
  220. package/dist/application-spec/parse-application-files/spec/common/index.d.ts +1 -0
  221. package/dist/application-spec/parse-application-files/spec/common/index.js +1 -1
  222. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.d.ts +3 -0
  223. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.js +1 -0
  224. package/dist/application-spec/parse-application-files/spec/common/value-type/index.d.ts +5 -0
  225. package/dist/application-spec/parse-application-files/spec/common/value-type/index.js +1 -0
  226. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.d.ts +6 -0
  227. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.js +1 -0
  228. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.d.ts +8 -0
  229. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.js +1 -0
  230. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.d.ts +10 -0
  231. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.js +1 -0
  232. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.d.ts +98 -0
  233. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.js +1 -0
  234. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.d.ts +13 -0
  235. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.js +1 -0
  236. package/dist/application-spec/parse-application-files/spec/components/bindings/index.d.ts +2 -0
  237. package/dist/application-spec/parse-application-files/spec/components/bindings/index.js +1 -1
  238. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.d.ts +24 -0
  239. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.js +1 -0
  240. package/dist/application-spec/parse-application-files/spec/components/component-entry.d.ts +1 -9
  241. package/dist/application-spec/parse-application-files/spec/components/component-entry.js +1 -1
  242. package/dist/application-spec/parse-application-files/spec/components/component-filter.d.ts +1 -54
  243. package/dist/application-spec/parse-application-files/spec/components/component-filter.js +1 -1
  244. package/dist/application-spec/parse-application-files/spec/components/component-state-type.d.ts +8 -0
  245. package/dist/application-spec/parse-application-files/spec/components/component-state-type.js +1 -0
  246. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.d.ts +13 -0
  247. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.js +1 -0
  248. package/dist/application-spec/parse-application-files/spec/components/index.d.ts +1 -1
  249. package/dist/application-spec/parse-application-files/spec/components/index.js +1 -1
  250. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.d.ts +14 -0
  251. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.js +1 -0
  252. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.d.ts +6 -0
  253. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.js +1 -1
  254. package/dist/application-spec/parse-application-files/spec/components/user-components.d.ts +7 -4
  255. package/dist/application-spec/parse-application-files/spec/components/user-components.js +1 -1
  256. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.d.ts +24 -0
  257. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.js +1 -0
  258. package/dist/application-spec/parse-application-files/spec/expressions/expression-read.d.ts +13 -0
  259. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.d.ts +9 -0
  260. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.js +1 -0
  261. package/dist/application-spec/parse-application-files/spec/expressions/expression.d.ts +1 -28
  262. package/dist/application-spec/parse-application-files/spec/expressions/expression.js +1 -1
  263. package/dist/application-spec/parse-application-files/spec/expressions/expressions.d.ts +7 -3
  264. package/dist/application-spec/parse-application-files/spec/expressions/expressions.js +1 -1
  265. package/dist/application-spec/parse-application-files/spec/expressions/index.d.ts +0 -1
  266. package/dist/application-spec/parse-application-files/spec/expressions/index.js +1 -1
  267. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.js +1 -1
  268. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.d.ts +3 -1
  269. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
  270. package/dist/application-spec/parse-application-files/spec/invariants/invariants.d.ts +2 -2
  271. package/dist/application-spec/parse-application-files/spec/invariants/invariants.js +1 -1
  272. package/dist/application-spec/parse-application-files/spec/model/defaults.d.ts +7 -2
  273. package/dist/application-spec/parse-application-files/spec/model/defaults.js +1 -1
  274. package/dist/application-spec/parse-application-files/spec/model/index.d.ts +1 -0
  275. package/dist/application-spec/parse-application-files/spec/model/index.js +1 -1
  276. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.d.ts +10 -0
  277. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.js +1 -0
  278. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.d.ts +25 -0
  279. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.js +1 -0
  280. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.d.ts +46 -0
  281. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.js +1 -0
  282. package/dist/application-spec/parse-application-files/spec/relations/relations.d.ts +4 -3
  283. package/dist/application-spec/parse-application-files/spec/relations/relations.js +1 -1
  284. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +9 -0
  285. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -0
  286. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +4 -1
  287. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  288. package/dist/application-spec/parse-application-files/spec/sections/infra.d.ts +2 -0
  289. package/dist/application-spec/parse-application-files/spec/sections/infra.js +1 -1
  290. package/dist/client/authorized-client.d.ts +3 -1
  291. package/dist/client/authorized-client.js +1 -1
  292. package/dist/client/contract.d.ts +34 -0
  293. package/dist/client/contract.js +1 -1
  294. package/dist/client/index.d.ts +2 -2
  295. package/dist/client/index.js +1 -1
  296. package/dist/client/local-authorized-client.d.ts +3 -1
  297. package/dist/client/local-authorized-client.js +1 -1
  298. package/dist/client/memory-authorized-client.d.ts +3 -1
  299. package/dist/client/memory-authorized-client.js +1 -1
  300. package/dist/client/phoenix-api.d.ts +797 -121
  301. package/dist/configurator/ConfiguratorApp.js +1 -1
  302. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.d.ts +2 -0
  303. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.js +5 -0
  304. package/dist/configurator/app-loader-content/app-loader-content-name.d.ts +5 -0
  305. package/dist/configurator/app-loader-content/app-loader-content-name.js +1 -0
  306. package/dist/configurator/app-loader-content/index.d.ts +2 -0
  307. package/dist/configurator/app-loader-content/index.js +1 -0
  308. package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
  309. package/dist/configurator/application-runtime/extensions/selectors.d.ts +3 -1
  310. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  311. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +127 -3
  312. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  313. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +19 -3
  314. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  315. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +1 -1
  316. package/dist/configurator/application-runtime/extensions/systems/canvas-system.d.ts +8 -0
  317. package/dist/configurator/application-runtime/extensions/systems/canvas-system.js +1 -1
  318. package/dist/configurator/application-runtime/extensions/systems/drag-and-drop-system/drag-and-drop-system.d.ts +3 -3
  319. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.d.ts +8 -0
  320. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.js +1 -0
  321. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +23 -1
  322. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  323. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.d.ts +12 -0
  324. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.js +1 -0
  325. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +14 -1
  326. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  327. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +64 -7
  328. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  329. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.d.ts +11 -0
  330. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.js +1 -0
  331. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +14 -5
  332. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  333. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +2 -2
  334. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.d.ts +2 -2
  335. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.js +1 -1
  336. package/dist/configurator/common/configurator-interface.d.ts +146 -4
  337. package/dist/configurator/common/configurator-interface.js +1 -1
  338. package/dist/configurator/common/index.d.ts +3 -1
  339. package/dist/configurator/common/index.js +1 -1
  340. package/dist/configurator/common/use-reset-camera.d.ts +6 -0
  341. package/dist/configurator/common/use-reset-camera.js +1 -0
  342. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.d.ts +12 -0
  343. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.js +1 -0
  344. package/dist/configurator/configuration-not-found-page/create-configuration-not-found-page.d.ts +9 -0
  345. package/dist/configurator/configuration-not-found-page/create-configuration-not-found-page.js +1 -0
  346. package/dist/configurator/configuration-not-found-page/index.d.ts +2 -0
  347. package/dist/configurator/configuration-not-found-page/index.js +1 -0
  348. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.d.ts +12 -0
  349. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.js +1 -0
  350. package/dist/configurator/configurator-context/PresetSelectionProvider.js +1 -1
  351. package/dist/configurator/configurator-context/PreviewContextProvider.js +1 -1
  352. package/dist/configurator/configurator-context/ViewportStateSync.d.ts +2 -2
  353. package/dist/configurator/configurator-context/ViewportStateSync.js +1 -1
  354. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.d.ts +11 -1
  355. package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.js +1 -1
  356. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.d.ts +6 -0
  357. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.js +1 -0
  358. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.d.ts +12 -0
  359. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.js +1 -0
  360. package/dist/configurator/configurator-error-page/create-configurator-error-page.d.ts +9 -0
  361. package/dist/configurator/configurator-error-page/create-configurator-error-page.js +1 -0
  362. package/dist/configurator/configurator-error-page/index.d.ts +3 -0
  363. package/dist/configurator/configurator-error-page/index.js +1 -0
  364. package/dist/configurator/index.d.ts +3 -0
  365. package/dist/configurator/index.js +1 -1
  366. package/dist/configurator/pages/ConfiguratorErrorPage.d.ts +0 -1
  367. package/dist/configurator/pages/ConfiguratorErrorPage.js +1 -1
  368. package/dist/configurator/pages/ConfiguratorNotFoundPage.js +1 -1
  369. package/dist/configurator/pages/DefaultConfiguratorLayout.d.ts +7 -0
  370. package/dist/configurator/pages/DefaultConfiguratorLayout.js +1 -0
  371. package/dist/configurator/pages/DefaultNotAuthenticatedPage.d.ts +8 -0
  372. package/dist/configurator/pages/DefaultNotAuthenticatedPage.js +1 -0
  373. package/dist/configurator/pages/DefaultPresetUi.d.ts +7 -0
  374. package/dist/configurator/pages/DefaultPresetUi.js +1 -0
  375. package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
  376. package/dist/configurator/pages/NewConfiguratorPage.js +1 -1
  377. package/dist/configurator/pages/PresetCreationErrorPage.d.ts +1 -1
  378. package/dist/configurator/pages/PresetCreationErrorPage.js +1 -1
  379. package/dist/configurator/pages/RootPage.js +1 -1
  380. package/dist/configurator/pages/configurator-layout-name.d.ts +2 -0
  381. package/dist/configurator/pages/configurator-layout-name.js +1 -0
  382. package/dist/configurator/pages/default-configurator-elements.d.ts +13 -0
  383. package/dist/configurator/pages/default-configurator-elements.js +1 -0
  384. package/dist/configurator/pages/default-elements/built-in-entity-element.d.ts +10 -0
  385. package/dist/configurator/pages/default-elements/built-in-entity-element.js +1 -0
  386. package/dist/configurator/pages/default-elements/built-in-layout-element.d.ts +10 -0
  387. package/dist/configurator/pages/default-elements/built-in-layout-element.js +1 -0
  388. package/dist/configurator/pages/default-elements/domain-control-elements.d.ts +6 -0
  389. package/dist/configurator/pages/default-elements/domain-control-elements.js +1 -0
  390. package/dist/configurator/pages/default-elements/index.d.ts +5 -0
  391. package/dist/configurator/pages/default-elements/index.js +1 -0
  392. package/dist/configurator/pages/default-elements/recipe-panel-elements.d.ts +3 -0
  393. package/dist/configurator/pages/default-elements/recipe-panel-elements.js +1 -0
  394. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.d.ts +3 -0
  395. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.js +1 -0
  396. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.d.ts +3 -0
  397. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.js +1 -0
  398. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.d.ts +3 -0
  399. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.js +1 -0
  400. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.d.ts +3 -0
  401. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.js +1 -0
  402. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.d.ts +3 -0
  403. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.js +1 -0
  404. package/dist/configurator/pages/default-elements/scene-controls/index.d.ts +6 -0
  405. package/dist/configurator/pages/default-elements/scene-controls/index.js +1 -0
  406. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.d.ts +6 -0
  407. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.js +1 -0
  408. package/dist/configurator/pages/default-elements/sidebar-footer-elements.d.ts +7 -0
  409. package/dist/configurator/pages/default-elements/sidebar-footer-elements.js +1 -0
  410. package/dist/configurator/pages/default-elements/toolbar-elements.d.ts +7 -0
  411. package/dist/configurator/pages/default-elements/toolbar-elements.js +1 -0
  412. package/dist/configurator/pages/error-boundaries/GeneralErrorBoundary.js +1 -1
  413. package/dist/configurator/pages/index.d.ts +1 -0
  414. package/dist/configurator/pages/index.js +1 -1
  415. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.d.ts +4 -0
  416. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.js +1 -0
  417. package/dist/configurator/preset-screen-elements/PresetPageActionElement.d.ts +4 -0
  418. package/dist/configurator/preset-screen-elements/PresetPageActionElement.js +1 -0
  419. package/dist/configurator/preset-screen-elements/index.d.ts +2 -0
  420. package/dist/configurator/preset-screen-elements/index.js +1 -0
  421. package/dist/configurator/scene/index.d.ts +1 -0
  422. package/dist/configurator/scene/index.js +1 -1
  423. package/dist/configurator/scene/scene-controls/DeleteEntityFab.js +1 -1
  424. package/dist/configurator/scene/scene-controls/SelectionHotspot.js +1 -1
  425. package/dist/configurator/scene/scene-controls/ToolFab.d.ts +4 -0
  426. package/dist/configurator/scene/scene-controls/ToolFab.js +1 -1
  427. package/dist/configurator/scene/scene-controls/hotspot-drag-handle/HotspotDragHandle.d.ts +1 -1
  428. package/dist/configurator/scene/scene-controls/hotspot-drag-handle/HotspotDragSceneHandle.d.ts +1 -1
  429. package/dist/configurator/scene/scene-controls/use-scene-control-tooltip.d.ts +2 -1
  430. package/dist/configurator/scene/scene-entity/dimension-indicators/DimensionIndicator.d.ts +1 -1
  431. package/dist/configurator/scene/scene-entity/dimension-indicators/DimensionIndicatorInternal.d.ts +1 -1
  432. package/dist/configurator/scene/scene-entity/drag-and-drop/shared.d.ts +2 -2
  433. package/dist/configurator/scene/scene-entity/drag-and-drop/use-drag-object.d.ts +1 -1
  434. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.js +1 -1
  435. package/dist/configurator/scene/scene-entity/objects/SceneEntityObjectTextDecal.d.ts +1 -1
  436. package/dist/configurator/scene/scene-entity/scene-controls/SceneEntityHtmlHotspots.js +1 -1
  437. package/dist/configurator/toolbar-actions/index.d.ts +3 -0
  438. package/dist/configurator/toolbar-actions/index.js +1 -0
  439. package/dist/configurator/toolbar-actions/use-assistant-panel.d.ts +18 -0
  440. package/dist/configurator/toolbar-actions/use-assistant-panel.js +1 -0
  441. package/dist/configurator/toolbar-actions/use-measurements.d.ts +35 -0
  442. package/dist/configurator/toolbar-actions/use-measurements.js +1 -0
  443. package/dist/configurator/toolbar-actions/use-toolbar-actions.d.ts +100 -0
  444. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -0
  445. package/dist/configurator/toolbar-actions/use-toolbar-help.d.ts +7 -0
  446. package/dist/configurator/toolbar-actions/use-toolbar-help.js +1 -0
  447. package/dist/configurator/ui/assistant/AssistantChips.d.ts +10 -3
  448. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  449. package/dist/configurator/ui/assistant/AssistantComposer.d.ts +2 -1
  450. package/dist/configurator/ui/assistant/AssistantComposer.js +1 -1
  451. package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +7 -2
  452. package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -1
  453. package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
  454. package/dist/configurator/ui/assistant/AssistantThread.d.ts +6 -2
  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-state.d.ts +4 -0
  478. package/dist/configurator/ui/assistant/form/form-state.js +1 -0
  479. package/dist/configurator/ui/assistant/form/index.d.ts +4 -0
  480. package/dist/configurator/ui/assistant/form/index.js +1 -0
  481. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +10 -0
  482. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -0
  483. package/dist/configurator/ui/assistant/form/read-form-attributes.d.ts +13 -0
  484. package/dist/configurator/ui/assistant/form/read-form-attributes.js +1 -0
  485. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +3 -0
  486. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -0
  487. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +31 -0
  488. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.js +1 -0
  489. package/dist/configurator/ui/assistant/form/registry/form-element-definition.d.ts +16 -0
  490. package/dist/configurator/ui/assistant/form/registry/form-element-definition.js +1 -0
  491. package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +31 -0
  492. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -0
  493. package/dist/configurator/ui/assistant/form/registry/index.d.ts +6 -0
  494. package/dist/configurator/ui/assistant/form/registry/index.js +1 -0
  495. package/dist/configurator/ui/assistant/form/registry/use-form-registry.d.ts +8 -0
  496. package/dist/configurator/ui/assistant/form/registry/use-form-registry.js +1 -0
  497. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +9 -0
  498. package/dist/configurator/ui/assistant/form-elements/FormCard.js +1 -0
  499. package/dist/configurator/ui/assistant/form-elements/FormConfirm.d.ts +9 -0
  500. package/dist/configurator/ui/assistant/form-elements/FormConfirm.js +1 -0
  501. package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +6 -0
  502. package/dist/configurator/ui/assistant/form-elements/FormGroup.js +1 -0
  503. package/dist/configurator/ui/assistant/form-elements/FormNumber.d.ts +9 -0
  504. package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -0
  505. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +6 -0
  506. package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -0
  507. package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +6 -0
  508. package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -0
  509. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +10 -0
  510. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +1 -0
  511. package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +6 -0
  512. package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -0
  513. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.d.ts +10 -0
  514. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.js +1 -0
  515. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +38 -0
  516. package/dist/configurator/ui/assistant/form-elements/index.d.ts +9 -0
  517. package/dist/configurator/ui/assistant/form-elements/index.js +1 -0
  518. package/dist/configurator/ui/assistant/index.d.ts +3 -0
  519. package/dist/configurator/ui/assistant/index.js +1 -1
  520. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.d.ts +16 -0
  521. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -0
  522. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.d.ts +34 -0
  523. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.js +1 -0
  524. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +25 -0
  525. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -0
  526. package/dist/configurator/ui/assistant/reference-link/index.d.ts +3 -0
  527. package/dist/configurator/ui/assistant/reference-link/index.js +1 -0
  528. package/dist/configurator/ui/assistant/reference-link/reference-styles.d.ts +12 -0
  529. package/dist/configurator/ui/assistant/reference-link/reference-styles.js +1 -0
  530. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.d.ts +8 -0
  531. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.js +1 -0
  532. package/dist/configurator/ui/assistant/resource-image/AssistantImage.d.ts +9 -0
  533. package/dist/configurator/ui/assistant/resource-image/AssistantImage.js +1 -0
  534. package/dist/configurator/ui/assistant/resource-image/index.d.ts +3 -0
  535. package/dist/configurator/ui/assistant/resource-image/index.js +1 -0
  536. package/dist/configurator/ui/assistant/resource-image/resource-path.d.ts +2 -0
  537. package/dist/configurator/ui/assistant/resource-image/resource-path.js +1 -0
  538. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.d.ts +5 -0
  539. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.js +1 -0
  540. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +9 -0
  541. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -0
  542. package/dist/configurator/ui/assistant/screenshots/index.d.ts +2 -0
  543. package/dist/configurator/ui/assistant/screenshots/index.js +1 -0
  544. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +14 -0
  545. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -0
  546. package/dist/configurator/ui/assistant/streamed-markdown.d.ts +4 -2
  547. package/dist/configurator/ui/assistant/streamed-markdown.js +2 -2
  548. package/dist/configurator/ui/assistant/thread-items.d.ts +21 -3
  549. package/dist/configurator/ui/assistant/thread-items.js +1 -1
  550. package/dist/configurator/ui/assistant/tool-chip.js +1 -1
  551. package/dist/configurator/ui/assistant/use-follow-stream.js +1 -1
  552. package/dist/configurator/ui/configurator-layout/sidebar-keys/index.d.ts +1 -0
  553. package/dist/configurator/ui/configurator-layout/sidebar-keys/index.js +1 -0
  554. package/dist/configurator/ui/configurator-layout/sidebar-keys/sidebar-keys.d.ts +11 -0
  555. package/dist/configurator/ui/configurator-layout/sidebar-keys/sidebar-keys.js +1 -0
  556. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  557. package/dist/configurator/ui/configurator-layout/slots/canvas/SharedCanvas.js +1 -1
  558. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.d.ts +101 -0
  559. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +16 -0
  560. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/index.d.ts +1 -0
  561. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/index.js +1 -0
  562. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.d.ts +1 -1
  563. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.js +1 -1
  564. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.d.ts +4 -4
  565. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.js +1 -1
  566. package/dist/configurator/ui/configurator-layout/slots/services/Services.js +1 -1
  567. package/dist/configurator/ui/configurator-layout/slots/services/SideEffects.d.ts +3 -6
  568. package/dist/configurator/ui/configurator-layout/slots/services/SideEffects.js +1 -1
  569. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.d.ts +1 -1
  570. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.js +1 -1
  571. package/dist/configurator/ui/configurator-layout/slots/slots.d.ts +1 -0
  572. package/dist/configurator/ui/configurator-layout/slots/slots.js +1 -1
  573. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.d.ts +0 -74
  574. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.js +5 -20
  575. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  576. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.d.ts +5 -0
  577. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.js +1 -0
  578. package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
  579. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +4 -4
  580. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  581. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.d.ts +47 -0
  582. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -0
  583. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.d.ts +11 -26
  584. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.js +1 -1
  585. package/dist/configurator/ui/index.d.ts +1 -0
  586. package/dist/configurator/ui/index.js +1 -1
  587. package/dist/configurator/ui/legacy/layout/common/CommonFinalizeButton.js +1 -1
  588. package/dist/configurator/ui/legacy/layout/common/CommonSummaryButton.js +1 -1
  589. package/dist/configurator/ui/legacy/layout/common/CommonTopNavigation.js +1 -1
  590. package/dist/configurator/ui/legacy/layout/common/ReactiveInterfaceLayout.js +1 -1
  591. package/dist/configurator/ui/legacy/layout/common/ResponsiveFinalizeButton.js +1 -1
  592. package/dist/configurator/ui/legacy/layout/common/SummaryReadLayout.js +1 -1
  593. package/dist/configurator/ui/legacy/layout/simple/SimpleOwnerLayout.js +1 -1
  594. package/dist/configurator/ui/legacy/layout/simple/SimpleTopNavigation.js +1 -1
  595. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.d.ts +2 -2
  596. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.js +1 -1
  597. package/dist/configurator/ui/legacy/layout/steps/StepsOwnerLayout.js +1 -1
  598. package/dist/configurator/ui/legacy/layout/steps/StepsSidebarFooter.js +1 -1
  599. package/dist/configurator/ui/legacy/layout/tabs/TabsOwnerLayout.js +1 -1
  600. package/dist/configurator/ui/legacy/toolbar/common/DimensionUnitSelector.js +1 -1
  601. package/dist/configurator/ui/legacy/toolbar/common/MeasurementsIndicatorsSwitch.js +1 -1
  602. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/FullscreenToolbarAction.js +1 -1
  603. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/HelpToolbarAction.js +1 -1
  604. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/MeasurementsToolbarAction.js +1 -1
  605. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/UndoRedoToolbarGroup.js +1 -1
  606. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.js +2 -6
  607. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -1
  608. package/dist/configurator/ui/phoenix-layout-elements/EnterFullscreenToolbarButton.js +1 -1
  609. package/dist/configurator/ui/phoenix-layout-elements/ExitFullscreenToolbarButton.js +1 -1
  610. package/dist/configurator/ui/phoenix-layout-elements/HelpToolbarButton.js +1 -1
  611. package/dist/configurator/ui/phoenix-layout-elements/LanguageMenuAction.js +1 -1
  612. package/dist/configurator/ui/phoenix-layout-elements/LanguageToolbarButton.js +1 -1
  613. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.d.ts +1 -0
  614. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.js +1 -1
  615. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.d.ts +1 -0
  616. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.js +1 -1
  617. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsMenuAction.js +1 -1
  618. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsToolbarButton.js +1 -1
  619. package/dist/configurator/ui/phoenix-layout-elements/RedoToolbarButton.js +1 -1
  620. package/dist/configurator/ui/phoenix-layout-elements/ShareToolbarButton.js +1 -1
  621. package/dist/configurator/ui/phoenix-layout-elements/UndoToolbarButton.js +1 -1
  622. package/dist/configurator/ui/phoenix-layout-elements/header/common/back-button/use-go-back-action.js +1 -1
  623. package/dist/configurator/ui/phoenix-layout-elements/header/common/horizontal-tabs/DesktopHorizontalTabs.js +1 -1
  624. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.d.ts +1 -1
  625. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.js +1 -1
  626. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.d.ts +2 -8
  627. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.js +1 -1
  628. package/dist/configurator/ui/phoenix-layout-elements/measurements/DimensionUnitSelector.js +1 -1
  629. package/dist/configurator/ui/phoenix-layout-elements/measurements/MeasurementsIndicatorsSwitch.js +1 -1
  630. package/dist/configurator/ui/phoenix-layout-elements/share/ShareModal.js +1 -1
  631. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.d.ts +7 -8
  632. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.js +1 -1
  633. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/BasicFinalizeButton.js +1 -1
  634. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/CustomFinalizeButton.js +1 -1
  635. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/EnterSummaryButton.js +1 -1
  636. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/FinalizeActions.js +1 -1
  637. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/NextStepButton.js +1 -1
  638. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/PreviousStepButton.js +1 -1
  639. package/dist/configurator/ui/preset-layout/CategoryPresetUi.js +1 -1
  640. package/dist/configurator/ui/preset-layout/PresetUi.d.ts +4 -0
  641. package/dist/configurator/ui/preset-layout/PresetUi.js +1 -1
  642. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.d.ts +10 -0
  643. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.js +1 -0
  644. package/dist/configurator/ui/save-message-snackbars/index.d.ts +1 -0
  645. package/dist/configurator/ui/save-message-snackbars/index.js +1 -0
  646. package/dist/docs/complex-use-cases/filtered-controls-with-fix-dialog.mdx +16 -19
  647. package/dist/docs/complex-use-cases/focus-mode.mdx +2 -0
  648. package/dist/docs/complex-use-cases/sketching.mdx +0 -38
  649. package/dist/docs/controls/select-attribute/cardselect.mdx +9 -13
  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 +103 -1
  661. package/dist/docs/integrations/woocommerce/local-development.mdx +1 -1
  662. package/dist/docs/layouts/custom-layout.mdx +2437 -0
  663. package/dist/docs/layouts/gallery/ardent-compressor.mdx +3516 -0
  664. package/dist/docs/layouts/gallery/fenwick-window.mdx +2803 -0
  665. package/dist/docs/layouts/gallery/ferrule-bar-station.mdx +6567 -0
  666. package/dist/docs/layouts/gallery/kestrel-kettle.mdx +1858 -0
  667. package/dist/docs/layouts/gallery/sunfold-solar.mdx +2683 -0
  668. package/dist/docs/layouts/header/fixed.mdx +2 -2
  669. package/dist/docs/layouts/header/floating.mdx +2 -2
  670. package/dist/docs/layouts/sidebar/in-a-custom-layout.mdx +380 -0
  671. package/dist/docs/layouts/sidebar-footer/basic.mdx +32 -77
  672. package/dist/docs/other-features/client-side-rendering/declarative.mdx +2 -2
  673. package/dist/docs/other-features/error-5xx.mdx +1 -1
  674. package/dist/docs/other-features/navigation-hotspot.mdx +2 -0
  675. package/dist/docs/other-features/not-found-404.mdx +1 -1
  676. package/dist/docs/other-features/side-effects.mdx +8 -11
  677. package/dist/docs/other-features/transformers.mdx +4 -0
  678. package/dist/docs/other-features/violation-messages.mdx +52 -56
  679. package/dist/docs/phoenix/application-states.mdx +9 -7
  680. package/dist/docs/phoenix/clerk-sign-in.mdx +1 -1
  681. package/dist/docs/phoenix/components.mdx +6 -0
  682. package/dist/docs/phoenix/configurator-interface.mdx +401 -81
  683. package/dist/docs/phoenix/deployments.mdx +3 -7
  684. package/dist/docs/phoenix/domain-model.mdx +6 -0
  685. package/dist/docs/phoenix/expression-context.mdx +11 -3
  686. package/dist/docs/phoenix/finalization.mdx +1 -1
  687. package/dist/docs/phoenix/getting-started.mdx +7 -4
  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 +112 -65
  692. package/dist/docs/phoenix/project-structure.mdx +80 -36
  693. package/dist/docs/phoenix/quickstart.mdx +9 -9
  694. package/dist/docs/phoenix/sdk-builder-workflow.mdx +15 -15
  695. package/dist/docs/phoenix/testing.mdx +148 -0
  696. package/dist/docs/phoenix/webhook-membership.mdx +10 -9
  697. package/dist/docs/phoenix/webhooks.mdx +23 -6
  698. package/dist/docs/selection-and-highlight/hotspots.mdx +2 -0
  699. package/dist/docs/ux-guidelines/choosing-a-control.mdx +11 -0
  700. package/dist/domain/admin-domain/__generated/enhanced-model.d.ts +1 -2
  701. package/dist/domain/admin-domain/__generated/model/versions/v1.d.ts +1 -1
  702. package/dist/domain/admin-domain/__generated/model/versions/v2.d.ts +1 -1
  703. package/dist/domain/admin-domain/__generated/model/versions/v3.d.ts +1 -1
  704. package/dist/domain/admin-domain/__generated/model/versions/v4.d.ts +1 -1
  705. package/dist/domain/admin-domain/__generated/model/versions/v5.d.ts +1 -1
  706. package/dist/domain/admin-domain/__generated/model/versions/v6.d.ts +2 -2
  707. package/dist/domain/admin-domain/__generated/model/versions/v6.js +1 -1
  708. package/dist/domain/admin-domain/implementation/common-admin-expressions.d.ts +26 -14
  709. package/dist/domain/admin-domain/implementation/common-admin-migrations.d.ts +1 -1
  710. package/dist/domain/admin-domain/implementation/common-admin-publish.d.ts +1 -2
  711. package/dist/domain/admin-domain/index.d.ts +9 -5
  712. package/dist/domain/admin-domain/index.js +1 -1
  713. package/dist/domain/application/GetApplicationWrapperHandler.d.ts +2 -2
  714. package/dist/domain/application/GetThemeHandler.d.ts +1 -1
  715. package/dist/domain/application/GetWebComponentOptions.d.ts +1 -1
  716. package/dist/domain/application/admin-page-factories.d.ts +1 -2
  717. package/dist/domain/application/application-config.d.ts +9 -26
  718. package/dist/domain/application/assistant/assistant-fields.d.ts +12 -0
  719. package/dist/domain/application/assistant/assistant-fields.js +1 -0
  720. package/dist/domain/application/assistant/assistant-manifest.d.ts +27 -2
  721. package/dist/domain/application/assistant/assistant-resolved-manifest.d.ts +46 -3
  722. package/dist/domain/application/assistant/assistant-resolved-manifest.js +1 -1
  723. package/dist/domain/application/assistant/assistant-value-type.js +1 -1
  724. package/dist/domain/application/assistant/build-assistant-lenses.d.ts +14 -0
  725. package/dist/domain/application/assistant/build-assistant-lenses.js +5 -0
  726. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  727. package/dist/domain/application/assistant/create-assistant-execution-schema.d.ts +32 -0
  728. package/dist/domain/application/assistant/create-assistant-execution-schema.js +1 -0
  729. package/dist/domain/application/assistant/form/assistant-form-element-name.d.ts +11 -0
  730. package/dist/domain/application/assistant/form/assistant-form-element-name.js +8 -0
  731. package/dist/domain/application/assistant/form/assistant-form-elements.d.ts +174 -0
  732. package/dist/domain/application/assistant/form/assistant-form-elements.js +1 -0
  733. package/dist/domain/application/assistant/form/assistant-resource-path.d.ts +10 -0
  734. package/dist/domain/application/assistant/form/assistant-resource-path.js +1 -0
  735. package/dist/domain/application/assistant/form/index.d.ts +4 -0
  736. package/dist/domain/application/assistant/form/index.js +1 -0
  737. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +4 -11
  738. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  739. package/dist/domain/application/assistant/index.d.ts +8 -2
  740. package/dist/domain/application/assistant/index.js +1 -1
  741. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.d.ts +20 -0
  742. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.js +1 -0
  743. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.d.ts +10 -0
  744. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -0
  745. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +50 -0
  746. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -0
  747. package/dist/domain/application/assistant/session-setup/create-session-assistant.d.ts +15 -0
  748. package/dist/domain/application/assistant/session-setup/create-session-assistant.js +1 -0
  749. package/dist/domain/application/assistant/session-setup/index.d.ts +4 -0
  750. package/dist/domain/application/assistant/session-setup/index.js +1 -0
  751. package/dist/domain/application/assistant-field-options.d.ts +1 -2
  752. package/dist/domain/application/assistant-mutations.d.ts +2 -4
  753. package/dist/domain/application/assistant-mutations.js +1 -1
  754. package/dist/domain/application/assistant-recipe-groups.d.ts +5 -7
  755. package/dist/domain/application/configurator-builder.d.ts +6 -3
  756. package/dist/domain/application/configurator-builder.js +1 -1
  757. package/dist/domain/application/create-initial-published-data.d.ts +6 -7
  758. package/dist/domain/application/index.d.ts +2 -6
  759. package/dist/domain/application/index.js +1 -1
  760. package/dist/domain/application/published-data/DataRowValidatorHandler.d.ts +1 -1
  761. package/dist/domain/application/published-data/FilterPublishedChunksHandler.d.ts +1 -1
  762. package/dist/domain/application/published-data/MapPublishedChunkedDataHandler.d.ts +1 -1
  763. package/dist/domain/application/published-data/MapPublishedRevisionDataHandler.d.ts +1 -1
  764. package/dist/domain/application/published-data/SheetValidatorHandler.d.ts +1 -1
  765. package/dist/domain/application/published-data/build-legend-data.d.ts +1 -1
  766. package/dist/domain/application/published-data/create-finalize-admin-domain.d.ts +1 -2
  767. package/dist/domain/application/published-data/format-field-type.d.ts +1 -1
  768. package/dist/domain/application/published-data/map-data-to-sheet.d.ts +1 -1
  769. package/dist/domain/application/published-data/map-published-chunked-data.d.ts +3 -3
  770. package/dist/domain/application/published-data/map-published-data.d.ts +7 -4
  771. package/dist/domain/application/published-data/validate-sheet-data.d.ts +1 -1
  772. package/dist/domain/available-system-components.d.ts +1 -1
  773. package/dist/domain/available-system-components.js +1 -1
  774. package/dist/domain/core/action/action-factory.d.ts +11 -0
  775. package/dist/domain/core/action/action.d.ts +71 -0
  776. package/dist/domain/core/action/action.js +1 -0
  777. package/dist/domain/core/action/index.d.ts +2 -0
  778. package/dist/domain/core/action/index.js +1 -0
  779. package/dist/domain/core/component/component-reader-types.d.ts +43 -0
  780. package/dist/domain/core/component/component-reader-types.js +1 -0
  781. package/dist/domain/core/component/debug-state-component.d.ts +14 -0
  782. package/dist/domain/core/component/debug-state-component.js +1 -0
  783. package/dist/domain/core/component/domain-component-optic.d.ts +65 -0
  784. package/dist/domain/core/component/domain-component-optic.js +16 -0
  785. package/dist/domain/core/component/drag-state-component.d.ts +16 -0
  786. package/dist/domain/core/component/drag-state-component.js +1 -0
  787. package/dist/domain/core/component/export-state-component.d.ts +15 -0
  788. package/dist/domain/core/component/export-state-component.js +1 -0
  789. package/dist/domain/core/component/fullscreen-state-component.d.ts +14 -0
  790. package/dist/domain/core/component/fullscreen-state-component.js +1 -0
  791. package/dist/domain/core/component/group-components-by-entity-id-and-name.d.ts +8 -0
  792. package/dist/domain/core/component/group-components-by-entity-id-and-name.js +1 -0
  793. package/dist/domain/core/component/hover-state-component.d.ts +14 -0
  794. package/dist/domain/core/component/hover-state-component.js +1 -0
  795. package/dist/domain/core/component/index.d.ts +18 -0
  796. package/dist/domain/core/component/index.js +1 -0
  797. package/dist/domain/core/component/legacy-filter.d.ts +498 -0
  798. package/dist/domain/core/component/navigation-state-component.d.ts +15 -0
  799. package/dist/domain/core/component/navigation-state-component.js +1 -0
  800. package/dist/domain/core/component/selection-state-component.d.ts +14 -0
  801. package/dist/domain/core/component/selection-state-component.js +1 -0
  802. package/dist/domain/core/component/system-component-builder.d.ts +11 -0
  803. package/dist/domain/core/component/system-component-builder.js +1 -0
  804. package/dist/domain/core/component/system-component-filter.d.ts +811 -0
  805. package/dist/domain/core/component/system-virtual-entity.js +1 -0
  806. package/dist/domain/core/component/tool-state-component.d.ts +14 -0
  807. package/dist/domain/core/component/tool-state-component.js +1 -0
  808. package/dist/domain/core/component/updates.d.ts +123 -0
  809. package/dist/domain/core/component/view-state-component.d.ts +14 -0
  810. package/dist/domain/core/component/view-state-component.js +1 -0
  811. package/dist/domain/core/component/viewport-state-component.d.ts +29 -0
  812. package/dist/domain/core/component/viewport-state-component.js +1 -0
  813. package/dist/domain/core/data-schema/data-cell-value.d.ts +4 -0
  814. package/dist/domain/core/data-schema/data-cell-value.js +1 -0
  815. package/dist/domain/core/data-schema/data-schema-array-field.d.ts +5 -0
  816. package/dist/domain/core/data-schema/data-schema-array-field.js +1 -0
  817. package/dist/domain/core/data-schema/data-schema-field-object.d.ts +4 -0
  818. package/dist/domain/core/data-schema/data-schema-field-object.js +1 -0
  819. package/dist/domain/core/data-schema/data-schema-field.d.ts +2 -0
  820. package/dist/domain/core/data-schema/data-schema-field.js +1 -0
  821. package/dist/domain/core/data-schema/data-schema-localized-field.d.ts +4 -0
  822. package/dist/domain/core/data-schema/data-schema-localized-field.js +1 -0
  823. package/dist/domain/core/data-schema/data-schema-primitive-field.d.ts +5 -0
  824. package/dist/domain/core/data-schema/data-schema-primitive-field.js +1 -0
  825. package/dist/domain/core/data-schema/data-schema.d.ts +2 -0
  826. package/dist/domain/core/data-schema/data-schema.js +1 -0
  827. package/dist/domain/core/data-schema/index.d.ts +7 -0
  828. package/dist/domain/core/data-schema/index.js +1 -0
  829. package/dist/domain/core/domain-factory.d.ts +4 -5
  830. package/dist/domain/core/domain.d.ts +4 -5
  831. package/dist/domain/core/domain.js +1 -1
  832. package/dist/domain/core/emission/index.d.ts +8 -0
  833. package/dist/domain/core/emission/index.js +1 -0
  834. package/dist/domain/core/emission/reset-state-emission.d.ts +12 -0
  835. package/dist/domain/core/emission/reset-state-emission.js +1 -0
  836. package/dist/domain/core/emission/state-emission.d.ts +4 -0
  837. package/dist/domain/core/emission/state-emission.js +1 -0
  838. package/dist/domain/core/emission/state-update-emission.d.ts +14 -0
  839. package/dist/domain/core/emission/state-update-emission.js +1 -0
  840. package/dist/domain/core/emission/state-validation-result.d.ts +18 -0
  841. package/dist/domain/core/emission/state-validation-result.js +1 -0
  842. package/dist/domain/core/emission/transformation-log.d.ts +2 -0
  843. package/dist/domain/core/emission/transformation-log.js +1 -0
  844. package/dist/domain/core/emission/transformer-log-entry.d.ts +6 -0
  845. package/dist/domain/core/emission/transformer-log-entry.js +1 -0
  846. package/dist/domain/core/emission/transformer-log.d.ts +11 -0
  847. package/dist/domain/core/emission/transformer-log.js +1 -0
  848. package/dist/domain/core/emission/transformer-phase.d.ts +1 -0
  849. package/dist/domain/core/emission/transformer-phase.js +1 -0
  850. package/dist/domain/core/expression/aliased-expressions.d.ts +10 -0
  851. package/dist/domain/core/expression/aliased-expressions.js +1 -0
  852. package/dist/domain/core/expression/constant-expressions.d.ts +16 -0
  853. package/dist/domain/core/expression/constant-expressions.js +1 -0
  854. package/dist/domain/core/expression/custom-expression.d.ts +25 -0
  855. package/dist/domain/core/expression/custom-expression.js +1 -0
  856. package/dist/domain/core/expression/expression.d.ts +46 -0
  857. package/dist/domain/core/expression/expression.js +1 -0
  858. package/dist/domain/core/expression/index.d.ts +4 -0
  859. package/dist/domain/core/expression/index.js +1 -0
  860. package/dist/domain/core/index.d.ts +13 -15
  861. package/dist/domain/core/index.js +1 -1
  862. package/dist/domain/core/invariant/builtin-invariant.d.ts +5 -0
  863. package/dist/domain/core/invariant/custom-invariants.d.ts +13 -0
  864. package/dist/domain/core/invariant/custom-invariants.js +1 -0
  865. package/dist/domain/core/invariant/index.d.ts +5 -0
  866. package/dist/domain/core/invariant/index.js +1 -0
  867. package/dist/domain/core/invariant/invariants.d.ts +10 -0
  868. package/dist/domain/core/invariant/invariants.js +1 -0
  869. package/dist/domain/core/invariant/violation-component.js +1 -0
  870. package/dist/domain/core/invariant/violation.d.ts +133 -0
  871. package/dist/domain/core/invariant/violation.js +1 -0
  872. package/dist/domain/core/model/component.d.ts +46 -0
  873. package/dist/domain/core/model/index.d.ts +6 -0
  874. package/dist/domain/core/model/index.js +1 -0
  875. package/dist/domain/core/model/model.d.ts +127 -0
  876. package/dist/domain/core/model/reflection.d.ts +114 -0
  877. package/dist/domain/core/model/reflection.js +1 -0
  878. package/dist/domain/core/recipe/index.d.ts +1 -0
  879. package/dist/domain/core/recipe/index.js +1 -0
  880. package/dist/domain/core/recipe/recipes.d.ts +23 -0
  881. package/dist/domain/core/recipe/recipes.js +1 -0
  882. package/dist/domain/core/relation/all-of-type-relation.d.ts +19 -0
  883. package/dist/domain/core/relation/all-of-type-relation.js +1 -0
  884. package/dist/domain/core/relation/component-factories.d.ts +14 -0
  885. package/dist/domain/core/relation/component-factories.js +1 -0
  886. package/dist/domain/core/relation/composed-of.d.ts +12 -0
  887. package/dist/domain/core/relation/composed-of.js +1 -0
  888. package/dist/domain/core/relation/direct-relation.d.ts +17 -0
  889. package/dist/domain/core/relation/index.d.ts +8 -0
  890. package/dist/domain/core/relation/index.js +1 -0
  891. package/dist/domain/core/relation/indirect-relation.d.ts +25 -0
  892. package/dist/domain/core/relation/indirect-relation.js +1 -0
  893. package/dist/domain/core/relation/reference-component.d.ts +17 -0
  894. package/dist/domain/core/relation/reference-component.js +1 -0
  895. package/dist/domain/core/relation/reference-field.d.ts +7 -0
  896. package/dist/domain/core/relation/reference-field.js +1 -0
  897. package/dist/domain/core/relation/relation-factory.d.ts +22 -0
  898. package/dist/domain/core/relation/relation-factory.js +1 -0
  899. package/dist/domain/core/schema/extended-schema-validator.js +1 -1
  900. package/dist/domain/core/state/id-sequence.d.ts +15 -0
  901. package/dist/domain/core/state/id-sequence.js +1 -0
  902. package/dist/domain/core/state/index.d.ts +3 -0
  903. package/dist/domain/core/state/index.js +1 -0
  904. package/dist/domain/core/state/migrations.d.ts +67 -0
  905. package/dist/domain/core/state/migrations.js +1 -0
  906. package/dist/domain/core/state/state.d.ts +9 -0
  907. package/dist/domain/domain-builder.d.ts +2 -11
  908. package/dist/domain/domain-builder.js +1 -1
  909. package/dist/domain/domain-context/action-system/action-system.d.ts +2 -4
  910. package/dist/domain/domain-context/action-system/action-system.js +1 -1
  911. package/dist/domain/domain-context/action-system/index.d.ts +1 -0
  912. package/dist/domain/domain-context/action-system/index.js +1 -0
  913. package/dist/domain/domain-context/analytics-system/index.d.ts +2 -0
  914. package/dist/domain/domain-context/analytics-system/index.js +1 -0
  915. package/dist/domain/domain-context/create-transformer.d.ts +2 -2
  916. package/dist/domain/domain-context/dimension-system/dimension-state.js +1 -1
  917. package/dist/domain/domain-context/dimension-system/dimension-system.d.ts +3 -4
  918. package/dist/domain/domain-context/dimension-system/dimension-system.js +1 -1
  919. package/dist/domain/domain-context/dimension-system/index.d.ts +1 -0
  920. package/dist/domain/domain-context/dimension-system/index.js +1 -0
  921. package/dist/domain/domain-context/domain-context-systems.d.ts +8 -10
  922. package/dist/domain/domain-context/index.d.ts +8 -18
  923. package/dist/domain/domain-context/index.js +1 -1
  924. package/dist/domain/domain-context/navigation-system/index.d.ts +3 -0
  925. package/dist/domain/domain-context/navigation-system/index.js +1 -0
  926. package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +5 -8
  927. package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
  928. package/dist/domain/domain-context/navigation-system/navigation-updates.d.ts +1 -12
  929. package/dist/domain/domain-context/navigation-system/navigation-updates.js +1 -1
  930. package/dist/domain/domain-context/navigation-system/selection-transformers.d.ts +2 -2
  931. package/dist/domain/domain-context/navigation-system/selection-transformers.js +1 -1
  932. package/dist/domain/domain-context/recipe-system/index.d.ts +1 -0
  933. package/dist/domain/domain-context/recipe-system/index.js +1 -0
  934. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.d.ts +2 -4
  935. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.js +1 -1
  936. package/dist/domain/domain-context/relation-transformers/cascade-deletes.d.ts +3 -3
  937. package/dist/domain/domain-context/relation-transformers/cascade-deletes.js +1 -1
  938. package/dist/domain/domain-context/relation-transformers/cascade-ref-pruning.d.ts +3 -3
  939. package/dist/domain/domain-context/relation-transformers/cascade-ref-pruning.js +1 -1
  940. package/dist/domain/domain-context/relation-transformers/create-entity-refs.d.ts +3 -3
  941. package/dist/domain/domain-context/relation-transformers/create-entity-refs.js +2 -2
  942. package/dist/domain/domain-context/relation-transformers/index.d.ts +4 -0
  943. package/dist/domain/domain-context/relation-transformers/index.js +1 -0
  944. package/dist/domain/domain-context/relation-transformers/replace-refs.d.ts +3 -3
  945. package/dist/domain/domain-context/relation-transformers/replace-refs.js +1 -1
  946. package/dist/domain/domain-context/store-system/apply-updates.d.ts +1 -3
  947. package/dist/domain/domain-context/store-system/apply-updates.js +1 -1
  948. package/dist/domain/domain-context/store-system/index.d.ts +4 -0
  949. package/dist/domain/domain-context/store-system/index.js +1 -0
  950. package/dist/domain/domain-context/store-system/next-domain-entity-id.d.ts +1 -13
  951. package/dist/domain/domain-context/store-system/next-domain-entity-id.js +1 -1
  952. package/dist/domain/domain-context/store-system/reconcile-projected-entities.d.ts +1 -2
  953. package/dist/domain/domain-context/store-system/reconcile-projected-entities.js +1 -1
  954. package/dist/domain/domain-context/store-system/store-system.d.ts +7 -39
  955. package/dist/domain/domain-context/store-system/store-system.js +2 -2
  956. package/dist/domain/domain-context/store-system/system-state.d.ts +2 -4
  957. package/dist/domain/domain-context/store-system/system-state.js +1 -1
  958. package/dist/domain/domain-context/transformers/actions-builder.d.ts +1 -2
  959. package/dist/domain/domain-context/transformers/actions-builder.js +1 -1
  960. package/dist/domain/domain-context/transformers/auto-snap-transformer.d.ts +6 -10
  961. package/dist/domain/domain-context/transformers/auto-snap-transformer.js +1 -1
  962. package/dist/domain/domain-context/transformers/chain-builder.d.ts +2 -2
  963. package/dist/domain/domain-context/transformers/context.d.ts +2 -7
  964. package/dist/domain/domain-context/transformers/context.js +1 -1
  965. package/dist/domain/domain-context/transformers/entity-builder.d.ts +1 -5
  966. package/dist/domain/domain-context/transformers/entity-builder.js +1 -1
  967. package/dist/domain/domain-context/transformers/index.d.ts +1 -1
  968. package/dist/domain/domain-context/transformers/index.js +1 -1
  969. package/dist/domain/domain-context/transformers/then-builder.d.ts +1 -2
  970. package/dist/domain/domain-context/transformers/then-builder.js +1 -1
  971. package/dist/domain/domain-context/transformers/when-builder.d.ts +3 -9
  972. package/dist/domain/domain-context/transformers/when-builder.js +1 -1
  973. package/dist/domain/domain-context/undo-system.d.ts +29 -3
  974. package/dist/domain/domain-context/undo-system.js +1 -1
  975. package/dist/domain/domain-runtime/access/selectors.d.ts +9 -0
  976. package/dist/domain/domain-runtime/access/selectors.js +1 -1
  977. package/dist/domain/domain-runtime/access/types.d.ts +2 -0
  978. package/dist/domain/domain-runtime/access/types.js +1 -1
  979. package/dist/domain/domain-runtime/domain-context/action-context.d.ts +11 -0
  980. package/dist/domain/domain-runtime/domain-context/action-context.js +1 -0
  981. package/dist/domain/domain-runtime/domain-context/component-reader.d.ts +1 -4
  982. package/dist/domain/domain-runtime/domain-context/component-reader.js +1 -1
  983. package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
  984. package/dist/domain/domain-runtime/domain-context/expression-context.d.ts +8 -0
  985. package/dist/domain/domain-runtime/domain-context/expression-context.js +1 -0
  986. package/dist/domain/domain-runtime/domain-context/index.d.ts +3 -0
  987. package/dist/domain/domain-runtime/domain-context/runtime-expression-context.d.ts +18 -0
  988. package/dist/domain/domain-runtime/domain-context/runtime-expression-context.js +1 -0
  989. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +19 -25
  990. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  991. package/dist/domain/domain-runtime/domain-context/types.d.ts +4 -1
  992. package/dist/domain/domain-runtime/domain-runtime.d.ts +88 -68
  993. package/dist/domain/domain-runtime/environment/types.d.ts +1 -1
  994. package/dist/domain/domain-runtime/errors/implementation-error-collector.d.ts +19 -0
  995. package/dist/domain/domain-runtime/errors/implementation-error-collector.js +1 -0
  996. package/dist/domain/domain-runtime/errors/implementation-error.d.ts +46 -0
  997. package/dist/domain/domain-runtime/errors/implementation-error.js +1 -0
  998. package/dist/domain/domain-runtime/errors/implementation-errors.d.ts +13 -0
  999. package/dist/domain/domain-runtime/errors/implementation-errors.js +1 -0
  1000. package/dist/domain/domain-runtime/errors/index.d.ts +4 -0
  1001. package/dist/domain/domain-runtime/errors/index.js +1 -0
  1002. package/dist/domain/domain-runtime/errors/to-implementation-errors.d.ts +10 -0
  1003. package/dist/domain/domain-runtime/errors/to-implementation-errors.js +1 -0
  1004. package/dist/domain/domain-runtime/index.d.ts +1 -0
  1005. package/dist/domain/domain-runtime/index.js +1 -1
  1006. package/dist/domain/domain-runtime/spec/create-violation-expressions.d.ts +24 -0
  1007. package/dist/domain/domain-runtime/spec/create-violation-expressions.js +1 -0
  1008. package/dist/domain/domain-runtime/spec/index.d.ts +5 -0
  1009. package/dist/domain/domain-runtime/spec/index.js +1 -1
  1010. package/dist/domain/domain-runtime/spec/initialize.d.ts +11 -0
  1011. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  1012. package/dist/domain/domain-runtime/spec/memoize-expression.d.ts +16 -0
  1013. package/dist/domain/domain-runtime/spec/module-checks/element-registration.d.ts +125 -0
  1014. package/dist/domain/domain-runtime/spec/module-checks/element-registration.js +1 -0
  1015. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.d.ts +12 -0
  1016. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.js +1 -0
  1017. package/dist/domain/domain-runtime/spec/module-checks/handler-registration.d.ts +34 -0
  1018. package/dist/domain/domain-runtime/spec/module-checks/handler-registration.js +1 -0
  1019. package/dist/domain/domain-runtime/spec/module-checks/index.d.ts +9 -0
  1020. package/dist/domain/domain-runtime/spec/module-checks/index.js +1 -0
  1021. package/dist/domain/domain-runtime/spec/module-checks/project-modules.d.ts +32 -0
  1022. package/dist/domain/domain-runtime/spec/module-checks/project-modules.js +1 -0
  1023. package/dist/domain/domain-runtime/spec/module-checks/resolve-action-modules.d.ts +4 -0
  1024. package/dist/domain/domain-runtime/spec/module-checks/resolve-action-modules.js +1 -0
  1025. package/dist/domain/domain-runtime/spec/module-checks/resolve-component-optic-modules.d.ts +4 -0
  1026. package/dist/domain/domain-runtime/spec/module-checks/resolve-component-optic-modules.js +1 -0
  1027. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.d.ts +15 -0
  1028. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.js +1 -0
  1029. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.d.ts +22 -0
  1030. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.js +1 -0
  1031. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.d.ts +6 -0
  1032. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.js +1 -0
  1033. package/dist/domain/domain-runtime/spec/prepare-action-implementations.d.ts +15 -0
  1034. package/dist/domain/domain-runtime/spec/prepare-action-implementations.js +5 -0
  1035. package/dist/domain/domain-runtime/spec/prepare-domain-expressions.d.ts +16 -0
  1036. package/dist/domain/domain-runtime/spec/selectors.d.ts +8 -7
  1037. package/dist/domain/domain-runtime/spec/selectors.js +1 -1
  1038. package/dist/domain/domain-runtime/spec/types.d.ts +6 -4
  1039. package/dist/domain/extensions/angle-indicator.d.ts +21 -0
  1040. package/dist/domain/extensions/angle-indicator.js +1 -0
  1041. package/dist/domain/extensions/attribute-switch.d.ts +8 -0
  1042. package/dist/domain/extensions/attribute-switch.js +1 -0
  1043. package/dist/domain/extensions/autorotate-camera-component.d.ts +19 -0
  1044. package/dist/domain/extensions/autorotate-camera-component.js +1 -0
  1045. package/dist/domain/extensions/basic-sidebar-footer.d.ts +8 -0
  1046. package/dist/domain/extensions/basic-sidebar-footer.js +1 -0
  1047. package/dist/domain/extensions/camera-based-hidden-entity-object.js +1 -0
  1048. package/dist/domain/extensions/camera-based-hidden-entity.js +1 -0
  1049. package/dist/domain/extensions/canvas-config.d.ts +87 -0
  1050. package/dist/domain/extensions/canvas-config.js +1 -0
  1051. package/dist/domain/extensions/canvas-custom-environment.js +1 -0
  1052. package/dist/domain/extensions/canvas-padding.d.ts +25 -0
  1053. package/dist/domain/extensions/canvas-padding.js +1 -0
  1054. package/dist/domain/extensions/canvas-preset-environment.d.ts +37 -0
  1055. package/dist/domain/extensions/canvas-preset-environment.js +1 -0
  1056. package/dist/domain/extensions/child-entity-recipe-hierarchy.d.ts +21 -0
  1057. package/dist/domain/extensions/child-entity-recipe-hierarchy.js +1 -0
  1058. package/dist/domain/extensions/color-value.js +1 -0
  1059. package/dist/domain/extensions/common/angle-indicator-schema.d.ts +292 -0
  1060. package/dist/domain/extensions/common/angle-indicator-schema.js +1 -0
  1061. package/dist/domain/extensions/common/dimension-indicator-schema.d.ts +607 -0
  1062. package/dist/domain/extensions/common/index.d.ts +4 -0
  1063. package/dist/domain/extensions/common/index.js +1 -0
  1064. package/dist/domain/extensions/custom-header.d.ts +11 -0
  1065. package/dist/domain/extensions/custom-header.js +1 -0
  1066. package/dist/domain/extensions/custom-price-footer.js +1 -0
  1067. package/dist/domain/extensions/custom-sidebar-footer.d.ts +11 -0
  1068. package/dist/domain/extensions/custom-sidebar-footer.js +1 -0
  1069. package/dist/domain/extensions/dimension-indicator.d.ts +31 -0
  1070. package/dist/domain/extensions/dimension-indicator.js +1 -0
  1071. package/dist/domain/extensions/editable-angle-indicator.d.ts +39 -0
  1072. package/dist/domain/extensions/editable-angle-indicator.js +1 -0
  1073. package/dist/domain/extensions/editable-distance-dimension-indicator.d.ts +43 -0
  1074. package/dist/domain/extensions/editable-distance-dimension-indicator.js +1 -0
  1075. package/dist/domain/extensions/editable-offset-indicator.d.ts +42 -0
  1076. package/dist/domain/extensions/editable-offset-indicator.js +1 -0
  1077. package/dist/domain/extensions/editable-size-indicator.d.ts +39 -0
  1078. package/dist/domain/extensions/editable-size-indicator.js +1 -0
  1079. package/dist/domain/extensions/entity-header.d.ts +22 -0
  1080. package/dist/domain/extensions/entity-header.js +1 -0
  1081. package/dist/domain/extensions/exit-tool-mode-fab.d.ts +25 -0
  1082. package/dist/domain/extensions/exit-tool-mode-fab.js +1 -0
  1083. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +24 -0
  1084. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -0
  1085. package/dist/domain/extensions/export-images/client-side-image.d.ts +14 -0
  1086. package/dist/domain/extensions/export-images/client-side-image.js +1 -0
  1087. package/dist/domain/extensions/export-images/index.d.ts +3 -0
  1088. package/dist/domain/extensions/export-images/index.js +1 -0
  1089. package/dist/domain/extensions/export-images/save-template-thumbnail.d.ts +14 -0
  1090. package/dist/domain/extensions/export-images/save-template-thumbnail.js +1 -0
  1091. package/dist/domain/extensions/finalize-action.d.ts +20 -0
  1092. package/dist/domain/extensions/finalize-action.js +1 -0
  1093. package/dist/domain/extensions/finalize-component.js +1 -0
  1094. package/dist/domain/extensions/fit-selection-orthographic-camera-component.js +1 -0
  1095. package/dist/domain/extensions/fit-selection-perspective-camera-component.js +1 -0
  1096. package/dist/domain/extensions/fixed-header.d.ts +10 -0
  1097. package/dist/domain/extensions/fixed-header.js +1 -0
  1098. package/dist/domain/extensions/floating-header.d.ts +10 -0
  1099. package/dist/domain/extensions/floating-header.js +1 -0
  1100. package/dist/domain/extensions/hidden-header.d.ts +8 -0
  1101. package/dist/domain/extensions/hidden-header.js +1 -0
  1102. package/dist/domain/extensions/hidden-sidebar-footer.d.ts +21 -0
  1103. package/dist/domain/extensions/hidden-sidebar-footer.js +1 -0
  1104. package/dist/domain/extensions/horizontal-tabs.d.ts +28 -0
  1105. package/dist/domain/extensions/horizontal-tabs.js +1 -0
  1106. package/dist/domain/extensions/index.d.ts +68 -0
  1107. package/dist/domain/extensions/index.js +1 -0
  1108. package/dist/domain/extensions/list-selector-dimension-indicator.d.ts +31 -0
  1109. package/dist/domain/extensions/list-selector-dimension-indicator.js +1 -0
  1110. package/dist/domain/extensions/multilingual-text-value.js +1 -0
  1111. package/dist/domain/extensions/navigation-steps.d.ts +19 -0
  1112. package/dist/domain/extensions/navigation-steps.js +1 -0
  1113. package/dist/domain/extensions/offset-anchors.d.ts +20 -0
  1114. package/dist/domain/extensions/offset-anchors.js +1 -0
  1115. package/dist/domain/extensions/offset-indicator.d.ts +83 -0
  1116. package/dist/domain/extensions/offset-indicator.js +1 -0
  1117. package/dist/domain/extensions/offset.d.ts +31 -0
  1118. package/dist/domain/extensions/offset.js +1 -0
  1119. package/dist/domain/extensions/other-action.d.ts +14 -0
  1120. package/dist/domain/extensions/other-action.js +1 -0
  1121. package/dist/domain/extensions/property-page.d.ts +16 -0
  1122. package/dist/domain/extensions/property-page.js +1 -0
  1123. package/dist/domain/extensions/read-sidebar-footer.d.ts +8 -0
  1124. package/dist/domain/extensions/read-sidebar-footer.js +1 -0
  1125. package/dist/domain/extensions/replace-entity-recipe-hierarchy.d.ts +21 -0
  1126. package/dist/domain/extensions/replace-entity-recipe-hierarchy.js +1 -0
  1127. package/dist/domain/extensions/rotatable.js +1 -0
  1128. package/dist/domain/extensions/rotation-handle.d.ts +53 -0
  1129. package/dist/domain/extensions/rotation-handle.js +1 -0
  1130. package/dist/domain/extensions/scene-entity-add-fab.d.ts +32 -0
  1131. package/dist/domain/extensions/scene-entity-add-fab.js +1 -0
  1132. package/dist/domain/extensions/scene-entity-animation.js +1 -0
  1133. package/dist/domain/extensions/scene-entity-control.js +1 -0
  1134. package/dist/domain/extensions/scene-entity-delete-fab.d.ts +19 -0
  1135. package/dist/domain/extensions/scene-entity-delete-fab.js +1 -0
  1136. package/dist/domain/extensions/scene-entity-floor-object.js +1 -0
  1137. package/dist/domain/extensions/scene-entity-html-hotspot.d.ts +27 -0
  1138. package/dist/domain/extensions/scene-entity-html-hotspot.js +1 -0
  1139. package/dist/domain/extensions/scene-entity-navigation-hotspot.d.ts +20 -0
  1140. package/dist/domain/extensions/scene-entity-navigation-hotspot.js +1 -0
  1141. package/dist/domain/extensions/scene-entity-object-html-hotspot.d.ts +31 -0
  1142. package/dist/domain/extensions/scene-entity-object-html-hotspot.js +1 -0
  1143. package/dist/domain/extensions/scene-entity-select-hotspot.d.ts +5 -0
  1144. package/dist/domain/extensions/scene-entity-select-hotspot.js +1 -0
  1145. package/dist/domain/extensions/scene-entity-wall-object.js +1 -0
  1146. package/dist/domain/extensions/selectable-component.js +1 -0
  1147. package/dist/domain/extensions/sidebar-tabs.d.ts +29 -0
  1148. package/dist/domain/extensions/sidebar-tabs.js +1 -0
  1149. package/dist/domain/extensions/simple-summary.js +1 -0
  1150. package/dist/domain/extensions/size.d.ts +21 -0
  1151. package/dist/domain/extensions/size.js +1 -0
  1152. package/dist/domain/extensions/sketching-draw.d.ts +17 -0
  1153. package/dist/domain/extensions/sketching-draw.js +1 -0
  1154. package/dist/domain/extensions/sketching-edit.d.ts +28 -0
  1155. package/dist/domain/extensions/sketching-edit.js +1 -0
  1156. package/dist/domain/extensions/summary-component.js +1 -0
  1157. package/dist/domain/extensions/text-value.js +1 -0
  1158. package/dist/domain/extensions/tool-controls.js +1 -0
  1159. package/dist/domain/extensions/tool-menu-fab.d.ts +40 -0
  1160. package/dist/domain/extensions/tool-menu-fab.js +1 -0
  1161. package/dist/domain/extensions/toolbar.d.ts +13 -0
  1162. package/dist/domain/extensions/toolbar.js +1 -0
  1163. package/dist/domain/extensions/universal-sidebar-footer.d.ts +12 -0
  1164. package/dist/domain/extensions/universal-sidebar-footer.js +1 -0
  1165. package/dist/domain/extensions/view-controls.js +1 -0
  1166. package/dist/domain/index.d.ts +2 -33
  1167. package/dist/domain/index.js +1 -1
  1168. package/dist/domain/mocks/create-mock-domain-context.d.ts +1 -1
  1169. package/dist/domain/mocks/create-mock-domain-runtime-services.d.ts +1 -1
  1170. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +30 -19
  1171. package/dist/domain/mocks/create-mock-domain-runtime.js +1 -1
  1172. package/dist/domain/mocks/create-mock-domain.d.ts +1 -1
  1173. package/dist/domain/mocks/create-mock-domain.js +1 -1
  1174. package/dist/domain/mocks/create-mock-state.d.ts +2 -2
  1175. package/dist/domain/mocks/create-test-application-config.d.ts +59 -0
  1176. package/dist/domain/mocks/create-test-application-config.js +1 -0
  1177. package/dist/domain/mocks/index.d.ts +1 -0
  1178. package/dist/domain/mocks/index.js +1 -1
  1179. package/dist/domain/projections/blender-projections/blender-projections.d.ts +2 -3
  1180. package/dist/domain/projections/blender-projections/blender-projections.js +1 -1
  1181. package/dist/domain/projections/blender-projections/camera.d.ts +2 -2
  1182. package/dist/domain/projections/collision-projections.d.ts +1 -1
  1183. package/dist/domain/projections/composition-projections.d.ts +1 -1
  1184. package/dist/domain/projections/composition-projections.js +1 -1
  1185. package/dist/domain/projections/constraint-projections.d.ts +1 -1
  1186. package/dist/domain/projections/index.d.ts +1 -1
  1187. package/dist/domain/projections/position-projections.d.ts +1 -1
  1188. package/dist/domain/projections/projected-entities-projections.d.ts +2 -3
  1189. package/dist/domain/projections/snap-matching.d.ts +1 -2
  1190. package/dist/domain/projections/snap-utils.d.ts +1 -2
  1191. package/dist/domain/projections/snapping-projections.d.ts +1 -1
  1192. package/dist/domain/projections/validation-projections.d.ts +3 -20
  1193. package/dist/domain/projections/validation-projections.js +1 -1
  1194. package/dist/domain/sketching/sketching-projections.d.ts +1 -1
  1195. package/dist/domain/system-components/admin-sidebar.d.ts +1 -1
  1196. package/dist/domain/system-components/admin-sidebar.js +1 -1
  1197. package/dist/domain/system-components/angle-dimension.js +1 -1
  1198. package/dist/domain/system-components/application-config.d.ts +3 -3
  1199. package/dist/domain/system-components/application-config.js +1 -1
  1200. package/dist/domain/system-components/attribute-selection.js +1 -1
  1201. package/dist/domain/system-components/bounding-box-component.d.ts +1 -1
  1202. package/dist/domain/system-components/bounding-box-component.js +1 -1
  1203. package/dist/domain/system-components/bounding-sphere-component.d.ts +1 -1
  1204. package/dist/domain/system-components/bounding-sphere-component.js +1 -1
  1205. package/dist/domain/system-components/child-entity-recipes.d.ts +1 -1
  1206. package/dist/domain/system-components/child-entity-recipes.js +1 -1
  1207. package/dist/domain/system-components/child-entity-selection.d.ts +1 -2
  1208. package/dist/domain/system-components/child-entity-selection.js +1 -1
  1209. package/dist/domain/system-components/collision-box-geometry.d.ts +5 -3
  1210. package/dist/domain/system-components/collision-box-geometry.js +1 -1
  1211. package/dist/domain/system-components/collision-geometries.d.ts +1 -1
  1212. package/dist/domain/system-components/collision-geometry.d.ts +5 -3
  1213. package/dist/domain/system-components/collision-geometry.js +1 -1
  1214. package/dist/domain/system-components/collision-point-geometry.d.ts +5 -3
  1215. package/dist/domain/system-components/collision-point-geometry.js +1 -1
  1216. package/dist/domain/system-components/common/index.d.ts +0 -4
  1217. package/dist/domain/system-components/common/index.js +1 -1
  1218. package/dist/domain/system-components/common/material-override-schema.d.ts +2 -2
  1219. package/dist/domain/system-components/common/recipes.d.ts +21 -4
  1220. package/dist/domain/system-components/common/recipes.js +1 -1
  1221. package/dist/domain/system-components/common/scene-entity-control-schema.d.ts +3 -0
  1222. package/dist/domain/system-components/common/scene-entity-control-schema.js +1 -1
  1223. package/dist/domain/system-components/constraint.d.ts +11 -24
  1224. package/dist/domain/system-components/constraint.js +1 -1
  1225. package/dist/domain/system-components/create-blueprint.d.ts +1 -1
  1226. package/dist/domain/system-components/custom-scene-entity.d.ts +1 -1
  1227. package/dist/domain/system-components/custom-scene-entity.js +1 -1
  1228. package/dist/domain/system-components/detail.js +1 -1
  1229. package/dist/domain/system-components/distance-dimension-select.d.ts +1 -1
  1230. package/dist/domain/system-components/distance-dimension-select.js +1 -1
  1231. package/dist/domain/system-components/distance-dimension.d.ts +1 -1
  1232. package/dist/domain/system-components/distance-dimension.js +1 -1
  1233. package/dist/domain/system-components/drag-handle.d.ts +2 -2
  1234. package/dist/domain/system-components/drag-handle.js +1 -1
  1235. package/dist/domain/system-components/fit-entity-orthographic-camera-component.js +1 -1
  1236. package/dist/domain/system-components/fit-entity-perspective-camera-component.js +1 -1
  1237. package/dist/domain/system-components/fit-root-orthographic-camera-component.js +1 -1
  1238. package/dist/domain/system-components/fit-root-perspective-camera-component.js +1 -1
  1239. package/dist/domain/system-components/generic-dimension.d.ts +1 -1
  1240. package/dist/domain/system-components/generic-dimension.js +1 -1
  1241. package/dist/domain/system-components/hidden-entity.js +1 -1
  1242. package/dist/domain/system-components/hotspot-drag-handle.d.ts +2 -3
  1243. package/dist/domain/system-components/hotspot-drag-handle.js +1 -1
  1244. package/dist/domain/system-components/index.d.ts +0 -68
  1245. package/dist/domain/system-components/index.js +1 -1
  1246. package/dist/domain/system-components/material-override-property-transition.js +1 -1
  1247. package/dist/domain/system-components/material-override-transformer.js +1 -1
  1248. package/dist/domain/system-components/material-swatch.js +1 -1
  1249. package/dist/domain/system-components/navigation-page.js +1 -1
  1250. package/dist/domain/system-components/navigation-panel-list.js +1 -1
  1251. package/dist/domain/system-components/phoenix-entity-elements/admin-data-table-sidebar.d.ts +1 -1
  1252. package/dist/domain/system-components/phoenix-layout-elements/admin-connected-resource-page.d.ts +1 -1
  1253. package/dist/domain/system-components/phoenix-layout-elements/admin-data-table-actions.d.ts +1 -1
  1254. package/dist/domain/system-components/phoenix-layout-elements/admin-data-table-page.d.ts +1 -1
  1255. package/dist/domain/system-components/pivot-point.d.ts +1 -1
  1256. package/dist/domain/system-components/pivot-point.js +1 -1
  1257. package/dist/domain/system-components/price.js +1 -1
  1258. package/dist/domain/system-components/projected-entities.d.ts +1 -1
  1259. package/dist/domain/system-components/projected-entities.js +1 -1
  1260. package/dist/domain/system-components/replace-entity-recipes.d.ts +1 -1
  1261. package/dist/domain/system-components/replace-entity-recipes.js +1 -1
  1262. package/dist/domain/system-components/scene-entity-ambient-light.js +1 -1
  1263. package/dist/domain/system-components/scene-entity-box-object.js +1 -1
  1264. package/dist/domain/system-components/scene-entity-directional-light.js +1 -1
  1265. package/dist/domain/system-components/scene-entity-local-material-override.js +1 -1
  1266. package/dist/domain/system-components/scene-entity-material-override.d.ts +1 -1
  1267. package/dist/domain/system-components/scene-entity-material-override.js +1 -1
  1268. package/dist/domain/system-components/scene-entity-object-clip.js +1 -1
  1269. package/dist/domain/system-components/scene-entity-object-decal.js +1 -1
  1270. package/dist/domain/system-components/scene-entity-object-group.js +1 -1
  1271. package/dist/domain/system-components/scene-entity-object-local-material-override.js +1 -1
  1272. package/dist/domain/system-components/scene-entity-object-material-override.d.ts +1 -1
  1273. package/dist/domain/system-components/scene-entity-object-material-override.js +1 -1
  1274. package/dist/domain/system-components/scene-entity-object-properties.js +1 -1
  1275. package/dist/domain/system-components/scene-entity-object-remote-material-override.js +1 -1
  1276. package/dist/domain/system-components/scene-entity-object-text-decal.d.ts +1 -1
  1277. package/dist/domain/system-components/scene-entity-object-text-decal.js +1 -1
  1278. package/dist/domain/system-components/scene-entity-object-transformer.js +1 -1
  1279. package/dist/domain/system-components/scene-entity-object-transimissive-material-override.d.ts +1 -1
  1280. package/dist/domain/system-components/scene-entity-object-transimissive-material-override.js +1 -1
  1281. package/dist/domain/system-components/scene-entity-object.js +1 -1
  1282. package/dist/domain/system-components/scene-entity-point-light.js +1 -1
  1283. package/dist/domain/system-components/scene-entity-properties.js +1 -1
  1284. package/dist/domain/system-components/scene-entity-rect-area-light.js +1 -1
  1285. package/dist/domain/system-components/scene-entity-remote-material-override.js +1 -1
  1286. package/dist/domain/system-components/scene-entity-remote-object.js +1 -1
  1287. package/dist/domain/system-components/scene-entity-spot-light.js +1 -1
  1288. package/dist/domain/system-components/scene-entity-transimissive-material-override.d.ts +1 -1
  1289. package/dist/domain/system-components/scene-entity-transimissive-material-override.js +1 -1
  1290. package/dist/domain/system-components/sketching-line.d.ts +1 -1
  1291. package/dist/domain/system-components/sketching-line.js +1 -1
  1292. package/dist/domain/system-components/sketching-rectangle.d.ts +1 -1
  1293. package/dist/domain/system-components/sketching-rectangle.js +1 -1
  1294. package/dist/domain/system-components/sketching.d.ts +1 -1
  1295. package/dist/domain/system-components/sketching.js +1 -1
  1296. package/dist/domain/system-components/snap-axis.d.ts +1 -1
  1297. package/dist/domain/system-components/snap-axis.js +1 -1
  1298. package/dist/domain/system-components/snap-edge.d.ts +1 -1
  1299. package/dist/domain/system-components/snap-edge.js +1 -1
  1300. package/dist/domain/system-components/snap-plane.d.ts +1 -1
  1301. package/dist/domain/system-components/snap-plane.js +1 -1
  1302. package/dist/domain/system-components/snap-point.d.ts +1 -1
  1303. package/dist/domain/system-components/snap-point.js +1 -1
  1304. package/dist/domain/system-components/static-orthographic-camera-component.d.ts +1 -1
  1305. package/dist/domain/system-components/static-orthographic-camera-component.js +1 -1
  1306. package/dist/domain/system-components/static-perspective-camera-component.d.ts +1 -1
  1307. package/dist/domain/system-components/static-perspective-camera-component.js +1 -1
  1308. package/dist/domain/utils/eval-cache.d.ts +2 -3
  1309. package/dist/domain/utils/map-nested-object.d.ts +1 -1
  1310. package/dist/domain/utils/memo-eval.d.ts +2 -4
  1311. package/dist/editor/Editor.d.ts +7 -0
  1312. package/dist/editor/Editor.js +1 -1
  1313. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  1314. package/dist/editor/domain-editors/apply-spec-update.d.ts +8 -1
  1315. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  1316. package/dist/editor/domain-editors/use-implementation-files.d.ts +1 -2
  1317. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  1318. package/dist/editor/mocks/CreateMockYaml.js +2 -2
  1319. package/dist/editor/mocks/EditorMockContext.d.ts +2 -0
  1320. package/dist/editor/mocks/EditorMockContext.js +1 -1
  1321. package/dist/editor/screenshot/ScreenshotHandler.js +1 -1
  1322. package/dist/globals/index.d.ts +2 -0
  1323. package/dist/i18n/locales/cs/messages.js +1 -1
  1324. package/dist/i18n/locales/da/messages.js +1 -1
  1325. package/dist/i18n/locales/de/messages.js +1 -1
  1326. package/dist/i18n/locales/de-AT/messages.js +1 -1
  1327. package/dist/i18n/locales/en/messages.js +1 -1
  1328. package/dist/i18n/locales/en-AU/messages.js +1 -1
  1329. package/dist/i18n/locales/en-GB/messages.js +1 -1
  1330. package/dist/i18n/locales/es/messages.js +1 -1
  1331. package/dist/i18n/locales/fr/messages.js +1 -1
  1332. package/dist/i18n/locales/hu/messages.js +1 -1
  1333. package/dist/i18n/locales/it/messages.js +1 -1
  1334. package/dist/i18n/locales/nl/messages.js +1 -1
  1335. package/dist/i18n/locales/pl/messages.js +1 -1
  1336. package/dist/i18n/locales/pt/messages.js +1 -1
  1337. package/dist/i18n/locales/ro/messages.js +1 -1
  1338. package/dist/i18n/locales/sk/messages.js +1 -1
  1339. package/dist/i18n/locales/tr/messages.js +1 -1
  1340. package/dist/legacy/domain-cli/gen/configurator-builder.js +13 -12
  1341. package/dist/legacy/domain-cli/gen/constant-expressions.js +1 -3
  1342. package/dist/legacy/domain-cli/gen/defaults.js +1 -7
  1343. package/dist/legacy/domain-cli/gen/implementation.js +7 -11
  1344. package/dist/legacy/domain-cli/gen/invariants.js +7 -6
  1345. package/dist/legacy/domain-cli/gen/relations.js +1 -1
  1346. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  1347. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  1348. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +176 -148
  1349. package/dist/legacy/domain-spec/spec/domain-spec.js +1 -1
  1350. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/claude-md.d.ts +1 -1
  1351. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/cursor-rules.d.ts +1 -1
  1352. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.d.ts +1 -1
  1353. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.js +7 -0
  1354. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/domain-index.js +17 -15
  1355. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/env-example.d.ts +1 -1
  1356. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/env-example.js +4 -0
  1357. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-admin.js +15 -14
  1358. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-configurator.js +14 -12
  1359. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-admin.js +14 -13
  1360. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-configurator.js +13 -11
  1361. package/dist/phoenix/application-spec/application-spec-builder.d.ts +0 -2
  1362. package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
  1363. package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +0 -2
  1364. package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
  1365. package/dist/phoenix/application-spec/generate-application-spec-story.js +2 -2
  1366. package/dist/phoenix/application-spec/generate-project-files.d.ts +0 -2
  1367. package/dist/phoenix/application-spec/project-files.js +1 -1
  1368. package/dist/phoenix/bin.d.ts +2 -0
  1369. package/dist/phoenix/bin.js +2 -0
  1370. package/dist/phoenix/check-configs/built-in-eslint-config.d.ts +9 -0
  1371. package/dist/phoenix/check-configs/built-in-eslint-config.js +1 -0
  1372. package/dist/phoenix/check-configs/eslint-config.d.ts +10 -0
  1373. package/dist/phoenix/check-configs/eslint-config.js +1 -0
  1374. package/dist/phoenix/check-configs/index.d.ts +8 -0
  1375. package/dist/phoenix/check-configs/index.js +1 -0
  1376. package/dist/phoenix/check-configs/typescript-project.d.ts +5 -0
  1377. package/dist/phoenix/check-configs/typescript-project.js +1 -0
  1378. package/dist/phoenix/cli.d.ts +0 -1
  1379. package/dist/phoenix/cli.js +1 -2
  1380. package/dist/phoenix/commands/build.js +1 -1
  1381. package/dist/phoenix/commands/check.js +1 -1
  1382. package/dist/phoenix/commands/clean.js +1 -1
  1383. package/dist/phoenix/commands/deploy.js +2 -2
  1384. package/dist/phoenix/commands/deps/deps.d.ts +73 -0
  1385. package/dist/phoenix/commands/deps/deps.js +3 -0
  1386. package/dist/phoenix/commands/deps/index.d.ts +1 -0
  1387. package/dist/phoenix/commands/deps/index.js +1 -0
  1388. package/dist/phoenix/commands/deps/sdk-manifest.d.ts +12 -0
  1389. package/dist/phoenix/commands/deps/sdk-manifest.js +1 -0
  1390. package/dist/phoenix/commands/dev.js +5 -5
  1391. package/dist/phoenix/commands/fix.js +1 -1
  1392. package/dist/phoenix/commands/index.d.ts +1 -0
  1393. package/dist/phoenix/commands/index.js +1 -1
  1394. package/dist/phoenix/commands/init.d.ts +17 -5
  1395. package/dist/phoenix/commands/init.js +1 -1
  1396. package/dist/phoenix/commands/link.js +1 -1
  1397. package/dist/phoenix/commands/prettier.js +1 -1
  1398. package/dist/phoenix/commands/sync.js +1 -1
  1399. package/dist/phoenix/commands/unlink.js +1 -1
  1400. package/dist/phoenix/scripts/build-admin.js +1 -1
  1401. package/dist/phoenix/services/application-spec-project-watcher.d.ts +2 -2
  1402. package/dist/phoenix/services/application-spec-project-watcher.js +3 -3
  1403. package/dist/phoenix/services/lingui.d.ts +8 -0
  1404. package/dist/phoenix/services/lingui.js +1 -1
  1405. package/dist/phoenix/services/source-archive.d.ts +1 -0
  1406. package/dist/phoenix/services/source-archive.js +1 -1
  1407. package/dist/phoenix/services/swc.js +1 -1
  1408. package/dist/phoenix/services/vite-config.js +1 -1
  1409. package/dist/phoenix/utils/git/index.d.ts +1 -0
  1410. package/dist/phoenix/utils/git/index.js +1 -0
  1411. package/dist/phoenix/utils/git/is-inside-git-repository.d.ts +6 -0
  1412. package/dist/phoenix/utils/git/is-inside-git-repository.js +1 -0
  1413. package/dist/phoenix/utils/index.d.ts +5 -2
  1414. package/dist/phoenix/utils/index.js +1 -1
  1415. package/dist/phoenix/utils/node-version/index.d.ts +1 -0
  1416. package/dist/phoenix/utils/node-version/index.js +1 -0
  1417. package/dist/phoenix/utils/node-version/supported-node-version.d.ts +12 -0
  1418. package/dist/phoenix/utils/node-version/supported-node-version.js +4 -0
  1419. package/dist/phoenix/utils/package-info.d.ts +0 -9
  1420. package/dist/phoenix/utils/package-info.js +1 -1
  1421. package/dist/phoenix/utils/package-manager/index.d.ts +2 -0
  1422. package/dist/phoenix/utils/package-manager/index.js +1 -0
  1423. package/dist/phoenix/utils/package-manager/package-manager-commands.d.ts +19 -0
  1424. package/dist/phoenix/utils/package-manager/package-manager-commands.js +1 -0
  1425. package/dist/phoenix/utils/package-manager/pnpm-project.d.ts +9 -0
  1426. package/dist/phoenix/utils/package-manager/pnpm-project.js +1 -0
  1427. package/dist/phoenix/utils/run-command.d.ts +11 -0
  1428. package/dist/phoenix/utils/run-command.js +1 -1
  1429. package/dist/phoenix/utils/sdk-tool/index.d.ts +1 -0
  1430. package/dist/phoenix/utils/sdk-tool/index.js +1 -0
  1431. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.d.ts +15 -0
  1432. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.js +1 -0
  1433. package/dist/react-sdk/application-runtime/common-services/analytics/frontend-analytics.d.ts +52 -0
  1434. package/dist/react-sdk/application-runtime/common-services/analytics/frontend-analytics.js +1 -0
  1435. package/dist/react-sdk/application-runtime/common-services/analytics/index.d.ts +1 -0
  1436. package/dist/react-sdk/application-runtime/common-services/analytics/index.js +1 -1
  1437. package/dist/react-sdk/application-runtime/hooks/index.d.ts +1 -0
  1438. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  1439. package/dist/react-sdk/application-runtime/hooks/responsive/index.d.ts +3 -0
  1440. package/dist/react-sdk/application-runtime/hooks/responsive/index.js +1 -0
  1441. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.d.ts +9 -0
  1442. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.js +1 -0
  1443. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +26 -0
  1444. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.js +1 -0
  1445. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.d.ts +10 -0
  1446. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.js +1 -0
  1447. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.d.ts +24 -0
  1448. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -0
  1449. package/dist/react-sdk/application-runtime/hooks/use-access-service.d.ts +2 -0
  1450. package/dist/react-sdk/application-runtime/hooks/use-phoenix-element-slots.d.ts +2 -1
  1451. package/dist/react-sdk/application-runtime/index.d.ts +1 -0
  1452. package/dist/react-sdk/application-runtime/integration/initialize.d.ts +7 -6
  1453. package/dist/react-sdk/application-runtime/integration/initialize.js +1 -1
  1454. package/dist/react-sdk/application-runtime/integration/selectors.d.ts +11 -2
  1455. package/dist/react-sdk/application-runtime/integration/selectors.js +1 -1
  1456. package/dist/react-sdk/application-runtime/integration/types.d.ts +5 -2
  1457. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  1458. package/dist/react-sdk/application-runtime/responsive/actions.d.ts +47 -0
  1459. package/dist/react-sdk/application-runtime/responsive/actions.js +1 -0
  1460. package/dist/react-sdk/application-runtime/responsive/index.d.ts +4 -0
  1461. package/dist/react-sdk/application-runtime/responsive/index.js +1 -0
  1462. package/dist/react-sdk/application-runtime/responsive/initialize.d.ts +3 -0
  1463. package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -0
  1464. package/dist/react-sdk/application-runtime/responsive/selectors.d.ts +20 -0
  1465. package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -0
  1466. package/dist/react-sdk/application-runtime/responsive/types.d.ts +104 -0
  1467. package/dist/react-sdk/application-runtime/responsive/types.js +1 -0
  1468. package/dist/react-sdk/application-runtime/routing/access-service.d.ts +1 -0
  1469. package/dist/react-sdk/application-runtime/routing/routing-service.d.ts +34 -2
  1470. package/dist/react-sdk/application-runtime/routing/routing-service.js +1 -1
  1471. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +144 -38
  1472. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  1473. package/dist/react-sdk/domain-application-context/DomainLifecycleBoundary.js +1 -1
  1474. package/dist/react-sdk/domain-context/common-hooks/index.d.ts +9 -0
  1475. package/dist/react-sdk/domain-context/common-hooks/index.js +1 -0
  1476. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.d.ts +23 -0
  1477. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.js +1 -0
  1478. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.d.ts +41 -0
  1479. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.js +1 -0
  1480. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +9 -9
  1481. package/dist/react-sdk/domain-context/component-hooks/index.d.ts +1 -0
  1482. package/dist/react-sdk/domain-context/component-hooks/index.js +1 -0
  1483. package/dist/react-sdk/domain-context/component-hooks/use-component.js +1 -1
  1484. package/dist/react-sdk/domain-context/entity-hooks/use-domain-entity-state.js +1 -1
  1485. package/dist/react-sdk/domain-context/entity-hooks/use-entity-price.js +1 -1
  1486. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-id.js +1 -1
  1487. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-state.js +1 -1
  1488. package/dist/react-sdk/domain-context/index.d.ts +9 -1
  1489. package/dist/react-sdk/domain-context/index.js +1 -1
  1490. package/dist/react-sdk/domain-context/system-hooks/composition-hooks.js +1 -1
  1491. package/dist/react-sdk/domain-context/system-hooks/dimension-hooks.js +1 -1
  1492. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +8 -0
  1493. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -0
  1494. package/dist/react-sdk/domain-context/system-hooks/hover-hooks.js +1 -1
  1495. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.d.ts +24 -0
  1496. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.js +1 -0
  1497. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +11 -0
  1498. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  1499. package/dist/react-sdk/domain-context/system-hooks/selection-hooks.js +1 -1
  1500. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.d.ts +32 -0
  1501. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.js +1 -0
  1502. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.d.ts +57 -0
  1503. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.js +1 -0
  1504. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.d.ts +61 -0
  1505. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.js +1 -0
  1506. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.d.ts +20 -0
  1507. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.js +1 -0
  1508. package/dist/react-sdk/domain-controls/hooks/use-angle-dimension.d.ts +1 -1
  1509. package/dist/react-sdk/elements/configurator-error-page-props.d.ts +20 -0
  1510. package/dist/react-sdk/elements/configurator-error-page-props.js +1 -0
  1511. package/dist/react-sdk/elements/index.d.ts +1 -0
  1512. package/dist/react-sdk/handlers/FinalizeActionRunner.d.ts +13 -0
  1513. package/dist/react-sdk/handlers/FinalizeActionRunner.js +1 -0
  1514. package/dist/react-sdk/handlers/FinalizeActionsHost.d.ts +10 -0
  1515. package/dist/react-sdk/handlers/FinalizeActionsHost.js +1 -0
  1516. package/dist/react-sdk/handlers/FinalizeActionsProvider.d.ts +11 -0
  1517. package/dist/react-sdk/handlers/FinalizeActionsProvider.js +1 -0
  1518. package/dist/react-sdk/handlers/finalize-actions-context.d.ts +6 -0
  1519. package/dist/react-sdk/handlers/finalize-actions-context.js +1 -0
  1520. package/dist/react-sdk/handlers/finalize-actions-store.d.ts +23 -0
  1521. package/dist/react-sdk/handlers/finalize-actions-store.js +1 -0
  1522. package/dist/react-sdk/handlers/index.d.ts +6 -0
  1523. package/dist/react-sdk/handlers/index.js +1 -1
  1524. package/dist/react-sdk/handlers/use-finalize-action.d.ts +32 -0
  1525. package/dist/react-sdk/handlers/use-finalize-action.js +1 -0
  1526. package/dist/react-sdk/handlers/use-finalize-actions.d.ts +53 -0
  1527. package/dist/react-sdk/handlers/use-finalize-actions.js +1 -0
  1528. package/dist/react-sdk/index.d.ts +1 -0
  1529. package/dist/react-sdk/index.js +1 -1
  1530. package/dist/react-sdk/loading-state/loading-state-manager.d.ts +5 -0
  1531. package/dist/react-sdk/loading-state/loading-state-manager.js +1 -1
  1532. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.d.ts +36 -0
  1533. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.js +1 -0
  1534. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.d.ts +44 -0
  1535. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.js +1 -0
  1536. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.d.ts +38 -0
  1537. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.js +1 -0
  1538. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.d.ts +30 -0
  1539. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.js +1 -0
  1540. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.d.ts +30 -0
  1541. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.js +1 -0
  1542. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.d.ts +9 -0
  1543. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.js +1 -0
  1544. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.d.ts +9 -0
  1545. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.js +1 -0
  1546. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.d.ts +10 -0
  1547. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.js +1 -0
  1548. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.d.ts +9 -0
  1549. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.js +1 -0
  1550. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.d.ts +9 -0
  1551. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.js +1 -0
  1552. package/dist/react-sdk/scene-control-elements/index.d.ts +11 -0
  1553. package/dist/react-sdk/scene-control-elements/index.js +1 -0
  1554. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.d.ts +5 -0
  1555. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.js +1 -0
  1556. package/dist/react-sdk/session/NotAuthenticatedPage.d.ts +4 -0
  1557. package/dist/react-sdk/session/NotAuthenticatedPage.js +1 -1
  1558. package/dist/react-sdk/web-component/create-web-component.js +1 -1
  1559. package/dist/react-sdk/web-component/god-mode/god-mode-registry.d.ts +30 -0
  1560. package/dist/react-sdk/web-component/god-mode/god-mode-registry.js +1 -0
  1561. package/dist/react-sdk/web-component/god-mode/index.d.ts +1 -0
  1562. package/dist/react-sdk/web-component/god-mode/index.js +1 -0
  1563. package/dist/ui-sdk/icons/__generated/Lightbulb.d.ts +3 -0
  1564. package/dist/ui-sdk/icons/__generated/Lightbulb.js +1 -0
  1565. package/dist/ui-sdk/icons/__generated/XCircle.d.ts +3 -0
  1566. package/dist/ui-sdk/icons/__generated/XCircle.js +1 -0
  1567. package/dist/ui-sdk/icons/__generated/index.d.ts +4 -0
  1568. package/dist/ui-sdk/icons/__generated/index.js +1 -1
  1569. package/dist/ui-sdk/icons/icons-registry.js +1 -1
  1570. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.d.ts +9 -0
  1571. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.js +1 -1
  1572. package/dist/ui-sdk/responsive-application/index.d.ts +1 -0
  1573. package/dist/ui-sdk/responsive-application/responsive-state-store.d.ts +59 -0
  1574. package/dist/ui-sdk/responsive-application/responsive-state-store.js +1 -0
  1575. package/dist/ui-sdk/responsive-application/use-store-responsive-info.d.ts +7 -0
  1576. package/dist/ui-sdk/responsive-application/use-store-responsive-info.js +1 -0
  1577. package/dist/ui-sdk/theme/types.d.ts +5 -1
  1578. package/dist/webhook/builders/common.d.ts +5 -0
  1579. package/dist/webhook/builders/webhook-builder.js +1 -1
  1580. package/package.json +58 -36
  1581. package/schema/domain-spec.json +1341 -217
  1582. package/dist/application-spec/core/eval-to-constant.d.ts +0 -14
  1583. package/dist/application-spec/generate-application/code/templates/env-ci.d.ts +0 -1
  1584. package/dist/application-spec/generate-application/code/templates/env-ci.js +0 -25
  1585. package/dist/application-spec/generate-application/code/templates/env-example.d.ts +0 -1
  1586. package/dist/application-spec/generate-application/code/templates/env-example.js +0 -90
  1587. package/dist/application-spec/generate-application/code/templates/nvmrc.d.ts +0 -1
  1588. package/dist/application-spec/generate-application/code/templates/nvmrc.js +0 -2
  1589. package/dist/application-spec/generate-application/code/templates/package-json.d.ts +0 -10
  1590. package/dist/application-spec/generate-application/code/templates/package-json.js +0 -1
  1591. package/dist/application-spec/generate-application/code/templates/prettier-ignore.d.ts +0 -1
  1592. package/dist/application-spec/generate-application/code/templates/prettier-ignore.js +0 -6
  1593. package/dist/application-spec/generate-application/code/templates/private-assets-readme.d.ts +0 -1
  1594. package/dist/application-spec/generate-application/code/templates/private-assets-readme.js +0 -24
  1595. package/dist/application-spec/generate-application/code/templates/public-assets-readme.d.ts +0 -1
  1596. package/dist/application-spec/generate-application/code/templates/public-assets-readme.js +0 -24
  1597. package/dist/application-spec/generate-application/code/templates/readme.d.ts +0 -1
  1598. package/dist/application-spec/generate-application/code/templates/readme.js +0 -23
  1599. package/dist/application-spec/generate-application/code/templates/skills/agents-md.d.ts +0 -1
  1600. package/dist/application-spec/generate-application/code/templates/skills/agents-md.js +0 -2
  1601. package/dist/application-spec/generate-application/code/templates/webhook-implementation.d.ts +0 -1
  1602. package/dist/application-spec/generate-application/code/templates/webhook-implementation.js +0 -7
  1603. package/dist/configurator/common/frontend-analytics.d.ts +0 -46
  1604. package/dist/configurator/common/frontend-analytics.js +0 -1
  1605. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.d.ts +0 -4
  1606. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.js +0 -1
  1607. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.d.ts +0 -4
  1608. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.js +0 -1
  1609. package/dist/domain/actions/action-factory.d.ts +0 -11
  1610. package/dist/domain/actions/prepare-action-implementations.d.ts +0 -15
  1611. package/dist/domain/actions/prepare-action-implementations.js +0 -5
  1612. package/dist/domain/application/element-registration.d.ts +0 -110
  1613. package/dist/domain/application/element-registration.js +0 -1
  1614. package/dist/domain/application/handler-registration.d.ts +0 -34
  1615. package/dist/domain/application/handler-registration.js +0 -1
  1616. package/dist/domain/application/resolve-imported-transformers.d.ts +0 -23
  1617. package/dist/domain/application/resolve-imported-transformers.js +0 -1
  1618. package/dist/domain/application/resource-builder.d.ts +0 -13
  1619. package/dist/domain/application/resource-builder.js +0 -1
  1620. package/dist/domain/components/component-reader-types.d.ts +0 -44
  1621. package/dist/domain/components/debug-state-component.d.ts +0 -14
  1622. package/dist/domain/components/debug-state-component.js +0 -1
  1623. package/dist/domain/components/domain-component-optic.d.ts +0 -79
  1624. package/dist/domain/components/domain-component-optic.js +0 -16
  1625. package/dist/domain/components/drag-state-component.d.ts +0 -16
  1626. package/dist/domain/components/drag-state-component.js +0 -1
  1627. package/dist/domain/components/export-state-component.d.ts +0 -15
  1628. package/dist/domain/components/export-state-component.js +0 -1
  1629. package/dist/domain/components/fullscreen-state-component.d.ts +0 -14
  1630. package/dist/domain/components/fullscreen-state-component.js +0 -1
  1631. package/dist/domain/components/group-components-by-entity-id-and-name.d.ts +0 -9
  1632. package/dist/domain/components/group-components-by-entity-id-and-name.js +0 -1
  1633. package/dist/domain/components/hover-state-component.d.ts +0 -14
  1634. package/dist/domain/components/hover-state-component.js +0 -1
  1635. package/dist/domain/components/index.d.ts +0 -2
  1636. package/dist/domain/components/index.js +0 -1
  1637. package/dist/domain/components/legacy-filter.d.ts +0 -513
  1638. package/dist/domain/components/navigation-state-component.d.ts +0 -15
  1639. package/dist/domain/components/navigation-state-component.js +0 -1
  1640. package/dist/domain/components/selection-state-component.d.ts +0 -14
  1641. package/dist/domain/components/selection-state-component.js +0 -1
  1642. package/dist/domain/components/system-component-builder.d.ts +0 -12
  1643. package/dist/domain/components/system-component-builder.js +0 -1
  1644. package/dist/domain/components/system-component-filter.d.ts +0 -793
  1645. package/dist/domain/components/system-virtual-entity.js +0 -1
  1646. package/dist/domain/components/tool-state-component.d.ts +0 -14
  1647. package/dist/domain/components/tool-state-component.js +0 -1
  1648. package/dist/domain/components/updates.d.ts +0 -124
  1649. package/dist/domain/components/view-state-component.d.ts +0 -14
  1650. package/dist/domain/components/view-state-component.js +0 -1
  1651. package/dist/domain/components/viewport-state-component.d.ts +0 -29
  1652. package/dist/domain/components/viewport-state-component.js +0 -1
  1653. package/dist/domain/core/action.d.ts +0 -67
  1654. package/dist/domain/core/component.d.ts +0 -46
  1655. package/dist/domain/core/expression.d.ts +0 -50
  1656. package/dist/domain/core/migrations.d.ts +0 -99
  1657. package/dist/domain/core/migrations.js +0 -1
  1658. package/dist/domain/core/model.d.ts +0 -127
  1659. package/dist/domain/core/reflection.d.ts +0 -114
  1660. package/dist/domain/core/reflection.js +0 -1
  1661. package/dist/domain/core/state.d.ts +0 -10
  1662. package/dist/domain/domain-context/recipe-system/recipes.d.ts +0 -57
  1663. package/dist/domain/domain-context/recipe-system/recipes.js +0 -1
  1664. package/dist/domain/expressions/constant-expressions.d.ts +0 -9
  1665. package/dist/domain/expressions/constant-expressions.js +0 -1
  1666. package/dist/domain/expressions/custom-expression.d.ts +0 -13
  1667. package/dist/domain/expressions/custom-expression.js +0 -1
  1668. package/dist/domain/expressions/index.d.ts +0 -1
  1669. package/dist/domain/expressions/index.js +0 -1
  1670. package/dist/domain/expressions/memoize-expression.d.ts +0 -17
  1671. package/dist/domain/expressions/prepare-domain-expressions.d.ts +0 -16
  1672. package/dist/domain/invariants/builtin-invariant.d.ts +0 -5
  1673. package/dist/domain/invariants/custom-invariants.d.ts +0 -22
  1674. package/dist/domain/invariants/custom-invariants.js +0 -1
  1675. package/dist/domain/invariants/invariants.d.ts +0 -77
  1676. package/dist/domain/invariants/invariants.js +0 -1
  1677. package/dist/domain/invariants/violation-component.js +0 -1
  1678. package/dist/domain/invariants/violation.d.ts +0 -85
  1679. package/dist/domain/invariants/violation.js +0 -1
  1680. package/dist/domain/project-modules/index.d.ts +0 -1
  1681. package/dist/domain/project-modules/index.js +0 -1
  1682. package/dist/domain/project-modules/project-modules.d.ts +0 -41
  1683. package/dist/domain/project-modules/project-modules.js +0 -1
  1684. package/dist/domain/relations/all-of-type-relation.d.ts +0 -33
  1685. package/dist/domain/relations/all-of-type-relation.js +0 -1
  1686. package/dist/domain/relations/component-factories.d.ts +0 -15
  1687. package/dist/domain/relations/component-factories.js +0 -1
  1688. package/dist/domain/relations/composed-of.d.ts +0 -12
  1689. package/dist/domain/relations/composed-of.js +0 -1
  1690. package/dist/domain/relations/direct-relation.d.ts +0 -29
  1691. package/dist/domain/relations/indirect-relation.d.ts +0 -81
  1692. package/dist/domain/relations/indirect-relation.js +0 -1
  1693. package/dist/domain/relations/reference-component.d.ts +0 -18
  1694. package/dist/domain/relations/reference-component.js +0 -1
  1695. package/dist/domain/relations/reference-field.d.ts +0 -7
  1696. package/dist/domain/relations/relation-factory.d.ts +0 -19
  1697. package/dist/domain/relations/relation-factory.js +0 -1
  1698. package/dist/domain/relations/relation-implementation.d.ts +0 -8
  1699. package/dist/domain/system-components/angle-indicator.d.ts +0 -21
  1700. package/dist/domain/system-components/angle-indicator.js +0 -1
  1701. package/dist/domain/system-components/attribute-switch.d.ts +0 -8
  1702. package/dist/domain/system-components/attribute-switch.js +0 -1
  1703. package/dist/domain/system-components/autorotate-camera-component.d.ts +0 -19
  1704. package/dist/domain/system-components/autorotate-camera-component.js +0 -1
  1705. package/dist/domain/system-components/basic-sidebar-footer.d.ts +0 -8
  1706. package/dist/domain/system-components/basic-sidebar-footer.js +0 -1
  1707. package/dist/domain/system-components/camera-based-hidden-entity-object.js +0 -1
  1708. package/dist/domain/system-components/camera-based-hidden-entity.js +0 -1
  1709. package/dist/domain/system-components/canvas-config.d.ts +0 -87
  1710. package/dist/domain/system-components/canvas-config.js +0 -1
  1711. package/dist/domain/system-components/canvas-custom-environment.js +0 -1
  1712. package/dist/domain/system-components/canvas-padding.d.ts +0 -25
  1713. package/dist/domain/system-components/canvas-padding.js +0 -1
  1714. package/dist/domain/system-components/canvas-preset-environment.d.ts +0 -37
  1715. package/dist/domain/system-components/canvas-preset-environment.js +0 -1
  1716. package/dist/domain/system-components/child-entity-recipe-hierarchy.d.ts +0 -21
  1717. package/dist/domain/system-components/child-entity-recipe-hierarchy.js +0 -1
  1718. package/dist/domain/system-components/client-side-image.d.ts +0 -14
  1719. package/dist/domain/system-components/client-side-image.js +0 -1
  1720. package/dist/domain/system-components/color-value.js +0 -1
  1721. package/dist/domain/system-components/common/angle-indicator-schema.d.ts +0 -292
  1722. package/dist/domain/system-components/common/angle-indicator-schema.js +0 -1
  1723. package/dist/domain/system-components/common/dimension-indicator-schema.d.ts +0 -607
  1724. package/dist/domain/system-components/custom-header.d.ts +0 -11
  1725. package/dist/domain/system-components/custom-header.js +0 -1
  1726. package/dist/domain/system-components/custom-price-footer.js +0 -1
  1727. package/dist/domain/system-components/custom-sidebar-footer.d.ts +0 -11
  1728. package/dist/domain/system-components/custom-sidebar-footer.js +0 -1
  1729. package/dist/domain/system-components/dimension-indicator.d.ts +0 -31
  1730. package/dist/domain/system-components/dimension-indicator.js +0 -1
  1731. package/dist/domain/system-components/editable-angle-indicator.d.ts +0 -38
  1732. package/dist/domain/system-components/editable-angle-indicator.js +0 -1
  1733. package/dist/domain/system-components/editable-distance-dimension-indicator.d.ts +0 -42
  1734. package/dist/domain/system-components/editable-distance-dimension-indicator.js +0 -1
  1735. package/dist/domain/system-components/editable-offset-indicator.d.ts +0 -41
  1736. package/dist/domain/system-components/editable-offset-indicator.js +0 -1
  1737. package/dist/domain/system-components/editable-size-indicator.d.ts +0 -38
  1738. package/dist/domain/system-components/editable-size-indicator.js +0 -1
  1739. package/dist/domain/system-components/entity-header.d.ts +0 -22
  1740. package/dist/domain/system-components/entity-header.js +0 -1
  1741. package/dist/domain/system-components/exit-tool-mode-fab.d.ts +0 -25
  1742. package/dist/domain/system-components/exit-tool-mode-fab.js +0 -1
  1743. package/dist/domain/system-components/finalize-action.d.ts +0 -20
  1744. package/dist/domain/system-components/finalize-action.js +0 -1
  1745. package/dist/domain/system-components/finalize-component.js +0 -1
  1746. package/dist/domain/system-components/fit-selection-orthographic-camera-component.js +0 -1
  1747. package/dist/domain/system-components/fit-selection-perspective-camera-component.js +0 -1
  1748. package/dist/domain/system-components/fixed-header.d.ts +0 -10
  1749. package/dist/domain/system-components/fixed-header.js +0 -1
  1750. package/dist/domain/system-components/floating-header.d.ts +0 -10
  1751. package/dist/domain/system-components/floating-header.js +0 -1
  1752. package/dist/domain/system-components/hidden-header.d.ts +0 -8
  1753. package/dist/domain/system-components/hidden-header.js +0 -1
  1754. package/dist/domain/system-components/hidden-sidebar-footer.d.ts +0 -21
  1755. package/dist/domain/system-components/hidden-sidebar-footer.js +0 -1
  1756. package/dist/domain/system-components/horizontal-tabs.d.ts +0 -28
  1757. package/dist/domain/system-components/horizontal-tabs.js +0 -1
  1758. package/dist/domain/system-components/list-selector-dimension-indicator.d.ts +0 -30
  1759. package/dist/domain/system-components/list-selector-dimension-indicator.js +0 -1
  1760. package/dist/domain/system-components/multilingual-text-value.js +0 -1
  1761. package/dist/domain/system-components/navigation-steps.d.ts +0 -19
  1762. package/dist/domain/system-components/navigation-steps.js +0 -1
  1763. package/dist/domain/system-components/offset-anchors.d.ts +0 -20
  1764. package/dist/domain/system-components/offset-anchors.js +0 -1
  1765. package/dist/domain/system-components/offset-indicator.d.ts +0 -84
  1766. package/dist/domain/system-components/offset-indicator.js +0 -1
  1767. package/dist/domain/system-components/offset.d.ts +0 -31
  1768. package/dist/domain/system-components/offset.js +0 -1
  1769. package/dist/domain/system-components/other-action.d.ts +0 -14
  1770. package/dist/domain/system-components/other-action.js +0 -1
  1771. package/dist/domain/system-components/property-page.d.ts +0 -16
  1772. package/dist/domain/system-components/property-page.js +0 -1
  1773. package/dist/domain/system-components/read-sidebar-footer.d.ts +0 -8
  1774. package/dist/domain/system-components/read-sidebar-footer.js +0 -1
  1775. package/dist/domain/system-components/replace-entity-recipe-hierarchy.d.ts +0 -21
  1776. package/dist/domain/system-components/replace-entity-recipe-hierarchy.js +0 -1
  1777. package/dist/domain/system-components/rotatable.js +0 -1
  1778. package/dist/domain/system-components/rotation-handle.d.ts +0 -53
  1779. package/dist/domain/system-components/rotation-handle.js +0 -1
  1780. package/dist/domain/system-components/save-template-thumbnail.d.ts +0 -14
  1781. package/dist/domain/system-components/save-template-thumbnail.js +0 -1
  1782. package/dist/domain/system-components/scene-entity-add-fab.d.ts +0 -32
  1783. package/dist/domain/system-components/scene-entity-add-fab.js +0 -1
  1784. package/dist/domain/system-components/scene-entity-animation.js +0 -1
  1785. package/dist/domain/system-components/scene-entity-control.js +0 -1
  1786. package/dist/domain/system-components/scene-entity-delete-fab.d.ts +0 -19
  1787. package/dist/domain/system-components/scene-entity-delete-fab.js +0 -1
  1788. package/dist/domain/system-components/scene-entity-floor-object.js +0 -1
  1789. package/dist/domain/system-components/scene-entity-html-hotspot.d.ts +0 -27
  1790. package/dist/domain/system-components/scene-entity-html-hotspot.js +0 -1
  1791. package/dist/domain/system-components/scene-entity-navigation-hotspot.d.ts +0 -20
  1792. package/dist/domain/system-components/scene-entity-navigation-hotspot.js +0 -1
  1793. package/dist/domain/system-components/scene-entity-object-html-hotspot.d.ts +0 -31
  1794. package/dist/domain/system-components/scene-entity-object-html-hotspot.js +0 -1
  1795. package/dist/domain/system-components/scene-entity-select-hotspot.d.ts +0 -5
  1796. package/dist/domain/system-components/scene-entity-select-hotspot.js +0 -1
  1797. package/dist/domain/system-components/scene-entity-wall-object.js +0 -1
  1798. package/dist/domain/system-components/selectable-component.js +0 -1
  1799. package/dist/domain/system-components/sidebar-tabs.d.ts +0 -29
  1800. package/dist/domain/system-components/sidebar-tabs.js +0 -1
  1801. package/dist/domain/system-components/simple-summary.js +0 -1
  1802. package/dist/domain/system-components/size.d.ts +0 -21
  1803. package/dist/domain/system-components/size.js +0 -1
  1804. package/dist/domain/system-components/sketching-draw.d.ts +0 -17
  1805. package/dist/domain/system-components/sketching-draw.js +0 -1
  1806. package/dist/domain/system-components/sketching-edit.d.ts +0 -28
  1807. package/dist/domain/system-components/sketching-edit.js +0 -1
  1808. package/dist/domain/system-components/summary-component.js +0 -1
  1809. package/dist/domain/system-components/text-value.js +0 -1
  1810. package/dist/domain/system-components/tool-controls.js +0 -1
  1811. package/dist/domain/system-components/tool-menu-fab.d.ts +0 -40
  1812. package/dist/domain/system-components/tool-menu-fab.js +0 -1
  1813. package/dist/domain/system-components/toolbar.d.ts +0 -13
  1814. package/dist/domain/system-components/toolbar.js +0 -1
  1815. package/dist/domain/system-components/universal-sidebar-footer.d.ts +0 -12
  1816. package/dist/domain/system-components/universal-sidebar-footer.js +0 -1
  1817. package/dist/domain/system-components/view-controls.js +0 -1
  1818. package/dist/phoenix/commands/generate-project-files.d.ts +0 -6
  1819. package/dist/phoenix/commands/generate-project-files.js +0 -1
  1820. package/dist/react-sdk/application-runtime/runtime/god-mode.d.ts +0 -19
  1821. package/dist/react-sdk/application-runtime/runtime/god-mode.js +0 -1
  1822. /package/dist/{domain/components/component-reader-types.js → application-spec/core/expressions/relation-expression-params.js} +0 -0
  1823. /package/dist/application-spec/{core → enhanced-json}/eval-code-uses-self.d.ts +0 -0
  1824. /package/dist/application-spec/{core → enhanced-json}/eval-code-uses-self.js +0 -0
  1825. /package/dist/application-spec/{core → enhanced-json}/eval-to-constant.js +0 -0
  1826. /package/dist/{domain/core/action.js → application-spec/generate-application/runtime/spec-code/spec-code-module.js} +0 -0
  1827. /package/dist/{domain/core/expression.js → application-spec/parse-application-files/spec/expressions/expression-read.js} +0 -0
  1828. /package/dist/{domain/relations/relation-implementation.js → configurator/ui/assistant/form/form-model.js} +0 -0
  1829. /package/dist/{domain/relations/reference-field.js → configurator/ui/assistant/form-elements/form-element-props.js} +0 -0
  1830. /package/dist/domain/{actions → core/action}/action-factory.js +0 -0
  1831. /package/dist/domain/{components → core/component}/legacy-filter.js +0 -0
  1832. /package/dist/domain/{components → core/component}/system-component-filter.js +0 -0
  1833. /package/dist/domain/{components → core/component}/system-virtual-entity.d.ts +0 -0
  1834. /package/dist/domain/{components → core/component}/updates.js +0 -0
  1835. /package/dist/domain/{invariants → core/invariant}/builtin-invariant.js +0 -0
  1836. /package/dist/domain/{invariants → core/invariant}/violation-component.d.ts +0 -0
  1837. /package/dist/domain/core/{alias.d.ts → model/alias.d.ts} +0 -0
  1838. /package/dist/domain/core/{alias.js → model/alias.js} +0 -0
  1839. /package/dist/domain/core/{common-definitions.d.ts → model/common-definitions.d.ts} +0 -0
  1840. /package/dist/domain/core/{common-definitions.js → model/common-definitions.js} +0 -0
  1841. /package/dist/domain/core/{component.js → model/component.js} +0 -0
  1842. /package/dist/domain/core/{model.js → model/model.js} +0 -0
  1843. /package/dist/domain/core/{preset.d.ts → model/preset.d.ts} +0 -0
  1844. /package/dist/domain/core/{preset.js → model/preset.js} +0 -0
  1845. /package/dist/domain/{relations → core/relation}/direct-relation.js +0 -0
  1846. /package/dist/domain/core/{state.js → state/state.js} +0 -0
  1847. /package/dist/domain/{expressions → domain-runtime/spec}/memoize-expression.js +0 -0
  1848. /package/dist/domain/{expressions → domain-runtime/spec}/prepare-domain-expressions.js +0 -0
  1849. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity-object.d.ts +0 -0
  1850. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity.d.ts +0 -0
  1851. /package/dist/domain/{system-components → extensions}/canvas-custom-environment.d.ts +0 -0
  1852. /package/dist/domain/{system-components → extensions}/color-value.d.ts +0 -0
  1853. /package/dist/domain/{system-components → extensions}/common/dimension-indicator-schema.js +0 -0
  1854. /package/dist/domain/{system-components → extensions}/common/dimension-indicators.d.ts +0 -0
  1855. /package/dist/domain/{system-components → extensions}/common/dimension-indicators.js +0 -0
  1856. /package/dist/domain/{system-components → extensions}/common/editable-indicator-button-variant.d.ts +0 -0
  1857. /package/dist/domain/{system-components → extensions}/common/editable-indicator-button-variant.js +0 -0
  1858. /package/dist/domain/{system-components → extensions}/custom-price-footer.d.ts +0 -0
  1859. /package/dist/domain/{system-components → extensions}/finalize-component.d.ts +0 -0
  1860. /package/dist/domain/{system-components → extensions}/fit-selection-orthographic-camera-component.d.ts +0 -0
  1861. /package/dist/domain/{system-components → extensions}/fit-selection-perspective-camera-component.d.ts +0 -0
  1862. /package/dist/domain/{system-components → extensions}/multilingual-text-value.d.ts +0 -0
  1863. /package/dist/domain/{system-components → extensions}/rotatable.d.ts +0 -0
  1864. /package/dist/domain/{system-components → extensions}/scene-entity-animation.d.ts +0 -0
  1865. /package/dist/domain/{system-components → extensions}/scene-entity-control.d.ts +0 -0
  1866. /package/dist/domain/{system-components → extensions}/scene-entity-floor-object.d.ts +0 -0
  1867. /package/dist/domain/{system-components → extensions}/scene-entity-wall-object.d.ts +0 -0
  1868. /package/dist/domain/{system-components → extensions}/selectable-component.d.ts +0 -0
  1869. /package/dist/domain/{system-components → extensions}/simple-summary.d.ts +0 -0
  1870. /package/dist/domain/{system-components → extensions}/summary-component.d.ts +0 -0
  1871. /package/dist/domain/{system-components → extensions}/text-value.d.ts +0 -0
  1872. /package/dist/domain/{system-components → extensions}/tool-controls.d.ts +0 -0
  1873. /package/dist/domain/{system-components → extensions}/view-controls.d.ts +0 -0
@@ -0,0 +1,10 @@
1
+ /**
2
+ * A path into the project's resources, the kind stored on `imageUrl` fields: no scheme and no host,
3
+ * so resolving it never leaves the resources origin. A backslash, a control character or leading
4
+ * whitespace is refused too, because the URL parser reads a backslash as a slash and strips the
5
+ * others, which would turn `\\host` or ` //host` into an address on another host.
6
+ *
7
+ * Written as a JSON Schema `pattern`, so the `image` attribute of a form element applies the same
8
+ * rule as the images of a reply.
9
+ */
10
+ export declare const ASSISTANT_RESOURCE_PATH_PATTERN: string;
@@ -0,0 +1 @@
1
+ export const ASSISTANT_RESOURCE_PATH_PATTERN=String.raw`^(?![a-zA-Z][a-zA-Z0-9+.-]*:)(?!//)[^\s\\\x00-\x1f][^\\\x00-\x1f]*$`;
@@ -0,0 +1,4 @@
1
+ export { ASSISTANT_FORM_NAME_PATTERN, isHtmlElementName } from './assistant-form-element-name.js';
2
+ export { ASSISTANT_BUILT_IN_FORM_ELEMENTS } from './assistant-form-elements.js';
3
+ export type { AssistantBuiltInFormElementAttributes, AssistantBuiltInFormElementName, AssistantFormAttribute, AssistantFormAttributeValue, AssistantFormElementAttributes, AssistantFormElementDescriptor, AssistantFormRole, } from './assistant-form-elements.js';
4
+ export { ASSISTANT_RESOURCE_PATH_PATTERN } from './assistant-resource-path.js';
@@ -0,0 +1 @@
1
+ export{ASSISTANT_FORM_NAME_PATTERN,isHtmlElementName}from"./assistant-form-element-name.js";export{ASSISTANT_BUILT_IN_FORM_ELEMENTS}from"./assistant-form-elements.js";export{ASSISTANT_RESOURCE_PATH_PATTERN}from"./assistant-resource-path.js";
@@ -1,13 +1,6 @@
1
1
  import type { AssistantManifest } from './assistant-manifest.js';
2
- /**
3
- * The part of the assistant's system prompt that explains how to read the generated GraphQL schema.
4
- * It is generated here, by the SDK that also runs in the browser, and returned by the deployment webhook,
5
- * because the conventions it describes belong to this SDK version and not to the server. The part
6
- * about changes is left out when the schema has no `Mutation` type, the part about adding
7
- * entities when it has no `addChild` mutation, the part about replacing them when it has no
8
- * `replaceEntity` mutation, the part about the choices of a field when it has
9
- * no options edge, and the part about custom changes when the manifest exposes no action. The last two sections explain the
10
- * `query` and `apply` tools, which every run registers whatever the schema holds, and the change
11
- * record the `AssistantSystem` attaches to every user message.
12
- */
2
+ import { type AssistantFormElementDescriptor } from './form/index.js';
3
+ /** How the prompt writes an element: its tag with each attribute and what it takes. Exported for tests. */
4
+ export declare const formElementSignature: ({ name, role, attributes }: AssistantFormElementDescriptor) => string;
5
+ /** SDK-version conventions for using the manifest's capabilities and reading their results. */
13
6
  export declare const generateAssistantPrompt: (assistant: AssistantManifest) => string;
@@ -1 +1 @@
1
- let e=["How to read the GraphQL schema of this configurator:","- A configuration is a set of entities. `root` is the root entity, `entities` lists every entity or the ones with the given ids, and `selectedEntity` is the entity the user has selected, or the root entity when nothing is selected.","- Every entity has an `id` of the form `<Type>-<number>`, for example `Table-1`, and a `type` with its entity type name. Ids are assigned by the configurator: read them from the configuration and never make one up.","- A field whose name starts with `_` is computed by the configurator from other values. It can be read like any other field and never written.","- Numbers are in the units the configuration stores them in. A field description names the unit when the product defines one.",'- A text field that only takes fixed values lists them in its description as "One of: ...". Use exactly those values.',"- A field typed as another entity type or as a list of one is a relation: select fields on it to read the related entities.","- Field and type descriptions come from the team that built the configurator and say what a value means for the product."],t=["How changes work:","- Every field of the `Mutation` type is one change. Its description says what it changes and what it returns.","- The configurator checks the whole configuration after each change. A change that would leave it invalid fails with an error that names the entities at fault, and it is not applied. Later changes of the same request are then not run.","- The configurator may adjust other values in response to a change, so read what a mutation returns instead of assuming the values you sent."],a=["How to add entities:","- Entities are added from recipes, the same ones the configurator offers the user. An entity type that can take children has a `meta` field; `meta { childRecipes }` lists its recipe groups and their recipes.","- List the recipes of the group first, pick one by its `key`, then call `addChild` with the id of the parent, the `groupId` and the `key`. Keys change with the configuration and the language, so never reuse one from memory.","- `dryRun` on a recipe shows what adding it would do without adding it: whether it is `ok`, the `changedEntities` it would add or modify, the `deletedEntityIds` it would remove, the `sideEffects` the configurator says it would have, and the `errors` when it cannot be added. An entity whose id the configuration does not have yet is new. It is costly, so select it only on the recipes you are deciding between.","- Put each `addChild` in its own operation. The recipes of a group and what they add depend on the configuration before them, so after adding something, list the group again before adding from it once more."],n=["How to replace entities:","- An entity is replaced from recipes, the same ones the configurator offers the user. An entity type that can be replaced has a `meta` field; `meta { replaceRecipes }` lists its replace recipe groups and what the entity can be replaced with.","- List the recipes of the group first, pick one by its `key`, then call `replaceEntity` with the id of the entity, the `groupId` and the `key`. `dryRun` on a replace recipe shows what replacing would do without doing it: the replacement and everything else that changes are under `changedEntities`, and the replaced entity is among the `deletedEntityIds`.","- The replacement is a new entity with a new id, and its field values come from the recipe, so they can differ from those of the entity it replaces. Read the ids and values `replaceEntity` returns, and never use the old id again.","- Put each `replaceEntity` in its own operation. The recipes of a group and what they do depend on the configuration before them, so after replacing something, list the group of the replacement again before replacing once more."],o=["How to find the values a field can take:","- Some fields store a key whose choices the configurator holds elsewhere. Such a field has an edge under `meta` named after it: `meta { <field>Options }` lists its choices, each with the `value` to write and the `name` the user sees.","- Read the choices before you write such a field or name a choice to the user, and write the `value`, not the `name`. A value outside the list is rejected unless the edge description says the field is not checked.","- `dryRun` on an option shows what writing its value would do without writing it: whether it is `ok`, the `changedEntities` it would add or modify, the `deletedEntityIds` it would remove, the `sideEffects` the configurator says it would have, and the `errors` when the value cannot be written. It is costly, so select it only on the options you are deciding between. It is null when the edge description says the options cannot be dry-run.","- The choices can depend on the entity and on its current state. Read them again after a change, unless the edge description says they are the same for all instances or do not change."],i=["How the custom changes of this configurator work:","- Besides the generic changes, the `Mutation` type has fields the team built for this product. Each runs one domain operation the configurator itself uses, so prefer it over composing the same change from generic mutations. Its description says what it does and what its arguments mean.","- Its arguments are checked against what the operation declares; an argument that does not fit, or a change the product does not allow, fails the field with a message that says what to send instead.","- It returns an object whose fields the description names; a field typed as an entity reads that entity after the change."],s=["How to use the `query` and `apply` tools:","- Both take `operations`, a list of GraphQL documents that run in order. Each document holds exactly one operation. To do several things, send several items in one call instead of several calls.","- Write values into the document as literals. Use `variables` only for a value that cannot be written as a literal.","- Select only the fields you need: results are returned whole.","- The result has one GraphQL result per operation, in the order sent. When an operation fails, its `errors` say why and the operations after it are not run.","- `query` reads the configuration the user has open and never changes it. Call it before you say anything about the configuration."],h=["- This configurator exposes no changes, so there is nothing for `apply` to run. Say so when the user asks you to change the configuration."],r=['- Mutations inside `query` answer "what if" questions. Each operation sees the changes of the ones before it, so a mutation followed by a query shows the configuration as it would be. Nothing is kept and the user sees no change.',"- `apply` makes the changes the user asked for. It is all or nothing: when any operation fails, nothing is changed; when all succeed, the user gets them as one undo step.","- `committed` in the result says whether the changes were kept. When it is false although no operation failed, `message` says why: the changes may be waiting for the approval of the user, the user may have changed the configuration meanwhile, or this session may not change the configuration at all. Without a `message`, the operations changed nothing. Never tell the user a change was made unless `committed` is true.","- `sideEffects` in the result lists what the configurator did beyond what the operations asked for, such as parts it added or replaced to keep the configuration valid, in its own words. Tell the user about them when the changes were kept. When they were not, or in `query`, it lists what the mutations that succeeded would do. `dryRun` has the same list for a single recipe or option."],d=["How to read the change record:","- Every user message starts with a change record of the configuration since your previous action. It is the complete list of the entities that were added or deleted, of the stored fields of this schema that changed, and of the selection and navigation changes, so update your picture from it and do not query those again when it does not mention them.","- Fields whose name starts with `_` are computed and are never listed. Read them again when the record lists a change they may depend on.","- `[changes: none]`: nothing changed. Do not query again what you already know.","- `[changes]` is followed by one line per change. `selected`, `navigationState`, `viewState` and `toolState` lines show `<old> -> <new>` of what `selectedEntity` and `navigation` return, with `none` for an empty value. `A <id>` is an added entity and `D <id>` a deleted one. `M <id>` is a modified entity, followed by one `<field>: <old> -> <new>` line per changed field, under the name the field has in this schema. A `reset: undo/redo` line says the user undid or redid changes.","- The `#` comment at the end of a line names the control, the transformer or the explanation of the last change to that line.","- `[changes: unavailable]`: the page was loaded since your previous action, so earlier values may be stale. `[changes: too many (n)]`: n entities changed and are not listed. In both cases query what you need."],c=["- Changes you applied are not in the record, except those that were waiting for the approval of the user: they appear in it once approved."];export const generateAssistantPrompt=l=>{let u=/^type Mutation\b/m.test(l.sdl);return[e,...u?[t]:[],.../^\s+addChild\(/m.test(l.sdl)?[a]:[],.../^\s+replaceEntity\(/m.test(l.sdl)?[n]:[],.../^type FieldOption\b/m.test(l.sdl)?[o]:[],...Object.keys(l.actions??{}).length>0?[i]:[],[...s,...u?r:h],[...d,...u?c:[]]].map(e=>e.join("\n")).join("\n\n")};
1
+ import{ASSISTANT_BUILT_IN_FORM_ELEMENTS as e}from"./form/index.js";let t=[["Containers",["group","choice","choices"]],["Options",["option"]],["Inputs",["input"]]];export const formElementSignature=({name:e,role:t,attributes:a})=>{let n=["label",...Object.entries(a).map(([e,t])=>((e,{type:t,enum:a})=>a?`${e}="${a.join("|")}"`:"string"===t?e:`${e}="<${t}>"`)(e,t))];return"option"===t||"input"===t?`<${e} ${n.join(" ")} />`:`<${e} ${n.join(" ")}>…</${e}>`};export const generateAssistantPrompt=a=>{let n,s=Object.values(a.childRecipes??{}).some(e=>e.length>0),i=Object.values(a.replaceRecipes??{}).some(e=>e.length>0),o=Object.values(a.fieldOptions??{}).some(e=>e.length>0),r=Object.keys(a.actions??{}).length>0,h=(a.deletableTypes?.length??0)>0||Object.values(a.writableFields??{}).some(e=>Object.keys(e).length>0)||s||i||r,l=s||i||o,d=[...s?["`childRecipes` is what can be added to it"]:[],...i?["`replaceRecipes` what it can be replaced with"]:[],...o?["`<field>Options` the values a field accepts"]:[]],c=["`selected`",...(a.navigationFields??[]).map(e=>`\`${e}\``)].join(", ");return[["Tools","- Put related operations in one call and select only the fields you need.",...h?[`- Use a mutation inside \`query\` to answer a what-if about a change ${l?"the lists under `meta` do not show":"before making it"}.`,"- Use `apply` only for what the user asked for."]:["- Nothing in this configurator can be changed through you. Say so when the user asks for a change."],"- When an operation fails, its `errors` say why and what to send instead."],...h?[["After a change","- A change is made only when the `apply` result has `committed: true`. Otherwise `errors` or `message` says what happened; without either, nothing changed. Never say a change was made when it was not.","- `sideEffects` names the major or unexpected things the configurator changed along with your change. Tell the user about them when committed; otherwise they describe what would happen. Smaller adjustments are not listed.","- A mutation returns the state after the change: use the ids and values it returned, not the ones you sent.",...r?["- When one mutation does the whole of what the user asked, use it instead of building the same change from several others."]:[]]]:[],...l?[["What can be done to an entity",`- \`meta\` lists what is possible right now: ${d.join(", ")}. Read the list before such a change and before telling the user what is available.`,`- You can select \`dryRun\` on ${[...s||i?["recipes"]:[],...o?["options"]:[]].join(" or ")} to look ahead and pick one that meets what the user asked for. It is optional before a change.`,"- Read the lists again after a change, unless their descriptions say they stay the same."]]:[],["The `[changes]` block","- Every user message starts with it: a glimpse of what the user did in the configurator since your last turn.",`- \`[changes: none]\`, or only ${c} lines: what you know still holds. Do not query it again.`,"- Other lines are a hint at what to read again: `A` added, `D` deleted, `M` modified with the fields. Text after `#` says what caused the line; `reset: undo/redo` says the user undid or redid changes.","- Read computed fields again when a listed change may affect them.","- `[changes: unavailable]` and `[changes: too many (n)]`: read again before relying on anything you read earlier.",...h?["- Your applied changes are not listed, except those waiting for user approval: they appear once approved."]:[]],["Reading the schema","- Take ids from results.",...(a.deletableTypes?.length??0)>0||i?["- The id of a deleted or replaced entity is gone and may later be given to another entity."]:[],`- A field whose name starts with \`_\` is computed: read it${h?", never write it":""}.`,"- Numbers are in the unit the field description names. Convert when the user uses another unit."],["Links","- You may link an entity of the current configuration when you speak about that very entity: `[the left burner](entity:CookingTop-1)`. It helps the user find it in the configurator.",...l?["- Whenever you name recipes or options you read from `meta`, in a list, a table or a sentence, link each one: `[Single gas burner](recipe:KitchenRange-1/top/gas_single)` or `[Oak](option:Cabinet-2/finishOptions/oak)`. The link shows the user its picture or color and its description, so never draw previews yourself. The target is the entity id, the recipe group id or the options field you read, and the key or value, each encoded as in a URL."]:[]],["Replies","- Write Markdown only, never HTML: the panel does not render it.","- An image, `![alt](path)`, is shown only when its path is relative.","- To make a warning or a key note stand out, write a GitHub alert: a blockquote whose first line is only `[!WARNING]` or `[!NOTE]`. Use it sparingly."],["Forms","- To ask the user something they answer by picking or typing, end your reply with a form: a fenced code block with the language `form`. It holds only elements, written as lowercase tags with string attributes, without Markdown or text.","- Every element takes `label`, the text the user sees; on a container or an input it also names the answer. An option or an input whose signature lists `value` takes it: an option sends it instead of its label, and an input starts with it.",'- A bare attribute in a signature takes any text, `name="<type>"` takes a value of that type written as text, such as `min="<number>"`, and `name="a|b"` takes one of the words listed.',"- Options can also stand on their own, outside a `choice` or `choices`.","- An element or attribute not listed here, or an element other than an option inside a `choice` or `choices`, makes the whole form fail.","- The answer is the user's next message. Each container or input gives a line `Label: value`, or the bare value without a label; the lines of a labelled container are indented by two spaces under it, a `choices` lists each picked option on its own line, and `—` marks what was left unanswered.",'- Example: `<choice label="Plinth"><reply label="Black" /><reply label="Oak" /></choice>` is answered with `Plinth: Oak`.',"- The chat shows the answer as the user's own message, so a `value` reads as natural words, never as an id, key or code. Give `value` only when the label alone would be unclear as an answer, and map the answer's labels back to ids yourself.",...(n=[...e,...a.formElements??[]],t.flatMap(([e,t])=>{let a=n.filter(({role:e})=>t.includes(e));return 0===a.length?[]:[`- ${e}:`,...a.map(e=>` - \`${formElementSignature(e)}\`: ${(({description:e,required:t=[]})=>0===t.length?e:`${e} Requires ${t.map(e=>`\`${e}\``).join(", ")}.`)(e)}`)]}))],...a.lenses?.declarations?[["Built-in fragments","- These fragments are already defined for every operation. Spread one by name on a field of its type, as in `field { ...FragmentName }`, instead of listing its fields.","- A fragment is a starting selection: add the other fields you need next to the spread, by name from the schema.","- Never define a fragment with one of these names.","",a.lenses.declarations]]:[]].map(e=>e.join("\n")).join("\n\n")};
@@ -1,4 +1,10 @@
1
- export type { AssistantResolvedManifest, AssistantResolvedField, AssistantValueType, AssistantRelationType, AssistantStates, AssistantWritableType, AssistantWritableField, AssistantResolvedHint, AssistantResolvedRecipes, AssistantResolvedOptionsEdge, AssistantResolvedAction, AssistantResolvedActionResult, } from './assistant-resolved-manifest.js';
1
+ export { ASSISTANT_HINTS } from './assistant-resolved-manifest.js';
2
+ export type { AssistantResolvedManifest, AssistantDeclaredField, AssistantDeclarations, AssistantDeclaredWrite, AssistantResolvedField, AssistantValueType, AssistantRelationType, AssistantStates, AssistantWritableType, AssistantWritableField, AssistantResolvedHint, AssistantResolvedRecipes, AssistantResolvedOptionsEdge, AssistantResolvedAction, AssistantResolvedActionResult, } from './assistant-resolved-manifest.js';
2
3
  export { buildAssistantManifest } from './build-assistant-manifest.js';
3
- export type { AssistantFieldSource, AssistantRecipeGroup, AssistantFieldOptions, AssistantManifest, } from './assistant-manifest.js';
4
+ export type { AssistantFieldExposure } from './create-assistant-execution-schema.js';
5
+ export { AssistantFieldClashError, createAssistantExecutionSchema } from './create-assistant-execution-schema.js';
6
+ export type { AssistantFieldSource, AssistantRecipeGroup, AssistantFieldOptions, AssistantScreenshotView, AssistantManifest, } from './assistant-manifest.js';
4
7
  export { generateAssistantPrompt } from './generate-assistant-prompt.js';
8
+ export * from './session-setup/index.js';
9
+ export { describeAssistantValues, mergeAssistantFields, resolveAssistantField } from './assistant-fields.js';
10
+ export * from './form/index.js';
@@ -1 +1 @@
1
- export{buildAssistantManifest}from"./build-assistant-manifest.js";export{generateAssistantPrompt}from"./generate-assistant-prompt.js";
1
+ export{ASSISTANT_HINTS}from"./assistant-resolved-manifest.js";export{buildAssistantManifest}from"./build-assistant-manifest.js";export{AssistantFieldClashError,createAssistantExecutionSchema}from"./create-assistant-execution-schema.js";export{generateAssistantPrompt}from"./generate-assistant-prompt.js";export*from"./session-setup/index.js";export{describeAssistantValues,mergeAssistantFields,resolveAssistantField}from"./assistant-fields.js";export*from"./form/index.js";
@@ -0,0 +1,20 @@
1
+ import type { AccessLevel, SessionRole } from '@salsita-ai/contracts/api';
2
+ import type { $DomainEntity, ActionTypes, DomainEntity } from '../../../core/index.js';
3
+ import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../../../domain-runtime/index.js';
4
+ import type { AssistantSetupManifest } from './assistant-setup-manifest.js';
5
+ /** Project-defined session inputs used by browser execution and the assistant setup webhook. */
6
+ export interface AssistantSetupInputs<SESSION_DATA> {
7
+ readonly role: SessionRole;
8
+ readonly sessionData: SESSION_DATA;
9
+ readonly access: AccessLevel;
10
+ }
11
+ /** Arguments carried by the standard single-props system-handler registration. */
12
+ export interface AssistantSetupHandlerProps<SESSION_DATA, ENTITIES extends DomainEntity<string> = DomainEntity<string>, $MAP extends Record<keyof $MAP, $DomainEntity<ENTITIES>> = Record<string, $DomainEntity<ENTITIES>>, ACTIONS extends ActionTypes = ActionTypes> {
13
+ readonly manifest: AssistantSetupManifest<ENTITIES, $MAP, ACTIONS>;
14
+ readonly inputs: AssistantSetupInputs<SESSION_DATA>;
15
+ }
16
+ /** A project setup handler is synchronous, pure and deterministic. Return null to disable the assistant. */
17
+ export type TypedCreateAssistantSetupHandler<SESSION_DATA, ENTITIES extends DomainEntity<string> = DomainEntity<string>, $MAP extends Record<keyof $MAP, $DomainEntity<ENTITIES>> = Record<string, $DomainEntity<ENTITIES>>, ACTIONS extends ActionTypes = ActionTypes> = (fn: (manifest: AssistantSetupManifest<ENTITIES, $MAP, ACTIONS>, inputs: AssistantSetupInputs<SESSION_DATA>) => AssistantSetupManifest<ENTITIES, $MAP, ACTIONS> | null) => SystemPhoenixHandlerRegistration<AssistantSetupHandlerProps<SESSION_DATA, ENTITIES, $MAP, ACTIONS>, AssistantSetupManifest<ENTITIES, $MAP, ACTIONS> | null>;
18
+ export declare const createAssistantSetupHandler: <SESSION_DATA, ENTITIES extends DomainEntity<string> = DomainEntity<string>, $MAP extends Record<keyof $MAP, $DomainEntity<ENTITIES>> = Record<string, $DomainEntity<ENTITIES>>, ACTIONS extends ActionTypes = ActionTypes>(fn: (manifest: AssistantSetupManifest<ENTITIES, $MAP, ACTIONS>, inputs: AssistantSetupInputs<SESSION_DATA>) => AssistantSetupManifest<ENTITIES, $MAP, ACTIONS> | null) => SystemPhoenixHandlerRegistration<AssistantSetupHandlerProps<SESSION_DATA, ENTITIES, $MAP, ACTIONS>, AssistantSetupManifest<ENTITIES, $MAP, ACTIONS> | null>;
19
+ export declare const createAssistantSetupHandlerFactory: <SESSION_DATA, ENTITIES extends DomainEntity<string> = DomainEntity<string>, $MAP extends Record<keyof $MAP, $DomainEntity<ENTITIES>> = Record<string, $DomainEntity<ENTITIES>>, ACTIONS extends ActionTypes = ActionTypes>() => TypedCreateAssistantSetupHandler<SESSION_DATA, ENTITIES, $MAP, ACTIONS>;
20
+ export declare const isAssistantSetupHandler: (handler: Pick<HandlerRegistration<never, unknown>, 'type' | 'name'>) => handler is SystemPhoenixHandlerRegistration<AssistantSetupHandlerProps<Record<string, unknown>>, AssistantSetupManifest | null>;
@@ -0,0 +1 @@
1
+ export const createAssistantSetupHandler=t=>({type:"system",name:"AssistantSetupHandler",handler:()=>({handler:({manifest:e,inputs:s})=>t(e,s)})});export const createAssistantSetupHandlerFactory=()=>createAssistantSetupHandler;export const isAssistantSetupHandler=t=>"system"===t.type&&"AssistantSetupHandler"===t.name;
@@ -0,0 +1,10 @@
1
+ import type { AssistantResolvedManifest } from '../assistant-resolved-manifest.js';
2
+ import { type AssistantSetupManifest, type AssistantSetupSettings } from './assistant-setup-manifest.js';
3
+ /** A project returned a setup that broadens or invalidates its declared whitelist. */
4
+ export declare class AssistantSetupError extends Error {
5
+ constructor(key: string, reason: string);
6
+ }
7
+ export declare const applyAssistantSetup: (resolved: AssistantResolvedManifest, settings: AssistantSetupSettings | null, returned: AssistantSetupManifest | null) => {
8
+ readonly resolved: AssistantResolvedManifest;
9
+ readonly settings: AssistantSetupSettings | null;
10
+ } | null;
@@ -0,0 +1 @@
1
+ import{ASSISTANT_AI_PROVIDERS as e,ASSISTANT_MODEL_TIERS as t,ASSISTANT_REASONING_LEVELS as s}from"@salsita-ai/contracts/assistant";import{describeAssistantValues as i,mergeAssistantFields as n,resolveAssistantField as o}from"../assistant-fields.js";import{ASSISTANT_HINTS as r}from"../assistant-resolved-manifest.js";import{projectAssistantSetupManifest as a}from"./assistant-setup-manifest.js";export class AssistantSetupError extends Error{constructor(e,t){super(`${e}: ${t}`),this.name="AssistantSetupError"}}let l=(e,t)=>{throw new AssistantSetupError(e,t)},p=(e,t,s)=>{for(let i of((null===t||"object"!=typeof t||Array.isArray(t))&&l(s,"expected an object; omit an entry to remove it"),Object.keys(t)))Object.hasOwn(e,i)||l(`${s}.${i}`,"not declared in the spec; remove this key")},c=(e,t)=>Object.hasOwn(e,t)?e[t]:void 0,d=(e,t,s)=>(void 0!==e&&"string"!=typeof e&&l(`${s}.description`,"expected a string"),e??t),u=(e,t,s)=>(void 0!==e&&!1!==e&&l(`${s}.allowDryRuns`,"can only disable dry-runs; omit this flag or set false"),!1!==e&&t);export const applyAssistantSetup=(f,m,b)=>{if(null===b)return null;let y=a(f,m),g=f.declarations;p({entities:{},deletable:{},writable:{},childRecipes:{},replaceRecipes:{},screenshots:{},actions:{},instructions:"",ai:{}},b,"assistant"),p(y.entities,b.entities,"assistant.entities"),p(y.deletable,b.deletable,"assistant.deletable"),p(y.writable,b.writable,"assistant.writable"),p(y.actions,b.actions,"assistant.actions"),p(y.screenshots,b.screenshots,"assistant.screenshots");let h=Object.fromEntries(Object.entries(b.entities).map(([e,t])=>{let s=`assistant.entities.${e}`;p(y.entities[e],t,s);let n=g.entities[e];return[e,Object.entries(t).map(([e,t])=>{p({description:""},t,`${s}.${e}`);let o=n.find(t=>t.source===e),r=d(t.description,o.valueDescription,`${s}.${e}`);return{...o,valueDescription:r,description:i(r,o.enumValues),describedByManifest:void 0!==t.description||o.describedByManifest}})]})),v=(e,t,s)=>l(`assistant.entities.${e}`,`conflicting sources ${t} and ${s}`),$=n([],c(h,"AnyDomainEntity")??[],()=>void 0,v),w=new Map([["AnyDomainEntity",$]]);for(let e of Object.keys(f.aliases))"AnyDomainEntity"!==e&&w.set(e,n([$],c(h,e)??[],()=>void 0,v));for(let e of f.entityTypes){let t=Object.entries(f.aliases).filter(([t,s])=>"AnyDomainEntity"!==t&&s.includes(e));w.set(e,n([$,...t.map(([e])=>w.get(e)??[])],c(h,e)??[],t=>g.enumValues[e]?.[t],v))}let j=Object.fromEntries([...w].map(([e,t])=>[e,t.map(t=>o(t,c(h,e)??[]))])),O=new Map,T=new Map;for(let[e,t]of Object.entries(b.writable)){let s=`assistant.writable.${e}`;for(let[i,n]of(p(y.writable[e],t,s),Object.entries(t))){let t=`${s}.${i}`,o=g.writable[e][i];for(let[e,{field:s,options:r,exposedDescription:a}]of(p(Object.values(o.members).some(e=>e.options)?{options:{}}:{},n,t),void 0!==n.options&&(p({validate:!0,allowDryRuns:!1},n.options,`${t}.options`),void 0!==n.options.validate&&!0!==n.options.validate&&l(`${t}.options.validate`,"can only enable validation; omit this flag or set true"),u(n.options.allowDryRuns,!0,`${t}.options`)),Object.entries(o.members))){let p=c(h,e)?.find(e=>e.source===i)?.name??w.get(e)?.find(e=>e.source===i)?.name,d=p??i;void 0===p&&w.get(e)?.some(e=>e.name===i&&e.source!==i)&&l(t,`narrowing leaves ${e}.${i} bound to another read field; retain its original exposure or remove this writable property`);let f=O.get(e)??new Map;if([...f.values()].some(e=>e.name===d&&e.property!==i)&&l(t,`narrowing maps multiple writable properties to ${e}.${d}; retain their original exposures or remove the conflicting property`),f.has(i)||f.set(i,{...s,name:d,...void 0===p?{}:{description:a}}),O.set(e,f),r){let s=o.defaultOptionsName?`${d}Options`:r.options.edgeName;T.get(e)?.some(e=>e.options.edgeName===s||e.options.field===d)&&l(`${t}.options`,`narrowing duplicates options edge ${e}.${s}; retain the original field exposures or remove the conflicting writable declaration`),T.set(e,[...T.get(e)??[],{hints:r.hints,options:{...r.options,field:d,edgeName:s,validate:n.options?.validate??r.options.validate,dryRuns:u(n.options?.allowDryRuns,r.options.dryRuns,`${t}.options`)}}])}}}}for(let[e,t]of Object.entries(f.optionsEdges))for(let s of t){let t=f.writableTypes.find(t=>t.entityType===e)?.fields.find(e=>e.name===s.options.field)?.property;if(s.options.validate&&t&&O.get(e)?.has(t)&&!T.get(e)?.some(s=>s.options.field===O.get(e)?.get(t)?.name&&s.options.validate)){let s=Object.keys(b.writable).find(s=>Object.hasOwn(b.writable[s],t)&&g.writable[s]?.[t]?.members[e]);l(`assistant.writable.${s}.${t}`,`cannot remove declared validation while another declaration keeps ${e}.${t} writable; remove all writable declarations for it`)}}let x=e=>{p(y[e],b[e],`assistant.${e}`);let t=new Map;for(let[s,i]of Object.entries(b[e])){let n=`assistant.${e}.${s}`;p({groups:{}},i,n),p(y[e][s].groups,i.groups,`${n}.groups`);let o=g[e][s],a=Object.entries(i.groups).map(([e,t])=>{let s=`${n}.groups.${e}`;p({description:"",allowDryRuns:!1},t,s);let i=o.groups.find(t=>t.instanceName===e);return{...i,description:d(t.description,i.description,s),dryRuns:u(t.allowDryRuns,i.dryRuns,s)}});for(let e of f.entityTypes.includes(s)?[s]:f.aliases[s]??[]){let s=t.get(e);t.set(e,{groups:[...s?.groups??[],...a],hints:r.filter(e=>o.hints.includes(e)||s?.hints.includes(e))})}}return Object.fromEntries(f.entityTypes.flatMap(e=>{let s=t.get(e);return s?.groups.length?[[e,s]]:[]}))},E=new Map;for(let[e,t]of Object.entries(b.screenshots)){let s=`assistant.screenshots.${e}`;p(y.screenshots[e],t,s);let i=f.entityTypes.includes(e)?[e]:f.aliases[e]??[];for(let[n,o]of Object.entries(t)){let t=`${s}.${n}`;p({description:""},o,t);let r=g.screenshots[e].find(e=>e.instanceName===n),a={...r,description:d(o.description,r.description,t)??r.description};for(let e of i)E.set(e,[...E.get(e)??[],a])}}for(let[e,t]of Object.entries(b.deletable))p({},t,`assistant.deletable.${e}`);let R=new Set(Object.keys(b.deletable).flatMap(e=>f.entityTypes.includes(e)?[e]:f.aliases[e]??[])),M=f.actionFields.flatMap(e=>{let t=c(b.actions,e.actionName);if(void 0===t)return[];let s=`assistant.actions.${e.actionName}`;return p({description:""},t,s),[{...e,description:d(t.description,e.description,s)}]}),D=m;if(m){void 0!==b.ai&&p({...m.ai,maxThreadSize:void 0},b.ai,"assistant.ai");let i={...m.ai,...Object.fromEntries(Object.entries(b.ai??{}).filter(([,e])=>void 0!==e))};e.includes(i.provider)&&t.includes(i.model)&&s.includes(i.reasoning)||l("assistant.ai","expected a supported provider, model and reasoning level"),void 0!==i.maxThreadSize&&(!Number.isInteger(i.maxThreadSize)||i.maxThreadSize<=0)&&l("assistant.ai.maxThreadSize","expected a positive whole number of input tokens"),void 0!==b.instructions&&"string"!=typeof b.instructions&&l("assistant.instructions","expected a string"),D={instructions:""===b.instructions?null:b.instructions??m.instructions,ai:i}}return{resolved:{...f,fields:j,deletableTypes:f.entityTypes.filter(e=>R.has(e)),writableTypes:f.entityTypes.flatMap(e=>{let t=[...O.get(e)?.values()??[]];return t.length?[{entityType:e,fields:t}]:[]}),optionsEdges:Object.fromEntries(T),childRecipes:x("childRecipes"),replaceRecipes:x("replaceRecipes"),screenshots:Object.fromEntries(f.entityTypes.flatMap(e=>{let t=E.get(e);return t?[[e,t]]:[]})),actionFields:M},settings:D}};
@@ -0,0 +1,50 @@
1
+ import type { AssistantAiSettings } from '@salsita-ai/contracts/assistant';
2
+ import type { $DomainEntity, ActionTypes, DomainEntity } from '../../../core/index.js';
3
+ import type { AssistantResolvedManifest } from '../assistant-resolved-manifest.js';
4
+ /** Declaration-shaped whitelist a project may narrow; bindings and hints stay internal. */
5
+ export interface AssistantSetupManifest<ENTITIES extends DomainEntity<string> = DomainEntity<string>, $MAP extends Record<keyof $MAP, $DomainEntity<ENTITIES>> = Record<string, $DomainEntity<ENTITIES>>, ACTIONS extends ActionTypes = ActionTypes> {
6
+ readonly entities: string extends keyof $MAP ? Readonly<Record<string, Readonly<Record<string, AssistantSetupField>>>> : {
7
+ readonly [TYPE in keyof $MAP]?: Readonly<Partial<Record<Exclude<keyof $MAP[TYPE], 'id' | 'type' | '_raw' | 'meta'>, AssistantSetupField>>>;
8
+ };
9
+ readonly deletable: Readonly<Record<string, Readonly<Record<never, never>>>>;
10
+ readonly writable: string extends ENTITIES['type'] ? Readonly<Record<string, Readonly<Record<string, AssistantSetupWritableField>>>> : {
11
+ readonly [TYPE in keyof $MAP]?: Readonly<Partial<Record<Exclude<keyof $MAP[TYPE]['_raw'], 'id' | 'type'>, AssistantSetupWritableField>>>;
12
+ };
13
+ readonly childRecipes: Readonly<Record<string, AssistantSetupRecipes>>;
14
+ readonly replaceRecipes: Readonly<Record<string, AssistantSetupRecipes>>;
15
+ /** The screenshot views under their original entity or alias key, keyed by `agentScreenshot` instance name. */
16
+ readonly screenshots: Readonly<Record<string, Readonly<Record<string, AssistantSetupField>>>>;
17
+ readonly actions: {
18
+ readonly [ACTION in keyof ACTIONS]?: AssistantSetupField;
19
+ };
20
+ readonly instructions?: string;
21
+ readonly ai?: Partial<AssistantAiSettings>;
22
+ }
23
+ /** Optional description override; omission preserves the declaration's effective text. */
24
+ export interface AssistantSetupField {
25
+ readonly description?: string;
26
+ }
27
+ /** Only stricter validation and disabled dry-runs are configurable. */
28
+ export interface AssistantSetupOptions {
29
+ readonly validate?: true;
30
+ readonly allowDryRuns?: false;
31
+ }
32
+ /** Keeping a property also keeps its declared options binding and baseline restrictions. */
33
+ export interface AssistantSetupWritableField {
34
+ readonly options?: AssistantSetupOptions;
35
+ }
36
+ /** A recipe group's editable description and dry-run restriction. */
37
+ export interface AssistantSetupRecipeGroup {
38
+ readonly description?: string;
39
+ readonly allowDryRuns?: false;
40
+ }
41
+ /** Only explicitly declared groups appear, under their original entity or alias key. */
42
+ export interface AssistantSetupRecipes {
43
+ readonly groups: Readonly<Record<string, AssistantSetupRecipeGroup>>;
44
+ }
45
+ /** Server settings baseline, kept out of the browser spec. */
46
+ export interface AssistantSetupSettings {
47
+ readonly instructions?: string | null;
48
+ readonly ai: AssistantAiSettings;
49
+ }
50
+ export declare const projectAssistantSetupManifest: (resolved: AssistantResolvedManifest, settings: AssistantSetupSettings | null) => AssistantSetupManifest;
@@ -0,0 +1 @@
1
+ export const projectAssistantSetupManifest=(e,t)=>{let i=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[e,{groups:Object.fromEntries(t.groups.map(e=>[e.instanceName,{...void 0===e.description?{}:{description:e.description},...!e.dryRuns?{allowDryRuns:!1}:{}}]))}])),s=e.declarations;return{entities:Object.fromEntries(Object.entries(s.entities).map(([e,t])=>[e,Object.fromEntries(t.map(e=>[e.source,{...!e.describedByManifest||void 0===e.valueDescription?{}:{description:e.valueDescription}}]))])),deletable:Object.fromEntries(s.deletable.map(e=>[e,{}])),writable:Object.fromEntries(Object.entries(s.writable).map(([e,t])=>[e,Object.fromEntries(Object.entries(t).map(([e,t])=>{let i=Object.values(t.members).find(e=>e.options)?.options?.options;return[e,i?{options:{...i.validate?{validate:!0}:{},...!i.dryRuns?{allowDryRuns:!1}:{}}}:{}]}))])),childRecipes:i(s.childRecipes),replaceRecipes:i(s.replaceRecipes),screenshots:Object.fromEntries(Object.entries(s.screenshots).map(([e,t])=>[e,Object.fromEntries(t.map(({instanceName:e,description:t})=>[e,{description:t}]))])),actions:Object.fromEntries(e.actionFields.map(e=>[e.actionName,void 0===e.description?{}:{description:e.description}])),...t?{instructions:t.instructions??void 0,ai:{...t.ai}}:{}}};
@@ -0,0 +1,15 @@
1
+ import type { AssistantManifest } from '../assistant-manifest.js';
2
+ import type { AssistantResolvedManifest } from '../assistant-resolved-manifest.js';
3
+ import type { AssistantSetupHandlerProps, TypedCreateAssistantSetupHandler } from './AssistantSetupHandler.js';
4
+ /** Session-derived browser manifest; a rejected setup retains its error without exposing the baseline. */
5
+ export interface SessionAssistantSetup {
6
+ readonly manifest: AssistantManifest | null;
7
+ readonly error: Error | null;
8
+ }
9
+ interface Props {
10
+ readonly resolved: AssistantResolvedManifest | null;
11
+ readonly handler: ReturnType<TypedCreateAssistantSetupHandler<Record<string, unknown>>> | undefined;
12
+ readonly inputs: AssistantSetupHandlerProps<Record<string, unknown>>['inputs'] | null;
13
+ }
14
+ export declare const createSessionAssistant: ({ resolved, handler, inputs }: Props) => SessionAssistantSetup;
15
+ export {};
@@ -0,0 +1 @@
1
+ import{buildAssistantManifest as r}from"../build-assistant-manifest.js";import{applyAssistantSetup as n}from"./apply-assistant-setup.js";import{projectAssistantSetupManifest as t}from"./assistant-setup-manifest.js";export const createSessionAssistant=({resolved:e,handler:s,inputs:l})=>{if(!e)return{manifest:null,error:null};try{if(!s)return{manifest:r(e),error:null};if(!l)return{manifest:null,error:null};let i=n(e,null,s.handler().handler({manifest:t(e,null),inputs:l}));return{manifest:i?r(i.resolved):null,error:null}}catch(r){return{manifest:null,error:r instanceof Error?r:Error(String(r))}}};
@@ -0,0 +1,4 @@
1
+ export * from './assistant-setup-manifest.js';
2
+ export * from './AssistantSetupHandler.js';
3
+ export { applyAssistantSetup, AssistantSetupError } from './apply-assistant-setup.js';
4
+ export { createSessionAssistant, type SessionAssistantSetup } from './create-session-assistant.js';
@@ -0,0 +1 @@
1
+ export*from"./assistant-setup-manifest.js";export*from"./AssistantSetupHandler.js";export{applyAssistantSetup,AssistantSetupError}from"./apply-assistant-setup.js";export{createSessionAssistant}from"./create-session-assistant.js";
@@ -1,5 +1,4 @@
1
- import type { DomainEntity, DomainEntityId } from '../core/model.js';
2
- import type { DomainState } from '../core/state.js';
1
+ import type { DomainEntity, DomainEntityId, DomainState } from '../core/index.js';
3
2
  import type { AssistantRecipeContext } from './assistant-recipe-groups.js';
4
3
  import type { AssistantFieldOptions, AssistantManifest } from './assistant/index.js';
5
4
  type AnyDomainState = DomainState<DomainEntity<string>>;
@@ -1,8 +1,6 @@
1
1
  import type { Localizable } from '@salsita-ai/common/utils';
2
- import { type StateUpdate } from '../components/updates.js';
3
- import type { AnyActionContext } from '../core/action.js';
4
- import { type DomainEntity } from '../core/model.js';
5
- import type { DomainState } from '../core/state.js';
2
+ import { type DomainEntity, type DomainState, type StateUpdate } from '../core/index.js';
3
+ import type { AnyActionContext } from '../domain-runtime/index.js';
6
4
  import type { AssistantManifest } from './assistant/index.js';
7
5
  type AnyDomainState = DomainState<DomainEntity<string>>;
8
6
  /**
@@ -1 +1 @@
1
- import{z as e}from"zod";import{systemUpdateFactory as t}from"../components/updates.js";import{DomainEntityIdSchema as i}from"../core/model.js";import{findAssistantFieldOptions as n,readAssistantFieldOptions as r}from"./assistant-field-options.js";import{assistantAddedEntityIds as o,findAssistantRecipeGroups as a,prepareAssistantRecipeUpdates as s,readAssistantRecipeGroup as d}from"./assistant-recipe-groups.js";export const deleteEntityUpdateTag="deleteEntity";export const modifyEntityUpdateTag="modifyEntity";let l=({action:e,resolveLocalizable:t})=>({componentReader:e.systems.componentReader,recipeCooker:e.systems.recipeCooker,resolveLocalizable:t}),p=e.string().regex(new RegExp(i.pattern),'An entity id is the type name, a dash and a number, e.g. "Root-1". Query the current entities and use an id they return.'),h=e.object({id:p}),c=e.object({id:p,delta:e.record(e.unknown())}),y="modify",u=(e,t)=>Object.entries(e).find(([e])=>e===t)?.[1],f=e=>Array.isArray(e)?e.map(f):"object"!=typeof e||null===e||Array.isArray(e)?e:Object.fromEntries(Object.entries(e).map(([e,t])=>[e,f(t)])),m=e.object({parentId:p,recipeGroupId:e.string(),recipeKey:e.string()}),g=e.object({entityId:p,recipeGroupId:e.string(),recipeKey:e.string()}),$=e=>e.map(e=>`"${e}"`).join(", "),w=[{name:"deleteEntity",implementation:(e,i,{manifest:n})=>{let{id:r}=h.parse(e),o=i.entities.find(e=>e.id===r);if(!o)throw Error(`Entity "${r}" does not exist, so it cannot be deleted. It may have been deleted by an earlier operation or field. Query the current entities and use an id they return.`);let a=n.deletableTypes??[];if(!a.includes(o.type))throw Error(`Entity "${r}" is a ${o.type}, which is not deletable. ${a.length>0?`Only entities of these types can be deleted: ${a.join(", ")}.`:"No entity type is deletable."} Delete an entity of a deletable type instead.`);return{updates:[t.EntityDeletion({entityId:o.id,updateTag:"deleteEntity"})],readResult:({previousState:e,state:t})=>{var i;let n;return[o.id,...(i=o.id,n=new Set(t.entities.map(e=>e.id)),e.entities.map(e=>e.id).filter(e=>e!==i&&!n.has(e)))]}}}},{name:"addChild",implementation:(e,t,i)=>{let{parentId:n,recipeGroupId:r,recipeKey:p}=m.parse(e),h=t.entities.find(e=>e.id===n);if(!h)throw Error(`Entity "${n}" does not exist, so nothing can be added to it. It may have been deleted by an earlier operation or field. Query the current entities and use an id they return.`);let c=a(i.manifest,"child",h.type),y=c.find(e=>e.groupId===r);if(!y)throw Error(`Entity "${n}" is a ${h.type}, which has no recipe group "${r}". ${c.length>0?`Its recipe groups are: ${$(c.map(({groupId:e})=>e))}.`:`Nothing can be added to a ${h.type}.`} Query "meta { childRecipes { groupId } }" on the entity you want to add to and use a groupId it returns.`);let u=l(i),f=d("child",y,h.id,t,u);if(!f)throw Error(`The recipe group "${r}" is not available on "${n}" right now, so nothing can be added from it. The configurator offers a group only in some states of the configuration. Query "meta { childRecipes { groupId } }" on "${n}" to see the groups it offers now.`);let g=f.recipes.find(e=>e.key===p);if(!g)throw Error(`The recipe group "${r}" on "${n}" has no recipe with the key "${p}". Recipes and their keys change with the configuration and with the language. List the recipes of the group again and use a key it returns.`);let w=s(g,f,h.id,t,u);return{updates:w,readResult:e=>o(w,h.id,e).map(t=>i.action.systems.domain.get$Entity(t,e.state))}}},{name:"replaceEntity",implementation:(e,t,i)=>{let{entityId:n,recipeGroupId:r,recipeKey:p}=g.parse(e),h=t.entities.find(e=>e.id===n);if(!h)throw Error(`Entity "${n}" does not exist, so it cannot be replaced. It may have been deleted or replaced by an earlier operation or field; a replaced entity gets a new id. Query the current entities and use an id they return.`);let c=a(i.manifest,"replace",h.type),y=c.find(e=>e.groupId===r);if(!y)throw Error(`Entity "${n}" is a ${h.type}, which has no replace recipe group "${r}". ${c.length>0?`Its replace recipe groups are: ${$(c.map(({groupId:e})=>e))}.`:`A ${h.type} cannot be replaced.`} Query "meta { replaceRecipes { groupId } }" on the entity you want to replace and use a groupId it returns.`);let u=l(i),f=d("replace",y,h.id,t,u);if(!f)throw Error(`The recipe group "${r}" is not available on "${n}" right now, so it cannot be replaced from it. The configurator offers a group only in some states of the configuration. Query "meta { replaceRecipes { groupId } }" on "${n}" to see the groups it offers now.`);let m=f.recipes.find(e=>e.key===p);if(!m)throw Error(`The recipe group "${r}" on "${n}" has no recipe with the key "${p}". Recipes and their keys change with the configuration and with the language. List the recipes of the group again and use a key it returns.`);let w=s(m,f,h.id,t,u);return{updates:w,readResult:e=>o(w,h.id,e).map(t=>i.action.systems.domain.get$Entity(t,e.state))}}}];export const findAssistantMutation=(e,i)=>{let o,a,s=w.find(t=>t.name===e),d=u(i.actions??{},e);if(s)return s;if(void 0!==d)return{name:e,implementation:(e,t,{action:i})=>i.systems.actionSystem.prepareAction(d,f(e),t)};if(!e.startsWith(y))return;let p=e.slice(y.length),h=u(i.writableFields??{},p);return h&&(o=`${y}${p}`,a=Object.keys(h).join(", "),{name:o,implementation:(e,i,s)=>{let{manifest:d}=s,{domain:m}=s.action.systems,{id:g,delta:$}=c.parse(e),w=i.entities.find(e=>e.id===g);if(!w)throw Error(`Entity "${g}" does not exist, so it cannot be modified. It may have been deleted by an earlier operation or field. Query the current entities and use an id they return.`);if(w.type!==p)throw Error(`Entity "${g}" is a ${w.type}, but ${o} modifies only ${p} entities. ${u(d.writableFields??{},w.type)?`Use ${y}${w.type} for it instead.`:`${w.type} has no writable fields, so it cannot be modified; pass the id of a ${p}.`}`);let b=Object.entries($).flatMap(([e,t])=>{let i=u(h,e);return void 0===i?[]:[{field:e,property:i,value:f(t)}]}),E=Object.fromEntries(b.map(({property:e,value:t})=>[e,t]));if(0===Object.keys(E).length)throw Error(`The delta of ${o} is empty, so there is nothing to change on "${g}". Set at least one of its fields: ${a}.`);let j=m.validateEntity({...w,...E});if(!j.success){let e=b.filter(({field:e,property:t})=>e!==t).map(({field:e,property:t})=>`${e} is stored as ${t}`);throw Error(`The delta would make "${g}" an invalid ${p}: ${j.errors.join("; ")}. ${e.length>0?`The messages name stored properties: ${e.join(", ")}. `:""}Nothing was changed. Send values that fit the types and the allowed values the schema describes for these fields.`)}let v=n(d,p);for(let{field:e,value:t}of b){let n=v.find(t=>t.field===e);if(!n?.validate||null===t)continue;let o=r(n,w.id,i,l(s));if(o&&!o.some(e=>e.value===t))throw Error(`${JSON.stringify(t)} is not a value "${e}" of "${g}" can take right now. ${o.length>0?`The configurator offers these values: ${o.map(e=>JSON.stringify(e.value)).join(", ")}.`:"The configurator offers no value for it in this state."} Nothing was changed. Send one of the offered values; "meta { ${n.edgeName} }" on the entity lists them with their names. When the values depend on another field of this delta, change that field in an earlier mutation field of the same operation.`)}return{updates:[t.DomainEntityModification({entityId:w.id,stateDelta:E,updateTag:"modifyEntity"})],readResult:({state:e})=>m.getEntity(w.id,e)?m.get$Entity(w.id,e):null}}})};
1
+ import{z as e}from"zod";import{DomainEntityIdSchema as t,systemUpdateFactory as i}from"../core/index.js";import{findAssistantFieldOptions as n,readAssistantFieldOptions as r}from"./assistant-field-options.js";import{assistantAddedEntityIds as o,findAssistantRecipeGroups as a,prepareAssistantRecipeUpdates as s,readAssistantRecipeGroup as d}from"./assistant-recipe-groups.js";export const deleteEntityUpdateTag="deleteEntity";export const modifyEntityUpdateTag="modifyEntity";let l=({action:e,resolveLocalizable:t})=>({componentReader:e.systems.componentReader,recipeCooker:e.systems.recipeCooker,resolveLocalizable:t}),p=e.string().regex(new RegExp(t.pattern),'An entity id is the type name, a dash and a number, e.g. "Root-1". Query the current entities and use an id they return.'),h=e.object({id:p}),y=e.object({id:p,delta:e.record(e.unknown())}),c="modify",f=(e,t)=>Object.entries(e).find(([e])=>e===t)?.[1],u=e=>Array.isArray(e)?e.map(u):"object"!=typeof e||null===e||Array.isArray(e)?e:Object.fromEntries(Object.entries(e).map(([e,t])=>[e,u(t)])),m=e.object({parentId:p,recipeGroupId:e.string(),recipeKey:e.string()}),g=e.object({entityId:p,recipeGroupId:e.string(),recipeKey:e.string()}),$=e=>e.map(e=>`"${e}"`).join(", "),w=[{name:"deleteEntity",implementation:(e,t,{manifest:n})=>{let{id:r}=h.parse(e),o=t.entities.find(e=>e.id===r);if(!o)throw Error(`Entity "${r}" does not exist, so it cannot be deleted. It may have been deleted by an earlier operation or field. Query the current entities and use an id they return.`);let a=n.deletableTypes??[];if(!a.includes(o.type))throw Error(`Entity "${r}" is a ${o.type}, which is not deletable. ${a.length>0?`Only entities of these types can be deleted: ${a.join(", ")}.`:"No entity type is deletable."} Delete an entity of a deletable type instead.`);return{updates:[i.EntityDeletion({entityId:o.id,updateTag:"deleteEntity"})],readResult:({previousState:e,state:t})=>{var i;let n;return[o.id,...(i=o.id,n=new Set(t.entities.map(e=>e.id)),e.entities.map(e=>e.id).filter(e=>e!==i&&!n.has(e)))]}}}},{name:"addChild",implementation:(e,t,i)=>{let{parentId:n,recipeGroupId:r,recipeKey:p}=m.parse(e),h=t.entities.find(e=>e.id===n);if(!h)throw Error(`Entity "${n}" does not exist, so nothing can be added to it. It may have been deleted by an earlier operation or field. Query the current entities and use an id they return.`);let y=a(i.manifest,"child",h.type),c=y.find(e=>e.groupId===r);if(!c)throw Error(`Entity "${n}" is a ${h.type}, which has no recipe group "${r}". ${y.length>0?`Its recipe groups are: ${$(y.map(({groupId:e})=>e))}.`:`Nothing can be added to a ${h.type}.`} Query "meta { childRecipes { groupId } }" on the entity you want to add to and use a groupId it returns.`);let f=l(i),u=d("child",c,h.id,t,f);if(!u)throw Error(`The recipe group "${r}" is not available on "${n}" right now, so nothing can be added from it. The configurator offers a group only in some states of the configuration. Query "meta { childRecipes { groupId } }" on "${n}" to see the groups it offers now.`);let g=u.recipes.find(e=>e.key===p);if(!g)throw Error(`The recipe group "${r}" on "${n}" has no recipe with the key "${p}". Recipes and their keys change with the configuration and with the language. List the recipes of the group again and use a key it returns.`);let w=s(g,u,h.id,t,f);return{updates:w,readResult:e=>o(w,h.id,e).map(t=>i.action.systems.domain.get$Entity(t,e.state))}}},{name:"replaceEntity",implementation:(e,t,i)=>{let{entityId:n,recipeGroupId:r,recipeKey:p}=g.parse(e),h=t.entities.find(e=>e.id===n);if(!h)throw Error(`Entity "${n}" does not exist, so it cannot be replaced. It may have been deleted or replaced by an earlier operation or field; a replaced entity gets a new id. Query the current entities and use an id they return.`);let y=a(i.manifest,"replace",h.type),c=y.find(e=>e.groupId===r);if(!c)throw Error(`Entity "${n}" is a ${h.type}, which has no replace recipe group "${r}". ${y.length>0?`Its replace recipe groups are: ${$(y.map(({groupId:e})=>e))}.`:`A ${h.type} cannot be replaced.`} Query "meta { replaceRecipes { groupId } }" on the entity you want to replace and use a groupId it returns.`);let f=l(i),u=d("replace",c,h.id,t,f);if(!u)throw Error(`The recipe group "${r}" is not available on "${n}" right now, so it cannot be replaced from it. The configurator offers a group only in some states of the configuration. Query "meta { replaceRecipes { groupId } }" on "${n}" to see the groups it offers now.`);let m=u.recipes.find(e=>e.key===p);if(!m)throw Error(`The recipe group "${r}" on "${n}" has no recipe with the key "${p}". Recipes and their keys change with the configuration and with the language. List the recipes of the group again and use a key it returns.`);let w=s(m,u,h.id,t,f);return{updates:w,readResult:e=>o(w,h.id,e).map(t=>i.action.systems.domain.get$Entity(t,e.state))}}}];export const findAssistantMutation=(e,t)=>{let o,a,s=w.find(t=>t.name===e),d=f(t.actions??{},e);if(s)return s;if(void 0!==d)return{name:e,implementation:(e,t,{action:i})=>i.systems.actionSystem.prepareAction(d,u(e),t)};if(!e.startsWith(c))return;let p=e.slice(c.length),h=f(t.writableFields??{},p);return h&&(o=`${c}${p}`,a=Object.keys(h).join(", "),{name:o,implementation:(e,t,s)=>{let{manifest:d}=s,{domain:m}=s.action.systems,{id:g,delta:$}=y.parse(e),w=t.entities.find(e=>e.id===g);if(!w)throw Error(`Entity "${g}" does not exist, so it cannot be modified. It may have been deleted by an earlier operation or field. Query the current entities and use an id they return.`);if(w.type!==p)throw Error(`Entity "${g}" is a ${w.type}, but ${o} modifies only ${p} entities. ${f(d.writableFields??{},w.type)?`Use ${c}${w.type} for it instead.`:`${w.type} has no writable fields, so it cannot be modified; pass the id of a ${p}.`}`);let b=Object.entries($).flatMap(([e,t])=>{let i=f(h,e);return void 0===i?[]:[{field:e,property:i,value:u(t)}]}),E=Object.fromEntries(b.map(({property:e,value:t})=>[e,t]));if(0===Object.keys(E).length)throw Error(`The delta of ${o} is empty, so there is nothing to change on "${g}". Set at least one of its fields: ${a}.`);let v=m.validateEntity({...w,...E});if(!v.success){let e=b.filter(({field:e,property:t})=>e!==t).map(({field:e,property:t})=>`${e} refers to ${t}`);throw Error(`The delta would make "${g}" an invalid ${p}: ${v.errors.join("; ")}. ${e.length>0?`The messages use these field names: ${e.join(", ")}. `:""}Nothing was changed. Send values that fit the types and the allowed values the schema describes for these fields.`)}let j=n(d,p);for(let{field:e,value:i}of b){let n=j.find(t=>t.field===e);if(!n?.validate||null===i)continue;let o=r(n,w.id,t,l(s));if(o&&!o.some(e=>e.value===i))throw Error(`${JSON.stringify(i)} is not a value "${e}" of "${g}" can take right now. ${o.length>0?`The configurator offers these values: ${o.map(e=>JSON.stringify(e.value)).join(", ")}.`:"The configurator offers no value for it in this state."} Nothing was changed. Send one of the offered values; "meta { ${n.edgeName} }" on the entity lists them with their names. When the values depend on another field of this delta, change that field in an earlier mutation field of the same operation.`)}return{updates:[i.DomainEntityModification({entityId:w.id,stateDelta:E,updateTag:"modifyEntity"})],readResult:({state:e})=>m.getEntity(w.id,e)?m.get$Entity(w.id,e):null}}})};
@@ -1,10 +1,6 @@
1
1
  import type { Localizable } from '@salsita-ai/common/utils';
2
- import type { OneComponentFilter } from '../components/component-reader-types.js';
3
- import type { DomainEntityCreation, DomainEntityReplacement } from '../components/updates.js';
4
- import type { ComponentSnapshot } from '../core/component.js';
5
- import type { DomainEntity, DomainEntityId } from '../core/model.js';
6
- import type { DomainState } from '../core/state.js';
7
- import type { AnyRecipeCookerSystem } from '../domain-context/recipe-system/recipe-cooker-system.js';
2
+ import type { ComponentSnapshot, DomainEntity, DomainEntityCreation, DomainEntityId, DomainEntityReplacement, DomainState, OneComponentFilter } from '../core/index.js';
3
+ import type { AnyRecipeCookerSystem } from '../domain-context/index.js';
8
4
  import type { AttributeSelectionComponent } from '../system-components/attribute-selection.js';
9
5
  import { type ChildEntityRecipesComponent } from '../system-components/child-entity-recipes.js';
10
6
  import type { RecipeListItem } from '../system-components/common/recipes.js';
@@ -45,6 +41,8 @@ export interface AssistantRecipeContext {
45
41
  /** Resolves a title in the current language, for the key of a recipe that declares none. */
46
42
  readonly resolveLocalizable: (message: Localizable) => string;
47
43
  }
44
+ /** What reading a recipe group needs: listing never cooks, so the panel can read a group without a cooker. */
45
+ type AssistantRecipeReadContext = Pick<AssistantRecipeContext, 'componentReader' | 'resolveLocalizable'>;
48
46
  /** One recipe of a group as the assistant addresses it: the list item and its key, unique within the group. */
49
47
  export interface AssistantRecipe {
50
48
  readonly key: string;
@@ -77,7 +75,7 @@ export declare const findAssistantRecipeGroups: (manifest: AssistantManifest, ki
77
75
  * assistant sees the groups the configurator's own controls would offer. A list item without recipes
78
76
  * adds nothing and is left out.
79
77
  */
80
- export declare const readAssistantRecipeGroup: (kind: AssistantRecipeKind, group: AssistantRecipeGroup, entityId: DomainEntityId<string>, state: AnyDomainState, context: AssistantRecipeContext) => AssistantRecipeGroupSnapshot | null;
78
+ export declare const readAssistantRecipeGroup: (kind: AssistantRecipeKind, group: AssistantRecipeGroup, entityId: DomainEntityId<string>, state: AnyDomainState, context: AssistantRecipeReadContext) => AssistantRecipeGroupSnapshot | null;
81
79
  /**
82
80
  * The updates of one recipe of a group for the entity `entityId`, computed from `state`: the same
83
81
  * updates, with the same tag, the configurator's own controls make. A recipe of a child group is
@@ -2,10 +2,10 @@ import type { I18n } from '@lingui/core';
2
2
  import type { ThemeOptions } from '@mui/material';
3
3
  import type { z } from 'zod';
4
4
  import type { FinalizeTaskResource } from '@salsita-ai/contracts/webhook';
5
- import type { $DomainEntity, DomainEntity, DomainFactory, EnumLike, ProductPreset, SchemaOfObject } from '../core/index.js';
6
- import type { ProjectModule } from '../project-modules/index.js';
5
+ import { type $DomainEntity, type DomainEntity, type DomainFactory, type EnumLike, type ProductPreset, type SchemaOfObject } from '../core/index.js';
6
+ import { type ElementRegistration, type ProjectModule } from '../domain-runtime/index.js';
7
7
  import type { AclConfig, ApplicationConfig, DataSpec, DefaultEnvs, ResourcesConfig, SpecTransformer, TransformersConfig, UserInterfaceConfig } from './application-config.js';
8
- import type { AssistantResolvedManifest } from './assistant/index.js';
8
+ import { type AssistantResolvedManifest } from './assistant/index.js';
9
9
  interface ConfiguratorBuilderContext<ENTITIES extends DomainEntity<string> = never, ALLOWED_ROOT_ENTITIES extends ENTITIES = never, $MAP extends Record<ENTITIES['type'], $DomainEntity<ENTITIES>> = never, NAVIGATION_STATES extends string = never, VIEW_STATES extends string = never, TOOL_STATES extends string = never, EXPORT_STATES extends string = never, PUBLISHED_DATA extends Record<string, unknown> = never, SESSION_DATA extends Record<string, unknown> = never, FRONTEND_DATA extends Record<string, unknown> = never, ADMIN_ENTITIES extends DomainEntity<string> = never, ADMIN_ALLOWED_ROOT_ENTITIES extends ADMIN_ENTITIES = never, ADMIN_$MAP extends Record<ADMIN_ENTITIES['type'], $DomainEntity<ADMIN_ENTITIES>> = never, ADMIN_NAVIGATION_STATES extends string = never, ADMIN_VIEW_STATES extends string = never, FINALIZE_DATA extends Record<string, unknown> = never, PREFETCHED_FINALIZE_DATA extends Record<string, unknown> = never, FINALIZE_RESULT extends Record<string, unknown> = never, CALLBACK_DATA extends Record<string, unknown> = never, RESOURCE extends string = never> {
10
10
  version?: string;
11
11
  textLanguages?: string[];
@@ -44,6 +44,7 @@ interface ConfiguratorBuilderContext<ENTITIES extends DomainEntity<string> = nev
44
44
  tagName?: string;
45
45
  handlers?: readonly ProjectModule[];
46
46
  elements?: readonly ProjectModule[];
47
+ defaultElements?: readonly ElementRegistration[];
47
48
  }
48
49
  export declare class ConfiguratorBuilder<ENTITIES extends DomainEntity<string> = never, ALLOWED_ROOT_ENTITIES extends ENTITIES = never, $MAP extends Record<ENTITIES['type'], $DomainEntity<ENTITIES>> = never, NAVIGATION_STATES extends string = never, VIEW_STATES extends string = never, TOOL_STATES extends string = never, EXPORT_STATES extends string = never, PUBLISHED_DATA extends Record<string, unknown> = never, SESSION_DATA extends Record<string, unknown> = never, FRONTEND_DATA extends Record<string, unknown> = never, ADMIN_ENTITIES extends DomainEntity<string> = never, ADMIN_ALLOWED_ROOT_ENTITIES extends ADMIN_ENTITIES = never, ADMIN_$MAP extends Record<ADMIN_ENTITIES['type'], $DomainEntity<ADMIN_ENTITIES>> = never, ADMIN_NAVIGATION_STATES extends string = never, ADMIN_VIEW_STATES extends string = never, FINALIZE_DATA extends Record<string, unknown> = never, PREFETCHED_FINALIZE_DATA extends Record<string, unknown> = never, FINALIZE_RESULT extends Record<string, unknown> = never, CALLBACK_DATA extends Record<string, unknown> = never, RESOURCE extends string = never> {
49
50
  private readonly _context;
@@ -87,6 +88,8 @@ export declare class ConfiguratorBuilder<ENTITIES extends DomainEntity<string> =
87
88
  withHandlers(handlers: readonly ProjectModule[]): ConfiguratorBuilder<ENTITIES, ALLOWED_ROOT_ENTITIES, $MAP, NAVIGATION_STATES, VIEW_STATES, TOOL_STATES, EXPORT_STATES, PUBLISHED_DATA, SESSION_DATA, FRONTEND_DATA, ADMIN_ENTITIES, ADMIN_ALLOWED_ROOT_ENTITIES, ADMIN_$MAP, ADMIN_NAVIGATION_STATES, ADMIN_VIEW_STATES, FINALIZE_DATA, PREFETCHED_FINALIZE_DATA, FINALIZE_RESULT, CALLBACK_DATA, RESOURCE>;
88
89
  /** Sets the elements as project modules, one per `src/elements/` file, for the runtime spec to validate. */
89
90
  withElements(elements: readonly ProjectModule[]): ConfiguratorBuilder<ENTITIES, ALLOWED_ROOT_ENTITIES, $MAP, NAVIGATION_STATES, VIEW_STATES, TOOL_STATES, EXPORT_STATES, PUBLISHED_DATA, SESSION_DATA, FRONTEND_DATA, ADMIN_ENTITIES, ADMIN_ALLOWED_ROOT_ENTITIES, ADMIN_$MAP, ADMIN_NAVIGATION_STATES, ADMIN_VIEW_STATES, FINALIZE_DATA, PREFETCHED_FINALIZE_DATA, FINALIZE_RESULT, CALLBACK_DATA, RESOURCE>;
91
+ /** Sets the SDK's default element registrations; a project element with the same name replaces one. */
92
+ withDefaultElements(defaultElements: readonly ElementRegistration[]): ConfiguratorBuilder<ENTITIES, ALLOWED_ROOT_ENTITIES, $MAP, NAVIGATION_STATES, VIEW_STATES, TOOL_STATES, EXPORT_STATES, PUBLISHED_DATA, SESSION_DATA, FRONTEND_DATA, ADMIN_ENTITIES, ADMIN_ALLOWED_ROOT_ENTITIES, ADMIN_$MAP, ADMIN_NAVIGATION_STATES, ADMIN_VIEW_STATES, FINALIZE_DATA, PREFETCHED_FINALIZE_DATA, FINALIZE_RESULT, CALLBACK_DATA, RESOURCE>;
90
93
  withResources<NEW_RESOURCE extends string>(resources: ReadonlyArray<FinalizeTaskResource<NEW_RESOURCE>>): ConfiguratorBuilder<ENTITIES, ALLOWED_ROOT_ENTITIES, $MAP, NAVIGATION_STATES, VIEW_STATES, TOOL_STATES, EXPORT_STATES, PUBLISHED_DATA, SESSION_DATA, FRONTEND_DATA, ADMIN_ENTITIES, ADMIN_ALLOWED_ROOT_ENTITIES, ADMIN_$MAP, ADMIN_NAVIGATION_STATES, ADMIN_VIEW_STATES, FINALIZE_DATA, PREFETCHED_FINALIZE_DATA, FINALIZE_RESULT, CALLBACK_DATA, NEW_RESOURCE>;
91
94
  withWebComponentTag(tagName: string): ConfiguratorBuilder<ENTITIES, ALLOWED_ROOT_ENTITIES, $MAP, NAVIGATION_STATES, VIEW_STATES, TOOL_STATES, EXPORT_STATES, PUBLISHED_DATA, SESSION_DATA, FRONTEND_DATA, ADMIN_ENTITIES, ADMIN_ALLOWED_ROOT_ENTITIES, ADMIN_$MAP, ADMIN_NAVIGATION_STATES, ADMIN_VIEW_STATES, FINALIZE_DATA, PREFETCHED_FINALIZE_DATA, FINALIZE_RESULT, CALLBACK_DATA, RESOURCE>;
92
95
  /**
@@ -1 +1 @@
1
- import{initConsoleLogger as t}from"@salsita-ai/common/utils";import{defaultI18n as e}from"#package/i18n";import{extendedSchemaValidator as i}from"../core/schema/index.js";import{NoopAnalyticsSystem as r}from"../domain-context/index.js";import{createDomainRuntime as n}from"../domain-runtime/index.js";import{isGetApplicationWrapperHandler as o}from"./GetApplicationWrapperHandler.js";import{isGetWebComponentOptionsHandler as a}from"./GetWebComponentOptions.js";import{createInitialPublishedData as s}from"./create-initial-published-data.js";import{isDataRowValidatorHandler as h}from"./published-data/DataRowValidatorHandler.js";import{isFilterPublishedChunksHandler as l}from"./published-data/FilterPublishedChunksHandler.js";import{isMapPublishedChunkedDataHandler as u}from"./published-data/MapPublishedChunkedDataHandler.js";import{isMapPublishedRevisionDataHandler as d}from"./published-data/MapPublishedRevisionDataHandler.js";import{isSheetValidatorHandler as c}from"./published-data/SheetValidatorHandler.js";export class ConfiguratorBuilder{_context;constructor(t){this._context=t}withDefaultEnvs(t){return new ConfiguratorBuilder({...this._context,defaultEnvs:t})}withVersion(t){return new ConfiguratorBuilder({...this._context,version:t})}withTextLanguages(t){return new ConfiguratorBuilder({...this._context,textLanguages:t})}withAcl(t){return new ConfiguratorBuilder({...this._context,acl:t})}withAdminRelease(t){return new ConfiguratorBuilder({...this._context,enableAdminRelease:t})}withUi(t){return new ConfiguratorBuilder({...this._context,ui:t})}withResourcesConfig(t){return new ConfiguratorBuilder({...this._context,resourcesConfig:t})}withChunks(t){return new ConfiguratorBuilder({...this._context,chunks:t})}withPublishedDataHash(t){return new ConfiguratorBuilder({...this._context,publishedDataHash:t})}withAssistant(t){return new ConfiguratorBuilder({...this._context,assistant:t})}withTheme(t){return new ConfiguratorBuilder({...this._context,theme:t})}withDomainFactory(t){return new ConfiguratorBuilder({...this._context,domainFactory:t})}withAdminDomainFactory(t){return new ConfiguratorBuilder({...this._context,adminDomainFactory:t})}withI18n=t=>new ConfiguratorBuilder({...this._context,i18n:t});withPrefetchedFinalizeData(t){return new ConfiguratorBuilder({...this._context,prefetchedFinalizeData:t})}withFinalizeData(t){return new ConfiguratorBuilder({...this._context,finalizeData:t})}withFinalizeResult(t){return new ConfiguratorBuilder({...this._context,finalizeResult:t})}withCallbackData(t){return new ConfiguratorBuilder({...this._context,callbackData:t})}withNavigationState(t){return new ConfiguratorBuilder({...this._context,navigationState:t})}withViewState(t){return new ConfiguratorBuilder({...this._context,viewState:t})}withToolState(t){return new ConfiguratorBuilder({...this._context,toolState:t})}withExportState(t){return new ConfiguratorBuilder({...this._context,exportState:t})}withAdminNavigationState(t){return new ConfiguratorBuilder({...this._context,adminNavigationState:t})}withAdminViewState(t){return new ConfiguratorBuilder({...this._context,adminViewState:t})}withPresets(t){return new ConfiguratorBuilder({...this._context,presets:t})}withAdminPresets(t){return new ConfiguratorBuilder({...this._context,adminPresets:t})}withComponentOptics(t){return new ConfiguratorBuilder({...this._context,componentOptics:[...this._context.componentOptics,...t]})}withAdminComponentOptics(t){return new ConfiguratorBuilder({...this._context,adminComponentOptics:[...this._context.adminComponentOptics??[],...t]})}withHandlers(t){return new ConfiguratorBuilder({...this._context,handlers:t})}withElements(t){return new ConfiguratorBuilder({...this._context,elements:t})}withResources(t){return new ConfiguratorBuilder({...this._context,resources:t})}withWebComponentTag(t){return new ConfiguratorBuilder({...this._context,tagName:t})}withTransformers(t,e){return new ConfiguratorBuilder({...this._context,transformers:{importedTransformers:t,specTransformers:e}})}withInterface(t){return this}withDataSpec=t=>new ConfiguratorBuilder({...this._context,dataSpec:t});_computeInitialPublishedData(t,e,i){if(!this._context.adminDomainFactory)throw Error("adminDomainFactory is required!");return s({adminDomainFactory:this._context.adminDomainFactory,domainRuntime:e,adminPresets:this._context.adminPresets??[],handlers:i,dataSpec:this._context.dataSpec,chunks:this._context.chunks,logger:t})}buildConfig(){return this._buildConfigWithHandlers().config}_buildConfigWithHandlers(){if(!this._context.domainFactory)throw Error("Can not create application config, domainFactory is required! Is it registered with the ConfiguratorBuilder?");if(!this._context.presets)throw Error("Can not create application config, presets are required! Is it registered with the ConfiguratorBuilder?");if(!this._context.adminDomainFactory)throw Error("Can not create application config, adminDomainFactory is required! Is it registered with the ConfiguratorBuilder?");if(!this._context.adminPresets)throw Error("Can not create application config, adminPresets are required! Is it registered with the ConfiguratorBuilder?");if(!this._context.version)throw Error("Can not create application config, version is required!");let i=this._context.tagName??"salsita-configurator",s={defaultEnvs:this._context.defaultEnvs,services:{i18n:this._context.i18n},version:this._context.version,initialPublishedData:{},domain:{textLanguages:this._context.textLanguages,componentOptics:this._context.componentOptics,presets:this._context.presets,domainFactory:this._context.domainFactory},navigation:{navigationStates:this._context.navigationState?.values(),viewStates:this._context.viewState?.values(),toolStates:this._context.toolState?.values(),exportStates:this._context.exportState?.values()},adminNavigation:{navigationStates:this._context.adminNavigationState?.values(),viewStates:this._context.adminViewState?.values()},adminDomain:{textLanguages:this._context.textLanguages,componentOptics:this._context.adminComponentOptics??[],presets:this._context.adminPresets,domainFactory:this._context.adminDomainFactory},mount:{tag:i,options:{}},handlers:this._context.handlers??[],elements:this._context.elements??[],transformers:this._context.transformers,features:{acl:this._context.acl,enableAdminRelease:this._context.enableAdminRelease},ui:{preview:this._context.ui?.preview,alwaysExpand:this._context.ui?.alwaysExpand,theme:this._context.theme},resources:this._context.resourcesConfig,chunks:this._context.chunks,publishedDataHash:this._context.publishedDataHash,assistant:this._context.assistant,dataSpec:this._context.dataSpec},u=t(),d=n({config:s,services:{analyticsService:new r,i18n:e,logger:u}}),m=d.getState().spec.configurator.handlers;if(m.filter(t=>l(t)).length>1)throw Error("Multiple createFilterPublishedChunksHandler handlers found. Only one handler is allowed.");if(m.filter(t=>h(t)).length>1)throw Error("Multiple createDataRowValidatorHandler handlers found. Only one handler is allowed.");if(m.filter(t=>c(t)).length>1)throw Error("Multiple createSheetValidatorHandler handlers found. Only one handler is allowed.");let f=m.find(o)?.handler().handler,x=m.find(a)?.handler().handler(void 0),w=this._computeInitialPublishedData(u,d,m);return{config:{...s,mount:{tag:i,options:x??{},Application:f},initialPublishedData:w},handlers:m}}buildWebhookContext(){if(!this._context.domainFactory)throw Error("domainFactory is required!");if(!this._context.adminDomainFactory)throw Error("adminDomainFactory is required!");if(!this._context.adminPresets)throw Error("adminPresets are required!");let{config:t,handlers:e}=this._buildConfigWithHandlers(),r=t=>{if(null==this._context.finalizeData)return{};let e=i.compile(this._context.finalizeData);if(!e(t))throw console.error("Finalize data validation errors:",e.errors),Error("Invalid finalize data!");return t},n=t=>{if(null==this._context.finalizeResult)return{};let e=i.compile(this._context.finalizeResult);if(!e(t))throw console.error("Finalize result validation errors:",e.errors),Error("Invalid finalize result!");return t},o=t=>{if(null==this._context.callbackData)return{};let e=i.compile(this._context.callbackData);if(!e(t))throw console.error("Callback data validation errors:",e.errors),Error("Invalid callback data!");return t},a=e.find(d)?.handler().handler,s=e.find(u)?.handler().handler,l=e.find(h)?.handler().handler,m=e.find(c)?.handler().handler;return{config:t,parseFinalizeData:r,parseFinalizeResult:n,resources:this._context.resources??[],parseCallbackData:o,mapPublishedRevisionData:a,mapPublishedChunkedData:s,dataRowValidator:l,sheetValidator:m}}}
1
+ import{initConsoleLogger as t}from"@salsita-ai/common/utils";import{defaultI18n as e}from"#package/i18n";import{extendedSchemaValidator as i}from"../core/index.js";import{NoopAnalyticsSystem as r}from"../domain-context/index.js";import{createDomainRuntime as n}from"../domain-runtime/index.js";import{isGetApplicationWrapperHandler as o}from"./GetApplicationWrapperHandler.js";import{isGetWebComponentOptionsHandler as a}from"./GetWebComponentOptions.js";import{isAssistantSetupHandler as s}from"./assistant/index.js";import{createInitialPublishedData as l}from"./create-initial-published-data.js";import{isDataRowValidatorHandler as h}from"./published-data/DataRowValidatorHandler.js";import{isFilterPublishedChunksHandler as u}from"./published-data/FilterPublishedChunksHandler.js";import{isMapPublishedChunkedDataHandler as d}from"./published-data/MapPublishedChunkedDataHandler.js";import{isMapPublishedRevisionDataHandler as c}from"./published-data/MapPublishedRevisionDataHandler.js";import{isSheetValidatorHandler as f}from"./published-data/SheetValidatorHandler.js";export class ConfiguratorBuilder{_context;constructor(t){this._context=t}withDefaultEnvs(t){return new ConfiguratorBuilder({...this._context,defaultEnvs:t})}withVersion(t){return new ConfiguratorBuilder({...this._context,version:t})}withTextLanguages(t){return new ConfiguratorBuilder({...this._context,textLanguages:t})}withAcl(t){return new ConfiguratorBuilder({...this._context,acl:t})}withAdminRelease(t){return new ConfiguratorBuilder({...this._context,enableAdminRelease:t})}withUi(t){return new ConfiguratorBuilder({...this._context,ui:t})}withResourcesConfig(t){return new ConfiguratorBuilder({...this._context,resourcesConfig:t})}withChunks(t){return new ConfiguratorBuilder({...this._context,chunks:t})}withPublishedDataHash(t){return new ConfiguratorBuilder({...this._context,publishedDataHash:t})}withAssistant(t){return new ConfiguratorBuilder({...this._context,assistant:t})}withTheme(t){return new ConfiguratorBuilder({...this._context,theme:t})}withDomainFactory(t){return new ConfiguratorBuilder({...this._context,domainFactory:t})}withAdminDomainFactory(t){return new ConfiguratorBuilder({...this._context,adminDomainFactory:t})}withI18n=t=>new ConfiguratorBuilder({...this._context,i18n:t});withPrefetchedFinalizeData(t){return new ConfiguratorBuilder({...this._context,prefetchedFinalizeData:t})}withFinalizeData(t){return new ConfiguratorBuilder({...this._context,finalizeData:t})}withFinalizeResult(t){return new ConfiguratorBuilder({...this._context,finalizeResult:t})}withCallbackData(t){return new ConfiguratorBuilder({...this._context,callbackData:t})}withNavigationState(t){return new ConfiguratorBuilder({...this._context,navigationState:t})}withViewState(t){return new ConfiguratorBuilder({...this._context,viewState:t})}withToolState(t){return new ConfiguratorBuilder({...this._context,toolState:t})}withExportState(t){return new ConfiguratorBuilder({...this._context,exportState:t})}withAdminNavigationState(t){return new ConfiguratorBuilder({...this._context,adminNavigationState:t})}withAdminViewState(t){return new ConfiguratorBuilder({...this._context,adminViewState:t})}withPresets(t){return new ConfiguratorBuilder({...this._context,presets:t})}withAdminPresets(t){return new ConfiguratorBuilder({...this._context,adminPresets:t})}withComponentOptics(t){return new ConfiguratorBuilder({...this._context,componentOptics:[...this._context.componentOptics,...t]})}withAdminComponentOptics(t){return new ConfiguratorBuilder({...this._context,adminComponentOptics:[...this._context.adminComponentOptics??[],...t]})}withHandlers(t){return new ConfiguratorBuilder({...this._context,handlers:t})}withElements(t){return new ConfiguratorBuilder({...this._context,elements:t})}withDefaultElements(t){return new ConfiguratorBuilder({...this._context,defaultElements:t})}withResources(t){return new ConfiguratorBuilder({...this._context,resources:t})}withWebComponentTag(t){return new ConfiguratorBuilder({...this._context,tagName:t})}withTransformers(t,e){return new ConfiguratorBuilder({...this._context,transformers:{importedTransformers:t,specTransformers:e}})}withInterface(t){return this}withDataSpec=t=>new ConfiguratorBuilder({...this._context,dataSpec:t});_computeInitialPublishedData(t,e,i){if(!this._context.adminDomainFactory)throw Error("adminDomainFactory is required!");return l({adminDomainFactory:this._context.adminDomainFactory,domainRuntime:e,adminPresets:this._context.adminPresets??[],handlers:i,dataSpec:this._context.dataSpec,chunks:this._context.chunks,logger:t})}buildConfig(){return this._buildConfigWithHandlers().config}_buildConfigWithHandlers(){if(!this._context.domainFactory)throw Error("Can not create application config, domainFactory is required! Is it registered with the ConfiguratorBuilder?");if(!this._context.presets)throw Error("Can not create application config, presets are required! Is it registered with the ConfiguratorBuilder?");if(!this._context.adminDomainFactory)throw Error("Can not create application config, adminDomainFactory is required! Is it registered with the ConfiguratorBuilder?");if(!this._context.adminPresets)throw Error("Can not create application config, adminPresets are required! Is it registered with the ConfiguratorBuilder?");if(!this._context.version)throw Error("Can not create application config, version is required!");let i=this._context.tagName??"salsita-configurator",l={defaultEnvs:this._context.defaultEnvs,services:{i18n:this._context.i18n},version:this._context.version,initialPublishedData:{},domain:{textLanguages:this._context.textLanguages,componentOptics:this._context.componentOptics,presets:this._context.presets,domainFactory:this._context.domainFactory},navigation:{navigationStates:this._context.navigationState?.values(),viewStates:this._context.viewState?.values(),toolStates:this._context.toolState?.values(),exportStates:this._context.exportState?.values()},adminNavigation:{navigationStates:this._context.adminNavigationState?.values(),viewStates:this._context.adminViewState?.values()},adminDomain:{textLanguages:this._context.textLanguages,componentOptics:this._context.adminComponentOptics??[],presets:this._context.adminPresets,domainFactory:this._context.adminDomainFactory},mount:{tag:i,options:{}},handlers:this._context.handlers??[],elements:this._context.elements??[],defaultElements:this._context.defaultElements??[],transformers:this._context.transformers,features:{acl:this._context.acl,enableAdminRelease:this._context.enableAdminRelease},ui:{preview:this._context.ui?.preview,alwaysExpand:this._context.ui?.alwaysExpand,theme:this._context.theme},resources:this._context.resourcesConfig,chunks:this._context.chunks,publishedDataHash:this._context.publishedDataHash,assistant:this._context.assistant,dataSpec:this._context.dataSpec},d=t(),c=n({config:l,services:{analyticsService:new r,i18n:e,logger:d}}),m=c.getState().spec.configurator.handlers;if(m.filter(s).length>1)throw Error("Multiple createAssistantSetupHandler handlers found. Only one handler is allowed.");if(m.filter(t=>u(t)).length>1)throw Error("Multiple createFilterPublishedChunksHandler handlers found. Only one handler is allowed.");if(m.filter(t=>h(t)).length>1)throw Error("Multiple createDataRowValidatorHandler handlers found. Only one handler is allowed.");if(m.filter(t=>f(t)).length>1)throw Error("Multiple createSheetValidatorHandler handlers found. Only one handler is allowed.");let w=m.find(o)?.handler().handler,x=m.find(a)?.handler().handler(void 0),_=this._computeInitialPublishedData(d,c,m);return{config:{...l,mount:{tag:i,options:x??{},Application:w},initialPublishedData:_},handlers:m}}buildWebhookContext(){if(!this._context.domainFactory)throw Error("domainFactory is required!");if(!this._context.adminDomainFactory)throw Error("adminDomainFactory is required!");if(!this._context.adminPresets)throw Error("adminPresets are required!");let{config:t,handlers:e}=this._buildConfigWithHandlers(),r=t=>{if(null==this._context.finalizeData)return{};let e=i.compile(this._context.finalizeData);if(!e(t))throw console.error("Finalize data validation errors:",e.errors),Error("Invalid finalize data!");return t},n=t=>{if(null==this._context.finalizeResult)return{};let e=i.compile(this._context.finalizeResult);if(!e(t))throw console.error("Finalize result validation errors:",e.errors),Error("Invalid finalize result!");return t},o=t=>{if(null==this._context.callbackData)return{};let e=i.compile(this._context.callbackData);if(!e(t))throw console.error("Callback data validation errors:",e.errors),Error("Invalid callback data!");return t},a=e.find(c)?.handler().handler,s=e.find(d)?.handler().handler,l=e.find(h)?.handler().handler,u=e.find(f)?.handler().handler;return{config:t,parseFinalizeData:r,parseFinalizeResult:n,resources:this._context.resources??[],parseCallbackData:o,mapPublishedRevisionData:a,mapPublishedChunkedData:s,dataRowValidator:l,sheetValidator:u}}}
@@ -1,15 +1,14 @@
1
1
  import type { Logger } from '@salsita-ai/common/utils';
2
- import type { $DomainEntity, DomainEntity, DomainFactory, ProductPreset } from '../core/index.js';
3
- import type { DomainRuntime } from '../domain-runtime/index.js';
2
+ import type { DomainEntity, DomainFactory, ProductPreset } from '../core/index.js';
3
+ import type { DomainRuntime, HandlerRegistration } from '../domain-runtime/index.js';
4
4
  import type { ChunksSpec, DataSpec } from './application-config.js';
5
- import type { HandlerRegistration } from './handler-registration.js';
6
- export interface CreateInitialPublishedDataProps<ADMIN_ENTITIES extends DomainEntity<string>, ADMIN_ALLOWED_ROOT_ENTITIES extends ADMIN_ENTITIES, ADMIN_$MAP extends Record<ADMIN_ENTITIES['type'], $DomainEntity<ADMIN_ENTITIES>>, PUBLISHED_DATA extends Record<string, unknown>, SESSION_DATA extends Record<string, unknown>, FRONTEND_DATA extends Record<string, unknown>> {
7
- readonly adminDomainFactory: DomainFactory<ADMIN_ENTITIES, ADMIN_ALLOWED_ROOT_ENTITIES, ADMIN_$MAP, PUBLISHED_DATA, SESSION_DATA, FRONTEND_DATA>;
5
+ export interface CreateInitialPublishedDataProps<PUBLISHED_DATA extends Record<string, unknown>> {
6
+ readonly adminDomainFactory: DomainFactory<any, any, any, PUBLISHED_DATA, any, any>;
8
7
  readonly domainRuntime: DomainRuntime;
9
- readonly adminPresets: ReadonlyArray<ProductPreset<ADMIN_ENTITIES, ADMIN_ALLOWED_ROOT_ENTITIES>>;
8
+ readonly adminPresets: ReadonlyArray<ProductPreset<DomainEntity<string>, DomainEntity<string>>>;
10
9
  readonly handlers?: ReadonlyArray<HandlerRegistration<any, any>>;
11
10
  readonly dataSpec?: DataSpec;
12
11
  readonly chunks?: ChunksSpec;
13
12
  readonly logger: Logger;
14
13
  }
15
- export declare const createInitialPublishedData: <ADMIN_ENTITIES extends DomainEntity<string>, ADMIN_ALLOWED_ROOT_ENTITIES extends ADMIN_ENTITIES, ADMIN_$MAP extends Record<ADMIN_ENTITIES['type'], $DomainEntity<ADMIN_ENTITIES>>, PUBLISHED_DATA extends Record<string, unknown>, SESSION_DATA extends Record<string, unknown>, FRONTEND_DATA extends Record<string, unknown>>(props: CreateInitialPublishedDataProps<ADMIN_ENTITIES, ADMIN_ALLOWED_ROOT_ENTITIES, ADMIN_$MAP, PUBLISHED_DATA, SESSION_DATA, FRONTEND_DATA>) => PUBLISHED_DATA;
14
+ export declare const createInitialPublishedData: <PUBLISHED_DATA extends Record<string, unknown>>(props: CreateInitialPublishedDataProps<PUBLISHED_DATA>) => PUBLISHED_DATA;
@@ -1,16 +1,14 @@
1
- export { type DomainConfig, type NavigationConfig, type ISessionService, type Session, type ResourcesConfig, type ApplicationConfig, type UserInterfaceConfig, type MountConfig, type WebComponentOptions, type SessionState, type AuthenticationErrorCode, type DataCellValue, type DataSchema, type DataSchemaArrayField, type DataSchemaField, type DataSchemaFieldObject, type DataSpec, type DataSpecEntry, type SwatchSpecEntry, type ChunksSpec, type ImportedTransformer, type SpecTransformer, type TransformersConfig, type AdminPagesSpec, type AnyApplicationConfig, type DefaultEnvs, } from './application-config.js';
1
+ export { type DomainConfig, type NavigationConfig, type ISessionService, type Session, type ResourcesConfig, type ApplicationConfig, type UserInterfaceConfig, type MountConfig, type WebComponentOptions, type SessionState, type AuthenticationErrorCode, type DataSpec, type DataSpecEntry, type SwatchSpecEntry, type ChunksSpec, type ImportedTransformer, type SpecTransformer, type TransformersConfig, type AdminPagesSpec, type AnyApplicationConfig, type DefaultEnvs, } from './application-config.js';
2
2
  export { type AssistantFieldOption, findAssistantFieldOptions, readAssistantFieldOptions, } from './assistant-field-options.js';
3
3
  export { deleteEntityUpdateTag, findAssistantMutation, modifyEntityUpdateTag } from './assistant-mutations.js';
4
- export { type AssistantRecipe, type AssistantRecipeContext, type AssistantRecipeGroupSnapshot, type AssistantRecipeKind, assistantAddedEntityIds, findAssistantRecipeGroups, prepareAssistantRecipeUpdates, readAssistantRecipeGroup, } from './assistant-recipe-groups.js';
4
+ export { type AssistantRecipe, type AssistantRecipeContext, type AssistantRecipeGroupSnapshot, type AssistantRecipeKind, findAssistantRecipeGroups, prepareAssistantRecipeUpdates, readAssistantRecipeGroup, } from './assistant-recipe-groups.js';
5
5
  export { ConfiguratorBuilder } from './configurator-builder.js';
6
6
  export * from './admin-page-factories.js';
7
7
  export { createInitialPublishedData, type CreateInitialPublishedDataProps } from './create-initial-published-data.js';
8
- export { resolveImportedTransformers, resolveTransformerModule, resolveTransformerModules, } from './resolve-imported-transformers.js';
9
8
  export { webComponentAttributeParsers, createWebComponentPropertyDescriptor, type AttributeParser, type WebComponentPropertyDescriptor, } from './web-component-property.js';
10
9
  export { createWebComponentEventDescriptor, type WebComponentEventDescriptor } from './web-component-event.js';
11
10
  export { standardWebComponentProperties, type StandardConfiguratorElement } from './standard-properties.js';
12
11
  export { standardWebComponentEvents } from './standard-events.js';
13
- export { ResourceBuilder } from './resource-builder.js';
14
12
  export { createGetApplicationWrapperHandler, isGetApplicationWrapperHandler, type CreateGetApplicationWrapperHandler, } from './GetApplicationWrapperHandler.js';
15
13
  export { createGetThemeHandler, GetThemeHandlerName, isGetThemeHandler, type CreateGetThemeHandler, } from './GetThemeHandler.js';
16
14
  export { createGetWebComponentOptionsHandler, isGetWebComponentOptionsHandler, type CreateGetWebComponentOptionsHandler, } from './GetWebComponentOptions.js';
@@ -26,6 +24,4 @@ export { createDataRowValidatorHandler, DataRowValidatorHandlerName, isDataRowVa
26
24
  export { createSheetValidatorHandler, SheetValidatorHandlerName, isSheetValidatorHandler, type CreateSheetValidatorHandler, type SheetValidatorResult, } from './published-data/SheetValidatorHandler.js';
27
25
  export { createMapPublishedRevisionDataHandler, createMapPublishedRevisionDataHandlerFactory, isMapPublishedRevisionDataHandler, type CreateMapPublishedRevisionDataHandler, type TypedCreateMapPublishedRevisionDataHandler, } from './published-data/MapPublishedRevisionDataHandler.js';
28
26
  export { createMapPublishedChunkedDataHandler, createMapPublishedChunkedDataHandlerFactory, isMapPublishedChunkedDataHandler, type CreateMapPublishedChunkedDataHandler, type MapPublishedChunkedDataHandlerProps, type MapPublishedChunkedDataResult, type TypedCreateMapPublishedChunkedDataHandler, } from './published-data/MapPublishedChunkedDataHandler.js';
29
- export { type PhoenixHandlerDefinition, type SystemPhoenixHandlerDefinition, type PhoenixHandlerRegistration, type SystemPhoenixHandlerRegistration, type SystemPhoenixAsyncHandlerDefinition, type SystemPhoenixAsyncHandlerRegistration, type HandlerRegistration, type CreatePhoenixHandler, createPhoenixHandler, createSystemPhoenixHandler, createSystemPhoenixAsyncHandler, resolveHandlerModule, resolveHandlerModules, } from './handler-registration.js';
30
- 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, } from './element-registration.js';
31
27
  export * from './assistant/index.js';
@@ -1 +1 @@
1
- export{findAssistantFieldOptions,readAssistantFieldOptions}from"./assistant-field-options.js";export{deleteEntityUpdateTag,findAssistantMutation,modifyEntityUpdateTag}from"./assistant-mutations.js";export{assistantAddedEntityIds,findAssistantRecipeGroups,prepareAssistantRecipeUpdates,readAssistantRecipeGroup}from"./assistant-recipe-groups.js";export{ConfiguratorBuilder}from"./configurator-builder.js";export*from"./admin-page-factories.js";export{createInitialPublishedData}from"./create-initial-published-data.js";export{resolveImportedTransformers,resolveTransformerModule,resolveTransformerModules}from"./resolve-imported-transformers.js";export{webComponentAttributeParsers,createWebComponentPropertyDescriptor}from"./web-component-property.js";export{createWebComponentEventDescriptor}from"./web-component-event.js";export{standardWebComponentProperties}from"./standard-properties.js";export{standardWebComponentEvents}from"./standard-events.js";export{ResourceBuilder}from"./resource-builder.js";export{createGetApplicationWrapperHandler,isGetApplicationWrapperHandler}from"./GetApplicationWrapperHandler.js";export{createGetThemeHandler,GetThemeHandlerName,isGetThemeHandler}from"./GetThemeHandler.js";export{createGetWebComponentOptionsHandler,isGetWebComponentOptionsHandler}from"./GetWebComponentOptions.js";export{createFinalizeAdminDomain}from"./published-data/create-finalize-admin-domain.js";export{FilterPublishedChunksHandlerName,isFilterPublishedChunksHandler}from"./published-data/FilterPublishedChunksHandler.js";export{mapPublishedData}from"./published-data/map-published-data.js";export{flattenTabData,mapDefaultValuesToRecords,mapPublishedChunkedData,SYSTEM_CHUNK_KEY,SYSTEM_CHUNK_SCOPE,SWATCH_DEFINITION}from"./published-data/map-published-chunked-data.js";export{buildLegendRows}from"./published-data/build-legend-data.js";export{formatFieldType,getFieldDescription}from"./published-data/format-field-type.js";export{mapDataToSheet}from"./published-data/map-data-to-sheet.js";export{validateRows}from"./published-data/validate-sheet-data.js";export{createDataRowValidatorHandler,DataRowValidatorHandlerName,isDataRowValidatorHandler}from"./published-data/DataRowValidatorHandler.js";export{createSheetValidatorHandler,SheetValidatorHandlerName,isSheetValidatorHandler}from"./published-data/SheetValidatorHandler.js";export{createMapPublishedRevisionDataHandler,createMapPublishedRevisionDataHandlerFactory,isMapPublishedRevisionDataHandler}from"./published-data/MapPublishedRevisionDataHandler.js";export{createMapPublishedChunkedDataHandler,createMapPublishedChunkedDataHandlerFactory,isMapPublishedChunkedDataHandler}from"./published-data/MapPublishedChunkedDataHandler.js";export{createPhoenixHandler,createSystemPhoenixHandler,createSystemPhoenixAsyncHandler,resolveHandlerModule,resolveHandlerModules}from"./handler-registration.js";export{createPhoenixLayoutElement,createPhoenixEntityElement,createCustomPhoenixLayoutElement,createCustomPhoenixEntityElement,resolveElementModule,resolveElementModules}from"./element-registration.js";export*from"./assistant/index.js";
1
+ export{findAssistantFieldOptions,readAssistantFieldOptions}from"./assistant-field-options.js";export{deleteEntityUpdateTag,findAssistantMutation,modifyEntityUpdateTag}from"./assistant-mutations.js";export{findAssistantRecipeGroups,prepareAssistantRecipeUpdates,readAssistantRecipeGroup}from"./assistant-recipe-groups.js";export{ConfiguratorBuilder}from"./configurator-builder.js";export*from"./admin-page-factories.js";export{createInitialPublishedData}from"./create-initial-published-data.js";export{webComponentAttributeParsers,createWebComponentPropertyDescriptor}from"./web-component-property.js";export{createWebComponentEventDescriptor}from"./web-component-event.js";export{standardWebComponentProperties}from"./standard-properties.js";export{standardWebComponentEvents}from"./standard-events.js";export{createGetApplicationWrapperHandler,isGetApplicationWrapperHandler}from"./GetApplicationWrapperHandler.js";export{createGetThemeHandler,GetThemeHandlerName,isGetThemeHandler}from"./GetThemeHandler.js";export{createGetWebComponentOptionsHandler,isGetWebComponentOptionsHandler}from"./GetWebComponentOptions.js";export{createFinalizeAdminDomain}from"./published-data/create-finalize-admin-domain.js";export{FilterPublishedChunksHandlerName,isFilterPublishedChunksHandler}from"./published-data/FilterPublishedChunksHandler.js";export{mapPublishedData}from"./published-data/map-published-data.js";export{flattenTabData,mapDefaultValuesToRecords,mapPublishedChunkedData,SYSTEM_CHUNK_KEY,SYSTEM_CHUNK_SCOPE,SWATCH_DEFINITION}from"./published-data/map-published-chunked-data.js";export{buildLegendRows}from"./published-data/build-legend-data.js";export{formatFieldType,getFieldDescription}from"./published-data/format-field-type.js";export{mapDataToSheet}from"./published-data/map-data-to-sheet.js";export{validateRows}from"./published-data/validate-sheet-data.js";export{createDataRowValidatorHandler,DataRowValidatorHandlerName,isDataRowValidatorHandler}from"./published-data/DataRowValidatorHandler.js";export{createSheetValidatorHandler,SheetValidatorHandlerName,isSheetValidatorHandler}from"./published-data/SheetValidatorHandler.js";export{createMapPublishedRevisionDataHandler,createMapPublishedRevisionDataHandlerFactory,isMapPublishedRevisionDataHandler}from"./published-data/MapPublishedRevisionDataHandler.js";export{createMapPublishedChunkedDataHandler,createMapPublishedChunkedDataHandlerFactory,isMapPublishedChunkedDataHandler}from"./published-data/MapPublishedChunkedDataHandler.js";export*from"./assistant/index.js";
@@ -1,4 +1,4 @@
1
- import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../handler-registration.js';
1
+ import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../../domain-runtime/index.js';
2
2
  import type { DataRowValidator, DataRowValidatorProps, RowValidationMessage } from './validate-sheet-data.js';
3
3
  export declare const DataRowValidatorHandlerName = "DataRowValidator";
4
4
  export type DataRowValidatorResult = readonly RowValidationMessage[];
@@ -1,3 +1,3 @@
1
- import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../handler-registration.js';
1
+ import type { HandlerRegistration, SystemPhoenixHandlerRegistration } from '../../domain-runtime/index.js';
2
2
  export declare const FilterPublishedChunksHandlerName = "FilterPublishedChunks";
3
3
  export declare const isFilterPublishedChunksHandler: (handler: HandlerRegistration<any, any>) => handler is SystemPhoenixHandlerRegistration<void, readonly string[]>;