@salsita-ai/sdk 0.50.0-develop.c28cfb7ded → 0.50.0-develop.c402728d10

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 (1406) hide show
  1. package/README.md +24 -15
  2. package/dist/admin/AdminShell.js +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/admin/legacy-admin/Application.js +1 -1
  14. package/dist/application/index.d.ts +1 -0
  15. package/dist/application/index.js +1 -1
  16. package/dist/application/mount-application.d.ts +1 -1
  17. package/dist/application/mount-application.js +1 -1
  18. package/dist/application/mount-configurator.d.ts +19 -0
  19. package/dist/application/mount-configurator.js +1 -0
  20. package/dist/application/mounted-application-runtime.d.ts +4 -0
  21. package/dist/application/mounted-application-runtime.js +1 -0
  22. package/dist/application/register-web-component.d.ts +2 -0
  23. package/dist/application/register-web-component.js +1 -0
  24. package/dist/application-spec/caching/content-diff.js +1 -1
  25. package/dist/application-spec/core/application-file.d.ts +0 -2
  26. package/dist/application-spec/core/application-file.js +1 -1
  27. package/dist/application-spec/core/enhanced-json-value.d.ts +2 -31
  28. package/dist/application-spec/core/enhanced-json-value.js +1 -1
  29. package/dist/application-spec/core/index.d.ts +1 -3
  30. package/dist/application-spec/core/index.js +1 -1
  31. package/dist/application-spec/core/json-schema.d.ts +2 -52
  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/errors/diagnostic-codes.d.ts +22 -1
  40. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  41. package/dist/application-spec/errors/diagnostic-messages.d.ts +30 -2
  42. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  43. package/dist/application-spec/generate-application/code/common/code-imports.js +1 -1
  44. package/dist/application-spec/generate-application/code/common/env-reader.js +2 -2
  45. package/dist/application-spec/generate-application/code/common/index.d.ts +1 -0
  46. package/dist/application-spec/generate-application/code/common/index.js +1 -1
  47. package/dist/application-spec/generate-application/code/common/single-quoted-string.d.ts +6 -0
  48. package/dist/application-spec/generate-application/code/common/single-quoted-string.js +1 -0
  49. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  50. package/dist/application-spec/generate-application/code/generate-application-code.d.ts +3 -2
  51. package/dist/application-spec/generate-application/code/generate-application-code.js +1 -1
  52. package/dist/application-spec/generate-application/code/project-scaffolding.d.ts +15 -14
  53. package/dist/application-spec/generate-application/code/project-scaffolding.js +2 -2
  54. package/dist/application-spec/generate-application/code/story-files.js +1 -1
  55. package/dist/application-spec/generate-application/code/templates/admin-config.js +3 -0
  56. package/dist/application-spec/generate-application/code/templates/application-types.js +6 -6
  57. package/dist/application-spec/generate-application/code/templates/common/doc-comment.d.ts +2 -0
  58. package/dist/application-spec/generate-application/code/templates/common/doc-comment.js +1 -0
  59. package/dist/application-spec/generate-application/code/templates/common/format-property-key.d.ts +7 -0
  60. package/dist/application-spec/generate-application/code/templates/common/format-property-key.js +1 -0
  61. package/dist/application-spec/generate-application/code/templates/common/schema-to-type-string.js +3 -3
  62. package/dist/application-spec/generate-application/code/templates/configurator-globals.d.ts +2 -1
  63. package/dist/application-spec/generate-application/code/templates/configurator-globals.js +19 -6
  64. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +35 -0
  65. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +5 -0
  66. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.d.ts +1 -0
  67. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/index.js +1 -0
  68. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.d.ts +1 -1
  69. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-component-optics.js +6 -6
  70. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +59 -63
  71. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.d.ts +8 -0
  72. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-invariants.js +1 -1
  73. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-presets.js +1 -1
  74. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-resources.js +13 -13
  75. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.d.ts +1 -1
  76. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-states.js +2 -2
  77. package/dist/application-spec/generate-application/code/templates/domain-spec/index.d.ts +2 -1
  78. package/dist/application-spec/generate-application/code/templates/domain-spec/index.js +1 -1
  79. package/dist/application-spec/generate-application/code/templates/eslint-config.d.ts +5 -0
  80. package/dist/application-spec/generate-application/code/templates/eslint-config.js +4 -5
  81. package/dist/application-spec/generate-application/code/templates/frontend-config.js +3 -5
  82. package/dist/application-spec/generate-application/code/templates/gitignore.js +0 -3
  83. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +7 -7
  84. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +12 -0
  85. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -0
  86. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.d.ts +43 -0
  87. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +33 -0
  88. package/dist/application-spec/generate-application/code/templates/global-definition/index.d.ts +2 -0
  89. package/dist/application-spec/generate-application/code/templates/global-definition/index.js +1 -1
  90. package/dist/application-spec/generate-application/code/templates/globals.js +24 -44
  91. package/dist/application-spec/generate-application/code/templates/index.d.ts +5 -8
  92. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  93. package/dist/application-spec/generate-application/code/templates/lingui-rc.d.ts +5 -0
  94. package/dist/application-spec/generate-application/code/templates/lingui-rc.js +4 -4
  95. package/dist/application-spec/generate-application/code/templates/prettier-config.d.ts +5 -0
  96. package/dist/application-spec/generate-application/code/templates/prettier-config.js +4 -5
  97. package/dist/application-spec/generate-application/code/templates/root-tsconfig.d.ts +6 -0
  98. package/dist/application-spec/generate-application/code/templates/root-tsconfig.js +2 -0
  99. package/dist/application-spec/generate-application/code/templates/skills/phoenix-cli-skill.js +1 -1
  100. package/dist/application-spec/generate-application/code/templates/skills/phoenix-create-configurator-skill.js +1 -1
  101. package/dist/application-spec/generate-application/code/templates/skills/phoenix-feedback-skill.js +5 -5
  102. package/dist/application-spec/generate-application/code/templates/skills/phoenix-review-skill.js +3 -3
  103. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.d.ts +10 -0
  104. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +7 -0
  105. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.js +1 -1
  106. package/dist/application-spec/generate-application/code/templates/skills/phoenix-variants-skill.js +2 -2
  107. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +30 -11
  108. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +2 -2
  109. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.d.ts +58 -0
  110. package/dist/application-spec/generate-application/code/templates/spec-code/collect-spec-code.js +1 -0
  111. package/dist/application-spec/generate-application/code/templates/spec-code/index.d.ts +2 -0
  112. package/dist/application-spec/generate-application/code/templates/spec-code/index.js +1 -0
  113. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.d.ts +18 -0
  114. package/dist/application-spec/generate-application/code/templates/spec-code/spec-code.js +41 -0
  115. package/dist/application-spec/generate-application/code/templates/spec-messages/index.d.ts +1 -0
  116. package/dist/application-spec/generate-application/code/templates/spec-messages/index.js +1 -0
  117. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.d.ts +20 -0
  118. package/dist/application-spec/generate-application/code/templates/spec-messages/spec-messages.js +6 -0
  119. package/dist/application-spec/generate-application/code/templates/story/phx-module.d.ts +8 -2
  120. package/dist/application-spec/generate-application/code/templates/story/phx-module.js +15 -3
  121. package/dist/application-spec/generate-application/code/templates/story/wrapper.d.ts +3 -0
  122. package/dist/application-spec/generate-application/code/templates/story/wrapper.js +4 -5
  123. package/dist/application-spec/generate-application/code/templates/tsconfig.d.ts +5 -0
  124. package/dist/application-spec/generate-application/code/templates/tsconfig.js +1 -1
  125. package/dist/application-spec/generate-application/code/templates/webhooks-config.js +2 -3
  126. package/dist/application-spec/generate-application/implementations/phx-application-types.d.ts +25 -0
  127. package/dist/application-spec/generate-application/implementations/phx-application-types.js +1 -0
  128. package/dist/application-spec/generate-application/implementations/phx-domain.d.ts +36 -0
  129. package/dist/application-spec/generate-application/implementations/phx-domain.js +1 -0
  130. package/dist/application-spec/generate-application/implementations/phx-model.d.ts +24 -0
  131. package/dist/application-spec/generate-application/implementations/phx-model.js +1 -0
  132. package/dist/application-spec/generate-application/implementations/phx.d.ts +22 -0
  133. package/dist/application-spec/generate-application/implementations/phx.js +1 -0
  134. package/dist/application-spec/generate-application/index.d.ts +2 -0
  135. package/dist/application-spec/generate-application/index.js +1 -1
  136. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.d.ts +6 -5
  137. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.js +1 -1
  138. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.d.ts +9 -5
  139. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.js +1 -1
  140. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.d.ts +16 -0
  141. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.js +1 -0
  142. package/dist/application-spec/generate-application/runtime/admin-runtime/states-runtime.d.ts +2 -2
  143. package/dist/application-spec/generate-application/runtime/application-runtime.d.ts +29 -9
  144. package/dist/application-spec/generate-application/runtime/application-runtime.js +1 -1
  145. package/dist/application-spec/generate-application/runtime/application-spec-slice.d.ts +71 -0
  146. package/dist/application-spec/generate-application/runtime/application-spec-slice.js +1 -0
  147. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.d.ts +7 -6
  148. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.js +1 -1
  149. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.d.ts +9 -6
  150. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.js +1 -1
  151. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.d.ts +16 -0
  152. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.js +1 -0
  153. package/dist/application-spec/generate-application/runtime/configurator-runtime/states-runtime.d.ts +2 -2
  154. package/dist/application-spec/generate-application/runtime/create-application.d.ts +57 -0
  155. package/dist/application-spec/generate-application/runtime/create-application.js +1 -0
  156. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.d.ts +1 -2
  157. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.d.ts +1 -1
  158. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.js +1 -1
  159. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.d.ts +1 -2
  160. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.js +1 -1
  161. package/dist/application-spec/generate-application/runtime/generate-runtime-instance.d.ts +1 -1
  162. package/dist/application-spec/generate-application/runtime/generate-runtime-instance.js +1 -1
  163. package/dist/application-spec/generate-application/runtime/index.d.ts +8 -0
  164. package/dist/application-spec/generate-application/runtime/index.js +1 -0
  165. package/dist/application-spec/generate-application/runtime/migrations/migration-runtime.d.ts +2 -2
  166. package/dist/application-spec/generate-application/runtime/sections/actions-runtime.d.ts +1 -2
  167. package/dist/application-spec/generate-application/runtime/sections/assistant-runtime.d.ts +2 -2
  168. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.d.ts +3 -2
  169. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.js +1 -1
  170. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.d.ts +3 -2
  171. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.js +1 -1
  172. package/dist/application-spec/generate-application/runtime/sections/component-optic.d.ts +4 -2
  173. package/dist/application-spec/generate-application/runtime/sections/component-optic.js +1 -1
  174. package/dist/application-spec/generate-application/runtime/sections/data-runtime.d.ts +4 -4
  175. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.d.ts +14 -6
  176. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +1 -1
  177. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.d.ts +10 -7
  178. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.js +1 -1
  179. package/dist/application-spec/generate-application/runtime/sections/preset-runtime.d.ts +2 -3
  180. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.d.ts +4 -2
  181. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.js +1 -1
  182. package/dist/application-spec/generate-application/runtime/sections/theme-runtime.d.ts +2 -2
  183. package/dist/application-spec/generate-application/runtime/sections/transformers-runtime.d.ts +3 -3
  184. package/dist/application-spec/generate-application/runtime/spec-code/index.d.ts +2 -0
  185. package/dist/application-spec/generate-application/runtime/spec-code/index.js +1 -0
  186. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.d.ts +18 -0
  187. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.js +1 -0
  188. package/dist/application-spec/generate-application/runtime/spec-code/spec-code-module.d.ts +17 -0
  189. package/dist/application-spec/generate-application/runtime/spec-runtime.d.ts +21 -0
  190. package/dist/application-spec/generate-application/runtime/spec-runtime.js +1 -0
  191. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.d.ts +9 -0
  192. package/dist/application-spec/generate-application/runtime-spec/decode-runtime-spec.js +1 -0
  193. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.d.ts +8 -0
  194. package/dist/application-spec/generate-application/runtime-spec/encode-runtime-spec.js +1 -0
  195. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.d.ts +28 -0
  196. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.js +1 -0
  197. package/dist/application-spec/generate-application/runtime-spec/index.d.ts +5 -0
  198. package/dist/application-spec/generate-application/runtime-spec/index.js +1 -0
  199. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.d.ts +168 -0
  200. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.js +1 -0
  201. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.d.ts +40 -0
  202. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.js +1 -0
  203. package/dist/application-spec/parse-application-files/categorize/categorize-files.d.ts +28 -0
  204. package/dist/application-spec/parse-application-files/categorize/categorize-files.js +1 -1
  205. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.d.ts +16 -0
  206. package/dist/application-spec/parse-application-files/categorize/earlier-generated-editor-configs.js +9 -0
  207. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.d.ts +9 -0
  208. package/dist/application-spec/parse-application-files/categorize/earlier-generated-tsconfig.js +1 -0
  209. package/dist/application-spec/parse-application-files/merge/merged-assistant.d.ts +13 -4
  210. package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
  211. package/dist/application-spec/parse-application-files/merge/merged-infra.d.ts +4 -11
  212. package/dist/application-spec/parse-application-files/merge/merged-transformers.d.ts +2 -4
  213. package/dist/application-spec/parse-application-files/parse-application-files.js +1 -1
  214. package/dist/application-spec/parse-application-files/raw-spec/parse-yaml-spec-file.js +1 -1
  215. package/dist/application-spec/parse-application-files/raw-spec/raw-acl.d.ts +2 -2
  216. package/dist/application-spec/parse-application-files/raw-spec/raw-acl.js +1 -1
  217. package/dist/application-spec/parse-application-files/raw-spec/raw-admin-pages.d.ts +3 -24
  218. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +58 -23
  219. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  220. package/dist/application-spec/parse-application-files/raw-spec/raw-expressions.d.ts +1 -1
  221. package/dist/application-spec/parse-application-files/raw-spec/raw-expressions.js +1 -1
  222. package/dist/application-spec/parse-application-files/raw-spec/raw-resources.d.ts +19 -64
  223. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-pages.d.ts +3 -20
  224. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-spec.js +1 -1
  225. package/dist/application-spec/parse-application-files/spec/application/admin-spec/states.d.ts +3 -5
  226. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.js +1 -1
  227. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/states.d.ts +3 -8
  228. package/dist/application-spec/parse-application-files/spec/common/index.d.ts +1 -0
  229. package/dist/application-spec/parse-application-files/spec/common/index.js +1 -1
  230. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.d.ts +3 -0
  231. package/dist/application-spec/parse-application-files/spec/common/value-type/format-value-type.js +1 -0
  232. package/dist/application-spec/parse-application-files/spec/common/value-type/index.d.ts +5 -0
  233. package/dist/application-spec/parse-application-files/spec/common/value-type/index.js +1 -0
  234. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.d.ts +6 -0
  235. package/dist/application-spec/parse-application-files/spec/common/value-type/intersect-value-types.js +1 -0
  236. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.d.ts +8 -0
  237. package/dist/application-spec/parse-application-files/spec/common/value-type/is-assignable-value-type.js +1 -0
  238. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.d.ts +10 -0
  239. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type-at.js +1 -0
  240. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.d.ts +98 -0
  241. package/dist/application-spec/parse-application-files/spec/common/value-type/value-type.js +1 -0
  242. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.d.ts +13 -0
  243. package/dist/application-spec/parse-application-files/spec/components/bindings/component-path.js +1 -0
  244. package/dist/application-spec/parse-application-files/spec/components/bindings/index.d.ts +2 -0
  245. package/dist/application-spec/parse-application-files/spec/components/bindings/index.js +1 -1
  246. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.d.ts +24 -0
  247. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding-type.js +1 -0
  248. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding.d.ts +3 -13
  249. package/dist/application-spec/parse-application-files/spec/components/bindings/write-binding.d.ts +4 -32
  250. package/dist/application-spec/parse-application-files/spec/components/component-filter.d.ts +4 -10
  251. package/dist/application-spec/parse-application-files/spec/components/component-state-type.d.ts +8 -0
  252. package/dist/application-spec/parse-application-files/spec/components/component-state-type.js +1 -0
  253. package/dist/application-spec/parse-application-files/spec/components/components.d.ts +3 -4
  254. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.d.ts +13 -0
  255. package/dist/application-spec/parse-application-files/spec/components/filter-criterion-types.js +1 -0
  256. package/dist/application-spec/parse-application-files/spec/components/index.d.ts +1 -2
  257. package/dist/application-spec/parse-application-files/spec/components/index.js +1 -1
  258. package/dist/application-spec/parse-application-files/spec/components/sdk-component-entry.d.ts +1 -1
  259. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.d.ts +14 -0
  260. package/dist/application-spec/parse-application-files/spec/components/static-entity-id.js +1 -0
  261. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.d.ts +8 -3
  262. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.js +1 -1
  263. package/dist/application-spec/parse-application-files/spec/components/user-components.d.ts +9 -7
  264. package/dist/application-spec/parse-application-files/spec/components/user-components.js +1 -1
  265. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.d.ts +24 -0
  266. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.js +1 -0
  267. package/dist/application-spec/parse-application-files/spec/expressions/expression-read.d.ts +13 -0
  268. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.d.ts +9 -0
  269. package/dist/application-spec/parse-application-files/spec/expressions/expression-value-type.js +1 -0
  270. package/dist/application-spec/parse-application-files/spec/expressions/expressions.d.ts +12 -30
  271. package/dist/application-spec/parse-application-files/spec/expressions/expressions.js +1 -1
  272. package/dist/application-spec/parse-application-files/spec/expressions/index.d.ts +0 -1
  273. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.d.ts +4 -71
  274. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.js +1 -1
  275. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.d.ts +5 -3
  276. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
  277. package/dist/application-spec/parse-application-files/spec/invariants/invariant.d.ts +5 -21
  278. package/dist/application-spec/parse-application-files/spec/invariants/invariants.d.ts +6 -16
  279. package/dist/application-spec/parse-application-files/spec/invariants/invariants.js +1 -1
  280. package/dist/application-spec/parse-application-files/spec/model/aliases.d.ts +3 -9
  281. package/dist/application-spec/parse-application-files/spec/model/common-types.d.ts +6 -14
  282. package/dist/application-spec/parse-application-files/spec/model/defaults.d.ts +6 -31
  283. package/dist/application-spec/parse-application-files/spec/model/entity-types.d.ts +3 -8
  284. package/dist/application-spec/parse-application-files/spec/model/index.d.ts +1 -0
  285. package/dist/application-spec/parse-application-files/spec/model/index.js +1 -1
  286. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.d.ts +10 -0
  287. package/dist/application-spec/parse-application-files/spec/model/model-type-resolution.js +1 -0
  288. package/dist/application-spec/parse-application-files/spec/model/model-version-key.d.ts +3 -3
  289. package/dist/application-spec/parse-application-files/spec/model/names/action-name.d.ts +3 -7
  290. package/dist/application-spec/parse-application-files/spec/model/names/alias-name.d.ts +3 -7
  291. package/dist/application-spec/parse-application-files/spec/model/names/entity-or-alias-name.d.ts +3 -8
  292. package/dist/application-spec/parse-application-files/spec/model/names/entity-type-name.d.ts +3 -8
  293. package/dist/application-spec/parse-application-files/spec/model/names/expression-name.d.ts +3 -6
  294. package/dist/application-spec/parse-application-files/spec/model/names/instance-name.d.ts +3 -7
  295. package/dist/application-spec/parse-application-files/spec/model/names/invariant-name.d.ts +3 -3
  296. package/dist/application-spec/parse-application-files/spec/model/names/shape-property-name.d.ts +3 -11
  297. package/dist/application-spec/parse-application-files/spec/model/names/violation-type-name.d.ts +3 -3
  298. package/dist/application-spec/parse-application-files/spec/model/presets.d.ts +6 -29
  299. package/dist/application-spec/parse-application-files/spec/sections/actions.d.ts +6 -23
  300. package/dist/application-spec/parse-application-files/spec/sections/app-metadata.d.ts +3 -18
  301. package/dist/application-spec/parse-application-files/spec/sections/application-version.d.ts +3 -7
  302. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +9 -0
  303. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -0
  304. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +4 -1
  305. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  306. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant.js +1 -1
  307. package/dist/application-spec/parse-application-files/spec/sections/data-spec/chunks.d.ts +6 -23
  308. package/dist/application-spec/parse-application-files/spec/sections/data-spec/custom-data-spec.d.ts +1 -16
  309. package/dist/application-spec/parse-application-files/spec/sections/data-spec/data-entry-key.d.ts +3 -9
  310. package/dist/application-spec/parse-application-files/spec/sections/data-spec/data-spec.d.ts +1 -10
  311. package/dist/application-spec/parse-application-files/spec/sections/data-spec/swatch-data-spec.d.ts +1 -14
  312. package/dist/application-spec/parse-application-files/spec/sections/state-value.d.ts +3 -7
  313. package/dist/application-spec/parse-application-files/spec/sections/theme.d.ts +3 -10
  314. package/dist/application-spec/parse-application-files/spec/sections/transformers.d.ts +4 -11
  315. package/dist/application-spec/parse-application-files/spec/sections/ui.d.ts +3 -12
  316. package/dist/client/authorized-client.d.ts +3 -1
  317. package/dist/client/authorized-client.js +1 -1
  318. package/dist/client/contract.d.ts +30 -1
  319. package/dist/client/contract.js +1 -1
  320. package/dist/client/index.d.ts +1 -1
  321. package/dist/client/local-authorized-client.d.ts +3 -1
  322. package/dist/client/local-authorized-client.js +1 -1
  323. package/dist/client/memory-authorized-client.d.ts +4 -1
  324. package/dist/client/memory-authorized-client.js +1 -1
  325. package/dist/client/phoenix-api.d.ts +695 -70
  326. package/dist/configurator/ConfiguratorApp.js +1 -1
  327. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.d.ts +2 -0
  328. package/dist/configurator/app-loader-content/DefaultAppLoaderContent.js +5 -0
  329. package/dist/configurator/app-loader-content/index.d.ts +1 -0
  330. package/dist/configurator/app-loader-content/index.js +1 -0
  331. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  332. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +75 -10
  333. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  334. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +52 -9
  335. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  336. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +1 -1
  337. package/dist/configurator/application-runtime/extensions/systems/canvas-system.d.ts +8 -0
  338. package/dist/configurator/application-runtime/extensions/systems/canvas-system.js +1 -1
  339. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.d.ts +8 -0
  340. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.js +1 -0
  341. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +23 -1
  342. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  343. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.d.ts +12 -0
  344. package/dist/configurator/application-runtime/extensions/systems/graphql-system/close-unclosed-braces.js +1 -0
  345. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +82 -55
  346. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  347. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +67 -5
  348. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  349. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.d.ts +40 -0
  350. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.js +1 -0
  351. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +14 -5
  352. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  353. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +1 -1
  354. package/dist/configurator/common/configurator-interface.d.ts +121 -6
  355. package/dist/configurator/common/configurator-interface.js +1 -1
  356. package/dist/configurator/common/index.d.ts +2 -2
  357. package/dist/configurator/common/index.js +1 -1
  358. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.d.ts +5 -0
  359. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.js +1 -0
  360. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.d.ts +6 -0
  361. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.js +1 -0
  362. package/dist/configurator/configuration-not-found-page/index.d.ts +2 -0
  363. package/dist/configurator/configuration-not-found-page/index.js +1 -0
  364. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.d.ts +12 -0
  365. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.js +1 -0
  366. package/dist/configurator/configurator-context/PreviewContextProvider.js +1 -1
  367. package/dist/configurator/configurator-context/ViewportStateSync.d.ts +2 -2
  368. package/dist/configurator/configurator-context/ViewportStateSync.js +1 -1
  369. package/dist/configurator/configurator-context/configurator-hooks/index.d.ts +0 -1
  370. package/dist/configurator/configurator-context/configurator-hooks/index.js +1 -1
  371. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.d.ts +10 -0
  372. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.js +1 -1
  373. package/dist/configurator/configurator-context/index.d.ts +0 -5
  374. package/dist/configurator/configurator-context/index.js +1 -1
  375. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.d.ts +6 -0
  376. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.js +1 -0
  377. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.d.ts +7 -0
  378. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.js +1 -0
  379. package/dist/configurator/configurator-error-page/index.d.ts +2 -0
  380. package/dist/configurator/configurator-error-page/index.js +1 -0
  381. package/dist/configurator/index.d.ts +10 -0
  382. package/dist/configurator/index.js +1 -1
  383. package/dist/configurator/pages/ConfiguratorErrorPage.d.ts +0 -1
  384. package/dist/configurator/pages/ConfiguratorErrorPage.js +1 -1
  385. package/dist/configurator/pages/ConfiguratorNotFoundPage.js +1 -1
  386. package/dist/configurator/pages/DefaultConfiguratorLayout.d.ts +3 -2
  387. package/dist/configurator/pages/DefaultNotAuthenticatedPage.d.ts +8 -0
  388. package/dist/configurator/pages/DefaultNotAuthenticatedPage.js +1 -0
  389. package/dist/configurator/pages/DefaultPresetUi.d.ts +7 -0
  390. package/dist/configurator/pages/DefaultPresetUi.js +1 -0
  391. package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
  392. package/dist/configurator/pages/NewConfiguratorPage.js +1 -1
  393. package/dist/configurator/pages/PresetCreationErrorPage.d.ts +1 -1
  394. package/dist/configurator/pages/PresetCreationErrorPage.js +1 -1
  395. package/dist/configurator/pages/RootPage.js +1 -1
  396. package/dist/configurator/pages/default-configurator-elements.d.ts +7 -1
  397. package/dist/configurator/pages/default-configurator-elements.js +1 -1
  398. package/dist/configurator/pages/default-elements/built-in-entity-element.d.ts +10 -0
  399. package/dist/configurator/pages/default-elements/built-in-entity-element.js +1 -0
  400. package/dist/configurator/pages/default-elements/built-in-layout-element.d.ts +10 -0
  401. package/dist/configurator/pages/default-elements/built-in-layout-element.js +1 -0
  402. package/dist/configurator/pages/default-elements/domain-control-elements.d.ts +6 -0
  403. package/dist/configurator/pages/default-elements/domain-control-elements.js +1 -0
  404. package/dist/configurator/pages/default-elements/index.d.ts +5 -0
  405. package/dist/configurator/pages/default-elements/index.js +1 -0
  406. package/dist/configurator/pages/default-elements/recipe-panel-elements.d.ts +3 -0
  407. package/dist/configurator/pages/default-elements/recipe-panel-elements.js +1 -0
  408. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.d.ts +3 -0
  409. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.js +1 -0
  410. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.d.ts +3 -0
  411. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.js +1 -0
  412. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.d.ts +3 -0
  413. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.js +1 -0
  414. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.d.ts +3 -0
  415. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.js +1 -0
  416. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.d.ts +3 -0
  417. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.js +1 -0
  418. package/dist/configurator/pages/default-elements/scene-controls/index.d.ts +6 -0
  419. package/dist/configurator/pages/default-elements/scene-controls/index.js +1 -0
  420. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.d.ts +6 -0
  421. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.js +1 -0
  422. package/dist/configurator/pages/default-elements/sidebar-footer-elements.d.ts +7 -0
  423. package/dist/configurator/pages/default-elements/sidebar-footer-elements.js +1 -0
  424. package/dist/configurator/pages/default-elements/toolbar-elements.d.ts +7 -0
  425. package/dist/configurator/pages/default-elements/toolbar-elements.js +1 -0
  426. package/dist/configurator/pages/error-boundaries/DevContextFallback.js +1 -1
  427. package/dist/configurator/pages/error-boundaries/DevLoadingFallback.js +1 -1
  428. package/dist/configurator/pages/error-boundaries/GeneralErrorBoundary.js +1 -1
  429. package/dist/configurator/pages/error-boundaries/LoadingErrorBoundary.js +1 -1
  430. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.d.ts +4 -0
  431. package/dist/configurator/preset-screen-elements/PresetDeviceNotSupportedElement.js +1 -0
  432. package/dist/configurator/preset-screen-elements/PresetPageActionElement.d.ts +4 -0
  433. package/dist/configurator/preset-screen-elements/PresetPageActionElement.js +1 -0
  434. package/dist/configurator/preset-screen-elements/index.d.ts +2 -0
  435. package/dist/configurator/preset-screen-elements/index.js +1 -0
  436. package/dist/configurator/scene/index.d.ts +1 -0
  437. package/dist/configurator/scene/index.js +1 -1
  438. package/dist/configurator/scene/scene-controls/DeleteEntityFab.js +1 -1
  439. package/dist/configurator/scene/scene-controls/SelectionHotspot.js +1 -1
  440. package/dist/configurator/scene/scene-controls/ToolFab.d.ts +4 -0
  441. package/dist/configurator/scene/scene-controls/ToolFab.js +1 -1
  442. package/dist/configurator/scene/scene-controls/use-scene-control-tooltip.d.ts +2 -1
  443. package/dist/configurator/scene/scene-entity/scene-controls/SceneEntityHtmlHotspots.js +1 -1
  444. package/dist/configurator/toolbar-actions/index.d.ts +3 -0
  445. package/dist/configurator/toolbar-actions/index.js +1 -0
  446. package/dist/configurator/toolbar-actions/use-assistant-panel.d.ts +18 -0
  447. package/dist/configurator/toolbar-actions/use-assistant-panel.js +1 -0
  448. package/dist/configurator/toolbar-actions/use-measurements.d.ts +35 -0
  449. package/dist/configurator/toolbar-actions/use-measurements.js +1 -0
  450. package/dist/configurator/toolbar-actions/use-toolbar-actions.d.ts +100 -0
  451. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -0
  452. package/dist/configurator/toolbar-actions/use-toolbar-help.d.ts +7 -0
  453. package/dist/configurator/toolbar-actions/use-toolbar-help.js +1 -0
  454. package/dist/configurator/ui/assistant/AssistantChips.d.ts +3 -2
  455. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  456. package/dist/configurator/ui/assistant/AssistantComposer.d.ts +6 -0
  457. package/dist/configurator/ui/assistant/AssistantComposer.js +2 -1
  458. package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +7 -2
  459. package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -1
  460. package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
  461. package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
  462. package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +8 -0
  463. package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -0
  464. package/dist/configurator/ui/assistant/alert/index.d.ts +2 -0
  465. package/dist/configurator/ui/assistant/alert/index.js +1 -0
  466. package/dist/configurator/ui/assistant/alert/remark-alerts.d.ts +10 -0
  467. package/dist/configurator/ui/assistant/alert/remark-alerts.js +1 -0
  468. package/dist/configurator/ui/assistant/attachments/MessageImages.d.ts +11 -0
  469. package/dist/configurator/ui/assistant/attachments/MessageImages.js +1 -0
  470. package/dist/configurator/ui/assistant/attachments/index.d.ts +2 -0
  471. package/dist/configurator/ui/assistant/attachments/index.js +1 -0
  472. package/dist/configurator/ui/assistant/attachments/prepare-image.d.ts +19 -0
  473. package/dist/configurator/ui/assistant/attachments/prepare-image.js +1 -0
  474. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.d.ts +1 -1
  475. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.js +1 -1
  476. package/dist/configurator/ui/assistant/entity-link/entity-link-state.d.ts +1 -1
  477. package/dist/configurator/ui/assistant/entity-link/index.d.ts +0 -1
  478. package/dist/configurator/ui/assistant/entity-link/index.js +1 -1
  479. package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +19 -0
  480. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -0
  481. package/dist/configurator/ui/assistant/form/compose-answer.d.ts +11 -0
  482. package/dist/configurator/ui/assistant/form/compose-answer.js +1 -0
  483. package/dist/configurator/ui/assistant/form/describe-build-errors.d.ts +6 -0
  484. package/dist/configurator/ui/assistant/form/describe-build-errors.js +1 -0
  485. package/dist/configurator/ui/assistant/form/form-model.d.ts +37 -0
  486. package/dist/configurator/ui/assistant/form/form-model.js +1 -0
  487. package/dist/configurator/ui/assistant/form/form-state.d.ts +4 -0
  488. package/dist/configurator/ui/assistant/form/form-state.js +1 -0
  489. package/dist/configurator/ui/assistant/form/index.d.ts +4 -0
  490. package/dist/configurator/ui/assistant/form/index.js +1 -0
  491. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +10 -0
  492. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -0
  493. package/dist/configurator/ui/assistant/form/read-form-attributes.d.ts +13 -0
  494. package/dist/configurator/ui/assistant/form/read-form-attributes.js +1 -0
  495. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +3 -0
  496. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -0
  497. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +31 -0
  498. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.js +1 -0
  499. package/dist/configurator/ui/assistant/form/registry/form-element-definition.d.ts +16 -0
  500. package/dist/configurator/ui/assistant/form/registry/form-element-definition.js +1 -0
  501. package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +31 -0
  502. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -0
  503. package/dist/configurator/ui/assistant/form/registry/index.d.ts +6 -0
  504. package/dist/configurator/ui/assistant/form/registry/index.js +1 -0
  505. package/dist/configurator/ui/assistant/form/registry/use-form-registry.d.ts +8 -0
  506. package/dist/configurator/ui/assistant/form/registry/use-form-registry.js +1 -0
  507. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +9 -0
  508. package/dist/configurator/ui/assistant/form-elements/FormCard.js +1 -0
  509. package/dist/configurator/ui/assistant/form-elements/FormConfirm.d.ts +9 -0
  510. package/dist/configurator/ui/assistant/form-elements/FormConfirm.js +1 -0
  511. package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +6 -0
  512. package/dist/configurator/ui/assistant/form-elements/FormGroup.js +1 -0
  513. package/dist/configurator/ui/assistant/form-elements/FormNumber.d.ts +9 -0
  514. package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -0
  515. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +6 -0
  516. package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -0
  517. package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +6 -0
  518. package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -0
  519. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +10 -0
  520. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +1 -0
  521. package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +6 -0
  522. package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -0
  523. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.d.ts +10 -0
  524. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.js +1 -0
  525. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +38 -0
  526. package/dist/configurator/ui/assistant/form-elements/index.d.ts +9 -0
  527. package/dist/configurator/ui/assistant/form-elements/index.js +1 -0
  528. package/dist/configurator/ui/assistant/index.d.ts +3 -0
  529. package/dist/configurator/ui/assistant/index.js +1 -1
  530. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.d.ts +16 -0
  531. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -0
  532. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.d.ts +34 -0
  533. package/dist/configurator/ui/assistant/reference-link/assistant-link-target.js +1 -0
  534. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +25 -0
  535. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -0
  536. package/dist/configurator/ui/assistant/reference-link/index.d.ts +3 -0
  537. package/dist/configurator/ui/assistant/reference-link/index.js +1 -0
  538. package/dist/configurator/ui/assistant/reference-link/reference-styles.d.ts +12 -0
  539. package/dist/configurator/ui/assistant/reference-link/reference-styles.js +1 -0
  540. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.d.ts +8 -0
  541. package/dist/configurator/ui/assistant/reference-link/use-assistant-reference-details.js +1 -0
  542. package/dist/configurator/ui/assistant/resource-image/AssistantImage.d.ts +9 -0
  543. package/dist/configurator/ui/assistant/resource-image/AssistantImage.js +1 -0
  544. package/dist/configurator/ui/assistant/resource-image/index.d.ts +3 -0
  545. package/dist/configurator/ui/assistant/resource-image/index.js +1 -0
  546. package/dist/configurator/ui/assistant/resource-image/resource-path.d.ts +2 -0
  547. package/dist/configurator/ui/assistant/resource-image/resource-path.js +1 -0
  548. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.d.ts +5 -0
  549. package/dist/configurator/ui/assistant/resource-image/use-resource-image-url.js +1 -0
  550. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +9 -0
  551. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -0
  552. package/dist/configurator/ui/assistant/screenshots/index.d.ts +3 -0
  553. package/dist/configurator/ui/assistant/screenshots/index.js +1 -0
  554. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +22 -0
  555. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -0
  556. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +8 -0
  557. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -0
  558. package/dist/configurator/ui/assistant/streamed-markdown.d.ts +4 -2
  559. package/dist/configurator/ui/assistant/streamed-markdown.js +2 -2
  560. package/dist/configurator/ui/assistant/thread-items.d.ts +10 -1
  561. package/dist/configurator/ui/assistant/thread-items.js +1 -1
  562. package/dist/configurator/ui/assistant/tool-chip.d.ts +19 -9
  563. package/dist/configurator/ui/assistant/tool-chip.js +1 -1
  564. package/dist/configurator/ui/assistant/use-follow-stream.js +1 -1
  565. package/dist/configurator/ui/configurator-layout/slots/canvas/GPUAccelerationDisabled.js +1 -1
  566. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  567. package/dist/configurator/ui/configurator-layout/slots/canvas/SharedCanvas.js +1 -1
  568. package/dist/configurator/ui/configurator-layout/slots/canvas/WebGLNotSupported.js +1 -1
  569. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.d.ts +1 -1
  570. package/dist/configurator/ui/configurator-layout/slots/mobile-tabs/use-mobile-tabs.js +1 -1
  571. package/dist/configurator/ui/configurator-layout/slots/readonly-banner/CloneToEditDialog.js +1 -1
  572. package/dist/configurator/ui/configurator-layout/slots/services/InvariantViolations.js +1 -1
  573. package/dist/configurator/ui/configurator-layout/slots/services/Services.js +1 -1
  574. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.d.ts +1 -1
  575. package/dist/configurator/ui/configurator-layout/slots/sidebar-tabs/use-sidebar-tabs.js +1 -1
  576. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  577. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.d.ts +5 -0
  578. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.js +1 -0
  579. package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
  580. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  581. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.d.ts +1 -1
  582. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -1
  583. package/dist/configurator/ui/configurator-layout/universal/use-scene-safe-area.d.ts +1 -1
  584. package/dist/configurator/ui/index.d.ts +1 -0
  585. package/dist/configurator/ui/index.js +1 -1
  586. package/dist/configurator/ui/legacy/chat/MobileChat.js +1 -1
  587. package/dist/configurator/ui/legacy/layout/common/CommonFinalizeButton.js +1 -1
  588. package/dist/configurator/ui/legacy/layout/common/CommonSummaryButton.js +1 -1
  589. package/dist/configurator/ui/legacy/layout/common/CommonTopNavigation.js +1 -1
  590. package/dist/configurator/ui/legacy/layout/common/ReactiveInterfaceLayout.js +1 -1
  591. package/dist/configurator/ui/legacy/layout/common/ResponsiveFinalizeButton.js +1 -1
  592. package/dist/configurator/ui/legacy/layout/common/SummaryReadLayout.js +1 -1
  593. package/dist/configurator/ui/legacy/layout/simple/SimpleOwnerLayout.js +1 -1
  594. package/dist/configurator/ui/legacy/layout/simple/SimpleSidebar.js +1 -1
  595. package/dist/configurator/ui/legacy/layout/simple/SimpleTopNavigation.js +1 -1
  596. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.js +1 -1
  597. package/dist/configurator/ui/legacy/layout/steps/StepsOwnerLayout.js +1 -1
  598. package/dist/configurator/ui/legacy/layout/steps/StepsSideBar.js +1 -1
  599. package/dist/configurator/ui/legacy/layout/steps/StepsSidebarFooter.js +1 -1
  600. package/dist/configurator/ui/legacy/layout/tabs/TabsOwnerLayout.js +1 -1
  601. package/dist/configurator/ui/legacy/layout/tabs/TabsSidebar.js +1 -1
  602. package/dist/configurator/ui/legacy/toolbar/common/DimensionUnitSelector.js +1 -1
  603. package/dist/configurator/ui/legacy/toolbar/common/MeasurementsIndicatorsSwitch.js +1 -1
  604. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/FullscreenToolbarAction.js +1 -1
  605. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/HelpToolbarAction.js +1 -1
  606. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/MeasurementsToolbarAction.js +1 -1
  607. package/dist/configurator/ui/legacy/toolbar/desktop-toolbar/UndoRedoToolbarGroup.js +1 -1
  608. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.d.ts +0 -7
  609. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.js +2 -6
  610. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -1
  611. package/dist/configurator/ui/phoenix-layout-elements/EnterFullscreenToolbarButton.js +1 -1
  612. package/dist/configurator/ui/phoenix-layout-elements/ExitFullscreenToolbarButton.js +1 -1
  613. package/dist/configurator/ui/phoenix-layout-elements/HelpToolbarButton.js +1 -1
  614. package/dist/configurator/ui/phoenix-layout-elements/LanguageMenuAction.js +1 -1
  615. package/dist/configurator/ui/phoenix-layout-elements/LanguageToolbarButton.js +1 -1
  616. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.d.ts +1 -0
  617. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomOwnerUi.js +1 -1
  618. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.d.ts +1 -0
  619. package/dist/configurator/ui/phoenix-layout-elements/LayoutCustomReadUi.js +1 -1
  620. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsMenuAction.js +1 -1
  621. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsToolbarButton.js +1 -1
  622. package/dist/configurator/ui/phoenix-layout-elements/RedoToolbarButton.js +1 -1
  623. package/dist/configurator/ui/phoenix-layout-elements/ShareToolbarButton.js +1 -1
  624. package/dist/configurator/ui/phoenix-layout-elements/UndoToolbarButton.js +1 -1
  625. package/dist/configurator/ui/phoenix-layout-elements/header/common/back-button/use-go-back-action.js +1 -1
  626. package/dist/configurator/ui/phoenix-layout-elements/header/common/horizontal-tabs/DesktopHorizontalTabs.js +1 -1
  627. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.d.ts +1 -1
  628. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/DesktopNavigationSteps.js +1 -1
  629. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.d.ts +2 -8
  630. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.js +1 -1
  631. package/dist/configurator/ui/phoenix-layout-elements/index.d.ts +8 -1
  632. package/dist/configurator/ui/phoenix-layout-elements/index.js +1 -1
  633. package/dist/configurator/ui/phoenix-layout-elements/measurements/DimensionUnitSelector.js +1 -1
  634. package/dist/configurator/ui/phoenix-layout-elements/measurements/MeasurementsIndicatorsSwitch.js +1 -1
  635. package/dist/configurator/ui/phoenix-layout-elements/share/ShareModal.js +1 -1
  636. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.d.ts +7 -8
  637. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.js +1 -1
  638. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/BasicFinalizeButton.js +1 -1
  639. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/use-basic-sidebar-footer.js +1 -1
  640. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/CustomFinalizeButton.js +1 -1
  641. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/EnterSummaryButton.js +1 -1
  642. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/FinalizeActions.js +1 -1
  643. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/NextStepButton.js +1 -1
  644. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/PreviousStepButton.js +1 -1
  645. package/dist/configurator/ui/preset-layout/CategoryPresetUi.js +1 -1
  646. package/dist/configurator/ui/preset-layout/PresetUi.d.ts +4 -2
  647. package/dist/configurator/ui/preset-layout/PresetUi.js +1 -1
  648. package/dist/configurator/ui/preset-layout/index.d.ts +6 -1
  649. package/dist/configurator/ui/preset-layout/index.js +1 -1
  650. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.d.ts +10 -0
  651. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.js +1 -0
  652. package/dist/configurator/ui/save-message-snackbars/index.d.ts +1 -0
  653. package/dist/configurator/ui/save-message-snackbars/index.js +1 -0
  654. package/dist/docs/3d-scene/cameras/custom.mdx +4 -2
  655. package/dist/docs/complex-use-cases/focus-mode.mdx +2 -0
  656. package/dist/docs/controls/select-child-entity/cardselect.mdx +1 -0
  657. package/dist/docs/drag-and-drop/room-planner.mdx +1 -1
  658. package/dist/docs/fabs/basic.mdx +6 -2
  659. package/dist/docs/index.json +95 -1
  660. package/dist/docs/integrations/webcomponent-api/basics.mdx +2 -0
  661. package/dist/docs/layouts/custom-layout.mdx +637 -165
  662. package/dist/docs/layouts/gallery/ardent-compressor.mdx +3516 -0
  663. package/dist/docs/layouts/gallery/corvid-drone.mdx +3428 -0
  664. package/dist/docs/layouts/gallery/fenwick-window.mdx +2803 -0
  665. package/dist/docs/layouts/gallery/ferrule-bar-station.mdx +6567 -0
  666. package/dist/docs/layouts/gallery/kestrel-kettle.mdx +1858 -0
  667. package/dist/docs/layouts/gallery/nightjar-guitar.mdx +3698 -0
  668. package/dist/docs/layouts/gallery/sunfold-solar.mdx +2683 -0
  669. package/dist/docs/layouts/gallery/tidepool-aquascape.mdx +5203 -0
  670. package/dist/docs/other-features/client-side-rendering/declarative.mdx +1 -1
  671. package/dist/docs/other-features/error-5xx.mdx +1 -1
  672. package/dist/docs/other-features/navigation-hotspot.mdx +2 -0
  673. package/dist/docs/other-features/not-found-404.mdx +1 -1
  674. package/dist/docs/phoenix/clerk-sign-in.mdx +1 -1
  675. package/dist/docs/phoenix/components.mdx +6 -0
  676. package/dist/docs/phoenix/configurator-interface.mdx +223 -59
  677. package/dist/docs/phoenix/deployments.mdx +2 -6
  678. package/dist/docs/phoenix/domain-model.mdx +6 -1
  679. package/dist/docs/phoenix/finalization.mdx +1 -1
  680. package/dist/docs/phoenix/getting-started.mdx +6 -3
  681. package/dist/docs/phoenix/layout-slots.mdx +44 -23
  682. package/dist/docs/phoenix/localization.mdx +10 -6
  683. package/dist/docs/phoenix/migration-guide.mdx +27 -14
  684. package/dist/docs/phoenix/phoenix-cli.mdx +102 -24
  685. package/dist/docs/phoenix/project-structure.mdx +74 -36
  686. package/dist/docs/phoenix/quickstart.mdx +7 -7
  687. package/dist/docs/phoenix/sdk-builder-workflow.mdx +14 -12
  688. package/dist/docs/phoenix/sessions-and-access.mdx +2 -0
  689. package/dist/docs/phoenix/testing.mdx +8 -0
  690. package/dist/docs/phoenix/webhooks.mdx +13 -5
  691. package/dist/docs/selection-and-highlight/hotspots.mdx +2 -0
  692. package/dist/domain/application/application-config.d.ts +6 -24
  693. package/dist/domain/application/assistant/assistant-manifest.d.ts +29 -4
  694. package/dist/domain/application/assistant/assistant-manifest.js +1 -1
  695. package/dist/domain/application/assistant/assistant-resolved-manifest.d.ts +12 -9
  696. package/dist/domain/application/assistant/assistant-resolved-manifest.js +1 -1
  697. package/dist/domain/application/assistant/build-assistant-lenses.js +1 -1
  698. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  699. package/dist/domain/application/assistant/form/assistant-form-element-name.d.ts +11 -0
  700. package/dist/domain/application/assistant/form/assistant-form-element-name.js +8 -0
  701. package/dist/domain/application/assistant/form/assistant-form-elements.d.ts +174 -0
  702. package/dist/domain/application/assistant/form/assistant-form-elements.js +1 -0
  703. package/dist/domain/application/assistant/form/assistant-resource-path.d.ts +10 -0
  704. package/dist/domain/application/assistant/form/assistant-resource-path.js +1 -0
  705. package/dist/domain/application/assistant/form/index.d.ts +4 -0
  706. package/dist/domain/application/assistant/form/index.js +1 -0
  707. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +3 -0
  708. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  709. package/dist/domain/application/assistant/index.d.ts +4 -3
  710. package/dist/domain/application/assistant/index.js +1 -1
  711. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -1
  712. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +4 -4
  713. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -1
  714. package/dist/domain/application/assistant-mutations.js +1 -1
  715. package/dist/domain/application/assistant-recipe-groups.d.ts +3 -1
  716. package/dist/domain/application/configurator-builder.d.ts +7 -1
  717. package/dist/domain/application/configurator-builder.js +1 -1
  718. package/dist/domain/application/index.d.ts +1 -1
  719. package/dist/domain/application/index.js +1 -1
  720. package/dist/domain/application/standard-properties.js +1 -1
  721. package/dist/domain/application/web-component-property.d.ts +3 -1
  722. package/dist/domain/application/web-component-property.js +1 -1
  723. package/dist/domain/available-system-components/available-system-components.d.ts +11 -0
  724. package/dist/domain/available-system-components/available-system-components.js +1 -0
  725. package/dist/domain/available-system-components/index.d.ts +1 -0
  726. package/dist/domain/available-system-components/index.js +1 -0
  727. package/dist/domain/core/schema/extended-schema-validator.js +1 -1
  728. package/dist/domain/{domain-builder.d.ts → domain-builder/domain-builder.d.ts} +11 -5
  729. package/dist/domain/domain-builder/domain-builder.js +1 -0
  730. package/dist/domain/domain-builder/index.d.ts +1 -0
  731. package/dist/domain/domain-builder/index.js +1 -0
  732. package/dist/domain/domain-context/store-system/store-system.d.ts +5 -0
  733. package/dist/domain/domain-context/store-system/store-system.js +1 -1
  734. package/dist/domain/domain-runtime/application.d.ts +39 -0
  735. package/dist/domain/domain-runtime/application.js +1 -0
  736. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +1 -0
  737. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  738. package/dist/domain/domain-runtime/domain-runtime.d.ts +44 -4
  739. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  740. package/dist/domain/domain-runtime/environment/initialize.d.ts +1 -1
  741. package/dist/domain/domain-runtime/environment/types.d.ts +1 -1
  742. package/dist/domain/domain-runtime/errors/implementation-error-collector.d.ts +2 -0
  743. package/dist/domain/domain-runtime/errors/implementation-error-collector.js +1 -1
  744. package/dist/domain/domain-runtime/index.d.ts +2 -1
  745. package/dist/domain/domain-runtime/index.js +1 -1
  746. package/dist/domain/domain-runtime/spec/index.d.ts +1 -1
  747. package/dist/domain/domain-runtime/spec/index.js +1 -1
  748. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  749. package/dist/domain/domain-runtime/spec/module-checks/element-registration.d.ts +27 -12
  750. package/dist/domain/domain-runtime/spec/module-checks/element-registration.js +1 -1
  751. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.d.ts +12 -0
  752. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.js +1 -0
  753. package/dist/domain/domain-runtime/spec/module-checks/index.d.ts +3 -1
  754. package/dist/domain/domain-runtime/spec/module-checks/index.js +1 -1
  755. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.d.ts +23 -0
  756. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.js +1 -0
  757. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.d.ts +3 -4
  758. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.js +1 -1
  759. package/dist/domain/domain-runtime/spec/selectors.d.ts +3 -1
  760. package/dist/domain/domain-runtime/spec/selectors.js +1 -1
  761. package/dist/domain/domain-runtime/web-component/actions.d.ts +3 -0
  762. package/dist/domain/domain-runtime/web-component/actions.js +1 -1
  763. package/dist/domain/domain-runtime/web-component/initialize.d.ts +1 -0
  764. package/dist/domain/domain-runtime/web-component/initialize.js +1 -1
  765. package/dist/domain/domain-runtime/web-component/selectors.d.ts +2 -0
  766. package/dist/domain/domain-runtime/web-component/selectors.js +1 -1
  767. package/dist/domain/domain-runtime/web-component/types.d.ts +6 -3
  768. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +30 -0
  769. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -0
  770. package/dist/domain/extensions/{client-side-image.d.ts → export-images/client-side-image.d.ts} +2 -2
  771. package/dist/domain/extensions/export-images/client-side-image.js +1 -0
  772. package/dist/domain/extensions/export-images/index.d.ts +3 -0
  773. package/dist/domain/extensions/export-images/index.js +1 -0
  774. package/dist/domain/extensions/{save-template-thumbnail.d.ts → export-images/save-template-thumbnail.d.ts} +2 -2
  775. package/dist/domain/extensions/export-images/save-template-thumbnail.js +1 -0
  776. package/dist/domain/extensions/index.d.ts +1 -2
  777. package/dist/domain/extensions/index.js +1 -1
  778. package/dist/domain/index.d.ts +3 -2
  779. package/dist/domain/index.js +1 -1
  780. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +9 -0
  781. package/dist/domain/spec/application/admin-pages-section.d.ts +29 -0
  782. package/dist/domain/spec/application/admin-pages-section.js +1 -0
  783. package/dist/domain/spec/application/admin-pages.d.ts +26 -0
  784. package/dist/domain/spec/application/admin-pages.js +1 -0
  785. package/dist/domain/spec/application/admin-states.d.ts +5 -0
  786. package/dist/domain/spec/application/admin-states.js +1 -0
  787. package/dist/domain/spec/application/configurator-states.d.ts +8 -0
  788. package/dist/domain/spec/application/configurator-states.js +1 -0
  789. package/dist/domain/spec/application/index.d.ts +5 -0
  790. package/dist/domain/spec/application/index.js +1 -0
  791. package/dist/domain/spec/components/bindings/index.d.ts +2 -0
  792. package/dist/domain/spec/components/bindings/index.js +1 -0
  793. package/dist/domain/spec/components/bindings/read-binding.d.ts +13 -0
  794. package/dist/domain/spec/components/bindings/read-binding.js +1 -0
  795. package/dist/domain/spec/components/bindings/write-binding.d.ts +32 -0
  796. package/dist/domain/spec/components/bindings/write-binding.js +1 -0
  797. package/dist/{application-spec/parse-application-files → domain}/spec/components/component-entry.d.ts +3 -3
  798. package/dist/domain/spec/components/component-entry.js +1 -0
  799. package/dist/{application-spec/core → domain/spec}/components/component-filter.d.ts +3 -2
  800. package/dist/domain/spec/components/component-filters.d.ts +10 -0
  801. package/dist/domain/spec/components/component-filters.js +1 -0
  802. package/dist/domain/spec/components/components.d.ts +4 -0
  803. package/dist/domain/spec/components/components.js +1 -0
  804. package/dist/domain/spec/components/index.d.ts +6 -0
  805. package/dist/domain/spec/enhanced-json/enhanced-json-value.d.ts +30 -0
  806. package/dist/domain/spec/enhanced-json/enhanced-json-value.js +1 -0
  807. package/dist/domain/spec/enhanced-json/index.d.ts +1 -0
  808. package/dist/domain/spec/enhanced-json/index.js +1 -0
  809. package/dist/{application-spec/parse-application-files → domain}/spec/expressions/expression.d.ts +9 -3
  810. package/dist/domain/spec/expressions/expression.js +1 -0
  811. package/dist/domain/spec/expressions/expressions.d.ts +27 -0
  812. package/dist/domain/spec/expressions/expressions.js +1 -0
  813. package/dist/domain/spec/expressions/index.d.ts +5 -0
  814. package/dist/domain/spec/expressions/memo-eval-plan.d.ts +70 -0
  815. package/dist/domain/spec/expressions/memo-eval-plan.js +1 -0
  816. package/dist/domain/spec/expressions/relation-expression-params.js +1 -0
  817. package/dist/domain/spec/index.d.ts +9 -0
  818. package/dist/domain/spec/index.js +1 -0
  819. package/dist/domain/spec/invariants/index.d.ts +2 -0
  820. package/dist/domain/spec/invariants/index.js +1 -0
  821. package/dist/domain/spec/invariants/invariant.d.ts +24 -0
  822. package/dist/domain/spec/invariants/invariant.js +1 -0
  823. package/dist/domain/spec/invariants/invariants.d.ts +14 -0
  824. package/dist/domain/spec/invariants/invariants.js +1 -0
  825. package/dist/domain/spec/json-schema.d.ts +52 -0
  826. package/dist/domain/spec/json-schema.js +1 -0
  827. package/dist/domain/spec/markers/index.d.ts +3 -0
  828. package/dist/domain/spec/markers/index.js +1 -0
  829. package/dist/domain/spec/markers/msg-marker.d.ts +28 -0
  830. package/dist/domain/spec/markers/msg-marker.js +1 -0
  831. package/dist/domain/spec/model/aliases.d.ts +9 -0
  832. package/dist/domain/spec/model/aliases.js +1 -0
  833. package/dist/domain/spec/model/common-types.d.ts +15 -0
  834. package/dist/domain/spec/model/common-types.js +1 -0
  835. package/dist/domain/spec/model/defaults.d.ts +33 -0
  836. package/dist/domain/spec/model/defaults.js +1 -0
  837. package/dist/domain/spec/model/entity-types.d.ts +8 -0
  838. package/dist/domain/spec/model/entity-types.js +1 -0
  839. package/dist/domain/spec/model/index.d.ts +7 -0
  840. package/dist/domain/spec/model/index.js +1 -0
  841. package/dist/domain/spec/model/model-version-key.d.ts +3 -0
  842. package/dist/domain/spec/model/model-version-key.js +1 -0
  843. package/dist/domain/spec/model/names/action-name.d.ts +7 -0
  844. package/dist/domain/spec/model/names/action-name.js +1 -0
  845. package/dist/domain/spec/model/names/alias-name.d.ts +7 -0
  846. package/dist/domain/spec/model/names/alias-name.js +1 -0
  847. package/dist/domain/spec/model/names/entity-or-alias-name.d.ts +8 -0
  848. package/dist/domain/spec/model/names/entity-or-alias-name.js +1 -0
  849. package/dist/domain/spec/model/names/entity-type-name.d.ts +8 -0
  850. package/dist/domain/spec/model/names/entity-type-name.js +1 -0
  851. package/dist/domain/spec/model/names/expression-name.d.ts +6 -0
  852. package/dist/domain/spec/model/names/expression-name.js +1 -0
  853. package/dist/domain/spec/model/names/index.d.ts +9 -0
  854. package/dist/domain/spec/model/names/index.js +1 -0
  855. package/dist/domain/spec/model/names/instance-name.d.ts +7 -0
  856. package/dist/domain/spec/model/names/instance-name.js +1 -0
  857. package/dist/domain/spec/model/names/invariant-name.d.ts +3 -0
  858. package/dist/domain/spec/model/names/invariant-name.js +1 -0
  859. package/dist/domain/spec/model/names/shape-property-name.d.ts +11 -0
  860. package/dist/domain/spec/model/names/shape-property-name.js +1 -0
  861. package/dist/domain/spec/model/names/violation-type-name.d.ts +3 -0
  862. package/dist/domain/spec/model/names/violation-type-name.js +1 -0
  863. package/dist/domain/spec/model/presets.d.ts +30 -0
  864. package/dist/domain/spec/model/presets.js +1 -0
  865. package/dist/domain/spec/sections/actions.d.ts +23 -0
  866. package/dist/domain/spec/sections/actions.js +1 -0
  867. package/dist/domain/spec/sections/app-metadata.d.ts +18 -0
  868. package/dist/domain/spec/sections/app-metadata.js +1 -0
  869. package/dist/domain/spec/sections/application-version.d.ts +7 -0
  870. package/dist/domain/spec/sections/application-version.js +1 -0
  871. package/dist/domain/spec/sections/data-spec/chunks.d.ts +23 -0
  872. package/dist/domain/spec/sections/data-spec/chunks.js +1 -0
  873. package/dist/domain/spec/sections/data-spec/custom-data-spec-entry.d.ts +16 -0
  874. package/dist/domain/spec/sections/data-spec/custom-data-spec-entry.js +1 -0
  875. package/dist/domain/spec/sections/data-spec/data-entry-key.d.ts +9 -0
  876. package/dist/domain/spec/sections/data-spec/data-entry-key.js +1 -0
  877. package/dist/domain/spec/sections/data-spec/index.d.ts +5 -0
  878. package/dist/domain/spec/sections/data-spec/index.js +1 -0
  879. package/dist/domain/spec/sections/data-spec/parsed-data-spec-entries.d.ts +10 -0
  880. package/dist/domain/spec/sections/data-spec/parsed-data-spec-entries.js +1 -0
  881. package/dist/domain/spec/sections/data-spec/swatch-data-spec-entry.d.ts +14 -0
  882. package/dist/domain/spec/sections/data-spec/swatch-data-spec-entry.js +1 -0
  883. package/dist/domain/spec/sections/index.d.ts +9 -0
  884. package/dist/domain/spec/sections/index.js +1 -0
  885. package/dist/domain/spec/sections/infra/acl.d.ts +12 -0
  886. package/dist/domain/spec/sections/infra/acl.js +1 -0
  887. package/dist/domain/spec/sections/infra/index.d.ts +3 -0
  888. package/dist/domain/spec/sections/infra/index.js +1 -0
  889. package/dist/domain/spec/sections/infra/resource-entry.d.ts +46 -0
  890. package/dist/domain/spec/sections/infra/resource-entry.js +1 -0
  891. package/dist/domain/spec/sections/infra/resources-config.d.ts +10 -0
  892. package/dist/domain/spec/sections/infra/resources-config.js +1 -0
  893. package/dist/domain/spec/sections/state-value.d.ts +7 -0
  894. package/dist/domain/spec/sections/state-value.js +1 -0
  895. package/dist/domain/spec/sections/theme.d.ts +10 -0
  896. package/dist/domain/spec/sections/theme.js +1 -0
  897. package/dist/domain/spec/sections/transformers.d.ts +15 -0
  898. package/dist/domain/spec/sections/transformers.js +1 -0
  899. package/dist/domain/spec/sections/ui.d.ts +12 -0
  900. package/dist/domain/spec/sections/ui.js +1 -0
  901. package/dist/domain/system-components/child-entity-selection.js +1 -1
  902. package/dist/domain/system-components/common/scene-entity-control-schema.d.ts +3 -0
  903. package/dist/domain/system-components/common/scene-entity-control-schema.js +1 -1
  904. package/dist/domain/system-definitions.js +1 -1
  905. package/dist/domain/utils/index.d.ts +2 -0
  906. package/dist/domain/utils/index.js +1 -0
  907. package/dist/editor/Editor.d.ts +7 -0
  908. package/dist/editor/Editor.js +1 -1
  909. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  910. package/dist/editor/domain-editors/apply-spec-update.d.ts +10 -2
  911. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  912. package/dist/editor/domain-editors/use-implementation-files.d.ts +6 -14
  913. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  914. package/dist/editor/graphql/GraphQLPanel.js +1 -1
  915. package/dist/editor/mocks/CreateMockYaml.js +2 -2
  916. package/dist/editor/mocks/EditorMockContext.d.ts +2 -0
  917. package/dist/editor/mocks/EditorMockContext.js +1 -1
  918. package/dist/editor/screenshot/ScreenshotHandler.js +1 -1
  919. package/dist/globals/index.d.ts +2 -0
  920. package/dist/i18n/locales/cs/messages.js +1 -1
  921. package/dist/i18n/locales/da/messages.js +1 -1
  922. package/dist/i18n/locales/de/messages.js +1 -1
  923. package/dist/i18n/locales/de-AT/messages.js +1 -1
  924. package/dist/i18n/locales/en/messages.js +1 -1
  925. package/dist/i18n/locales/en-AU/messages.js +1 -1
  926. package/dist/i18n/locales/en-GB/messages.js +1 -1
  927. package/dist/i18n/locales/es/messages.js +1 -1
  928. package/dist/i18n/locales/fr/messages.js +1 -1
  929. package/dist/i18n/locales/hu/messages.js +1 -1
  930. package/dist/i18n/locales/it/messages.js +1 -1
  931. package/dist/i18n/locales/nl/messages.js +1 -1
  932. package/dist/i18n/locales/pl/messages.js +1 -1
  933. package/dist/i18n/locales/pt/messages.js +1 -1
  934. package/dist/i18n/locales/ro/messages.js +1 -1
  935. package/dist/i18n/locales/sk/messages.js +1 -1
  936. package/dist/i18n/locales/tr/messages.js +1 -1
  937. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  938. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  939. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +95 -80
  940. package/dist/legacy/domain-spec/spec/domain-spec.js +1 -1
  941. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/claude-md.d.ts +1 -1
  942. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/cursor-rules.d.ts +1 -1
  943. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.d.ts +1 -1
  944. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.js +11 -5
  945. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-admin.js +10 -11
  946. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/frontend-embedded-admin.js +9 -10
  947. package/dist/legacy/phoenix-cli/services/webhook-service/transport.js +1 -1
  948. package/dist/legacy/phoenix-cli/services/webhook-service/tunnel.d.ts +1 -0
  949. package/dist/legacy/phoenix-cli/services/webhook-service/tunnel.js +1 -1
  950. package/dist/legacy/webhook-cli/lambda-local/index.js +1 -1
  951. package/dist/phoenix/application-spec/application-spec-builder.d.ts +0 -2
  952. package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
  953. package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +1 -2
  954. package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
  955. package/dist/phoenix/application-spec/generate-application-spec-story.js +2 -2
  956. package/dist/phoenix/application-spec/generate-project-files.d.ts +1 -2
  957. package/dist/phoenix/application-spec/index.d.ts +1 -0
  958. package/dist/phoenix/application-spec/index.js +1 -1
  959. package/dist/phoenix/application-spec/project-files.js +1 -1
  960. package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +11 -0
  961. package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
  962. package/dist/phoenix/bin.d.ts +2 -0
  963. package/dist/phoenix/bin.js +2 -0
  964. package/dist/phoenix/check-configs/built-in-eslint-config.d.ts +9 -0
  965. package/dist/phoenix/check-configs/built-in-eslint-config.js +1 -0
  966. package/dist/phoenix/check-configs/eslint-config.d.ts +10 -0
  967. package/dist/phoenix/check-configs/eslint-config.js +1 -0
  968. package/dist/phoenix/check-configs/index.d.ts +8 -0
  969. package/dist/phoenix/check-configs/index.js +1 -0
  970. package/dist/phoenix/check-configs/typescript-project.d.ts +5 -0
  971. package/dist/phoenix/check-configs/typescript-project.js +1 -0
  972. package/dist/phoenix/cli.d.ts +0 -1
  973. package/dist/phoenix/cli.js +1 -2
  974. package/dist/phoenix/commands/activate-deployment.js +1 -1
  975. package/dist/phoenix/commands/build.js +1 -1
  976. package/dist/phoenix/commands/changelog.js +1 -1
  977. package/dist/phoenix/commands/check.js +1 -1
  978. package/dist/phoenix/commands/clean.js +1 -1
  979. package/dist/phoenix/commands/cleanup-environment.js +2 -2
  980. package/dist/phoenix/commands/create-environment.js +1 -1
  981. package/dist/phoenix/commands/data.js +1 -1
  982. package/dist/phoenix/commands/deploy.js +2 -2
  983. package/dist/phoenix/commands/deployment-build-envs-command.js +1 -1
  984. package/dist/phoenix/commands/deps/deps.d.ts +73 -0
  985. package/dist/phoenix/commands/deps/deps.js +3 -0
  986. package/dist/phoenix/commands/deps/index.d.ts +1 -0
  987. package/dist/phoenix/commands/deps/index.js +1 -0
  988. package/dist/phoenix/commands/deps/sdk-manifest.d.ts +12 -0
  989. package/dist/phoenix/commands/deps/sdk-manifest.js +1 -0
  990. package/dist/phoenix/commands/dev.js +4 -5
  991. package/dist/phoenix/commands/docs.js +1 -1
  992. package/dist/phoenix/commands/finish-deployment-command.js +1 -1
  993. package/dist/phoenix/commands/fix.js +1 -1
  994. package/dist/phoenix/commands/index.d.ts +1 -0
  995. package/dist/phoenix/commands/index.js +1 -1
  996. package/dist/phoenix/commands/init.d.ts +17 -5
  997. package/dist/phoenix/commands/init.js +1 -1
  998. package/dist/phoenix/commands/inspect-assets.js +1 -1
  999. package/dist/phoenix/commands/link.js +1 -1
  1000. package/dist/phoenix/commands/list-environments.js +1 -1
  1001. package/dist/phoenix/commands/login.d.ts +4 -1
  1002. package/dist/phoenix/commands/login.js +2 -2
  1003. package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
  1004. package/dist/phoenix/commands/prettier.js +1 -1
  1005. package/dist/phoenix/commands/register-deployment.js +1 -1
  1006. package/dist/phoenix/commands/scene.js +1 -1
  1007. package/dist/phoenix/commands/screenshot.js +1 -1
  1008. package/dist/phoenix/commands/state.js +1 -1
  1009. package/dist/phoenix/commands/story-build.js +3 -3
  1010. package/dist/phoenix/commands/story-create.js +1 -1
  1011. package/dist/phoenix/commands/story-dev.js +2 -2
  1012. package/dist/phoenix/commands/sync.js +1 -1
  1013. package/dist/phoenix/commands/unlink.js +1 -1
  1014. package/dist/phoenix/commands/variants.js +1 -1
  1015. package/dist/phoenix/editor-server/commands-router.js +1 -1
  1016. package/dist/phoenix/editor-server/editor-server.d.ts +2 -13
  1017. package/dist/phoenix/editor-server/editor-server.js +1 -1
  1018. package/dist/phoenix/editor-server/spec-router.js +1 -1
  1019. package/dist/phoenix/editor-server/trpc.d.ts +2 -12
  1020. package/dist/phoenix/lingui/index.d.ts +1 -0
  1021. package/dist/phoenix/lingui/index.js +1 -0
  1022. package/dist/phoenix/lingui/lingui.d.ts +18 -0
  1023. package/dist/phoenix/lingui/lingui.js +1 -0
  1024. package/dist/phoenix/services/application-spec-project-watcher.d.ts +13 -8
  1025. package/dist/phoenix/services/application-spec-project-watcher.js +2 -2
  1026. package/dist/phoenix/services/cli-credentials.d.ts +3 -0
  1027. package/dist/phoenix/services/cli-credentials.js +1 -1
  1028. package/dist/phoenix/services/cli-exit.d.ts +5 -0
  1029. package/dist/phoenix/services/cli-exit.js +1 -0
  1030. package/dist/phoenix/services/deployment/deployment-preparation-service.d.ts +28 -0
  1031. package/dist/phoenix/services/deployment/deployment-preparation-service.js +1 -0
  1032. package/dist/phoenix/{commands → services/deployment}/generated-env-markers.d.ts +1 -0
  1033. package/dist/phoenix/services/deployment/generated-env-markers.js +1 -0
  1034. package/dist/phoenix/services/deployment/index.d.ts +2 -0
  1035. package/dist/phoenix/services/deployment/index.js +1 -0
  1036. package/dist/phoenix/services/index.d.ts +5 -1
  1037. package/dist/phoenix/services/index.js +1 -1
  1038. package/dist/phoenix/services/lingui-watcher.js +1 -1
  1039. package/dist/phoenix/services/phoenix-store.d.ts +3 -0
  1040. package/dist/phoenix/services/phoenix-store.js +1 -1
  1041. package/dist/phoenix/services/prepare-development-environment.js +1 -1
  1042. package/dist/phoenix/services/session/editor-server-handle.d.ts +5 -0
  1043. package/dist/phoenix/services/session/editor-server-handle.js +1 -0
  1044. package/dist/phoenix/services/session/index.d.ts +2 -0
  1045. package/dist/phoenix/services/session/index.js +1 -0
  1046. package/dist/phoenix/services/session/phoenix-application.d.ts +82 -0
  1047. package/dist/phoenix/services/session/phoenix-application.js +2 -0
  1048. package/dist/phoenix/services/swc.js +1 -1
  1049. package/dist/phoenix/services/telemetry/amplitude-telemetry-transport.d.ts +9 -0
  1050. package/dist/phoenix/services/telemetry/amplitude-telemetry-transport.js +1 -0
  1051. package/dist/phoenix/services/telemetry/index.d.ts +3 -0
  1052. package/dist/phoenix/services/telemetry/index.js +1 -0
  1053. package/dist/phoenix/services/telemetry/telemetry-client.d.ts +25 -0
  1054. package/dist/phoenix/services/telemetry/telemetry-client.js +1 -0
  1055. package/dist/phoenix/services/telemetry/telemetry-command.d.ts +2 -0
  1056. package/dist/phoenix/services/telemetry/telemetry-command.js +1 -0
  1057. package/dist/phoenix/services/telemetry/telemetry-event.d.ts +44 -0
  1058. package/dist/phoenix/services/telemetry/telemetry-event.js +1 -0
  1059. package/dist/phoenix/services/telemetry/telemetry-state.d.ts +25 -0
  1060. package/dist/phoenix/services/telemetry/telemetry-state.js +2 -0
  1061. package/dist/phoenix/services/vite-config.js +1 -1
  1062. package/dist/phoenix/services/webhook-service/transport.js +1 -1
  1063. package/dist/phoenix/services/webhook-service/tunnel.d.ts +1 -0
  1064. package/dist/phoenix/services/webhook-service/tunnel.js +1 -1
  1065. package/dist/phoenix/utils/index.d.ts +4 -2
  1066. package/dist/phoenix/utils/index.js +1 -1
  1067. package/dist/phoenix/utils/node-version/index.d.ts +1 -0
  1068. package/dist/phoenix/utils/node-version/index.js +1 -0
  1069. package/dist/phoenix/utils/node-version/supported-node-version.d.ts +12 -0
  1070. package/dist/phoenix/utils/node-version/supported-node-version.js +4 -0
  1071. package/dist/phoenix/utils/package-info.d.ts +0 -9
  1072. package/dist/phoenix/utils/package-info.js +1 -1
  1073. package/dist/phoenix/utils/package-manager/index.d.ts +2 -0
  1074. package/dist/phoenix/utils/package-manager/index.js +1 -0
  1075. package/dist/phoenix/utils/package-manager/package-manager-commands.d.ts +19 -0
  1076. package/dist/phoenix/utils/package-manager/package-manager-commands.js +1 -0
  1077. package/dist/phoenix/utils/package-manager/pnpm-project.d.ts +9 -0
  1078. package/dist/phoenix/utils/package-manager/pnpm-project.js +1 -0
  1079. package/dist/phoenix/utils/run-command.d.ts +11 -0
  1080. package/dist/phoenix/utils/run-command.js +1 -1
  1081. package/dist/phoenix/utils/sdk-tool/index.d.ts +1 -0
  1082. package/dist/phoenix/utils/sdk-tool/index.js +1 -0
  1083. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.d.ts +15 -0
  1084. package/dist/phoenix/utils/sdk-tool/resolve-sdk-tool-bin.js +1 -0
  1085. package/dist/react-sdk/application-runtime/common-services/analytics/analytics-service.d.ts +1 -1
  1086. package/dist/{configurator/common → react-sdk/application-runtime/common-services/analytics}/frontend-analytics.d.ts +4 -0
  1087. package/dist/react-sdk/application-runtime/common-services/analytics/index.d.ts +1 -0
  1088. package/dist/react-sdk/application-runtime/common-services/analytics/index.js +1 -1
  1089. package/dist/react-sdk/application-runtime/common-services/initialize.d.ts +2 -2
  1090. package/dist/react-sdk/application-runtime/domain-application-context/chat-system.d.ts +1 -1
  1091. package/dist/react-sdk/application-runtime/hooks/index.d.ts +2 -0
  1092. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  1093. package/dist/react-sdk/application-runtime/hooks/loading/index.d.ts +5 -0
  1094. package/dist/react-sdk/application-runtime/hooks/loading/index.js +1 -0
  1095. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.d.ts +11 -0
  1096. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.js +1 -0
  1097. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.d.ts +8 -0
  1098. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.js +1 -0
  1099. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.d.ts +7 -0
  1100. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.js +1 -0
  1101. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.d.ts +9 -0
  1102. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.js +1 -0
  1103. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.d.ts +24 -0
  1104. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.js +1 -0
  1105. package/dist/react-sdk/application-runtime/hooks/responsive/index.d.ts +3 -0
  1106. package/dist/react-sdk/application-runtime/hooks/responsive/index.js +1 -0
  1107. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.d.ts +9 -0
  1108. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.js +1 -0
  1109. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +26 -0
  1110. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.js +1 -0
  1111. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.d.ts +10 -0
  1112. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.js +1 -0
  1113. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.d.ts +24 -0
  1114. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -0
  1115. package/dist/react-sdk/application-runtime/hooks/use-access-service.d.ts +5 -0
  1116. package/dist/react-sdk/application-runtime/hooks/use-access-service.js +1 -1
  1117. package/dist/react-sdk/application-runtime/hooks/use-phoenix-element-slots.d.ts +2 -1
  1118. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.d.ts +4 -11
  1119. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.js +1 -1
  1120. package/dist/react-sdk/application-runtime/hooks/use-web-component.d.ts +5 -0
  1121. package/dist/react-sdk/application-runtime/hooks/use-web-component.js +1 -1
  1122. package/dist/react-sdk/application-runtime/host-properties/actions.d.ts +15 -0
  1123. package/dist/react-sdk/application-runtime/host-properties/actions.js +1 -0
  1124. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.d.ts +30 -0
  1125. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.js +1 -0
  1126. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.d.ts +7 -0
  1127. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.js +1 -0
  1128. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.d.ts +21 -0
  1129. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.js +1 -0
  1130. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.d.ts +42 -0
  1131. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.js +1 -0
  1132. package/dist/react-sdk/application-runtime/host-properties/index.d.ts +8 -0
  1133. package/dist/react-sdk/application-runtime/host-properties/index.js +1 -0
  1134. package/dist/react-sdk/application-runtime/host-properties/initialize.d.ts +7 -0
  1135. package/dist/react-sdk/application-runtime/host-properties/initialize.js +1 -0
  1136. package/dist/react-sdk/application-runtime/host-properties/selectors.d.ts +54 -0
  1137. package/dist/react-sdk/application-runtime/host-properties/selectors.js +1 -0
  1138. package/dist/react-sdk/application-runtime/host-properties/types.d.ts +18 -0
  1139. package/dist/react-sdk/application-runtime/host-properties/types.js +1 -0
  1140. package/dist/react-sdk/application-runtime/index.d.ts +3 -0
  1141. package/dist/react-sdk/application-runtime/integration/initialize.d.ts +7 -6
  1142. package/dist/react-sdk/application-runtime/integration/initialize.js +1 -1
  1143. package/dist/react-sdk/application-runtime/integration/selectors.d.ts +11 -2
  1144. package/dist/react-sdk/application-runtime/integration/selectors.js +1 -1
  1145. package/dist/react-sdk/application-runtime/integration/types.d.ts +5 -2
  1146. package/dist/react-sdk/application-runtime/loading/actions.d.ts +45 -0
  1147. package/dist/react-sdk/application-runtime/loading/actions.js +1 -0
  1148. package/dist/react-sdk/application-runtime/loading/index.d.ts +4 -0
  1149. package/dist/react-sdk/application-runtime/loading/index.js +1 -0
  1150. package/dist/react-sdk/application-runtime/loading/initialize.d.ts +3 -0
  1151. package/dist/react-sdk/application-runtime/loading/initialize.js +1 -0
  1152. package/dist/react-sdk/application-runtime/loading/selectors.d.ts +18 -0
  1153. package/dist/react-sdk/application-runtime/loading/selectors.js +1 -0
  1154. package/dist/react-sdk/application-runtime/loading/types.d.ts +59 -0
  1155. package/dist/react-sdk/application-runtime/loading/types.js +1 -0
  1156. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  1157. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.d.ts +6 -0
  1158. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.js +1 -1
  1159. package/dist/react-sdk/application-runtime/provider/ApplicationType.d.ts +7 -0
  1160. package/dist/react-sdk/application-runtime/provider/ApplicationType.js +1 -1
  1161. package/dist/react-sdk/application-runtime/responsive/actions.d.ts +47 -0
  1162. package/dist/react-sdk/application-runtime/responsive/actions.js +1 -0
  1163. package/dist/react-sdk/application-runtime/responsive/index.d.ts +4 -0
  1164. package/dist/react-sdk/application-runtime/responsive/index.js +1 -0
  1165. package/dist/react-sdk/application-runtime/responsive/initialize.d.ts +3 -0
  1166. package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -0
  1167. package/dist/react-sdk/application-runtime/responsive/selectors.d.ts +20 -0
  1168. package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -0
  1169. package/dist/react-sdk/application-runtime/responsive/types.d.ts +104 -0
  1170. package/dist/react-sdk/application-runtime/responsive/types.js +1 -0
  1171. package/dist/react-sdk/application-runtime/routing/routing-service.d.ts +34 -2
  1172. package/dist/react-sdk/application-runtime/routing/routing-service.js +1 -1
  1173. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +313 -10
  1174. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  1175. package/dist/{configurator/configurator-context → react-sdk}/configurator-routing/ConfiguratorRoutingProvider.d.ts +1 -1
  1176. package/dist/react-sdk/configurator-routing/ConfiguratorRoutingProvider.js +1 -0
  1177. package/dist/{configurator/configurator-context → react-sdk}/configurator-routing/OnGoToIndexHandler.d.ts +1 -2
  1178. package/dist/react-sdk/configurator-routing/OnGoToIndexHandler.js +1 -0
  1179. package/dist/react-sdk/configurator-routing/index.d.ts +3 -0
  1180. package/dist/{configurator/configurator-context → react-sdk}/configurator-routing/index.js +1 -1
  1181. package/dist/{configurator/configurator-context → react-sdk}/configurator-routing/use-power-routing-lifecycle.d.ts +2 -0
  1182. package/dist/react-sdk/configurator-routing/use-power-routing-lifecycle.js +1 -0
  1183. package/dist/react-sdk/domain-application-context/BackendDataProvider.js +1 -1
  1184. package/dist/react-sdk/domain-application-context/ConfigurationPersistSystemFailureHandler.js +1 -1
  1185. package/dist/react-sdk/domain-application-context/DomainLifecycleBoundary.js +1 -1
  1186. package/dist/react-sdk/domain-application-context/FrontendDataProvider.js +1 -1
  1187. package/dist/react-sdk/domain-application-context/OnPresetLoadedHandler.js +1 -0
  1188. package/dist/react-sdk/domain-application-context/PublishedDataProvider.js +1 -1
  1189. package/dist/react-sdk/domain-application-context/chat-hooks.d.ts +4 -0
  1190. package/dist/react-sdk/domain-application-context/chat-hooks.js +1 -0
  1191. package/dist/react-sdk/domain-application-context/index.d.ts +2 -0
  1192. package/dist/react-sdk/domain-application-context/index.js +1 -1
  1193. package/dist/react-sdk/domain-context/common-hooks/index.d.ts +9 -0
  1194. package/dist/react-sdk/domain-context/common-hooks/index.js +1 -0
  1195. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.d.ts +23 -0
  1196. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.js +1 -0
  1197. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.d.ts +15 -4
  1198. package/dist/react-sdk/domain-context/common-hooks/use-configurator-messages.js +1 -1
  1199. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +1 -0
  1200. package/dist/react-sdk/domain-context/component-hooks/index.d.ts +1 -0
  1201. package/dist/react-sdk/domain-context/component-hooks/index.js +1 -0
  1202. package/dist/react-sdk/domain-context/component-hooks/use-component.js +1 -1
  1203. package/dist/react-sdk/domain-context/entity-hooks/use-domain-entity-state.js +1 -1
  1204. package/dist/react-sdk/domain-context/entity-hooks/use-entity-price.js +1 -1
  1205. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-id.js +1 -1
  1206. package/dist/react-sdk/domain-context/entity-hooks/use-root-entity-state.js +1 -1
  1207. package/dist/react-sdk/domain-context/index.d.ts +7 -0
  1208. package/dist/react-sdk/domain-context/index.js +1 -1
  1209. package/dist/react-sdk/domain-context/system-hooks/composition-hooks.js +1 -1
  1210. package/dist/react-sdk/domain-context/system-hooks/dimension-hooks.js +1 -1
  1211. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +8 -0
  1212. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -0
  1213. package/dist/react-sdk/domain-context/system-hooks/hover-hooks.js +1 -1
  1214. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.d.ts +24 -0
  1215. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.js +1 -0
  1216. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  1217. package/dist/react-sdk/domain-context/system-hooks/selection-hooks.js +1 -1
  1218. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.d.ts +32 -0
  1219. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.js +1 -0
  1220. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.d.ts +57 -0
  1221. package/dist/react-sdk/domain-context/system-hooks/step-navigation-hooks.js +1 -0
  1222. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.d.ts +61 -0
  1223. package/dist/react-sdk/domain-context/system-hooks/tab-navigation-hooks.js +1 -0
  1224. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.d.ts +20 -0
  1225. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.js +1 -0
  1226. package/dist/react-sdk/elements/PhoenixEntityElement.js +1 -1
  1227. package/dist/react-sdk/elements/PhoenixLayoutElement.js +1 -1
  1228. package/dist/react-sdk/handlers/FinalizeActionRunner.d.ts +13 -0
  1229. package/dist/react-sdk/handlers/FinalizeActionRunner.js +1 -0
  1230. package/dist/react-sdk/handlers/FinalizeActionsHost.d.ts +10 -0
  1231. package/dist/react-sdk/handlers/FinalizeActionsHost.js +1 -0
  1232. package/dist/react-sdk/handlers/FinalizeActionsProvider.d.ts +11 -0
  1233. package/dist/react-sdk/handlers/FinalizeActionsProvider.js +1 -0
  1234. package/dist/react-sdk/handlers/finalize-actions-context.d.ts +6 -0
  1235. package/dist/react-sdk/handlers/finalize-actions-context.js +1 -0
  1236. package/dist/react-sdk/handlers/finalize-actions-store.d.ts +23 -0
  1237. package/dist/react-sdk/handlers/finalize-actions-store.js +1 -0
  1238. package/dist/react-sdk/handlers/index.d.ts +6 -0
  1239. package/dist/react-sdk/handlers/index.js +1 -1
  1240. package/dist/{configurator/common → react-sdk/handlers}/use-finalize-action.d.ts +3 -2
  1241. package/dist/react-sdk/handlers/use-finalize-action.js +1 -0
  1242. package/dist/react-sdk/handlers/use-finalize-actions.d.ts +53 -0
  1243. package/dist/react-sdk/handlers/use-finalize-actions.js +1 -0
  1244. package/dist/react-sdk/index.d.ts +7 -0
  1245. package/dist/react-sdk/index.js +1 -1
  1246. package/dist/react-sdk/integration/IntegrationSubscription.js +1 -0
  1247. package/dist/react-sdk/integration/index.d.ts +1 -0
  1248. package/dist/react-sdk/integration/index.js +1 -0
  1249. package/dist/react-sdk/lifecycle-providers/ConfiguratorDataProvider.d.ts +8 -0
  1250. package/dist/react-sdk/lifecycle-providers/ConfiguratorDataProvider.js +1 -0
  1251. package/dist/react-sdk/lifecycle-providers/LifecycleProviders.js +1 -0
  1252. package/dist/react-sdk/lifecycle-providers/index.d.ts +2 -0
  1253. package/dist/react-sdk/lifecycle-providers/index.js +1 -0
  1254. package/dist/react-sdk/loading-state/LoaderHost.d.ts +20 -0
  1255. package/dist/react-sdk/loading-state/LoaderHost.js +1 -0
  1256. package/dist/react-sdk/loading-state/built-in-loading-phase.d.ts +9 -0
  1257. package/dist/react-sdk/loading-state/built-in-loading-phase.js +1 -0
  1258. package/dist/react-sdk/loading-state/create-app-loader.d.ts +18 -0
  1259. package/dist/react-sdk/loading-state/create-app-loader.js +1 -0
  1260. package/dist/react-sdk/loading-state/index.d.ts +4 -2
  1261. package/dist/react-sdk/loading-state/index.js +1 -1
  1262. package/dist/react-sdk/loading-state/{LoadingStateProvider.d.ts → loading-state-hooks.d.ts} +3 -12
  1263. package/dist/react-sdk/loading-state/loading-state-hooks.js +1 -0
  1264. package/dist/react-sdk/notifications/index.d.ts +1 -0
  1265. package/dist/react-sdk/notifications/index.js +1 -0
  1266. package/dist/react-sdk/notifications/snackbar-action-button.d.ts +30 -0
  1267. package/dist/react-sdk/notifications/snackbar-action-button.js +1 -0
  1268. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.d.ts +17 -0
  1269. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.js +1 -0
  1270. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.d.ts +17 -0
  1271. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.js +1 -0
  1272. package/dist/react-sdk/page-elements/configurator-error-page-props.d.ts +20 -0
  1273. package/dist/react-sdk/page-elements/configurator-error-page-props.js +1 -0
  1274. package/dist/react-sdk/page-elements/create-configuration-not-found-page.d.ts +15 -0
  1275. package/dist/react-sdk/page-elements/create-configuration-not-found-page.js +1 -0
  1276. package/dist/react-sdk/page-elements/create-configurator-error-page.d.ts +14 -0
  1277. package/dist/react-sdk/page-elements/create-configurator-error-page.js +1 -0
  1278. package/dist/react-sdk/page-elements/create-preset-ui.d.ts +9 -0
  1279. package/dist/react-sdk/page-elements/create-preset-ui.js +1 -0
  1280. package/dist/react-sdk/page-elements/index.d.ts +6 -0
  1281. package/dist/react-sdk/page-elements/index.js +1 -0
  1282. package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -0
  1283. package/dist/react-sdk/preset-selection/index.d.ts +1 -0
  1284. package/dist/react-sdk/preset-selection/index.js +1 -0
  1285. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.d.ts +36 -0
  1286. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.js +1 -0
  1287. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.d.ts +44 -0
  1288. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.js +1 -0
  1289. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.d.ts +38 -0
  1290. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.js +1 -0
  1291. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.d.ts +30 -0
  1292. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.js +1 -0
  1293. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.d.ts +30 -0
  1294. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.js +1 -0
  1295. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.d.ts +9 -0
  1296. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.js +1 -0
  1297. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.d.ts +9 -0
  1298. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.js +1 -0
  1299. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.d.ts +10 -0
  1300. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.js +1 -0
  1301. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.d.ts +9 -0
  1302. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.js +1 -0
  1303. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.d.ts +9 -0
  1304. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.js +1 -0
  1305. package/dist/react-sdk/scene-control-elements/index.d.ts +11 -0
  1306. package/dist/react-sdk/scene-control-elements/index.js +1 -0
  1307. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.d.ts +5 -0
  1308. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.js +1 -0
  1309. package/dist/react-sdk/session/NotAuthenticatedPage.d.ts +4 -0
  1310. package/dist/react-sdk/session/NotAuthenticatedPage.js +1 -1
  1311. package/dist/react-sdk/session/SessionServiceProvider.d.ts +5 -0
  1312. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  1313. package/dist/react-sdk/web-component/create-web-component.js +1 -1
  1314. package/dist/react-sdk/web-component/god-mode/god-mode-registry.d.ts +30 -0
  1315. package/dist/react-sdk/web-component/god-mode/god-mode-registry.js +1 -0
  1316. package/dist/react-sdk/web-component/god-mode/index.d.ts +1 -0
  1317. package/dist/react-sdk/web-component/god-mode/index.js +1 -0
  1318. package/dist/ui-sdk/components/snackbar/Snackbar.d.ts +24 -3
  1319. package/dist/ui-sdk/components/snackbar/Snackbar.js +1 -1
  1320. package/dist/ui-sdk/icons/__generated/Lightbulb.d.ts +3 -0
  1321. package/dist/ui-sdk/icons/__generated/Lightbulb.js +1 -0
  1322. package/dist/ui-sdk/icons/__generated/Paperclip.d.ts +3 -0
  1323. package/dist/ui-sdk/icons/__generated/Paperclip.js +1 -0
  1324. package/dist/ui-sdk/icons/__generated/XCircle.d.ts +3 -0
  1325. package/dist/ui-sdk/icons/__generated/XCircle.js +1 -0
  1326. package/dist/ui-sdk/icons/__generated/index.d.ts +6 -0
  1327. package/dist/ui-sdk/icons/__generated/index.js +1 -1
  1328. package/dist/ui-sdk/icons/icons-registry.js +1 -1
  1329. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.d.ts +9 -0
  1330. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.js +1 -1
  1331. package/dist/ui-sdk/responsive-application/index.d.ts +1 -0
  1332. package/dist/ui-sdk/responsive-application/responsive-state-store.d.ts +59 -0
  1333. package/dist/ui-sdk/responsive-application/responsive-state-store.js +1 -0
  1334. package/dist/ui-sdk/responsive-application/use-store-responsive-info.d.ts +7 -0
  1335. package/dist/ui-sdk/responsive-application/use-store-responsive-info.js +1 -0
  1336. package/dist/ui-sdk/theme/types.d.ts +5 -1
  1337. package/dist/watch/glob-matcher.d.ts +4 -4
  1338. package/dist/watch/glob-matcher.js +1 -1
  1339. package/dist/watch/watch.d.ts +4 -4
  1340. package/dist/watch/watch.js +1 -1
  1341. package/package.json +29 -14
  1342. package/schema/domain-spec.json +244 -8
  1343. package/dist/application-spec/core/components/index.d.ts +0 -2
  1344. package/dist/application-spec/core/expressions/index.d.ts +0 -2
  1345. package/dist/application-spec/generate-application/code/templates/nvmrc.d.ts +0 -1
  1346. package/dist/application-spec/generate-application/code/templates/nvmrc.js +0 -2
  1347. package/dist/application-spec/generate-application/code/templates/package-json.d.ts +0 -10
  1348. package/dist/application-spec/generate-application/code/templates/package-json.js +0 -1
  1349. package/dist/configurator/common/use-finalize-action.js +0 -1
  1350. package/dist/configurator/configurator-context/ConfiguratorDataProvider.d.ts +0 -2
  1351. package/dist/configurator/configurator-context/ConfiguratorDataProvider.js +0 -1
  1352. package/dist/configurator/configurator-context/IntegrationSubscription.js +0 -1
  1353. package/dist/configurator/configurator-context/LifecycleProviders.js +0 -1
  1354. package/dist/configurator/configurator-context/OnPresetLoadedHandler.js +0 -1
  1355. package/dist/configurator/configurator-context/PresetSelectionProvider.js +0 -1
  1356. package/dist/configurator/configurator-context/configurator-hooks/chat-hooks.d.ts +0 -1
  1357. package/dist/configurator/configurator-context/configurator-hooks/chat-hooks.js +0 -1
  1358. package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.js +0 -1
  1359. package/dist/configurator/configurator-context/configurator-routing/OnGoToIndexHandler.js +0 -1
  1360. package/dist/configurator/configurator-context/configurator-routing/index.d.ts +0 -2
  1361. package/dist/configurator/configurator-context/configurator-routing/use-power-routing-lifecycle.js +0 -1
  1362. package/dist/configurator/ui/assistant/entity-link/entity-link-target.d.ts +0 -5
  1363. package/dist/configurator/ui/assistant/entity-link/entity-link-target.js +0 -1
  1364. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.d.ts +0 -4
  1365. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.js +0 -1
  1366. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.d.ts +0 -4
  1367. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.js +0 -1
  1368. package/dist/domain/available-system-components.d.ts +0 -11
  1369. package/dist/domain/available-system-components.js +0 -1
  1370. package/dist/domain/domain-builder.js +0 -1
  1371. package/dist/domain/extensions/client-side-image.js +0 -1
  1372. package/dist/domain/extensions/save-template-thumbnail.js +0 -1
  1373. package/dist/phoenix/commands/generate-project-files.d.ts +0 -6
  1374. package/dist/phoenix/commands/generate-project-files.js +0 -1
  1375. package/dist/phoenix/commands/generated-env-markers.js +0 -1
  1376. package/dist/phoenix/services/lingui.d.ts +0 -7
  1377. package/dist/phoenix/services/lingui.js +0 -1
  1378. package/dist/phoenix/services/phoenix-application.d.ts +0 -21
  1379. package/dist/phoenix/services/phoenix-application.js +0 -1
  1380. package/dist/react-sdk/application-runtime/runtime/god-mode.d.ts +0 -19
  1381. package/dist/react-sdk/application-runtime/runtime/god-mode.js +0 -1
  1382. package/dist/react-sdk/loading-state/LoadingStateProvider.js +0 -1
  1383. package/dist/react-sdk/loading-state/loading-state-manager.d.ts +0 -32
  1384. package/dist/react-sdk/loading-state/loading-state-manager.js +0 -1
  1385. /package/dist/application-spec/{core/expressions/relation-expression-params.js → generate-application/runtime/spec-code/spec-code-module.js} +0 -0
  1386. /package/dist/application-spec/parse-application-files/spec/{components/component-entry.js → expressions/expression-read.js} +0 -0
  1387. /package/dist/{application-spec/parse-application-files/spec/expressions/expression.js → configurator/ui/assistant/form-elements/form-element-props.js} +0 -0
  1388. /package/dist/{application-spec/core → domain/spec/application}/application-instance.d.ts +0 -0
  1389. /package/dist/{application-spec/core → domain/spec/application}/application-instance.js +0 -0
  1390. /package/dist/{application-spec/core → domain/spec}/components/component-filter.js +0 -0
  1391. /package/dist/{application-spec/core → domain/spec}/components/index.js +0 -0
  1392. /package/dist/{application-spec/core → domain/spec}/components/sdk-code-ref.d.ts +0 -0
  1393. /package/dist/{application-spec/core → domain/spec}/components/sdk-code-ref.js +0 -0
  1394. /package/dist/{application-spec/core → domain/spec}/expressions/index.js +0 -0
  1395. /package/dist/{application-spec/core → domain/spec}/expressions/relation-expression-params.d.ts +0 -0
  1396. /package/dist/{application-spec/core → domain/spec}/expressions/sdk-expression-implementation.d.ts +0 -0
  1397. /package/dist/{application-spec/core → domain/spec}/expressions/sdk-expression-implementation.js +0 -0
  1398. /package/dist/{application-spec/parse-application-files/spec/components → domain/spec/markers}/component-prop-target.d.ts +0 -0
  1399. /package/dist/{application-spec/parse-application-files/spec/components → domain/spec/markers}/component-prop-target.js +0 -0
  1400. /package/dist/{application-spec/core → domain/spec}/markers/eval-marker.d.ts +0 -0
  1401. /package/dist/{application-spec/core → domain/spec}/markers/eval-marker.js +0 -0
  1402. /package/dist/{configurator/common → react-sdk/application-runtime/common-services/analytics}/frontend-analytics.js +0 -0
  1403. /package/dist/{configurator/configurator-context → react-sdk/domain-application-context}/OnPresetLoadedHandler.d.ts +0 -0
  1404. /package/dist/{configurator/configurator-context → react-sdk/integration}/IntegrationSubscription.d.ts +0 -0
  1405. /package/dist/{configurator/configurator-context → react-sdk/lifecycle-providers}/LifecycleProviders.d.ts +0 -0
  1406. /package/dist/{configurator/configurator-context → react-sdk/preset-selection}/PresetSelectionProvider.d.ts +0 -0
