@salsita-ai/sdk 0.50.0-develop.1ddc7020fd → 0.50.0-develop.231285e85a

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 (2066) hide show
  1. package/README.md +25 -16
  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/index.d.ts +1 -0
  14. package/dist/application/index.js +1 -1
  15. package/dist/application/mount-application.d.ts +1 -1
  16. package/dist/application/mount-application.js +1 -1
  17. package/dist/application/mount-configurator.d.ts +19 -0
  18. package/dist/application/mount-configurator.js +1 -0
  19. package/dist/application/mounted-application-runtime.d.ts +4 -0
  20. package/dist/application/mounted-application-runtime.js +1 -0
  21. package/dist/application/register-web-component.d.ts +2 -0
  22. package/dist/application/register-web-component.js +1 -0
  23. package/dist/application-spec/caching/content-diff.js +1 -1
  24. package/dist/application-spec/core/application-file.d.ts +0 -2
  25. package/dist/application-spec/core/application-file.js +1 -1
  26. package/dist/application-spec/core/enhanced-json-value.d.ts +2 -99
  27. package/dist/application-spec/core/enhanced-json-value.js +1 -1
  28. package/dist/application-spec/core/index.d.ts +1 -1
  29. package/dist/application-spec/core/index.js +1 -1
  30. package/dist/application-spec/core/json-schema.d.ts +2 -52
  31. package/dist/application-spec/core/json-value.d.ts +1 -1
  32. package/dist/application-spec/core/markers/index.d.ts +1 -1
  33. package/dist/application-spec/core/markers/index.js +1 -1
  34. package/dist/application-spec/core/markers/msg-marker.d.ts +2 -28
  35. package/dist/application-spec/core/markers/msg-marker.js +1 -1
  36. package/dist/application-spec/core/markers/raw-eval-write-marker.d.ts +1 -1
  37. package/dist/application-spec/core/markers/raw-eval-write-marker.js +1 -1
  38. package/dist/application-spec/core/markers/raw-read-write-marker.js +1 -1
  39. package/dist/application-spec/enhanced-json/eval-to-constant.d.ts +14 -0
  40. package/dist/application-spec/enhanced-json/index.d.ts +4 -0
  41. package/dist/application-spec/enhanced-json/index.js +1 -0
  42. package/dist/application-spec/enhanced-json/is-enhanced-json-array.d.ts +2 -0
  43. package/dist/application-spec/enhanced-json/is-enhanced-json-array.js +1 -0
  44. package/dist/application-spec/enhanced-json/resolve-enhanced-json-value.d.ts +18 -0
  45. package/dist/application-spec/enhanced-json/resolve-enhanced-json-value.js +1 -0
  46. package/dist/application-spec/enhanced-json/schema-from-value.d.ts +24 -0
  47. package/dist/application-spec/enhanced-json/schema-from-value.js +1 -0
  48. package/dist/application-spec/enhanced-json/stringify-enhanced-json-value.d.ts +14 -0
  49. package/dist/application-spec/enhanced-json/stringify-enhanced-json-value.js +1 -0
  50. package/dist/application-spec/enhanced-json/validate-enhanced-json-value-caps.d.ts +12 -0
  51. package/dist/application-spec/enhanced-json/validate-enhanced-json-value-caps.js +1 -0
  52. package/dist/application-spec/enhanced-json/validate-no-legacy-code-ref.d.ts +13 -0
  53. package/dist/application-spec/enhanced-json/validate-no-legacy-code-ref.js +1 -0
  54. package/dist/application-spec/errors/diagnostic-codes.d.ts +31 -1
  55. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  56. package/dist/application-spec/errors/diagnostic-messages.d.ts +42 -2
  57. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  58. package/dist/application-spec/generate-application/code/common/code-imports.js +1 -1
  59. package/dist/application-spec/generate-application/code/common/env-reader.js +2 -2
  60. package/dist/application-spec/generate-application/code/common/index.d.ts +1 -0
  61. package/dist/application-spec/generate-application/code/common/index.js +1 -1
  62. package/dist/application-spec/generate-application/code/common/single-quoted-string.d.ts +6 -0
  63. package/dist/application-spec/generate-application/code/common/single-quoted-string.js +1 -0
  64. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  65. package/dist/application-spec/generate-application/code/generate-application-code.d.ts +3 -2
  66. package/dist/application-spec/generate-application/code/generate-application-code.js +1 -1
  67. package/dist/application-spec/generate-application/code/project-scaffolding.d.ts +22 -14
  68. package/dist/application-spec/generate-application/code/project-scaffolding.js +2 -2
  69. package/dist/application-spec/generate-application/code/standalone-app-files.d.ts +2 -2
  70. package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
  71. package/dist/application-spec/generate-application/code/story-files.js +1 -1
  72. package/dist/application-spec/generate-application/code/templates/admin-config.js +3 -0
  73. package/dist/application-spec/generate-application/code/templates/application-types.js +6 -6
  74. package/dist/application-spec/generate-application/code/templates/common/doc-comment.d.ts +2 -0
  75. package/dist/application-spec/generate-application/code/templates/common/doc-comment.js +1 -0
  76. package/dist/application-spec/generate-application/code/templates/common/format-property-key.d.ts +7 -0
  77. package/dist/application-spec/generate-application/code/templates/common/format-property-key.js +1 -0
  78. package/dist/application-spec/generate-application/code/templates/common/schema-to-type-string.js +3 -3
  79. package/dist/application-spec/generate-application/code/templates/configurator-config.js +6 -4
  80. package/dist/application-spec/generate-application/code/templates/configurator-globals.d.ts +2 -1
  81. package/dist/application-spec/generate-application/code/templates/configurator-globals.js +19 -6
  82. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +35 -0
  83. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +5 -0
  84. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.d.ts +1 -0
  85. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.js +1 -0
  86. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.d.ts +1 -1
  87. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.js +7 -7
  88. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.d.ts +4 -2
  89. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-defaults.js +1 -1
  90. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +72 -76
  91. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.d.ts +9 -1
  92. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.js +1 -1
  93. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +3 -0
  94. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-presets.js +1 -1
  95. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-relation-expressions.js +1 -1
  96. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.d.ts +6 -8
  97. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.js +21 -21
  98. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.d.ts +1 -1
  99. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.js +2 -2
  100. package/dist/application-spec/generate-application/code/templates/domain-spec/index.d.ts +3 -2
  101. package/dist/application-spec/generate-application/code/templates/domain-spec/index.js +1 -1
  102. package/dist/application-spec/generate-application/code/templates/domain-spec.js +12 -12
  103. package/dist/application-spec/generate-application/code/templates/domain.js +3 -3
  104. package/dist/application-spec/generate-application/code/templates/eslint-config.d.ts +5 -0
  105. package/dist/application-spec/generate-application/code/templates/eslint-config.js +4 -5
  106. package/dist/application-spec/generate-application/code/templates/frontend-config.js +3 -5
  107. package/dist/application-spec/generate-application/code/templates/gitignore.js +0 -3
  108. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +7 -7
  109. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +12 -0
  110. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -0
  111. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.d.ts +43 -0
  112. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +33 -0
  113. package/dist/application-spec/generate-application/code/templates/global-definition/index.d.ts +2 -0
  114. package/dist/application-spec/generate-application/code/templates/global-definition/index.js +1 -1
  115. package/dist/application-spec/generate-application/code/templates/globals.js +24 -43
  116. package/dist/application-spec/generate-application/code/templates/index.d.ts +5 -16
  117. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  118. package/dist/application-spec/generate-application/code/templates/lingui-rc.d.ts +5 -0
  119. package/dist/application-spec/generate-application/code/templates/lingui-rc.js +4 -4
  120. package/dist/application-spec/generate-application/code/templates/prettier-config.d.ts +5 -0
  121. package/dist/application-spec/generate-application/code/templates/prettier-config.js +4 -5
  122. package/dist/application-spec/generate-application/code/templates/root-tsconfig.d.ts +6 -0
  123. package/dist/application-spec/generate-application/code/templates/root-tsconfig.js +2 -0
  124. package/dist/application-spec/generate-application/code/templates/skills/phoenix-cli-skill.js +1 -1
  125. package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.js +66 -42
  126. package/dist/application-spec/generate-application/code/templates/skills/phoenix-feedback-skill.js +5 -5
  127. package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.js +9 -3
  128. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.d.ts +10 -0
  129. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +7 -0
  130. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.js +1 -1
  131. package/dist/application-spec/generate-application/code/templates/skills/phoenix-variants-skill.js +2 -2
  132. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +42 -18
  133. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +6 -8
  134. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.d.ts +58 -0
  135. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.js +1 -0
  136. package/dist/application-spec/generate-application/code/templates/spec-code/index.d.ts +2 -0
  137. package/dist/application-spec/generate-application/code/templates/spec-code/index.js +1 -0
  138. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.d.ts +18 -0
  139. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.js +41 -0
  140. package/dist/application-spec/generate-application/code/templates/spec-messages/index.d.ts +1 -0
  141. package/dist/application-spec/generate-application/code/templates/spec-messages/index.js +1 -0
  142. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.d.ts +20 -0
  143. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.js +6 -0
  144. package/dist/application-spec/generate-application/code/templates/story/phx-module.d.ts +8 -2
  145. package/dist/application-spec/generate-application/code/templates/story/phx-module.js +15 -3
  146. package/dist/application-spec/generate-application/code/templates/story/wrapper.d.ts +3 -0
  147. package/dist/application-spec/generate-application/code/templates/story/wrapper.js +2 -1
  148. package/dist/application-spec/generate-application/code/templates/tsconfig.d.ts +5 -0
  149. package/dist/application-spec/generate-application/code/templates/tsconfig.js +1 -1
  150. package/dist/application-spec/generate-application/code/templates/webhook-builders.js +4 -3
  151. package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +6 -1
  152. package/dist/application-spec/generate-application/code/templates/webhook-index.js +10 -1
  153. package/dist/application-spec/generate-application/code/templates/webhooks-config.js +2 -3
  154. package/dist/application-spec/generate-application/implementations/phx-application-types.d.ts +25 -0
  155. package/dist/application-spec/generate-application/implementations/phx-application-types.js +1 -0
  156. package/dist/application-spec/generate-application/implementations/phx-domain.d.ts +36 -0
  157. package/dist/application-spec/generate-application/implementations/phx-domain.js +1 -0
  158. package/dist/application-spec/generate-application/implementations/phx-model.d.ts +24 -0
  159. package/dist/application-spec/generate-application/implementations/phx-model.js +1 -0
  160. package/dist/application-spec/generate-application/implementations/phx.d.ts +22 -0
  161. package/dist/application-spec/generate-application/implementations/phx.js +1 -0
  162. package/dist/application-spec/generate-application/index.d.ts +4 -0
  163. package/dist/application-spec/generate-application/index.js +1 -1
  164. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.d.ts +6 -5
  165. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.js +1 -1
  166. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.d.ts +12 -4
  167. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.js +1 -1
  168. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.d.ts +16 -0
  169. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.js +1 -0
  170. package/dist/application-spec/generate-application/runtime/admin-runtime/states-runtime.d.ts +2 -2
  171. package/dist/application-spec/generate-application/runtime/application-runtime.d.ts +35 -10
  172. package/dist/application-spec/generate-application/runtime/application-runtime.js +1 -1
  173. package/dist/application-spec/generate-application/runtime/application-spec-slice.d.ts +71 -0
  174. package/dist/application-spec/generate-application/runtime/application-spec-slice.js +1 -0
  175. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.d.ts +7 -6
  176. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.js +1 -1
  177. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.d.ts +12 -7
  178. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.js +1 -1
  179. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.d.ts +16 -0
  180. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.js +1 -0
  181. package/dist/application-spec/generate-application/runtime/configurator-runtime/states-runtime.d.ts +2 -2
  182. package/dist/application-spec/generate-application/runtime/create-application.d.ts +57 -0
  183. package/dist/application-spec/generate-application/runtime/create-application.js +1 -0
  184. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.d.ts +42 -0
  185. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.js +1 -0
  186. package/dist/application-spec/generate-application/runtime/factory-data/index.d.ts +3 -0
  187. package/dist/application-spec/generate-application/runtime/factory-data/index.js +1 -0
  188. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.d.ts +13 -0
  189. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.js +1 -0
  190. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.d.ts +15 -0
  191. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.js +1 -0
  192. package/dist/application-spec/generate-application/runtime/generate-runtime-instance.d.ts +1 -1
  193. package/dist/application-spec/generate-application/runtime/generate-runtime-instance.js +1 -1
  194. package/dist/application-spec/generate-application/runtime/index.d.ts +8 -0
  195. package/dist/application-spec/generate-application/runtime/index.js +1 -0
  196. package/dist/application-spec/generate-application/runtime/migrations/index.d.ts +1 -0
  197. package/dist/application-spec/generate-application/runtime/migrations/index.js +1 -0
  198. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.d.ts +53 -0
  199. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.js +1 -0
  200. package/dist/application-spec/generate-application/runtime/sections/actions-runtime.d.ts +1 -2
  201. package/dist/application-spec/generate-application/runtime/sections/assistant-runtime.d.ts +2 -2
  202. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.d.ts +3 -2
  203. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.js +1 -1
  204. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.d.ts +3 -2
  205. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.js +1 -1
  206. package/dist/application-spec/generate-application/runtime/sections/component-optic.d.ts +6 -3
  207. package/dist/application-spec/generate-application/runtime/sections/component-optic.js +1 -1
  208. package/dist/application-spec/generate-application/runtime/sections/data-runtime.d.ts +4 -4
  209. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.d.ts +14 -6
  210. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +1 -1
  211. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.d.ts +10 -7
  212. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.js +1 -1
  213. package/dist/application-spec/generate-application/runtime/sections/preset-runtime.d.ts +2 -3
  214. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.d.ts +4 -2
  215. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.js +1 -1
  216. package/dist/application-spec/generate-application/runtime/sections/theme-runtime.d.ts +2 -2
  217. package/dist/application-spec/generate-application/runtime/sections/transformers-runtime.d.ts +4 -6
  218. package/dist/application-spec/generate-application/runtime/spec-code/index.d.ts +2 -0
  219. package/dist/application-spec/generate-application/runtime/spec-code/index.js +1 -0
  220. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.d.ts +18 -0
  221. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.js +1 -0
  222. package/dist/application-spec/generate-application/runtime/spec-code/spec-code-module.d.ts +17 -0
  223. package/dist/application-spec/generate-application/runtime/spec-runtime.d.ts +21 -0
  224. package/dist/application-spec/generate-application/runtime/spec-runtime.js +1 -0
  225. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.d.ts +9 -0
  226. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.js +1 -0
  227. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.d.ts +8 -0
  228. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.js +1 -0
  229. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.d.ts +28 -0
  230. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.js +1 -0
  231. package/dist/application-spec/generate-application/runtime-spec/index.d.ts +5 -0
  232. package/dist/application-spec/generate-application/runtime-spec/index.js +1 -0
  233. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.d.ts +168 -0
  234. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.js +1 -0
  235. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.d.ts +40 -0
  236. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.js +1 -0
  237. package/dist/application-spec/index.d.ts +1 -0
  238. package/dist/application-spec/index.js +1 -1
  239. package/dist/application-spec/parse-application-files/categorize/categorize-files.d.ts +34 -0
  240. package/dist/application-spec/parse-application-files/categorize/categorize-files.js +1 -1
  241. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.d.ts +16 -0
  242. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.js +9 -0
  243. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.d.ts +9 -0
  244. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.js +1 -0
  245. package/dist/application-spec/parse-application-files/categorize/module-analysis.d.ts +1 -1
  246. package/dist/application-spec/parse-application-files/categorize/module-analysis.js +1 -1
  247. package/dist/application-spec/parse-application-files/merge/merged-assistant.d.ts +13 -4
  248. package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
  249. package/dist/application-spec/parse-application-files/merge/merged-infra.d.ts +4 -11
  250. package/dist/application-spec/parse-application-files/merge/merged-transformers.d.ts +2 -4
  251. package/dist/application-spec/parse-application-files/parse-application-files.js +1 -1
  252. package/dist/application-spec/parse-application-files/raw-spec/parse-yaml-spec-file.js +1 -1
  253. package/dist/application-spec/parse-application-files/raw-spec/raw-acl.d.ts +2 -2
  254. package/dist/application-spec/parse-application-files/raw-spec/raw-acl.js +1 -1
  255. package/dist/application-spec/parse-application-files/raw-spec/raw-admin-pages.d.ts +3 -24
  256. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +72 -24
  257. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  258. package/dist/application-spec/parse-application-files/raw-spec/raw-expressions.d.ts +1 -1
  259. package/dist/application-spec/parse-application-files/raw-spec/raw-expressions.js +1 -1
  260. package/dist/application-spec/parse-application-files/raw-spec/raw-resources.d.ts +19 -64
  261. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
  262. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-pages.d.ts +3 -20
  263. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-spec.js +1 -1
  264. package/dist/application-spec/parse-application-files/spec/application/admin-spec/states.d.ts +3 -5
  265. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.js +1 -1
  266. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/states.d.ts +3 -8
  267. package/dist/application-spec/parse-application-files/spec/common/index.d.ts +1 -0
  268. package/dist/application-spec/parse-application-files/spec/common/index.js +1 -1
  269. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.d.ts +3 -0
  270. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.js +1 -0
  271. package/dist/application-spec/parse-application-files/spec/common/value-type/index.d.ts +5 -0
  272. package/dist/application-spec/parse-application-files/spec/common/value-type/index.js +1 -0
  273. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.d.ts +6 -0
  274. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.js +1 -0
  275. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.d.ts +8 -0
  276. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.js +1 -0
  277. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.d.ts +10 -0
  278. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.js +1 -0
  279. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.d.ts +98 -0
  280. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.js +1 -0
  281. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.d.ts +13 -0
  282. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.js +1 -0
  283. package/dist/application-spec/parse-application-files/spec/components/bindings/index.d.ts +2 -0
  284. package/dist/application-spec/parse-application-files/spec/components/bindings/index.js +1 -1
  285. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.d.ts +24 -0
  286. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.js +1 -0
  287. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding.d.ts +3 -13
  288. package/dist/application-spec/parse-application-files/spec/components/bindings/write-binding.d.ts +4 -32
  289. package/dist/application-spec/parse-application-files/spec/components/component-filter.d.ts +3 -62
  290. package/dist/application-spec/parse-application-files/spec/components/component-filter.js +1 -1
  291. package/dist/application-spec/parse-application-files/spec/components/component-state-type.d.ts +8 -0
  292. package/dist/application-spec/parse-application-files/spec/components/component-state-type.js +1 -0
  293. package/dist/application-spec/parse-application-files/spec/components/components.d.ts +3 -4
  294. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.d.ts +13 -0
  295. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.js +1 -0
  296. package/dist/application-spec/parse-application-files/spec/components/index.d.ts +1 -2
  297. package/dist/application-spec/parse-application-files/spec/components/index.js +1 -1
  298. package/dist/application-spec/parse-application-files/spec/components/sdk-component-entry.d.ts +1 -1
  299. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.d.ts +14 -0
  300. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.js +1 -0
  301. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.d.ts +8 -3
  302. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.js +1 -1
  303. package/dist/application-spec/parse-application-files/spec/components/user-components.d.ts +9 -7
  304. package/dist/application-spec/parse-application-files/spec/components/user-components.js +1 -1
  305. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.d.ts +24 -0
  306. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.js +1 -0
  307. package/dist/application-spec/parse-application-files/spec/expressions/expression-read.d.ts +13 -0
  308. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.d.ts +9 -0
  309. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.js +1 -0
  310. package/dist/application-spec/parse-application-files/spec/expressions/expressions.d.ts +12 -30
  311. package/dist/application-spec/parse-application-files/spec/expressions/expressions.js +1 -1
  312. package/dist/application-spec/parse-application-files/spec/expressions/index.d.ts +0 -2
  313. package/dist/application-spec/parse-application-files/spec/expressions/index.js +1 -1
  314. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.d.ts +4 -71
  315. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.js +1 -1
  316. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.d.ts +5 -3
  317. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
  318. package/dist/application-spec/parse-application-files/spec/invariants/invariant.d.ts +5 -21
  319. package/dist/application-spec/parse-application-files/spec/invariants/invariants.d.ts +6 -16
  320. package/dist/application-spec/parse-application-files/spec/invariants/invariants.js +1 -1
  321. package/dist/application-spec/parse-application-files/spec/model/aliases.d.ts +3 -9
  322. package/dist/application-spec/parse-application-files/spec/model/common-types.d.ts +6 -14
  323. package/dist/application-spec/parse-application-files/spec/model/defaults.d.ts +6 -26
  324. package/dist/application-spec/parse-application-files/spec/model/defaults.js +1 -1
  325. package/dist/application-spec/parse-application-files/spec/model/entity-types.d.ts +3 -8
  326. package/dist/application-spec/parse-application-files/spec/model/index.d.ts +1 -0
  327. package/dist/application-spec/parse-application-files/spec/model/index.js +1 -1
  328. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.d.ts +10 -0
  329. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.js +1 -0
  330. package/dist/application-spec/parse-application-files/spec/model/model-version-key.d.ts +3 -3
  331. package/dist/application-spec/parse-application-files/spec/model/names/action-name.d.ts +3 -7
  332. package/dist/application-spec/parse-application-files/spec/model/names/alias-name.d.ts +3 -7
  333. package/dist/application-spec/parse-application-files/spec/model/names/entity-or-alias-name.d.ts +3 -8
  334. package/dist/application-spec/parse-application-files/spec/model/names/entity-type-name.d.ts +3 -8
  335. package/dist/application-spec/parse-application-files/spec/model/names/expression-name.d.ts +3 -6
  336. package/dist/application-spec/parse-application-files/spec/model/names/instance-name.d.ts +3 -7
  337. package/dist/application-spec/parse-application-files/spec/model/names/invariant-name.d.ts +3 -3
  338. package/dist/application-spec/parse-application-files/spec/model/names/shape-property-name.d.ts +3 -11
  339. package/dist/application-spec/parse-application-files/spec/model/names/violation-type-name.d.ts +3 -3
  340. package/dist/application-spec/parse-application-files/spec/model/presets.d.ts +6 -29
  341. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.d.ts +25 -0
  342. package/dist/application-spec/parse-application-files/spec/relations/reference-field-type.js +1 -0
  343. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.d.ts +46 -0
  344. package/dist/application-spec/parse-application-files/spec/relations/relation-field-mismatch.js +1 -0
  345. package/dist/application-spec/parse-application-files/spec/relations/relations.d.ts +4 -3
  346. package/dist/application-spec/parse-application-files/spec/relations/relations.js +1 -1
  347. package/dist/application-spec/parse-application-files/spec/sections/actions.d.ts +6 -23
  348. package/dist/application-spec/parse-application-files/spec/sections/app-metadata.d.ts +3 -18
  349. package/dist/application-spec/parse-application-files/spec/sections/application-version.d.ts +3 -7
  350. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +9 -0
  351. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -0
  352. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +4 -1
  353. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  354. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant.js +1 -1
  355. package/dist/application-spec/parse-application-files/spec/sections/data-spec/chunks.d.ts +6 -23
  356. package/dist/application-spec/parse-application-files/spec/sections/data-spec/custom-data-spec.d.ts +1 -16
  357. package/dist/application-spec/parse-application-files/spec/sections/data-spec/data-entry-key.d.ts +3 -9
  358. package/dist/application-spec/parse-application-files/spec/sections/data-spec/data-spec.d.ts +1 -10
  359. package/dist/application-spec/parse-application-files/spec/sections/data-spec/swatch-data-spec.d.ts +1 -14
  360. package/dist/application-spec/parse-application-files/spec/sections/infra.d.ts +2 -0
  361. package/dist/application-spec/parse-application-files/spec/sections/infra.js +1 -1
  362. package/dist/application-spec/parse-application-files/spec/sections/state-value.d.ts +3 -7
  363. package/dist/application-spec/parse-application-files/spec/sections/theme.d.ts +3 -10
  364. package/dist/application-spec/parse-application-files/spec/sections/transformers.d.ts +4 -11
  365. package/dist/application-spec/parse-application-files/spec/sections/ui.d.ts +3 -12
  366. package/dist/client/authorized-client.d.ts +5 -1
  367. package/dist/client/authorized-client.js +1 -1
  368. package/dist/client/contract.d.ts +63 -0
  369. package/dist/client/contract.js +1 -1
  370. package/dist/client/index.d.ts +2 -2
  371. package/dist/client/index.js +1 -1
  372. package/dist/client/local-authorized-client.d.ts +5 -1
  373. package/dist/client/local-authorized-client.js +1 -1
  374. package/dist/client/memory-authorized-client.d.ts +6 -1
  375. package/dist/client/memory-authorized-client.js +1 -1
  376. package/dist/client/phoenix-api.d.ts +1198 -267
  377. package/dist/configurator/ConfiguratorApp.js +1 -1
  378. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.d.ts +2 -0
  379. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.js +5 -0
  380. package/dist/configurator/app-loader-content/index.d.ts +1 -0
  381. package/dist/configurator/app-loader-content/index.js +1 -0
  382. package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
  383. package/dist/configurator/application-runtime/extensions/selectors.d.ts +3 -1
  384. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  385. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +189 -6
  386. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  387. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +58 -9
  388. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  389. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +1 -1
  390. package/dist/configurator/application-runtime/extensions/systems/canvas-system.d.ts +8 -0
  391. package/dist/configurator/application-runtime/extensions/systems/canvas-system.js +1 -1
  392. package/dist/configurator/application-runtime/extensions/systems/drag-and-drop-system/drag-and-drop-system.d.ts +3 -3
  393. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.d.ts +8 -0
  394. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.js +1 -0
  395. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +23 -1
  396. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  397. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.d.ts +12 -0
  398. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.js +1 -0
  399. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +82 -55
  400. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  401. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +85 -7
  402. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  403. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.d.ts +11 -0
  404. package/dist/configurator/application-runtime/extensions/systems/graphql-system/inject-assistant-lenses.js +1 -0
  405. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.d.ts +40 -0
  406. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.js +1 -0
  407. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +14 -5
  408. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  409. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +2 -2
  410. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.d.ts +2 -2
  411. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.js +1 -1
  412. package/dist/configurator/common/configurator-interface.d.ts +145 -5
  413. package/dist/configurator/common/configurator-interface.js +1 -1
  414. package/dist/configurator/common/index.d.ts +3 -1
  415. package/dist/configurator/common/index.js +1 -1
  416. package/dist/configurator/common/use-reset-camera.d.ts +6 -0
  417. package/dist/configurator/common/use-reset-camera.js +1 -0
  418. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.d.ts +5 -0
  419. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.js +1 -0
  420. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.d.ts +6 -0
  421. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.js +1 -0
  422. package/dist/configurator/configuration-not-found-page/index.d.ts +2 -0
  423. package/dist/configurator/configuration-not-found-page/index.js +1 -0
  424. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.d.ts +12 -0
  425. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.js +1 -0
  426. package/dist/configurator/configurator-context/PreviewContextProvider.js +1 -1
  427. package/dist/configurator/configurator-context/ViewportStateSync.d.ts +2 -2
  428. package/dist/configurator/configurator-context/ViewportStateSync.js +1 -1
  429. package/dist/configurator/configurator-context/configurator-hooks/index.d.ts +0 -1
  430. package/dist/configurator/configurator-context/configurator-hooks/index.js +1 -1
  431. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.d.ts +11 -1
  432. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.js +1 -1
  433. package/dist/configurator/configurator-context/index.d.ts +0 -5
  434. package/dist/configurator/configurator-context/index.js +1 -1
  435. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.d.ts +6 -0
  436. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.js +1 -0
  437. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.d.ts +7 -0
  438. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.js +1 -0
  439. package/dist/configurator/configurator-error-page/index.d.ts +2 -0
  440. package/dist/configurator/configurator-error-page/index.js +1 -0
  441. package/dist/configurator/index.d.ts +10 -0
  442. package/dist/configurator/index.js +1 -1
  443. package/dist/configurator/pages/ConfiguratorErrorPage.d.ts +0 -1
  444. package/dist/configurator/pages/ConfiguratorErrorPage.js +1 -1
  445. package/dist/configurator/pages/ConfiguratorNotFoundPage.js +1 -1
  446. package/dist/configurator/pages/DefaultConfiguratorLayout.d.ts +7 -0
  447. package/dist/configurator/pages/DefaultConfiguratorLayout.js +1 -0
  448. package/dist/configurator/pages/DefaultNotAuthenticatedPage.d.ts +8 -0
  449. package/dist/configurator/pages/DefaultNotAuthenticatedPage.js +1 -0
  450. package/dist/configurator/pages/DefaultPresetUi.d.ts +7 -0
  451. package/dist/configurator/pages/DefaultPresetUi.js +1 -0
  452. package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
  453. package/dist/configurator/pages/NewConfiguratorPage.js +1 -1
  454. package/dist/configurator/pages/PresetCreationErrorPage.d.ts +1 -1
  455. package/dist/configurator/pages/PresetCreationErrorPage.js +1 -1
  456. package/dist/configurator/pages/RootPage.js +1 -1
  457. package/dist/configurator/pages/configurator-layout-name.d.ts +2 -0
  458. package/dist/configurator/pages/configurator-layout-name.js +1 -0
  459. package/dist/configurator/pages/default-configurator-elements.d.ts +13 -0
  460. package/dist/configurator/pages/default-configurator-elements.js +1 -0
  461. package/dist/configurator/pages/default-elements/built-in-entity-element.d.ts +10 -0
  462. package/dist/configurator/pages/default-elements/built-in-entity-element.js +1 -0
  463. package/dist/configurator/pages/default-elements/built-in-layout-element.d.ts +10 -0
  464. package/dist/configurator/pages/default-elements/built-in-layout-element.js +1 -0
  465. package/dist/configurator/pages/default-elements/domain-control-elements.d.ts +6 -0
  466. package/dist/configurator/pages/default-elements/domain-control-elements.js +1 -0
  467. package/dist/configurator/pages/default-elements/index.d.ts +5 -0
  468. package/dist/configurator/pages/default-elements/index.js +1 -0
  469. package/dist/configurator/pages/default-elements/recipe-panel-elements.d.ts +3 -0
  470. package/dist/configurator/pages/default-elements/recipe-panel-elements.js +1 -0
  471. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.d.ts +3 -0
  472. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.js +1 -0
  473. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.d.ts +3 -0
  474. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.js +1 -0
  475. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.d.ts +3 -0
  476. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.js +1 -0
  477. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.d.ts +3 -0
  478. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.js +1 -0
  479. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.d.ts +3 -0
  480. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.js +1 -0
  481. package/dist/configurator/pages/default-elements/scene-controls/index.d.ts +6 -0
  482. package/dist/configurator/pages/default-elements/scene-controls/index.js +1 -0
  483. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.d.ts +6 -0
  484. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.js +1 -0
  485. package/dist/configurator/pages/default-elements/sidebar-footer-elements.d.ts +7 -0
  486. package/dist/configurator/pages/default-elements/sidebar-footer-elements.js +1 -0
  487. package/dist/configurator/pages/default-elements/toolbar-elements.d.ts +7 -0
  488. package/dist/configurator/pages/default-elements/toolbar-elements.js +1 -0
  489. package/dist/configurator/pages/error-boundaries/DevContextFallback.js +1 -1
  490. package/dist/configurator/pages/error-boundaries/DevLoadingFallback.js +1 -1
  491. package/dist/configurator/pages/error-boundaries/GeneralErrorBoundary.js +1 -1
  492. package/dist/configurator/pages/error-boundaries/LoadingErrorBoundary.js +1 -1
  493. package/dist/configurator/pages/index.d.ts +1 -0
  494. package/dist/configurator/pages/index.js +1 -1
  495. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.d.ts +4 -0
  496. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.js +1 -0
  497. package/dist/configurator/preset-screen-elements/PresetPageActionElement.d.ts +4 -0
  498. package/dist/configurator/preset-screen-elements/PresetPageActionElement.js +1 -0
  499. package/dist/configurator/preset-screen-elements/index.d.ts +2 -0
  500. package/dist/configurator/preset-screen-elements/index.js +1 -0
  501. package/dist/configurator/scene/index.d.ts +1 -0
  502. package/dist/configurator/scene/index.js +1 -1
  503. package/dist/configurator/scene/scene-controls/DeleteEntityFab.js +1 -1
  504. package/dist/configurator/scene/scene-controls/SelectionHotspot.js +1 -1
  505. package/dist/configurator/scene/scene-controls/ToolFab.d.ts +4 -0
  506. package/dist/configurator/scene/scene-controls/ToolFab.js +1 -1
  507. package/dist/configurator/scene/scene-controls/hotspot-drag-handle/HotspotDragHandle.d.ts +1 -1
  508. package/dist/configurator/scene/scene-controls/hotspot-drag-handle/HotspotDragSceneHandle.d.ts +1 -1
  509. package/dist/configurator/scene/scene-controls/use-scene-control-tooltip.d.ts +2 -1
  510. package/dist/configurator/scene/scene-entity/dimension-indicators/DimensionIndicator.d.ts +1 -1
  511. package/dist/configurator/scene/scene-entity/dimension-indicators/DimensionIndicatorInternal.d.ts +1 -1
  512. package/dist/configurator/scene/scene-entity/drag-and-drop/shared.d.ts +2 -2
  513. package/dist/configurator/scene/scene-entity/drag-and-drop/use-drag-object.d.ts +1 -1
  514. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.js +1 -1
  515. package/dist/configurator/scene/scene-entity/objects/SceneEntityObjectTextDecal.d.ts +1 -1
  516. package/dist/configurator/scene/scene-entity/scene-controls/SceneEntityHtmlHotspots.js +1 -1
  517. package/dist/configurator/toolbar-actions/index.d.ts +3 -0
  518. package/dist/configurator/toolbar-actions/index.js +1 -0
  519. package/dist/configurator/toolbar-actions/use-assistant-panel.d.ts +18 -0
  520. package/dist/configurator/toolbar-actions/use-assistant-panel.js +1 -0
  521. package/dist/configurator/toolbar-actions/use-measurements.d.ts +35 -0
  522. package/dist/configurator/toolbar-actions/use-measurements.js +1 -0
  523. package/dist/configurator/toolbar-actions/use-toolbar-actions.d.ts +100 -0
  524. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -0
  525. package/dist/configurator/toolbar-actions/use-toolbar-help.d.ts +7 -0
  526. package/dist/configurator/toolbar-actions/use-toolbar-help.js +1 -0
  527. package/dist/configurator/ui/assistant/AssistantChips.d.ts +10 -3
  528. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  529. package/dist/configurator/ui/assistant/AssistantComposer.d.ts +8 -1
  530. package/dist/configurator/ui/assistant/AssistantComposer.js +2 -1
  531. package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +7 -2
  532. package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -1
  533. package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
  534. package/dist/configurator/ui/assistant/AssistantThread.d.ts +6 -2
  535. package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
  536. package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +8 -0
  537. package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -0
  538. package/dist/configurator/ui/assistant/alert/index.d.ts +2 -0
  539. package/dist/configurator/ui/assistant/alert/index.js +1 -0
  540. package/dist/configurator/ui/assistant/alert/remark-alerts.d.ts +10 -0
  541. package/dist/configurator/ui/assistant/alert/remark-alerts.js +1 -0
  542. package/dist/configurator/ui/assistant/attachments/MessageImages.d.ts +11 -0
  543. package/dist/configurator/ui/assistant/attachments/MessageImages.js +1 -0
  544. package/dist/configurator/ui/assistant/attachments/index.d.ts +2 -0
  545. package/dist/configurator/ui/assistant/attachments/index.js +1 -0
  546. package/dist/configurator/ui/assistant/attachments/prepare-image.d.ts +19 -0
  547. package/dist/configurator/ui/assistant/attachments/prepare-image.js +1 -0
  548. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.d.ts +13 -0
  549. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.js +1 -0
  550. package/dist/configurator/ui/assistant/entity-link/entity-link-selection.d.ts +22 -0
  551. package/dist/configurator/ui/assistant/entity-link/entity-link-selection.js +1 -0
  552. package/dist/configurator/ui/assistant/entity-link/entity-link-state.d.ts +27 -0
  553. package/dist/configurator/ui/assistant/entity-link/entity-link-state.js +1 -0
  554. package/dist/configurator/ui/assistant/entity-link/index.d.ts +2 -0
  555. package/dist/configurator/ui/assistant/entity-link/index.js +1 -0
  556. package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +19 -0
  557. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -0
  558. package/dist/configurator/ui/assistant/form/compose-answer.d.ts +11 -0
  559. package/dist/configurator/ui/assistant/form/compose-answer.js +1 -0
  560. package/dist/configurator/ui/assistant/form/describe-build-errors.d.ts +6 -0
  561. package/dist/configurator/ui/assistant/form/describe-build-errors.js +1 -0
  562. package/dist/configurator/ui/assistant/form/form-model.d.ts +37 -0
  563. package/dist/configurator/ui/assistant/form/form-model.js +1 -0
  564. package/dist/configurator/ui/assistant/form/form-state.d.ts +4 -0
  565. package/dist/configurator/ui/assistant/form/form-state.js +1 -0
  566. package/dist/configurator/ui/assistant/form/index.d.ts +4 -0
  567. package/dist/configurator/ui/assistant/form/index.js +1 -0
  568. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +10 -0
  569. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -0
  570. package/dist/configurator/ui/assistant/form/read-form-attributes.d.ts +13 -0
  571. package/dist/configurator/ui/assistant/form/read-form-attributes.js +1 -0
  572. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +3 -0
  573. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -0
  574. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +31 -0
  575. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.js +1 -0
  576. package/dist/configurator/ui/assistant/form/registry/form-element-definition.d.ts +16 -0
  577. package/dist/configurator/ui/assistant/form/registry/form-element-definition.js +1 -0
  578. package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +31 -0
  579. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -0
  580. package/dist/configurator/ui/assistant/form/registry/index.d.ts +6 -0
  581. package/dist/configurator/ui/assistant/form/registry/index.js +1 -0
  582. package/dist/configurator/ui/assistant/form/registry/use-form-registry.d.ts +8 -0
  583. package/dist/configurator/ui/assistant/form/registry/use-form-registry.js +1 -0
  584. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +9 -0
  585. package/dist/configurator/ui/assistant/form-elements/FormCard.js +1 -0
  586. package/dist/configurator/ui/assistant/form-elements/FormConfirm.d.ts +9 -0
  587. package/dist/configurator/ui/assistant/form-elements/FormConfirm.js +1 -0
  588. package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +6 -0
  589. package/dist/configurator/ui/assistant/form-elements/FormGroup.js +1 -0
  590. package/dist/configurator/ui/assistant/form-elements/FormNumber.d.ts +9 -0
  591. package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -0
  592. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +6 -0
  593. package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -0
  594. package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +6 -0
  595. package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -0
  596. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +10 -0
  597. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +1 -0
  598. package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +6 -0
  599. package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -0
  600. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.d.ts +10 -0
  601. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.js +1 -0
  602. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +38 -0
  603. package/dist/configurator/ui/assistant/form-elements/index.d.ts +9 -0
  604. package/dist/configurator/ui/assistant/form-elements/index.js +1 -0
  605. package/dist/configurator/ui/assistant/index.d.ts +3 -0
  606. package/dist/configurator/ui/assistant/index.js +1 -1
  607. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.d.ts +16 -0
  608. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -0
  609. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.d.ts +34 -0
  610. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.js +1 -0
  611. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +25 -0
  612. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -0
  613. package/dist/configurator/ui/assistant/reference-link/index.d.ts +3 -0
  614. package/dist/configurator/ui/assistant/reference-link/index.js +1 -0
  615. package/dist/configurator/ui/assistant/reference-link/reference-styles.d.ts +12 -0
  616. package/dist/configurator/ui/assistant/reference-link/reference-styles.js +1 -0
  617. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.d.ts +8 -0
  618. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.js +1 -0
  619. package/dist/configurator/ui/assistant/resource-image/AssistantImage.d.ts +9 -0
  620. package/dist/configurator/ui/assistant/resource-image/AssistantImage.js +1 -0
  621. package/dist/configurator/ui/assistant/resource-image/index.d.ts +3 -0
  622. package/dist/configurator/ui/assistant/resource-image/index.js +1 -0
  623. package/dist/configurator/ui/assistant/resource-image/resource-path.d.ts +2 -0
  624. package/dist/configurator/ui/assistant/resource-image/resource-path.js +1 -0
  625. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.d.ts +5 -0
  626. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.js +1 -0
  627. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +9 -0
  628. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -0
  629. package/dist/configurator/ui/assistant/screenshots/index.d.ts +3 -0
  630. package/dist/configurator/ui/assistant/screenshots/index.js +1 -0
  631. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +22 -0
  632. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -0
  633. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +8 -0
  634. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -0
  635. package/dist/configurator/ui/assistant/streamed-markdown.d.ts +4 -2
  636. package/dist/configurator/ui/assistant/streamed-markdown.js +2 -2
  637. package/dist/configurator/ui/assistant/thread-items.d.ts +23 -3
  638. package/dist/configurator/ui/assistant/thread-items.js +1 -1
  639. package/dist/configurator/ui/assistant/tool-chip.d.ts +19 -9
  640. package/dist/configurator/ui/assistant/tool-chip.js +1 -1
  641. package/dist/configurator/ui/assistant/use-follow-stream.js +1 -1
  642. package/dist/configurator/ui/configurator-layout/sidebar-keys/index.d.ts +1 -0
  643. package/dist/configurator/ui/configurator-layout/sidebar-keys/index.js +1 -0
  644. package/dist/configurator/ui/configurator-layout/sidebar-keys/sidebar-keys.d.ts +11 -0
  645. package/dist/configurator/ui/configurator-layout/sidebar-keys/sidebar-keys.js +1 -0
  646. package/dist/configurator/ui/configurator-layout/slots/canvas/GPUAccelerationDisabled.js +1 -1
  647. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  648. package/dist/configurator/ui/configurator-layout/slots/canvas/SharedCanvas.js +1 -1
  649. package/dist/configurator/ui/configurator-layout/slots/canvas/WebGLNotSupported.js +1 -1
  650. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.d.ts +101 -0
  651. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +16 -0
  652. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/index.d.ts +1 -0
  653. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/index.js +1 -0
  654. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.d.ts +1 -1
  655. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.js +1 -1
  656. package/dist/configurator/ui/configurator-layout/slots/readonly-banner/CloneToEditDialog.js +1 -1
  657. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.d.ts +4 -4
  658. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.js +1 -1
  659. package/dist/configurator/ui/configurator-layout/slots/services/Services.js +1 -1
  660. package/dist/configurator/ui/configurator-layout/slots/services/SideEffects.d.ts +3 -6
  661. package/dist/configurator/ui/configurator-layout/slots/services/SideEffects.js +1 -1
  662. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.d.ts +1 -1
  663. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.js +1 -1
  664. package/dist/configurator/ui/configurator-layout/slots/slots.d.ts +1 -0
  665. package/dist/configurator/ui/configurator-layout/slots/slots.js +1 -1
  666. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.d.ts +0 -74
  667. package/dist/configurator/ui/configurator-layout/universal/DesktopLayout.js +5 -20
  668. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  669. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.d.ts +5 -0
  670. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.js +1 -0
  671. package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
  672. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +4 -4
  673. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  674. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.d.ts +47 -0
  675. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -0
  676. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.d.ts +11 -26
  677. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.js +1 -1
  678. package/dist/configurator/ui/index.d.ts +1 -0
  679. package/dist/configurator/ui/index.js +1 -1
  680. package/dist/configurator/ui/legacy/chat/MobileChat.js +1 -1
  681. package/dist/configurator/ui/legacy/layout/common/CommonFinalizeButton.js +1 -1
  682. package/dist/configurator/ui/legacy/layout/common/CommonSummaryButton.js +1 -1
  683. package/dist/configurator/ui/legacy/layout/common/CommonTopNavigation.js +1 -1
  684. package/dist/configurator/ui/legacy/layout/common/ReactiveInterfaceLayout.js +1 -1
  685. package/dist/configurator/ui/legacy/layout/common/ResponsiveFinalizeButton.js +1 -1
  686. package/dist/configurator/ui/legacy/layout/common/SummaryReadLayout.js +1 -1
  687. package/dist/configurator/ui/legacy/layout/simple/SimpleOwnerLayout.js +1 -1
  688. package/dist/configurator/ui/legacy/layout/simple/SimpleSidebar.js +1 -1
  689. package/dist/configurator/ui/legacy/layout/simple/SimpleTopNavigation.js +1 -1
  690. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.d.ts +2 -2
  691. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.js +1 -1
  692. package/dist/configurator/ui/legacy/layout/steps/StepsOwnerLayout.js +1 -1
  693. package/dist/configurator/ui/legacy/layout/steps/StepsSideBar.js +1 -1
  694. package/dist/configurator/ui/legacy/layout/steps/StepsSidebarFooter.js +1 -1
  695. package/dist/configurator/ui/legacy/layout/tabs/TabsOwnerLayout.js +1 -1
  696. package/dist/configurator/ui/legacy/layout/tabs/TabsSidebar.js +1 -1
  697. package/dist/configurator/ui/legacy/toolbar/common/DimensionUnitSelector.js +1 -1
  698. package/dist/configurator/ui/legacy/toolbar/common/MeasurementsIndicatorsSwitch.js +1 -1
  699. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/FullscreenToolbarAction.js +1 -1
  700. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/HelpToolbarAction.js +1 -1
  701. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/MeasurementsToolbarAction.js +1 -1
  702. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/UndoRedoToolbarGroup.js +1 -1
  703. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.d.ts +0 -7
  704. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.js +2 -6
  705. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -1
  706. package/dist/configurator/ui/phoenix-layout-elements/EnterFullscreenToolbarButton.js +1 -1
  707. package/dist/configurator/ui/phoenix-layout-elements/ExitFullscreenToolbarButton.js +1 -1
  708. package/dist/configurator/ui/phoenix-layout-elements/HelpToolbarButton.js +1 -1
  709. package/dist/configurator/ui/phoenix-layout-elements/LanguageMenuAction.js +1 -1
  710. package/dist/configurator/ui/phoenix-layout-elements/LanguageToolbarButton.js +1 -1
  711. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.d.ts +1 -0
  712. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.js +1 -1
  713. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.d.ts +1 -0
  714. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.js +1 -1
  715. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsMenuAction.js +1 -1
  716. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsToolbarButton.js +1 -1
  717. package/dist/configurator/ui/phoenix-layout-elements/RedoToolbarButton.js +1 -1
  718. package/dist/configurator/ui/phoenix-layout-elements/ShareToolbarButton.js +1 -1
  719. package/dist/configurator/ui/phoenix-layout-elements/UndoToolbarButton.js +1 -1
  720. package/dist/configurator/ui/phoenix-layout-elements/header/common/back-button/use-go-back-action.js +1 -1
  721. package/dist/configurator/ui/phoenix-layout-elements/header/common/horizontal-tabs/DesktopHorizontalTabs.js +1 -1
  722. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.d.ts +1 -1
  723. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.js +1 -1
  724. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.d.ts +2 -8
  725. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.js +1 -1
  726. package/dist/configurator/ui/phoenix-layout-elements/index.d.ts +8 -1
  727. package/dist/configurator/ui/phoenix-layout-elements/index.js +1 -1
  728. package/dist/configurator/ui/phoenix-layout-elements/measurements/DimensionUnitSelector.js +1 -1
  729. package/dist/configurator/ui/phoenix-layout-elements/measurements/MeasurementsIndicatorsSwitch.js +1 -1
  730. package/dist/configurator/ui/phoenix-layout-elements/share/ShareModal.js +1 -1
  731. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.d.ts +7 -8
  732. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.js +1 -1
  733. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/BasicFinalizeButton.js +1 -1
  734. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/use-basic-sidebar-footer.js +1 -1
  735. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/CustomFinalizeButton.js +1 -1
  736. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/EnterSummaryButton.js +1 -1
  737. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/FinalizeActions.js +1 -1
  738. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/NextStepButton.js +1 -1
  739. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/PreviousStepButton.js +1 -1
  740. package/dist/configurator/ui/preset-layout/CategoryPresetUi.js +1 -1
  741. package/dist/configurator/ui/preset-layout/PresetUi.d.ts +4 -2
  742. package/dist/configurator/ui/preset-layout/PresetUi.js +1 -1
  743. package/dist/configurator/ui/preset-layout/index.d.ts +6 -1
  744. package/dist/configurator/ui/preset-layout/index.js +1 -1
  745. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.d.ts +10 -0
  746. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.js +1 -0
  747. package/dist/configurator/ui/save-message-snackbars/index.d.ts +1 -0
  748. package/dist/configurator/ui/save-message-snackbars/index.js +1 -0
  749. package/dist/docs/3d-scene/cameras/custom.mdx +4 -2
  750. package/dist/docs/complex-use-cases/filtered-controls-with-fix-dialog.mdx +16 -19
  751. package/dist/docs/complex-use-cases/focus-mode.mdx +2 -0
  752. package/dist/docs/complex-use-cases/sketching.mdx +0 -38
  753. package/dist/docs/controls/select-attribute/cardselect.mdx +9 -13
  754. package/dist/docs/controls/select-child-entity/cardselect.mdx +1 -0
  755. package/dist/docs/dimensions/3d-scene-integration/dimension-indicators.mdx +2 -2
  756. package/dist/docs/dimensions/3d-scene-integration/editable-angle-indicator.mdx +1 -1
  757. package/dist/docs/dimensions/3d-scene-integration/editable-distance-dimension-indicator.mdx +1 -1
  758. package/dist/docs/dimensions/3d-scene-integration/list-selector-dimension-indicator.mdx +1 -1
  759. package/dist/docs/drag-and-drop/drag-handle.mdx +1 -1
  760. package/dist/docs/drag-and-drop/hotspot-handle.mdx +1 -1
  761. package/dist/docs/drag-and-drop/planes.mdx +1 -1
  762. package/dist/docs/drag-and-drop/room-planner.mdx +1 -1
  763. package/dist/docs/drag-and-drop/rotatable.mdx +2 -2
  764. package/dist/docs/fabs/basic.mdx +6 -2
  765. package/dist/docs/index.json +136 -1
  766. package/dist/docs/integrations/webcomponent-api/basics.mdx +2 -0
  767. package/dist/docs/integrations/woocommerce/local-development.mdx +1 -1
  768. package/dist/docs/layouts/custom-layout.mdx +2597 -0
  769. package/dist/docs/layouts/gallery/ardent-compressor.mdx +3516 -0
  770. package/dist/docs/layouts/gallery/corvid-drone.mdx +3428 -0
  771. package/dist/docs/layouts/gallery/fenwick-window.mdx +2803 -0
  772. package/dist/docs/layouts/gallery/ferrule-bar-station.mdx +6567 -0
  773. package/dist/docs/layouts/gallery/kestrel-kettle.mdx +1858 -0
  774. package/dist/docs/layouts/gallery/nightjar-guitar.mdx +3698 -0
  775. package/dist/docs/layouts/gallery/sunfold-solar.mdx +2683 -0
  776. package/dist/docs/layouts/gallery/tidepool-aquascape.mdx +5203 -0
  777. package/dist/docs/layouts/header/fixed.mdx +2 -2
  778. package/dist/docs/layouts/header/floating.mdx +2 -2
  779. package/dist/docs/layouts/sidebar/in-a-custom-layout.mdx +380 -0
  780. package/dist/docs/layouts/sidebar-footer/basic.mdx +32 -77
  781. package/dist/docs/other-features/client-side-rendering/declarative.mdx +2 -2
  782. package/dist/docs/other-features/error-5xx.mdx +1 -1
  783. package/dist/docs/other-features/navigation-hotspot.mdx +2 -0
  784. package/dist/docs/other-features/not-found-404.mdx +1 -1
  785. package/dist/docs/other-features/side-effects.mdx +8 -11
  786. package/dist/docs/other-features/transformers.mdx +4 -0
  787. package/dist/docs/other-features/violation-messages.mdx +52 -56
  788. package/dist/docs/phoenix/application-states.mdx +9 -7
  789. package/dist/docs/phoenix/clerk-sign-in.mdx +1 -1
  790. package/dist/docs/phoenix/components.mdx +6 -0
  791. package/dist/docs/phoenix/configurator-interface.mdx +402 -81
  792. package/dist/docs/phoenix/deployments.mdx +3 -7
  793. package/dist/docs/phoenix/domain-model.mdx +10 -1
  794. package/dist/docs/phoenix/expression-context.mdx +11 -3
  795. package/dist/docs/phoenix/finalization.mdx +1 -1
  796. package/dist/docs/phoenix/getting-started.mdx +7 -4
  797. package/dist/docs/phoenix/layout-slots.mdx +137 -0
  798. package/dist/docs/phoenix/localization.mdx +10 -6
  799. package/dist/docs/phoenix/migration-guide.mdx +27 -14
  800. package/dist/docs/phoenix/phoenix-cli.mdx +148 -68
  801. package/dist/docs/phoenix/project-structure.mdx +85 -37
  802. package/dist/docs/phoenix/quickstart.mdx +9 -9
  803. package/dist/docs/phoenix/sdk-builder-workflow.mdx +21 -19
  804. package/dist/docs/phoenix/sessions-and-access.mdx +2 -0
  805. package/dist/docs/phoenix/testing.mdx +148 -0
  806. package/dist/docs/phoenix/webhook-membership.mdx +10 -9
  807. package/dist/docs/phoenix/webhooks.mdx +27 -6
  808. package/dist/docs/selection-and-highlight/hotspots.mdx +2 -0
  809. package/dist/docs/ux-guidelines/choosing-a-control.mdx +11 -0
  810. package/dist/domain/admin-domain/__generated/enhanced-model.d.ts +1 -2
  811. package/dist/domain/admin-domain/implementation/common-admin-expressions.d.ts +26 -12
  812. package/dist/domain/admin-domain/implementation/common-admin-publish.d.ts +1 -2
  813. package/dist/domain/admin-domain/index.d.ts +8 -3
  814. package/dist/domain/admin-domain/index.js +1 -1
  815. package/dist/domain/application/GetApplicationWrapperHandler.d.ts +2 -2
  816. package/dist/domain/application/GetThemeHandler.d.ts +1 -1
  817. package/dist/domain/application/GetWebComponentOptions.d.ts +1 -1
  818. package/dist/domain/application/admin-page-factories.d.ts +1 -2
  819. package/dist/domain/application/application-config.d.ts +15 -50
  820. package/dist/domain/application/assistant/assistant-fields.d.ts +12 -0
  821. package/dist/domain/application/assistant/assistant-fields.js +1 -0
  822. package/dist/domain/application/assistant/assistant-manifest.d.ts +40 -5
  823. package/dist/domain/application/assistant/assistant-manifest.js +1 -1
  824. package/dist/domain/application/assistant/assistant-resolved-manifest.d.ts +48 -9
  825. package/dist/domain/application/assistant/assistant-value-type.js +1 -1
  826. package/dist/domain/application/assistant/build-assistant-lenses.d.ts +14 -0
  827. package/dist/domain/application/assistant/build-assistant-lenses.js +5 -0
  828. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  829. package/dist/domain/application/assistant/create-assistant-execution-schema.d.ts +32 -0
  830. package/dist/domain/application/assistant/create-assistant-execution-schema.js +1 -0
  831. package/dist/domain/application/assistant/form/assistant-form-element-name.d.ts +11 -0
  832. package/dist/domain/application/assistant/form/assistant-form-element-name.js +8 -0
  833. package/dist/domain/application/assistant/form/assistant-form-elements.d.ts +174 -0
  834. package/dist/domain/application/assistant/form/assistant-form-elements.js +1 -0
  835. package/dist/domain/application/assistant/form/assistant-resource-path.d.ts +10 -0
  836. package/dist/domain/application/assistant/form/assistant-resource-path.js +1 -0
  837. package/dist/domain/application/assistant/form/index.d.ts +4 -0
  838. package/dist/domain/application/assistant/form/index.js +1 -0
  839. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +4 -11
  840. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  841. package/dist/domain/application/assistant/index.d.ts +8 -2
  842. package/dist/domain/application/assistant/index.js +1 -1
  843. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.d.ts +20 -0
  844. package/dist/domain/application/assistant/session-setup/AssistantSetupHandler.js +1 -0
  845. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.d.ts +10 -0
  846. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -0
  847. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +48 -0
  848. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -0
  849. package/dist/domain/application/assistant/session-setup/create-session-assistant.d.ts +15 -0
  850. package/dist/domain/application/assistant/session-setup/create-session-assistant.js +1 -0
  851. package/dist/domain/application/assistant/session-setup/index.d.ts +4 -0
  852. package/dist/domain/application/assistant/session-setup/index.js +1 -0
  853. package/dist/domain/application/assistant-mutations.d.ts +2 -1
  854. package/dist/domain/application/assistant-mutations.js +1 -1
  855. package/dist/domain/application/assistant-recipe-groups.d.ts +4 -2
  856. package/dist/domain/application/configurator-builder.d.ts +11 -2
  857. package/dist/domain/application/configurator-builder.js +1 -1
  858. package/dist/domain/application/create-initial-published-data.d.ts +6 -7
  859. package/dist/domain/application/index.d.ts +3 -7
  860. package/dist/domain/application/index.js +1 -1
  861. package/dist/domain/application/published-data/DataRowValidatorHandler.d.ts +1 -1
  862. package/dist/domain/application/published-data/FilterPublishedChunksHandler.d.ts +1 -1
  863. package/dist/domain/application/published-data/MapPublishedChunkedDataHandler.d.ts +1 -1
  864. package/dist/domain/application/published-data/MapPublishedRevisionDataHandler.d.ts +1 -1
  865. package/dist/domain/application/published-data/SheetValidatorHandler.d.ts +1 -1
  866. package/dist/domain/application/published-data/build-legend-data.d.ts +1 -1
  867. package/dist/domain/application/published-data/format-field-type.d.ts +1 -1
  868. package/dist/domain/application/published-data/map-data-to-sheet.d.ts +1 -1
  869. package/dist/domain/application/published-data/map-published-chunked-data.d.ts +3 -3
  870. package/dist/domain/application/published-data/map-published-data.d.ts +7 -3
  871. package/dist/domain/application/published-data/validate-sheet-data.d.ts +1 -1
  872. package/dist/domain/application/standard-properties.js +1 -1
  873. package/dist/domain/application/web-component-property.d.ts +3 -1
  874. package/dist/domain/application/web-component-property.js +1 -1
  875. package/dist/domain/available-system-components/available-system-components.d.ts +11 -0
  876. package/dist/domain/available-system-components/available-system-components.js +1 -0
  877. package/dist/domain/available-system-components/index.d.ts +1 -0
  878. package/dist/domain/available-system-components/index.js +1 -0
  879. package/dist/domain/core/action/action-factory.d.ts +11 -0
  880. package/dist/domain/core/action/action.d.ts +71 -0
  881. package/dist/domain/core/action/action.js +1 -0
  882. package/dist/domain/core/action/index.d.ts +2 -0
  883. package/dist/domain/core/action/index.js +1 -0
  884. package/dist/domain/core/component/domain-component-optic.d.ts +29 -40
  885. package/dist/domain/core/component/domain-component-optic.js +2 -2
  886. package/dist/domain/core/component/legacy-filter.d.ts +2 -17
  887. package/dist/domain/core/component/system-component-filter.d.ts +36 -18
  888. package/dist/domain/core/data-schema/data-cell-value.d.ts +4 -0
  889. package/dist/domain/core/data-schema/data-cell-value.js +1 -0
  890. package/dist/domain/core/data-schema/data-schema-array-field.d.ts +5 -0
  891. package/dist/domain/core/data-schema/data-schema-array-field.js +1 -0
  892. package/dist/domain/core/data-schema/data-schema-field-object.d.ts +4 -0
  893. package/dist/domain/core/data-schema/data-schema-field-object.js +1 -0
  894. package/dist/domain/core/data-schema/data-schema-field.d.ts +2 -0
  895. package/dist/domain/core/data-schema/data-schema-field.js +1 -0
  896. package/dist/domain/core/data-schema/data-schema-localized-field.d.ts +4 -0
  897. package/dist/domain/core/data-schema/data-schema-localized-field.js +1 -0
  898. package/dist/domain/core/data-schema/data-schema-primitive-field.d.ts +5 -0
  899. package/dist/domain/core/data-schema/data-schema-primitive-field.js +1 -0
  900. package/dist/domain/core/data-schema/data-schema.d.ts +2 -0
  901. package/dist/domain/core/data-schema/data-schema.js +1 -0
  902. package/dist/domain/core/data-schema/index.d.ts +7 -0
  903. package/dist/domain/core/data-schema/index.js +1 -0
  904. package/dist/domain/core/domain-factory.d.ts +1 -1
  905. package/dist/domain/core/domain.d.ts +2 -2
  906. package/dist/domain/core/emission/index.d.ts +8 -0
  907. package/dist/domain/core/emission/index.js +1 -0
  908. package/dist/domain/core/emission/reset-state-emission.d.ts +12 -0
  909. package/dist/domain/core/emission/reset-state-emission.js +1 -0
  910. package/dist/domain/core/emission/state-emission.d.ts +4 -0
  911. package/dist/domain/core/emission/state-emission.js +1 -0
  912. package/dist/domain/core/emission/state-update-emission.d.ts +14 -0
  913. package/dist/domain/core/emission/state-update-emission.js +1 -0
  914. package/dist/domain/core/emission/state-validation-result.d.ts +18 -0
  915. package/dist/domain/core/emission/state-validation-result.js +1 -0
  916. package/dist/domain/core/emission/transformation-log.d.ts +2 -0
  917. package/dist/domain/core/emission/transformation-log.js +1 -0
  918. package/dist/domain/core/emission/transformer-log-entry.d.ts +6 -0
  919. package/dist/domain/core/emission/transformer-log-entry.js +1 -0
  920. package/dist/domain/core/emission/transformer-log.d.ts +11 -0
  921. package/dist/domain/core/emission/transformer-log.js +1 -0
  922. package/dist/domain/core/emission/transformer-phase.d.ts +1 -0
  923. package/dist/domain/core/emission/transformer-phase.js +1 -0
  924. package/dist/domain/core/expression/aliased-expressions.d.ts +10 -0
  925. package/dist/domain/core/expression/aliased-expressions.js +1 -0
  926. package/dist/domain/core/expression/constant-expressions.d.ts +16 -8
  927. package/dist/domain/core/expression/constant-expressions.js +1 -1
  928. package/dist/domain/core/expression/custom-expression.d.ts +21 -8
  929. package/dist/domain/core/expression/custom-expression.js +1 -1
  930. package/dist/domain/core/expression/expression.d.ts +15 -17
  931. package/dist/domain/core/expression/index.d.ts +1 -2
  932. package/dist/domain/core/expression/index.js +1 -1
  933. package/dist/domain/core/index.d.ts +6 -1
  934. package/dist/domain/core/index.js +1 -1
  935. package/dist/domain/core/invariant/builtin-invariant.d.ts +5 -0
  936. package/dist/domain/core/invariant/custom-invariants.d.ts +13 -0
  937. package/dist/domain/core/invariant/custom-invariants.js +1 -0
  938. package/dist/domain/core/invariant/index.d.ts +5 -0
  939. package/dist/domain/core/invariant/index.js +1 -0
  940. package/dist/domain/core/invariant/invariants.d.ts +10 -0
  941. package/dist/domain/core/invariant/invariants.js +1 -0
  942. package/dist/domain/core/invariant/violation-component.js +1 -0
  943. package/dist/domain/core/invariant/violation.d.ts +133 -0
  944. package/dist/domain/core/invariant/violation.js +1 -0
  945. package/dist/domain/core/model/model.d.ts +1 -1
  946. package/dist/domain/core/recipe/index.d.ts +1 -0
  947. package/dist/domain/core/recipe/index.js +1 -0
  948. package/dist/domain/core/recipe/recipes.d.ts +23 -0
  949. package/dist/domain/core/recipe/recipes.js +1 -0
  950. package/dist/domain/core/relation/all-of-type-relation.d.ts +19 -0
  951. package/dist/domain/core/relation/all-of-type-relation.js +1 -0
  952. package/dist/domain/core/relation/component-factories.d.ts +14 -0
  953. package/dist/domain/core/relation/component-factories.js +1 -0
  954. package/dist/domain/core/relation/composed-of.d.ts +12 -0
  955. package/dist/domain/core/relation/composed-of.js +1 -0
  956. package/dist/domain/core/relation/direct-relation.d.ts +17 -0
  957. package/dist/domain/core/relation/index.d.ts +8 -0
  958. package/dist/domain/core/relation/index.js +1 -0
  959. package/dist/domain/core/relation/indirect-relation.d.ts +25 -0
  960. package/dist/domain/core/relation/indirect-relation.js +1 -0
  961. package/dist/domain/core/relation/reference-component.d.ts +17 -0
  962. package/dist/domain/core/relation/reference-component.js +1 -0
  963. package/dist/domain/core/relation/reference-field.d.ts +7 -0
  964. package/dist/domain/core/relation/reference-field.js +1 -0
  965. package/dist/domain/core/relation/relation-factory.d.ts +22 -0
  966. package/dist/domain/core/relation/relation-factory.js +1 -0
  967. package/dist/domain/core/schema/extended-schema-validator.js +1 -1
  968. package/dist/domain/core/state/migrations.d.ts +14 -45
  969. package/dist/domain/core/state/migrations.js +1 -1
  970. package/dist/domain/core/state/state.d.ts +1 -1
  971. package/dist/domain/domain-builder/domain-builder.d.ts +46 -0
  972. package/dist/domain/domain-builder/domain-builder.js +1 -0
  973. package/dist/domain/domain-builder/index.d.ts +1 -0
  974. package/dist/domain/domain-builder/index.js +1 -0
  975. package/dist/domain/domain-context/action-system/action-system.d.ts +2 -2
  976. package/dist/domain/domain-context/action-system/action-system.js +1 -1
  977. package/dist/domain/domain-context/action-system/index.d.ts +1 -0
  978. package/dist/domain/domain-context/action-system/index.js +1 -0
  979. package/dist/domain/domain-context/analytics-system/index.d.ts +2 -0
  980. package/dist/domain/domain-context/analytics-system/index.js +1 -0
  981. package/dist/domain/domain-context/create-transformer.d.ts +1 -1
  982. package/dist/domain/domain-context/dimension-system/dimension-system.d.ts +3 -4
  983. package/dist/domain/domain-context/dimension-system/dimension-system.js +1 -1
  984. package/dist/domain/domain-context/dimension-system/index.d.ts +1 -0
  985. package/dist/domain/domain-context/dimension-system/index.js +1 -0
  986. package/dist/domain/domain-context/domain-context-systems.d.ts +7 -7
  987. package/dist/domain/domain-context/index.d.ts +8 -18
  988. package/dist/domain/domain-context/index.js +1 -1
  989. package/dist/domain/domain-context/navigation-system/index.d.ts +3 -0
  990. package/dist/domain/domain-context/navigation-system/index.js +1 -0
  991. package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +2 -3
  992. package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
  993. package/dist/domain/domain-context/navigation-system/selection-transformers.d.ts +1 -1
  994. package/dist/domain/domain-context/recipe-system/index.d.ts +1 -0
  995. package/dist/domain/domain-context/recipe-system/index.js +1 -0
  996. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.d.ts +2 -3
  997. package/dist/domain/domain-context/recipe-system/recipe-cooker-system.js +1 -1
  998. package/dist/domain/domain-context/relation-transformers/cascade-deletes.d.ts +2 -2
  999. package/dist/domain/domain-context/relation-transformers/cascade-ref-pruning.d.ts +2 -2
  1000. package/dist/domain/domain-context/relation-transformers/cascade-ref-pruning.js +1 -1
  1001. package/dist/domain/domain-context/relation-transformers/create-entity-refs.d.ts +2 -2
  1002. package/dist/domain/domain-context/relation-transformers/create-entity-refs.js +2 -2
  1003. package/dist/domain/domain-context/relation-transformers/index.d.ts +4 -0
  1004. package/dist/domain/domain-context/relation-transformers/index.js +1 -0
  1005. package/dist/domain/domain-context/relation-transformers/replace-refs.d.ts +2 -2
  1006. package/dist/domain/domain-context/relation-transformers/replace-refs.js +1 -1
  1007. package/dist/domain/domain-context/store-system/index.d.ts +4 -0
  1008. package/dist/domain/domain-context/store-system/index.js +1 -0
  1009. package/dist/domain/domain-context/store-system/reconcile-projected-entities.js +1 -1
  1010. package/dist/domain/domain-context/store-system/store-system.d.ts +7 -36
  1011. package/dist/domain/domain-context/store-system/store-system.js +2 -2
  1012. package/dist/domain/domain-context/store-system/system-state.d.ts +1 -1
  1013. package/dist/domain/domain-context/transformers/actions-builder.js +1 -1
  1014. package/dist/domain/domain-context/transformers/auto-snap-transformer.d.ts +5 -7
  1015. package/dist/domain/domain-context/transformers/auto-snap-transformer.js +1 -1
  1016. package/dist/domain/domain-context/transformers/chain-builder.d.ts +1 -1
  1017. package/dist/domain/domain-context/transformers/context.d.ts +2 -4
  1018. package/dist/domain/domain-context/transformers/context.js +1 -1
  1019. package/dist/domain/domain-context/transformers/entity-builder.d.ts +1 -2
  1020. package/dist/domain/domain-context/transformers/entity-builder.js +1 -1
  1021. package/dist/domain/domain-context/transformers/index.d.ts +1 -1
  1022. package/dist/domain/domain-context/transformers/index.js +1 -1
  1023. package/dist/domain/domain-context/transformers/then-builder.d.ts +1 -2
  1024. package/dist/domain/domain-context/transformers/when-builder.d.ts +2 -3
  1025. package/dist/domain/domain-context/transformers/when-builder.js +1 -1
  1026. package/dist/domain/domain-context/undo-system.d.ts +29 -3
  1027. package/dist/domain/domain-context/undo-system.js +1 -1
  1028. package/dist/domain/domain-runtime/access/selectors.d.ts +9 -0
  1029. package/dist/domain/domain-runtime/access/selectors.js +1 -1
  1030. package/dist/domain/domain-runtime/access/types.d.ts +2 -0
  1031. package/dist/domain/domain-runtime/access/types.js +1 -1
  1032. package/dist/domain/domain-runtime/application.d.ts +39 -0
  1033. package/dist/domain/domain-runtime/application.js +1 -0
  1034. package/dist/domain/domain-runtime/domain-context/action-context.d.ts +11 -0
  1035. package/dist/domain/domain-runtime/domain-context/action-context.js +1 -0
  1036. package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
  1037. package/dist/domain/domain-runtime/domain-context/expression-context.d.ts +8 -0
  1038. package/dist/domain/domain-runtime/domain-context/expression-context.js +1 -0
  1039. package/dist/domain/domain-runtime/domain-context/index.d.ts +3 -0
  1040. package/dist/domain/domain-runtime/domain-context/runtime-expression-context.d.ts +18 -0
  1041. package/dist/domain/domain-runtime/domain-context/runtime-expression-context.js +1 -0
  1042. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +20 -23
  1043. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  1044. package/dist/domain/domain-runtime/domain-context/types.d.ts +4 -1
  1045. package/dist/domain/domain-runtime/domain-runtime.d.ts +128 -72
  1046. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  1047. package/dist/domain/domain-runtime/environment/initialize.d.ts +1 -1
  1048. package/dist/domain/domain-runtime/environment/types.d.ts +1 -1
  1049. package/dist/domain/domain-runtime/errors/implementation-error-collector.d.ts +21 -0
  1050. package/dist/domain/domain-runtime/errors/implementation-error-collector.js +1 -0
  1051. package/dist/domain/domain-runtime/errors/implementation-error.d.ts +46 -0
  1052. package/dist/domain/domain-runtime/errors/implementation-error.js +1 -0
  1053. package/dist/domain/domain-runtime/errors/implementation-errors.d.ts +13 -0
  1054. package/dist/domain/domain-runtime/errors/implementation-errors.js +1 -0
  1055. package/dist/domain/domain-runtime/errors/index.d.ts +4 -0
  1056. package/dist/domain/domain-runtime/errors/index.js +1 -0
  1057. package/dist/domain/domain-runtime/errors/to-implementation-errors.d.ts +10 -0
  1058. package/dist/domain/domain-runtime/errors/to-implementation-errors.js +1 -0
  1059. package/dist/domain/domain-runtime/index.d.ts +2 -0
  1060. package/dist/domain/domain-runtime/index.js +1 -1
  1061. package/dist/domain/domain-runtime/spec/create-violation-expressions.d.ts +24 -0
  1062. package/dist/domain/domain-runtime/spec/create-violation-expressions.js +1 -0
  1063. package/dist/domain/domain-runtime/spec/index.d.ts +5 -0
  1064. package/dist/domain/domain-runtime/spec/index.js +1 -1
  1065. package/dist/domain/domain-runtime/spec/initialize.d.ts +11 -0
  1066. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  1067. package/dist/domain/domain-runtime/spec/memoize-expression.d.ts +16 -0
  1068. package/dist/domain/domain-runtime/spec/module-checks/element-registration.d.ts +125 -0
  1069. package/dist/domain/domain-runtime/spec/module-checks/element-registration.js +1 -0
  1070. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.d.ts +12 -0
  1071. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.js +1 -0
  1072. package/dist/domain/domain-runtime/spec/module-checks/handler-registration.d.ts +34 -0
  1073. package/dist/domain/domain-runtime/spec/module-checks/handler-registration.js +1 -0
  1074. package/dist/domain/domain-runtime/spec/module-checks/index.d.ts +10 -0
  1075. package/dist/domain/domain-runtime/spec/module-checks/index.js +1 -0
  1076. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.d.ts +23 -0
  1077. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.js +1 -0
  1078. package/dist/domain/domain-runtime/spec/module-checks/project-modules.d.ts +32 -0
  1079. package/dist/domain/domain-runtime/spec/module-checks/project-modules.js +1 -0
  1080. package/dist/domain/domain-runtime/spec/module-checks/resolve-action-modules.d.ts +4 -0
  1081. package/dist/domain/domain-runtime/spec/module-checks/resolve-action-modules.js +1 -0
  1082. package/dist/domain/domain-runtime/spec/module-checks/resolve-component-optic-modules.d.ts +4 -0
  1083. package/dist/domain/domain-runtime/spec/module-checks/resolve-component-optic-modules.js +1 -0
  1084. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.d.ts +14 -0
  1085. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.js +1 -0
  1086. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.d.ts +22 -0
  1087. package/dist/domain/domain-runtime/spec/module-checks/resolve-imported-transformers.js +1 -0
  1088. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.d.ts +6 -0
  1089. package/dist/domain/domain-runtime/spec/module-checks/resolve-invariant-modules.js +1 -0
  1090. package/dist/domain/domain-runtime/spec/prepare-action-implementations.d.ts +15 -0
  1091. package/dist/domain/domain-runtime/spec/prepare-action-implementations.js +5 -0
  1092. package/dist/domain/domain-runtime/spec/prepare-domain-expressions.d.ts +16 -0
  1093. package/dist/domain/domain-runtime/spec/selectors.d.ts +8 -7
  1094. package/dist/domain/domain-runtime/spec/selectors.js +1 -1
  1095. package/dist/domain/domain-runtime/spec/types.d.ts +5 -2
  1096. package/dist/domain/domain-runtime/web-component/actions.d.ts +3 -0
  1097. package/dist/domain/domain-runtime/web-component/actions.js +1 -1
  1098. package/dist/domain/domain-runtime/web-component/initialize.d.ts +1 -0
  1099. package/dist/domain/domain-runtime/web-component/initialize.js +1 -1
  1100. package/dist/domain/domain-runtime/web-component/selectors.d.ts +2 -0
  1101. package/dist/domain/domain-runtime/web-component/selectors.js +1 -1
  1102. package/dist/domain/domain-runtime/web-component/types.d.ts +6 -3
  1103. package/dist/domain/extensions/attribute-switch.d.ts +8 -0
  1104. package/dist/domain/extensions/attribute-switch.js +1 -0
  1105. package/dist/domain/extensions/canvas-config.d.ts +87 -0
  1106. package/dist/domain/extensions/child-entity-recipe-hierarchy.d.ts +21 -0
  1107. package/dist/domain/extensions/child-entity-recipe-hierarchy.js +1 -0
  1108. package/dist/domain/extensions/common/angle-indicator-schema.d.ts +292 -0
  1109. package/dist/domain/extensions/common/angle-indicator-schema.js +1 -0
  1110. package/dist/domain/extensions/common/dimension-indicator-schema.d.ts +607 -0
  1111. package/dist/domain/extensions/common/index.d.ts +4 -0
  1112. package/dist/domain/extensions/common/index.js +1 -0
  1113. package/dist/domain/extensions/custom-header.d.ts +11 -0
  1114. package/dist/domain/extensions/custom-header.js +1 -0
  1115. package/dist/domain/extensions/custom-price-footer.js +1 -0
  1116. package/dist/domain/extensions/custom-sidebar-footer.d.ts +11 -0
  1117. package/dist/domain/extensions/custom-sidebar-footer.js +1 -0
  1118. package/dist/domain/extensions/editable-angle-indicator.d.ts +39 -0
  1119. package/dist/domain/extensions/editable-angle-indicator.js +1 -0
  1120. package/dist/domain/extensions/editable-distance-dimension-indicator.d.ts +43 -0
  1121. package/dist/domain/extensions/editable-distance-dimension-indicator.js +1 -0
  1122. package/dist/domain/extensions/editable-offset-indicator.d.ts +42 -0
  1123. package/dist/domain/extensions/editable-offset-indicator.js +1 -0
  1124. package/dist/domain/extensions/editable-size-indicator.d.ts +39 -0
  1125. package/dist/domain/extensions/editable-size-indicator.js +1 -0
  1126. package/dist/domain/extensions/entity-header.d.ts +22 -0
  1127. package/dist/domain/extensions/entity-header.js +1 -0
  1128. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +30 -0
  1129. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -0
  1130. package/dist/domain/extensions/export-images/client-side-image.d.ts +14 -0
  1131. package/dist/domain/extensions/export-images/client-side-image.js +1 -0
  1132. package/dist/domain/extensions/export-images/index.d.ts +3 -0
  1133. package/dist/domain/extensions/export-images/index.js +1 -0
  1134. package/dist/domain/extensions/export-images/save-template-thumbnail.d.ts +14 -0
  1135. package/dist/domain/extensions/export-images/save-template-thumbnail.js +1 -0
  1136. package/dist/domain/extensions/finalize-component.js +1 -0
  1137. package/dist/domain/extensions/fit-selection-orthographic-camera-component.js +1 -0
  1138. package/dist/domain/extensions/fit-selection-perspective-camera-component.js +1 -0
  1139. package/dist/domain/extensions/horizontal-tabs.d.ts +28 -0
  1140. package/dist/domain/extensions/index.d.ts +68 -0
  1141. package/dist/domain/extensions/index.js +1 -0
  1142. package/dist/domain/extensions/list-selector-dimension-indicator.d.ts +31 -0
  1143. package/dist/domain/extensions/list-selector-dimension-indicator.js +1 -0
  1144. package/dist/domain/extensions/navigation-steps.d.ts +19 -0
  1145. package/dist/domain/extensions/offset-indicator.js +1 -0
  1146. package/dist/domain/extensions/property-page.d.ts +16 -0
  1147. package/dist/domain/extensions/property-page.js +1 -0
  1148. package/dist/domain/extensions/replace-entity-recipe-hierarchy.d.ts +21 -0
  1149. package/dist/domain/extensions/replace-entity-recipe-hierarchy.js +1 -0
  1150. package/dist/domain/extensions/rotation-handle.d.ts +53 -0
  1151. package/dist/domain/extensions/scene-entity-add-fab.d.ts +32 -0
  1152. package/dist/domain/extensions/scene-entity-add-fab.js +1 -0
  1153. package/dist/domain/extensions/scene-entity-animation.js +1 -0
  1154. package/dist/domain/extensions/scene-entity-delete-fab.d.ts +19 -0
  1155. package/dist/domain/extensions/scene-entity-delete-fab.js +1 -0
  1156. package/dist/domain/extensions/scene-entity-html-hotspot.d.ts +27 -0
  1157. package/dist/domain/extensions/scene-entity-html-hotspot.js +1 -0
  1158. package/dist/domain/extensions/scene-entity-navigation-hotspot.d.ts +20 -0
  1159. package/dist/domain/extensions/scene-entity-navigation-hotspot.js +1 -0
  1160. package/dist/domain/extensions/scene-entity-object-html-hotspot.d.ts +31 -0
  1161. package/dist/domain/extensions/scene-entity-object-html-hotspot.js +1 -0
  1162. package/dist/domain/extensions/scene-entity-select-hotspot.d.ts +5 -0
  1163. package/dist/domain/extensions/scene-entity-select-hotspot.js +1 -0
  1164. package/dist/domain/extensions/sketching-edit.d.ts +28 -0
  1165. package/dist/domain/extensions/sketching-edit.js +1 -0
  1166. package/dist/domain/extensions/summary-component.js +1 -0
  1167. package/dist/domain/extensions/tool-menu-fab.d.ts +40 -0
  1168. package/dist/domain/extensions/tool-menu-fab.js +1 -0
  1169. package/dist/domain/extensions/toolbar.d.ts +13 -0
  1170. package/dist/domain/extensions/toolbar.js +1 -0
  1171. package/dist/domain/index.d.ts +4 -15
  1172. package/dist/domain/index.js +1 -1
  1173. package/dist/domain/mocks/create-mock-domain-context.d.ts +1 -1
  1174. package/dist/domain/mocks/create-mock-domain-runtime-services.d.ts +1 -1
  1175. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +37 -19
  1176. package/dist/domain/mocks/create-mock-domain-runtime.js +1 -1
  1177. package/dist/domain/mocks/create-mock-domain.d.ts +1 -1
  1178. package/dist/domain/mocks/create-mock-domain.js +1 -1
  1179. package/dist/domain/mocks/create-mock-state.d.ts +2 -2
  1180. package/dist/domain/mocks/create-test-application-config.d.ts +59 -0
  1181. package/dist/domain/mocks/create-test-application-config.js +1 -0
  1182. package/dist/domain/mocks/index.d.ts +1 -0
  1183. package/dist/domain/mocks/index.js +1 -1
  1184. package/dist/domain/projections/blender-projections/blender-projections.d.ts +1 -2
  1185. package/dist/domain/projections/blender-projections/camera.d.ts +2 -2
  1186. package/dist/domain/projections/collision-projections.d.ts +1 -1
  1187. package/dist/domain/projections/composition-projections.d.ts +1 -1
  1188. package/dist/domain/projections/composition-projections.js +1 -1
  1189. package/dist/domain/projections/constraint-projections.d.ts +1 -1
  1190. package/dist/domain/projections/index.d.ts +1 -1
  1191. package/dist/domain/projections/position-projections.d.ts +1 -1
  1192. package/dist/domain/projections/projected-entities-projections.d.ts +1 -1
  1193. package/dist/domain/projections/snapping-projections.d.ts +1 -1
  1194. package/dist/domain/projections/validation-projections.d.ts +3 -20
  1195. package/dist/domain/projections/validation-projections.js +1 -1
  1196. package/dist/domain/sketching/sketching-projections.d.ts +1 -1
  1197. package/dist/domain/spec/application/admin-pages-section.d.ts +29 -0
  1198. package/dist/domain/spec/application/admin-pages-section.js +1 -0
  1199. package/dist/domain/spec/application/admin-pages.d.ts +26 -0
  1200. package/dist/domain/spec/application/admin-pages.js +1 -0
  1201. package/dist/domain/spec/application/admin-states.d.ts +5 -0
  1202. package/dist/domain/spec/application/admin-states.js +1 -0
  1203. package/dist/domain/spec/application/configurator-states.d.ts +8 -0
  1204. package/dist/domain/spec/application/configurator-states.js +1 -0
  1205. package/dist/domain/spec/application/index.d.ts +5 -0
  1206. package/dist/domain/spec/application/index.js +1 -0
  1207. package/dist/domain/spec/components/bindings/index.d.ts +2 -0
  1208. package/dist/domain/spec/components/bindings/index.js +1 -0
  1209. package/dist/domain/spec/components/bindings/read-binding.d.ts +13 -0
  1210. package/dist/domain/spec/components/bindings/read-binding.js +1 -0
  1211. package/dist/domain/spec/components/bindings/write-binding.d.ts +32 -0
  1212. package/dist/domain/spec/components/bindings/write-binding.js +1 -0
  1213. package/dist/domain/spec/components/component-entry.d.ts +90 -0
  1214. package/dist/domain/spec/components/component-entry.js +1 -0
  1215. package/dist/domain/spec/components/component-filter.d.ts +54 -0
  1216. package/dist/domain/spec/components/component-filter.js +1 -0
  1217. package/dist/domain/spec/components/component-filters.d.ts +10 -0
  1218. package/dist/domain/spec/components/component-filters.js +1 -0
  1219. package/dist/domain/spec/components/components.d.ts +4 -0
  1220. package/dist/domain/spec/components/components.js +1 -0
  1221. package/dist/domain/spec/components/index.d.ts +6 -0
  1222. package/dist/domain/spec/components/index.js +1 -0
  1223. package/dist/domain/spec/components/sdk-code-ref.d.ts +9 -0
  1224. package/dist/domain/spec/enhanced-json/enhanced-json-value.d.ts +30 -0
  1225. package/dist/domain/spec/enhanced-json/enhanced-json-value.js +1 -0
  1226. package/dist/domain/spec/enhanced-json/index.d.ts +1 -0
  1227. package/dist/domain/spec/enhanced-json/index.js +1 -0
  1228. package/dist/domain/spec/expressions/expression.d.ts +49 -0
  1229. package/dist/domain/spec/expressions/expression.js +1 -0
  1230. package/dist/domain/spec/expressions/expressions.d.ts +27 -0
  1231. package/dist/domain/spec/expressions/expressions.js +1 -0
  1232. package/dist/domain/spec/expressions/index.d.ts +5 -0
  1233. package/dist/domain/spec/expressions/index.js +1 -0
  1234. package/dist/domain/spec/expressions/memo-eval-plan.d.ts +70 -0
  1235. package/dist/domain/spec/expressions/memo-eval-plan.js +1 -0
  1236. package/dist/domain/spec/expressions/relation-expression-params.d.ts +11 -0
  1237. package/dist/domain/spec/expressions/relation-expression-params.js +1 -0
  1238. package/dist/domain/spec/expressions/sdk-expression-implementation.d.ts +24 -0
  1239. package/dist/domain/spec/index.d.ts +9 -0
  1240. package/dist/domain/spec/index.js +1 -0
  1241. package/dist/domain/spec/invariants/index.d.ts +2 -0
  1242. package/dist/domain/spec/invariants/index.js +1 -0
  1243. package/dist/domain/spec/invariants/invariant.d.ts +24 -0
  1244. package/dist/domain/spec/invariants/invariant.js +1 -0
  1245. package/dist/domain/spec/invariants/invariants.d.ts +14 -0
  1246. package/dist/domain/spec/invariants/invariants.js +1 -0
  1247. package/dist/domain/spec/json-schema.d.ts +52 -0
  1248. package/dist/domain/spec/json-schema.js +1 -0
  1249. package/dist/domain/spec/markers/index.d.ts +3 -0
  1250. package/dist/domain/spec/markers/index.js +1 -0
  1251. package/dist/domain/spec/markers/msg-marker.d.ts +28 -0
  1252. package/dist/domain/spec/markers/msg-marker.js +1 -0
  1253. package/dist/domain/spec/model/aliases.d.ts +9 -0
  1254. package/dist/domain/spec/model/aliases.js +1 -0
  1255. package/dist/domain/spec/model/common-types.d.ts +15 -0
  1256. package/dist/domain/spec/model/common-types.js +1 -0
  1257. package/dist/domain/spec/model/defaults.d.ts +33 -0
  1258. package/dist/domain/spec/model/defaults.js +1 -0
  1259. package/dist/domain/spec/model/entity-types.d.ts +8 -0
  1260. package/dist/domain/spec/model/entity-types.js +1 -0
  1261. package/dist/domain/spec/model/index.d.ts +7 -0
  1262. package/dist/domain/spec/model/index.js +1 -0
  1263. package/dist/domain/spec/model/model-version-key.d.ts +3 -0
  1264. package/dist/domain/spec/model/model-version-key.js +1 -0
  1265. package/dist/domain/spec/model/names/action-name.d.ts +7 -0
  1266. package/dist/domain/spec/model/names/action-name.js +1 -0
  1267. package/dist/domain/spec/model/names/alias-name.d.ts +7 -0
  1268. package/dist/domain/spec/model/names/alias-name.js +1 -0
  1269. package/dist/domain/spec/model/names/entity-or-alias-name.d.ts +8 -0
  1270. package/dist/domain/spec/model/names/entity-or-alias-name.js +1 -0
  1271. package/dist/domain/spec/model/names/entity-type-name.d.ts +8 -0
  1272. package/dist/domain/spec/model/names/entity-type-name.js +1 -0
  1273. package/dist/domain/spec/model/names/expression-name.d.ts +6 -0
  1274. package/dist/domain/spec/model/names/expression-name.js +1 -0
  1275. package/dist/domain/spec/model/names/index.d.ts +9 -0
  1276. package/dist/domain/spec/model/names/index.js +1 -0
  1277. package/dist/domain/spec/model/names/instance-name.d.ts +7 -0
  1278. package/dist/domain/spec/model/names/instance-name.js +1 -0
  1279. package/dist/domain/spec/model/names/invariant-name.d.ts +3 -0
  1280. package/dist/domain/spec/model/names/invariant-name.js +1 -0
  1281. package/dist/domain/spec/model/names/shape-property-name.d.ts +11 -0
  1282. package/dist/domain/spec/model/names/shape-property-name.js +1 -0
  1283. package/dist/domain/spec/model/names/violation-type-name.d.ts +3 -0
  1284. package/dist/domain/spec/model/names/violation-type-name.js +1 -0
  1285. package/dist/domain/spec/model/presets.d.ts +30 -0
  1286. package/dist/domain/spec/model/presets.js +1 -0
  1287. package/dist/domain/spec/sections/actions.d.ts +23 -0
  1288. package/dist/domain/spec/sections/actions.js +1 -0
  1289. package/dist/domain/spec/sections/app-metadata.d.ts +18 -0
  1290. package/dist/domain/spec/sections/app-metadata.js +1 -0
  1291. package/dist/domain/spec/sections/application-version.d.ts +7 -0
  1292. package/dist/domain/spec/sections/application-version.js +1 -0
  1293. package/dist/domain/spec/sections/data-spec/chunks.d.ts +23 -0
  1294. package/dist/domain/spec/sections/data-spec/chunks.js +1 -0
  1295. package/dist/domain/spec/sections/data-spec/custom-data-spec-entry.d.ts +16 -0
  1296. package/dist/domain/spec/sections/data-spec/custom-data-spec-entry.js +1 -0
  1297. package/dist/domain/spec/sections/data-spec/data-entry-key.d.ts +9 -0
  1298. package/dist/domain/spec/sections/data-spec/data-entry-key.js +1 -0
  1299. package/dist/domain/spec/sections/data-spec/index.d.ts +5 -0
  1300. package/dist/domain/spec/sections/data-spec/index.js +1 -0
  1301. package/dist/domain/spec/sections/data-spec/parsed-data-spec-entries.d.ts +10 -0
  1302. package/dist/domain/spec/sections/data-spec/parsed-data-spec-entries.js +1 -0
  1303. package/dist/domain/spec/sections/data-spec/swatch-data-spec-entry.d.ts +14 -0
  1304. package/dist/domain/spec/sections/data-spec/swatch-data-spec-entry.js +1 -0
  1305. package/dist/domain/spec/sections/index.d.ts +9 -0
  1306. package/dist/domain/spec/sections/index.js +1 -0
  1307. package/dist/domain/spec/sections/infra/acl.d.ts +12 -0
  1308. package/dist/domain/spec/sections/infra/acl.js +1 -0
  1309. package/dist/domain/spec/sections/infra/index.d.ts +3 -0
  1310. package/dist/domain/spec/sections/infra/index.js +1 -0
  1311. package/dist/domain/spec/sections/infra/resource-entry.d.ts +46 -0
  1312. package/dist/domain/spec/sections/infra/resource-entry.js +1 -0
  1313. package/dist/domain/spec/sections/infra/resources-config.d.ts +10 -0
  1314. package/dist/domain/spec/sections/infra/resources-config.js +1 -0
  1315. package/dist/domain/spec/sections/state-value.d.ts +7 -0
  1316. package/dist/domain/spec/sections/state-value.js +1 -0
  1317. package/dist/domain/spec/sections/theme.d.ts +10 -0
  1318. package/dist/domain/spec/sections/theme.js +1 -0
  1319. package/dist/domain/spec/sections/transformers.d.ts +15 -0
  1320. package/dist/domain/spec/sections/transformers.js +1 -0
  1321. package/dist/domain/spec/sections/ui.d.ts +12 -0
  1322. package/dist/domain/spec/sections/ui.js +1 -0
  1323. package/dist/domain/system-components/application-config.d.ts +2 -2
  1324. package/dist/domain/system-components/child-entity-selection.d.ts +1 -2
  1325. package/dist/domain/system-components/child-entity-selection.js +1 -1
  1326. package/dist/domain/system-components/collision-box-geometry.d.ts +4 -2
  1327. package/dist/domain/system-components/collision-geometry.d.ts +4 -2
  1328. package/dist/domain/system-components/collision-point-geometry.d.ts +4 -2
  1329. package/dist/domain/system-components/common/index.d.ts +0 -4
  1330. package/dist/domain/system-components/common/index.js +1 -1
  1331. package/dist/domain/system-components/common/material-override-schema.d.ts +2 -2
  1332. package/dist/domain/system-components/common/recipes.d.ts +21 -4
  1333. package/dist/domain/system-components/common/recipes.js +1 -1
  1334. package/dist/domain/system-components/common/scene-entity-control-schema.d.ts +3 -0
  1335. package/dist/domain/system-components/common/scene-entity-control-schema.js +1 -1
  1336. package/dist/domain/system-components/constraint.d.ts +10 -23
  1337. package/dist/domain/system-components/drag-handle.d.ts +1 -1
  1338. package/dist/domain/system-components/drag-handle.js +1 -1
  1339. package/dist/domain/system-components/fit-entity-orthographic-camera-component.js +1 -1
  1340. package/dist/domain/system-components/fit-entity-perspective-camera-component.js +1 -1
  1341. package/dist/domain/system-components/fit-root-orthographic-camera-component.js +1 -1
  1342. package/dist/domain/system-components/fit-root-perspective-camera-component.js +1 -1
  1343. package/dist/domain/system-components/hotspot-drag-handle.d.ts +1 -1
  1344. package/dist/domain/system-components/hotspot-drag-handle.js +1 -1
  1345. package/dist/domain/system-components/index.d.ts +0 -68
  1346. package/dist/domain/system-components/index.js +1 -1
  1347. package/dist/domain/system-components/material-swatch.js +1 -1
  1348. package/dist/domain/system-components/phoenix-entity-elements/admin-data-table-sidebar.d.ts +1 -1
  1349. package/dist/domain/system-components/phoenix-layout-elements/admin-connected-resource-page.d.ts +1 -1
  1350. package/dist/domain/system-components/phoenix-layout-elements/admin-data-table-actions.d.ts +1 -1
  1351. package/dist/domain/system-components/phoenix-layout-elements/admin-data-table-page.d.ts +1 -1
  1352. package/dist/domain/system-components/scene-entity-material-override.d.ts +1 -1
  1353. package/dist/domain/system-components/scene-entity-object-material-override.d.ts +1 -1
  1354. package/dist/domain/system-components/scene-entity-object-text-decal.d.ts +1 -1
  1355. package/dist/domain/system-components/scene-entity-object-transimissive-material-override.d.ts +1 -1
  1356. package/dist/domain/system-components/scene-entity-transimissive-material-override.d.ts +1 -1
  1357. package/dist/domain/system-components/static-orthographic-camera-component.js +1 -1
  1358. package/dist/domain/system-components/static-perspective-camera-component.js +1 -1
  1359. package/dist/domain/system-definitions.js +1 -1
  1360. package/dist/domain/utils/eval-cache.d.ts +1 -1
  1361. package/dist/domain/utils/index.d.ts +2 -0
  1362. package/dist/domain/utils/index.js +1 -0
  1363. package/dist/domain/utils/map-nested-object.d.ts +1 -1
  1364. package/dist/domain/utils/memo-eval.d.ts +2 -2
  1365. package/dist/editor/Editor.d.ts +7 -0
  1366. package/dist/editor/Editor.js +1 -1
  1367. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  1368. package/dist/editor/domain-editors/apply-spec-update.d.ts +10 -2
  1369. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  1370. package/dist/editor/domain-editors/use-implementation-files.d.ts +7 -16
  1371. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  1372. package/dist/editor/graphql/GraphQLPanel.js +1 -1
  1373. package/dist/editor/mocks/CreateMockYaml.js +2 -2
  1374. package/dist/editor/mocks/EditorMockContext.d.ts +2 -0
  1375. package/dist/editor/mocks/EditorMockContext.js +1 -1
  1376. package/dist/editor/screenshot/ScreenshotHandler.js +1 -1
  1377. package/dist/globals/index.d.ts +2 -0
  1378. package/dist/i18n/locales/cs/messages.js +1 -1
  1379. package/dist/i18n/locales/da/messages.js +1 -1
  1380. package/dist/i18n/locales/de/messages.js +1 -1
  1381. package/dist/i18n/locales/de-AT/messages.js +1 -1
  1382. package/dist/i18n/locales/en/messages.js +1 -1
  1383. package/dist/i18n/locales/en-AU/messages.js +1 -1
  1384. package/dist/i18n/locales/en-GB/messages.js +1 -1
  1385. package/dist/i18n/locales/es/messages.js +1 -1
  1386. package/dist/i18n/locales/fr/messages.js +1 -1
  1387. package/dist/i18n/locales/hu/messages.js +1 -1
  1388. package/dist/i18n/locales/it/messages.js +1 -1
  1389. package/dist/i18n/locales/nl/messages.js +1 -1
  1390. package/dist/i18n/locales/pl/messages.js +1 -1
  1391. package/dist/i18n/locales/pt/messages.js +1 -1
  1392. package/dist/i18n/locales/ro/messages.js +1 -1
  1393. package/dist/i18n/locales/sk/messages.js +1 -1
  1394. package/dist/i18n/locales/tr/messages.js +1 -1
  1395. package/dist/legacy/domain-cli/gen/configurator-builder.js +13 -12
  1396. package/dist/legacy/domain-cli/gen/constant-expressions.js +1 -3
  1397. package/dist/legacy/domain-cli/gen/defaults.js +1 -7
  1398. package/dist/legacy/domain-cli/gen/implementation.js +7 -11
  1399. package/dist/legacy/domain-cli/gen/invariants.js +7 -6
  1400. package/dist/legacy/domain-cli/gen/relations.js +1 -1
  1401. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  1402. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  1403. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +176 -148
  1404. package/dist/legacy/domain-spec/spec/domain-spec.js +1 -1
  1405. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/claude-md.d.ts +1 -1
  1406. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/cursor-rules.d.ts +1 -1
  1407. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.d.ts +1 -1
  1408. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.js +13 -0
  1409. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/domain-index.js +17 -15
  1410. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/env-example.d.ts +1 -1
  1411. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/env-example.js +4 -0
  1412. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-admin.js +15 -14
  1413. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-configurator.js +14 -12
  1414. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-admin.js +14 -13
  1415. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-configurator.js +13 -11
  1416. package/dist/phoenix/application-spec/application-spec-builder.d.ts +0 -2
  1417. package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
  1418. package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +1 -2
  1419. package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
  1420. package/dist/phoenix/application-spec/generate-application-spec-story.js +2 -2
  1421. package/dist/phoenix/application-spec/generate-project-files.d.ts +1 -2
  1422. package/dist/phoenix/application-spec/index.d.ts +1 -0
  1423. package/dist/phoenix/application-spec/index.js +1 -1
  1424. package/dist/phoenix/application-spec/project-files.js +1 -1
  1425. package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +11 -0
  1426. package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
  1427. package/dist/phoenix/bin.d.ts +2 -0
  1428. package/dist/phoenix/bin.js +2 -0
  1429. package/dist/phoenix/check-configs/built-in-eslint-config.d.ts +9 -0
  1430. package/dist/phoenix/check-configs/built-in-eslint-config.js +1 -0
  1431. package/dist/phoenix/check-configs/eslint-config.d.ts +10 -0
  1432. package/dist/phoenix/check-configs/eslint-config.js +1 -0
  1433. package/dist/phoenix/check-configs/index.d.ts +8 -0
  1434. package/dist/phoenix/check-configs/index.js +1 -0
  1435. package/dist/phoenix/check-configs/typescript-project.d.ts +5 -0
  1436. package/dist/phoenix/check-configs/typescript-project.js +1 -0
  1437. package/dist/phoenix/cli.d.ts +0 -1
  1438. package/dist/phoenix/cli.js +1 -2
  1439. package/dist/phoenix/commands/activate-deployment.js +1 -1
  1440. package/dist/phoenix/commands/build.js +1 -1
  1441. package/dist/phoenix/commands/changelog.js +1 -1
  1442. package/dist/phoenix/commands/check.js +1 -1
  1443. package/dist/phoenix/commands/clean.js +1 -1
  1444. package/dist/phoenix/commands/cleanup-environment.js +2 -2
  1445. package/dist/phoenix/commands/create-environment.js +1 -1
  1446. package/dist/phoenix/commands/data.js +1 -1
  1447. package/dist/phoenix/commands/deploy.js +2 -2
  1448. package/dist/phoenix/commands/deployment-build-envs-command.js +1 -1
  1449. package/dist/phoenix/commands/deps/deps.d.ts +73 -0
  1450. package/dist/phoenix/commands/deps/deps.js +3 -0
  1451. package/dist/phoenix/commands/deps/index.d.ts +1 -0
  1452. package/dist/phoenix/commands/deps/index.js +1 -0
  1453. package/dist/phoenix/commands/deps/sdk-manifest.d.ts +12 -0
  1454. package/dist/phoenix/commands/deps/sdk-manifest.js +1 -0
  1455. package/dist/phoenix/commands/dev.js +5 -5
  1456. package/dist/phoenix/commands/docs.js +1 -1
  1457. package/dist/phoenix/commands/finish-deployment-command.js +1 -1
  1458. package/dist/phoenix/commands/fix.js +1 -1
  1459. package/dist/phoenix/commands/generated-env-markers.d.ts +1 -0
  1460. package/dist/phoenix/commands/generated-env-markers.js +1 -1
  1461. package/dist/phoenix/commands/index.d.ts +1 -0
  1462. package/dist/phoenix/commands/index.js +1 -1
  1463. package/dist/phoenix/commands/init.d.ts +17 -5
  1464. package/dist/phoenix/commands/init.js +1 -1
  1465. package/dist/phoenix/commands/inspect-assets.js +1 -1
  1466. package/dist/phoenix/commands/link.js +1 -1
  1467. package/dist/phoenix/commands/list-environments.js +1 -1
  1468. package/dist/phoenix/commands/login.d.ts +4 -1
  1469. package/dist/phoenix/commands/login.js +2 -2
  1470. package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
  1471. package/dist/phoenix/commands/prettier.js +1 -1
  1472. package/dist/phoenix/commands/register-deployment.js +1 -1
  1473. package/dist/phoenix/commands/scene.js +1 -1
  1474. package/dist/phoenix/commands/screenshot.js +1 -1
  1475. package/dist/phoenix/commands/state.js +1 -1
  1476. package/dist/phoenix/commands/story-build.js +3 -3
  1477. package/dist/phoenix/commands/story-create.js +1 -1
  1478. package/dist/phoenix/commands/sync.js +1 -1
  1479. package/dist/phoenix/commands/unlink.js +1 -1
  1480. package/dist/phoenix/commands/variants.js +1 -1
  1481. package/dist/phoenix/lingui/index.d.ts +1 -0
  1482. package/dist/phoenix/lingui/index.js +1 -0
  1483. package/dist/phoenix/lingui/lingui.d.ts +18 -0
  1484. package/dist/phoenix/lingui/lingui.js +1 -0
  1485. package/dist/phoenix/scripts/build-admin.js +1 -1
  1486. package/dist/phoenix/services/application-spec-project-watcher.d.ts +5 -3
  1487. package/dist/phoenix/services/application-spec-project-watcher.js +3 -3
  1488. package/dist/phoenix/services/cli-credentials.d.ts +3 -0
  1489. package/dist/phoenix/services/cli-credentials.js +1 -1
  1490. package/dist/phoenix/services/cli-exit.d.ts +5 -0
  1491. package/dist/phoenix/services/cli-exit.js +1 -0
  1492. package/dist/phoenix/services/index.d.ts +3 -0
  1493. package/dist/phoenix/services/index.js +1 -1
  1494. package/dist/phoenix/services/lingui-watcher.js +1 -1
  1495. package/dist/phoenix/services/prepare-development-environment.js +1 -1
  1496. package/dist/phoenix/services/source-archive.d.ts +1 -0
  1497. package/dist/phoenix/services/source-archive.js +1 -1
  1498. package/dist/phoenix/services/swc.js +1 -1
  1499. package/dist/phoenix/services/telemetry/amplitude-telemetry-transport.d.ts +9 -0
  1500. package/dist/phoenix/services/telemetry/amplitude-telemetry-transport.js +1 -0
  1501. package/dist/phoenix/services/telemetry/index.d.ts +3 -0
  1502. package/dist/phoenix/services/telemetry/index.js +1 -0
  1503. package/dist/phoenix/services/telemetry/telemetry-client.d.ts +25 -0
  1504. package/dist/phoenix/services/telemetry/telemetry-client.js +1 -0
  1505. package/dist/phoenix/services/telemetry/telemetry-command.d.ts +2 -0
  1506. package/dist/phoenix/services/telemetry/telemetry-command.js +1 -0
  1507. package/dist/phoenix/services/telemetry/telemetry-event.d.ts +44 -0
  1508. package/dist/phoenix/services/telemetry/telemetry-event.js +1 -0
  1509. package/dist/phoenix/services/telemetry/telemetry-state.d.ts +25 -0
  1510. package/dist/phoenix/services/telemetry/telemetry-state.js +2 -0
  1511. package/dist/phoenix/services/vite-config.js +1 -1
  1512. package/dist/phoenix/utils/git/index.d.ts +1 -0
  1513. package/dist/phoenix/utils/git/index.js +1 -0
  1514. package/dist/phoenix/utils/git/is-inside-git-repository.d.ts +6 -0
  1515. package/dist/phoenix/utils/git/is-inside-git-repository.js +1 -0
  1516. package/dist/phoenix/utils/index.d.ts +5 -2
  1517. package/dist/phoenix/utils/index.js +1 -1
  1518. package/dist/phoenix/utils/node-version/index.d.ts +1 -0
  1519. package/dist/phoenix/utils/node-version/index.js +1 -0
  1520. package/dist/phoenix/utils/node-version/supported-node-version.d.ts +12 -0
  1521. package/dist/phoenix/utils/node-version/supported-node-version.js +4 -0
  1522. package/dist/phoenix/utils/package-info.d.ts +0 -9
  1523. package/dist/phoenix/utils/package-info.js +1 -1
  1524. package/dist/phoenix/utils/package-manager/index.d.ts +2 -0
  1525. package/dist/phoenix/utils/package-manager/index.js +1 -0
  1526. package/dist/phoenix/utils/package-manager/package-manager-commands.d.ts +19 -0
  1527. package/dist/phoenix/utils/package-manager/package-manager-commands.js +1 -0
  1528. package/dist/phoenix/utils/package-manager/pnpm-project.d.ts +9 -0
  1529. package/dist/phoenix/utils/package-manager/pnpm-project.js +1 -0
  1530. package/dist/phoenix/utils/run-command.d.ts +11 -0
  1531. package/dist/phoenix/utils/run-command.js +1 -1
  1532. package/dist/phoenix/utils/sdk-tool/index.d.ts +1 -0
  1533. package/dist/phoenix/utils/sdk-tool/index.js +1 -0
  1534. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.d.ts +15 -0
  1535. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.js +1 -0
  1536. package/dist/react-sdk/application-runtime/common-services/analytics/analytics-service.d.ts +1 -1
  1537. package/dist/react-sdk/application-runtime/common-services/analytics/frontend-analytics.d.ts +52 -0
  1538. package/dist/react-sdk/application-runtime/common-services/analytics/frontend-analytics.js +1 -0
  1539. package/dist/react-sdk/application-runtime/common-services/analytics/index.d.ts +1 -0
  1540. package/dist/react-sdk/application-runtime/common-services/analytics/index.js +1 -1
  1541. package/dist/react-sdk/application-runtime/common-services/initialize.d.ts +2 -2
  1542. package/dist/react-sdk/application-runtime/domain-application-context/chat-system.d.ts +1 -1
  1543. package/dist/react-sdk/application-runtime/hooks/index.d.ts +2 -0
  1544. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  1545. package/dist/react-sdk/application-runtime/hooks/loading/index.d.ts +5 -0
  1546. package/dist/react-sdk/application-runtime/hooks/loading/index.js +1 -0
  1547. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.d.ts +11 -0
  1548. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.js +1 -0
  1549. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.d.ts +8 -0
  1550. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.js +1 -0
  1551. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.d.ts +7 -0
  1552. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.js +1 -0
  1553. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.d.ts +9 -0
  1554. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.js +1 -0
  1555. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.d.ts +24 -0
  1556. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.js +1 -0
  1557. package/dist/react-sdk/application-runtime/hooks/responsive/index.d.ts +3 -0
  1558. package/dist/react-sdk/application-runtime/hooks/responsive/index.js +1 -0
  1559. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.d.ts +9 -0
  1560. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.js +1 -0
  1561. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +26 -0
  1562. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.js +1 -0
  1563. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.d.ts +10 -0
  1564. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.js +1 -0
  1565. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.d.ts +24 -0
  1566. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -0
  1567. package/dist/react-sdk/application-runtime/hooks/use-access-service.d.ts +7 -0
  1568. package/dist/react-sdk/application-runtime/hooks/use-access-service.js +1 -1
  1569. package/dist/react-sdk/application-runtime/hooks/use-phoenix-element-slots.d.ts +2 -1
  1570. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.d.ts +4 -11
  1571. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.js +1 -1
  1572. package/dist/react-sdk/application-runtime/hooks/use-web-component.d.ts +5 -0
  1573. package/dist/react-sdk/application-runtime/hooks/use-web-component.js +1 -1
  1574. package/dist/react-sdk/application-runtime/host-properties/actions.d.ts +15 -0
  1575. package/dist/react-sdk/application-runtime/host-properties/actions.js +1 -0
  1576. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.d.ts +30 -0
  1577. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.js +1 -0
  1578. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.d.ts +7 -0
  1579. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.js +1 -0
  1580. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.d.ts +21 -0
  1581. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.js +1 -0
  1582. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.d.ts +42 -0
  1583. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.js +1 -0
  1584. package/dist/react-sdk/application-runtime/host-properties/index.d.ts +8 -0
  1585. package/dist/react-sdk/application-runtime/host-properties/index.js +1 -0
  1586. package/dist/react-sdk/application-runtime/host-properties/initialize.d.ts +7 -0
  1587. package/dist/react-sdk/application-runtime/host-properties/initialize.js +1 -0
  1588. package/dist/react-sdk/application-runtime/host-properties/selectors.d.ts +54 -0
  1589. package/dist/react-sdk/application-runtime/host-properties/selectors.js +1 -0
  1590. package/dist/react-sdk/application-runtime/host-properties/types.d.ts +18 -0
  1591. package/dist/react-sdk/application-runtime/host-properties/types.js +1 -0
  1592. package/dist/react-sdk/application-runtime/index.d.ts +3 -0
  1593. package/dist/react-sdk/application-runtime/integration/initialize.d.ts +7 -6
  1594. package/dist/react-sdk/application-runtime/integration/initialize.js +1 -1
  1595. package/dist/react-sdk/application-runtime/integration/selectors.d.ts +11 -2
  1596. package/dist/react-sdk/application-runtime/integration/selectors.js +1 -1
  1597. package/dist/react-sdk/application-runtime/integration/types.d.ts +5 -2
  1598. package/dist/react-sdk/application-runtime/loading/actions.d.ts +45 -0
  1599. package/dist/react-sdk/application-runtime/loading/actions.js +1 -0
  1600. package/dist/react-sdk/application-runtime/loading/index.d.ts +4 -0
  1601. package/dist/react-sdk/application-runtime/loading/index.js +1 -0
  1602. package/dist/react-sdk/application-runtime/loading/initialize.d.ts +3 -0
  1603. package/dist/react-sdk/application-runtime/loading/initialize.js +1 -0
  1604. package/dist/react-sdk/application-runtime/loading/selectors.d.ts +18 -0
  1605. package/dist/react-sdk/application-runtime/loading/selectors.js +1 -0
  1606. package/dist/react-sdk/application-runtime/loading/types.d.ts +59 -0
  1607. package/dist/react-sdk/application-runtime/loading/types.js +1 -0
  1608. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  1609. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.d.ts +6 -0
  1610. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.js +1 -1
  1611. package/dist/react-sdk/application-runtime/provider/ApplicationType.d.ts +7 -0
  1612. package/dist/react-sdk/application-runtime/provider/ApplicationType.js +1 -1
  1613. package/dist/react-sdk/application-runtime/responsive/actions.d.ts +47 -0
  1614. package/dist/react-sdk/application-runtime/responsive/actions.js +1 -0
  1615. package/dist/react-sdk/application-runtime/responsive/index.d.ts +4 -0
  1616. package/dist/react-sdk/application-runtime/responsive/index.js +1 -0
  1617. package/dist/react-sdk/application-runtime/responsive/initialize.d.ts +3 -0
  1618. package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -0
  1619. package/dist/react-sdk/application-runtime/responsive/selectors.d.ts +20 -0
  1620. package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -0
  1621. package/dist/react-sdk/application-runtime/responsive/types.d.ts +104 -0
  1622. package/dist/react-sdk/application-runtime/responsive/types.js +1 -0
  1623. package/dist/react-sdk/application-runtime/routing/access-service.d.ts +1 -0
  1624. package/dist/react-sdk/application-runtime/routing/routing-service.d.ts +34 -2
  1625. package/dist/react-sdk/application-runtime/routing/routing-service.js +1 -1
  1626. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +366 -46
  1627. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  1628. package/dist/react-sdk/configurator-routing/ConfiguratorRoutingProvider.d.ts +11 -0
  1629. package/dist/react-sdk/configurator-routing/ConfiguratorRoutingProvider.js +1 -0
  1630. package/dist/react-sdk/configurator-routing/OnGoToIndexHandler.d.ts +9 -0
  1631. package/dist/react-sdk/configurator-routing/OnGoToIndexHandler.js +1 -0
  1632. package/dist/react-sdk/configurator-routing/index.d.ts +3 -0
  1633. package/dist/react-sdk/configurator-routing/index.js +1 -0
  1634. package/dist/react-sdk/configurator-routing/use-power-routing-lifecycle.d.ts +11 -0
  1635. package/dist/react-sdk/configurator-routing/use-power-routing-lifecycle.js +1 -0
  1636. package/dist/react-sdk/domain-application-context/BackendDataProvider.js +1 -1
  1637. package/dist/react-sdk/domain-application-context/ConfigurationPersistSystemFailureHandler.js +1 -1
  1638. package/dist/react-sdk/domain-application-context/DomainLifecycleBoundary.js +1 -1
  1639. package/dist/react-sdk/domain-application-context/FrontendDataProvider.js +1 -1
  1640. package/dist/react-sdk/domain-application-context/OnPresetLoadedHandler.js +1 -0
  1641. package/dist/react-sdk/domain-application-context/PublishedDataProvider.js +1 -1
  1642. package/dist/react-sdk/domain-application-context/chat-hooks.d.ts +4 -0
  1643. package/dist/react-sdk/domain-application-context/chat-hooks.js +1 -0
  1644. package/dist/react-sdk/domain-application-context/index.d.ts +2 -0
  1645. package/dist/react-sdk/domain-application-context/index.js +1 -1
  1646. package/dist/react-sdk/domain-context/common-hooks/index.d.ts +9 -0
  1647. package/dist/react-sdk/domain-context/common-hooks/index.js +1 -0
  1648. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.d.ts +23 -0
  1649. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.js +1 -0
  1650. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.d.ts +41 -0
  1651. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.js +1 -0
  1652. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +10 -9
  1653. package/dist/react-sdk/domain-context/component-hooks/index.d.ts +1 -0
  1654. package/dist/react-sdk/domain-context/component-hooks/index.js +1 -0
  1655. package/dist/react-sdk/domain-context/component-hooks/use-component.js +1 -1
  1656. package/dist/react-sdk/domain-context/entity-hooks/use-domain-entity-state.js +1 -1
  1657. package/dist/react-sdk/domain-context/entity-hooks/use-entity-price.js +1 -1
  1658. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-id.js +1 -1
  1659. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-state.js +1 -1
  1660. package/dist/react-sdk/domain-context/index.d.ts +9 -1
  1661. package/dist/react-sdk/domain-context/index.js +1 -1
  1662. package/dist/react-sdk/domain-context/system-hooks/composition-hooks.js +1 -1
  1663. package/dist/react-sdk/domain-context/system-hooks/dimension-hooks.js +1 -1
  1664. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +8 -0
  1665. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -0
  1666. package/dist/react-sdk/domain-context/system-hooks/hover-hooks.js +1 -1
  1667. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.d.ts +24 -0
  1668. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.js +1 -0
  1669. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +11 -0
  1670. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  1671. package/dist/react-sdk/domain-context/system-hooks/selection-hooks.js +1 -1
  1672. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.d.ts +32 -0
  1673. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.js +1 -0
  1674. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.d.ts +57 -0
  1675. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.js +1 -0
  1676. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.d.ts +61 -0
  1677. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.js +1 -0
  1678. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.d.ts +20 -0
  1679. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.js +1 -0
  1680. package/dist/react-sdk/domain-controls/hooks/use-angle-dimension.d.ts +1 -1
  1681. package/dist/react-sdk/handlers/FinalizeActionRunner.d.ts +13 -0
  1682. package/dist/react-sdk/handlers/FinalizeActionRunner.js +1 -0
  1683. package/dist/react-sdk/handlers/FinalizeActionsHost.d.ts +10 -0
  1684. package/dist/react-sdk/handlers/FinalizeActionsHost.js +1 -0
  1685. package/dist/react-sdk/handlers/FinalizeActionsProvider.d.ts +11 -0
  1686. package/dist/react-sdk/handlers/FinalizeActionsProvider.js +1 -0
  1687. package/dist/react-sdk/handlers/finalize-actions-context.d.ts +6 -0
  1688. package/dist/react-sdk/handlers/finalize-actions-context.js +1 -0
  1689. package/dist/react-sdk/handlers/finalize-actions-store.d.ts +23 -0
  1690. package/dist/react-sdk/handlers/finalize-actions-store.js +1 -0
  1691. package/dist/react-sdk/handlers/index.d.ts +6 -0
  1692. package/dist/react-sdk/handlers/index.js +1 -1
  1693. package/dist/react-sdk/handlers/use-finalize-action.d.ts +32 -0
  1694. package/dist/react-sdk/handlers/use-finalize-action.js +1 -0
  1695. package/dist/react-sdk/handlers/use-finalize-actions.d.ts +53 -0
  1696. package/dist/react-sdk/handlers/use-finalize-actions.js +1 -0
  1697. package/dist/react-sdk/index.d.ts +7 -0
  1698. package/dist/react-sdk/index.js +1 -1
  1699. package/dist/react-sdk/integration/IntegrationSubscription.js +1 -0
  1700. package/dist/react-sdk/integration/index.d.ts +1 -0
  1701. package/dist/react-sdk/integration/index.js +1 -0
  1702. package/dist/react-sdk/lifecycle-providers/ConfiguratorDataProvider.d.ts +8 -0
  1703. package/dist/react-sdk/lifecycle-providers/ConfiguratorDataProvider.js +1 -0
  1704. package/dist/react-sdk/lifecycle-providers/LifecycleProviders.js +1 -0
  1705. package/dist/react-sdk/lifecycle-providers/index.d.ts +2 -0
  1706. package/dist/react-sdk/lifecycle-providers/index.js +1 -0
  1707. package/dist/react-sdk/loading-state/LoaderHost.d.ts +20 -0
  1708. package/dist/react-sdk/loading-state/LoaderHost.js +1 -0
  1709. package/dist/react-sdk/loading-state/built-in-loading-phase.d.ts +9 -0
  1710. package/dist/react-sdk/loading-state/built-in-loading-phase.js +1 -0
  1711. package/dist/react-sdk/loading-state/create-app-loader.d.ts +18 -0
  1712. package/dist/react-sdk/loading-state/create-app-loader.js +1 -0
  1713. package/dist/react-sdk/loading-state/index.d.ts +4 -2
  1714. package/dist/react-sdk/loading-state/index.js +1 -1
  1715. package/dist/react-sdk/loading-state/loading-state-hooks.d.ts +22 -0
  1716. package/dist/react-sdk/loading-state/loading-state-hooks.js +1 -0
  1717. package/dist/react-sdk/notifications/index.d.ts +1 -0
  1718. package/dist/react-sdk/notifications/index.js +1 -0
  1719. package/dist/react-sdk/notifications/snackbar-action-button.d.ts +30 -0
  1720. package/dist/react-sdk/notifications/snackbar-action-button.js +1 -0
  1721. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.d.ts +17 -0
  1722. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.js +1 -0
  1723. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.d.ts +17 -0
  1724. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.js +1 -0
  1725. package/dist/react-sdk/page-elements/configurator-error-page-props.d.ts +20 -0
  1726. package/dist/react-sdk/page-elements/configurator-error-page-props.js +1 -0
  1727. package/dist/react-sdk/page-elements/create-configuration-not-found-page.d.ts +15 -0
  1728. package/dist/react-sdk/page-elements/create-configuration-not-found-page.js +1 -0
  1729. package/dist/react-sdk/page-elements/create-configurator-error-page.d.ts +14 -0
  1730. package/dist/react-sdk/page-elements/create-configurator-error-page.js +1 -0
  1731. package/dist/react-sdk/page-elements/create-preset-ui.d.ts +9 -0
  1732. package/dist/react-sdk/page-elements/create-preset-ui.js +1 -0
  1733. package/dist/react-sdk/page-elements/index.d.ts +6 -0
  1734. package/dist/react-sdk/page-elements/index.js +1 -0
  1735. package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -0
  1736. package/dist/react-sdk/preset-selection/index.d.ts +1 -0
  1737. package/dist/react-sdk/preset-selection/index.js +1 -0
  1738. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.d.ts +36 -0
  1739. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.js +1 -0
  1740. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.d.ts +44 -0
  1741. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.js +1 -0
  1742. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.d.ts +38 -0
  1743. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.js +1 -0
  1744. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.d.ts +30 -0
  1745. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.js +1 -0
  1746. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.d.ts +30 -0
  1747. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.js +1 -0
  1748. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.d.ts +9 -0
  1749. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.js +1 -0
  1750. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.d.ts +9 -0
  1751. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.js +1 -0
  1752. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.d.ts +10 -0
  1753. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.js +1 -0
  1754. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.d.ts +9 -0
  1755. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.js +1 -0
  1756. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.d.ts +9 -0
  1757. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.js +1 -0
  1758. package/dist/react-sdk/scene-control-elements/index.d.ts +11 -0
  1759. package/dist/react-sdk/scene-control-elements/index.js +1 -0
  1760. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.d.ts +5 -0
  1761. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.js +1 -0
  1762. package/dist/react-sdk/session/NotAuthenticatedPage.d.ts +4 -0
  1763. package/dist/react-sdk/session/NotAuthenticatedPage.js +1 -1
  1764. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  1765. package/dist/react-sdk/web-component/create-web-component.js +1 -1
  1766. package/dist/react-sdk/web-component/god-mode/god-mode-registry.d.ts +30 -0
  1767. package/dist/react-sdk/web-component/god-mode/god-mode-registry.js +1 -0
  1768. package/dist/react-sdk/web-component/god-mode/index.d.ts +1 -0
  1769. package/dist/react-sdk/web-component/god-mode/index.js +1 -0
  1770. package/dist/ui-sdk/components/snackbar/Snackbar.d.ts +24 -3
  1771. package/dist/ui-sdk/components/snackbar/Snackbar.js +1 -1
  1772. package/dist/ui-sdk/icons/__generated/Lightbulb.d.ts +3 -0
  1773. package/dist/ui-sdk/icons/__generated/Lightbulb.js +1 -0
  1774. package/dist/ui-sdk/icons/__generated/Paperclip.d.ts +3 -0
  1775. package/dist/ui-sdk/icons/__generated/Paperclip.js +1 -0
  1776. package/dist/ui-sdk/icons/__generated/XCircle.d.ts +3 -0
  1777. package/dist/ui-sdk/icons/__generated/XCircle.js +1 -0
  1778. package/dist/ui-sdk/icons/__generated/index.d.ts +6 -0
  1779. package/dist/ui-sdk/icons/__generated/index.js +1 -1
  1780. package/dist/ui-sdk/icons/icons-registry.js +1 -1
  1781. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.d.ts +9 -0
  1782. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.js +1 -1
  1783. package/dist/ui-sdk/responsive-application/index.d.ts +1 -0
  1784. package/dist/ui-sdk/responsive-application/responsive-state-store.d.ts +59 -0
  1785. package/dist/ui-sdk/responsive-application/responsive-state-store.js +1 -0
  1786. package/dist/ui-sdk/responsive-application/use-store-responsive-info.d.ts +7 -0
  1787. package/dist/ui-sdk/responsive-application/use-store-responsive-info.js +1 -0
  1788. package/dist/ui-sdk/theme/types.d.ts +5 -1
  1789. package/dist/watch/glob-matcher.d.ts +4 -4
  1790. package/dist/watch/glob-matcher.js +1 -1
  1791. package/dist/watch/watch.d.ts +4 -4
  1792. package/dist/watch/watch.js +1 -1
  1793. package/dist/webhook/builders/common.d.ts +5 -0
  1794. package/dist/webhook/builders/webhook-builder.js +1 -1
  1795. package/package.json +58 -36
  1796. package/schema/domain-spec.json +1359 -217
  1797. package/dist/application-spec/core/eval-to-constant.d.ts +0 -14
  1798. package/dist/application-spec/generate-application/code/templates/env-ci.d.ts +0 -1
  1799. package/dist/application-spec/generate-application/code/templates/env-ci.js +0 -25
  1800. package/dist/application-spec/generate-application/code/templates/env-example.d.ts +0 -1
  1801. package/dist/application-spec/generate-application/code/templates/env-example.js +0 -90
  1802. package/dist/application-spec/generate-application/code/templates/nvmrc.d.ts +0 -1
  1803. package/dist/application-spec/generate-application/code/templates/nvmrc.js +0 -2
  1804. package/dist/application-spec/generate-application/code/templates/package-json.d.ts +0 -10
  1805. package/dist/application-spec/generate-application/code/templates/package-json.js +0 -1
  1806. package/dist/application-spec/generate-application/code/templates/prettier-ignore.d.ts +0 -1
  1807. package/dist/application-spec/generate-application/code/templates/prettier-ignore.js +0 -6
  1808. package/dist/application-spec/generate-application/code/templates/private-assets-readme.d.ts +0 -1
  1809. package/dist/application-spec/generate-application/code/templates/private-assets-readme.js +0 -24
  1810. package/dist/application-spec/generate-application/code/templates/public-assets-readme.d.ts +0 -1
  1811. package/dist/application-spec/generate-application/code/templates/public-assets-readme.js +0 -24
  1812. package/dist/application-spec/generate-application/code/templates/readme.d.ts +0 -1
  1813. package/dist/application-spec/generate-application/code/templates/readme.js +0 -23
  1814. package/dist/application-spec/generate-application/code/templates/skills/agents-md.d.ts +0 -1
  1815. package/dist/application-spec/generate-application/code/templates/skills/agents-md.js +0 -2
  1816. package/dist/application-spec/generate-application/code/templates/webhook-implementation.d.ts +0 -1
  1817. package/dist/application-spec/generate-application/code/templates/webhook-implementation.js +0 -7
  1818. package/dist/application-spec/parse-application-files/spec/components/component-entry.d.ts +0 -98
  1819. package/dist/application-spec/parse-application-files/spec/expressions/expression.d.ts +0 -70
  1820. package/dist/configurator/common/frontend-analytics.d.ts +0 -46
  1821. package/dist/configurator/common/frontend-analytics.js +0 -1
  1822. package/dist/configurator/configurator-context/ConfiguratorDataProvider.d.ts +0 -2
  1823. package/dist/configurator/configurator-context/ConfiguratorDataProvider.js +0 -1
  1824. package/dist/configurator/configurator-context/IntegrationSubscription.js +0 -1
  1825. package/dist/configurator/configurator-context/LifecycleProviders.js +0 -1
  1826. package/dist/configurator/configurator-context/OnPresetLoadedHandler.js +0 -1
  1827. package/dist/configurator/configurator-context/PresetSelectionProvider.js +0 -1
  1828. package/dist/configurator/configurator-context/configurator-hooks/chat-hooks.d.ts +0 -1
  1829. package/dist/configurator/configurator-context/configurator-hooks/chat-hooks.js +0 -1
  1830. package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.d.ts +0 -11
  1831. package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.js +0 -1
  1832. package/dist/configurator/configurator-context/configurator-routing/OnGoToIndexHandler.d.ts +0 -10
  1833. package/dist/configurator/configurator-context/configurator-routing/OnGoToIndexHandler.js +0 -1
  1834. package/dist/configurator/configurator-context/configurator-routing/index.d.ts +0 -2
  1835. package/dist/configurator/configurator-context/configurator-routing/index.js +0 -1
  1836. package/dist/configurator/configurator-context/configurator-routing/use-power-routing-lifecycle.d.ts +0 -9
  1837. package/dist/configurator/configurator-context/configurator-routing/use-power-routing-lifecycle.js +0 -1
  1838. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.d.ts +0 -4
  1839. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.js +0 -1
  1840. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.d.ts +0 -4
  1841. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.js +0 -1
  1842. package/dist/domain/actions/action-factory.d.ts +0 -10
  1843. package/dist/domain/actions/prepare-action-implementations.d.ts +0 -15
  1844. package/dist/domain/actions/prepare-action-implementations.js +0 -5
  1845. package/dist/domain/application/element-registration.d.ts +0 -110
  1846. package/dist/domain/application/element-registration.js +0 -1
  1847. package/dist/domain/application/handler-registration.d.ts +0 -34
  1848. package/dist/domain/application/handler-registration.js +0 -1
  1849. package/dist/domain/application/resolve-imported-transformers.d.ts +0 -23
  1850. package/dist/domain/application/resolve-imported-transformers.js +0 -1
  1851. package/dist/domain/application/resource-builder.d.ts +0 -13
  1852. package/dist/domain/application/resource-builder.js +0 -1
  1853. package/dist/domain/available-system-components.d.ts +0 -11
  1854. package/dist/domain/available-system-components.js +0 -1
  1855. package/dist/domain/core/action.d.ts +0 -66
  1856. package/dist/domain/core/expression/memoize-expression.d.ts +0 -17
  1857. package/dist/domain/core/expression/prepare-domain-expressions.d.ts +0 -16
  1858. package/dist/domain/domain-builder.d.ts +0 -43
  1859. package/dist/domain/domain-builder.js +0 -1
  1860. package/dist/domain/domain-context/recipe-system/recipes.d.ts +0 -55
  1861. package/dist/domain/domain-context/recipe-system/recipes.js +0 -1
  1862. package/dist/domain/invariants/builtin-invariant.d.ts +0 -4
  1863. package/dist/domain/invariants/custom-invariants.d.ts +0 -20
  1864. package/dist/domain/invariants/custom-invariants.js +0 -1
  1865. package/dist/domain/invariants/invariants.d.ts +0 -74
  1866. package/dist/domain/invariants/invariants.js +0 -1
  1867. package/dist/domain/invariants/violation-component.js +0 -1
  1868. package/dist/domain/invariants/violation.d.ts +0 -85
  1869. package/dist/domain/invariants/violation.js +0 -1
  1870. package/dist/domain/project-modules/index.d.ts +0 -1
  1871. package/dist/domain/project-modules/index.js +0 -1
  1872. package/dist/domain/project-modules/project-modules.d.ts +0 -41
  1873. package/dist/domain/project-modules/project-modules.js +0 -1
  1874. package/dist/domain/relations/all-of-type-relation.d.ts +0 -30
  1875. package/dist/domain/relations/all-of-type-relation.js +0 -1
  1876. package/dist/domain/relations/component-factories.d.ts +0 -14
  1877. package/dist/domain/relations/component-factories.js +0 -1
  1878. package/dist/domain/relations/composed-of.d.ts +0 -12
  1879. package/dist/domain/relations/composed-of.js +0 -1
  1880. package/dist/domain/relations/direct-relation.d.ts +0 -27
  1881. package/dist/domain/relations/indirect-relation.d.ts +0 -78
  1882. package/dist/domain/relations/indirect-relation.js +0 -1
  1883. package/dist/domain/relations/reference-component.d.ts +0 -16
  1884. package/dist/domain/relations/reference-component.js +0 -1
  1885. package/dist/domain/relations/reference-field.d.ts +0 -7
  1886. package/dist/domain/relations/relation-factory.d.ts +0 -17
  1887. package/dist/domain/relations/relation-factory.js +0 -1
  1888. package/dist/domain/relations/relation-implementation.d.ts +0 -5
  1889. package/dist/domain/system-components/attribute-switch.d.ts +0 -8
  1890. package/dist/domain/system-components/attribute-switch.js +0 -1
  1891. package/dist/domain/system-components/canvas-config.d.ts +0 -87
  1892. package/dist/domain/system-components/child-entity-recipe-hierarchy.d.ts +0 -21
  1893. package/dist/domain/system-components/child-entity-recipe-hierarchy.js +0 -1
  1894. package/dist/domain/system-components/client-side-image.d.ts +0 -14
  1895. package/dist/domain/system-components/client-side-image.js +0 -1
  1896. package/dist/domain/system-components/common/angle-indicator-schema.d.ts +0 -292
  1897. package/dist/domain/system-components/common/angle-indicator-schema.js +0 -1
  1898. package/dist/domain/system-components/common/dimension-indicator-schema.d.ts +0 -607
  1899. package/dist/domain/system-components/custom-header.d.ts +0 -11
  1900. package/dist/domain/system-components/custom-header.js +0 -1
  1901. package/dist/domain/system-components/custom-price-footer.js +0 -1
  1902. package/dist/domain/system-components/custom-sidebar-footer.d.ts +0 -11
  1903. package/dist/domain/system-components/custom-sidebar-footer.js +0 -1
  1904. package/dist/domain/system-components/editable-angle-indicator.d.ts +0 -38
  1905. package/dist/domain/system-components/editable-angle-indicator.js +0 -1
  1906. package/dist/domain/system-components/editable-distance-dimension-indicator.d.ts +0 -42
  1907. package/dist/domain/system-components/editable-distance-dimension-indicator.js +0 -1
  1908. package/dist/domain/system-components/editable-offset-indicator.d.ts +0 -41
  1909. package/dist/domain/system-components/editable-offset-indicator.js +0 -1
  1910. package/dist/domain/system-components/editable-size-indicator.d.ts +0 -38
  1911. package/dist/domain/system-components/editable-size-indicator.js +0 -1
  1912. package/dist/domain/system-components/entity-header.d.ts +0 -22
  1913. package/dist/domain/system-components/entity-header.js +0 -1
  1914. package/dist/domain/system-components/finalize-component.js +0 -1
  1915. package/dist/domain/system-components/fit-selection-orthographic-camera-component.js +0 -1
  1916. package/dist/domain/system-components/fit-selection-perspective-camera-component.js +0 -1
  1917. package/dist/domain/system-components/horizontal-tabs.d.ts +0 -28
  1918. package/dist/domain/system-components/list-selector-dimension-indicator.d.ts +0 -30
  1919. package/dist/domain/system-components/list-selector-dimension-indicator.js +0 -1
  1920. package/dist/domain/system-components/navigation-steps.d.ts +0 -19
  1921. package/dist/domain/system-components/offset-indicator.js +0 -1
  1922. package/dist/domain/system-components/property-page.d.ts +0 -16
  1923. package/dist/domain/system-components/property-page.js +0 -1
  1924. package/dist/domain/system-components/replace-entity-recipe-hierarchy.d.ts +0 -21
  1925. package/dist/domain/system-components/replace-entity-recipe-hierarchy.js +0 -1
  1926. package/dist/domain/system-components/rotation-handle.d.ts +0 -53
  1927. package/dist/domain/system-components/save-template-thumbnail.d.ts +0 -14
  1928. package/dist/domain/system-components/save-template-thumbnail.js +0 -1
  1929. package/dist/domain/system-components/scene-entity-add-fab.d.ts +0 -32
  1930. package/dist/domain/system-components/scene-entity-add-fab.js +0 -1
  1931. package/dist/domain/system-components/scene-entity-animation.js +0 -1
  1932. package/dist/domain/system-components/scene-entity-delete-fab.d.ts +0 -19
  1933. package/dist/domain/system-components/scene-entity-delete-fab.js +0 -1
  1934. package/dist/domain/system-components/scene-entity-html-hotspot.d.ts +0 -27
  1935. package/dist/domain/system-components/scene-entity-html-hotspot.js +0 -1
  1936. package/dist/domain/system-components/scene-entity-navigation-hotspot.d.ts +0 -20
  1937. package/dist/domain/system-components/scene-entity-navigation-hotspot.js +0 -1
  1938. package/dist/domain/system-components/scene-entity-object-html-hotspot.d.ts +0 -31
  1939. package/dist/domain/system-components/scene-entity-object-html-hotspot.js +0 -1
  1940. package/dist/domain/system-components/scene-entity-select-hotspot.d.ts +0 -5
  1941. package/dist/domain/system-components/scene-entity-select-hotspot.js +0 -1
  1942. package/dist/domain/system-components/sketching-edit.d.ts +0 -28
  1943. package/dist/domain/system-components/sketching-edit.js +0 -1
  1944. package/dist/domain/system-components/summary-component.js +0 -1
  1945. package/dist/domain/system-components/tool-menu-fab.d.ts +0 -40
  1946. package/dist/domain/system-components/tool-menu-fab.js +0 -1
  1947. package/dist/domain/system-components/toolbar.d.ts +0 -13
  1948. package/dist/domain/system-components/toolbar.js +0 -1
  1949. package/dist/phoenix/commands/generate-project-files.d.ts +0 -6
  1950. package/dist/phoenix/commands/generate-project-files.js +0 -1
  1951. package/dist/phoenix/services/lingui.d.ts +0 -7
  1952. package/dist/phoenix/services/lingui.js +0 -1
  1953. package/dist/react-sdk/application-runtime/runtime/god-mode.d.ts +0 -19
  1954. package/dist/react-sdk/application-runtime/runtime/god-mode.js +0 -1
  1955. package/dist/react-sdk/loading-state/LoadingStateProvider.d.ts +0 -31
  1956. package/dist/react-sdk/loading-state/LoadingStateProvider.js +0 -1
  1957. package/dist/react-sdk/loading-state/loading-state-manager.d.ts +0 -32
  1958. package/dist/react-sdk/loading-state/loading-state-manager.js +0 -1
  1959. /package/dist/application-spec/{core → enhanced-json}/eval-code-uses-self.d.ts +0 -0
  1960. /package/dist/application-spec/{core → enhanced-json}/eval-code-uses-self.js +0 -0
  1961. /package/dist/application-spec/{core → enhanced-json}/eval-to-constant.js +0 -0
  1962. /package/dist/{domain/core/action.js → application-spec/generate-application/runtime/spec-code/spec-code-module.js} +0 -0
  1963. /package/dist/{domain/relations/reference-field.js → application-spec/parse-application-files/spec/expressions/expression-read.js} +0 -0
  1964. /package/dist/{domain/relations/relation-implementation.js → configurator/ui/assistant/form-elements/form-element-props.js} +0 -0
  1965. /package/dist/domain/{actions → core/action}/action-factory.js +0 -0
  1966. /package/dist/domain/{invariants → core/invariant}/builtin-invariant.js +0 -0
  1967. /package/dist/domain/{invariants → core/invariant}/violation-component.d.ts +0 -0
  1968. /package/dist/domain/{relations → core/relation}/direct-relation.js +0 -0
  1969. /package/dist/domain/{core/expression → domain-runtime/spec}/memoize-expression.js +0 -0
  1970. /package/dist/domain/{core/expression → domain-runtime/spec}/prepare-domain-expressions.js +0 -0
  1971. /package/dist/domain/{system-components → extensions}/angle-indicator.d.ts +0 -0
  1972. /package/dist/domain/{system-components → extensions}/angle-indicator.js +0 -0
  1973. /package/dist/domain/{system-components → extensions}/autorotate-camera-component.d.ts +0 -0
  1974. /package/dist/domain/{system-components → extensions}/autorotate-camera-component.js +0 -0
  1975. /package/dist/domain/{system-components → extensions}/basic-sidebar-footer.d.ts +0 -0
  1976. /package/dist/domain/{system-components → extensions}/basic-sidebar-footer.js +0 -0
  1977. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity-object.d.ts +0 -0
  1978. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity-object.js +0 -0
  1979. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity.d.ts +0 -0
  1980. /package/dist/domain/{system-components → extensions}/camera-based-hidden-entity.js +0 -0
  1981. /package/dist/domain/{system-components → extensions}/canvas-config.js +0 -0
  1982. /package/dist/domain/{system-components → extensions}/canvas-custom-environment.d.ts +0 -0
  1983. /package/dist/domain/{system-components → extensions}/canvas-custom-environment.js +0 -0
  1984. /package/dist/domain/{system-components → extensions}/canvas-padding.d.ts +0 -0
  1985. /package/dist/domain/{system-components → extensions}/canvas-padding.js +0 -0
  1986. /package/dist/domain/{system-components → extensions}/canvas-preset-environment.d.ts +0 -0
  1987. /package/dist/domain/{system-components → extensions}/canvas-preset-environment.js +0 -0
  1988. /package/dist/domain/{system-components → extensions}/color-value.d.ts +0 -0
  1989. /package/dist/domain/{system-components → extensions}/color-value.js +0 -0
  1990. /package/dist/domain/{system-components → extensions}/common/dimension-indicator-schema.js +0 -0
  1991. /package/dist/domain/{system-components → extensions}/common/dimension-indicators.d.ts +0 -0
  1992. /package/dist/domain/{system-components → extensions}/common/dimension-indicators.js +0 -0
  1993. /package/dist/domain/{system-components → extensions}/common/editable-indicator-button-variant.d.ts +0 -0
  1994. /package/dist/domain/{system-components → extensions}/common/editable-indicator-button-variant.js +0 -0
  1995. /package/dist/domain/{system-components → extensions}/custom-price-footer.d.ts +0 -0
  1996. /package/dist/domain/{system-components → extensions}/dimension-indicator.d.ts +0 -0
  1997. /package/dist/domain/{system-components → extensions}/dimension-indicator.js +0 -0
  1998. /package/dist/domain/{system-components → extensions}/exit-tool-mode-fab.d.ts +0 -0
  1999. /package/dist/domain/{system-components → extensions}/exit-tool-mode-fab.js +0 -0
  2000. /package/dist/domain/{system-components → extensions}/finalize-action.d.ts +0 -0
  2001. /package/dist/domain/{system-components → extensions}/finalize-action.js +0 -0
  2002. /package/dist/domain/{system-components → extensions}/finalize-component.d.ts +0 -0
  2003. /package/dist/domain/{system-components → extensions}/fit-selection-orthographic-camera-component.d.ts +0 -0
  2004. /package/dist/domain/{system-components → extensions}/fit-selection-perspective-camera-component.d.ts +0 -0
  2005. /package/dist/domain/{system-components → extensions}/fixed-header.d.ts +0 -0
  2006. /package/dist/domain/{system-components → extensions}/fixed-header.js +0 -0
  2007. /package/dist/domain/{system-components → extensions}/floating-header.d.ts +0 -0
  2008. /package/dist/domain/{system-components → extensions}/floating-header.js +0 -0
  2009. /package/dist/domain/{system-components → extensions}/hidden-header.d.ts +0 -0
  2010. /package/dist/domain/{system-components → extensions}/hidden-header.js +0 -0
  2011. /package/dist/domain/{system-components → extensions}/hidden-sidebar-footer.d.ts +0 -0
  2012. /package/dist/domain/{system-components → extensions}/hidden-sidebar-footer.js +0 -0
  2013. /package/dist/domain/{system-components → extensions}/horizontal-tabs.js +0 -0
  2014. /package/dist/domain/{system-components → extensions}/multilingual-text-value.d.ts +0 -0
  2015. /package/dist/domain/{system-components → extensions}/multilingual-text-value.js +0 -0
  2016. /package/dist/domain/{system-components → extensions}/navigation-steps.js +0 -0
  2017. /package/dist/domain/{system-components → extensions}/offset-anchors.d.ts +0 -0
  2018. /package/dist/domain/{system-components → extensions}/offset-anchors.js +0 -0
  2019. /package/dist/domain/{system-components → extensions}/offset-indicator.d.ts +0 -0
  2020. /package/dist/domain/{system-components → extensions}/offset.d.ts +0 -0
  2021. /package/dist/domain/{system-components → extensions}/offset.js +0 -0
  2022. /package/dist/domain/{system-components → extensions}/other-action.d.ts +0 -0
  2023. /package/dist/domain/{system-components → extensions}/other-action.js +0 -0
  2024. /package/dist/domain/{system-components → extensions}/read-sidebar-footer.d.ts +0 -0
  2025. /package/dist/domain/{system-components → extensions}/read-sidebar-footer.js +0 -0
  2026. /package/dist/domain/{system-components → extensions}/rotatable.d.ts +0 -0
  2027. /package/dist/domain/{system-components → extensions}/rotatable.js +0 -0
  2028. /package/dist/domain/{system-components → extensions}/rotation-handle.js +0 -0
  2029. /package/dist/domain/{system-components → extensions}/scene-entity-animation.d.ts +0 -0
  2030. /package/dist/domain/{system-components → extensions}/scene-entity-control.d.ts +0 -0
  2031. /package/dist/domain/{system-components → extensions}/scene-entity-control.js +0 -0
  2032. /package/dist/domain/{system-components → extensions}/scene-entity-floor-object.d.ts +0 -0
  2033. /package/dist/domain/{system-components → extensions}/scene-entity-floor-object.js +0 -0
  2034. /package/dist/domain/{system-components → extensions}/scene-entity-wall-object.d.ts +0 -0
  2035. /package/dist/domain/{system-components → extensions}/scene-entity-wall-object.js +0 -0
  2036. /package/dist/domain/{system-components → extensions}/selectable-component.d.ts +0 -0
  2037. /package/dist/domain/{system-components → extensions}/selectable-component.js +0 -0
  2038. /package/dist/domain/{system-components → extensions}/sidebar-tabs.d.ts +0 -0
  2039. /package/dist/domain/{system-components → extensions}/sidebar-tabs.js +0 -0
  2040. /package/dist/domain/{system-components → extensions}/simple-summary.d.ts +0 -0
  2041. /package/dist/domain/{system-components → extensions}/simple-summary.js +0 -0
  2042. /package/dist/domain/{system-components → extensions}/size.d.ts +0 -0
  2043. /package/dist/domain/{system-components → extensions}/size.js +0 -0
  2044. /package/dist/domain/{system-components → extensions}/sketching-draw.d.ts +0 -0
  2045. /package/dist/domain/{system-components → extensions}/sketching-draw.js +0 -0
  2046. /package/dist/domain/{system-components → extensions}/summary-component.d.ts +0 -0
  2047. /package/dist/domain/{system-components → extensions}/text-value.d.ts +0 -0
  2048. /package/dist/domain/{system-components → extensions}/text-value.js +0 -0
  2049. /package/dist/domain/{system-components → extensions}/tool-controls.d.ts +0 -0
  2050. /package/dist/domain/{system-components → extensions}/tool-controls.js +0 -0
  2051. /package/dist/domain/{system-components → extensions}/universal-sidebar-footer.d.ts +0 -0
  2052. /package/dist/domain/{system-components → extensions}/universal-sidebar-footer.js +0 -0
  2053. /package/dist/domain/{system-components → extensions}/view-controls.d.ts +0 -0
  2054. /package/dist/domain/{system-components → extensions}/view-controls.js +0 -0
  2055. /package/dist/{application-spec/core → domain/spec/application}/application-instance.d.ts +0 -0
  2056. /package/dist/{application-spec/core → domain/spec/application}/application-instance.js +0 -0
  2057. /package/dist/{application-spec/parse-application-files/spec/components/component-entry.js → domain/spec/components/sdk-code-ref.js} +0 -0
  2058. /package/dist/{application-spec/parse-application-files/spec/expressions/expression.js → domain/spec/expressions/sdk-expression-implementation.js} +0 -0
  2059. /package/dist/{application-spec/parse-application-files/spec/components → domain/spec/markers}/component-prop-target.d.ts +0 -0
  2060. /package/dist/{application-spec/parse-application-files/spec/components → domain/spec/markers}/component-prop-target.js +0 -0
  2061. /package/dist/{application-spec/core → domain/spec}/markers/eval-marker.d.ts +0 -0
  2062. /package/dist/{application-spec/core → domain/spec}/markers/eval-marker.js +0 -0
  2063. /package/dist/{configurator/configurator-context → react-sdk/domain-application-context}/OnPresetLoadedHandler.d.ts +0 -0
  2064. /package/dist/{configurator/configurator-context → react-sdk/integration}/IntegrationSubscription.d.ts +0 -0
  2065. /package/dist/{configurator/configurator-context → react-sdk/lifecycle-providers}/LifecycleProviders.d.ts +0 -0
  2066. /package/dist/{configurator/configurator-context → react-sdk/preset-selection}/PresetSelectionProvider.d.ts +0 -0