@@ -0,0 +1,100 @@
1
+ import { type ComponentType } from 'react';
2
+ import type { DimensionUnit } from '#package/domain';
3
+ import { type UseLocaleSwitchResult } from '#package/react-sdk';
4
+ import { type UseAssistantPanelResult } from './use-assistant-panel.js';
5
+ import { type UseMeasurementsResult } from './use-measurements.js';
6
+ /** Which of the spec's toolbar lists to read: `toolbar.desktop`, `toolbar.mobile` or `toolbar.mobileMenu`. */
7
+ export type ToolbarPlacement = 'desktop' | 'mobile' | 'mobileMenu';
8
+ interface ToolbarEntryBase {
9
+ /** Stable for the entry's placement, group and position, to key the rendered list */
10
+ readonly key: string;
11
+ /** The element's `icon` prop, when its kind has one and the spec sets it */
12
+ readonly icon: string | undefined;
13
+ /**
14
+ * The element's `showTitle` prop, else the built-in button's default: `true` for the assistant, else `false`. The
15
+ * built-in assistant button also hides its title on a phone or tablet-sized layout; the layout decides that here.
16
+ */
17
+ readonly showTitle: boolean;
18
+ /** The built-in button's title in the current language, such as "Undo" or "Share"; a custom entry's `name` */
19
+ readonly label: string;
20
+ }
21
+ /**
22
+ * One entry of the toolbar, by `kind`:
23
+ * - `undo`, `redo`: `run` undoes or redoes as `useUndoRedo` does; `disabled` while there is nothing to undo or redo.
24
+ * - `fullscreen`: `active` is the fullscreen flag, `run` toggles it and pushes the built-in button's analytics event.
25
+ * - `resetCamera`: `run` resets the camera as `useResetCamera` does.
26
+ * - `share`: the layout opens its own share dialog, which calls `useShareLinks`.
27
+ * - `measurements`: the layout opens its own settings over `measurements`, the result of `useMeasurements` with the
28
+ * element's `showIndicatorSwitch` applied; `icons` is the element's icon per unit, when the spec sets it.
29
+ * - `language`: the layout opens its own language list over `language`, the result of `useLocaleSwitch`.
30
+ * - `help`: `Content` renders the help, the element's children or else the help registered with
31
+ * `createToolbarHelp`, for the layout's own dialog. The built-in menu action falls back to nothing instead.
32
+ * - `assistant`: `run` opens or closes the assistant panel; `assistant` is the result of `useAssistantPanel`.
33
+ * - `custom`: `Element` renders the project element the spec's `customLayoutElement` names.
34
+ */
35
+ export type ToolbarAction = (ToolbarEntryBase & {
36
+ readonly kind: 'undo';
37
+ readonly disabled: boolean;
38
+ readonly run: () => void;
39
+ }) | (ToolbarEntryBase & {
40
+ readonly kind: 'redo';
41
+ readonly disabled: boolean;
42
+ readonly run: () => void;
43
+ }) | (ToolbarEntryBase & {
44
+ readonly kind: 'fullscreen';
45
+ readonly active: boolean;
46
+ readonly run: () => void;
47
+ }) | (ToolbarEntryBase & {
48
+ readonly kind: 'resetCamera';
49
+ readonly run: () => void;
50
+ }) | (ToolbarEntryBase & {
51
+ readonly kind: 'share';
52
+ }) | (ToolbarEntryBase & {
53
+ readonly kind: 'measurements';
54
+ readonly measurements: UseMeasurementsResult;
55
+ readonly icons: Partial<Record<DimensionUnit, string>> | undefined;
56
+ }) | (ToolbarEntryBase & {
57
+ readonly kind: 'language';
58
+ readonly language: UseLocaleSwitchResult;
59
+ }) | (ToolbarEntryBase & {
60
+ readonly kind: 'help';
61
+ readonly Content: ComponentType;
62
+ }) | (ToolbarEntryBase & {
63
+ readonly kind: 'assistant';
64
+ readonly assistant: UseAssistantPanelResult;
65
+ readonly run: () => void;
66
+ }) | (ToolbarEntryBase & {
67
+ readonly kind: 'custom';
68
+ readonly name: string;
69
+ readonly Element: ComponentType;
70
+ });
71
+ export interface UseToolbarActionsResult {
72
+ /**
73
+ * The spec's groups (`toolbarButtonGroup`), each a list of entries; an entry outside a group is a group of one, and
74
+ * a group nested in a group is flattened into it, where the built-in toolbar nests it
75
+ */
76
+ readonly groups: readonly (readonly ToolbarAction[])[];
77
+ /** The same entries, flattened */
78
+ readonly actions: readonly ToolbarAction[];
79
+ }
80
+ export type UseToolbarActions = (placement?: ToolbarPlacement) => UseToolbarActionsResult;
81
+ /**
82
+ * Hook to build a project layout's toolbar from the spec's `toolbar`, as the built-in `LayoutSlots.DesktopToolbar`,
83
+ * `LayoutSlots.MobileToolbar` and `LayoutSlots.MobileHamburgerMenu` do, as runnable entries instead of buttons.
84
+ * - It reads the first active root `toolbar` component's list for `placement` (`'desktop'` by default). Without
85
+ * one, it reads the default toolbar, which follows fullscreen and, for a viewer, leaves out share, undo and redo.
86
+ * - It leaves out an entry with nothing to offer: share when sharing is disabled, measurements or language with
87
+ * nothing to choose, help without content, the assistant without one in the spec. It leaves out an element that is
88
+ * not a toolbar entry, with a warning in development.
89
+ * - A project element registered under a built-in kind, such as `undoToolbarButton`, replaces that button in the
90
+ * built-in toolbar but not here: the entry stays the built-in action.
91
+ * - It differs from the built-in toolbar in four ways: the entries keep the spec's order for every placement, where
92
+ * `LayoutSlots.MobileToolbar` renders the `mobile` list reversed; a group nested in a group is flattened into it;
93
+ * the assistant's `showTitle` is the spec's, where the built-in button also hides its title on a phone or
94
+ * tablet-sized layout; and a `helpMenuAction` without children shows the registered help.
95
+ *
96
+ * The actions push the analytics events of the built-in buttons. Opening and closing the layout's own dialogs and
97
+ * popovers push none; the layout pushes its own through `useAnalytics`.
98
+ */
99
+ export declare const useToolbarActions: UseToolbarActions;
100
+ export {};
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{useCallback as t,useEffect as n,useMemo as a,useRef as o}from"react";import{P as r,match as s}from"ts-pattern";import{FrontendAnalyticsFactory as l,PhoenixLayoutElementWithChildren as i,PhoenixLayoutElements as u,useAnalyticsService as d,useIsDev as m,useIsFullscreenActive as p,useLocaleSwitch as b,useResolveLocalizable as c,useSetFullscreen as g,useShareLinks as h,useStoreSelector as k,useUndoRedo as T}from"#package/react-sdk";import{useConfigurator as B}from"../application-runtime/index.js";import{useAssistantPanel as f}from"./use-assistant-panel.js";import{useMeasurements as w}from"./use-measurements.js";import{useToolbarHelp as A}from"./use-toolbar-help.js";let v={undo:{id:"sdk.toolbar.undoRedo.undo.label",message:"Undo"},redo:{id:"sdk.toolbar.undoRedo.redo.label",message:"Redo"},enterFullscreen:{id:"sdk.toolbar.fullscreen.enter.label",message:"Open fullscreen"},exitFullscreen:{id:"sdk.toolbar.fullscreen.exit.label",message:"Exit fullscreen"},resetCamera:{id:"sdk.toolbar.camera.reset.label",message:"Reset camera"},shareToolbarButton:{id:"sdk.toolbar.share.open.label",message:"Share"},shareMenuAction:{id:"sdk.layout.menu.hamburger.share.label",message:"Share configuration"},measurementsToolbarButton:{id:"sdk.measurements",message:"Change measure"},measurementsMenuAction:{id:"sdk.layout.menu.measurements.label",message:"Change measure"},languageToolbarButton:{id:"sdk.toolbar.language.title",message:"Switch language"},languageMenuAction:{id:"sdk.layout.hamburgerMenu.language.label",message:"Change Language"},helpToolbarButton:{id:"sdk.toolbar.help.label",message:"Help"},helpMenuAction:{id:"sdk.layout.menu.hamburger.help.label",message:"Show help"},assistant:{id:"sdk.assistant.toolbarButton.label",message:"Assistant"}},C=(e,t,n=!1)=>({key:e,icon:t?.icon,showTitle:t?.showTitle??n});export const useToolbarActions=(M="desktop")=>{let{layoutSystem:P,cameraControlSystem:x}=B(),S=k(e=>P.getToolbarState(e.state),[P])[M],y=d(),$=c(),F=m(),R=T(),j=p(),L=g(),E=h({enabled:!1}),G=w(),D=b(),I=f(),O=A(),U=t(()=>{y.push(l.FullScreenModeToggled()),L(!j)},[y,L,j]),H=t(()=>{x.resetCamera()},[x]),W=t(()=>{I.setOpen(!I.open)},[I]),q=o(new WeakMap),z=t((e,t)=>{let n=q.current.get(e);if(n)return n;let a=()=>t();return q.current.set(e,a),a},[]),J=a(()=>{let t=[],n=(n,a)=>s(n).returnType().with({kind:"undoToolbarButton"},e=>({...C(a,e.props),kind:"undo",label:$(v.undo),disabled:!R.canUndo,run:R.undo})).with({kind:"redoToolbarButton"},e=>({...C(a,e.props),kind:"redo",label:$(v.redo),disabled:!R.canRedo,run:R.redo})).with({kind:r.union("enterFullscreenToolbarButton","exitFullscreenToolbarButton")},e=>({...C(a,e.props),kind:"fullscreen",label:$(j?v.exitFullscreen:v.enterFullscreen),active:j,run:U})).with({kind:"resetCameraToolbarButton"},e=>({...C(a,e.props),kind:"resetCamera",label:$(v.resetCamera),run:H})).with({kind:r.union("shareToolbarButton","shareMenuAction")},e=>E.available?{...C(a,e.props),kind:"share",label:$(v[e.kind])}:null).with({kind:r.union("measurementsToolbarButton","measurementsMenuAction")},e=>{let t=e.props?.showIndicatorSwitch??G.hasIndicatorSwitch,n=G.units.length>1||t;return n?{...C(a,void 0),kind:"measurements",label:$(v[e.kind]),measurements:{...G,hasIndicatorSwitch:t,available:n},icons:e.props?.icons}:null}).with({kind:r.union("languageToolbarButton","languageMenuAction")},e=>D.available?{...C(a,void 0),kind:"language",label:$(v[e.kind]),language:D}:null).with({kind:r.union("helpToolbarButton","helpMenuAction")},t=>{let{children:n}=t,o=void 0!==n?z(t,()=>e(u,{elements:n})):O;return o?{...C(a,t.props),kind:"help",label:$(v[t.kind]),Content:o}:null}).with({kind:"assistantToolbarButton"},e=>I.available?{...C(a,e.props,!0),kind:"assistant",label:$(v.assistant),assistant:I,run:W}:null).with({kind:"customLayoutElement"},t=>({...C(a,void 0),kind:"custom",label:t.props.name,name:t.props.name,Element:z(t,()=>e(i,{kind:t.kind,elementProps:t.props,children:t.children}))})).with({kind:r.union("toolbarButtonGroup","adminConnectedResourcePage","adminDataTableActions","adminDataTablePage","adminPresetActions","adminPresetCategoryActions","adminPresetCategoryPage","adminPresetListPage","adminRecipeActions","adminRecipeCollectionPage","enterSummaryButton","footerPrice","mainFooterActions","nextStepButton","otherActions","previousStepButton","saveTemplateButton","stepLabel","stepProgress")},e=>(t.push(e.kind),null)).exhaustive(),a=(e,t)=>{if("toolbarButtonGroup"!==e.kind){let a=n(e,`${t}-0`);return a?[a]:[]}return(e.children??[]).flatMap((e,o)=>"toolbarButtonGroup"===e.kind?a(e,`${t}-${o}`):n(e,`${t}-${o}`)??[])},o=(S??[]).map((e,t)=>a(e,`${M}-${t}`)).filter(e=>e.length>0);return{groups:o,actions:o.flat(),unsupported:t}},[S,M,$,R,j,U,H,E.available,G,D,I,W,O,z]),K=J.unsupported.join(", ");return n(()=>{F&&K&&console.warn(`useToolbarActions('${M}') leaves out elements that are not toolbar entries: ${K}.`)},[F,M,K]),a(()=>({groups:J.groups,actions:J.actions}),[J])};
@@ -0,0 +1,7 @@
1
+ import type { ComponentType } from 'react';
2
+ export type UseToolbarHelp = () => ComponentType | null;
3
+ /**
4
+ * Internal to `useToolbarActions`, not public: the help the project registers with the deprecated
5
+ * `createToolbarHelp`, which the default toolbar's help button shows, as a component, or `null` without one.
6
+ */
7
+ export declare const useToolbarHelp: UseToolbarHelp;
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{PhoenixLayoutElement as t,usePhoenixLayoutElementExists as o}from"#package/react-sdk";import{toolbarHelpElementName as r}from"../application-runtime/index.js";let l=()=>e(t,{name:r,elementProps:{},defaultSlot:()=>null});export const useToolbarHelp=()=>o(r)?l:null;
@@ -9,8 +9,9 @@ export interface AssistantToolChipsProps {
9
9
  readonly onUndo: (toolCallIds: ReadonlySet<string>) => void;
10
10
  }
11
11
  /**
12
- * A row of notes on what the assistant did in a reply, one per tool call. A click on a note logs
13
- * the input and the result of its call to the console. While one of the row's changes is the step
12
+ * A row of notes on what the assistant did in a reply, one per tool call, and one for the
13
+ * screenshots of a call that took any. A click on a call's note logs the input and the result of
14
+ * its call to the console. While one of the row's changes is the step
14
15
  * of the undo history the configuration is at, an Undo after the notes takes the row's changes
15
16
  * back, up to a change the user made in between.
16
17
  */
@@ -1 +1 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{ButtonBase as i,Tooltip as a,styled as n}from"@mui/material";import{memo as o,useCallback as s}from"react";import{match as r}from"ts-pattern";import{useLocalizable as d}from"#package/react-sdk";import{PhxIcon as l}from"#package/ui-sdk";import{AssistantPanelName as m}from"./theme.js";let c={id:"sdk.assistant.tool.updateDesign.label",message:"Update design"},p={id:"sdk.assistant.tool.readDesign.label",message:"Read design"},h={id:"sdk.assistant.tool.mistake.hint",message:"The assistant made a mistake."},u={id:"sdk.assistant.tool.cancelled.hint",message:"Stopped before it finished."},f={id:"sdk.assistant.tool.noResult.hint",message:"The result of this step was lost. It may or may not have been done."},g={id:"sdk.assistant.tool.toolBudget.hint",message:"Not done: the assistant reached its limit of steps for one message."},k={id:"sdk.assistant.tool.undo.label",message:"Undo"},x=n("div",{name:m,slot:"chips"})(({theme:{palette:e,spacing:t,typography:i}})=>({...i.caption,alignItems:"start",color:e.text.secondary,display:"grid",gap:t(.75),gridTemplateColumns:"min-content minmax(0, 1fr)"})),y=n("span",{name:m,slot:"activity"})(({theme:{typography:e}})=>({blockSize:`calc(${e.caption.lineHeight} * 1em)`,display:"grid",placeItems:"center"})),w=n(l,{name:m,slot:"activityIcon"})({fontSize:14,'[data-chips="active"] &':{animation:"phx-assistant-turn 2.4s linear infinite","@media (prefers-reduced-motion: reduce)":{animation:"none"}},"@keyframes phx-assistant-turn":{to:{rotate:"360deg"}}}),b=n("span",{name:m,slot:"chip"})(({theme:{palette:e,spacing:t}})=>({cursor:"default",display:"inline-block",whiteSpace:"nowrap","&:not(:last-of-type)::after":{color:e.text.secondary,content:'"\xb7"',display:"inline-block",marginInline:t(.75),textDecoration:"none"},'&[data-chip="failed"]':{color:e.error.main},'&[data-chip="flawed"]':{textDecoration:"line-through",textDecorationColor:e.error.main}})),v=n(i,{name:m,slot:"undoButton"})(({theme:{palette:e,shape:t,spacing:i}})=>({alignItems:"center",animation:"phx-assistant-undo-in 150ms ease-out",borderRadius:t.borderRadius,color:e.primary.main,display:"inline-flex",font:"inherit",gap:i(.5),marginInlineStart:i(1),verticalAlign:"top","&:hover":{textDecoration:"underline"},"@media (prefers-reduced-motion: reduce)":{animation:"none"},"@keyframes phx-assistant-undo-in":{from:{opacity:0}}})),C=o(({tool:t})=>{let{chip:i,input:n,result:o}=t,l=d(c),m=d(p),k=d(h),x=d(u),y=d(f),w=d(g),v=r(i.label).with({kind:"text"},({text:e})=>e).with({kind:"updateDesign"},()=>l).with({kind:"readDesign"},()=>m).exhaustive(),C=s(()=>{console.info(`Assistant tool call "${v}"`,{input:n,result:o})},[n,v,o]);return e(a,{title:r(i).with({errorCode:"cancelled"},()=>x).with({errorCode:"no_result"},()=>y).with({errorCode:"tool_budget"},()=>w).with({state:"failed"},{state:"flawed"},()=>k).otherwise(()=>""),placement:"top-start",children:e(b,{onClick:C,"data-chip":i.state,children:v})})});export const AssistantToolChips=o(({tools:i,isActive:a,canUndo:n,onUndo:o})=>{let r=d(k),m=s(()=>{o(new Set(i.map(({id:e})=>e)))},[o,i]);return t(x,{"data-chips":a?"active":"done","aria-busy":a,children:[e(y,{children:e(w,{name:"Gear"})}),t("div",{children:[i.map(t=>e(C,{tool:t},t.id)),n&&t(v,{onClick:m,children:[e(l,{name:"ArrowCounterClockwise",fontSize:"inherit"}),r]})]})]})});
1
+ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import{ButtonBase as i,ClickAwayListener as o,Tooltip as s,styled as a}from"@mui/material";import{memo as r,useCallback as l,useMemo as d,useRef as c,useState as m}from"react";import{match as p}from"ts-pattern";import{useLocalizable as h}from"#package/react-sdk";import{PhxIcon as u}from"#package/ui-sdk";import{assistantReferenceStyles as f}from"./reference-link/index.js";import{ScreenshotThumbnails as g,readToolScreenshots as k}from"./screenshots/index.js";import{AssistantPanelName as x}from"./theme.js";let y={id:"sdk.assistant.tool.updateDesign.label",message:"Update design"},b={id:"sdk.assistant.tool.readDesign.label",message:"Read design"},w={id:"sdk.assistant.tool.mistake.hint",message:"The assistant made a mistake."},v={id:"sdk.assistant.tool.cancelled.hint",message:"Stopped before it finished."},C={id:"sdk.assistant.tool.noResult.hint",message:"The result of this step was lost. It may or may not have been done."},I={id:"sdk.assistant.tool.toolBudget.hint",message:"Not done: the assistant reached its limit of steps for one message."},S={id:"sdk.assistant.tool.undo.label",message:"Undo"},D={id:"sdk.assistant.tool.screenshots.label",message:"{count, plural, one {# screenshot} other {# screenshots}}"},j=a("div",{name:x,slot:"chips"})(({theme:{palette:e,spacing:t,typography:n}})=>({...n.caption,alignItems:"start",color:e.text.secondary,display:"grid",gap:t(.75),gridTemplateColumns:"min-content minmax(0, 1fr)"})),z=a("span",{name:x,slot:"activity"})(({theme:{typography:e}})=>({blockSize:`calc(${e.caption.lineHeight} * 1em)`,display:"grid",placeItems:"center"})),A=a(u,{name:x,slot:"activityIcon"})({fontSize:14,'[data-chips="active"] &':{animation:"phx-assistant-turn 2.4s linear infinite","@media (prefers-reduced-motion: reduce)":{animation:"none"}},"@keyframes phx-assistant-turn":{to:{rotate:"360deg"}}}),T=a("span",{name:x,slot:"chip"})(({theme:{palette:e,spacing:t}})=>({cursor:"default",display:"inline-flex",maxInlineSize:"100%",verticalAlign:"top",whiteSpace:"nowrap","&:not(:last-of-type)::after":{color:e.text.secondary,content:'"\xb7"',flexShrink:0,marginInline:t(.75)}})),E=a("span",{name:x,slot:"screenshotsLink"})(f),L=a(i,{name:x,slot:"undoButton"})(({theme:{palette:e,shape:t,spacing:n}})=>({alignItems:"center",animation:"phx-assistant-undo-in 150ms ease-out",borderRadius:t.borderRadius,color:e.primary.main,display:"inline-flex",font:"inherit",gap:n(.5),marginInlineStart:n(1),verticalAlign:"top","&:hover":{textDecoration:"underline"},"@media (prefers-reduced-motion: reduce)":{animation:"none"},"@keyframes phx-assistant-undo-in":{from:{opacity:0}}})),R=a("span",{name:x,slot:"chipLabel"})(({theme:{palette:e}})=>({minInlineSize:0,overflow:"hidden",textOverflow:"ellipsis",'[data-chip="failed"] > &':{textDecoration:"line-through",textDecorationColor:e.error.main}})),P=a("span",{name:x,slot:"violation"})({display:"block"}),B=a("span",{name:x,slot:"fullLabel"})({display:"block"}),O=r(({tool:i})=>{let{chip:o,input:a,result:r}=i,d=h(y),u=h(b),f=h(w),g=h(v),k=h(C),x=h(I),S=c(null),[D,j]=m(!1),z=p(o.label).with({kind:"text"},({text:e})=>e).with({kind:"updateDesign"},()=>d).with({kind:"readDesign"},()=>u).exhaustive(),A=l(()=>{console.info(`Assistant tool call "${z}"`,{input:a,result:r})},[a,z,r]),E=l(()=>{let e=S.current;j(null!=e&&e.scrollWidth>e.clientWidth)},[]),L=p(o).with({errorCode:"cancelled"},()=>g).with({errorCode:"no_result"},()=>k).with({errorCode:"tool_budget"},()=>x).when(({violations:e})=>e.length>0,({violations:t})=>t.map((t,n)=>e(P,{children:t},n))).with({state:"failed"},()=>f).otherwise(()=>""),O=D?t(n,{children:[e(B,{children:z}),L]}):L;return e(s,{title:O,placement:"top-start",children:e(T,{onClick:A,onPointerEnter:E,"data-chip":o.state,children:e(R,{ref:S,children:z})})})}),U=r(({screenshots:t})=>{let n=h({...D,values:{count:t.length}}),[i,a]=m(!1),r=l(()=>a(!0),[]),d=l(()=>a(!1),[]),p=c(null),u=l(e=>{p.current=e},[]),f=l(()=>{p.current?.update()},[]),k=l(e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),a(!0))},[]);return e(T,{"data-chip":"screenshots",children:e(o,{onClickAway:d,mouseEvent:!!i&&"onClick",touchEvent:!!i&&"onTouchEnd",children:e(s,{open:i,onOpen:r,onClose:d,title:e(g,{screenshots:t,onImageLoad:f}),placement:"top-start",describeChild:!0,disableTouchListener:!0,PopperProps:{popperRef:u},slotProps:{tooltip:{sx:{background:"none",maxInlineSize:"none",padding:0}}},children:e(E,{role:"button",tabIndex:0,"aria-expanded":i,onClick:r,onKeyDown:k,children:n})})})})}),W=({tool:i})=>{let o=d(()=>k(i.result),[i.result]);return t(n,{children:[e(O,{tool:i}),o.length>0&&e(U,{screenshots:o})]})};export const AssistantToolChips=r(({tools:n,isActive:i,canUndo:o,onUndo:s})=>{let a=h(S),r=l(()=>{s(new Set(n.map(({id:e})=>e)))},[s,n]);return t(j,{"data-chips":i?"active":"done","aria-busy":i,children:[e(z,{children:e(A,{name:"Gear"})}),t("div",{children:[n.map(t=>e(W,{tool:t},t.id)),o&&t(L,{onClick:r,children:[e(u,{name:"ArrowCounterClockwise",fontSize:"inherit"}),a]})]})]})});
@@ -3,5 +3,11 @@
3
3
  * send control is a Stop control and the input stays editable, so the next message can be written.