@@ -1 +1 @@
1
- import{readFile as t,writeFile as e}from"fs/promises";import{globby as o}from"globby";import{resolve as r}from"path";import*as i from"prettier";let a=["**/node_modules/**","**/dist/**","**/.git/**","**/webhooks/index.ts`","**/frontend-configurator.ts`","**/frontend-admin.ts`","**/frontend-embedded-admin.ts`","pnpm-lock.yaml",".linguirc"];export const formatFiles=async(n,f)=>{let{logger:l}=f,s=await o("."===n?"**/*":n,{gitignore:!0,ignore:a}),c=0;for(let o of s)try{let a=r(o),n=await t(a,"utf-8"),f=await i.resolveConfig(a);if((await i.getFileInfo(a)).ignored)continue;let l=await i.format(n,{...f,filepath:a});l!==n&&(await e(a,l,"utf-8"),c++)}catch(t){}c>0&&l.info(`Formatted ${c} file${1!==c?"s":""}`)};export const checkFiles=async(e,n)=>{let{logger:f}=n,l=await o("."===e?"**/*":e,{gitignore:!0,ignore:a}),s=[];for(let e of l)try{let o=r(e),a=await t(o,"utf-8"),n=await i.resolveConfig(o);if((await i.getFileInfo(o)).ignored)continue;await i.check(a,{...n,filepath:o})||s.push(e)}catch(t){}return!(s.length>0)||(f.error(`Found ${s.length} unformatted file${1!==s.length?"s":""}:`),s.forEach(t=>{console.error(` - ${t}`)}),!1)};
1
+ import{readFile as t,writeFile as o}from"fs/promises";import{globby as e}from"globby";import{resolve as r}from"path";import*as i from"prettier";import{prettierrc as a}from"@salsita-ai/common/prettier";let n=["**/node_modules/**","**/dist/**","**/.git/**","**/.phoenix/**","**/locales/*/*.ts","pnpm-lock.yaml","pnpm-workspace.yaml","package-lock.json","npm-shrinkwrap.json","yarn.lock",".yarnrc.yml","bun.lock","bun.lockb",".linguirc"];export const formatFiles=async(l,f)=>{let{logger:c}=f,s=await e("."===l?"**/*":l,{gitignore:!0,ignore:n}),m=0;for(let e of s)try{let n=r(e),l=await t(n,"utf-8"),f=await i.resolveConfig(n)??a;if((await i.getFileInfo(n)).ignored)continue;let c=await i.format(l,{...f,filepath:n});c!==l&&(await o(n,c,"utf-8"),m++)}catch(t){}m>0&&c.info(`Formatted ${m} file${1!==m?"s":""}`)};export const checkFiles=async(o,l)=>{let{logger:f}=l,c=await e("."===o?"**/*":o,{gitignore:!0,ignore:n}),s=[];for(let o of c)try{let e=r(o),n=await t(e,"utf-8"),l=await i.resolveConfig(e)??a;if((await i.getFileInfo(e)).ignored)continue;await i.check(n,{...l,filepath:e})||s.push(o)}catch(t){}return!(s.length>0)||(f.error(`Found ${s.length} unformatted file${1!==s.length?"s":""}:`),s.forEach(t=>{console.error(` - ${t}`)}),!1)};
@@ -1 +1 @@
1
- import{runCommand as e}from"../utils/index.js";export const runRegisterDeploymentCommand=async(t,i)=>{let{logger:r}=i;try{r.warn("DEPRECATED: deployment:register command is deprecated, switch to a new workflow and use deployment:prepare and deployment:finish instead"),r.step("Registering deployment");let i=["register"];t?.server&&i.push("--server",`"${t.server}"`),t?.apiKey&&i.push("--apiKey",`"${t.apiKey}"`),t?.outFile&&i.push("--outFile",`"${t.outFile}"`),t?.skipUpload&&i.push("--skipUpload"),t?.activate===void 0||t.activate||i.push("--activate","false"),t?.overrideSchema&&i.push("--overrideSchema"),i.push("--configPath",'"./.phoenix/phoenix.config.ts"'),await e({command:"deployment-cli",args:i,description:"Registering deployment"},{logger:r}),r.success("Deployment registered successfully!")}catch(e){r.error(`Deployment registration failed: ${e instanceof Error?e.message:String(e)}`,e),process.exit(1)}};
1
+ import{exitCli as e}from"../services/index.js";import{runCommand as i}from"../utils/index.js";export const runRegisterDeploymentCommand=async(t,r)=>{let{logger:s}=r;try{s.warn("DEPRECATED: deployment:register command is deprecated, switch to a new workflow and use deployment:prepare and deployment:finish instead"),s.step("Registering deployment");let e=["register"];t?.server&&e.push("--server",`"${t.server}"`),t?.apiKey&&e.push("--apiKey",`"${t.apiKey}"`),t?.outFile&&e.push("--outFile",`"${t.outFile}"`),t?.skipUpload&&e.push("--skipUpload"),t?.activate===void 0||t.activate||e.push("--activate","false"),t?.overrideSchema&&e.push("--overrideSchema"),e.push("--configPath",'"./.phoenix/phoenix.config.ts"'),await i({command:"deployment-cli",args:e,description:"Registering deployment"},{logger:s}),s.success("Deployment registered successfully!")}catch(i){s.error(`Deployment registration failed: ${i instanceof Error?i.message:String(i)}`,i),await e(1)}};
@@ -1 +1 @@
1
- import{createTRPCClient as e,createWSClient as t,wsLink as r}from"@trpc/client";import{writeFile as o}from"fs/promises";import{resolve as i}from"path";import s from"ws";export const runSceneCommand=async(n,c)=>{let{logger:l}=c,a=n.port??"3020",p=n.pretty??!0,m=t({url:`ws://localhost:${a}`,WebSocket:s}),f=e({links:[r({client:m})]});try{let e=await f.getEditorScene.mutate(),t=JSON.stringify(e,null,p?2:void 0);if(n.output){let e=i(n.output);await o(e,t,"utf-8"),l.success(`Scene saved: ${e}`)}else console.log(t)}catch(e){if(e instanceof Error){let t=e.cause;null!=t&&"object"==typeof t&&"code"in t&&"ECONNREFUSED"===t.code&&(l.error("Dev server not running. Start with `phoenix dev`"),process.exit(1)),l.error(e.message)}else l.error(`Scene command failed: ${String(e)}`);process.exit(1)}finally{await m.close()}};
1
+ import{createTRPCClient as e,createWSClient as t,wsLink as r}from"@trpc/client";import{writeFile as o}from"fs/promises";import{resolve as i}from"path";import n from"ws";import{exitCli as s}from"../services/index.js";export const runSceneCommand=async(a,c)=>{let{logger:l}=c,m=a.port??"3020",f=a.pretty??!0,p=t({url:`ws://localhost:${m}`,WebSocket:n}),u=e({links:[r({client:p})]});try{let e=await u.getEditorScene.mutate(),t=JSON.stringify(e,null,f?2:void 0);if(a.output){let e=i(a.output);await o(e,t,"utf-8"),l.success(`Scene saved: ${e}`)}else console.log(t)}catch(e){if(e instanceof Error){let t=e.cause;if(null!=t&&"object"==typeof t&&"code"in t&&"ECONNREFUSED"===t.code){l.error("Dev server not running. Start with `phoenix dev`"),await s(1);return}l.error(e.message)}else l.error(`Scene command failed: ${String(e)}`);await s(1)}finally{await p.close()}};
@@ -1 +1 @@
1
- import{createTRPCClient as e,createWSClient as t,wsLink as r}from"@trpc/client";import{resolve as o}from"path";import s from"ws";export const runScreenshotCommand=async(n,c)=>{let{logger:i}=c,a=n.port??"3020",l=n.output??"./screenshot.png",p=n.width??1920,h=n.height??1080,m=n.format?.toUpperCase()??"PNG";"PNG"!==m&&"JPEG"!==m&&(i.error(`Invalid format: ${m}. Use PNG or JPEG`),process.exit(1));let f=t({url:`ws://localhost:${a}`,WebSocket:s}),u=e({links:[r({client:f})]});try{let e=await u.takeScreenshot.mutate({width:p,height:h,fileFormat:m,output:o(l)});console.log(`Screenshot saved: ${e.filePath}`)}catch(e){if(e instanceof Error){let t=e.cause;null!=t&&"object"==typeof t&&"code"in t&&"ECONNREFUSED"===t.code&&(i.error("Dev server not running. Start with `phoenix dev`"),process.exit(1)),i.error(e.message)}else i.error(`Screenshot failed: ${String(e)}`);process.exit(1)}finally{await f.close()}};
1
+ import{createTRPCClient as e,createWSClient as t,wsLink as r}from"@trpc/client";import{resolve as o}from"path";import a from"ws";import{exitCli as i}from"../services/index.js";export const runScreenshotCommand=async(n,s)=>{let{logger:c}=s,l=n.port??"3020",p=n.output??"./screenshot.png",f=n.width??1920,h=n.height??1080,m=n.format?.toUpperCase()??"PNG";if("PNG"!==m&&"JPEG"!==m){c.error(`Invalid format: ${m}. Use PNG or JPEG`),await i(1);return}let u=t({url:`ws://localhost:${l}`,WebSocket:a}),d=e({links:[r({client:u})]});try{let e=await d.takeScreenshot.mutate({width:f,height:h,fileFormat:m,output:o(p)});console.log(`Screenshot saved: ${e.filePath}`)}catch(e){if(e instanceof Error){let t=e.cause;if(null!=t&&"object"==typeof t&&"code"in t&&"ECONNREFUSED"===t.code){c.error("Dev server not running. Start with `phoenix dev`"),await i(1);return}c.error(e.message)}else c.error(`Screenshot failed: ${String(e)}`);await i(1)}finally{await u.close()}};
@@ -1 +1 @@
1
- import{createTRPCClient as t,createWSClient as e,wsLink as o}from"@trpc/client";import{writeFile as r}from"fs/promises";import{resolve as i}from"path";import s from"ws";let n=["entities","navigation","validation"];export const runStateCommand=async(a,l)=>{let{logger:c}=l,p=a.port??"3020",m=a.pretty??!0,f=a.sections?a.sections.split(",").map(t=>t.trim()):[...n],u=f.filter(t=>!n.includes(t));u.length>0&&(c.error(`Invalid sections: ${u.join(", ")}. Valid: ${n.join(", ")}`),process.exit(1));let d=e({url:`ws://localhost:${p}`,WebSocket:s}),S=t({links:[o({client:d})]});try{let t=await S.getEditorState.mutate({sections:f}),e=JSON.stringify(t,null,m?2:void 0);if(a.output){let t=i(a.output);await r(t,e,"utf-8"),c.success(`State saved: ${t}`)}else console.log(e)}catch(t){if(t instanceof Error){let e=t.cause;null!=e&&"object"==typeof e&&"code"in e&&"ECONNREFUSED"===e.code&&(c.error("Dev server not running. Start with `phoenix dev`"),process.exit(1)),c.error(t.message)}else c.error(`State command failed: ${String(t)}`);process.exit(1)}finally{await d.close()}};
1
+ import{createTRPCClient as t,createWSClient as e,wsLink as i}from"@trpc/client";import{writeFile as r}from"fs/promises";import{resolve as o}from"path";import a from"ws";import{exitCli as n}from"../services/index.js";let s=["entities","navigation","validation"];export const runStateCommand=async(l,c)=>{let{logger:m}=c,f=l.port??"3020",p=l.pretty??!0,u=l.sections?l.sections.split(",").map(t=>t.trim()):[...s],d=u.filter(t=>!s.includes(t));if(d.length>0){m.error(`Invalid sections: ${d.join(", ")}. Valid: ${s.join(", ")}`),await n(1);return}let v=e({url:`ws://localhost:${f}`,WebSocket:a}),w=t({links:[i({client:v})]});try{let t=await w.getEditorState.mutate({sections:u}),e=JSON.stringify(t,null,p?2:void 0);if(l.output){let t=o(l.output);await r(t,e,"utf-8"),m.success(`State saved: ${t}`)}else console.log(e)}catch(t){if(t instanceof Error){let e=t.cause;if(null!=e&&"object"==typeof e&&"code"in e&&"ECONNREFUSED"===e.code){m.error("Dev server not running. Start with `phoenix dev`"),await n(1);return}m.error(t.message)}else m.error(`State command failed: ${String(t)}`);await n(1)}finally{await v.close()}};
@@ -1,3 +1,3 @@
1
- import r from"promise-queue";import{generateApplicationSpecStory as e}from"../application-spec/generate-application-spec-story.js";import{resolveGlobToDirectories as o}from"./resolve-story-directories.js";export const buildStoryInDirectory=async(r,o)=>{let{logger:t}=o;t.step(`Building Storybook example in ${r.targetDir}`),await e(r.targetDir,o),t.success(`Completed building Storybook example in ${r.targetDir}`)};export const runStoryBuildCommand=async(e,t)=>{let{logger:i}=t;try{let s=await o(e.folder,e.baseDir);if(0===s.length){let r=e.baseDir?`${e.baseDir}/${e.folder}`:e.folder;i.error(`No directories found matching pattern: ${r}. The pattern did not match any directories in the base directory, ensure the base directory exists and contains matching folders.`),process.exit(1)}console.log(`
2
- Found ${s.length} matching ${1===s.length?"directory":"directories"}:
3
- `),s.forEach(r=>{console.log(` - ${r}`)}),console.log("");let n=new r(4,1/0),a=[];if(await Promise.all(s.map(async r=>{try{await n.add(()=>buildStoryInDirectory({targetDir:r},t)),console.log("")}catch(e){i.error(`Failed to build story in ${r}: ${e instanceof Error?e.message:String(e)}`),console.log(e),a.push({dir:r,error:e instanceof Error?e:Error(String(e))})}})),a.length>0)throw i.error(`Failed to build ${a.length} ${1===a.length?"story":"stories"}:`),a.forEach(r=>{i.error(` - ${r.dir}: ${r.error.message}`)}),Error("Failed to build stories");i.success(`Completed building ${s.length} ${1===s.length?"story":"stories"}!`)}catch(r){throw i.error(`Story build failed: ${r instanceof Error?r.message:String(r)}`),r}};
1
+ import r from"promise-queue";import{generateApplicationSpecStory as e}from"../application-spec/generate-application-spec-story.js";import{exitCli as o}from"../services/index.js";import{resolveGlobToDirectories as t}from"./resolve-story-directories.js";export const buildStoryInDirectory=async(r,o)=>{let{logger:t}=o;t.step(`Building Storybook example in ${r.targetDir}`),await e(r.targetDir,o),t.success(`Completed building Storybook example in ${r.targetDir}`)};export const runStoryBuildCommand=async(e,i)=>{let{logger:s}=i;try{let n=await t(e.folder,e.baseDir);if(0===n.length){let r=e.baseDir?`${e.baseDir}/${e.folder}`:e.folder;s.error(`No directories found matching pattern: ${r}. The pattern did not match any directories in the base directory, ensure the base directory exists and contains matching folders.`),await o(1);return}console.log(`
2
+ Found ${n.length} matching ${1===n.length?"directory":"directories"}:
3
+ `),n.forEach(r=>{console.log(` - ${r}`)}),console.log("");let a=new r(4,1/0),l=[];if(await Promise.all(n.map(async r=>{try{await a.add(()=>buildStoryInDirectory({targetDir:r},i)),console.log("")}catch(e){s.error(`Failed to build story in ${r}: ${e instanceof Error?e.message:String(e)}`),console.log(e),l.push({dir:r,error:e instanceof Error?e:Error(String(e))})}})),l.length>0)throw s.error(`Failed to build ${l.length} ${1===l.length?"story":"stories"}:`),l.forEach(r=>{s.error(` - ${r.dir}: ${r.error.message}`)}),Error("Failed to build stories");s.success(`Completed building ${n.length} ${1===n.length?"story":"stories"}!`)}catch(r){throw s.error(`Story build failed: ${r instanceof Error?r.message:String(r)}`),r}};
@@ -1 +1 @@
1
- import{basename as r,join as e}from"path";import{generateInitialStory as t}from"../story-scaffolding/index.js";import{askQuestion as o,exists as s,toPascalCase as a}from"../utils/index.js";import{buildStoryInDirectory as i}from"./story-build.js";export const runStoryCreateCommand=async(n={},c)=>{let{logger:m}=c;try{m.step("Creating new Storybook example");let y=n.name;if(!y)for(;!y;){let r=await o('Enter the story name (e.g., "my-feature" or "MyFeature"): ');if(!r||0===r.trim().length){m.error("Story name is required");continue}if(!/^[a-zA-Z][a-zA-Z0-9_-]*$/.test(r)){m.error("Story name must start with a letter and contain only letters, numbers, hyphens, and underscores");continue}y=r.trim()}y||(m.error("Story name is required"),process.exit(1)),await s(e(process.cwd(),`src/${y}`))&&(m.error(`Story ${y} already exists`),process.exit(1));let l=e(process.cwd(),`src/examples/${y}`),d=a(r(l));await t(l,d),await i({targetDir:l},c),m.success(`Story created successfully in ${l}!`)}catch(r){m.error(`Story creation failed: ${r instanceof Error?r.message:String(r)}`,r),process.exit(1)}};
1
+ import{basename as r,join as e}from"path";import{exitCli as t}from"../services/index.js";import{generateInitialStory as a}from"../story-scaffolding/index.js";import{askQuestion as o,exists as i,toPascalCase as s}from"../utils/index.js";import{buildStoryInDirectory as n}from"./story-build.js";export const runStoryCreateCommand=async(m={},c)=>{let{logger:y}=c;try{y.step("Creating new Storybook example");let f=m.name;if(!f)for(;!f;){let r=await o('Enter the story name (e.g., "my-feature" or "MyFeature"): ');if(!r||0===r.trim().length){y.error("Story name is required");continue}if(!/^[a-zA-Z][a-zA-Z0-9_-]*$/.test(r)){y.error("Story name must start with a letter and contain only letters, numbers, hyphens, and underscores");continue}f=r.trim()}if(!f){y.error("Story name is required"),await t(1);return}if(await i(e(process.cwd(),`src/${f}`))){y.error(`Story ${f} already exists`),await t(1);return}let l=e(process.cwd(),`src/examples/${f}`),u=s(r(l));await a(l,u),await n({targetDir:l},c),y.success(`Story created successfully in ${l}!`)}catch(r){y.error(`Story creation failed: ${r instanceof Error?r.message:String(r)}`,r),await t(1)}};
@@ -1 +1 @@
1
- import{ensureWorkspaceInstallSettings as e,runCommand as s}from"../utils/index.js";import{generateProjectFilesAndInstallDependencies as c}from"./generate-project-files.js";export const runSyncCommand=async(t,i)=>{let{logger:r}=i,{sdkVersion:n,projectSlug:o,environmentSlug:l,cliUseWorkspace:a,enableEditor:p,force:m=!1,analyze:u=!1}=t;try{r.step("Syncing Phoenix project files"),e(process.cwd()),await s({command:"pnpm",args:["install"],description:"Installing packages",quiet:!0},{logger:r}),r.step("Building project files"),await c({sdkVersion:n,projectSlug:o,environmentSlug:l,cliUseWorkspace:a,enableEditor:p,inlineTemplates:!0,force:m,analyze:u},i),r.success("Project files built successfully"),r.success("Sync completed successfully!")}catch(e){r.error(`Sync failed: ${e instanceof Error?e.message:String(e)}`,e),process.exit(1)}};
1
+ import{generateProjectFiles as e,logDiagnostics as s}from"../application-spec/index.js";import{exitCli as c}from"../services/index.js";export const runSyncCommand=async(i,r)=>{let{logger:t}=r,{sdkVersion:n,projectSlug:o,environmentSlug:l,cliUseWorkspace:a,enableEditor:p,force:f=!1,analyze:m=!1}=i;try{t.step("Syncing Phoenix project files"),t.step("Building project files");let{diagnostics:c}=await e({sdkVersion:n,projectSlug:o,environmentSlug:l,cliUseWorkspace:a,enableEditor:p,inlineTemplates:!0,force:f,analyze:m},r);s(c,t),t.success("Project files built successfully"),t.success("Sync completed successfully!")}catch(e){t.error(`Sync failed: ${e instanceof Error?e.message:String(e)}`,e),await c(1)}};
@@ -1 +1 @@
1
- import{getLocalOverrides as n,removeWorkspaceOverrides as e,runCommand as i}from"../utils/index.js";export const runUnlinkCommand=async a=>{let{logger:s}=a;try{s.step("Unlinking local SDK packages");let a=n();if(0===a.length)return void s.info("No linked SDK packages found");s.debug(`Found ${a.length} linked packages`),a.forEach(n=>{s.debug(` Unlinked ${n}`)}),e(a),s.success(`Unlinked ${a.length} SDK packages`),await i({command:"pnpm",args:["install","--config.optimistic-repeat-install=false"],description:"Installing packages",quiet:!0},{logger:s}),s.info("\nNext step:"),s.info(" Run: phoenix dev")}catch(n){throw s.error(`Failed to unlink SDK packages: ${n instanceof Error?n.message:String(n)}. pnpm-workspace.yaml may be missing or invalid. Check that an overrides section exists in pnpm-workspace.yaml.`),n}};
1
+ import{assertPnpmProject as n,getLocalOverrides as e,removeWorkspaceOverrides as r}from"../utils/index.js";export const runUnlinkCommand=async o=>{let{logger:i}=o;try{n({projectRoot:process.cwd(),command:"unlink"})}catch(n){throw i.error(n instanceof Error?n.message:String(n)),n}try{i.step("Unlinking local SDK packages");let n=e();if(0===n.length)return void i.info("No linked SDK packages found");i.debug(`Found ${n.length} linked packages`),n.forEach(n=>{i.debug(` Unlinked ${n}`)}),r(n),i.success(`Unlinked ${n.length} SDK packages`),i.info("\nNext steps:\n pnpm install --config.optimistic-repeat-install=false\n phoenix dev")}catch(n){throw i.error(`Failed to unlink SDK packages: ${n instanceof Error?n.message:String(n)}. pnpm-workspace.yaml may be missing or invalid. Check that an overrides section exists in pnpm-workspace.yaml.`),n}};
@@ -1 +1 @@
1
- import{createTRPCClient as e,createWSClient as t,wsLink as o}from"@trpc/client";import{existsSync as r,readFileSync as i,readdirSync as n,rmSync as a,statSync as s}from"fs";import{isAbsolute as l,join as c,relative as p,resolve as d,sep as h}from"path";import f from"ws";import{toPosixPath as w}from"../utils/path.js";let m=".phoenix",u="variants",v=".variant.js",g=".html",y={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},$=e=>{let t=e?.trim();return""===t?void 0:t},b=e=>$(e?.replace(/&(?:amp|lt|gt|quot|#39);/g,e=>y[e]??e)),C=(e,t)=>{let o=e.match(RegExp(`export\\s+const\\s+${t}\\s*=\\s*(['"\`])((?:\\\\.|(?!\\1).)*)\\1`))?.[2];return $(o?.replace(/\\(.)/g,"$1"))};export const readVariantSet=e=>{let t=d(e.projectRoot,m),o=c(t,u),a=d(e.projectRoot,e.directory),f=p(o,a),y=`${m}/${u}/<name>/`;if(""===f||".."===f||f.startsWith(`..${h}`)||l(f))throw Error(`Cannot preview ${e.directory}: the dev server only shows options from a folder of their own below ${m}/${u}/. Write the option files to ${y} and pass that folder`);if(!r(a)||!s(a).isDirectory())throw Error(`Cannot preview ${e.directory}: there is no such folder. Write one ${v} or ${g} file per option to ${y} first`);let $=n(a),E=Math.round(Math.max(0,...$.map(e=>s(c(a,e)).mtimeMs))),x=$.filter(e=>e.endsWith(v)||e.endsWith(g)).sort().map(e=>(e=>{let{webRoot:t,directory:o,name:r,version:n}=e,a=c(o,r),s=i(a,"utf8"),l=`/${w(p(t,a)).split("/").map(encodeURIComponent).join("/")}`,d=r.endsWith(v),h=r.slice(0,-(d?v:g).length),f=s.match(/<meta\b[^>]*\bname=(["'])description\1[^>]*>/i)?.[0];return{id:h,kind:d?"script":"page",label:(d?C(s,"title"):b(s.match(/<title[^>]*>([^<]*)<\/title>/i)?.[1]))??h,description:(d?C(s,"description"):b(f?.match(/\bcontent=(["'])(.*?)\1/i)?.[2]))??"",url:`${l}?t=${n}`}})({webRoot:t,directory:a,name:e,version:E}));if(0===x.length)throw Error(`Cannot preview ${e.directory}: it holds no ${v} or ${g} file, so there is no option to show. Write one file per option; any other file is a helper the options share`);let R=x.find((e,t)=>x.findIndex(t=>t.id===e.id)!==t);if(R)throw Error(`Cannot preview ${e.directory}: two options are named "${R.id}", and the answer names an option by its file name without the suffix. Rename one of the files`);return{directory:a,variantsRoot:o,options:x}};let E=r=>{let i=t({url:`ws://localhost:${r}`,WebSocket:f});return{wsClient:i,client:e({links:[o({client:i})]})}},x=e=>{console.log(JSON.stringify(e,null,2))},R=async e=>{let{wsClient:t,client:o}=E(e);try{let{closed:e}=await o.closeVariantPreview.mutate();x({status:"closed",message:e?"The open preview was closed.":"No preview was open."})}finally{await t.close()}},S=async(e,t,o,i)=>{let{wsClient:s,client:l}=E(t.port);try{let s=await l.previewVariants.mutate({title:t.title??"Which option do you prefer?",description:t.description??"",variants:[...e.options],timeoutMs:o});if("waiting"===s.status)return void x({status:"waiting",message:"The preview is still open and nothing was picked yet. Run the same command again to keep waiting."});if("closed"===s.status)return void x({status:"closed",message:"The preview was closed before an answer was given. The option folder is kept."});await l.claimVariantChoice.mutate({requestId:s.requestId});let c=e.options.find(e=>e.id===s.choice);if(x({status:"chosen",choice:s.choice,label:c?.label??"Original"}),!t.keep)try{a(e.directory,{recursive:!0,force:!0}),r(e.variantsRoot)&&0===n(e.variantsRoot).length&&a(e.variantsRoot,{recursive:!0,force:!0})}catch(t){i.logger.warn(`Could not remove ${e.directory} after the answer: ${t instanceof Error?t.message:String(t)}. Remove the folder yourself`)}}finally{await s.close()}};export const runVariantsCommand=async(e,t)=>{let{logger:o}=t;try{if(e.close)return void await R(e.port);if(void 0===e.directory)throw Error(`Cannot preview without a folder: the options to show are read from it. Pass ${m}/${u}/<name>/, or --close to close the open preview`);let o=(e=>{let t=Math.round((e??540)*1e3);if(!Number.isFinite(t)||t<=0)throw Error(`Cannot wait for ${e} seconds: --timeout is how long the command waits for the answer. Pass a positive number of seconds`);if(t>0x7fffffff)throw Error(`Cannot wait for ${e} seconds: a wait is at most ${Math.floor(2147483.647)} seconds. Pass a smaller --timeout and run the command again while it answers "waiting"`);return t})(e.timeout),r=readVariantSet({projectRoot:process.cwd(),directory:e.directory});await S(r,e,o,t)}catch(e){o.error((e=>{let t;if(!(e instanceof Error))return`Variant preview failed: ${String(e)}`;let o=e.cause;return null!=o&&"object"==typeof o&&"code"in o&&"ECONNREFUSED"===o.code?"Dev server not running. Start with `phoenix dev`":"object"==typeof(t="data"in e?e.data:void 0)&&null!==t&&"code"in t&&"NOT_FOUND"===t.code?"Cannot preview: the dev server that is running has no variant previews, because it runs the legacy pipeline or an older SDK. Variant previews need `phoenix dev` of a project on the application-spec pipeline, started with this SDK version":e.message})(e)),process.exit(1)}};
1
+ import{createTRPCClient as e,createWSClient as t,wsLink as o}from"@trpc/client";import{existsSync as r,readFileSync as i,readdirSync as n,rmSync as a,statSync as s}from"fs";import{isAbsolute as l,join as c,relative as p,resolve as d,sep as h}from"path";import f from"ws";import{exitCli as w}from"../services/index.js";import{toPosixPath as m}from"../utils/path.js";let u=".phoenix",v="variants",g=".variant.js",y=".html",$={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},b=e=>{let t=e?.trim();return""===t?void 0:t},C=e=>b(e?.replace(/&(?:amp|lt|gt|quot|#39);/g,e=>$[e]??e)),E=(e,t)=>{let o=e.match(RegExp(`export\\s+const\\s+${t}\\s*=\\s*(['"\`])((?:\\\\.|(?!\\1).)*)\\1`))?.[2];return b(o?.replace(/\\(.)/g,"$1"))};export const readVariantSet=e=>{let t=d(e.projectRoot,u),o=c(t,v),a=d(e.projectRoot,e.directory),f=p(o,a),w=`${u}/${v}/<name>/`;if(""===f||".."===f||f.startsWith(`..${h}`)||l(f))throw Error(`Cannot preview ${e.directory}: the dev server only shows options from a folder of their own below ${u}/${v}/. Write the option files to ${w} and pass that folder`);if(!r(a)||!s(a).isDirectory())throw Error(`Cannot preview ${e.directory}: there is no such folder. Write one ${g} or ${y} file per option to ${w} first`);let $=n(a),b=Math.round(Math.max(0,...$.map(e=>s(c(a,e)).mtimeMs))),x=$.filter(e=>e.endsWith(g)||e.endsWith(y)).sort().map(e=>(e=>{let{webRoot:t,directory:o,name:r,version:n}=e,a=c(o,r),s=i(a,"utf8"),l=`/${m(p(t,a)).split("/").map(encodeURIComponent).join("/")}`,d=r.endsWith(g),h=r.slice(0,-(d?g:y).length),f=s.match(/<meta\b[^>]*\bname=(["'])description\1[^>]*>/i)?.[0];return{id:h,kind:d?"script":"page",label:(d?E(s,"title"):C(s.match(/<title[^>]*>([^<]*)<\/title>/i)?.[1]))??h,description:(d?E(s,"description"):C(f?.match(/\bcontent=(["'])(.*?)\1/i)?.[2]))??"",url:`${l}?t=${n}`}})({webRoot:t,directory:a,name:e,version:b}));if(0===x.length)throw Error(`Cannot preview ${e.directory}: it holds no ${g} or ${y} file, so there is no option to show. Write one file per option; any other file is a helper the options share`);let R=x.find((e,t)=>x.findIndex(t=>t.id===e.id)!==t);if(R)throw Error(`Cannot preview ${e.directory}: two options are named "${R.id}", and the answer names an option by its file name without the suffix. Rename one of the files`);return{directory:a,variantsRoot:o,options:x}};let x=r=>{let i=t({url:`ws://localhost:${r}`,WebSocket:f});return{wsClient:i,client:e({links:[o({client:i})]})}},R=e=>{console.log(JSON.stringify(e,null,2))},j=async e=>{let{wsClient:t,client:o}=x(e);try{let{closed:e}=await o.closeVariantPreview.mutate();R({status:"closed",message:e?"The open preview was closed.":"No preview was open."})}finally{await t.close()}},S=async(e,t,o,i)=>{let{wsClient:s,client:l}=x(t.port);try{let s=await l.previewVariants.mutate({title:t.title??"Which option do you prefer?",description:t.description??"",variants:[...e.options],timeoutMs:o});if("waiting"===s.status)return void R({status:"waiting",message:"The preview is still open and nothing was picked yet. Run the same command again to keep waiting."});if("closed"===s.status)return void R({status:"closed",message:"The preview was closed before an answer was given. The option folder is kept."});await l.claimVariantChoice.mutate({requestId:s.requestId});let c=e.options.find(e=>e.id===s.choice);if(R({status:"chosen",choice:s.choice,label:c?.label??"Original"}),!t.keep)try{a(e.directory,{recursive:!0,force:!0}),r(e.variantsRoot)&&0===n(e.variantsRoot).length&&a(e.variantsRoot,{recursive:!0,force:!0})}catch(t){i.logger.warn(`Could not remove ${e.directory} after the answer: ${t instanceof Error?t.message:String(t)}. Remove the folder yourself`)}}finally{await s.close()}};export const runVariantsCommand=async(e,t)=>{let{logger:o}=t;try{if(e.close)return void await j(e.port);if(void 0===e.directory)throw Error(`Cannot preview without a folder: the options to show are read from it. Pass ${u}/${v}/<name>/, or --close to close the open preview`);let o=(e=>{let t=Math.round((e??540)*1e3);if(!Number.isFinite(t)||t<=0)throw Error(`Cannot wait for ${e} seconds: --timeout is how long the command waits for the answer. Pass a positive number of seconds`);if(t>0x7fffffff)throw Error(`Cannot wait for ${e} seconds: a wait is at most ${Math.floor(2147483.647)} seconds. Pass a smaller --timeout and run the command again while it answers "waiting"`);return t})(e.timeout),r=readVariantSet({projectRoot:process.cwd(),directory:e.directory});await S(r,e,o,t)}catch(e){o.error((e=>{let t;if(!(e instanceof Error))return`Variant preview failed: ${String(e)}`;let o=e.cause;return null!=o&&"object"==typeof o&&"code"in o&&"ECONNREFUSED"===o.code?"Dev server not running. Start with `phoenix dev`":"object"==typeof(t="data"in e?e.data:void 0)&&null!==t&&"code"in t&&"NOT_FOUND"===t.code?"Cannot preview: the dev server that is running has no variant previews, because it runs the legacy pipeline or an older SDK. Variant previews need `phoenix dev` of a project on the application-spec pipeline, started with this SDK version":e.message})(e)),await w(1)}};
@@ -0,0 +1 @@
1
+ export { LINGUI_CONFIG_PATH, bootstrapLinguiCatalogs, compileLingui, extractAndCompileLingui } from './lingui.js';
@@ -0,0 +1 @@
1
+ export{LINGUI_CONFIG_PATH,bootstrapLinguiCatalogs,compileLingui,extractAndCompileLingui}from"./lingui.js";
@@ -0,0 +1,18 @@
1
+ import { type Logger } from '../utils/index.js';
2
+ /**
3
+ * The project's Lingui configuration, which sync generates, relative to the project root. The Lingui
4
+ * CLI is given this path and Vite loads its plugins from a fresh snapshot of this file, so a
5
+ * `.linguirc` that earlier SDK versions left in the project root is not read. The Lingui CLI searches
6
+ * the working directory instead only when the named file is missing; generation writes it with the rest
7
+ * of `.phoenix/` before Phoenix runs Lingui or Vite. Missing-catalog bootstrap compiles with a temporary
8
+ * copy that stages output while keeping every locale available for fallback reads.
9
+ */
10
+ export declare const LINGUI_CONFIG_PATH = ".phoenix/.linguirc";
11
+ interface LinguiCommandContext {
12
+ readonly logger: Logger;
13
+ }
14
+ export declare const compileLingui: (context: LinguiCommandContext) => Promise<void>;
15
+ export declare const extractAndCompileLingui: (context: LinguiCommandContext) => Promise<void>;
16
+ /** Creates only catalogs missing from a project's generated domain imports; continuous updates stay opt-in. */
17
+ export declare const bootstrapLinguiCatalogs: (locales: readonly string[], context: LinguiCommandContext) => Promise<void>;
18
+ export {};
@@ -0,0 +1 @@
1
+ import{constants as i}from"node:fs";import{copyFile as a,mkdir as t,mkdtemp as e,readFile as o,rm as n,writeFile as s}from"node:fs/promises";import{dirname as r,join as l}from"node:path";import{exists as c,runSdkTool as g}from"../utils/index.js";export const LINGUI_CONFIG_PATH=".phoenix/.linguirc";let p=async i=>{await g({tool:{packageName:"@lingui/cli",binName:"lingui"},args:["extract","--config",LINGUI_CONFIG_PATH],description:"Extracting i18n messages",quiet:!0,extraEnv:{LC_ALL:"en_US.UTF-8"}},i)};export const compileLingui=async i=>{await g({tool:{packageName:"@lingui/cli",binName:"lingui"},args:["compile","--config",LINGUI_CONFIG_PATH],description:"Compiling i18n messages",quiet:!0},i)};export const extractAndCompileLingui=async i=>{await p(i),await compileLingui(i)};export const bootstrapLinguiCatalogs=async(p,m)=>{let u,f=(await Promise.all(p.map(async i=>await c(`src/locales/${i}/messages.ts`)?[]:[i]))).flat();if(0!==f.length)try{m.logger.info(`Bootstrapping missing i18n catalogs: ${f.join(", ")}`);let n=(await Promise.all(f.map(async i=>await c(`src/locales/${i}/messages.po`)?[]:[i]))).flat();n.length>0&&await g({tool:{packageName:"@lingui/cli",binName:"lingui"},args:["extract","--config",LINGUI_CONFIG_PATH,"--locale",n.join(",")],description:"Extracting missing i18n catalogs",quiet:!0,extraEnv:{LC_ALL:"en_US.UTF-8"}},m);let p=JSON.parse(await o(LINGUI_CONFIG_PATH,"utf-8"));if("object"!=typeof p||null===p||Array.isArray(p))throw Error(`${LINGUI_CONFIG_PATH} is not a configuration object`);u=await e(".phoenix/lingui-bootstrap-");let N=l(u,".linguirc");for(let e of(await s(N,JSON.stringify({...p,catalogsMergePath:l(u,"compiled","{locale}","messages").replaceAll("\\","/")})),await g({tool:{packageName:"@lingui/cli",binName:"lingui"},args:["compile","--config",N],description:"Compiling missing i18n catalogs",quiet:!0},m),f)){let o=l("src","locales",e,"messages.ts");await t(r(o),{recursive:!0}),await a(l(u,"compiled",e,"messages.ts"),o,i.COPYFILE_EXCL)}}catch(i){throw Error(`Cannot bootstrap i18n catalogs for ${f.join(", ")}: ${i instanceof Error?i.message:String(i)}. Fix the reported Lingui error and restart phoenix dev, or run phoenix sync to update all catalogs.`,{cause:i})}finally{void 0!==u&&await n(u,{recursive:!0,force:!0})}};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node --stack-size=8192
2
- import{mkdir as e,readFile as a,rm as o,writeFile as r}from"node:fs/promises";import{dirname as i,join as t}from"node:path";import{format as n}from"prettier";import{prettierrc as s}from"@salsita-ai/common/prettier";import{buildPhoenixDefinitions as m,generateStandaloneCommonAdminFiles as p,parseCommonAdminSpec as c}from"#package/application-spec";import{getAllPhxDefinitions as l}from"#package/domain";import{swcEvalExpressionParser as d}from"../application-spec/swc-module-analyzer.js";let f=async e=>{try{return await a(e,"utf-8")}catch{return}},w=async(e,a)=>{let o=await n(a,{...s,filepath:e});await f(e)!==o&&await r(e,o)},v="./src/domain/admin-domain/__generated",h=m(l()),u=c(h,{evalExpressionParser:d});if(!u.ok)throw console.error(u.errors),Error("Common admin application spec contains errors");let j=p({enhancedModelImportPaths:{domainModel:"../../core/index.js",model:"./model/index.js",violation:"../../invariants/violation.js"},phxDefinitions:h,spec:u.value,versionImportPaths:{model:"../../../../core/index.js",reflection:"../../../../core/index.js"}});await e(v,{recursive:!0}),await Promise.all(j.map(async a=>{let o=t(v,a.path);await e(i(o),{recursive:!0}),await w(o,a.content)})),await o(t(v,"presets.ts"),{force:!0});
2
+ import{mkdir as e,readFile as r,rm as a,writeFile as o}from"node:fs/promises";import{dirname as i,join as t}from"node:path";import{format as n}from"prettier";import{prettierrc as s}from"@salsita-ai/common/prettier";import{buildPhoenixDefinitions as m,generateStandaloneCommonAdminFiles as c,parseCommonAdminSpec as p}from"#package/application-spec";import{getAllPhxDefinitions as l}from"#package/domain";import{swcEvalExpressionParser as d}from"../application-spec/swc-module-analyzer.js";let f=async e=>{try{return await r(e,"utf-8")}catch{return}},w=async(e,r)=>{let a=await n(r,{...s,filepath:e});await f(e)!==a&&await o(e,a)},h="./src/domain/admin-domain/__generated",u=m(l()),v=p(u,{evalExpressionParser:d});if(!v.ok)throw console.error(v.errors),Error("Common admin application spec contains errors");let j=c({enhancedModelImportPaths:{domainModel:"../../core/index.js",model:"./model/index.js",violation:"../../core/index.js"},phxDefinitions:u,spec:v.value,versionImportPaths:{model:"../../../../core/index.js",reflection:"../../../../core/index.js"}});await e(h,{recursive:!0}),await Promise.all(j.map(async r=>{let a=t(h,r.path);await e(i(a),{recursive:!0}),await w(a,r.content)})),await a(t(h,"presets.ts"),{force:!0});
@@ -1,19 +1,21 @@
1
1
  import { type ViteDevServer } from 'vite';
2
+ import type { ApplicationSpec } from '#package/application-spec';
2
3
  import type { Logger } from '../utils/index.js';
3
4
  import type { PhoenixPubSub } from './phoenix-pubsub.js';
4
5
  import type { VariantFileEdit } from './variant-file-session.js';
6
+ export declare const WATCH_PATTERNS: string[];
7
+ export declare const IGNORED_PATTERNS: string[];
5
8
  /** Configuration for {@link ApplicationSpecProjectWatcher}. */
6
9
  export interface ApplicationSpecProjectWatcherConfig {
7
10
  readonly pubsub: PhoenixPubSub;
8
11
  readonly logger: Logger;
9
- readonly onRebuilt?: () => void;
12
+ /** Called with the application spec of every rebuild that succeeded. */
13
+ readonly onRebuilt?: (applicationSpec: ApplicationSpec) => void;
10
14
  readonly onViteServerChange?: (viteServer: ViteDevServer) => void;
11
15
  readonly sdkVersion: string;
12
16
  readonly projectSlug: string;
13
17
  readonly environmentSlug: string;
14
18
  readonly cliUseWorkspace?: boolean;
15
- readonly name?: string;
16
- readonly description?: string;
17
19
  readonly enableEditor: boolean;
18
20
  readonly inlineTemplates: boolean;
19
21
  readonly useServer: boolean;
@@ -1,4 +1,4 @@
1
- import{resolve as e}from"path";import t from"promise-queue";import{Subject as i,buffer as s,debounceTime as r}from"rxjs";import{createServer as o,normalizePath as n}from"vite";import{watch as l}from"#package/watch";import{ApplicationSpecBuilder as h}from"../application-spec/application-spec-builder.js";import{logDiagnostics as a}from"../application-spec/metrics/index.js";import{syncTemplateFiles as c}from"../application-spec/template-files.js";import{buildWebhooks as u}from"../webhooks/index.js";import{getViteDevConfig as p}from"./vite-config.js";let g=["spec/**/*.{yaml,yml}","src/**/*.{ts,tsx,yaml,yml,json,html,css}","templates/*.html",".env",".env.generated"],d=["src/locales/**/*.{ts,tsx}",".phoenix/**"];export class ApplicationSpecProjectWatcher{watcher=null;subscription=null;rebuildQueue=new t(1,1/0);changeSubject$=new i;viteServer=null;pubsub;logger;onRebuilt;onViteServerChange;builder;useServer;isShuttingDown=!1;suspended=!1;heldChanges=new Set;constructor(e){this.pubsub=e.pubsub,this.logger=e.logger,this.onRebuilt=e.onRebuilt,this.onViteServerChange=e.onViteServerChange,this.builder=new h({logger:e.logger,sdkVersion:e.sdkVersion,projectSlug:e.projectSlug,environmentSlug:e.environmentSlug,cliUseWorkspace:e.cliUseWorkspace,name:e.name,description:e.description,enableEditor:e.enableEditor,inlineTemplates:e.inlineTemplates}),this.useServer=e.useServer}start(e){this.viteServer=e,this.setupFileWatcher(),this.setupRebuildSubscription()}applyVariantFiles(e){this.rebuildQueue.add(async()=>{this.isShuttingDown||await this.rebuild(new Set(e.map(e=>e.fileName)),!1,!0)})}suspend(){this.suspended=!0}resume(){for(let e of(this.suspended=!1,this.heldChanges))this.changeSubject$.next(e);this.heldChanges.clear()}async close(){this.isShuttingDown=!0,this.watcher&&(await this.watcher.close(),this.watcher=null),this.subscription?.unsubscribe(),this.changeSubject$.complete()}setupFileWatcher(){this.watcher=l(g,{ignored:d,cwd:process.cwd(),persistent:!0,ignoreInitial:!1}),this.watcher.on("all",(e,t)=>{if("change"===e||"add"===e||"unlink"===e){if(this.suspended)return void this.heldChanges.add(t);this.logger.info(`
2
- 📝 Detected ${e}: ${t}`),this.changeSubject$.next(t)}})}setupRebuildSubscription(){let e=this.changeSubject$.pipe(r(10));this.subscription=this.changeSubject$.pipe(s(e)).subscribe(e=>{let t=new Set(e),i=t.has(".env");this.rebuildQueue.add(async()=>{this.isShuttingDown||(this.logger.info(`
1
+ import{mkdirSync as e}from"fs";import{resolve as t}from"path";import i from"promise-queue";import{Subject as s,buffer as r,debounceTime as o}from"rxjs";import{createServer as n,normalizePath as l}from"vite";import{watch as a}from"#package/watch";import{ApplicationSpecBuilder as h}from"../application-spec/application-spec-builder.js";import{logDiagnostics as c}from"../application-spec/metrics/index.js";import{syncTemplateFiles as u}from"../application-spec/template-files.js";import{buildWebhooks as p}from"../webhooks/index.js";import{getViteDevConfig as g}from"./vite-config.js";export const WATCH_PATTERNS=["package.json","spec/**/*.{yaml,yml}","src/**/*.{ts,tsx,yaml,yml,json,html,css}","templates/*.html",".env",".env.generated",".phoenix/.env.generated"];export const IGNORED_PATTERNS=["src/locales/**/*.{ts,tsx}",".phoenix/!(.env.generated)/**"];export class ApplicationSpecProjectWatcher{watcher=null;subscription=null;rebuildQueue=new i(1,1/0);changeSubject$=new s;viteServer=null;pubsub;logger;onRebuilt;onViteServerChange;builder;useServer;isShuttingDown=!1;suspended=!1;heldChanges=new Set;constructor(e){this.pubsub=e.pubsub,this.logger=e.logger,this.onRebuilt=e.onRebuilt,this.onViteServerChange=e.onViteServerChange,this.builder=new h({logger:e.logger,sdkVersion:e.sdkVersion,projectSlug:e.projectSlug,environmentSlug:e.environmentSlug,cliUseWorkspace:e.cliUseWorkspace,enableEditor:e.enableEditor,inlineTemplates:e.inlineTemplates}),this.useServer=e.useServer}start(e){this.viteServer=e,this.setupFileWatcher(),this.setupRebuildSubscription()}applyVariantFiles(e){this.rebuildQueue.add(async()=>{this.isShuttingDown||await this.rebuild(new Set(e.map(e=>e.fileName)),!1,!0)})}suspend(){this.suspended=!0}resume(){for(let e of(this.suspended=!1,this.heldChanges))this.changeSubject$.next(e);this.heldChanges.clear()}async close(){this.isShuttingDown=!0,this.watcher&&(await this.watcher.close(),this.watcher=null),this.subscription?.unsubscribe(),this.changeSubject$.complete()}setupFileWatcher(){e(t(process.cwd(),"src"),{recursive:!0}),this.watcher=a(WATCH_PATTERNS,{ignored:IGNORED_PATTERNS,cwd:process.cwd(),persistent:!0,ignoreInitial:!1}),this.watcher.on("all",(e,t)=>{if("change"===e||"add"===e||"unlink"===e){if(this.suspended)return void this.heldChanges.add(t);this.logger.info(`
2
+ 📝 Detected ${e}: ${t}`),this.changeSubject$.next(t)}})}setupRebuildSubscription(){let e=this.changeSubject$.pipe(o(10));this.subscription=this.changeSubject$.pipe(r(e)).subscribe(e=>{let t=new Set(e),i=t.has(".env");this.rebuildQueue.add(async()=>{this.isShuttingDown||(this.logger.info(`
3
3
  🔨 Rebuilding spec files...
4
- `),await this.rebuild(t,i,!1))})})}async rebuild(t,i,s){try{let r=this.viteServer;if(!r)throw Error("Cannot rebuild the project: the watcher has no Vite server yet, because it was not started. Start the watcher before applying files");let l=await c();if(this.isShuttingDown)return;let h=await this.builder.build({compile:!s});if(this.isShuttingDown)return;if(a(h.diagnostics,this.logger),!h.ok){for(let e of h.errors)this.logger.error(`[${e.code}] ${e.message}${e.file?` (${e.file})`:""}`);this.pubsub.specFile$.next({rawProjectFiles:h.rawProjectFiles,projectRoot:process.cwd()});return}this.onRebuilt?.();let{application:g,changedFiles:d}=h,w=r.moduleGraph,b=Date.now(),f=new Set,m=process.cwd(),S=e=>{let t=w.getModulesByFile(n(e));if(t)for(let e of t)w.invalidateModule(e,f,b,!0)};for(let i of t)S(e(m,i));for(let t of d)S(e(m,`.phoenix/${t.path}`));if(this.pubsub.specFile$.next({rawProjectFiles:g.rawProjectFiles,projectRoot:process.cwd(),configurationSchemaHash:g.applicationSpec.configurator.configurationSchema.hash}),this.isShuttingDown)return;if(i){if(await r.close(),this.isShuttingDown)return;let e=await p({templateFiles:l});if(this.isShuttingDown)return;let t=await o(e);if(this.isShuttingDown||(await t.listen(),this.isShuttingDown))return void await t.close();this.viteServer=t,this.onViteServerChange?.(t),this.logger.success("Vite server restarted (env changed)")}if(this.useServer&&!s){if(this.logger.step("Building webhooks"),await u({experimental:!0,skipNodeEnvOverride:!0,webhookEntryPoint:"./.phoenix/.swc/.phoenix/webhook.js",preserveExistingOutput:!0}),this.isShuttingDown)return;this.logger.success("Webhooks rebuilt successfully")}this.logger.success("Project files rebuilt successfully")}catch(e){this.logger.error(`Build failed: ${e instanceof Error?e.message:String(e)}`,e)}}}
4
+ `),await this.rebuild(t,i,!1))})})}async rebuild(e,i,s){try{let r=this.viteServer;if(!r)throw Error("Cannot rebuild the project: the watcher has no Vite server yet, because it was not started. Start the watcher before applying files");let o=await u();if(this.isShuttingDown)return;let a=await this.builder.build({compile:!s});if(this.isShuttingDown)return;if(c(a.diagnostics,this.logger),!a.ok){for(let e of a.errors)this.logger.error(`[${e.code}] ${e.message}${e.file?` (${e.file})`:""}`);this.pubsub.specFile$.next({rawProjectFiles:a.rawProjectFiles,projectRoot:process.cwd()});return}let{application:h,changedFiles:d}=a;this.onRebuilt?.(h.applicationSpec);let w=r.moduleGraph,b=Date.now(),f=new Set,S=process.cwd(),m=e=>{let t=w.getModulesByFile(l(e));if(t)for(let e of t)w.invalidateModule(e,f,b,!0)};for(let i of e)m(t(S,i));for(let e of d)m(t(S,`.phoenix/${e.path}`));if(this.pubsub.specFile$.next({rawProjectFiles:h.rawProjectFiles,projectRoot:process.cwd(),configurationSchemaHash:h.applicationSpec.configurator.configurationSchema.hash}),this.isShuttingDown)return;if(i){if(await r.close(),this.isShuttingDown)return;let e=await g({templateFiles:o});if(this.isShuttingDown)return;let t=await n(e);if(this.isShuttingDown||(await t.listen(),this.isShuttingDown))return void await t.close();this.viteServer=t,this.onViteServerChange?.(t),this.logger.success("Vite server restarted (env changed)")}if(this.useServer&&!s){if(this.logger.step("Building webhooks"),await p({experimental:!0,skipNodeEnvOverride:!0,webhookEntryPoint:"./.phoenix/.swc/.phoenix/webhook.js",preserveExistingOutput:!0}),this.isShuttingDown)return;this.logger.success("Webhooks rebuilt successfully")}this.logger.success("Project files rebuilt successfully")}catch(e){this.logger.error(`Build failed: ${e instanceof Error?e.message:String(e)}`,e)}}}
@@ -5,6 +5,7 @@ import { z } from 'zod';
5
5
  declare const ServerCredentials: z.ZodObject<{
6
6
  token: z.ZodString;
7
7
  userId: z.ZodString;
8
+ customerId: z.ZodOptional<z.ZodString>;
8
9
  customerSlug: z.ZodString;
9
10
  customerName: z.ZodString;
10
11
  studioUrl: z.ZodOptional<z.ZodString>;
@@ -12,6 +13,7 @@ declare const ServerCredentials: z.ZodObject<{
12
13
  }, "strip", z.ZodTypeAny, {
13
14
  token: string;
14
15
  userId: string;
16
+ customerId?: string | undefined;
15
17
  customerSlug: string;
16
18
  customerName: string;
17
19
  studioUrl?: string | undefined;
@@ -19,6 +21,7 @@ declare const ServerCredentials: z.ZodObject<{
19
21
  }, {
20
22
  token: string;
21
23
  userId: string;
24
+ customerId?: string | undefined;
22
25
  customerSlug: string;
23
26
  customerName: string;
24
27
  studioUrl?: string | undefined;
@@ -1,2 +1,2 @@
1
- import{chmod as e,mkdir as r,readFile as t,writeFile as s}from"node:fs/promises";import{homedir as n}from"node:os";import{dirname as a,join as i}from"node:path";import{z as o}from"zod";let l=o.object({token:o.string().min(1),userId:o.string(),customerSlug:o.string(),customerName:o.string(),studioUrl:o.string().optional(),createdAt:o.string()}),c=o.object({version:o.literal(1),servers:o.record(o.string(),l)}),d={version:1,servers:{}};export const getCredentialsPath=()=>process.env.PHOENIX_CREDENTIALS_FILE??i(n(),".phoenix","credentials.json");let u=e=>new URL(e).origin,g=async()=>{let e;try{e=await t(getCredentialsPath(),"utf8")}catch(e){if(e instanceof Error&&"code"in e&&"ENOENT"===e.code)return d;throw e}let r=c.safeParse((e=>{try{return JSON.parse(e)}catch{return null}})(e));if(!r.success)throw Error(`The credentials file ${getCredentialsPath()} is not valid. Delete it and run \`phoenix login\` again.`);return r.data},m=async t=>{let n=getCredentialsPath();return await r(a(n),{recursive:!0,mode:448}),await s(n,`${JSON.stringify(t,null,2)}
1
+ import{chmod as e,mkdir as r,readFile as t,writeFile as s}from"node:fs/promises";import{homedir as n}from"node:os";import{dirname as i,join as o}from"node:path";import{z as a}from"zod";let l=a.object({token:a.string().min(1),userId:a.string(),customerId:a.string().uuid().optional(),customerSlug:a.string(),customerName:a.string(),studioUrl:a.string().optional(),createdAt:a.string()}),c=a.object({version:a.literal(1),servers:a.record(a.string(),l)}),d={version:1,servers:{}};export const getCredentialsPath=()=>process.env.PHOENIX_CREDENTIALS_FILE??o(n(),".phoenix","credentials.json");let u=e=>new URL(e).origin,g=async()=>{let e;try{e=await t(getCredentialsPath(),"utf8")}catch(e){if(e instanceof Error&&"code"in e&&"ENOENT"===e.code)return d;throw e}let r=c.safeParse((e=>{try{return JSON.parse(e)}catch{return null}})(e));if(!r.success)throw Error(`The credentials file ${getCredentialsPath()} is not valid. Delete it and run \`phoenix login\` again.`);return r.data},m=async t=>{let n=getCredentialsPath();return await r(i(n),{recursive:!0,mode:448}),await s(n,`${JSON.stringify(t,null,2)}
2
2
  `,{mode:384}),await e(n,384),n};export const getServerCredentials=async e=>(await g()).servers[u(e)]??null;export const saveServerCredentials=async(e,r)=>{let t=await g();return m({...t,servers:{...t.servers,[u(e)]:r}})};export const removeServerCredentials=async e=>{let r=await g(),{[u(e)]:t,...s}=r.servers;await m({...r,servers:s})};
@@ -0,0 +1,5 @@
1
+ type BeforeCliExit = (exitCode: number) => Promise<void>;
2
+ export declare const setBeforeCliExit: (handler: BeforeCliExit) => (() => void);
3
+ /** Gives the Phoenix CLI a chance to finish best-effort work, then preserves process.exit semantics. */
4
+ export declare const exitCli: (exitCode: number) => Promise<never>;
5
+ export {};
@@ -0,0 +1 @@
1
+ let t=null;export const setBeforeCliExit=e=>(t=e,()=>{t===e&&(t=null)});export const exitCli=async e=>{try{await t?.(e)}finally{process.exit(e)}};
@@ -8,6 +8,7 @@ export { MockTemplateWatcher, type MockTemplateWatcherConfig } from './mock-temp
8
8
  export { ApplicationSpecProjectWatcher, type ApplicationSpecProjectWatcherConfig, } from './application-spec-project-watcher.js';
9
9
  export { ApplicationSpecStoryWatcher, type ApplicationSpecStoryWatcherConfig, } from './application-spec-story-watcher.js';
10
10
  export { LinguiWatcher, type LinguiWatcherConfig } from './lingui-watcher.js';
11
+ export { bootstrapLinguiCatalogs, extractAndCompileLingui } from '../lingui/index.js';
11
12
  export { loadMockTemplates, parseMockTemplateYaml, type LoadMockTemplatesResult, type ParsedMockTemplate, } from './spec-files.js';
12
13
  export { LOG_STREAMS, LogBus, type LogEntry, type LogLevel, type LogPage, type LogQuery, type LogStream, } from './log-bus.js';
13
14
  export { createBusLogger, type CreateBusLoggerOptions } from './bus-logger.js';
@@ -18,6 +19,8 @@ export { STORY_DEV_MARKER_PATH, readActiveStoryDevMarker, type StoryDevMarker }
18
19
  export { composeDefaultBanner } from './phx-banner-plugin.js';
19
20
  export { getViteBuildConfigs, getViteDevConfig, setViteLogSink, type ViteLogSink, type ViteLogSinkOptions, } from './vite-config.js';
20
21
  export { getServerCredentials, removeServerCredentials, saveServerCredentials } from './cli-credentials.js';
22
+ export { exitCli, setBeforeCliExit } from './cli-exit.js';
21
23
  export { createSourceArchive, extractSourceArchive } from './source-archive.js';
22
24
  export { resolveSignedInDevelopmentEnvironment } from './signed-in-development-environment.js';
25
+ export { createTelemetryClient, resolveTelemetryCommand, type CommandTelemetryAttempt, type TelemetryAssociation, type TelemetryClient, type TelemetryCommand, } from './telemetry/index.js';
23
26
  export { DEFAULT_PHOENIX_REGION, PHOENIX_REGIONS, PUBLIC_PHOENIX_REGIONS, getRegionServerUrl, getRegionStudioUrl, } from './phoenix-regions.js';
@@ -1 +1 @@
1
- export{PhoenixPubSub}from"./phoenix-pubsub.js";export{PhoenixStore}from"./phoenix-store.js";export{PhoenixApplication}from"./phoenix-application.js";export{VariantFileSession}from"./variant-file-session.js";export{VariantPreviewService}from"./variant-preview-service.js";export{MockTemplateWatcher}from"./mock-template-watcher.js";export{ApplicationSpecProjectWatcher}from"./application-spec-project-watcher.js";export{ApplicationSpecStoryWatcher}from"./application-spec-story-watcher.js";export{LinguiWatcher}from"./lingui-watcher.js";export{loadMockTemplates,parseMockTemplateYaml}from"./spec-files.js";export{LOG_STREAMS,LogBus}from"./log-bus.js";export{createBusLogger}from"./bus-logger.js";export{patchConsole}from"./console-capture.js";export{WebhookTunnelMonitor}from"./webhook-tunnel-monitor.js";export{compileWithSwc,watchWithSwc}from"./swc.js";export{STORY_DEV_MARKER_PATH,readActiveStoryDevMarker}from"./story-dev-marker.js";export{composeDefaultBanner}from"./phx-banner-plugin.js";export{getViteBuildConfigs,getViteDevConfig,setViteLogSink}from"./vite-config.js";export{getServerCredentials,removeServerCredentials,saveServerCredentials}from"./cli-credentials.js";export{createSourceArchive,extractSourceArchive}from"./source-archive.js";export{resolveSignedInDevelopmentEnvironment}from"./signed-in-development-environment.js";export{DEFAULT_PHOENIX_REGION,PHOENIX_REGIONS,PUBLIC_PHOENIX_REGIONS,getRegionServerUrl,getRegionStudioUrl}from"./phoenix-regions.js";
1
+ export{PhoenixPubSub}from"./phoenix-pubsub.js";export{PhoenixStore}from"./phoenix-store.js";export{PhoenixApplication}from"./phoenix-application.js";export{VariantFileSession}from"./variant-file-session.js";export{VariantPreviewService}from"./variant-preview-service.js";export{MockTemplateWatcher}from"./mock-template-watcher.js";export{ApplicationSpecProjectWatcher}from"./application-spec-project-watcher.js";export{ApplicationSpecStoryWatcher}from"./application-spec-story-watcher.js";export{LinguiWatcher}from"./lingui-watcher.js";export{bootstrapLinguiCatalogs,extractAndCompileLingui}from"../lingui/index.js";export{loadMockTemplates,parseMockTemplateYaml}from"./spec-files.js";export{LOG_STREAMS,LogBus}from"./log-bus.js";export{createBusLogger}from"./bus-logger.js";export{patchConsole}from"./console-capture.js";export{WebhookTunnelMonitor}from"./webhook-tunnel-monitor.js";export{compileWithSwc,watchWithSwc}from"./swc.js";export{STORY_DEV_MARKER_PATH,readActiveStoryDevMarker}from"./story-dev-marker.js";export{composeDefaultBanner}from"./phx-banner-plugin.js";export{getViteBuildConfigs,getViteDevConfig,setViteLogSink}from"./vite-config.js";export{getServerCredentials,removeServerCredentials,saveServerCredentials}from"./cli-credentials.js";export{exitCli,setBeforeCliExit}from"./cli-exit.js";export{createSourceArchive,extractSourceArchive}from"./source-archive.js";export{resolveSignedInDevelopmentEnvironment}from"./signed-in-development-environment.js";export{createTelemetryClient,resolveTelemetryCommand}from"./telemetry/index.js";export{DEFAULT_PHOENIX_REGION,PHOENIX_REGIONS,PUBLIC_PHOENIX_REGIONS,getRegionServerUrl,getRegionStudioUrl}from"./phoenix-regions.js";
@@ -1 +1 @@
1
- import e from"promise-queue";import{Subject as t,buffer as i,debounceTime as s}from"rxjs";import{watch as r}from"#package/watch";import{compileLingui as n,extractAndCompileLingui as o}from"./lingui.js";let c=["src/**/*.{ts,tsx}","src/locales/**/*.po"],g=["src/locales/**/*.{ts,tsx}"];export class LinguiWatcher{watcher=null;subscription=null;runQueue=new e(1,1/0);changeSubject$=new t;logger;isShuttingDown=!1;constructor(e){this.logger=e.logger}start(){this.setupFileWatcher(),this.setupRunSubscription()}trigger(){this.changeSubject$.next("<codegen-rebuild>")}async close(){this.isShuttingDown=!0,this.watcher&&(await this.watcher.close(),this.watcher=null),this.subscription?.unsubscribe(),this.changeSubject$.complete()}setupFileWatcher(){this.watcher=r(c,{ignored:g,cwd:process.cwd(),ignoreInitial:!0,persistent:!0}),this.watcher.on("all",(e,t)=>{("change"===e||"add"===e||"unlink"===e)&&(this.logger.debug(`Lingui source ${e}: ${t}`),this.changeSubject$.next(t))}).on("error",e=>{this.logger.error(`Lingui watcher error: ${e instanceof Error?e.message:String(e)}`,e)})}setupRunSubscription(){let e=this.changeSubject$.pipe(s(200));this.subscription=this.changeSubject$.pipe(i(e)).subscribe(e=>{let t=e.some(e=>!e.endsWith(".po"));this.runQueue.add(async()=>{if(!this.isShuttingDown)try{t?(this.logger.info("Lingui sources changed, extracting and compiling i18n messages..."),await o({logger:this.logger})):(this.logger.info("Lingui catalogs changed, compiling i18n messages..."),await n({logger:this.logger}))}catch(e){this.logger.error(`Lingui update failed: ${e instanceof Error?e.message:String(e)}`,e)}})})}}
1
+ import e from"promise-queue";import{Subject as i,buffer as t,debounceTime as s}from"rxjs";import{watch as r}from"#package/watch";import{compileLingui as n,extractAndCompileLingui as o}from"../lingui/index.js";let c=["src/**/*.{ts,tsx}","src/locales/**/*.po"],g=["src/locales/**/*.{ts,tsx}"];export class LinguiWatcher{watcher=null;subscription=null;runQueue=new e(1,1/0);changeSubject$=new i;logger;isShuttingDown=!1;constructor(e){this.logger=e.logger}start(){this.setupFileWatcher(),this.setupRunSubscription()}trigger(){this.changeSubject$.next("<codegen-rebuild>")}async close(){this.isShuttingDown=!0,this.watcher&&(await this.watcher.close(),this.watcher=null),this.subscription?.unsubscribe(),this.changeSubject$.complete()}setupFileWatcher(){this.watcher=r(c,{ignored:g,cwd:process.cwd(),ignoreInitial:!0,persistent:!0}),this.watcher.on("all",(e,i)=>{("change"===e||"add"===e||"unlink"===e)&&(this.logger.debug(`Lingui source ${e}: ${i}`),this.changeSubject$.next(i))}).on("error",e=>{this.logger.error(`Lingui watcher error: ${e instanceof Error?e.message:String(e)}`,e)})}setupRunSubscription(){let e=this.changeSubject$.pipe(s(200));this.subscription=this.changeSubject$.pipe(t(e)).subscribe(e=>{let i=e.some(e=>!e.endsWith(".po"));this.runQueue.add(async()=>{if(!this.isShuttingDown)try{i?(this.logger.info("Lingui sources changed, extracting and compiling i18n messages..."),await o({logger:this.logger})):(this.logger.info("Lingui catalogs changed, compiling i18n messages..."),await n({logger:this.logger}))}catch(e){this.logger.error(`Lingui update failed: ${e instanceof Error?e.message:String(e)}`,e)}})})}}
@@ -1,2 +1,2 @@
1
- import{writeFile as e}from"node:fs/promises";import{createApiBaseClient as i}from"#package/client";import{resolveApplicationSpecDeploymentData as t}from"../application-spec/index.js";import{formatEnvContent as r,uploadFilesWithPresignedUrls as a}from"../utils/index.js";import{getDevelopmentCredentialHint as o,getDevelopmentHeaders as s}from"./development-credential.js";export const prepareDevelopmentEnvironment=async(n,l)=>{let{logger:p}=l,{projectSlug:d,environmentSlug:m,serverUrl:c,credential:h,outFile:v,skipUpload:f,overrideSchema:u,projectVersion:g}=n;p.step("Preparing development environment"),p.info(`Preparing development environment for project "${d}", environment "${m}"`);let E=i(c);p.debug(`Using server URL: ${c}`);let b=await t({skipUpload:f,logger:p});p.info("Preparing and activating the development deployment on the server...");let{data:P,error:$}=await E.POST("/environments/development/prepare",{body:{applicationVersion:b.applicationVersion,publishedDataHash:b.publishedDataHash,useAuthHook:b.useAuthHook,overrideSchema:u,configurationSchema:{version:b.schemaVersion,schema:b.schema},adminConfigurationSchema:b.adminSchema?{schema:b.adminSchema,version:b.adminSchemaVersion}:void 0,chat:b.chat,embeddings:b.embeddings,...b.assistant?{assistant:!0}:{},acl:{canCreate:b.aclCanCreate},privateFiles:[...b.assets.privateFilePaths],publicFiles:[...b.assets.publicFilePaths],sdkVersion:g},headers:s(h,{projectSlug:d,environmentSlug:m})});if($)throw Error(`Failed to prepare development deployment for ${d}/${m} on ${c}: ${$.message}. ${o(h,d)}`);if(!P)throw Error("No data returned from server while preparing the development deployment.");let{environmentVariables:y,privateUploadUrls:w,publicUploadUrls:F}=P;if(f)p.debug("Skipping file upload");else{p.info("Uploading files to S3...");let e={privateFiles:[...b.assets.privateFilesFullPaths].map(e=>{let i=e.replace("assets/private/",""),t=w[i];if(!t)throw Error(`No upload URL provided for private file ${i}, the server did not return a presigned URL for this file, please verify the file exists in the assets/private directory.`);return{localPath:e,uploadUrl:t}}),publicFiles:[...b.assets.publicFilesFullPaths].map(e=>{let i=e.replace("assets/public/",""),t=F[i];if(!t)throw Error(`No upload URL provided for public file ${i}, the server did not return a presigned URL for this file, please verify the file exists in the assets/public directory.`);return{localPath:e,uploadUrl:t}})};await a(e,{logger:p})}try{await e(v,`${r({...y,PHOENIX_PROJECT_SLUG:d,PHOENIX_ENVIRONMENT_SLUG:m,PHOENIX_SERVER_URL:c})}
1
+ import{writeFile as e}from"node:fs/promises";import{createApiBaseClient as i}from"#package/client";import{resolveApplicationSpecDeploymentData as t}from"../application-spec/index.js";import{formatEnvContent as r,uploadFilesWithPresignedUrls as a}from"../utils/index.js";import{getDevelopmentCredentialHint as o,getDevelopmentHeaders as s}from"./development-credential.js";export const prepareDevelopmentEnvironment=async(n,l)=>{let{logger:p}=l,{projectSlug:d,environmentSlug:m,serverUrl:c,credential:h,outFile:v,skipUpload:f,overrideSchema:u,projectVersion:E}=n;p.step("Preparing development environment"),p.info(`Preparing development environment for project "${d}", environment "${m}"`);let g=i(c);p.debug(`Using server URL: ${c}`);let P=await t({skipUpload:f,logger:p});p.info("Preparing and activating the development deployment on the server...");let{data:b,error:$}=await g.POST("/environments/development/prepare",{body:{applicationVersion:P.applicationVersion,publishedDataHash:P.publishedDataHash,useAuthHook:P.useAuthHook,overrideSchema:u,configurationSchema:{version:P.schemaVersion,schema:P.schema},adminConfigurationSchema:P.adminSchema?{schema:P.adminSchema,version:P.adminSchemaVersion}:void 0,chat:P.chat,embeddings:P.embeddings,...P.assistant?{assistant:!0}:{},acl:{canCreate:P.aclCanCreate},privateFiles:[...P.assets.privateFilePaths],publicFiles:[...P.assets.publicFilePaths],sdkVersion:E},headers:s(h,{projectSlug:d,environmentSlug:m})});if($)throw Error(`Failed to prepare development deployment for ${d}/${m} on ${c}: ${$.message}. ${o(h,d)}`);if(!b)throw Error("No data returned from server while preparing the development deployment.");let{environmentVariables:y,privateUploadUrls:N,publicUploadUrls:w}=b;if(f)p.debug("Skipping file upload");else{p.info("Uploading files to S3...");let e={privateFiles:[...P.assets.privateFilesFullPaths].map(e=>{let i=e.replace("assets/private/",""),t=N[i];if(!t)throw Error(`No upload URL provided for private file ${i}, the server did not return a presigned URL for this file, please verify the file exists in the assets/private directory.`);return{localPath:e,uploadUrl:t}}),publicFiles:[...P.assets.publicFilesFullPaths].map(e=>{let i=e.replace("assets/public/",""),t=w[i];if(!t)throw Error(`No upload URL provided for public file ${i}, the server did not return a presigned URL for this file, please verify the file exists in the assets/public directory.`);return{localPath:e,uploadUrl:t}})};await a(e,{logger:p})}try{await e(v,`${r({...y,PHOENIX_PROJECT_SLUG:d,PHOENIX_ENVIRONMENT_SLUG:m,PHOENIX_SERVER_URL:c,PHOENIX_DEPLOYMENT_FINGERPRINT:P.fingerprint})}
2
2
  `),p.debug(`Environment variables written to ${v}`)}catch{throw Error(`Failed to write environment variables to file at ${v}, please verify you have write permissions to this location.`)}p.info(`Project: ${d}`),p.info(`Environment: ${m}`),p.info(`Deployment ID: ${y.DEPLOYMENT_ID}`),p.success("Development environment prepared successfully!")};
@@ -3,6 +3,7 @@ export interface SourceArchive {
3
3
  readonly path: string;
4
4
  readonly fileCount: number;
5
5
  readonly size: number;
6
+ readonly hasConversationLog: boolean;
6
7
  readonly cleanup: () => Promise<void>;
7
8
  }
8
9
  /** What `extractSourceArchive` wrote and what it left out. */
@@ -1 +1 @@
1
- import{execFile as e}from"node:child_process";import{createReadStream as r,createWriteStream as t}from"node:fs";import{lstat as o,mkdir as i,mkdtemp as a,readdir as n,rm as s,stat as c,writeFile as l}from"node:fs/promises";import{tmpdir as h}from"node:os";import{dirname as p,join as f}from"node:path";import{Transform as d}from"node:stream";import{pipeline as w}from"node:stream/promises";import{promisify as m}from"node:util";import{createGunzip as u}from"node:zlib";import{extract as g}from"tar-stream";import{isProjectFile as y,listProjectEntries as v}from"../application-spec/project-files.js";let x=m(e);export const createSourceArchive=async e=>{let r=await Promise.all((await v(e)).map(async r=>({name:r,entry:await o(f(e,r))}))),t=r.filter(({entry:e})=>!e.isDirectory()&&(!e.isFile()||e.nlink>1)),i=r.filter(({entry:e})=>e.isFile()).map(({name:e})=>e);if(t.length>0)throw Error(`These project files are links or special files, which builds do not accept: ${t.map(({name:e})=>e).join(", ")}. Replace them with regular files and deploy again.`);if(0===i.length)throw Error(`No project files were found in ${e}, so there is nothing to deploy. Run phoenix deploy in the folder of an application-spec project.`);let n=await a(f(h(),"phoenix-deploy-")),p="sources.tgz",d=f(n,p),w=f(n,"files");try{await l(w,i.join("\0")),await x("tar",["-czf",p,"-C",e,"--null","-T",w],{cwd:n,env:{...process.env,COPYFILE_DISABLE:"1"}})}catch(r){await s(n,{recursive:!0,force:!0});let e=r instanceof Error?r.message:String(r);throw Error(`Packing the project with tar failed: ${e}. Check that tar is installed and on the PATH.`)}return{path:d,fileCount:i.length,size:(await c(d)).size,cleanup:()=>s(n,{recursive:!0,force:!0})}};let E=(e,...r)=>e instanceof Error&&"code"in e&&"string"==typeof e.code&&r.includes(e.code),j=async e=>{try{return 0===(await n(e)).length}catch(e){if(E(e,"ENOENT"))return!0;throw e}},T=class ArchiveRefusal extends Error{},b=e=>e.length>0&&!e.startsWith("/")&&!e.includes("\\")&&!/^[A-Za-z]:/.test(e)&&!/[\x00-\x1f\x7f]/.test(e)&&!e.split("/").includes("..");export const extractSourceArchive=async e=>{let o,a,{archivePath:n,targetDir:l}=e,h=(await c(n)).size;if(h>0xc800000)throw Error(`The source archive is ${h} bytes, over the 209715200 byte limit. Remove large files from the project and deploy again.`);if(!await j(l))throw Error(`The folder ${l} is not empty, and extracted sources must not mix with existing files. Extract into a new or empty folder.`);let m=g(),v=new AbortController,x=w(r(n),u(),(a=0,new d({transform(e,r,t){(a+=e.length)>0x40000000?t(new T("The source archive extracts to more than 1073741824 bytes. Remove large files from the project and deploy again.")):t(null,e)}})),m).catch(e=>{o??=e,v.abort()}),$=[],z=0,R=0;try{for await(let e of m){let{type:r}=e.header,o=e.header.name.replace(/^(\.\/)+/,""),a=JSON.stringify(o);if("directory"===r){e.resume();continue}if((R+=1)>1e5)throw new T("The source archive has more than 100000 files. Remove generated or unused files from the project and deploy again.");if(!b(o))throw new T(`The source archive contains ${a}, which is not a plain relative path inside the project. Pack the project with phoenix deploy.`);if("file"!==r)throw new T(`The source archive contains ${a}, which is a ${r??"special file"}. Builds accept only regular files; replace it with a regular file and deploy again.`);if(!y(o)){$.push(o),e.resume();continue}let n=f(l,...o.split("/"));try{await i(p(n),{recursive:!0}),await w(e,t(n,{flags:"wx"}),{signal:v.signal})}catch(e){if(E(e,"EEXIST","ENOTDIR","EISDIR"))throw new T(`The source archive contains ${a}, which repeats or collides with an earlier entry, so its content is ambiguous. Pack the project with phoenix deploy.`);throw e}z+=1}if(await x,void 0!==o)throw o}catch(t){let e=t instanceof T?t:o??t;if(m.destroy(),await x,await s(l,{recursive:!0,force:!0}),e instanceof T)throw e;let r=e instanceof Error?e.message:String(e);throw Error(`The source archive could not be read: ${r}. It is truncated or not a gzip tarball; pack the project with phoenix deploy.`)}return{fileCount:z,skipped:$}};
1
+ import{execFile as e}from"node:child_process";import{createReadStream as r,createWriteStream as t}from"node:fs";import{lstat as o,mkdir as i,mkdtemp as a,readdir as n,rm as s,stat as c,writeFile as l}from"node:fs/promises";import{tmpdir as h}from"node:os";import{dirname as p,join as f}from"node:path";import{Transform as d}from"node:stream";import{pipeline as w}from"node:stream/promises";import{promisify as m}from"node:util";import{createGunzip as u}from"node:zlib";import{extract as g}from"tar-stream";import{isProjectFile as y,listProjectEntries as v}from"../application-spec/project-files.js";let x=m(e);export const createSourceArchive=async e=>{let r=(await n(e)).includes("conversation.log"),t=[...await v(e),...r?["conversation.log"]:[]],i=await Promise.all(t.map(async r=>({name:r,entry:await o(f(e,r))})));if(i.some(({name:e,entry:r})=>"conversation.log"===e&&r.isDirectory()))throw Error("conversation.log is a directory. Replace it with a regular transcript file and deploy again.");let p=i.filter(({entry:e})=>!e.isDirectory()&&(!e.isFile()||e.nlink>1)),d=i.filter(({entry:e})=>e.isFile()).map(({name:e})=>e);if(p.length>0)throw Error(`These project files are links or special files, which builds do not accept: ${p.map(({name:e})=>e).join(", ")}. Replace them with regular files and deploy again.`);if(0===d.length)throw Error(`No project files were found in ${e}, so there is nothing to deploy. Run phoenix deploy in the folder of an application-spec project.`);let w=await a(f(h(),"phoenix-deploy-")),m="sources.tgz",u=f(w,m),g=f(w,"files");try{await l(g,d.join("\0")),await x("tar",["-czf",m,"-C",e,"--null","-T",g],{cwd:w,env:{...process.env,COPYFILE_DISABLE:"1"}})}catch(r){await s(w,{recursive:!0,force:!0});let e=r instanceof Error?r.message:String(r);throw Error(`Packing the project with tar failed: ${e}. Check that tar is installed and on the PATH.`)}return{path:u,fileCount:d.length,size:(await c(u)).size,hasConversationLog:r,cleanup:()=>s(w,{recursive:!0,force:!0})}};let E=(e,...r)=>e instanceof Error&&"code"in e&&"string"==typeof e.code&&r.includes(e.code),j=async e=>{try{return 0===(await n(e)).length}catch(e){if(E(e,"ENOENT"))return!0;throw e}},T=class ArchiveRefusal extends Error{},b=e=>e.length>0&&!e.startsWith("/")&&!e.includes("\\")&&!/^[A-Za-z]:/.test(e)&&!/[\x00-\x1f\x7f]/.test(e)&&!e.split("/").includes("..");export const extractSourceArchive=async e=>{let o,a,{archivePath:n,targetDir:l}=e,h=(await c(n)).size;if(h>0xc800000)throw Error(`The source archive is ${h} bytes, over the 209715200 byte limit. Remove large files from the project and deploy again.`);if(!await j(l))throw Error(`The folder ${l} is not empty, and extracted sources must not mix with existing files. Extract into a new or empty folder.`);let m=g(),v=new AbortController,x=w(r(n),u(),(a=0,new d({transform(e,r,t){(a+=e.length)>0x40000000?t(new T("The source archive extracts to more than 1073741824 bytes. Remove large files from the project and deploy again.")):t(null,e)}})),m).catch(e=>{o??=e,v.abort()}),$=[],R=0,z=0;try{for await(let e of m){let{type:r}=e.header,o=e.header.name.replace(/^(\.\/)+/,""),a=JSON.stringify(o);if("directory"===r){e.resume();continue}if((z+=1)>1e5)throw new T("The source archive has more than 100000 files. Remove generated or unused files from the project and deploy again.");if(!b(o))throw new T(`The source archive contains ${a}, which is not a plain relative path inside the project. Pack the project with phoenix deploy.`);if("file"!==r)throw new T(`The source archive contains ${a}, which is a ${r??"special file"}. Builds accept only regular files; replace it with a regular file and deploy again.`);if(!y(o)){$.push(o),e.resume();continue}let n=f(l,...o.split("/"));try{await i(p(n),{recursive:!0}),await w(e,t(n,{flags:"wx"}),{signal:v.signal})}catch(e){if(E(e,"EEXIST","ENOTDIR","EISDIR"))throw new T(`The source archive contains ${a}, which repeats or collides with an earlier entry, so its content is ambiguous. Pack the project with phoenix deploy.`);throw e}R+=1}if(await x,void 0!==o)throw o}catch(t){let e=t instanceof T?t:o??t;if(m.destroy(),await x,await s(l,{recursive:!0,force:!0}),e instanceof T)throw e;let r=e instanceof Error?e.message:String(e);throw Error(`The source archive could not be read: ${r}. It is truncated or not a gzip tarball; pack the project with phoenix deploy.`)}return{fileCount:R,skipped:$}};
@@ -1,3 +1,3 @@
1
- import{transform as e}from"@swc/core";import{remove as t}from"fs-extra";import{copyFile as s,mkdir as o,readFile as a,writeFile as i}from"fs/promises";import{globby as r}from"globby";import{dirname as c,relative as l,resolve as n}from"path";import{Subject as p}from"rxjs";import{watch as m}from"#package/watch";import{createLogger as w}from"../utils/index.js";let u=()=>({sourceMaps:!0,module:{type:"es6"},jsc:{target:"es2022",parser:{syntax:"typescript",tsx:!0},transform:{react:{runtime:"automatic"}},keepClassNames:!0,experimental:{plugins:[["@lingui/swc-plugin",{}]]}}}),d=async(e,t,a)=>{let i=process.cwd(),p=n(i,e),m=n(i,t),w=await r(["**/*.{html,css,json,txt,md}","**/.env*"],{cwd:p,ignore:["**/*.{spec,test}.{html,css,json,txt,md}","**/__tests__/**","**/__mocks__/**","**/tsconfig.json"],absolute:!1}),u=0,d=0;for(let e of w)try{let t=n(p,e),a=n(m,e);await o(c(a),{recursive:!0}),await s(t,a),u++}catch(t){d++,console.error(`Failed to copy ${l(i,n(p,e))}:`,t)}if(d>0)throw Error(`Failed to copy ${d} file(s)`);u>0&&a.debug(`Copied ${u} non-compilable file(s)`)};export const compileWithSwc=async(s,p)=>{let{sourceDir:m="src",outDir:f="./node_modules/.phoenix"}=s??{},g=p?.logger??w(),h=process.cwd(),x=n(h,m),_=n(h,f);await t(_);let y=await r(["**/*.{ts,tsx}"],{cwd:x,ignore:["**/*.{spec,test}.{ts,tsx}","**/__tests__/**","**/__mocks__/**"],absolute:!1}),b=u(),$=0,j=0;for(let t of y)try{let s=n(x,t),r=n(_,t.replace(/\.tsx?$/,".js")),l=await a(s,"utf-8"),p=await e(l,{...b,filename:s,sourceMaps:!0,outputPath:r});await o(c(r),{recursive:!0}),await i(r,p.code,"utf-8"),p.map&&await i(`${r}.map`,p.map,"utf-8"),$++}catch(e){j++,console.error(`Failed to compile ${l(h,n(x,t))}:`,e)}if(j>0)throw Error(`Failed to compile ${j} file(s)`);g.isDebug&&g.debug(`Compiled ${$} file(s) with swc`),await d(m,f,g)};let f=async(t,s,r)=>{let l=process.cwd(),p=n(l,s),m=n(l,r),w=u(),d=n(p,t),f=n(m,t.replace(/\.tsx?$/,".js")),g=await a(d,"utf-8"),h=await e(g,{...w,filename:d,sourceMaps:!0,outputPath:f});await o(c(f),{recursive:!0}),await i(f,h.code,"utf-8"),h.map&&await i(`${f}.map`,h.map,"utf-8")},g=async(e,t,a)=>{let i=process.cwd(),r=n(i,t),l=n(i,a),p=n(r,e),m=n(l,e);await o(c(m),{recursive:!0}),await s(p,m)};export const watchWithSwc=async(e,t)=>{let{sourceDir:s="src",outDir:o="./node_modules/.phoenix"}=e??{},a=t?.logger??w(),i=n(process.cwd(),s);a.isDebug&&a.step("Running initial SWC compilation"),await compileWithSwc({sourceDir:s,outDir:o},t),a.isDebug&&a.success("Initial compilation complete");let r=new p,c=m(["**/*.{ts,tsx,html,css,json,txt,md}","../.env*"],{cwd:i,ignored:["**/*.{spec,test}.{ts,tsx}","**/__tests__/**","**/cache.json"],persistent:!0,ignoreInitial:!0});return c.on("all",(e,t)=>{("change"===e||"add"===e)&&r.next({file:t,type:e})}),r.subscribe(async({file:e})=>{let t=l(i,n(i,e));try{e.match(/\.tsx?$/)?(await f(t,s,o),a.fileChanged(t)):(e.match(/\.(html|css|json|txt|md)$/)||e.match(/\.env/))&&(await g(t,s,o),a.fileChanged(t))}catch(e){a.error(`Failed to process ${t}`),a.isDebug&&console.error(e)}}),a.isDebug&&console.log(`
1
+ import{transform as e}from"@swc/core";import{remove as t}from"fs-extra";import{copyFile as s,mkdir as o,readFile as a,writeFile as r}from"fs/promises";import{globby as i}from"globby";import{createRequire as c}from"node:module";import{dirname as l,relative as n,resolve as p}from"path";import{Subject as m}from"rxjs";import{watch as w}from"#package/watch";import{createLogger as d}from"../utils/index.js";let u=()=>({sourceMaps:!0,module:{type:"es6"},jsc:{target:"es2022",parser:{syntax:"typescript",tsx:!0},transform:{react:{runtime:"automatic"}},keepClassNames:!0,experimental:{plugins:[[c(import.meta.url).resolve("@lingui/swc-plugin"),{}]],cacheRoot:"node_modules/.cache/swc"}}}),f=async(e,t,a)=>{let r=process.cwd(),c=p(r,e),m=p(r,t),w=await i(["**/*.{html,css,json,txt,md}","**/.env*"],{cwd:c,ignore:["**/*.{spec,test}.{html,css,json,txt,md}","**/__tests__/**","**/__mocks__/**","**/tsconfig.json",".env.generated"],absolute:!1}),d=0,u=0;for(let e of w)try{let t=p(c,e),a=p(m,e);await o(l(a),{recursive:!0}),await s(t,a),d++}catch(t){u++,console.error(`Failed to copy ${n(r,p(c,e))}:`,t)}if(u>0)throw Error(`Failed to copy ${u} file(s)`);d>0&&a.debug(`Copied ${d} non-compilable file(s)`)};export const compileWithSwc=async(s,c)=>{let{sourceDir:m="src",outDir:w="./node_modules/.phoenix"}=s??{},g=c?.logger??d(),h=process.cwd(),_=p(h,m),x=p(h,w);await t(x);let y=await i(["**/*.{ts,tsx}"],{cwd:_,ignore:["**/*.{spec,test}.{ts,tsx}","**/__tests__/**","**/__mocks__/**"],absolute:!1}),b=u(),$=0,j=0;for(let t of y)try{let s=p(_,t),i=p(x,t.replace(/\.tsx?$/,".js")),c=await a(s,"utf-8"),n=await e(c,{...b,filename:s,sourceMaps:!0,outputPath:i});await o(l(i),{recursive:!0}),await r(i,n.code,"utf-8"),n.map&&await r(`${i}.map`,n.map,"utf-8"),$++}catch(e){j++,console.error(`Failed to compile ${n(h,p(_,t))}:`,e)}if(j>0)throw Error(`Failed to compile ${j} file(s)`);g.isDebug&&g.debug(`Compiled ${$} file(s) with swc`),await f(m,w,g)};let g=async(t,s,i)=>{let c=process.cwd(),n=p(c,s),m=p(c,i),w=u(),d=p(n,t),f=p(m,t.replace(/\.tsx?$/,".js")),g=await a(d,"utf-8"),h=await e(g,{...w,filename:d,sourceMaps:!0,outputPath:f});await o(l(f),{recursive:!0}),await r(f,h.code,"utf-8"),h.map&&await r(`${f}.map`,h.map,"utf-8")},h=async(e,t,a)=>{let r=process.cwd(),i=p(r,t),c=p(r,a),n=p(i,e),m=p(c,e);await o(l(m),{recursive:!0}),await s(n,m)};export const watchWithSwc=async(e,t)=>{let{sourceDir:s="src",outDir:o="./node_modules/.phoenix"}=e??{},a=t?.logger??d(),r=p(process.cwd(),s);a.isDebug&&a.step("Running initial SWC compilation"),await compileWithSwc({sourceDir:s,outDir:o},t),a.isDebug&&a.success("Initial compilation complete");let i=new m,c=w(["**/*.{ts,tsx,html,css,json,txt,md}","../.env*"],{cwd:r,ignored:["**/*.{spec,test}.{ts,tsx}","**/__tests__/**","**/cache.json"],persistent:!0,ignoreInitial:!0});return c.on("all",(e,t)=>{("change"===e||"add"===e)&&i.next({file:t,type:e})}),i.subscribe(async({file:e})=>{let t=n(r,p(r,e));try{e.match(/\.tsx?$/)?(await g(t,s,o),a.fileChanged(t)):(e.match(/\.(html|css|json|txt|md)$/)||e.match(/\.env/))&&(await h(t,s,o),a.fileChanged(t))}catch(e){a.error(`Failed to process ${t}`),a.isDebug&&console.error(e)}}),a.isDebug&&console.log(`
2
2
  👀 Watching ${s} for changes...
3
3
  `),{stop:async()=>{await c.close(),a.isDebug&&a.info("SWC watcher stopped")}}};
@@ -0,0 +1,9 @@
1
+ import type { TelemetryEvent } from './telemetry-event.js';
2
+ export interface TelemetryTransport {
3
+ readonly send: (events: readonly TelemetryEvent[], timeoutMs: number) => Promise<void>;
4
+ }
5
+ interface AmplitudeTelemetryTransportContext {
6
+ readonly fetch: typeof fetch;
7
+ }
8
+ export declare const createAmplitudeTelemetryTransport: (context?: AmplitudeTelemetryTransportContext) => TelemetryTransport;
9
+ export {};
@@ -0,0 +1 @@
1
+ let e=e=>({event_type:e.name,device_id:e.deviceId,...void 0===e.userId?{}:{user_id:e.userId},insert_id:e.eventId,time:e.occurredAt.getTime(),event_properties:e.properties}),t=e=>429===e.status||e.status>=500;export const createAmplitudeTelemetryTransport=(r={fetch})=>({send:async(a,i)=>{if(0===a.length)return;let n=new AbortController,o=setTimeout(()=>n.abort(),i),s=JSON.stringify({api_key:"46b8fa9ce868c9da04f8ad2b6715a2f7",events:a.map(e)});try{for(let e=0;e<2;e+=1)try{let e=await r.fetch("https://api2.amplitude.com/2/httpapi",{method:"POST",headers:{"content-type":"application/json"},body:s,signal:n.signal});if(await e.body?.cancel(),e.ok||!t(e))return}catch{if(n.signal.aborted)return}}finally{n.abort(),clearTimeout(o)}}});
@@ -0,0 +1,3 @@
1
+ export { createTelemetryClient, type CommandTelemetryAttempt, type TelemetryClient } from './telemetry-client.js';
2
+ export { resolveTelemetryCommand, type TelemetryCommand } from './telemetry-command.js';
3
+ export type { TelemetryAssociation } from './telemetry-state.js';
@@ -0,0 +1 @@
1
+ export{createTelemetryClient}from"./telemetry-client.js";export{resolveTelemetryCommand}from"./telemetry-command.js";
@@ -0,0 +1,25 @@
1
+ import { type TelemetryTransport } from './amplitude-telemetry-transport.js';
2
+ import type { TelemetryCommand } from './telemetry-command.js';
3
+ import { type TelemetryFailureCategory, type TelemetryOutcome } from './telemetry-event.js';
4
+ import { type TelemetryAssociation, type TelemetryIdentity } from './telemetry-state.js';
5
+ export interface CommandTelemetryAttempt {
6
+ readonly ready: () => void;
7
+ readonly complete: (outcome: TelemetryOutcome, failureCategory?: TelemetryFailureCategory) => void;
8
+ }
9
+ export interface TelemetryClient {
10
+ readonly startCommandAttempt: (command: TelemetryCommand) => CommandTelemetryAttempt;
11
+ readonly identify: (association: TelemetryAssociation) => Promise<void>;
12
+ readonly flush: () => Promise<void>;
13
+ }
14
+ interface CreateTelemetryClientProps {
15
+ readonly sdkVersion: string;
16
+ }
17
+ interface TelemetryClientContext {
18
+ readonly createId: () => string;
19
+ readonly loadIdentity: () => Promise<TelemetryIdentity>;
20
+ readonly now: () => Date;
21
+ readonly saveAssociation: (identity: TelemetryIdentity, association: TelemetryAssociation) => Promise<void>;
22
+ readonly transport: TelemetryTransport;
23
+ }
24
+ export declare const createTelemetryClient: (props: CreateTelemetryClientProps, context?: TelemetryClientContext) => Promise<TelemetryClient>;
25
+ export {};
@@ -0,0 +1 @@
1
+ import{randomUUID as t}from"node:crypto";import{createAmplitudeTelemetryTransport as e}from"./amplitude-telemetry-transport.js";import{createCommandEvent as r}from"./telemetry-event.js";import{loadTelemetryIdentity as o,saveTelemetryAssociation as n}from"./telemetry-state.js";let a={ready:()=>void 0,complete:()=>void 0},s={startCommandAttempt:()=>a,identify:async()=>void 0,flush:async()=>void 0};export const createTelemetryClient=async(a,i={createId:t,loadIdentity:o,now:()=>new Date,saveAssociation:n,transport:e()})=>{if("1"===process.env.PHOENIX_TELEMETRY_DISABLED)return s;try{var d;let t,e;return d=await i.loadIdentity(),t=[],e=d,{startCommandAttempt:o=>{let n=i.createId(),s=i.now(),d=!1,c=!1;return t=[...t,r({identity:e,sdkVersion:a.sdkVersion,command:o,attemptId:n,phase:"started",outcome:"unknown",occurredAt:s},i)],{ready:()=>{if("dev"!==o||c||d)return;c=!0;let m=i.now();t=[...t,r({identity:e,sdkVersion:a.sdkVersion,command:o,attemptId:n,phase:"ready",outcome:"unknown",occurredAt:m,durationMs:Math.max(0,m.getTime()-s.getTime())},i)]},complete:(c,m)=>{if(d)return;d=!0;let u=i.now();t=[...t,r({identity:e,sdkVersion:a.sdkVersion,command:o,attemptId:n,phase:"completed",outcome:c,occurredAt:u,durationMs:Math.max(0,u.getTime()-s.getTime()),failureCategory:m},i)]}}},identify:async t=>{e={...e,...t};try{await i.saveAssociation(e,t)}catch{return}},flush:async()=>{let e=t;t=[];try{await i.transport.send(e,1e3)}catch{return}}}}catch{return s}};
@@ -0,0 +1,2 @@
1
+ export type TelemetryCommand = 'build' | 'changelog' | 'check' | 'clean' | 'deploy' | 'deployment:activate' | 'deployment:build-envs' | 'deployment:extract-sources' | 'deployment:finish' | 'deployment:prepare' | 'deployment:prepare-dev' | 'deployment:prepare-local' | 'deployment:register' | 'dev' | 'docs' | 'environment:cleanup' | 'environment:create' | 'environment:list' | 'feedback' | 'fix' | 'init' | 'inspect:assets' | 'inspect:data' | 'inspect:scene' | 'inspect:state' | 'link' | 'login' | 'logout' | 'prepare:ci' | 'screenshot' | 'story' | 'sync' | 'unlink' | 'variants';
2
+ export declare const resolveTelemetryCommand: (arguments_: readonly string[]) => TelemetryCommand | null;
@@ -0,0 +1 @@
1
+ let e={b:"build",build:"build",c:"check",changelog:"changelog",check:"check",ci:"prepare:ci",cl:"clean",clean:"clean",clog:"changelog",d:"dev",da:"deployment:activate",dbe:"deployment:build-envs",deploy:"deploy","dep:activate":"deployment:activate","dep:build-envs":"deployment:build-envs","dep:finish":"deployment:finish","dep:prepare":"deployment:prepare","dep:prepare-dev":"deployment:prepare-dev","dep:prepare-local":"deployment:prepare-local","dep:register":"deployment:register","deployment:activate":"deployment:activate","deployment:build-envs":"deployment:build-envs","deployment:extract-sources":"deployment:extract-sources","deployment:finish":"deployment:finish","deployment:prepare":"deployment:prepare","deployment:prepare-dev":"deployment:prepare-dev","deployment:prepare-local":"deployment:prepare-local","deployment:register":"deployment:register",dev:"dev",df:"deployment:finish",doc:"docs",docs:"docs",dp:"deployment:prepare",dpd:"deployment:prepare-dev",dpl:"deployment:prepare-local",dr:"deployment:register",ec:"environment:cleanup","env:cleanup":"environment:cleanup","env:create":"environment:create","env:list":"environment:list","environment:cleanup":"environment:cleanup","environment:create":"environment:create","environment:list":"environment:list",f:"fix",feedback:"feedback",fix:"fix",ia:"inspect:assets",id:"inspect:data",init:"init","inspect:assets":"inspect:assets","inspect:data":"inspect:data","inspect:scene":"inspect:scene","inspect:state":"inspect:state",is:"inspect:state",isc:"inspect:scene",l:"link",link:"link",login:"login",logout:"logout",pci:"prepare:ci","prepare:ci":"prepare:ci",s:"sync",screenshot:"screenshot",ss:"screenshot",st:"story",story:"story",sync:"sync",ul:"unlink",unlink:"unlink",variants:"variants"};export const resolveTelemetryCommand=n=>e[n[0]??""]??null;
@@ -0,0 +1,44 @@
1
+ import type { TelemetryCommand } from './telemetry-command.js';
2
+ import type { TelemetryIdentity } from './telemetry-state.js';
3
+ export type TelemetryOutcome = 'succeeded' | 'failed';
4
+ export type TelemetryFailureCategory = 'command_failed';
5
+ export type TelemetrySource = 'cli' | 'studio' | 'backend' | 'preview';
6
+ export type TelemetryClassification = 'internal' | 'beta' | 'general' | 'unknown';
7
+ export interface TelemetryEvent {
8
+ /** Unique event delivery identity, mapped to Amplitude's insert_id. */
9
+ readonly eventId: string;
10
+ readonly name: 'cli_command_started' | 'cli_dev_server_ready' | 'cli_command_completed';
11
+ readonly occurredAt: Date;
12
+ readonly deviceId: string;
13
+ readonly userId?: string;
14
+ readonly properties: {
15
+ readonly schema_version: 1;
16
+ readonly source: TelemetrySource;
17
+ readonly command: TelemetryCommand;
18
+ readonly attempt_id: string;
19
+ readonly phase: 'started' | 'ready' | 'completed';
20
+ readonly outcome: 'unknown' | TelemetryOutcome;
21
+ readonly duration_ms?: number;
22
+ readonly failure_category?: TelemetryFailureCategory;
23
+ readonly sdk_version: string;
24
+ readonly classification: TelemetryClassification;
25
+ readonly work_session_id: string;
26
+ readonly workspace_id?: string;
27
+ };
28
+ }
29
+ interface CreateCommandEventProps {
30
+ readonly identity: TelemetryIdentity;
31
+ readonly sdkVersion: string;
32
+ readonly command: TelemetryCommand;
33
+ readonly attemptId: string;
34
+ readonly phase: 'started' | 'ready' | 'completed';
35
+ readonly outcome: 'unknown' | TelemetryOutcome;
36
+ readonly occurredAt: Date;
37
+ readonly durationMs?: number;
38
+ readonly failureCategory?: TelemetryFailureCategory;
39
+ }
40
+ interface TelemetryEventContext {
41
+ readonly createId: () => string;
42
+ }
43
+ export declare const createCommandEvent: (props: CreateCommandEventProps, context: TelemetryEventContext) => TelemetryEvent;
44
+ export {};
@@ -0,0 +1 @@
1
+ export const createCommandEvent=(e,t)=>({eventId:t.createId(),name:"ready"===e.phase?"cli_dev_server_ready":"started"===e.phase?"cli_command_started":"cli_command_completed",occurredAt:e.occurredAt,deviceId:e.identity.installationId,..."userId"in e.identity?{userId:e.identity.userId}:{},properties:{schema_version:1,source:"cli",command:e.command,attempt_id:e.attemptId,phase:e.phase,outcome:e.outcome,...void 0===e.durationMs?{}:{duration_ms:e.durationMs},...void 0===e.failureCategory?{}:{failure_category:e.failureCategory},sdk_version:e.sdkVersion,classification:"userId"in e.identity?"general":"unknown",work_session_id:e.identity.workSessionId,..."workspaceId"in e.identity?{workspace_id:e.identity.workspaceId}:{}}});
@@ -0,0 +1,25 @@
1
+ export interface AnonymousTelemetryIdentity {
2
+ /** Random identifier for one operating-system user profile, without machine or account data. */
3
+ readonly installationId: string;
4
+ /** Random identifier for CLI activity separated by less than thirty minutes. */
5
+ readonly workSessionId: string;
6
+ }
7
+ export interface TelemetryAssociation {
8
+ /** Stable authenticated builder user ID, mapped to Amplitude's user_id after authentication. */
9
+ readonly userId: string;
10
+ /** Internal UUID of the SDK-builder workspace the CLI authenticated against. */
11
+ readonly workspaceId: string;
12
+ }
13
+ export type TelemetryIdentity = AnonymousTelemetryIdentity | (AnonymousTelemetryIdentity & TelemetryAssociation);
14
+ interface TelemetryStateContext {
15
+ readonly createId: () => string;
16
+ readonly now: () => Date;
17
+ }
18
+ export declare const getTelemetryStatePath: () => string;
19
+ /**
20
+ * Loads the anonymous CLI identity and records current activity. Broken or unwritable state never blocks a command:
21
+ * the invocation gets an ephemeral identity, while an invalid existing file is left untouched for inspection.
22
+ */
23
+ export declare const loadTelemetryIdentity: (context?: TelemetryStateContext) => Promise<TelemetryIdentity>;
24
+ export declare const saveTelemetryAssociation: (identity: TelemetryIdentity, association: TelemetryAssociation) => Promise<void>;
25
+ export {};
@@ -0,0 +1,2 @@
1
+ import{randomUUID as t}from"node:crypto";import{chmod as e,mkdir as i,readFile as n,writeFile as a}from"node:fs/promises";import{homedir as s}from"node:os";import{dirname as r,join as o}from"node:path";import{z as d}from"zod";let l=d.object({installationId:d.string().uuid(),workSessionId:d.string().uuid(),lastActiveAt:d.string().datetime()}),c=d.union([l.extend({userId:d.string().min(5),workspaceId:d.string().uuid()}),l.strict()]),I={createId:t,now:()=>new Date};export const getTelemetryStatePath=()=>process.env.PHOENIX_TELEMETRY_FILE??o(s(),".phoenix","telemetry.json");let u=async(t,n)=>{await i(r(t),{recursive:!0,mode:448}),await a(t,`${JSON.stringify(n,null,2)}
2
+ `,{mode:384}),await e(t,384)},w=async t=>{let e;try{e=await n(t,"utf8")}catch(t){return t instanceof Error&&"code"in t&&"ENOENT"===t.code?{kind:"missing"}:{kind:"invalid"}}try{let t=c.safeParse(JSON.parse(e));return t.success?{kind:"valid",state:t.data}:{kind:"invalid"}}catch{return{kind:"invalid"}}};export const loadTelemetryIdentity=async(t=I)=>{let e=getTelemetryStatePath(),i=await w(e),n="valid"===i.kind?i.state:null,a=t.now(),s=null===n?null:Date.parse(n.lastActiveAt),r=null===s||a.getTime()-s>=18e5,o=null===n?{installationId:t.createId(),workSessionId:t.createId(),lastActiveAt:a.toISOString()}:{...n,workSessionId:r?t.createId():n.workSessionId,lastActiveAt:a.toISOString()};try{"invalid"!==i.kind&&await u(e,o)}catch{return{installationId:o.installationId,workSessionId:o.workSessionId}}return{installationId:o.installationId,workSessionId:o.workSessionId,..."userId"in o&&"workspaceId"in o?{userId:o.userId,workspaceId:o.workspaceId}:{}}};export const saveTelemetryAssociation=async(t,e)=>{let i=getTelemetryStatePath(),n=await w(i);"valid"===n.kind&&n.state.installationId===t.installationId&&n.state.workSessionId===t.workSessionId&&await u(i,{...n.state,...e})};