4
4
  * A thread this session may not continue takes a message like any other: it is resumed first, with
5
5
  * the input read-only meanwhile, and the message stays in the input when that fails.
6
+ *
7
+ * Images are attached with the attach control, by pasting or by dropping files onto the composer,
8
+ * up to {@link MAX_MESSAGE_IMAGES} per message. Each is prepared at once (see `prepareImage`) and
9
+ * shown as a thumbnail that can be removed; one that cannot be prepared, or one too many, is not
10
+ * added, and a notice says why. The message keeps its text and images until it is sent, also when
11
+ * the upload of its images fails, and gets it back when the chat gives it back (see `onUnsent`).
6
12
  */
7
13
  export declare const AssistantComposer: () => import("react/jsx-runtime").JSX.Element;
@@ -1 +1,2 @@
1
- import{jsx as e,jsxs as a}from"react/jsx-runtime";import{Trans as r}from"@lingui/react";import{IconButton as i,InputBase as o,Tooltip as t,styled as n}from"@mui/material";import{useCallback as s,useRef as l,useState as d}from"react";import{useEagerObservableSelector as m,useLocalizable as p}from"#package/react-sdk";import{PhxIcon as c,useResponsive as u}from"#package/ui-sdk";import{useConfigurator as g}from"../../application-runtime/index.js";import{AssistantPanelName as h}from"./theme.js";let b={id:"sdk.assistant.composer.placeholder",message:"Ask or tell me what to change…"},k={id:"sdk.assistant.composer.send.label",message:"Send"},f={id:"sdk.assistant.composer.stop.label",message:"Stop"},y=n("form",{name:h,slot:"composer"})(({theme:{palette:e,spacing:a}})=>({borderBlockStart:`1px solid ${e.divider}`,display:"grid",gap:a(.75),paddingBlock:a(1.25),paddingInline:`var(--phx-sidebar-padding, ${a(2)})`})),x=n("div",{name:h,slot:"inputFrame"})(({theme:{palette:e,spacing:a}})=>({alignItems:"flex-end",border:`1px solid ${e.divider}`,borderRadius:12,display:"flex",gap:a(1),paddingBlock:a(.5),paddingInline:`${a(1.5)} ${a(.5)}`,"&:focus-within":{borderColor:e.primary.main}})),v=n(o,{name:h,slot:"input"})(({theme:{spacing:e,typography:a}})=>({...a.body2,flex:1,paddingBlock:e(.75)})),R=n(i,{name:h,slot:"sendButton"})(({theme:{palette:e}})=>({background:e.primary.main,borderRadius:8,color:e.primary.contrastText,"&:hover":{background:e.primary.dark},"&.Mui-disabled":{background:e.action.disabledBackground,color:e.action.disabled}})),B=n(i,{name:h,slot:"stopButton"})(({theme:{palette:e}})=>({background:e.text.primary,borderRadius:8,color:e.background.paper,"&:hover":{background:e.text.secondary}})),C=n("span")({background:"currentColor",blockSize:10,borderRadius:2,inlineSize:10,margin:5}),S=n("div",{name:h,slot:"hint"})(({theme:{palette:e,typography:a}})=>({...a.caption,color:e.text.secondary}));export const AssistantComposer=()=>{let{assistantSystem:i}=g(),[o,n]=d(""),h=l(null),{isDesktop:w}=u(),I=p(b),$=p(k),j=p(f),{isReplying:z,isResuming:F}=m(i.chat$,e=>({isReplying:e.isLoading,isResuming:e.isResuming}),[]),A=o.trim(),D=!z&&!F&&A.length>0,P=s(async()=>{!D||(w||h.current?.blur(),await i.resume()&&(n(""),i.send(A)))},[i,D,A,w]),E=s(e=>{e.preventDefault(),P()},[P]),K=s(e=>{"Enter"!==e.key||e.shiftKey||e.nativeEvent.isComposing||(e.preventDefault(),P())},[P]),T=s(()=>{i.stop()},[i]);return a(y,{onSubmit:E,children:[a(x,{children:[e(v,{multiline:!0,maxRows:6,placeholder:I,value:o,readOnly:F,inputRef:h,onChange:e=>n(e.target.value),onKeyDown:K,onFocus:()=>i.setInputFocused(!0),onBlur:()=>i.setInputFocused(!1),inputProps:{"aria-label":I}}),z?e(t,{title:j,placement:"top",children:e(B,{size:"small","aria-label":j,onClick:T,children:e(C,{})})}):e(t,{title:$,placement:"top",children:e("span",{children:e(R,{type:"submit",size:"small","aria-label":$,disabled:!D,children:e(c,{name:"PaperPlaneRightBold",fontSize:"small"})})})})]}),e(S,{children:e(r,{id:"sdk.assistant.composer.disclaimer",message:"AI can be wrong. Check the result."})})]})};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{Trans as a}from"@lingui/react";import{IconButton as r,InputBase as i,Tooltip as n,styled as o}from"@mui/material";import{useCallback as l,useEffect as s,useRef as d,useState as c}from"react";import{useEagerObservableSelector as m,useLocalizable as p}from"#package/react-sdk";import{PhxIcon as u,useResponsive as g}from"#package/ui-sdk";import{useConfigurator as h}from"../../application-runtime/index.js";import{prepareImage as b}from"./attachments/index.js";import{AssistantPanelName as f}from"./theme.js";let k={id:"sdk.assistant.composer.placeholder",message:"Ask or tell me what to change…"},v={id:"sdk.assistant.composer.send.label",message:"Send"},y={id:"sdk.assistant.composer.stop.label",message:"Stop"},x={id:"sdk.assistant.composer.attach.label",message:"Attach images"},R={id:"sdk.assistant.composer.attachment.remove",message:"Remove image"},S={id:"sdk.assistant.composer.attachment.unreadable",message:"Unsupported image format."},w={id:"sdk.assistant.composer.attachment.limit",message:"You can attach up to {max} images."},z=o("form",{name:f,slot:"composer"})(({theme:{palette:e,spacing:t}})=>({borderBlockStart:`1px solid ${e.divider}`,display:"grid",gap:t(.75),paddingBlock:t(1.25),paddingInline:`var(--phx-sidebar-padding, ${t(2)})`})),U=o("div",{name:f,slot:"inputFrame"})(({theme:{palette:e,spacing:t}})=>({alignItems:"end",border:`1px solid ${e.divider}`,borderRadius:12,columnGap:t(1),display:"grid",gridTemplateColumns:"auto minmax(0, 1fr) auto",padding:t(.5),'&:focus-within, &[data-dragging="true"]':{borderColor:e.primary.main}})),C=o("div",{name:f,slot:"attachments"})(({theme:{spacing:e}})=>({display:"flex",flexWrap:"wrap",gap:e(1),gridColumn:"1 / -1",paddingBlockStart:e(.75)})),j=o(r,{name:f,slot:"attachButton"})(({theme:{palette:e}})=>({background:"transparent",border:"none",borderRadius:8,boxShadow:"none",color:e.text.secondary,"&:hover":{background:e.action.hover,color:e.text.primary},"&.Mui-disabled":{background:"transparent",color:e.action.disabled}})),B=o("div",{name:f,slot:"attachment"})(({theme:{palette:e,shape:t}})=>({blockSize:56,border:`1px solid ${e.divider}`,borderRadius:t.borderRadius,inlineSize:56,overflow:"hidden",position:"relative"})),D=o("img")({blockSize:"100%",display:"block",inlineSize:"100%",objectFit:"cover"}),L=o(r,{name:f,slot:"removeAttachment"})(({theme:{palette:e}})=>({background:e.background.paper,insetBlockStart:2,insetInlineEnd:2,padding:2,position:"absolute","&:hover":{background:e.background.paper}})),T=o("div")({alignSelf:"stretch",display:"grid",minInlineSize:0}),$=o(i,{name:f,slot:"input"})(({theme:{spacing:e,typography:t}})=>({...t.body2,flex:1,paddingBlock:e(.75)})),I=o(r,{name:f,slot:"sendButton"})(({theme:{palette:e}})=>({background:e.primary.main,borderRadius:8,color:e.primary.contrastText,"&:hover":{background:e.primary.dark},"&.Mui-disabled":{background:e.action.disabledBackground,color:e.action.disabled}})),F=o(r,{name:f,slot:"stopButton"})(({theme:{palette:e}})=>({background:e.text.primary,borderRadius:8,color:e.background.paper,"&:hover":{background:e.text.secondary}})),O=o("span")({background:"currentColor",blockSize:10,borderRadius:2,inlineSize:10,margin:5}),P=o("div",{name:f,slot:"hint"})(({theme:{palette:e,typography:t}})=>({...t.caption,color:e.text.secondary})),A=o("div",{name:f,slot:"attachmentNotice"})(({theme:{palette:e,typography:t}})=>({...t.caption,color:e.error.main})),E=o("input")({display:"none"}),M=0,K=e=>{for(let{previewUrl:t}of e)URL.revokeObjectURL(t)};export const AssistantComposer=()=>{let{assistantSystem:r}=h(),[i,o]=c(""),[f,N]=c([]),[W,G]=c(0),[X,Y]=c(),[q,H]=c(!1),[J,Q]=c(!1),V=d(null),Z=d(null),_=d(0),ee=d(f),{isDesktop:et}=g();ee.current=f;let ea=p(k),er=p(v),ei=p(y),en=p(x),eo=p(R),el=p(S),es=p({...w,values:{max:4}}),ed=d(!0);s(()=>(ed.current=!0,()=>{ed.current=!1,K(ee.current)}),[]);let{isReplying:ec,isResuming:em}=m(r.chat$,e=>({isReplying:e.isLoading,isResuming:e.isResuming}),[]),ep=i.trim(),eu=em||q,eg=!ec&&!eu&&0===W&&(ep.length>0||f.length>0),eh=l(async e=>{if(0===e.length)return;let t=e.slice(0,Math.max(0,4-_.current));Y(t.length<e.length?"limit":void 0),0!==t.length&&(_.current+=t.length,G(e=>e+t.length),await Promise.all(t.map(async e=>{try{let t=await b(e);if(!ed.current)return;let a={id:`attachment-${++M}`,blob:t,previewUrl:URL.createObjectURL(t)};N(e=>[...e,a])}catch{_.current-=1,Y("unreadable")}finally{G(e=>e-1)}})))},[]),eb=l(e=>{URL.revokeObjectURL(e.previewUrl),_.current-=1,N(t=>t.filter(({id:t})=>t!==e.id)),Y(void 0)},[]),ef=l(async()=>{if(eg){et||V.current?.blur(),H(!0);try{await r.send(ep,f.map(({blob:e})=>e),{onSent:()=>{o(""),N(e=>e.filter(e=>!f.includes(e))),K(f),_.current-=f.length,Y(void 0),H(!1)},onUnsent:()=>{if(!ed.current)return;let e=f.slice(0,Math.max(0,4-_.current)),t=e.map(e=>({...e,previewUrl:URL.createObjectURL(e.blob)}));o(e=>e.trim()?`${e}
2
+ ${i}`:i),N(e=>[...t,...e]),_.current+=t.length,Y(e.length<f.length?"limit":void 0)}})}finally{H(!1)}}},[r,f,eg,ep,i,et]),ek=l(e=>{e.preventDefault(),ef()},[ef]),ev=l(e=>{"Enter"!==e.key||e.shiftKey||e.nativeEvent.isComposing||(e.preventDefault(),ef())},[ef]),ey=l(()=>{r.stop()},[r]),ex=l(e=>{let t=[...e.target.files??[]];e.target.value="",eh(t)},[eh]),eR=l(e=>{let t=[...e.clipboardData.files].filter(e=>e.type.startsWith("image/"));0!==t.length&&(e.preventDefault(),eh(t))},[eh]);return t(z,{onSubmit:ek,onDragOver:l(e=>{e.dataTransfer.types.includes("Files")&&(e.preventDefault(),e.dataTransfer.dropEffect="copy",Q(!0))},[]),onDragLeave:l(e=>{e.relatedTarget instanceof Node&&e.currentTarget.contains(e.relatedTarget)||Q(!1)},[]),onDrop:l(e=>{0!==e.dataTransfer.files.length&&(e.preventDefault(),Q(!1),eh([...e.dataTransfer.files]))},[eh]),children:[t(U,{"data-dragging":J,children:[f.length>0&&e(C,{children:f.map(a=>t(B,{children:[e(D,{src:a.previewUrl,alt:""}),e(L,{size:"small","aria-label":eo,disabled:eu,onClick:()=>eb(a),children:e(u,{name:"X",sx:{fontSize:12}})})]},a.id))}),e(n,{title:en,placement:"top",children:e("span",{children:e(j,{size:"small","aria-label":en,disabled:eu,onClick:()=>Z.current?.click(),children:e(u,{name:"Paperclip",fontSize:"small"})})})}),e(E,{ref:Z,type:"file",accept:"image/*",multiple:!0,onChange:ex}),e(T,{children:e($,{multiline:!0,maxRows:6,placeholder:ea,value:i,readOnly:eu,inputRef:V,onChange:e=>o(e.target.value),onKeyDown:ev,onPaste:eR,onFocus:()=>r.setInputFocused(!0),onBlur:()=>r.setInputFocused(!1),inputProps:{"aria-label":ea}})}),ec?e(n,{title:ei,placement:"top",children:e(F,{size:"small","aria-label":ei,onClick:ey,children:e(O,{})})}):e(n,{title:er,placement:"top",children:e("span",{children:e(I,{type:"submit",size:"small","aria-label":er,disabled:!eg,children:e(u,{name:"PaperPlaneRightBold",fontSize:"small"})})})})]}),X?e(A,{role:"status",children:"limit"===X?es:el}):e(P,{children:e(a,{id:"sdk.assistant.composer.disclaimer",message:"AI can be wrong. Check the result."})})]})};
@@ -1,7 +1,12 @@
1
+ import type { AssistantFormsVisibility } from './thread-items.js';
1
2
  export interface AssistantMarkdownProps {
2
3
  readonly markdown: string;
3
4
  /** True while the text is still arriving, so markup the model has not finished is completed. */
4
5
  readonly isStreaming: boolean;
6
+ readonly forms: AssistantFormsVisibility;
5
7
  }
6
- /** Assistant text of the thread: Markdown with lists, tables, links, entity links and code, without a bubble. */
7
- export declare const AssistantMarkdown: import("react").MemoExoticComponent<({ markdown, isStreaming }: AssistantMarkdownProps) => import("react/jsx-runtime").JSX.Element>;
8
+ /**
9
+ * Assistant text of the thread: Markdown with lists, tables, alerts, links, entity links, references, images, code and forms,
10
+ * without a bubble. A form fence the model is still writing shows a placeholder.
11
+ */
12
+ export declare const AssistantMarkdown: import("react").MemoExoticComponent<({ markdown, isStreaming, forms }: AssistantMarkdownProps) => import("react/jsx-runtime").JSX.Element>;
@@ -1 +1 @@
1
- import{jsx as r,Fragment as e}from"react/jsx-runtime";import{styled as o}from"@mui/material";import{memo as n}from"react";import i,{defaultUrlTransform as a}from"react-markdown";import t from"remark-gfm";import{AssistantEntityLink as l,isEntityLinkHref as d,parseEntityLinkTarget as m}from"./entity-link/index.js";import{completeStreamedMarkdown as s}from"./streamed-markdown.js";import{AssistantPanelName as c}from"./theme.js";let p=o("div",{name:c,slot:"assistantMessage"})(({theme:{palette:r,shape:e,spacing:o,typography:n}})=>({overflowWrap:"anywhere","& > :first-child":{marginBlockStart:0},"& > :last-child":{marginBlockEnd:0},"p, ul, ol, pre, blockquote":{marginBlock:o(1)},"h1, h2, h3, h4, h5, h6":{...n.subtitle2,marginBlock:o(1.5,.5)},"ul, ol":{paddingInlineStart:o(2.5)},a:{color:r.primary.main},code:{background:r.action.hover,borderRadius:e.borderRadius/2,fontFamily:"ui-monospace, Menlo, monospace",fontSize:"0.9em",paddingInline:o(.5)},pre:{background:r.action.hover,borderRadius:e.borderRadius,overflowX:"auto",padding:o(1),code:{background:"none",padding:0}},blockquote:{borderInlineStart:`2px solid ${r.divider}`,color:r.text.secondary,marginInline:0,paddingInlineStart:o(1.5)},"th, td":{borderBlockEnd:`1px solid ${r.divider}`,padding:o(.5,1),textAlign:"start",verticalAlign:"top"}})),u=o("div")({overflowX:"auto",table:{borderCollapse:"collapse",inlineSize:"100%"}}),g={a:({node:o,children:n,href:i,...a})=>{if(null==i||!d(i))return r("a",{...a,href:i,target:"_blank",rel:"noopener noreferrer",children:n});let t=m(i);return null==t?r(e,{children:n}):r(l,{id:t,children:n})},table:({node:e,children:o,...n})=>r(u,{children:r("table",{...n,children:o})})},h=[t],f=r=>d(r)?r:a(r),b=["img"];export const AssistantMarkdown=n(({markdown:e,isStreaming:o})=>r(p,{children:r(i,{components:g,remarkPlugins:h,disallowedElements:b,urlTransform:f,children:o?s(e):e})}));
1
+ import{jsx as e,Fragment as r}from"react/jsx-runtime";import{styled as n}from"@mui/material";import{createContext as i,memo as o,useContext as t,useMemo as l}from"react";import a,{defaultUrlTransform as d}from"react-markdown";import m from"remark-gfm";import{AssistantAlert as s,isAlertKind as c,remarkAlerts as u}from"./alert/index.js";import{AssistantEntityLink as p}from"./entity-link/index.js";import{AssistantForm as h}from"./form/index.js";import{AssistantReferenceLink as f,isAssistantLinkHref as g,parseAssistantLinkTarget as k}from"./reference-link/index.js";import{AssistantImage as b}from"./resource-image/index.js";import{completeStreamedMarkdown as v,hasOpenFence as x}from"./streamed-markdown.js";import{AssistantPanelName as y}from"./theme.js";let j=n("div",{name:y,slot:"assistantMessage"})(({theme:{palette:e,shape:r,spacing:n,typography:i}})=>({overflowWrap:"anywhere","& > :first-child":{marginBlockStart:0},"& > :last-child":{marginBlockEnd:0},"p, ul, ol, pre, blockquote":{marginBlock:n(1)},"h1, h2, h3, h4, h5, h6":{...i.subtitle2,marginBlock:n(1.5,.5)},"ul, ol":{paddingInlineStart:n(2.5)},a:{color:e.primary.main},code:{background:e.action.hover,borderRadius:r.borderRadius/2,fontFamily:"ui-monospace, Menlo, monospace",fontSize:"0.9em",paddingInline:n(.5)},pre:{background:e.action.hover,borderRadius:r.borderRadius,overflowX:"auto",padding:n(1),code:{background:"none",padding:0}},blockquote:{borderInlineStart:`2px solid ${e.divider}`,color:e.text.secondary,marginInline:0,paddingInlineStart:n(1.5)},"th, td":{borderBlockEnd:`1px solid ${e.divider}`,padding:n(.5,1),textAlign:"start",verticalAlign:"top"}})),w=n("div")({overflowX:"auto",table:{borderCollapse:"collapse",inlineSize:"100%"}}),S=i({forms:"hidden",openFenceEnd:void 0,isStreaming:!1}),A=({source:r,end:n})=>{let{forms:i,openFenceEnd:o,isStreaming:l}=t(S);return"hidden"===i?null:null!=n&&n===o?l?e(h,{source:r,status:"writing"}):null:e(h,{source:r,status:"disabled"===i?"waiting":"ready"})},B={a:({node:n,children:i,href:o,...t})=>{if(null==o||!g(o))return e("a",{...t,href:o,target:"_blank",rel:"noopener noreferrer",children:i});let l=k(o);return null==l?e(r,{children:i}):"entity"===l.kind?e(p,{id:l.id,children:i}):e(f,{target:l,children:i})},blockquote:({node:r,children:n,...i})=>{let o=r?.properties.dataAlert;return c(o)?e(s,{kind:o,children:n}):e("blockquote",{...i,children:n})},img:({src:r,alt:n})=>e(b,{src:r,alt:n}),pre:({node:r,children:n,...i})=>{let o=(e=>{let[r]=e?.children??[];if(r?.type!=="element"||"code"!==r.tagName)return;let{className:n}=r.properties;if(Array.isArray(n)&&n.includes("language-form"))return r.children.map(e=>"text"===e.type?e.value:"").join("")})(r);return null==o?e("pre",{...i,children:n}):e(A,{source:o,end:r?.position?.end.offset})},table:({node:r,children:n,...i})=>e(w,{children:e("table",{...i,children:n})})},I=[m,u],q=e=>g(e)?e:d(e);export const AssistantMarkdown=o(({markdown:r,isStreaming:n,forms:i})=>{let o=n?v(r):r,t=x(r)?o.length:void 0,d=l(()=>({forms:i,openFenceEnd:t,isStreaming:n}),[i,t,n]);return e(j,{children:e(S.Provider,{value:d,children:e(a,{components:B,remarkPlugins:I,urlTransform:q,children:o})})})});
@@ -1 +1 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{IconButton as s,Tooltip as a,Typography as i,styled as n}from"@mui/material";import{useCallback as r}from"react";import{useLocalizable as o}from"#package/react-sdk";import{PhxIcon as l}from"#package/ui-sdk";import{useConfigurator as m}from"../../application-runtime/index.js";import{AssistantComposer as d}from"./AssistantComposer.js";import{AssistantThread as p}from"./AssistantThread.js";import{AssistantPanelName as c}from"./theme.js";import{useIsAssistantPanelOpen as u}from"./use-is-assistant-panel-open.js";let b={id:"sdk.assistant.panel.title",message:"Assistant"},f={id:"sdk.assistant.panel.close.label",message:"Close assistant"};export const ASSISTANT_PANEL_SLOT="slot[assistant]";let g=n("section",{name:c,slot:"root"})(({theme:{palette:e}})=>({background:`var(--phx-sidebar-background, ${e.background.paper})`,border:"var(--phx-sidebar-border, 0)",borderRadius:"inherit",display:"grid",gridTemplateColumns:"minmax(0, 1fr)",gridTemplateRows:"min-content minmax(0, 1fr) min-content",inset:0,overflow:"hidden",position:"absolute",zIndex:1})),h=n("header",{name:c,slot:"header"})(({theme:{palette:e,spacing:t}})=>({alignItems:"center",borderBlockEnd:`1px solid ${e.divider}`,display:"flex",gap:t(1),justifyContent:"space-between",paddingBlock:t(1),paddingInline:`var(--phx-sidebar-padding, ${t(2)}) ${t(1)}`})),x=n(i,{name:c,slot:"title"})({fontWeight:600}),k=n(s,{name:c,slot:"closeButton"})({}),j=e=>{e.target instanceof Element&&e.target.closest("button")&&e.preventDefault()};export const AssistantPanel=()=>{let{assistantSystem:s}=m(),i=u(),n=o(b),c=o(f),v=r(()=>{s.setOpen(!1)},[s]);return i?t(g,{"data-sidebar":"slot[assistant]","aria-label":n,onMouseDown:j,children:[t(h,{children:[e(x,{variant:"subtitle1",component:"h2",children:n}),e(a,{title:c,placement:"top",children:e(k,{size:"small","aria-label":c,onClick:v,children:e(l,{name:"X"})})})]}),e(p,{}),e(d,{})]}):null};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{IconButton as s,Tooltip as a,Typography as n,styled as i}from"@mui/material";import{useCallback as r}from"react";import{useLocalizable as o}from"#package/react-sdk";import{PhxIcon as l}from"#package/ui-sdk";import{useConfigurator as m}from"../../application-runtime/index.js";import{AssistantComposer as d}from"./AssistantComposer.js";import{AssistantThread as p}from"./AssistantThread.js";import{AssistantPanelName as c}from"./theme.js";import{useIsAssistantPanelOpen as u}from"./use-is-assistant-panel-open.js";let b={id:"sdk.assistant.panel.title",message:"Assistant"},f={id:"sdk.assistant.panel.close.label",message:"Close assistant"};export const ASSISTANT_PANEL_SLOT="slot[assistant]";let g=i("section",{name:c,slot:"root"})(({theme:{palette:e}})=>({background:`var(--phx-sidebar-background, ${e.background.paper})`,border:"var(--phx-sidebar-border, 0)",borderRadius:"inherit",display:"grid",gridTemplateColumns:"minmax(0, 1fr)",gridTemplateRows:"min-content minmax(0, 1fr) min-content",inset:0,overflow:"hidden",position:"absolute",zIndex:1})),h=i("header",{name:c,slot:"header"})(({theme:{palette:e,spacing:t}})=>({alignItems:"center",borderBlockEnd:`1px solid ${e.divider}`,display:"flex",gap:t(1),justifyContent:"space-between",paddingBlock:t(1),paddingInline:`var(--phx-sidebar-padding, ${t(2)}) ${t(1)}`})),x=i(n,{name:c,slot:"title"})({fontWeight:600}),k=i(s,{name:c,slot:"closeButton"})({}),j=e=>{e.target instanceof Element&&e.target.closest('button, [role="button"]')&&e.preventDefault()};export const AssistantPanel=()=>{let{assistantSystem:s}=m(),n=u(),i=o(b),c=o(f),v=r(()=>{s.setOpen(!1)},[s]);return n?t(g,{"data-sidebar":"slot[assistant]","aria-label":i,onMouseDown:j,children:[t(h,{children:[e(x,{variant:"subtitle1",component:"h2",children:i}),e(a,{title:c,placement:"top",children:e(k,{size:"small","aria-label":c,onClick:v,children:e(l,{name:"X"})})})]}),e(p,{}),e(d,{})]}):null};
@@ -1 +1 @@
1
- import{jsx as e,jsxs as a}from"react/jsx-runtime";import{Trans as i}from"@lingui/react";import{Button as t,styled as s}from"@mui/material";import{useCallback as r,useMemo as n}from"react";import{match as o}from"ts-pattern";import{useEagerObservableValue as l}from"#package/react-sdk";import{PhxIcon as d}from"#package/ui-sdk";import{useConfigurator as m}from"../../application-runtime/index.js";import{AssistantToolChips as c}from"./AssistantChips.js";import{AssistantMarkdown as h}from"./AssistantMarkdown.js";import{describeAssistantFailure as p}from"./assistant-failure.js";import{EntityLinkSelectionProvider as g,useCreateEntityLinkSelection as u}from"./entity-link/index.js";import{AssistantPanelName as k}from"./theme.js";import{buildEarlierThreadItems as f,buildThreadView as v}from"./thread-items.js";import{useFollowStream as b}from"./use-follow-stream.js";let w=s("div",{name:k,slot:"thread"})({display:"grid",position:"relative"}),x=s("div",{name:k,slot:"messages"})(({theme:{spacing:e,typography:a}})=>({...a.body2,display:"flex",flexDirection:"column",gap:e(1.5),overflowY:"auto",overscrollBehavior:"contain",paddingBlock:e(2),paddingInline:`var(--phx-sidebar-padding, ${e(2)})`,"& > :first-child":{marginBlockStart:"auto"}})),y=s("div",{name:k,slot:"userMessage"})(({theme:{palette:e,spacing:a}})=>({alignSelf:"flex-end",background:`hsl(from ${e.primary.main} h s l / 12%)`,borderRadius:"14px 14px 4px 14px",maxInlineSize:"85%",overflowWrap:"anywhere",paddingBlock:a(1),paddingInline:a(1.5),whiteSpace:"pre-wrap"})),T=s("div",{name:k,slot:"greeting"})({}),C=s("div",{name:k,slot:"status"})(({theme:{palette:e,typography:a}})=>({...a.caption,color:e.text.secondary})),S=s("div",{name:k,slot:"separator"})(({theme:{palette:e,spacing:a,typography:i}})=>({...i.caption,alignItems:"center",color:e.text.secondary,display:"flex",gap:a(1),"&::before, &::after":{borderBlockStart:`1px solid ${e.divider}`,content:'""',flex:1}})),j=s(t,{name:k,slot:"earlierButton"})({alignSelf:"center"}),I=s("div",{name:k,slot:"notice"})(({theme:{palette:e,shape:a,spacing:i}})=>({alignItems:"center",background:e.action.hover,borderRadius:a.borderRadius,display:"flex",flexWrap:"wrap",gap:i(1),justifyContent:"space-between",paddingBlock:i(1),paddingInline:i(1.5)})),B=s(t,{name:k,slot:"newReplyButton"})(({theme:{palette:e,spacing:a}})=>({background:e.text.primary,borderRadius:"calc(infinity * 1px)",color:e.background.paper,insetBlockEnd:a(1),insetInlineStart:"50%",position:"absolute",translate:"-50% 0","&:hover":{background:e.text.secondary}})),E=({item:a,isActive:t,undoableToolCallId:s,onUndo:r})=>o(a).with({kind:"user"},({text:a})=>e(y,{children:a})).with({kind:"text"},({markdown:a,isStreaming:i})=>e(h,{markdown:a,isStreaming:i})).with({kind:"tools"},({tools:a})=>e(c,{tools:a,isActive:t,canUndo:a.some(({id:e})=>e===s),onUndo:r})).with({kind:"separator"},()=>e(S,{role:"separator",children:e(i,{id:"sdk.assistant.thread.earlierSummarized",message:"Earlier conversation summarized"})})).exhaustive();export const AssistantThread=()=>{let{assistantSystem:s}=m(),c=l(s.chat$),{messages:h,isLoading:k,isResuming:y,earlierThreads:S}=c,A=l(s.undoTipToolCallId$),R=k?void 0:A,{items:L,isThinking:z}=n(()=>v(h,k),[h,k]),$=n(()=>f(S),[S]),U=n(()=>L.filter(({kind:e})=>"user"===e).length,[L]),D=c.error?p(c.failedStatus):void 0,{scrollerRef:M,hasUnseenContent:W,handleScroll:q,scrollToEnd:H}=b(n(()=>({messages:h,isThinking:z,isResuming:y,failure:D?.kind}),[h,z,y,D?.kind]),U),N=u(),Y=r(e=>{e.target instanceof Element&&e.target.closest('a, button, input, select, textarea, [role="button"]')||window.getSelection()?.isCollapsed!==!1&&N.release()},[N]),F=!c.isLoaded&&0===$.length&&!y&&!D;return a(w,{children:[e(g,{selection:N,children:a(x,{ref:M,onScroll:q,onClick:Y,role:"log","aria-live":"polite",children:[c.isLoaded&&0===L.length&&0===$.length&&!k&&!y&&!D&&e(T,{children:e(i,{id:"sdk.assistant.thread.greeting",message:"Hi. I can answer questions about this design and change it with you. Tell me what you need."})}),F&&e(C,{children:e(i,{id:"sdk.assistant.thread.loading",message:"Loading the conversation…"})}),c.isLoadingEarlierThread&&e(C,{children:e(i,{id:"sdk.assistant.thread.loadingEarlier",message:"Loading the earlier conversation…"})}),c.hasEarlierThread&&!c.isLoadingEarlierThread&&e(j,{size:"small",color:"inherit",onClick:s.loadEarlierThread,children:e(i,{id:"sdk.assistant.thread.showEarlier.label",message:"Show earlier conversation"})}),$.map(a=>e(E,{item:a,isActive:!1,undoableToolCallId:R,onUndo:s.undoToolCalls},a.id)),L.map(a=>e(E,{item:a,isActive:k&&a===L.at(-1),undoableToolCallId:R,onUndo:s.undoToolCalls},a.id)),y&&e(C,{children:e(i,{id:"sdk.assistant.thread.resuming",message:"Resuming the conversation…"})}),z&&e(C,{children:e(i,{id:"sdk.assistant.thread.thinking",message:"Thinking…"})}),D&&a(I,{role:"alert",children:[e("span",{children:o(D.kind).with("notAvailable",()=>e(i,{id:"sdk.assistant.failure.notAvailable",message:"The assistant is not available here."})).with("busy",()=>e(i,{id:"sdk.assistant.failure.busy",message:"The assistant is still working on an earlier message."})).with("unavailable",()=>e(i,{id:"sdk.assistant.failure.unavailable",message:"The assistant is unavailable right now."})).exhaustive()}),D.canRetry&&e(t,{size:"small",variant:"outlined",color:"inherit",onClick:s.reloadThread,children:e(i,{id:"sdk.assistant.failure.retry.label",message:"Try again"})})]})]})}),W&&e(B,{size:"small",onClick:H,endIcon:e(d,{name:"CaretDown"}),children:e(i,{id:"sdk.assistant.thread.newReply.label",message:"New reply"})})]})};
1
+ import{jsx as e,jsxs as a}from"react/jsx-runtime";import{Trans as i}from"@lingui/react";import{Button as t,styled as s}from"@mui/material";import{useCallback as r,useMemo as n}from"react";import{match as o}from"ts-pattern";import{useEagerObservableValue as l}from"#package/react-sdk";import{PhxIcon as d}from"#package/ui-sdk";import{useConfigurator as m}from"../../application-runtime/index.js";import{AssistantToolChips as c}from"./AssistantChips.js";import{AssistantMarkdown as h}from"./AssistantMarkdown.js";import{describeAssistantFailure as p}from"./assistant-failure.js";import{MessageImages as g}from"./attachments/index.js";import{EntityLinkSelectionProvider as u,useCreateEntityLinkSelection as f}from"./entity-link/index.js";import{AssistantPanelName as k}from"./theme.js";import{buildEarlierThreadItems as v,buildThreadView as b}from"./thread-items.js";import{useFollowStream as w}from"./use-follow-stream.js";let x=s("div",{name:k,slot:"thread"})({display:"grid",position:"relative"}),y=s("div",{name:k,slot:"messages"})(({theme:{spacing:e,typography:a}})=>({...a.body2,display:"flex",flexDirection:"column",gap:e(1.5),overflowY:"auto",overscrollBehavior:"contain",paddingBlock:e(2),paddingInline:`var(--phx-sidebar-padding, ${e(2)})`,"& > :first-child":{marginBlockStart:"auto"}})),T=s("div",{name:k,slot:"userMessage"})(({theme:{palette:e,spacing:a}})=>({alignSelf:"flex-end",background:`hsl(from ${e.primary.main} h s l / 12%)`,borderRadius:"14px 14px 4px 14px",display:"grid",gap:a(1),maxInlineSize:"85%",overflowWrap:"anywhere",paddingBlock:a(1),paddingInline:a(1.5),whiteSpace:"pre-wrap"})),j=s("div",{name:k,slot:"greeting"})({}),C=s("div",{name:k,slot:"status"})(({theme:{palette:e,typography:a}})=>({...a.caption,color:e.text.secondary})),I=s("div",{name:k,slot:"separator"})(({theme:{palette:e,spacing:a,typography:i}})=>({...i.caption,alignItems:"center",color:e.text.secondary,display:"flex",gap:a(1),"&::before, &::after":{borderBlockStart:`1px solid ${e.divider}`,content:'""',flex:1}})),S=s(t,{name:k,slot:"earlierButton"})({alignSelf:"center"}),B=s("div",{name:k,slot:"notice"})(({theme:{palette:e,shape:a,spacing:i}})=>({alignItems:"center",background:e.action.hover,borderRadius:a.borderRadius,display:"flex",flexWrap:"wrap",gap:i(1),justifyContent:"space-between",paddingBlock:i(1),paddingInline:i(1.5)})),E=s(t,{name:k,slot:"newReplyButton"})(({theme:{palette:e,spacing:a}})=>({background:e.text.primary,borderRadius:"calc(infinity * 1px)",color:e.background.paper,insetBlockEnd:a(1),insetInlineStart:"50%",position:"absolute",translate:"-50% 0","&:hover":{background:e.text.secondary}})),A=({item:t,isActive:s,undoableToolCallId:r,onUndo:n})=>o(t).with({kind:"user"},({text:i,imageIds:t})=>a(T,{children:[t.length>0&&e(g,{imageIds:t}),i]})).with({kind:"text"},({markdown:a,isStreaming:i,forms:t})=>e(h,{markdown:a,isStreaming:i,forms:t})).with({kind:"tools"},({tools:a})=>e(c,{tools:a,isActive:s,canUndo:a.some(({id:e})=>e===r),onUndo:n})).with({kind:"separator"},()=>e(I,{role:"separator",children:e(i,{id:"sdk.assistant.thread.earlierSummarized",message:"Earlier conversation summarized"})})).exhaustive();export const AssistantThread=()=>{let{assistantSystem:s}=m(),c=l(s.chat$),{messages:h,isLoading:g,isResuming:k,earlierThreads:T}=c,I=l(s.undoTipToolCallId$),R=g?void 0:I,{items:L,isThinking:z}=n(()=>b(h,g,k),[h,g,k]),$=n(()=>v(T),[T]),U=n(()=>L.filter(({kind:e})=>"user"===e).length,[L]),D=c.error?p(c.failedStatus):void 0,{scrollerRef:M,hasUnseenContent:W,handleScroll:q,scrollToEnd:H}=w(n(()=>({messages:h,isThinking:z,isResuming:k,failure:D?.kind}),[h,z,k,D?.kind]),U),N=f(),Y=r(e=>{e.target instanceof Element&&e.target.closest('a, button, input, label, select, textarea, [role="button"], [role="tooltip"]')||window.getSelection()?.isCollapsed!==!1&&N.release()},[N]),F=!c.isLoaded&&0===$.length&&!k&&!D;return a(x,{children:[e(u,{selection:N,children:a(y,{ref:M,onScroll:q,onClick:Y,role:"log","aria-live":"polite",children:[c.isLoaded&&0===L.length&&0===$.length&&!g&&!k&&!D&&e(j,{children:e(i,{id:"sdk.assistant.thread.greeting",message:"Hi. I can answer questions about this design and change it with you. Tell me what you need."})}),F&&e(C,{children:e(i,{id:"sdk.assistant.thread.loading",message:"Loading the conversation…"})}),c.isLoadingEarlierThread&&e(C,{children:e(i,{id:"sdk.assistant.thread.loadingEarlier",message:"Loading the earlier conversation…"})}),c.hasEarlierThread&&!c.isLoadingEarlierThread&&e(S,{size:"small",color:"inherit",onClick:s.loadEarlierThread,children:e(i,{id:"sdk.assistant.thread.showEarlier.label",message:"Show earlier conversation"})}),$.map(a=>e(A,{item:a,isActive:!1,undoableToolCallId:R,onUndo:s.undoToolCalls},a.id)),L.map(a=>e(A,{item:a,isActive:g&&a===L.at(-1),undoableToolCallId:R,onUndo:s.undoToolCalls},a.id)),k&&e(C,{children:e(i,{id:"sdk.assistant.thread.resuming",message:"Resuming the conversation…"})}),z&&e(C,{children:e(i,{id:"sdk.assistant.thread.thinking",message:"Thinking…"})}),D&&a(B,{role:"alert",children:[e("span",{children:o(D.kind).with("notAvailable",()=>e(i,{id:"sdk.assistant.failure.notAvailable",message:"The assistant is not available here."})).with("busy",()=>e(i,{id:"sdk.assistant.failure.busy",message:"The assistant is still working on an earlier message."})).with("unavailable",()=>e(i,{id:"sdk.assistant.failure.unavailable",message:"The assistant is unavailable right now."})).exhaustive()}),D.canRetry&&e(t,{size:"small",variant:"outlined",color:"inherit",onClick:s.reloadThread,children:e(i,{id:"sdk.assistant.failure.retry.label",message:"Try again"})})]})]})}),W&&e(E,{size:"small",onClick:H,endIcon:e(d,{name:"CaretDown"}),children:e(i,{id:"sdk.assistant.thread.newReply.label",message:"New reply"})})]})};
@@ -0,0 +1,8 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { AlertKind } from './remark-alerts.js';
3
+ export interface AssistantAlertProps {
4
+ readonly kind: AlertKind;
5
+ readonly children: ReactNode;
6
+ }
7
+ /** A GitHub alert in a reply: its content as Markdown, marked by the colour and icon of its kind. */
8
+ export declare const AssistantAlert: import("react").MemoExoticComponent<({ kind, children }: AssistantAlertProps) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1 @@
1
+ import{jsx as r,jsxs as i}from"react/jsx-runtime";import{alpha as o,styled as t}from"@mui/material";import{memo as n}from"react";import{PhxIcon as a}from"#package/ui-sdk";import{AssistantPanelName as e}from"../theme.js";let l={note:{color:"info",icon:"Info"},tip:{color:"success",icon:"Lightbulb"},important:{color:"primary",icon:"WarningCircle"},warning:{color:"warning",icon:"Warning"},caution:{color:"error",icon:"XCircle"}},c=t("div",{name:e,slot:"alert"})(({theme:{palette:r,shape:i,spacing:t,typography:n}})=>({borderInlineStart:"3px solid",borderRadius:i.borderRadius,display:"grid",gap:t(1),gridTemplateColumns:"min-content minmax(0, 1fr)",marginBlock:t(1),padding:t(1,1.5),...Object.fromEntries(Object.entries(l).map(([i,{color:t}])=>[`&[data-alert="${i}"]`,{background:o(r[t].main,.08),borderInlineStartColor:r[t].main,"& > :first-child":{color:r[t].main}}])),"& > :last-child > :first-child":{marginBlockStart:0},"& > :last-child > :last-child":{marginBlockEnd:0},"& > :first-child":{blockSize:`calc(${n.body2.lineHeight} * 1em)`,display:"grid",placeItems:"center"}}));export const AssistantAlert=n(({kind:o,children:t})=>i(c,{role:"note","data-alert":o,children:[r("span",{children:r(a,{name:l[o].icon})}),r("div",{children:t})]}));
@@ -0,0 +1,2 @@
1
+ export { AssistantAlert } from './AssistantAlert.js';
2
+ export { isAlertKind, remarkAlerts } from './remark-alerts.js';
@@ -0,0 +1 @@
1
+ export{AssistantAlert}from"./AssistantAlert.js";export{isAlertKind,remarkAlerts}from"./remark-alerts.js";
@@ -0,0 +1,10 @@
1
+ import type { Root } from 'mdast';
2
+ /** The kinds of GitHub alerts a reply can write, each with its own colour and icon. */
3
+ export type AlertKind = 'note' | 'tip' | 'important' | 'warning' | 'caution';
4
+ export declare const isAlertKind: (value: unknown) => value is AlertKind;
5
+ /**
6
+ * Remark plugin for GitHub alerts: a blockquote whose first line is a marker such as `[!WARNING]`
7
+ * loses the marker and carries its kind as the `dataAlert` property (`data-alert` in the page), for the `blockquote` override to render as a
8
+ * callout. A blockquote with an unknown marker stays as it is.
9
+ */
10
+ export declare const remarkAlerts: () => (tree: Root) => void;
@@ -0,0 +1 @@
1
+ let e=["note","tip","important","warning","caution"],t=/^\[!([a-z]+)\][ \t]*(?:\n|$)/i;export const isAlertKind=t=>"string"==typeof t&&e.some(e=>e===t);let r=e=>{let[r]=e.children;if(r?.type!=="paragraph")return;let[n,l]=r.children;if(n?.type!=="text")return;let i=t.exec(n.value),a=i?.[1]?.toLowerCase();if(null==i||!isAlertKind(a))return;let o=n.value.slice(i[0].length),c=!i[0].endsWith("\n")&&l?.type==="break";if(i[0].endsWith("\n")||null==l||c)return""===o?r.children.splice(0,c?2:1):n.value=o,0===r.children.length&&e.children.shift(),a},n=e=>{for(let t of e){if("blockquote"===t.type){let e=r(t);if(null!=e){t.data={...t.data,hProperties:{...t.data?.hProperties,dataAlert:e}};continue}}"children"in t&&n(t.children)}};export const remarkAlerts=()=>e=>{n(e.children)};
@@ -0,0 +1,11 @@
1
+ interface MessageImagesProps {
2
+ /** The images the user attached to the message, by the ids it references them by. */
3
+ readonly imageIds: readonly string[];
4
+ }
5
+ /**
6
+ * The images a user attached to a message, as thumbnails above its text. They are read from the
7
+ * server as soon as the bubble shows, through the same per-configuration cache as the screenshots;
8
+ * a click shows one larger in a popover.
9
+ */
10
+ export declare const MessageImages: ({ imageIds }: MessageImagesProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{ButtonBase as i,Popover as o,styled as a}from"@mui/material";import{useCallback as t,useMemo as s,useState as n}from"react";import{useLocalizable as m}from"#package/react-sdk";import{useScreenshotSrc as l}from"../screenshots/index.js";import{AssistantPanelName as d}from"../theme.js";let c={id:"sdk.assistant.message.image.open",message:"Show the attached image larger"},p=a("div",{name:d,slot:"messageImages"})(({theme:{spacing:e}})=>({display:"flex",flexWrap:"wrap",gap:e(.75),justifyContent:"flex-end"})),g=a(i,{name:d,slot:"messageImage"})(({theme:{palette:e,shape:r}})=>({background:e.action.hover,blockSize:64,borderRadius:r.borderRadius,inlineSize:64,overflow:"hidden"})),h=a("img")({blockSize:"100%",display:"block",inlineSize:"100%",objectFit:"cover"}),b=a("img")(({theme:{shape:e}})=>({borderRadius:e.borderRadius,display:"block",maxBlockSize:"70vh",maxInlineSize:"min(80vw, 640px)"})),v=({imageId:r,onOpen:i})=>{let o=l(s(()=>({kind:"stored",imageId:r}),[r]));return e(g,{"aria-label":m(c),disabled:void 0===o,onClick:e=>void 0!==o&&i(e,o),children:void 0!==o&&e(h,{src:o,alt:""})})};export const MessageImages=({imageIds:i})=>{let[a,s]=n(),m=t((e,r)=>{s({anchor:e.currentTarget,src:r})},[]),l=t(()=>s(void 0),[]);return r(p,{children:[i.map(r=>e(v,{imageId:r,onOpen:m},r)),e(o,{open:void 0!==a,anchorEl:a?.anchor,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},slotProps:{paper:{sx:{padding:1}}},children:a&&e(b,{src:a.src,alt:""})})]})};
@@ -0,0 +1,2 @@
1
+ export { MessageImages } from './MessageImages.js';
2
+ export { ASSISTANT_IMAGE_MAX_SIDE, fitWithin, prepareImage } from './prepare-image.js';
@@ -0,0 +1 @@
1
+ export{MessageImages}from"./MessageImages.js";export{ASSISTANT_IMAGE_MAX_SIDE,fitWithin,prepareImage}from"./prepare-image.js";
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The longest side, in pixels, of an image the user attaches: the provider fits every image within
3
+ * 2048 × 2048 before the model reads it, so more would only cost upload time and storage.
4
+ */
5
+ export declare const ASSISTANT_IMAGE_MAX_SIDE = 2048;
6
+ interface Size {
7
+ readonly width: number;
8
+ readonly height: number;
9
+ }
10
+ /** The size that fits within `max` × `max`, keeping the aspect ratio and never enlarging. */
11
+ export declare const fitWithin: ({ width, height }: Size, max: number) => Size;
12
+ /**
13
+ * Turns an image file the user attaches into what is uploaded: decoded, fitted within
14
+ * {@link ASSISTANT_IMAGE_MAX_SIDE} on each side and re-encoded as JPEG. Re-encoding drops the
15
+ * file's metadata, its location included, and fills a transparent background white. Rejects for a
16
+ * file the browser cannot decode.
17
+ */
18
+ export declare const prepareImage: (file: Blob) => Promise<Blob>;
19
+ export {};
@@ -0,0 +1 @@
1
+ export const ASSISTANT_IMAGE_MAX_SIDE=2048;export const fitWithin=({width:e,height:t},a)=>{let r=Math.min(1,a/e,a/t);return{width:Math.max(1,Math.round(e*r)),height:Math.max(1,Math.round(t*r))}};let e=async e=>{let t=URL.createObjectURL(e),a=new Image;a.src=t;try{return await a.decode(),a}finally{URL.revokeObjectURL(t)}};export const prepareImage=async t=>{let a=await e(t),{width:r,height:n}=fitWithin({width:a.naturalWidth,height:a.naturalHeight},2048),o=document.createElement("canvas");o.width=r,o.height=n;let h=o.getContext("2d");if(!h)throw Error("The browser gave no 2D canvas to prepare the attached image on.");return h.fillStyle="#fff",h.fillRect(0,0,r,n),h.drawImage(a,0,0,r,n),new Promise((e,t)=>{o.toBlob(a=>a?e(a):t(Error("The browser could not encode the attached image as JPEG.")),"image/jpeg",.85)})};
@@ -8,6 +8,6 @@ export interface AssistantEntityLinkProps {
8
8
  /**
9
9
  * An entity the assistant named in a reply, shown as its label. It follows the configurator live:
10
10
  * a click selects the entity when the scene can select it, the link shows when the entity is
11
- * selected or hovered in the scene, and it is struck out once the entity is gone.
11
+ * selected or hovered in the scene, and it is muted once the entity is gone.
12
12
  */
13
13
  export declare const AssistantEntityLink: import("react").MemoExoticComponent<({ id, children }: AssistantEntityLinkProps) => import("react/jsx-runtime").JSX.Element>;
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{alpha as t,styled as i}from"@mui/material";import{memo as n,useCallback as r,useEffect as o,useRef as a}from"react";import{sceneEntitySelectHotspotComponent as l,selectableComponent as c}from"#package/domain";import{useDomain as d,useFirstRenderedComponent as s,useHoveredDomainEntityId as m,useRenderedSelector as u,useSelectEntity as p,useSelectedDomainEntityId as k,useStoreSelector as y}from"#package/react-sdk";import{FrontendAnalyticsFactory as h}from"../../../common/index.js";import{AssistantPanelName as b}from"../theme.js";import{useEntityLinkSelection as g}from"./entity-link-selection.js";import{resolveEntityLinkState as f}from"./entity-link-state.js";let v=({theme:{palette:e,shape:i,spacing:n}})=>({background:e.action.hover,border:"none",borderRadius:i.borderRadius/2,boxDecorationBreak:"clone",color:"inherit",font:"inherit",margin:0,paddingBlock:0,paddingInline:n(.5),textAlign:"inherit",WebkitBoxDecorationBreak:"clone",'&[data-entity-link="interactive"]':{background:t(e.primary.main,e.action.hoverOpacity),color:e.primary.main,cursor:"pointer",'&:hover, &:focus-visible, &[data-hovered="true"]':{background:t(e.primary.main,e.action.focusOpacity)},"&:focus-visible":{outline:`2px solid ${e.primary.main}`,outlineOffset:1}},'&[data-entity-link="missing"]':{background:"none",color:e.text.disabled,paddingInline:0,textDecoration:"line-through"},'&[data-selected="true"]':{boxShadow:`inset 0 0 0 1px ${e.primary.main}`}}),x=i("span",{name:b,slot:"entityLink"})(v),S=i("button",{name:b,slot:"entityLink"})(v),j=({kind:t,isSelected:i,children:n})=>e(x,{"data-entity-link":t,"data-selected":i,children:n}),T=({id:t,isSelected:i,children:n})=>{let{navigationSystem:u}=d(),k=s({entityIds:[t],componentTypes:[c]}),y=s({entityIds:[t],componentTypes:[l]}),{kind:b,canHover:v}=f({isSelectable:null!=k,isHoverDisabled:k?.state.hoverable===!1,hasSelectHotspot:null!=y}),x=m()===t,T=p(h.AssistantEntityLinkClicked),B=g(),E=r(()=>{B?.remember(t),T(t)},[t,B,T]),L=a(!1),D=r(()=>{v&&(L.current=!0,u.debouncedToggleHover(t))},[v,t,u]),H=r(()=>{L.current&&(L.current=!1,u.debouncedToggleHover(null))},[u]),I=r(e=>{"touch"!==e.pointerType&&D()},[D]),A=r(e=>{e.currentTarget.matches(":focus-visible")&&D()},[D]);return(o(()=>H,[v,H,t]),"interactive"!==b)?e(j,{kind:b,isSelected:i,children:n}):e(S,{type:"button","data-entity-link":b,"data-selected":i,"data-hovered":v&&x,"aria-current":i?"true":void 0,onClick:E,onPointerEnter:I,onPointerLeave:H,onFocus:A,onBlur:H,children:n})};export const AssistantEntityLink=n(({id:t,children:i})=>{let{domain:n}=d(),r=y(e=>null!=n.getEntity(t,e.state),[n,t]),o=u(e=>null!=n.getEntity(t,e.state),[n,t]),a=k()===t;return r?o?e(T,{id:t,isSelected:a,children:i}):e(j,{kind:"plain",isSelected:a,children:i}):e(j,{kind:"missing",isSelected:!1,children:i})});
1
+ import{jsx as e}from"react/jsx-runtime";import{styled as t}from"@mui/material";import{memo as n,useCallback as i,useEffect as r,useRef as o}from"react";import{sceneEntitySelectHotspotComponent as a,selectableComponent as l}from"#package/domain";import{FrontendAnalyticsFactory as s,useDomain as c,useFirstRenderedComponent as d,useHoveredDomainEntityId as m,useRenderedSelector as u,useSelectEntity as p,useSelectedDomainEntityId as k,useStoreSelector as y}from"#package/react-sdk";import{assistantReferenceStyles as f}from"../reference-link/index.js";import{AssistantPanelName as g}from"../theme.js";import{useEntityLinkSelection as h}from"./entity-link-selection.js";import{resolveEntityLinkState as v}from"./entity-link-state.js";let b=t("span",{name:g,slot:"entityLink"})(e=>({...f(e),'&[data-entity-link="plain"], &[data-entity-link="missing"]':{cursor:"auto","&:hover":{background:"none"}},'&[data-selected="true"]':{textDecorationStyle:"solid"}})),S={interactive:void 0,plain:"plain",missing:"muted"},j=({kind:t,isSelected:n,children:i})=>e(b,{"data-entity-link":t,"data-reference":S[t],"data-selected":n,children:i}),x=({id:t,isSelected:n,children:u})=>{let{navigationSystem:k}=c(),y=d({entityIds:[t],componentTypes:[l]}),f=d({entityIds:[t],componentTypes:[a]}),{kind:g,canHover:S}=v({isSelectable:null!=y,isHoverDisabled:y?.state.hoverable===!1,hasSelectHotspot:null!=f}),x=m()===t,E=p(s.AssistantEntityLinkClicked),T=h(),D=i(()=>{T?.remember(t),E(t)},[t,T,E]),H=o(!1),L=i(()=>{S&&(H.current=!0,k.debouncedToggleHover(t))},[S,t,k]),I=i(()=>{H.current&&(H.current=!1,k.debouncedToggleHover(null))},[k]),A=i(e=>{"touch"!==e.pointerType&&L()},[L]),C=i(e=>{e.currentTarget.matches(":focus-visible")&&L()},[L]),P=i(e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),D())},[D]);return(r(()=>I,[S,I,t]),"interactive"!==g)?e(j,{kind:g,isSelected:n,children:u}):e(b,{role:"button",tabIndex:0,"data-entity-link":g,"data-selected":n,"data-hovered":S&&x,"aria-current":n?"true":void 0,onClick:D,onKeyDown:P,onPointerEnter:A,onPointerLeave:I,onFocus:C,onBlur:I,children:u})};export const AssistantEntityLink=n(({id:t,children:n})=>{let{domain:i}=c(),r=y(e=>null!=i.getEntity(t,e.state),[i,t]),o=u(e=>null!=i.getEntity(t,e.state),[i,t]),a=k()===t;return r?o?e(x,{id:t,isSelected:a,children:n}):e(j,{kind:"plain",isSelected:a,children:n}):e(j,{kind:"missing",isSelected:!1,children:n})});
@@ -10,7 +10,7 @@ export interface EntityLinkFacts {
10
10
  /**
11
11
  * How an entity link shows and behaves:
12
12
  *
13
- * - `missing`: the entity is gone, the link is struck out;
13
+ * - `missing`: the entity is gone, the link is muted;
14
14
  * - `plain`: the entity exists but nothing in the scene selects it, so the link is only a label;
15
15
  * - `interactive`: a click selects the entity, as a click on it or on its hotspot in the scene does.
16
16
  */
@@ -1,3 +1,2 @@
1
1
  export { AssistantEntityLink } from './AssistantEntityLink.js';
2
2
  export { EntityLinkSelectionProvider, useCreateEntityLinkSelection } from './entity-link-selection.js';
3
- export { isEntityLinkHref, parseEntityLinkTarget } from './entity-link-target.js';
@@ -1 +1 @@
1
- export{AssistantEntityLink}from"./AssistantEntityLink.js";export{EntityLinkSelectionProvider,useCreateEntityLinkSelection}from"./entity-link-selection.js";export{isEntityLinkHref,parseEntityLinkTarget}from"./entity-link-target.js";
1
+ export{AssistantEntityLink}from"./AssistantEntityLink.js";export{EntityLinkSelectionProvider,useCreateEntityLinkSelection}from"./entity-link-selection.js";
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Where a form stands in its reply: still being written, written while the reply goes on, or ready
3
+ * for the user once the reply has ended.
4
+ */
5
+ export type AssistantFormStatus = 'writing' | 'waiting' | 'ready';
6
+ export interface AssistantFormProps {
7
+ /** The markup inside the ```` ```form ```` fence. */
8
+ readonly source: string;
9
+ readonly status: AssistantFormStatus;
10
+ }
11
+ /**
12
+ * A form the assistant wrote to ask the user something. What the user picks or enters is sent as
13
+ * their next message; a form that asks one question sends on the first pick, any other has a submit
14
+ * button. A form that cannot be built offers to send the assistant its errors instead.
15
+ *
16
+ * The state lives here, so unfinished input is lost when the form unmounts: accepted, because a
17
+ * form is shown only in the last reply of the thread.
18
+ */
19
+ export declare const AssistantForm: import("react").MemoExoticComponent<({ source, status }: AssistantFormProps) => import("react/jsx-runtime").JSX.Element | null>;
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as i}from"react/jsx-runtime";import{Trans as r}from"@lingui/react";import{Button as o,styled as t}from"@mui/material";import{memo as n,useCallback as a,useEffect as s,useMemo as l,useState as d}from"react";import{match as m}from"ts-pattern";import{useConfigurator as c}from"../../../application-runtime/index.js";import{AssistantPanelName as p}from"../theme.js";import{composeAnswer as u}from"./compose-answer.js";import{describeBuildErrors as b}from"./describe-build-errors.js";import{parseFormBlock as f}from"./parse-form-block.js";import{useFormRegistry as g}from"./registry/index.js";let h=t("div",{name:p,slot:"form"})(({theme:{spacing:e}})=>({display:"flex",flexDirection:"column",gap:e(1.5),marginBlock:e(1)})),k=t(o,{name:p,slot:"formSubmit"})(({theme:{palette:e,spacing:i,typography:r}})=>({...r.body2,alignSelf:"end",background:e.primary.main,border:"none",borderRadius:8,color:e.primary.contrastText,fontWeight:r.fontWeightMedium,letterSpacing:"normal",minBlockSize:0,minInlineSize:0,paddingBlock:i(.5),paddingInline:i(2),textTransform:"none","&:hover":{background:e.primary.dark,border:"none"},"&.Mui-disabled":{background:e.action.disabledBackground,border:"none",color:e.action.disabled}})),w=t("div",{name:p,slot:"formNote"})(({theme:{palette:e,shape:i,spacing:r,typography:o}})=>({...o.caption,alignItems:"center",background:e.action.hover,borderRadius:i.borderRadius,color:e.text.secondary,display:"flex",flexWrap:"wrap",gap:r(1),justifyContent:"space-between",marginBlock:r(1),paddingBlock:r(1),paddingInline:r(1.5)})),x=({model:o,disabled:t,send:n})=>{let[a,s]=d(()=>new Map),[l,c]=d(()=>new Map),p=(i,r)=>{let{id:l,definition:d,label:b,attributes:f}=i;return m(d).with({role:"option"},({component:d})=>e(d,{attributes:f,label:b,disabled:t,selected:!0===a.get(l),onSelect:e=>{o.isQuick?n(u(o,new Map([[i.id,!0]]),new Map([[i.id,e]]))):(c(r=>new Map(r).set(i.id,e)),s(e=>{let o=new Map(e);if("choice"===r.definition.role){for(let e of r.children)o.delete(e.id);o.set(i.id,!0)}else o.set(i.id,!0!==e.get(i.id));return o}))}},l)).with({role:"input"},({component:r})=>e(r,{attributes:f,label:b,disabled:t,state:a.get(l),onChange:(e,r)=>{o.isQuick?n(u(o,new Map([[i.id,e]]),new Map([[i.id,r]]))):(s(r=>new Map(r).set(i.id,e)),c(e=>new Map(e).set(i.id,r)))}},l)).with({role:"group"},{role:"choice"},{role:"choices"},({component:r})=>e(r,{attributes:f,label:b,disabled:t,children:i.children.map(e=>p(e,i))},l)).exhaustive()};return i(h,{children:[o.root.children.map(e=>p(e,o.root)),!o.isQuick&&e(k,{variant:"contained",disabled:t,disableElevation:!0,onClick:()=>{t||o.isQuick||n(u(o,a,l))},children:e(r,{id:"sdk.assistant.form.submit.label",message:"Submit"})})]})};export const AssistantForm=n(({source:t,status:n})=>{let{assistantSystem:m}=c(),[p,u]=d(!1),h="writing"===n,k=g(),M=l(()=>h?void 0:f(t,k),[t,h,k]),y="ready"!==n||p,j=a(e=>{u(!0),m.send(e).finally(()=>u(!1))},[m]);return(s(()=>{M?.ok===!1&&console.warn("The assistant wrote a form that could not be built.",M.errors)},[M]),M)?M.ok?0===M.root.children.length?null:e(x,{model:M,disabled:y,send:j}):i(w,{role:"alert",children:[e("span",{children:e(r,{id:"sdk.assistant.form.failure",message:"The assistant couldn't build this form."})}),e(o,{size:"small",variant:"outlined",color:"inherit",disabled:y,onClick:()=>j(b(M.errors)),children:e(r,{id:"sdk.assistant.form.fix.label",message:"Fix it"})})]}):e(w,{children:e(r,{id:"sdk.assistant.form.writing",message:"Preparing a form…"})})});
@@ -0,0 +1,11 @@
1
+ import type { BuiltFormModel } from './form-model.js';
2
+ import type { FormAnswers, FormState } from './form-state.js';
3
+ /** Stands for anything left unanswered, so every question keeps its line. */
4
+ export declare const FORM_PLACEHOLDER = "\u2014";
5
+ /**
6
+ * The user's answer to a form, sent as their message: one line per labelled container or input as
7
+ * `Label: value`, a bare line for an unlabelled one, two spaces of indentation per labelled
8
+ * container, and the placeholder for anything unanswered. Unlabelled groups are flattened into
9
+ * their parent, and a picked option, as an input, answers with what it reported.
10
+ */
11
+ export declare const composeAnswer: (model: BuiltFormModel, state: FormState, answers: FormAnswers) => string;
@@ -0,0 +1 @@
1
+ import{match as t}from"ts-pattern";export const FORM_PLACEHOLDER="—";let e=(t,e)=>`${" ".repeat(t)}${e}`,n=(t,e)=>null==t?e:`${t}: ${e}`,r=({children:t},{state:e,answers:n})=>t.flatMap(({id:t})=>{let r=n.get(t);return!0===e.get(t)&&null!=r&&""!==r?[r]:[]}),l=(i,o,p)=>{let{label:a}=i;return t(i.definition.role).with("group",()=>{if(null==a)return i.children.flatMap(t=>l(t,o,p));let t=i.children.flatMap(t=>l(t,o+1,p));return t.length>0?[e(o,`${a}:`),...t]:[e(o,`${a}: —`)]}).with("choice",()=>[e(o,n(a,r(i,p)[0]??"—"))]).with("choices",()=>{let t=r(i,p);return 0===t.length?[e(o,n(a,"—"))]:null==a?t.map(t=>e(o,t)):[e(o,`${a}:`),...t.map(t=>e(o+1,t))]}).with("input",()=>[e(o,n(a,p.answers.get(i.id)??"—"))]).with("option",()=>[]).exhaustive()};export const composeAnswer=(t,e,n)=>l(t.root,0,{state:e,answers:n}).join("\n");
@@ -0,0 +1,6 @@
1
+ import type { FormBuildError } from './form-model.js';
2
+ /**
3
+ * The message Fix it sends for a form that could not be built: every error, with the element named
4
+ * by its tag and its label or its position, then the request to write the form again.
5
+ */
6
+ export declare const describeBuildErrors: (errors: readonly FormBuildError[]) => string;
@@ -0,0 +1 @@
1
+ export const describeBuildErrors=e=>["Your form could not be built:",...e.map(e=>`- ${(({element:e,label:l,position:n})=>null==l?`<${e}> (element ${n})`:`<${e} label="${l}">`)(e)}: ${e.message}.`),"Send it again."].join("\n");
@@ -0,0 +1,37 @@
1
+ import type { FormElementDefinition } from './registry/index.js';
2
+ /**
3
+ * An element of a parsed form. Options outside a `choice` or `choices` are already wrapped in an
4
+ * implicit container, and the top level of the block is an implicit group without a label.
5
+ */
6
+ export interface FormNode {
7
+ /** Unique within its block: the element's position in the markup, or what an implicit container wraps. */
8
+ readonly id: string;
9
+ readonly definition: FormElementDefinition;
10
+ readonly label?: string;
11
+ readonly attributes: Readonly<Record<string, unknown>>;
12
+ readonly children: readonly FormNode[];
13
+ }
14
+ /** Why an element made its block unbuildable, named by its tag and its label or its position in the block. */
15
+ export interface FormBuildError {
16
+ readonly element: string;
17
+ readonly label?: string;
18
+ /** The element's place in the block, counting elements in document order from 1. */
19
+ readonly position: number;
20
+ readonly message: string;
21
+ }
22
+ /**
23
+ * A form fence as the panel renders it, or every reason it cannot. A quick form asks one question,
24
+ * a choice or a quick input: the first pick or action sends it, and it has no submit button.
25
+ */
26
+ export type FormModel = {
27
+ readonly ok: true;
28
+ readonly root: FormNode;
29
+ readonly isQuick: boolean;
30
+ } | {
31
+ readonly ok: false;
32
+ readonly errors: readonly FormBuildError[];
33
+ };
34
+ /** A form that could be built. */
35
+ export type BuiltFormModel = Extract<FormModel, {
36
+ readonly ok: true;
37
+ }>;
@@ -0,0 +1 @@
1
+ export{};
@@ -0,0 +1,4 @@
1
+ /** What the user did in a form, by node id: `true` for a picked option, the input's own state for an input. */
2
+ export type FormState = ReadonlyMap<string, unknown>;
3
+ /** The answer text each option or input reported, by node id; one that never reported is missing. */
4
+ export type FormAnswers = ReadonlyMap<string, string | undefined>;
@@ -0,0 +1 @@
1
+ export{};
@@ -0,0 +1,4 @@
1
+ export { AssistantForm } from './AssistantForm.js';
2
+ export type { AssistantFormStatus } from './AssistantForm.js';
3
+ export type { AssistantFormElementRoleProps, AssistantFormElementType, CreateAssistantFormElement, } from './registry/index.js';
4
+ export { createAssistantFormElementFactory } from './registry/index.js';
@@ -0,0 +1 @@
1
+ export{AssistantForm}from"./AssistantForm.js";export{createAssistantFormElementFactory}from"./registry/index.js";