@salsita-ai/sdk 0.50.0-develop.f101f4c3c9 → 0.50.0-develop.f16492b14e

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 (872) hide show
  1. package/README.md +5 -1
  2. package/dist/application/index.d.ts +1 -0
  3. package/dist/application/index.js +1 -1
  4. package/dist/application/mount-application.d.ts +1 -1
  5. package/dist/application/mount-application.js +1 -1
  6. package/dist/application/mount-configurator.d.ts +19 -0
  7. package/dist/application/mount-configurator.js +1 -0
  8. package/dist/application/mounted-application-runtime.d.ts +4 -0
  9. package/dist/application/mounted-application-runtime.js +1 -0
  10. package/dist/application/register-web-component.d.ts +2 -0
  11. package/dist/application/register-web-component.js +1 -0
  12. package/dist/application-spec/core/enhanced-json-value.d.ts +2 -31
  13. package/dist/application-spec/core/enhanced-json-value.js +1 -1
  14. package/dist/application-spec/core/index.d.ts +1 -3
  15. package/dist/application-spec/core/index.js +1 -1
  16. package/dist/application-spec/core/json-schema.d.ts +2 -52
  17. package/dist/application-spec/core/markers/index.d.ts +1 -1
  18. package/dist/application-spec/core/markers/index.js +1 -1
  19. package/dist/application-spec/core/markers/msg-marker.d.ts +2 -28
  20. package/dist/application-spec/core/markers/msg-marker.js +1 -1
  21. package/dist/application-spec/core/markers/raw-eval-write-marker.d.ts +1 -1
  22. package/dist/application-spec/core/markers/raw-eval-write-marker.js +1 -1
  23. package/dist/application-spec/core/markers/raw-read-write-marker.js +1 -1
  24. package/dist/application-spec/errors/diagnostic-codes.d.ts +17 -1
  25. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  26. package/dist/application-spec/errors/diagnostic-messages.d.ts +25 -2
  27. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  28. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  29. package/dist/application-spec/generate-application/code/project-scaffolding.js +2 -2
  30. package/dist/application-spec/generate-application/code/templates/application-types.js +6 -6
  31. package/dist/application-spec/generate-application/code/templates/common/doc-comment.d.ts +2 -0
  32. package/dist/application-spec/generate-application/code/templates/common/doc-comment.js +1 -0
  33. package/dist/application-spec/generate-application/code/templates/configurator-globals.d.ts +2 -1
  34. package/dist/application-spec/generate-application/code/templates/configurator-globals.js +19 -6
  35. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +7 -7
  36. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +12 -0
  37. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -0
  38. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +24 -22
  39. package/dist/application-spec/generate-application/code/templates/global-definition/index.d.ts +1 -0
  40. package/dist/application-spec/generate-application/code/templates/global-definition/index.js +1 -1
  41. package/dist/application-spec/generate-application/code/templates/index.d.ts +2 -6
  42. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  43. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.d.ts +10 -0
  44. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +7 -0
  45. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.js +1 -1
  46. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +14 -7
  47. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +2 -2
  48. package/dist/application-spec/generate-application/implementations/phx-application-types.d.ts +25 -0
  49. package/dist/application-spec/generate-application/implementations/phx-application-types.js +1 -0
  50. package/dist/application-spec/generate-application/implementations/phx-domain.d.ts +36 -0
  51. package/dist/application-spec/generate-application/implementations/phx-domain.js +1 -0
  52. package/dist/application-spec/generate-application/implementations/phx-model.d.ts +24 -0
  53. package/dist/application-spec/generate-application/implementations/phx-model.js +1 -0
  54. package/dist/application-spec/generate-application/implementations/phx.d.ts +22 -0
  55. package/dist/application-spec/generate-application/implementations/phx.js +1 -0
  56. package/dist/application-spec/generate-application/index.d.ts +2 -0
  57. package/dist/application-spec/generate-application/index.js +1 -1
  58. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.d.ts +3 -4
  59. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.d.ts +7 -4
  60. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.js +1 -1
  61. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.d.ts +16 -0
  62. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.js +1 -0
  63. package/dist/application-spec/generate-application/runtime/application-runtime.d.ts +17 -4
  64. package/dist/application-spec/generate-application/runtime/application-runtime.js +1 -1
  65. package/dist/application-spec/generate-application/runtime/application-spec-slice.d.ts +71 -0
  66. package/dist/application-spec/generate-application/runtime/application-spec-slice.js +1 -0
  67. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.d.ts +3 -4
  68. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.d.ts +7 -5
  69. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.js +1 -1
  70. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.d.ts +16 -0
  71. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.js +1 -0
  72. package/dist/application-spec/generate-application/runtime/create-application.d.ts +57 -0
  73. package/dist/application-spec/generate-application/runtime/create-application.js +1 -0
  74. package/dist/application-spec/generate-application/runtime/factory-data/factory-data-runtime.d.ts +1 -2
  75. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.d.ts +1 -1
  76. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.js +1 -1
  77. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.d.ts +1 -2
  78. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.js +1 -1
  79. package/dist/application-spec/generate-application/runtime/generate-runtime-instance.d.ts +1 -1
  80. package/dist/application-spec/generate-application/runtime/generate-runtime-instance.js +1 -1
  81. package/dist/application-spec/generate-application/runtime/index.d.ts +8 -0
  82. package/dist/application-spec/generate-application/runtime/index.js +1 -0
  83. package/dist/application-spec/generate-application/runtime/sections/actions-runtime.d.ts +1 -2
  84. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.d.ts +1 -1
  85. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.js +1 -1
  86. package/dist/application-spec/generate-application/runtime/sections/build-user-bound-optic.d.ts +1 -1
  87. package/dist/application-spec/generate-application/runtime/sections/component-optic.d.ts +1 -2
  88. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.d.ts +9 -4
  89. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +1 -1
  90. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.d.ts +1 -2
  91. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.js +1 -1
  92. package/dist/application-spec/generate-application/runtime/sections/preset-runtime.d.ts +2 -3
  93. package/dist/application-spec/generate-application/runtime/sections/reflection-constants-runtime.d.ts +1 -1
  94. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.d.ts +1 -1
  95. package/dist/application-spec/generate-application/runtime/spec-runtime.d.ts +21 -0
  96. package/dist/application-spec/generate-application/runtime/spec-runtime.js +1 -0
  97. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.d.ts +3 -2
  98. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.d.ts +124 -24
  99. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.js +1 -1
  100. package/dist/application-spec/generate-application/runtime-spec/spec-code-id.d.ts +1 -1
  101. package/dist/application-spec/parse-application-files/merge/merged-assistant.d.ts +13 -4
  102. package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
  103. package/dist/application-spec/parse-application-files/merge/merged-infra.d.ts +4 -11
  104. package/dist/application-spec/parse-application-files/merge/merged-transformers.d.ts +2 -4
  105. package/dist/application-spec/parse-application-files/parse-application-files.js +1 -1
  106. package/dist/application-spec/parse-application-files/raw-spec/raw-acl.d.ts +2 -2
  107. package/dist/application-spec/parse-application-files/raw-spec/raw-acl.js +1 -1
  108. package/dist/application-spec/parse-application-files/raw-spec/raw-admin-pages.d.ts +3 -24
  109. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +58 -23
  110. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  111. package/dist/application-spec/parse-application-files/raw-spec/raw-expressions.d.ts +1 -1
  112. package/dist/application-spec/parse-application-files/raw-spec/raw-expressions.js +1 -1
  113. package/dist/application-spec/parse-application-files/raw-spec/raw-resources.d.ts +19 -64
  114. package/dist/application-spec/parse-application-files/spec/application/admin-spec/admin-pages.d.ts +3 -20
  115. package/dist/application-spec/parse-application-files/spec/application/admin-spec/states.d.ts +3 -5
  116. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/states.d.ts +3 -8
  117. package/dist/application-spec/parse-application-files/spec/components/bindings/read-binding.d.ts +3 -13
  118. package/dist/application-spec/parse-application-files/spec/components/bindings/write-binding.d.ts +4 -32
  119. package/dist/application-spec/parse-application-files/spec/components/component-filter.d.ts +4 -10
  120. package/dist/application-spec/parse-application-files/spec/components/components.d.ts +3 -4
  121. package/dist/application-spec/parse-application-files/spec/components/index.d.ts +1 -2
  122. package/dist/application-spec/parse-application-files/spec/components/index.js +1 -1
  123. package/dist/application-spec/parse-application-files/spec/components/sdk-component-entry.d.ts +1 -1
  124. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.d.ts +2 -3
  125. package/dist/application-spec/parse-application-files/spec/components/user-component-entry.js +1 -1
  126. package/dist/application-spec/parse-application-files/spec/components/user-components.d.ts +2 -3
  127. package/dist/application-spec/parse-application-files/spec/expressions/expression-read-types.d.ts +2 -2
  128. package/dist/application-spec/parse-application-files/spec/expressions/expressions.d.ts +7 -29
  129. package/dist/application-spec/parse-application-files/spec/expressions/index.d.ts +0 -1
  130. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.d.ts +4 -71
  131. package/dist/application-spec/parse-application-files/spec/expressions/memo-eval-plan.js +1 -1
  132. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.d.ts +2 -2
  133. package/dist/application-spec/parse-application-files/spec/invariants/invariant.d.ts +5 -21
  134. package/dist/application-spec/parse-application-files/spec/invariants/invariants.d.ts +4 -14
  135. package/dist/application-spec/parse-application-files/spec/model/aliases.d.ts +3 -9
  136. package/dist/application-spec/parse-application-files/spec/model/common-types.d.ts +6 -14
  137. package/dist/application-spec/parse-application-files/spec/model/defaults.d.ts +6 -31
  138. package/dist/application-spec/parse-application-files/spec/model/entity-types.d.ts +3 -8
  139. package/dist/application-spec/parse-application-files/spec/model/model-version-key.d.ts +3 -3
  140. package/dist/application-spec/parse-application-files/spec/model/names/action-name.d.ts +3 -7
  141. package/dist/application-spec/parse-application-files/spec/model/names/alias-name.d.ts +3 -7
  142. package/dist/application-spec/parse-application-files/spec/model/names/entity-or-alias-name.d.ts +3 -8
  143. package/dist/application-spec/parse-application-files/spec/model/names/entity-type-name.d.ts +3 -8
  144. package/dist/application-spec/parse-application-files/spec/model/names/expression-name.d.ts +3 -6
  145. package/dist/application-spec/parse-application-files/spec/model/names/instance-name.d.ts +3 -7
  146. package/dist/application-spec/parse-application-files/spec/model/names/invariant-name.d.ts +3 -3
  147. package/dist/application-spec/parse-application-files/spec/model/names/shape-property-name.d.ts +3 -11
  148. package/dist/application-spec/parse-application-files/spec/model/names/violation-type-name.d.ts +3 -3
  149. package/dist/application-spec/parse-application-files/spec/model/presets.d.ts +6 -29
  150. package/dist/application-spec/parse-application-files/spec/sections/actions.d.ts +6 -23
  151. package/dist/application-spec/parse-application-files/spec/sections/app-metadata.d.ts +3 -18
  152. package/dist/application-spec/parse-application-files/spec/sections/application-version.d.ts +3 -7
  153. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +9 -0
  154. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -0
  155. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +4 -1
  156. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  157. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant.js +1 -1
  158. package/dist/application-spec/parse-application-files/spec/sections/data-spec/chunks.d.ts +6 -23
  159. package/dist/application-spec/parse-application-files/spec/sections/data-spec/custom-data-spec.d.ts +1 -16
  160. package/dist/application-spec/parse-application-files/spec/sections/data-spec/data-entry-key.d.ts +3 -9
  161. package/dist/application-spec/parse-application-files/spec/sections/data-spec/data-spec.d.ts +1 -10
  162. package/dist/application-spec/parse-application-files/spec/sections/data-spec/swatch-data-spec.d.ts +1 -14
  163. package/dist/application-spec/parse-application-files/spec/sections/state-value.d.ts +3 -7
  164. package/dist/application-spec/parse-application-files/spec/sections/theme.d.ts +3 -10
  165. package/dist/application-spec/parse-application-files/spec/sections/transformers.d.ts +4 -11
  166. package/dist/application-spec/parse-application-files/spec/sections/ui.d.ts +3 -12
  167. package/dist/client/authorized-client.d.ts +3 -1
  168. package/dist/client/authorized-client.js +1 -1
  169. package/dist/client/contract.d.ts +17 -0
  170. package/dist/client/index.d.ts +1 -1
  171. package/dist/client/local-authorized-client.d.ts +3 -1
  172. package/dist/client/local-authorized-client.js +1 -1
  173. package/dist/client/memory-authorized-client.d.ts +4 -1
  174. package/dist/client/memory-authorized-client.js +1 -1
  175. package/dist/client/phoenix-api.d.ts +240 -1
  176. package/dist/configurator/ConfiguratorApp.js +1 -1
  177. package/dist/configurator/app-loader-content/index.d.ts +0 -1
  178. package/dist/configurator/app-loader-content/index.js +1 -1
  179. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  180. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +17 -3
  181. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  182. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +52 -9
  183. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  184. package/dist/configurator/application-runtime/extensions/systems/canvas-system.d.ts +8 -0
  185. package/dist/configurator/application-runtime/extensions/systems/canvas-system.js +1 -1
  186. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.d.ts +8 -0
  187. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.js +1 -0
  188. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +23 -1
  189. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  190. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +82 -55
  191. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  192. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +66 -4
  193. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  194. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.d.ts +40 -0
  195. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.js +1 -0
  196. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +14 -5
  197. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  198. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +1 -1
  199. package/dist/configurator/common/configurator-interface.d.ts +9 -6
  200. package/dist/configurator/common/configurator-interface.js +1 -1
  201. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.d.ts +5 -0
  202. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.js +1 -0
  203. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.d.ts +0 -6
  204. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.js +1 -1
  205. package/dist/configurator/configuration-not-found-page/index.d.ts +2 -2
  206. package/dist/configurator/configuration-not-found-page/index.js +1 -1
  207. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.d.ts +3 -3
  208. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.js +1 -1
  209. package/dist/configurator/configurator-context/PreviewContextProvider.js +1 -1
  210. package/dist/configurator/configurator-context/configurator-hooks/index.d.ts +0 -1
  211. package/dist/configurator/configurator-context/configurator-hooks/index.js +1 -1
  212. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.js +1 -1
  213. package/dist/configurator/configurator-context/index.d.ts +0 -5
  214. package/dist/configurator/configurator-context/index.js +1 -1
  215. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.d.ts +3 -3
  216. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.js +1 -1
  217. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.d.ts +0 -5
  218. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.js +1 -1
  219. package/dist/configurator/configurator-error-page/index.d.ts +1 -2
  220. package/dist/configurator/configurator-error-page/index.js +1 -1
  221. package/dist/configurator/index.d.ts +9 -2
  222. package/dist/configurator/index.js +1 -1
  223. package/dist/configurator/pages/ConfiguratorNotFoundPage.js +1 -1
  224. package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
  225. package/dist/configurator/pages/NewConfiguratorPage.js +1 -1
  226. package/dist/configurator/pages/default-configurator-elements.js +1 -1
  227. package/dist/configurator/pages/error-boundaries/DevContextFallback.js +1 -1
  228. package/dist/configurator/pages/error-boundaries/DevLoadingFallback.js +1 -1
  229. package/dist/configurator/pages/error-boundaries/LoadingErrorBoundary.js +1 -1
  230. package/dist/configurator/ui/assistant/AssistantChips.d.ts +3 -2
  231. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  232. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -1
  233. package/dist/configurator/ui/assistant/form/compose-answer.d.ts +1 -2
  234. package/dist/configurator/ui/assistant/form/compose-answer.js +1 -1
  235. package/dist/configurator/ui/assistant/form/form-model.d.ts +1 -3
  236. package/dist/configurator/ui/assistant/form/form-state.d.ts +1 -1
  237. package/dist/configurator/ui/assistant/form/index.d.ts +2 -0
  238. package/dist/configurator/ui/assistant/form/index.js +1 -1
  239. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +1 -1
  240. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -1
  241. package/dist/configurator/ui/assistant/form/read-form-attributes.d.ts +1 -1
  242. package/dist/configurator/ui/assistant/form/read-form-attributes.js +1 -1
  243. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +3 -0
  244. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -0
  245. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +31 -0
  246. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.js +1 -0
  247. package/dist/configurator/ui/assistant/form/{form-element-definition.d.ts → registry/form-element-definition.d.ts} +3 -1
  248. package/dist/configurator/ui/assistant/form/registry/form-element-definition.js +1 -0
  249. package/dist/configurator/ui/assistant/form/{form-registry.d.ts → registry/form-registry.d.ts} +1 -1
  250. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -0
  251. package/dist/configurator/ui/assistant/form/registry/index.d.ts +6 -0
  252. package/dist/configurator/ui/assistant/form/registry/index.js +1 -0
  253. package/dist/configurator/ui/assistant/form/registry/use-form-registry.d.ts +8 -0
  254. package/dist/configurator/ui/assistant/form/registry/use-form-registry.js +1 -0
  255. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +1 -1
  256. package/dist/configurator/ui/assistant/form-elements/FormCard.js +1 -1
  257. package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +1 -1
  258. package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -1
  259. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +1 -1
  260. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +1 -1
  261. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +5 -5
  262. package/dist/configurator/ui/assistant/index.d.ts +3 -0
  263. package/dist/configurator/ui/assistant/index.js +1 -1
  264. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +9 -0
  265. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -0
  266. package/dist/configurator/ui/assistant/screenshots/index.d.ts +2 -0
  267. package/dist/configurator/ui/assistant/screenshots/index.js +1 -0
  268. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +22 -0
  269. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -0
  270. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +8 -0
  271. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -0
  272. package/dist/configurator/ui/assistant/tool-chip.d.ts +19 -9
  273. package/dist/configurator/ui/assistant/tool-chip.js +1 -1
  274. package/dist/configurator/ui/configurator-layout/slots/canvas/GPUAccelerationDisabled.js +1 -1
  275. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  276. package/dist/configurator/ui/configurator-layout/slots/canvas/SharedCanvas.js +1 -1
  277. package/dist/configurator/ui/configurator-layout/slots/canvas/WebGLNotSupported.js +1 -1
  278. package/dist/configurator/ui/configurator-layout/slots/readonly-banner/CloneToEditDialog.js +1 -1
  279. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  280. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.d.ts +5 -0
  281. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.js +1 -0
  282. package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
  283. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  284. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -1
  285. package/dist/configurator/ui/index.d.ts +1 -0
  286. package/dist/configurator/ui/index.js +1 -1
  287. package/dist/configurator/ui/legacy/chat/MobileChat.js +1 -1
  288. package/dist/configurator/ui/legacy/layout/common/CommonTopNavigation.js +1 -1
  289. package/dist/configurator/ui/legacy/layout/common/ReactiveInterfaceLayout.js +1 -1
  290. package/dist/configurator/ui/legacy/layout/simple/SimpleSidebar.js +1 -1
  291. package/dist/configurator/ui/legacy/layout/simple/SimpleTopNavigation.js +1 -1
  292. package/dist/configurator/ui/legacy/layout/steps/StepsNavigation.js +1 -1
  293. package/dist/configurator/ui/legacy/layout/steps/StepsOwnerLayout.js +1 -1
  294. package/dist/configurator/ui/legacy/layout/steps/StepsSideBar.js +1 -1
  295. package/dist/configurator/ui/legacy/layout/tabs/TabsSidebar.js +1 -1
  296. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.d.ts +0 -7
  297. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.js +2 -2
  298. package/dist/configurator/ui/phoenix-layout-elements/header/common/back-button/use-go-back-action.js +1 -1
  299. package/dist/configurator/ui/phoenix-layout-elements/header/common/step-navigation/StepsNavigation.js +1 -1
  300. package/dist/configurator/ui/phoenix-layout-elements/index.d.ts +8 -1
  301. package/dist/configurator/ui/phoenix-layout-elements/index.js +1 -1
  302. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/basic/use-basic-sidebar-footer.js +1 -1
  303. package/dist/configurator/ui/phoenix-layout-elements/sidebar-footer/common/PreviousStepButton.js +1 -1
  304. package/dist/configurator/ui/preset-layout/CategoryPresetUi.js +1 -1
  305. package/dist/configurator/ui/preset-layout/PresetUi.d.ts +0 -2
  306. package/dist/configurator/ui/preset-layout/PresetUi.js +1 -1
  307. package/dist/configurator/ui/preset-layout/index.d.ts +6 -1
  308. package/dist/configurator/ui/preset-layout/index.js +1 -1
  309. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.js +1 -1
  310. package/dist/docs/3d-scene/cameras/custom.mdx +4 -2
  311. package/dist/docs/drag-and-drop/room-planner.mdx +1 -1
  312. package/dist/docs/index.json +95 -1
  313. package/dist/docs/integrations/webcomponent-api/basics.mdx +2 -0
  314. package/dist/docs/layouts/custom-layout.mdx +318 -158
  315. package/dist/docs/layouts/gallery/ardent-compressor.mdx +3516 -0
  316. package/dist/docs/layouts/gallery/corvid-drone.mdx +3428 -0
  317. package/dist/docs/layouts/gallery/fenwick-window.mdx +2803 -0
  318. package/dist/docs/layouts/gallery/ferrule-bar-station.mdx +6567 -0
  319. package/dist/docs/layouts/gallery/kestrel-kettle.mdx +1858 -0
  320. package/dist/docs/layouts/gallery/nightjar-guitar.mdx +3698 -0
  321. package/dist/docs/layouts/gallery/sunfold-solar.mdx +2683 -0
  322. package/dist/docs/layouts/gallery/tidepool-aquascape.mdx +5203 -0
  323. package/dist/docs/other-features/client-side-rendering/declarative.mdx +1 -1
  324. package/dist/docs/phoenix/configurator-interface.mdx +9 -7
  325. package/dist/docs/phoenix/domain-model.mdx +4 -1
  326. package/dist/docs/phoenix/layout-slots.mdx +21 -0
  327. package/dist/docs/phoenix/phoenix-cli.mdx +40 -7
  328. package/dist/docs/phoenix/project-structure.mdx +21 -17
  329. package/dist/docs/phoenix/sdk-builder-workflow.mdx +6 -4
  330. package/dist/docs/phoenix/sessions-and-access.mdx +2 -0
  331. package/dist/docs/phoenix/webhooks.mdx +5 -1
  332. package/dist/domain/application/application-config.d.ts +6 -24
  333. package/dist/domain/application/assistant/assistant-manifest.d.ts +29 -4
  334. package/dist/domain/application/assistant/assistant-manifest.js +1 -1
  335. package/dist/domain/application/assistant/assistant-resolved-manifest.d.ts +12 -9
  336. package/dist/domain/application/assistant/assistant-resolved-manifest.js +1 -1
  337. package/dist/domain/application/assistant/build-assistant-lenses.js +1 -1
  338. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  339. package/dist/domain/application/assistant/form/assistant-form-element-name.d.ts +11 -0
  340. package/dist/domain/application/assistant/form/assistant-form-element-name.js +8 -0
  341. package/dist/domain/application/assistant/form/assistant-form-elements.d.ts +39 -28
  342. package/dist/domain/application/assistant/form/assistant-form-elements.js +1 -1
  343. package/dist/domain/application/assistant/form/index.d.ts +1 -1
  344. package/dist/domain/application/assistant/form/index.js +1 -1
  345. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +1 -1
  346. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  347. package/dist/domain/application/assistant/index.d.ts +3 -3
  348. package/dist/domain/application/assistant/index.js +1 -1
  349. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -1
  350. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +4 -4
  351. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -1
  352. package/dist/domain/application/assistant-mutations.js +1 -1
  353. package/dist/domain/application/configurator-builder.d.ts +7 -1
  354. package/dist/domain/application/configurator-builder.js +1 -1
  355. package/dist/domain/application/index.d.ts +1 -1
  356. package/dist/domain/application/index.js +1 -1
  357. package/dist/domain/application/standard-properties.js +1 -1
  358. package/dist/domain/application/web-component-property.d.ts +3 -1
  359. package/dist/domain/application/web-component-property.js +1 -1
  360. package/dist/domain/available-system-components/available-system-components.d.ts +11 -0
  361. package/dist/domain/available-system-components/available-system-components.js +1 -0
  362. package/dist/domain/available-system-components/index.d.ts +1 -0
  363. package/dist/domain/available-system-components/index.js +1 -0
  364. package/dist/domain/{domain-builder.d.ts → domain-builder/domain-builder.d.ts} +11 -5
  365. package/dist/domain/domain-builder/domain-builder.js +1 -0
  366. package/dist/domain/domain-builder/index.d.ts +1 -0
  367. package/dist/domain/domain-builder/index.js +1 -0
  368. package/dist/domain/domain-context/store-system/store-system.d.ts +5 -0
  369. package/dist/domain/domain-context/store-system/store-system.js +1 -1
  370. package/dist/domain/domain-runtime/application.d.ts +39 -0
  371. package/dist/domain/domain-runtime/application.js +1 -0
  372. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +1 -0
  373. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  374. package/dist/domain/domain-runtime/domain-runtime.d.ts +44 -4
  375. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  376. package/dist/domain/domain-runtime/environment/initialize.d.ts +1 -1
  377. package/dist/domain/domain-runtime/environment/types.d.ts +1 -1
  378. package/dist/domain/domain-runtime/errors/implementation-error-collector.d.ts +2 -0
  379. package/dist/domain/domain-runtime/errors/implementation-error-collector.js +1 -1
  380. package/dist/domain/domain-runtime/index.d.ts +2 -1
  381. package/dist/domain/domain-runtime/index.js +1 -1
  382. package/dist/domain/domain-runtime/spec/index.d.ts +1 -1
  383. package/dist/domain/domain-runtime/spec/index.js +1 -1
  384. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  385. package/dist/domain/domain-runtime/spec/module-checks/element-registration.d.ts +15 -1
  386. package/dist/domain/domain-runtime/spec/module-checks/element-registration.js +1 -1
  387. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.d.ts +12 -0
  388. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.js +1 -0
  389. package/dist/domain/domain-runtime/spec/module-checks/index.d.ts +3 -1
  390. package/dist/domain/domain-runtime/spec/module-checks/index.js +1 -1
  391. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.d.ts +23 -0
  392. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.js +1 -0
  393. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.d.ts +3 -4
  394. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.js +1 -1
  395. package/dist/domain/domain-runtime/spec/selectors.d.ts +3 -1
  396. package/dist/domain/domain-runtime/spec/selectors.js +1 -1
  397. package/dist/domain/domain-runtime/web-component/actions.d.ts +3 -0
  398. package/dist/domain/domain-runtime/web-component/actions.js +1 -1
  399. package/dist/domain/domain-runtime/web-component/initialize.d.ts +1 -0
  400. package/dist/domain/domain-runtime/web-component/initialize.js +1 -1
  401. package/dist/domain/domain-runtime/web-component/selectors.d.ts +2 -0
  402. package/dist/domain/domain-runtime/web-component/selectors.js +1 -1
  403. package/dist/domain/domain-runtime/web-component/types.d.ts +6 -3
  404. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +24 -0
  405. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -0
  406. package/dist/domain/extensions/{client-side-image.d.ts → export-images/client-side-image.d.ts} +2 -2
  407. package/dist/domain/extensions/export-images/client-side-image.js +1 -0
  408. package/dist/domain/extensions/export-images/index.d.ts +3 -0
  409. package/dist/domain/extensions/export-images/index.js +1 -0
  410. package/dist/domain/extensions/{save-template-thumbnail.d.ts → export-images/save-template-thumbnail.d.ts} +2 -2
  411. package/dist/domain/extensions/export-images/save-template-thumbnail.js +1 -0
  412. package/dist/domain/extensions/index.d.ts +1 -2
  413. package/dist/domain/extensions/index.js +1 -1
  414. package/dist/domain/index.d.ts +3 -2
  415. package/dist/domain/index.js +1 -1
  416. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +9 -0
  417. package/dist/domain/spec/application/admin-pages-section.d.ts +29 -0
  418. package/dist/domain/spec/application/admin-pages.d.ts +26 -0
  419. package/dist/domain/spec/application/admin-states.d.ts +5 -0
  420. package/dist/domain/spec/application/configurator-states.d.ts +8 -0
  421. package/dist/domain/spec/application/index.d.ts +5 -0
  422. package/dist/domain/spec/application/index.js +1 -0
  423. package/dist/domain/spec/components/bindings/index.d.ts +2 -0
  424. package/dist/domain/spec/components/bindings/read-binding.d.ts +13 -0
  425. package/dist/domain/spec/components/bindings/write-binding.d.ts +32 -0
  426. package/dist/domain/spec/components/bindings/write-binding.js +1 -0
  427. package/dist/{application-spec/parse-application-files → domain}/spec/components/component-entry.d.ts +3 -3
  428. package/dist/domain/spec/components/component-entry.js +1 -0
  429. package/dist/{application-spec/core → domain/spec}/components/component-filter.d.ts +3 -2
  430. package/dist/domain/spec/components/component-filters.d.ts +10 -0
  431. package/dist/domain/spec/components/component-filters.js +1 -0
  432. package/dist/domain/spec/components/components.d.ts +4 -0
  433. package/dist/domain/spec/components/components.js +1 -0
  434. package/dist/domain/spec/components/index.d.ts +6 -0
  435. package/dist/domain/spec/enhanced-json/enhanced-json-value.d.ts +30 -0
  436. package/dist/domain/spec/enhanced-json/enhanced-json-value.js +1 -0
  437. package/dist/domain/spec/enhanced-json/index.d.ts +1 -0
  438. package/dist/domain/spec/enhanced-json/index.js +1 -0
  439. package/dist/{application-spec/parse-application-files → domain}/spec/expressions/expression.d.ts +9 -3
  440. package/dist/domain/spec/expressions/expression.js +1 -0
  441. package/dist/domain/spec/expressions/expressions.d.ts +27 -0
  442. package/dist/domain/spec/expressions/expressions.js +1 -0
  443. package/dist/domain/spec/expressions/index.d.ts +5 -0
  444. package/dist/domain/spec/expressions/memo-eval-plan.d.ts +70 -0
  445. package/dist/domain/spec/expressions/memo-eval-plan.js +1 -0
  446. package/dist/domain/spec/expressions/relation-expression-params.js +1 -0
  447. package/dist/domain/spec/index.d.ts +9 -0
  448. package/dist/domain/spec/index.js +1 -0
  449. package/dist/domain/spec/invariants/index.d.ts +2 -0
  450. package/dist/domain/spec/invariants/index.js +1 -0
  451. package/dist/domain/spec/invariants/invariant.d.ts +24 -0
  452. package/dist/domain/spec/invariants/invariant.js +1 -0
  453. package/dist/domain/spec/invariants/invariants.d.ts +14 -0
  454. package/dist/domain/spec/invariants/invariants.js +1 -0
  455. package/dist/domain/spec/json-schema.d.ts +52 -0
  456. package/dist/domain/spec/json-schema.js +1 -0
  457. package/dist/domain/spec/markers/index.d.ts +3 -0
  458. package/dist/domain/spec/markers/index.js +1 -0
  459. package/dist/domain/spec/markers/msg-marker.d.ts +28 -0
  460. package/dist/domain/spec/markers/msg-marker.js +1 -0
  461. package/dist/domain/spec/model/aliases.d.ts +9 -0
  462. package/dist/domain/spec/model/aliases.js +1 -0
  463. package/dist/domain/spec/model/common-types.d.ts +15 -0
  464. package/dist/domain/spec/model/common-types.js +1 -0
  465. package/dist/domain/spec/model/defaults.d.ts +33 -0
  466. package/dist/domain/spec/model/defaults.js +1 -0
  467. package/dist/domain/spec/model/entity-types.d.ts +8 -0
  468. package/dist/domain/spec/model/entity-types.js +1 -0
  469. package/dist/domain/spec/model/index.d.ts +7 -0
  470. package/dist/domain/spec/model/index.js +1 -0
  471. package/dist/domain/spec/model/model-version-key.d.ts +3 -0
  472. package/dist/domain/spec/model/model-version-key.js +1 -0
  473. package/dist/domain/spec/model/names/action-name.d.ts +7 -0
  474. package/dist/domain/spec/model/names/action-name.js +1 -0
  475. package/dist/domain/spec/model/names/alias-name.d.ts +7 -0
  476. package/dist/domain/spec/model/names/alias-name.js +1 -0
  477. package/dist/domain/spec/model/names/entity-or-alias-name.d.ts +8 -0
  478. package/dist/domain/spec/model/names/entity-or-alias-name.js +1 -0
  479. package/dist/domain/spec/model/names/entity-type-name.d.ts +8 -0
  480. package/dist/domain/spec/model/names/entity-type-name.js +1 -0
  481. package/dist/domain/spec/model/names/expression-name.d.ts +6 -0
  482. package/dist/domain/spec/model/names/expression-name.js +1 -0
  483. package/dist/domain/spec/model/names/index.d.ts +9 -0
  484. package/dist/domain/spec/model/names/index.js +1 -0
  485. package/dist/domain/spec/model/names/instance-name.d.ts +7 -0
  486. package/dist/domain/spec/model/names/instance-name.js +1 -0
  487. package/dist/domain/spec/model/names/invariant-name.d.ts +3 -0
  488. package/dist/domain/spec/model/names/invariant-name.js +1 -0
  489. package/dist/domain/spec/model/names/shape-property-name.d.ts +11 -0
  490. package/dist/domain/spec/model/names/shape-property-name.js +1 -0
  491. package/dist/domain/spec/model/names/violation-type-name.d.ts +3 -0
  492. package/dist/domain/spec/model/names/violation-type-name.js +1 -0
  493. package/dist/domain/spec/model/presets.d.ts +30 -0
  494. package/dist/domain/spec/model/presets.js +1 -0
  495. package/dist/domain/spec/sections/actions.d.ts +23 -0
  496. package/dist/domain/spec/sections/actions.js +1 -0
  497. package/dist/domain/spec/sections/app-metadata.d.ts +18 -0
  498. package/dist/domain/spec/sections/app-metadata.js +1 -0
  499. package/dist/domain/spec/sections/application-version.d.ts +7 -0
  500. package/dist/domain/spec/sections/application-version.js +1 -0
  501. package/dist/domain/spec/sections/data-spec/chunks.d.ts +23 -0
  502. package/dist/domain/spec/sections/data-spec/chunks.js +1 -0
  503. package/dist/domain/spec/sections/data-spec/custom-data-spec-entry.d.ts +16 -0
  504. package/dist/domain/spec/sections/data-spec/custom-data-spec-entry.js +1 -0
  505. package/dist/domain/spec/sections/data-spec/data-entry-key.d.ts +9 -0
  506. package/dist/domain/spec/sections/data-spec/data-entry-key.js +1 -0
  507. package/dist/domain/spec/sections/data-spec/index.d.ts +5 -0
  508. package/dist/domain/spec/sections/data-spec/index.js +1 -0
  509. package/dist/domain/spec/sections/data-spec/parsed-data-spec-entries.d.ts +10 -0
  510. package/dist/domain/spec/sections/data-spec/parsed-data-spec-entries.js +1 -0
  511. package/dist/domain/spec/sections/data-spec/swatch-data-spec-entry.d.ts +14 -0
  512. package/dist/domain/spec/sections/data-spec/swatch-data-spec-entry.js +1 -0
  513. package/dist/domain/spec/sections/index.d.ts +9 -0
  514. package/dist/domain/spec/sections/index.js +1 -0
  515. package/dist/domain/spec/sections/infra/acl.d.ts +12 -0
  516. package/dist/domain/spec/sections/infra/acl.js +1 -0
  517. package/dist/domain/spec/sections/infra/index.d.ts +3 -0
  518. package/dist/domain/spec/sections/infra/index.js +1 -0
  519. package/dist/domain/spec/sections/infra/resource-entry.d.ts +46 -0
  520. package/dist/domain/spec/sections/infra/resource-entry.js +1 -0
  521. package/dist/domain/spec/sections/infra/resources-config.d.ts +10 -0
  522. package/dist/domain/spec/sections/infra/resources-config.js +1 -0
  523. package/dist/domain/spec/sections/state-value.d.ts +7 -0
  524. package/dist/domain/spec/sections/state-value.js +1 -0
  525. package/dist/domain/spec/sections/theme.d.ts +10 -0
  526. package/dist/domain/spec/sections/theme.js +1 -0
  527. package/dist/domain/spec/sections/transformers.d.ts +15 -0
  528. package/dist/domain/spec/sections/transformers.js +1 -0
  529. package/dist/domain/spec/sections/ui.d.ts +12 -0
  530. package/dist/domain/spec/sections/ui.js +1 -0
  531. package/dist/domain/system-definitions.js +1 -1
  532. package/dist/domain/utils/index.d.ts +2 -0
  533. package/dist/domain/utils/index.js +1 -0
  534. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  535. package/dist/editor/domain-editors/apply-spec-update.d.ts +10 -2
  536. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  537. package/dist/editor/domain-editors/use-implementation-files.d.ts +6 -14
  538. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  539. package/dist/editor/graphql/GraphQLPanel.js +1 -1
  540. package/dist/editor/screenshot/ScreenshotHandler.js +1 -1
  541. package/dist/i18n/locales/cs/messages.js +1 -1
  542. package/dist/i18n/locales/da/messages.js +1 -1
  543. package/dist/i18n/locales/de/messages.js +1 -1
  544. package/dist/i18n/locales/de-AT/messages.js +1 -1
  545. package/dist/i18n/locales/en/messages.js +1 -1
  546. package/dist/i18n/locales/en-AU/messages.js +1 -1
  547. package/dist/i18n/locales/en-GB/messages.js +1 -1
  548. package/dist/i18n/locales/es/messages.js +1 -1
  549. package/dist/i18n/locales/fr/messages.js +1 -1
  550. package/dist/i18n/locales/hu/messages.js +1 -1
  551. package/dist/i18n/locales/it/messages.js +1 -1
  552. package/dist/i18n/locales/nl/messages.js +1 -1
  553. package/dist/i18n/locales/pl/messages.js +1 -1
  554. package/dist/i18n/locales/pt/messages.js +1 -1
  555. package/dist/i18n/locales/ro/messages.js +1 -1
  556. package/dist/i18n/locales/sk/messages.js +1 -1
  557. package/dist/i18n/locales/tr/messages.js +1 -1
  558. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  559. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  560. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +16 -0
  561. package/dist/legacy/domain-spec/spec/domain-spec.js +1 -1
  562. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/claude-md.d.ts +1 -1
  563. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/cursor-rules.d.ts +1 -1
  564. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.d.ts +1 -1
  565. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.js +11 -5
  566. package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +1 -0
  567. package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
  568. package/dist/phoenix/application-spec/generate-project-files.d.ts +1 -0
  569. package/dist/phoenix/application-spec/index.d.ts +1 -0
  570. package/dist/phoenix/application-spec/index.js +1 -1
  571. package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +11 -0
  572. package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
  573. package/dist/phoenix/bin.js +1 -1
  574. package/dist/phoenix/cli.js +1 -1
  575. package/dist/phoenix/commands/activate-deployment.js +1 -1
  576. package/dist/phoenix/commands/build.js +1 -1
  577. package/dist/phoenix/commands/changelog.js +1 -1
  578. package/dist/phoenix/commands/check.js +1 -1
  579. package/dist/phoenix/commands/clean.js +1 -1
  580. package/dist/phoenix/commands/cleanup-environment.js +2 -2
  581. package/dist/phoenix/commands/create-environment.js +1 -1
  582. package/dist/phoenix/commands/data.js +1 -1
  583. package/dist/phoenix/commands/deploy.js +1 -1
  584. package/dist/phoenix/commands/deployment-build-envs-command.js +1 -1
  585. package/dist/phoenix/commands/dev.js +5 -5
  586. package/dist/phoenix/commands/docs.js +1 -1
  587. package/dist/phoenix/commands/finish-deployment-command.js +1 -1
  588. package/dist/phoenix/commands/fix.js +1 -1
  589. package/dist/phoenix/commands/generated-env-markers.d.ts +1 -0
  590. package/dist/phoenix/commands/generated-env-markers.js +1 -1
  591. package/dist/phoenix/commands/index.d.ts +1 -1
  592. package/dist/phoenix/commands/index.js +1 -1
  593. package/dist/phoenix/commands/inspect-assets.js +1 -1
  594. package/dist/phoenix/commands/list-environments.js +1 -1
  595. package/dist/phoenix/commands/login.d.ts +4 -1
  596. package/dist/phoenix/commands/login.js +2 -2
  597. package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
  598. package/dist/phoenix/commands/register-deployment.js +1 -1
  599. package/dist/phoenix/commands/scene.js +1 -1
  600. package/dist/phoenix/commands/screenshot.js +1 -1
  601. package/dist/phoenix/commands/state.js +1 -1
  602. package/dist/phoenix/commands/story-build.js +3 -3
  603. package/dist/phoenix/commands/story-create.js +1 -1
  604. package/dist/phoenix/commands/sync.js +1 -1
  605. package/dist/phoenix/commands/variants.js +1 -1
  606. package/dist/phoenix/lingui/index.d.ts +1 -0
  607. package/dist/phoenix/lingui/index.js +1 -0
  608. package/dist/phoenix/{services → lingui}/lingui.d.ts +5 -2
  609. package/dist/phoenix/lingui/lingui.js +1 -0
  610. package/dist/phoenix/services/application-spec-project-watcher.d.ts +3 -1
  611. package/dist/phoenix/services/application-spec-project-watcher.js +2 -2
  612. package/dist/phoenix/services/cli-credentials.d.ts +3 -0
  613. package/dist/phoenix/services/cli-credentials.js +1 -1
  614. package/dist/phoenix/services/cli-exit.d.ts +5 -0
  615. package/dist/phoenix/services/cli-exit.js +1 -0
  616. package/dist/phoenix/services/index.d.ts +3 -0
  617. package/dist/phoenix/services/index.js +1 -1
  618. package/dist/phoenix/services/lingui-watcher.js +1 -1
  619. package/dist/phoenix/services/prepare-development-environment.js +1 -1
  620. package/dist/phoenix/services/telemetry/amplitude-telemetry-transport.d.ts +9 -0
  621. package/dist/phoenix/services/telemetry/amplitude-telemetry-transport.js +1 -0
  622. package/dist/phoenix/services/telemetry/index.d.ts +3 -0
  623. package/dist/phoenix/services/telemetry/index.js +1 -0
  624. package/dist/phoenix/services/telemetry/telemetry-client.d.ts +25 -0
  625. package/dist/phoenix/services/telemetry/telemetry-client.js +1 -0
  626. package/dist/phoenix/services/telemetry/telemetry-command.d.ts +2 -0
  627. package/dist/phoenix/services/telemetry/telemetry-command.js +1 -0
  628. package/dist/phoenix/services/telemetry/telemetry-event.d.ts +44 -0
  629. package/dist/phoenix/services/telemetry/telemetry-event.js +1 -0
  630. package/dist/phoenix/services/telemetry/telemetry-state.d.ts +25 -0
  631. package/dist/phoenix/services/telemetry/telemetry-state.js +2 -0
  632. package/dist/phoenix/services/vite-config.js +1 -1
  633. package/dist/react-sdk/application-runtime/common-services/analytics/analytics-service.d.ts +1 -1
  634. package/dist/react-sdk/application-runtime/common-services/initialize.d.ts +2 -2
  635. package/dist/react-sdk/application-runtime/domain-application-context/chat-system.d.ts +1 -1
  636. package/dist/react-sdk/application-runtime/hooks/index.d.ts +2 -0
  637. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  638. package/dist/react-sdk/application-runtime/hooks/loading/index.d.ts +5 -0
  639. package/dist/react-sdk/application-runtime/hooks/loading/index.js +1 -0
  640. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.d.ts +11 -0
  641. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.js +1 -0
  642. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.d.ts +8 -0
  643. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.js +1 -0
  644. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.d.ts +7 -0
  645. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.js +1 -0
  646. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.d.ts +9 -0
  647. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.js +1 -0
  648. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.d.ts +24 -0
  649. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.js +1 -0
  650. package/dist/react-sdk/application-runtime/hooks/responsive/index.d.ts +3 -0
  651. package/dist/react-sdk/application-runtime/hooks/responsive/index.js +1 -0
  652. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.d.ts +9 -0
  653. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.js +1 -0
  654. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +26 -0
  655. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.js +1 -0
  656. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.d.ts +10 -0
  657. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.js +1 -0
  658. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.d.ts +24 -0
  659. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -0
  660. package/dist/react-sdk/application-runtime/hooks/use-access-service.d.ts +5 -0
  661. package/dist/react-sdk/application-runtime/hooks/use-access-service.js +1 -1
  662. package/dist/react-sdk/application-runtime/hooks/use-phoenix-element-slots.d.ts +2 -1
  663. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.d.ts +4 -11
  664. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.js +1 -1
  665. package/dist/react-sdk/application-runtime/hooks/use-web-component.d.ts +5 -0
  666. package/dist/react-sdk/application-runtime/hooks/use-web-component.js +1 -1
  667. package/dist/react-sdk/application-runtime/host-properties/actions.d.ts +15 -0
  668. package/dist/react-sdk/application-runtime/host-properties/actions.js +1 -0
  669. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.d.ts +30 -0
  670. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.js +1 -0
  671. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.d.ts +7 -0
  672. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.js +1 -0
  673. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.d.ts +21 -0
  674. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.js +1 -0
  675. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.d.ts +42 -0
  676. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.js +1 -0
  677. package/dist/react-sdk/application-runtime/host-properties/index.d.ts +8 -0
  678. package/dist/react-sdk/application-runtime/host-properties/index.js +1 -0
  679. package/dist/react-sdk/application-runtime/host-properties/initialize.d.ts +7 -0
  680. package/dist/react-sdk/application-runtime/host-properties/initialize.js +1 -0
  681. package/dist/react-sdk/application-runtime/host-properties/selectors.d.ts +54 -0
  682. package/dist/react-sdk/application-runtime/host-properties/selectors.js +1 -0
  683. package/dist/react-sdk/application-runtime/host-properties/types.d.ts +18 -0
  684. package/dist/react-sdk/application-runtime/host-properties/types.js +1 -0
  685. package/dist/react-sdk/application-runtime/index.d.ts +3 -0
  686. package/dist/react-sdk/application-runtime/integration/initialize.d.ts +7 -6
  687. package/dist/react-sdk/application-runtime/integration/initialize.js +1 -1
  688. package/dist/react-sdk/application-runtime/integration/selectors.d.ts +11 -2
  689. package/dist/react-sdk/application-runtime/integration/selectors.js +1 -1
  690. package/dist/react-sdk/application-runtime/integration/types.d.ts +5 -2
  691. package/dist/react-sdk/application-runtime/loading/actions.d.ts +45 -0
  692. package/dist/react-sdk/application-runtime/loading/actions.js +1 -0
  693. package/dist/react-sdk/application-runtime/loading/index.d.ts +4 -0
  694. package/dist/react-sdk/application-runtime/loading/index.js +1 -0
  695. package/dist/react-sdk/application-runtime/loading/initialize.d.ts +3 -0
  696. package/dist/react-sdk/application-runtime/loading/initialize.js +1 -0
  697. package/dist/react-sdk/application-runtime/loading/selectors.d.ts +18 -0
  698. package/dist/react-sdk/application-runtime/loading/selectors.js +1 -0
  699. package/dist/react-sdk/application-runtime/loading/types.d.ts +59 -0
  700. package/dist/react-sdk/application-runtime/loading/types.js +1 -0
  701. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  702. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.d.ts +6 -0
  703. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.js +1 -1
  704. package/dist/react-sdk/application-runtime/provider/ApplicationType.d.ts +7 -0
  705. package/dist/react-sdk/application-runtime/provider/ApplicationType.js +1 -1
  706. package/dist/react-sdk/application-runtime/responsive/actions.d.ts +47 -0
  707. package/dist/react-sdk/application-runtime/responsive/actions.js +1 -0
  708. package/dist/react-sdk/application-runtime/responsive/index.d.ts +4 -0
  709. package/dist/react-sdk/application-runtime/responsive/index.js +1 -0
  710. package/dist/react-sdk/application-runtime/responsive/initialize.d.ts +3 -0
  711. package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -0
  712. package/dist/react-sdk/application-runtime/responsive/selectors.d.ts +20 -0
  713. package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -0
  714. package/dist/react-sdk/application-runtime/responsive/types.d.ts +104 -0
  715. package/dist/react-sdk/application-runtime/responsive/types.js +1 -0
  716. package/dist/react-sdk/application-runtime/routing/routing-service.d.ts +34 -2
  717. package/dist/react-sdk/application-runtime/routing/routing-service.js +1 -1
  718. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +313 -10
  719. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  720. package/dist/{configurator/configurator-context → react-sdk}/configurator-routing/ConfiguratorRoutingProvider.d.ts +1 -1
  721. package/dist/react-sdk/configurator-routing/ConfiguratorRoutingProvider.js +1 -0
  722. package/dist/{configurator/configurator-context → react-sdk}/configurator-routing/OnGoToIndexHandler.d.ts +1 -2
  723. package/dist/react-sdk/configurator-routing/OnGoToIndexHandler.js +1 -0
  724. package/dist/react-sdk/configurator-routing/index.d.ts +3 -0
  725. package/dist/{configurator/configurator-context → react-sdk}/configurator-routing/index.js +1 -1
  726. package/dist/{configurator/configurator-context → react-sdk}/configurator-routing/use-power-routing-lifecycle.d.ts +2 -0
  727. package/dist/react-sdk/configurator-routing/use-power-routing-lifecycle.js +1 -0
  728. package/dist/react-sdk/domain-application-context/BackendDataProvider.js +1 -1
  729. package/dist/react-sdk/domain-application-context/ConfigurationPersistSystemFailureHandler.js +1 -1
  730. package/dist/react-sdk/domain-application-context/FrontendDataProvider.js +1 -1
  731. package/dist/react-sdk/domain-application-context/OnPresetLoadedHandler.js +1 -0
  732. package/dist/react-sdk/domain-application-context/PublishedDataProvider.js +1 -1
  733. package/dist/react-sdk/domain-application-context/chat-hooks.d.ts +4 -0
  734. package/dist/react-sdk/domain-application-context/chat-hooks.js +1 -0
  735. package/dist/react-sdk/domain-application-context/index.d.ts +2 -0
  736. package/dist/react-sdk/domain-application-context/index.js +1 -1
  737. package/dist/react-sdk/domain-context/common-hooks/index.d.ts +1 -0
  738. package/dist/react-sdk/domain-context/common-hooks/index.js +1 -1
  739. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.d.ts +23 -0
  740. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.js +1 -0
  741. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +1 -0
  742. package/dist/react-sdk/domain-context/index.d.ts +1 -0
  743. package/dist/react-sdk/domain-context/index.js +1 -1
  744. package/dist/react-sdk/elements/index.d.ts +0 -1
  745. package/dist/react-sdk/index.d.ts +6 -1
  746. package/dist/react-sdk/index.js +1 -1
  747. package/dist/react-sdk/integration/IntegrationSubscription.js +1 -0
  748. package/dist/react-sdk/integration/index.d.ts +1 -0
  749. package/dist/react-sdk/integration/index.js +1 -0
  750. package/dist/react-sdk/lifecycle-providers/ConfiguratorDataProvider.d.ts +8 -0
  751. package/dist/react-sdk/lifecycle-providers/ConfiguratorDataProvider.js +1 -0
  752. package/dist/react-sdk/lifecycle-providers/LifecycleProviders.js +1 -0
  753. package/dist/react-sdk/lifecycle-providers/index.d.ts +2 -0
  754. package/dist/react-sdk/lifecycle-providers/index.js +1 -0
  755. package/dist/react-sdk/loading-state/LoaderHost.d.ts +20 -0
  756. package/dist/react-sdk/loading-state/LoaderHost.js +1 -0
  757. package/dist/react-sdk/loading-state/built-in-loading-phase.d.ts +9 -0
  758. package/dist/react-sdk/loading-state/built-in-loading-phase.js +1 -0
  759. package/dist/react-sdk/loading-state/create-app-loader.d.ts +18 -0
  760. package/dist/react-sdk/loading-state/create-app-loader.js +1 -0
  761. package/dist/react-sdk/loading-state/index.d.ts +4 -2
  762. package/dist/react-sdk/loading-state/index.js +1 -1
  763. package/dist/react-sdk/loading-state/{LoadingStateProvider.d.ts → loading-state-hooks.d.ts} +3 -12
  764. package/dist/react-sdk/loading-state/loading-state-hooks.js +1 -0
  765. package/dist/react-sdk/notifications/index.d.ts +1 -0
  766. package/dist/react-sdk/notifications/index.js +1 -0
  767. package/dist/react-sdk/notifications/snackbar-action-button.d.ts +30 -0
  768. package/dist/react-sdk/notifications/snackbar-action-button.js +1 -0
  769. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.d.ts +17 -0
  770. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.js +1 -0
  771. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.d.ts +17 -0
  772. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.js +1 -0
  773. package/dist/react-sdk/page-elements/configurator-error-page-props.js +1 -0
  774. package/dist/{configurator/configuration-not-found-page → react-sdk/page-elements}/create-configuration-not-found-page.d.ts +7 -1
  775. package/dist/react-sdk/page-elements/create-configuration-not-found-page.js +1 -0
  776. package/dist/{configurator/configurator-error-page → react-sdk/page-elements}/create-configurator-error-page.d.ts +6 -1
  777. package/dist/react-sdk/page-elements/create-configurator-error-page.js +1 -0
  778. package/dist/react-sdk/page-elements/create-preset-ui.d.ts +9 -0
  779. package/dist/react-sdk/page-elements/create-preset-ui.js +1 -0
  780. package/dist/react-sdk/page-elements/index.d.ts +6 -0
  781. package/dist/react-sdk/page-elements/index.js +1 -0
  782. package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -0
  783. package/dist/react-sdk/preset-selection/index.d.ts +1 -0
  784. package/dist/react-sdk/preset-selection/index.js +1 -0
  785. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  786. package/dist/react-sdk/web-component/create-web-component.js +1 -1
  787. package/dist/react-sdk/web-component/god-mode/god-mode-registry.d.ts +30 -0
  788. package/dist/react-sdk/web-component/god-mode/god-mode-registry.js +1 -0
  789. package/dist/react-sdk/web-component/god-mode/index.d.ts +1 -0
  790. package/dist/react-sdk/web-component/god-mode/index.js +1 -0
  791. package/dist/ui-sdk/components/snackbar/Snackbar.d.ts +24 -3
  792. package/dist/ui-sdk/components/snackbar/Snackbar.js +1 -1
  793. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.d.ts +2 -2
  794. package/dist/ui-sdk/responsive-application/responsive-state-store.d.ts +11 -9
  795. package/dist/ui-sdk/responsive-application/use-store-responsive-info.js +1 -1
  796. package/dist/ui-sdk/theme/types.d.ts +5 -1
  797. package/dist/watch/glob-matcher.d.ts +4 -4
  798. package/dist/watch/glob-matcher.js +1 -1
  799. package/dist/watch/watch.d.ts +4 -4
  800. package/dist/watch/watch.js +1 -1
  801. package/package.json +13 -3
  802. package/schema/domain-spec.json +140 -0
  803. package/dist/application-spec/core/components/index.d.ts +0 -2
  804. package/dist/application-spec/core/expressions/index.d.ts +0 -2
  805. package/dist/configurator/app-loader-content/app-loader-content-name.d.ts +0 -5
  806. package/dist/configurator/app-loader-content/app-loader-content-name.js +0 -1
  807. package/dist/configurator/configuration-not-found-page/create-configuration-not-found-page.js +0 -1
  808. package/dist/configurator/configurator-context/ConfiguratorDataProvider.d.ts +0 -2
  809. package/dist/configurator/configurator-context/ConfiguratorDataProvider.js +0 -1
  810. package/dist/configurator/configurator-context/IntegrationSubscription.js +0 -1
  811. package/dist/configurator/configurator-context/LifecycleProviders.js +0 -1
  812. package/dist/configurator/configurator-context/OnPresetLoadedHandler.js +0 -1
  813. package/dist/configurator/configurator-context/PresetSelectionProvider.js +0 -1
  814. package/dist/configurator/configurator-context/configurator-hooks/chat-hooks.d.ts +0 -1
  815. package/dist/configurator/configurator-context/configurator-hooks/chat-hooks.js +0 -1
  816. package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.js +0 -1
  817. package/dist/configurator/configurator-context/configurator-routing/OnGoToIndexHandler.js +0 -1
  818. package/dist/configurator/configurator-context/configurator-routing/index.d.ts +0 -2
  819. package/dist/configurator/configurator-context/configurator-routing/use-power-routing-lifecycle.js +0 -1
  820. package/dist/configurator/configurator-error-page/create-configurator-error-page.js +0 -1
  821. package/dist/configurator/ui/assistant/form/built-in-form-registry.d.ts +0 -10
  822. package/dist/configurator/ui/assistant/form/built-in-form-registry.js +0 -1
  823. package/dist/configurator/ui/assistant/form/form-registry.js +0 -8
  824. package/dist/domain/application/assistant/form/get-assistant-form-value-attribute.d.ts +0 -6
  825. package/dist/domain/application/assistant/form/get-assistant-form-value-attribute.js +0 -1
  826. package/dist/domain/available-system-components.d.ts +0 -11
  827. package/dist/domain/available-system-components.js +0 -1
  828. package/dist/domain/domain-builder.js +0 -1
  829. package/dist/domain/extensions/client-side-image.js +0 -1
  830. package/dist/domain/extensions/save-template-thumbnail.js +0 -1
  831. package/dist/phoenix/services/lingui.js +0 -1
  832. package/dist/react-sdk/application-runtime/runtime/god-mode.d.ts +0 -19
  833. package/dist/react-sdk/application-runtime/runtime/god-mode.js +0 -1
  834. package/dist/react-sdk/loading-state/LoadingStateProvider.js +0 -1
  835. package/dist/react-sdk/loading-state/loading-state-manager.d.ts +0 -37
  836. package/dist/react-sdk/loading-state/loading-state-manager.js +0 -1
  837. package/dist/react-sdk/responsive-state/ResponsiveStateProvider.d.ts +0 -25
  838. package/dist/react-sdk/responsive-state/ResponsiveStateProvider.js +0 -1
  839. package/dist/react-sdk/responsive-state/canvas-padding.d.ts +0 -14
  840. package/dist/react-sdk/responsive-state/index.d.ts +0 -5
  841. package/dist/react-sdk/responsive-state/index.js +0 -1
  842. package/dist/react-sdk/responsive-state/responsive-state-manager.d.ts +0 -111
  843. package/dist/react-sdk/responsive-state/responsive-state-manager.js +0 -1
  844. package/dist/react-sdk/responsive-state/use-responsive-state-manager.d.ts +0 -10
  845. package/dist/react-sdk/responsive-state/use-responsive-state-manager.js +0 -1
  846. package/dist/react-sdk/responsive-state/use-responsive-state.d.ts +0 -11
  847. package/dist/react-sdk/responsive-state/use-responsive-state.js +0 -1
  848. /package/dist/{application-spec/core/expressions/relation-expression-params.js → domain/spec/application/admin-pages-section.js} +0 -0
  849. /package/dist/{application-spec/parse-application-files/spec/components/component-entry.js → domain/spec/application/admin-pages.js} +0 -0
  850. /package/dist/{application-spec/parse-application-files/spec/expressions/expression.js → domain/spec/application/admin-states.js} +0 -0
  851. /package/dist/{application-spec/core → domain/spec/application}/application-instance.d.ts +0 -0
  852. /package/dist/{application-spec/core → domain/spec/application}/application-instance.js +0 -0
  853. /package/dist/{configurator/ui/assistant/form/form-element-definition.js → domain/spec/application/configurator-states.js} +0 -0
  854. /package/dist/{react-sdk/elements/configurator-error-page-props.js → domain/spec/components/bindings/index.js} +0 -0
  855. /package/dist/{react-sdk/responsive-state/canvas-padding.js → domain/spec/components/bindings/read-binding.js} +0 -0
  856. /package/dist/{application-spec/core → domain/spec}/components/component-filter.js +0 -0
  857. /package/dist/{application-spec/core → domain/spec}/components/index.js +0 -0
  858. /package/dist/{application-spec/core → domain/spec}/components/sdk-code-ref.d.ts +0 -0
  859. /package/dist/{application-spec/core → domain/spec}/components/sdk-code-ref.js +0 -0
  860. /package/dist/{application-spec/core → domain/spec}/expressions/index.js +0 -0
  861. /package/dist/{application-spec/core → domain/spec}/expressions/relation-expression-params.d.ts +0 -0
  862. /package/dist/{application-spec/core → domain/spec}/expressions/sdk-expression-implementation.d.ts +0 -0
  863. /package/dist/{application-spec/core → domain/spec}/expressions/sdk-expression-implementation.js +0 -0
  864. /package/dist/{application-spec/parse-application-files/spec/components → domain/spec/markers}/component-prop-target.d.ts +0 -0
  865. /package/dist/{application-spec/parse-application-files/spec/components → domain/spec/markers}/component-prop-target.js +0 -0
  866. /package/dist/{application-spec/core → domain/spec}/markers/eval-marker.d.ts +0 -0
  867. /package/dist/{application-spec/core → domain/spec}/markers/eval-marker.js +0 -0
  868. /package/dist/{configurator/configurator-context → react-sdk/domain-application-context}/OnPresetLoadedHandler.d.ts +0 -0
  869. /package/dist/{configurator/configurator-context → react-sdk/integration}/IntegrationSubscription.d.ts +0 -0
  870. /package/dist/{configurator/configurator-context → react-sdk/lifecycle-providers}/LifecycleProviders.d.ts +0 -0
  871. /package/dist/react-sdk/{elements → page-elements}/configurator-error-page-props.d.ts +0 -0
  872. /package/dist/{configurator/configurator-context → react-sdk/preset-selection}/PresetSelectionProvider.d.ts +0 -0
@@ -0,0 +1 @@
1
+ import{GOD_MODE_SESSION_STORAGE_KEY as e}from"#package/domain";let t=new Map,o=(o,n)=>{if(void 0===n){sessionStorage.setItem(e,o.toString()),t.forEach(e=>{e(o)});return}let i="string"==typeof n?document.querySelector(n):n,r=null===i?void 0:t.get(i);void 0===r?console.error("setGodMode: the target is not the element of a mounted application; nothing changed.",n):r(o)};export const registerGodModeTarget=(e,n)=>(t.set(e,n),window.__salsita={...window.__salsita,setGodMode:o},()=>{t.get(e)===n&&t.delete(e)});
@@ -0,0 +1 @@
1
+ export { registerGodModeTarget, type SetGodMode } from './god-mode-registry.js';
@@ -0,0 +1 @@
1
+ export{registerGodModeTarget}from"./god-mode-registry.js";
@@ -1,6 +1,6 @@
1
- import type { AlertProps, ComponentsOverrides, ComponentsVariants } from '@mui/material';
2
- import type { CustomContentProps, SnackbarContentProps } from 'notistack';
3
- import type { ElementType } from 'react';
1
+ import type { AlertProps, ButtonProps, ComponentsOverrides, ComponentsVariants } from '@mui/material';
2
+ import type { CustomContentProps, SnackbarContentProps, SnackbarKey } from 'notistack';
3
+ import type { ElementType, ReactNode } from 'react';
4
4
  import type { ValueOf } from '@salsita-ai/common/utils';
5
5
  /**
6
6
  * Centralized registry of CSS class names for notistack's Snackbar components.
@@ -40,6 +40,7 @@ declare module '@mui/material/styles' {
40
40
  declare const Slots: {
41
41
  readonly Content: 'content';
42
42
  readonly Alert: 'alert';
43
+ readonly ActionButton: 'actionButton';
43
44
  };
44
45
  type PhxSnackbarSlots = ValueOf<typeof Slots>;
45
46
  export declare const SnackbarVariant: {
@@ -49,7 +50,24 @@ export declare const SnackbarVariant: {
49
50
  readonly Warning: 'warning';
50
51
  readonly Error: 'error';
51
52
  };
53
+ /**
54
+ * A button the snackbar shows after its message, described as data by the code that raises the snackbar.
55
+ *
56
+ * It arrives as the `actionButton` option of notistack's `enqueueSnackbar`, which `SnackbarActionButton` of
57
+ * `@salsita-ai/sdk/react` types, and renders in the `actionButton` slot, so the raising code needs no UI component and
58
+ * the theme decides the button's look.
59
+ */
60
+ interface SnackbarActionButtonDescription {
61
+ /** The button's text. */
62
+ readonly label: ReactNode;
63
+ /** Called with the key of the snackbar whose button was clicked. */
64
+ readonly onClick: (key: SnackbarKey) => void;
65
+ }
52
66
  export interface SnackbarProps extends Readonly<CustomContentProps> {
67
+ /**
68
+ * A button shown after the message and after `action`, rendered in the `actionButton` slot.
69
+ */
70
+ readonly actionButton?: SnackbarActionButtonDescription;
53
71
  /**
54
72
  * The components used for each slot inside the `Snackbar`.
55
73
  *
@@ -58,6 +76,7 @@ export interface SnackbarProps extends Readonly<CustomContentProps> {
58
76
  *
59
77
  * - `content` — The outer snackbar container (notistack's `SnackbarContent`).
60
78
  * - `alert` — The inner alert component displaying the message (`MuiAlert`).
79
+ * - `actionButton` — The button of `actionButton` (`MuiButton`, `color="inherit"`, `size="small"`).
61
80
  *
62
81
  * @default {}
63
82
  */
@@ -71,12 +90,14 @@ export interface SnackbarProps extends Readonly<CustomContentProps> {
71
90
  * Available slot keys:
72
91
  * - `content` — Props for the snackbar content wrapper.
73
92
  * - `alert` — Props for the alert component (severity, variant, etc.).
93
+ * - `actionButton` — Props for the button of `actionButton`.
74
94
  *
75
95
  * @default { alert: { variant: 'standard' } }
76
96
  */
77
97
  readonly slotProps?: Partial<{
78
98
  readonly [Slots.Content]: SnackbarContentProps;
79
99
  readonly [Slots.Alert]: AlertProps;
100
+ readonly [Slots.ActionButton]: ButtonProps;
80
101
  }>;
81
102
  }
82
103
  /**
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{Alert as a,styled as r,useThemeProps as n}from"@mui/material";import{SnackbarContent as e}from"notistack";import{forwardRef as o,useMemo as i}from"react";import{match as c}from"ts-pattern";export const notistackSnackbarClasses={container:"notistack-SnackbarContainer",snackbar:"notistack-Snackbar"};let s="PhxSnackbar",l={Content:r(e,{name:s,slot:"content"})({display:"block"}),Alert:r(a,{name:s,slot:"alert"})({userSelect:"none"})};export const SnackbarVariant={Default:"default",Info:"info",Success:"success",Warning:"warning",Error:"error"};export const Snackbar=o((a,r)=>{let{action:e,id:o,message:k,slotProps:m={alert:{variant:"standard"}},slots:f={},variant:p="info"}=n({props:a,name:s}),S=f.content??l.Content,b=f.alert??l.Alert,u=i(()=>{if(e)return"function"==typeof e?e(o):e},[e,o]);return t(S,{...m.content,ref:r,children:t(b,{...m.alert,severity:c(p).with(SnackbarVariant.Error,()=>p).with(SnackbarVariant.Info,()=>p).with(SnackbarVariant.Success,()=>p).with(SnackbarVariant.Warning,()=>p).otherwise(()=>SnackbarVariant.Info),action:u,"aria-atomic":"true","aria-live":"polite",children:k})})});
1
+ import{jsx as t,jsxs as n,Fragment as a}from"react/jsx-runtime";import{Alert as r,Button as o,styled as i,useThemeProps as e}from"@mui/material";import{SnackbarContent as c}from"notistack";import{forwardRef as s,useMemo as l}from"react";import{match as m}from"ts-pattern";export const notistackSnackbarClasses={container:"notistack-SnackbarContainer",snackbar:"notistack-Snackbar"};let k="PhxSnackbar",u={Content:i(c,{name:k,slot:"content"})({display:"block"}),Alert:i(r,{name:k,slot:"alert"})({userSelect:"none"}),ActionButton:i(o,{name:k,slot:"actionButton"})({})};export const SnackbarVariant={Default:"default",Info:"info",Success:"success",Warning:"warning",Error:"error"};export const Snackbar=s((r,o)=>{let{action:i,actionButton:c,id:s,message:f,slotProps:b={alert:{variant:"standard"}},slots:p={},variant:S="info"}=e({props:r,name:k}),h=p.content??u.Content,d=p.alert??u.Alert,x=p.actionButton??u.ActionButton,w=l(()=>{if(i)return"function"==typeof i?i(s):i},[i,s]),B=l(()=>void 0===c?w:n(a,{children:[w,t(x,{color:"inherit",size:"small",...b.actionButton,onClick:()=>{c.onClick(s)},children:c.label})]}),[x,c,s,w,b.actionButton]);return t(h,{...b.content,ref:o,children:t(d,{...b.alert,severity:m(S).with(SnackbarVariant.Error,()=>S).with(SnackbarVariant.Info,()=>S).with(SnackbarVariant.Success,()=>S).with(SnackbarVariant.Warning,()=>S).otherwise(()=>SnackbarVariant.Info),action:B,"aria-atomic":"true","aria-live":"polite",children:f})})});
@@ -6,8 +6,8 @@ export interface ResponsiveApplicationProviderProps extends PropsWithChildren {
6
6
  * Responsive state owned outside the UI. When given, the provider measures its container into
7
7
  * it and `useResponsive()` reads from it; otherwise the provider keeps the state itself.
8
8
  *
9
- * @internal Runtime plumbing for the SDK's own configurator, which passes its runtime
10
- * `ResponsiveStateManager`. A project mounting this provider leaves it out.
9
+ * @internal Runtime plumbing for the SDK's own configurator, which passes its application
10
+ * runtime's responsive state. A project mounting this provider leaves it out.
11
11
  */
12
12
  store?: ResponsiveStateStore;
13
13
  }
@@ -1,4 +1,3 @@
1
- import type { BehaviorSubject, Observable } from 'rxjs';
2
1
  import type { CanvasPadding } from './ResponsiveProvider.js';
3
2
  /**
4
3
  * The responsive state a `ResponsiveStateStore` holds.
@@ -20,9 +19,9 @@ export interface ResponsiveStateSnapshot {
20
19
  }
21
20
  /**
22
21
  * Responsive state owned outside the UI, which `ResponsiveApplicationProvider` measures its root
23
- * container into and provides to `useResponsive()`. A mounted Phoenix application passes the
24
- * `ResponsiveStateManager` of `@salsita-ai/sdk/react`, so its lifecycle reads the same state
25
- * without the UI.
22
+ * container into and provides to `useResponsive()`. A mounted Phoenix configurator passes its
23
+ * application runtime's responsive state (`useResponsiveStore()` of `@salsita-ai/sdk/react`), so
24
+ * its lifecycle reads the same state without the UI.
26
25
  *
27
26
  * Declared here by shape rather than imported, because `ui-sdk` depends on no other SDK package.
28
27
  *
@@ -30,12 +29,15 @@ export interface ResponsiveStateSnapshot {
30
29
  * `ResponsiveApplicationProvider` leaves `store` out.
31
30
  */
32
31
  export interface ResponsiveStateStore {
33
- readonly state$: Observable<ResponsiveStateSnapshot>;
34
- readonly viewport$: BehaviorSubject<{
35
- width: number;
36
- height: number;
37
- }>;
32
+ /** Calls `onChange` after every change of the store; returns the unsubscribe. */
33
+ readonly subscribe: (onChange: () => void) => () => void;
34
+ /** The same object until a value in it changes. */
38
35
  readonly getState: () => ResponsiveStateSnapshot;
36
+ /** The container's size rounded up to whole pixels; the same object until it changes. */
37
+ readonly getViewportSize: () => {
38
+ readonly width: number;
39
+ readonly height: number;
40
+ };
39
41
  readonly setViewport: (viewport: {
40
42
  readonly width: number;
41
43
  readonly height: number;
@@ -1 +1 @@
1
- import{useTheme as e}from"@mui/material";import{useCallback as t,useLayoutEffect as i,useMemo as a,useSyncExternalStore as s}from"react";import{isMobileOnly as n}from"react-device-detect";import{useResizeObserver as o}from"usehooks-ts";export const useStoreResponsiveInfo=(r,c)=>{let{sm:d,md:p,lg:l}=e().breakpoints.values,u=s(t(e=>{let t=c.state$.subscribe(e);return()=>{t.unsubscribe()}},[c]),c.getState);i(()=>{c.setBreakpoints({sm:d,md:p,lg:l})},[c,d,p,l]);let m=t(e=>{let{width:t,height:i}=e.getBoundingClientRect();c.setViewport({width:t,height:i,isLandscape:window.matchMedia("(orientation: landscape)").matches,isPortrait:window.matchMedia("(orientation: portrait)").matches})},[c]),b=t(e=>{c.setCanvasPadding("function"==typeof e?e(c.getCanvasPadding()):e)},[c]),g=t(()=>{r.current&&m(r.current)},[r,m]);return o({ref:r,onResize:()=>{null!=r.current&&m(r.current)}}),i(()=>{null!=r.current&&m(r.current)},[r,m]),a(()=>({...u,expand:c.expand,collapse:c.collapse,hide:c.hide,show:c.show,isMobileAndMobileLandscape:u.isMobile||u.isLandscape&&u.isTablet&&n,isDesktopExceptMobileLandscape:u.isDesktop&&!(u.isLandscape&&u.isTablet&&n),viewport$:c.viewport$,getCanvasPadding:c.getCanvasPadding,setCanvasPadding:b,update:g,setAnimating:c.setAnimating}),[u,c,b,g])};
1
+ import{useTheme as e}from"@mui/material";import{useCallback as t,useLayoutEffect as i,useMemo as a,useState as n,useSyncExternalStore as s}from"react";import{isMobileOnly as r}from"react-device-detect";import{BehaviorSubject as o}from"rxjs";import{useResizeObserver as c}from"usehooks-ts";export const useStoreResponsiveInfo=(p,d)=>{let{sm:l,md:u,lg:m}=e().breakpoints.values,g=s(d.subscribe,d.getState),[b]=n(()=>new o(d.getViewportSize()));i(()=>{let e=()=>{let e=d.getViewportSize();e!==b.value&&b.next(e)};return e(),d.subscribe(e)},[d,b]),i(()=>{d.setBreakpoints({sm:l,md:u,lg:m})},[d,l,u,m]);let w=t(e=>{let{width:t,height:i}=e.getBoundingClientRect();d.setViewport({width:t,height:i,isLandscape:window.matchMedia("(orientation: landscape)").matches,isPortrait:window.matchMedia("(orientation: portrait)").matches})},[d]),f=t(e=>{d.setCanvasPadding("function"==typeof e?e(d.getCanvasPadding()):e)},[d]),h=t(()=>{p.current&&w(p.current)},[p,w]);return c({ref:p,onResize:()=>{null!=p.current&&w(p.current)}}),i(()=>{null!=p.current&&w(p.current)},[p,w]),a(()=>({...g,expand:d.expand,collapse:d.collapse,hide:d.hide,show:d.show,isMobileAndMobileLandscape:g.isMobile||g.isLandscape&&g.isTablet&&r,isDesktopExceptMobileLandscape:g.isDesktop&&!(g.isLandscape&&g.isTablet&&r),viewport$:b,getCanvasPadding:d.getCanvasPadding,setCanvasPadding:f,update:h,setAnimating:d.setAnimating}),[g,d,b,f,h])};
@@ -44,7 +44,8 @@ declare module '@mui/material/styles' {
44
44
  PhxChat: 'root';
45
45
  PhxChatFooter: 'root' | 'formLayout' | 'input';
46
46
  PhxChatMessage: 'base' | 'assistant' | 'user' | 'widget' | 'error' | 'helper';
47
- PhxAssistantPanel: 'root' | 'header' | 'title' | 'closeButton' | 'thread' | 'greeting' | 'messages' | 'userMessage' | 'assistantMessage' | 'alert' | 'entityLink' | 'referenceLink' | 'referenceDetails' | 'image' | 'form' | 'formGroup' | 'formGroupLabel' | 'formOptions' | 'formOptionsLabel' | 'formOptionsRow' | 'formReply' | 'formCard' | 'formCardImage' | 'formCardLabel' | 'formCardDescription' | 'formCardCheck' | 'formSwatch' | 'formSwatchImage' | 'formSwatchCheck' | 'formText' | 'formTextInput' | 'formNumber' | 'formConfirm' | 'formConfirmButtons' | 'formConfirmButton' | 'formSubmit' | 'formNote' | 'chips' | 'activity' | 'activityIcon' | 'chip' | 'undoButton' | 'status' | 'separator' | 'earlierButton' | 'notice' | 'newReplyButton' | 'composer' | 'inputFrame' | 'input' | 'sendButton' | 'stopButton' | 'hint';
47
+ PhxAssistantPanel: 'root' | 'header' | 'title' | 'closeButton' | 'thread' | 'greeting' | 'messages' | 'userMessage' | 'assistantMessage' | 'alert' | 'entityLink' | 'referenceLink' | 'referenceDetails' | 'image' | 'screenshotsLink' | 'screenshots' | 'form' | 'formGroup' | 'formGroupLabel' | 'formOptions' | 'formOptionsLabel' | 'formOptionsRow' | 'formReply' | 'formCard' | 'formCardImage' | 'formCardLabel' | 'formCardDescription' | 'formCardCheck' | 'formSwatch' | 'formSwatchImage' | 'formSwatchCheck' | 'formText' | 'formTextInput' | 'formNumber' | 'formConfirm' | 'formConfirmButtons' | 'formConfirmButton' | 'formSubmit' | 'formNote' | 'chips' | 'activity' | 'activityIcon' | 'chip' | 'undoButton' | 'status' | 'separator' | 'earlierButton' | 'notice' | 'newReplyButton' | 'composer' | 'inputFrame' | 'input' | 'sendButton' | 'stopButton' | 'hint';
48
+ PhxExportingOverlay: 'root' | 'message';
48
49
  PhxTopNavigation: 'root' | 'stepper' | 'step';
49
50
  PhxListSelector: 'root';
50
51
  PhxListSelectorItem: 'root' | 'radio' | 'title' | 'description' | 'formControlLabel';
@@ -113,6 +114,9 @@ declare module '@mui/material/styles' {
113
114
  PhxAssistantPanel?: {
114
115
  styleOverrides?: ComponentsOverrides<Theme>['PhxAssistantPanel'];
115
116
  };
117
+ PhxExportingOverlay?: {
118
+ styleOverrides?: ComponentsOverrides<Theme>['PhxExportingOverlay'];
119
+ };
116
120
  PhxPreviewLayout?: {
117
121
  styleOverrides?: ComponentsOverrides<Theme>['PhxPreviewLayout'];
118
122
  };
@@ -4,7 +4,7 @@ interface PathOperations {
4
4
  readonly sep: string;
5
5
  }
6
6
  /**
7
- * Build a chokidar v4 `ignored` callback from include + exclude glob arrays.
7
+ * Build a chokidar `ignored` callback from include + exclude glob arrays.
8
8
  *
9
9
  * Internal helper for {@link watch | the watch shim} in `./watch.ts`. Not part of the
10
10
  * public surface — consumers pass glob strings to `watch(...)` and this conversion
@@ -14,15 +14,15 @@ interface PathOperations {
14
14
  * - excludes are checked first against every path (file or directory). Patterns ending in
15
15
  * `/**` are auto-expanded to also match the bare directory form so chokidar prunes the
16
16
  * subtree instead of walking it.
17
- * - for directories, includes are not applied — chokidar must descend to find matching files.
18
- * - for files (or when stats is unavailable), includes are required when non-empty.
17
+ * - directories descend only towards an included literal file or within an included glob's prefix.
18
+ * - files require an include match when non-empty; discovery without stats remains permissive.
19
19
  */
20
20
  export declare const createWatchIgnoreMatcher: (params: {
21
21
  readonly includes?: readonly string[];
22
22
  readonly excludes?: readonly string[];
23
23
  /**
24
24
  * If set, absolute paths passed to the predicate are converted to paths relative to
25
- * this directory before being matched. Chokidar v4 passes absolute paths to `ignored`
25
+ * this directory before being matched. Chokidar passes absolute paths to `ignored`
26
26
  * even when `cwd` is set, but the include/exclude globs in this codebase are written
27
27
  * relative to the project root — this option bridges that.
28
28
  */
@@ -1 +1 @@
1
- import*as t from"node:path";import e from"picomatch";export const createWatchIgnoreMatcher=o=>{let{includes:r=[],excludes:n=[],cwd:l,pathOperations:s=t}=o,i=r.length>0?e([...r]):null,c=n.length>0?e((t=>{let e=[];for(let o of t)e.push(o),o.endsWith("/**")&&e.push(o.slice(0,-3));return e})(n)):null;return(t,e)=>{let o,r=(""===(o=l?s.relative(l,t):t)?".":o).split(s.sep).join("/");return!!c?.(r)||!!e&&!!e.isFile()&&!(!i||i(r))}};export const deriveWatchRoot=t=>{let e=t.split("/"),o=e.findIndex(t=>/[*?[{]/.test(t));return -1===o?t:0===o?".":e.slice(0,o).join("/")};let o=/[*?[{]/;export const containsGlob=t=>o.test(t);export const isRecursiveGlob=t=>t.includes("**");
1
+ import*as e from"node:path";import t from"picomatch";export const createWatchIgnoreMatcher=o=>{let{includes:s=[],excludes:r=[],cwd:i,pathOperations:l=e}=o,n="\\"===l.sep?e.win32.isAbsolute:e.posix.isAbsolute,p=e=>{let t=i?l.relative(i,e):e;return(""===t?".":t).split(l.sep).join("/")},c=s.map(e=>(i&&n(e)?p(e):e.split(l.sep).join("/")).replace(/^\.\/+/,"")),a=c.length>0?t(c):null,h=r.length>0?t((e=>{let t=[];for(let o of e)t.push(o),o.endsWith("/**")&&t.push(o.slice(0,-3));return t})(r)):null,u=c.map(e=>({path:deriveWatchRoot(e),isGlob:containsGlob(e)})),m=(e,t)=>{let o=l.relative(t,e);return""!==o&&".."!==o&&!o.startsWith(`..${l.sep}`)&&!n(o)};return(e,t)=>{let o=p(e);return!!h?.(o)||(t?.isDirectory()&&u.length>0?!u.some(({path:e,isGlob:t})=>m(e,o)||t&&(""===l.relative(e,o)||m(o,e))):!!t&&!!t.isFile()&&!(!a||a(o)))}};export const deriveWatchRoot=e=>{let t=e.split("/"),o=t.findIndex(e=>/[*?[{]/.test(e));return -1===o?e:0===o?".":t.slice(0,o).join("/")};let o=/[*?[{]/;export const containsGlob=e=>o.test(e);export const isRecursiveGlob=e=>e.includes("**");
@@ -16,10 +16,11 @@ export interface WatchOptions {
16
16
  * Watch files/directories with the chokidar v3 calling convention — accepts glob
17
17
  * strings for both `paths` and `ignored`.
18
18
  *
19
- * Backed by chokidar v4 internally (v4 dropped glob support; this shim restores it).
19
+ * Backed by chokidar's current concrete-path API; this shim supplies the glob filters.
20
20
  * Each input glob is classified:
21
21
  *
22
- * - **Concrete path** (no glob chars): added to watch roots as-is.
22
+ * - **Concrete path** (no glob chars): added as-is; with active glob filters an existing file's parent
23
+ * is watched instead, while the file's exact path stays in the include filter.
23
24
  * - **Recursive glob** (contains `**`): the prefix is used as the watch root, the full
24
25
  * pattern stays as an include filter so new files matching the glob still trigger events.
25
26
  * Example: `spec/**\/*.{yaml,yml}` → watches `spec/`, filters to `*.yaml`/`*.yml`.
@@ -27,8 +28,7 @@ export interface WatchOptions {
27
28
  * root, the full pattern stays as an include filter so new files matching the glob
28
29
  * still trigger events.
29
30
  *
30
- * Watch roots that don't exist at call time are dropped silently (chokidar v4 emits
31
- * `error` events for missing paths otherwise).
31
+ * Native roots missing at call time are dropped; other explicit inputs may still cover later files.
32
32
  *
33
33
  * Returns chokidar's `FSWatcher` — the `.on()` / `.close()` event API is unchanged.
34
34
  */
@@ -1 +1 @@
1
- import{watch as e}from"chokidar";import{statSync as t}from"node:fs";import{resolve as r}from"node:path";import{containsGlob as o,createWatchIgnoreMatcher as n,deriveWatchRoot as i,isRecursiveGlob as l}from"./glob-matcher.js";export const watch=(d,f)=>{let a=f?.cwd??process.cwd(),h=f?.ignored==null?[]:"string"==typeof f.ignored?[f.ignored]:f.ignored,p=[],g=[],c=new Set;for(let e of"string"==typeof d?[d]:d){if(!o(e)){t(r(a,e),{throwIfNoEntry:!1})&&(c.add(e),g.push(e));continue}if(!l(e)){p.push(e);let o=i(e);t(r(a,o),{throwIfNoEntry:!1})&&c.add(o);continue}p.push(e);let n=i(e);t(r(a,n),{throwIfNoEntry:!1})&&c.add(n)}if(p.length>0)for(let e of g){let o=t(r(a,e),{throwIfNoEntry:!1});p.push(o?.isDirectory()?`${e}/**/*`:e)}let u=[...c];return 0===u.length?s():e(u,{cwd:a,persistent:f?.persistent,ignoreInitial:f?.ignoreInitial,usePolling:f?.usePolling,interval:f?.interval,ignored:n({includes:p.length>0?p:void 0,excludes:h,cwd:a})})};let s=()=>{let t=e([],{persistent:!1});return setImmediate(()=>t.emit("ready")),t};
1
+ import{watch as e}from"chokidar";import{statSync as t}from"node:fs";import{dirname as r,resolve as o}from"node:path";import{containsGlob as i,createWatchIgnoreMatcher as n,deriveWatchRoot as l,isRecursiveGlob as s}from"./glob-matcher.js";export const watch=(a,f)=>{let p=f?.cwd??process.cwd(),g=f?.ignored==null?[]:"string"==typeof f.ignored?[f.ignored]:f.ignored,h=[],c=new Map,m=new Set;for(let e of"string"==typeof a?[a]:a){if(!i(e)){let r=t(o(p,e),{throwIfNoEntry:!1});r&&(m.add(e),c.set(e,r));continue}if(!s(e)){let r=l(e);t(o(p,r),{throwIfNoEntry:!1})&&(m.add(r),h.push(e));continue}let r=l(e);t(o(p,r),{throwIfNoEntry:!1})&&(m.add(r),h.push(e))}if(h.length>0)for(let[e,t]of c)h.push(t.isDirectory()?`${e}/**/*`:e),t.isFile()&&(m.delete(e),m.add(r(e)));let u=[...m];return 0===u.length?d():e(u,{cwd:p,persistent:f?.persistent,ignoreInitial:f?.ignoreInitial,usePolling:f?.usePolling,interval:f?.interval,ignored:n({includes:h.length>0?h:void 0,excludes:g,cwd:p})})};let d=()=>{let t=e([],{persistent:!1});return setImmediate(()=>t.emit("ready")),t};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salsita-ai/sdk",
3
- "version": "0.50.0-develop.f101f4c3c9",
3
+ "version": "0.50.0-develop.f16492b14e",
4
4
  "description": "TypeScript SDK and CLI for building, running, and deploying Phoenix configurator applications.",
5
5
  "keywords": [
6
6
  "salsita",
@@ -207,6 +207,16 @@
207
207
  "schema",
208
208
  "CHANGELOG.md"
209
209
  ],
210
+ "nx": {
211
+ "targets": {
212
+ "build": {
213
+ "outputs": [
214
+ "{projectRoot}/dist",
215
+ "{projectRoot}/src/i18n/locales/*/messages.ts"
216
+ ]
217
+ }
218
+ }
219
+ },
210
220
  "dependencies": {
211
221
  "@apidevtools/json-schema-ref-parser": "14.1.1",
212
222
  "@aws-sdk/client-s3": "3.1054.0",
@@ -298,8 +308,8 @@
298
308
  "yaml": "2.9.0",
299
309
  "yargs": "17.7.2",
300
310
  "zod": "3.25.76",
301
- "@salsita-ai/common": "0.50.0-develop.f101f4c3c9",
302
- "@salsita-ai/contracts": "0.50.0-develop.f101f4c3c9"
311
+ "@salsita-ai/common": "0.50.0-develop.f16492b14e",
312
+ "@salsita-ai/contracts": "0.50.0-develop.f16492b14e"
303
313
  },
304
314
  "devDependencies": {
305
315
  "@clerk/clerk-react": "5.61.8",
@@ -13959,6 +13959,53 @@
13959
13959
  "required": ["exportState", "width", "height", "fileFormat", "toolState", "viewState", "navigationState"],
13960
13960
  "additionalProperties": false
13961
13961
  },
13962
+ "AgentScreenshotComponentState": {
13963
+ "type": "object",
13964
+ "tsType": "AgentScreenshotComponentState",
13965
+ "import": [
13966
+ {
13967
+ "module": "@salsita-ai/sdk/domain",
13968
+ "member": "AgentScreenshotComponentState"
13969
+ }
13970
+ ],
13971
+ "properties": {
13972
+ "exportState": {
13973
+ "type": "string"
13974
+ },
13975
+ "width": {
13976
+ "type": "number"
13977
+ },
13978
+ "height": {
13979
+ "type": "number"
13980
+ },
13981
+ "fileFormat": {
13982
+ "type": "string",
13983
+ "enum": ["PNG", "JPEG"]
13984
+ },
13985
+ "backgroundColor": {
13986
+ "type": "string",
13987
+ "pattern": "^#[0-9a-fA-F]{6}$",
13988
+ "tsType": "HexColor",
13989
+ "import": [
13990
+ {
13991
+ "module": "@salsita-ai/sdk/common/utils",
13992
+ "member": "HexColor"
13993
+ }
13994
+ ]
13995
+ },
13996
+ "toolState": {
13997
+ "type": "string"
13998
+ },
13999
+ "viewState": {
14000
+ "type": "string"
14001
+ },
14002
+ "navigationState": {
14003
+ "type": "string"
14004
+ }
14005
+ },
14006
+ "required": ["exportState", "width", "height", "fileFormat", "toolState", "viewState", "navigationState"],
14007
+ "additionalProperties": false
14008
+ },
13962
14009
  "ProjectedEntitiesComponentState": {
13963
14010
  "type": "object",
13964
14011
  "tsType": "ProjectedEntitiesComponentState",
@@ -44102,6 +44149,99 @@
44102
44149
  ]
44103
44150
  }
44104
44151
  },
44152
+ "agentScreenshot": {
44153
+ "type": "object",
44154
+ "additionalProperties": {
44155
+ "anyOf": [
44156
+ {
44157
+ "type": "object",
44158
+ "tsType": "AgentScreenshotComponentState",
44159
+ "import": [
44160
+ {
44161
+ "module": "@salsita-ai/sdk/domain",
44162
+ "member": "AgentScreenshotComponentState"
44163
+ }
44164
+ ],
44165
+ "properties": {
44166
+ "exportState": {
44167
+ "$ref": "#/definitions/EnhancedStringRead"
44168
+ },
44169
+ "width": {
44170
+ "$ref": "#/definitions/EnhancedNumberRead"
44171
+ },
44172
+ "height": {
44173
+ "$ref": "#/definitions/EnhancedNumberRead"
44174
+ },
44175
+ "fileFormat": {
44176
+ "anyOf": [
44177
+ {
44178
+ "type": "string",
44179
+ "enum": ["PNG", "JPEG"]
44180
+ },
44181
+ {
44182
+ "$ref": "#/definitions/ReadEnhancement"
44183
+ }
44184
+ ]
44185
+ },
44186
+ "backgroundColor": {
44187
+ "anyOf": [
44188
+ {
44189
+ "type": "string",
44190
+ "pattern": "^#[0-9a-fA-F]{6}$",
44191
+ "tsType": "HexColor",
44192
+ "import": [
44193
+ {
44194
+ "module": "@salsita-ai/sdk/common/utils",
44195
+ "member": "HexColor"
44196
+ }
44197
+ ]
44198
+ },
44199
+ {
44200
+ "$ref": "#/definitions/ReadEnhancement"
44201
+ }
44202
+ ]
44203
+ },
44204
+ "toolState": {
44205
+ "$ref": "#/definitions/EnhancedStringRead"
44206
+ },
44207
+ "viewState": {
44208
+ "$ref": "#/definitions/EnhancedStringRead"
44209
+ },
44210
+ "navigationState": {
44211
+ "$ref": "#/definitions/EnhancedStringRead"
44212
+ },
44213
+ "$filter": {
44214
+ "$ref": "#/definitions/ComponentSystemFilter"
44215
+ }
44216
+ },
44217
+ "required": [
44218
+ "exportState",
44219
+ "width",
44220
+ "height",
44221
+ "fileFormat",
44222
+ "toolState",
44223
+ "viewState",
44224
+ "navigationState"
44225
+ ],
44226
+ "additionalProperties": false
44227
+ },
44228
+ {
44229
+ "type": "object",
44230
+ "properties": {
44231
+ "$read": {
44232
+ "type": "string",
44233
+ "pattern": "^\\$?[a-z]\\w*$"
44234
+ },
44235
+ "$filter": {
44236
+ "$ref": "#/definitions/ComponentSystemFilter"
44237
+ }
44238
+ },
44239
+ "required": ["$read"],
44240
+ "additionalProperties": false
44241
+ }
44242
+ ]
44243
+ }
44244
+ },
44105
44245
  "projectedEntities": {
44106
44246
  "type": "object",
44107
44247
  "additionalProperties": {
@@ -1,2 +0,0 @@
1
- export * from './component-filter.js';
2
- export * from './sdk-code-ref.js';
@@ -1,2 +0,0 @@
1
- export type * from './relation-expression-params.js';
2
- export * from './sdk-expression-implementation.js';
@@ -1,5 +0,0 @@
1
- /**
2
- * The name a project registers a layout element under to replace what the app loader overlay shows.
3
- * Its default, `DefaultAppLoaderContent`, is registered in `defaultConfiguratorElements`.
4
- */
5
- export declare const AppLoaderContentName = "AppLoaderContent";
@@ -1 +0,0 @@
1
- export const AppLoaderContentName="AppLoaderContent";
@@ -1 +0,0 @@
1
- import{createCustomPhoenixLayoutElement as o}from"#package/domain";import{ConfigurationNotFoundPageName as t}from"./ConfigurationNotFoundPageElement.js";export const createConfigurationNotFoundPage=n=>o(t,n);
@@ -1,2 +0,0 @@
1
- import type { PropsWithChildren } from 'react';
2
- export declare const ConfiguratorDataProvider: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- import{jsx as r}from"react/jsx-runtime";import{BackendDataProvider as e,FrontendDataProvider as i,PublishedDataProvider as c}from"#package/react-sdk";import{OnBackendDataReadyProvider as o,OnFrontendDataReadyProvider as t,OnPublishedDataReadyProvider as d}from"./LifecycleProviders.js";export const ConfiguratorDataProvider=({children:n})=>r(c,{children:r(d,{children:r(i,{children:r(t,{children:r(e,{children:r(o,{children:n})})})})})});
@@ -1 +0,0 @@
1
- import{jsx as r}from"react/jsx-runtime";import{useEffect as t}from"react";import{useRecipeEmbeddedState as e,useSelectEntity as o}from"#package/react-sdk";export const IntegrationSubscription=i=>{let{children:c}=i,a=e()?.rootRecipeId,m=o();return t(()=>{a&&m(a)},[a,m]),r("div",{children:c})};
@@ -1 +0,0 @@
1
- import{jsx as e,Fragment as r}from"react/jsx-runtime";import{createCustomPhoenixLayoutElement as t}from"#package/domain";import{PhoenixLayoutElement as o}from"#package/react-sdk";let n={},a="OnConfiguratorReadyProvider";export const createOnConfiguratorReadyProvider=e=>t(a,e);export const OnConfiguratorReadyProvider=({children:t})=>e(o,{name:a,elementProps:n,defaultSlot:r,children:t});let d="OnSessionReadyProvider";export const createOnSessionReadyProvider=e=>t(d,e);export const OnSessionReadyProvider=({children:t})=>e(o,{name:d,elementProps:n,defaultSlot:r,children:t});let i="OnPublishedDataReadyProvider";export const createOnPublishedDataReadyProvider=e=>t(i,e);export const OnPublishedDataReadyProvider=({children:t})=>e(o,{name:i,elementProps:n,defaultSlot:r,children:t});let l="OnApplicationStartProvider";export const createOnApplicationStartProvider=e=>t(l,e);export const OnApplicationStartProvider=({children:t})=>e(o,{name:l,elementProps:n,defaultSlot:r,children:t});let c="OnRoutingReadyProvider";export const createOnRoutingReadyProvider=e=>t(c,e);export const OnRoutingReadyProvider=({children:t})=>e(o,{name:c,elementProps:n,defaultSlot:r,children:t});let s="OnFrontendDataReadyProvider";export const createOnFrontendDataReadyProvider=e=>t(s,e);export const OnFrontendDataReadyProvider=({children:t})=>e(o,{name:s,elementProps:n,defaultSlot:r,children:t});let p="OnBackendDataReadyProvider";export const createOnBackendDataReadyProvider=e=>t(p,e);export const OnBackendDataReadyProvider=({children:t})=>e(o,{name:p,elementProps:n,defaultSlot:r,children:t});
@@ -1 +0,0 @@
1
- import{createSystemPhoenixAsyncHandler as e}from"#package/domain";import{useSystemPhoenixAsyncHandler as r}from"#package/react-sdk";let a="OnPresetLoadedHandler";export const createOnPresetLoadedHandler=r=>e(a,r);export const useOnPresetLoadedHandler=()=>r(a)?.handler;
@@ -1 +0,0 @@
1
- import{jsx as e}from"react/jsx-runtime";import{Button as t}from"@mui/material";import{useMutation as r}from"@tanstack/react-query";import{useSnackbar as i}from"notistack";import{useSubscription as o}from"observable-hooks";import{createContext as s,useCallback as n,useContext as a,useEffect as l,useMemo as m,useState as d}from"react";import{skip as p}from"rxjs";import{match as c}from"ts-pattern";import{AuthorizedClient as g,LocalStorageAuthorizedPhoenixApiClient as u,MemoryAuthorizedPhoenixApiClient as f}from"#package/client";import{SYSTEM_CHUNK_KEY as h,standardWebComponentProperties as y}from"#package/domain";import{ApplicationRoutes as P,FrontendAnalyticsFactory as v,useAnalyticsService as w,useAuthenticatedClient as x,useConfiguratorDomainFactory as C,useEagerObservableValue as T,useIsDev as k,useLogger as D,usePersistenceConfig as S,usePublishedData as E,useResolveLocalizable as b,useRoutingSelectors as A,useSessionService as I,useSpecPresetSeed as V,useWebComponentProperty$ as j}from"#package/react-sdk";import{useOnPresetLoadedHandler as $}from"./OnPresetLoadedHandler.js";import{useConfiguratorRouting as F}from"./configurator-routing/index.js";let M={id:"sdk.presets.create.error.message",message:"Could not start configuring from this preset. Please try again."},R={id:"sdk.presets.create.error.dismiss.label",message:"Dismiss"},q="phx-preset-creation-error";export const PresetSelectionContext=s(null);export const usePresetSelection=()=>{let e=a(PresetSelectionContext);if(null===e)throw Error("usePresetSelection must be used within a PresetSelectionProvider!");return e};let z=e=>t=>null===e||void 0!==t.tags&&t.tags.some(t=>e.includes(t));export const PresetSelectionProvider=s=>{let{children:a}=s,[H,L]=d(null),[O,U]=d(null),B=V(),G=x(),J=w(),K=S(),N=C(),Q=k(),W=b(),{requestSessionToken:X}=I(),Y=D(),Z=F(),_=A(),ee=E(),{enqueueSnackbar:et,closeSnackbar:er}=i(),ei=j(y.presetTags),eo=T(ei),es=$();o(m(()=>ei.pipe(p(1)),[ei]),()=>{_.getRoutingState().route!==P.Index&&Z.goToIndex()}),l(()=>{U(null),er(q)},[Q,er]);let{mutate:en}=r({mutationFn:n(async e=>{let{getData:t,name:r}=e,{rootEntityType:i,entities:o,modelVersion:s}=await t(),n=N.validateAndMigrateState(o,s);J.push(v.ProductSelected(i,W(r)));let a=es?await es(n):n;return G.createConfiguration({rootEntityType:i,data:a})},[N,J,W,G,es]),onSuccess:e=>{Z.goToConfigurationDetail(e.configurationId,e.accessToken)},onError:(e,t)=>{Y.error("Failed to create a new configuration from a preset!",{name:t.name},e),U(e)},onSettled:()=>{L(null)}}),ea=m(()=>{let e,t=(e=h in ee?ee[h].presetCategories:ee.presetCategories,{publishedPresetCategories:(e??[]).map(e=>({...e,presets:e.presets.filter(z(eo))})).filter(e=>e.presets.length>0),seedPresets:B.filter(z(eo))});return t.publishedPresetCategories.length>0?t.publishedPresetCategories.map(e=>({id:e.id,name:e.name,description:e.description,img:e.img,imgAlt:e.imgAlt,presets:e.presets.map(e=>({id:e.configurationId,name:e.name,description:e.description,img:e?.img,imgAlt:e?.imgAlt,detailTitle:e?.detailTitle,detailDescription:e?.detailDescription,getData:async()=>{let t=c(K).with({type:"server"},t=>new g(t.serverUrl,()=>e.readToken,X)).with({type:"local-storage"},()=>new u(N.modelVersion)).with({type:"memory"},()=>new f(N.modelVersion)).exhaustive(),r=await t.getConfigurationRevision(e.configurationId,e.revisionId);return{entities:r.data,rootEntityType:r.rootEntityType,modelVersion:r.modelVersion}}}))})):t.seedPresets.length>0?[{id:"Default",name:"Default Category",presets:t.seedPresets.map((e,t)=>({id:`${t}`,name:e.name??`${e.rootEntityType} preset - ${t}`,description:e.description??"",img:e.img,imgAlt:e.imgAlt,detailTitle:e.detailTitle,detailDescription:e.detailDescription,getData:async()=>({entities:e.initialDomainEntities,rootEntityType:e.rootEntityType,modelVersion:N.modelVersion})}))}]:[]},[ee,X,K,N,eo,B]),el=m(()=>ea.flatMap(e=>e.presets),[ea]),em=n(r=>{let i=el.find(e=>e.id===r);if(void 0===i)throw Error(`Preset with id ${r} not found!`);let{getData:o,name:s}=i,n=!Q&&el.length>1;U(null),L(r),en({getData:o,name:s},{onError:()=>{n&&(er(q),et(W(M),{variant:"error",key:q,persist:!0,preventDuplicate:!0,action:r=>e(t,{color:"inherit",size:"small",onClick:()=>{U(null),er(r)},children:W(R)})}))}})},[el,Q,en,et,er,W]),ed=el.length>1,ep=m(()=>({hasMultiplePresets:ed,presetCategories:ea,selectPreset:em,selectionError:O,creatingPresetId:H}),[em,ed,ea,O,H]);return e(PresetSelectionContext.Provider,{value:ep,children:a})};
@@ -1 +0,0 @@
1
- export declare const useChatEnabled: () => boolean;
@@ -1 +0,0 @@
1
- import{useMemo as t}from"react";import{applicationConfigComponent as e}from"#package/domain";import{useComponents as a,useLogger as o}from"#package/react-sdk";export const useChatEnabled=()=>{let n=o(),r=a({componentTypes:[e]});return t(()=>(r.length>1&&n.warn("Multiple application configs found, using the first one!",{applicationConfigs:r}),r[0]?.state.chatEnabled??!0),[r,n])};
@@ -1 +0,0 @@
1
- import{jsx as t,Fragment as e}from"react/jsx-runtime";import{useCallback as o,useEffect as r,useLayoutEffect as n,useState as a}from"react";import{standardWebComponentEvents as i,standardWebComponentProperties as u}from"#package/domain";import{ApplicationRoutes as l,INTEGRATION_MODE_SETTINGS as s,setConfigurationIdQuery as d,useDispatchWebComponentEvent as g,useRoutingSelectors as m,useRoutingService as c,useWebComponentProperty$ as f,useWebComponentPropertyValue as p}from"#package/react-sdk";import{useOnGoToIndexHandler as x}from"./OnGoToIndexHandler.js";export const useConfiguratorRouting=()=>c();export const ConfiguratorRoutingProvider=T=>{let{children:v}=T,O=c(),b=m(),C=x(),I=p(u.integrationMode),h=f(u.route),j=g(i.navigated),k=o(t=>{h.next(t),s[I].writeCidToUrl&&(t.route===l.Configuration?d(t.configurationId):d(null)),j(t)},[j,I,h]),[G,R]=a(!1);return(r(()=>(O.setOnGoToIndex(C?.handler??null),()=>{O.setOnGoToIndex(null)}),[O,C?.handler]),r(()=>(O.setOnNavigated(k),()=>{O.setOnNavigated(null)}),[O,k]),n(()=>{O.routeTo(h.value),R(!0)},[O,h,I]),r(()=>{let t=h.subscribe(t=>{b.getRoutingState()!==t&&O.routeTo(t)});return()=>{t.unsubscribe()}},[O,b,h]),G)?t(e,{children:v}):null};
@@ -1 +0,0 @@
1
- import{createSystemPhoenixHandler as o}from"#package/domain";import{useSystemPhoenixHandler as e}from"#package/react-sdk";let n="OnGoToIndex";export const createOnGoToIndexHandler=e=>o(n,e);export const useOnGoToIndexHandler=()=>e(n);
@@ -1,2 +0,0 @@
1
- export { ConfiguratorRoutingProvider, useConfiguratorRouting, type UseConfiguratorRouting, } from './ConfiguratorRoutingProvider.js';
2
- export { createOnGoToIndexHandler, useOnGoToIndexHandler, type OnGoToIndexContext, type OnGoToIndexHandler, type CreateOnGoToIndexHandler, } from './OnGoToIndexHandler.js';
@@ -1 +0,0 @@
1
- import{useEffect as e}from"react";import{pairwise as o,startWith as t}from"rxjs";import{match as r}from"ts-pattern";import{standardWebComponentProperties as n}from"#package/domain";import{ApplicationRoutes as i,INTEGRATION_MODE_SETTINGS as a,getAccessTokenFromQuery as f,getConfigurationIdFromQuery as s,setConfigurationIdQuery as u,useRoutingService as d,useWebComponentProperty$ as l,useWebComponentPropertyValue as m}from"#package/react-sdk";let p=Symbol("INITIAL_EMISSION");export const usePowerRoutingLifecycle=()=>{let c=m(n.integrationMode),b=l(n.power),w=b.pipe(t(p),o()),x=d(),I=l(n.route);e(()=>{let e=w.subscribe(([e,o])=>{if((e===p||"standby"===e||"off"===e)&&"on"===o&&a[c].readCidAndCaFromUrl){let e=s(),o=f();if(e){let t={route:i.Configuration,configurationId:e,accessToken:o??void 0};I.next(t),x.routeTo(t)}}if("on"===e&&("standby"===o||"off"===o)&&a[c].resetRouteOnPowerDown){let e={route:i.Index};I.next(e),x.routeTo(e),a[c].writeCidToUrl&&u(null)}});return()=>e.unsubscribe()},[w,c,I,x]),e(()=>{r(b.value).with("standby","off",()=>a[c].powerOnOnCid).with("on",()=>!1).exhaustive()&&s()&&b.next("on")},[b,c])};
@@ -1 +0,0 @@
1
- import{createCustomPhoenixLayoutElement as r}from"#package/domain";import{ConfiguratorErrorPageName as o}from"./ConfiguratorErrorPageElement.js";export const createConfiguratorErrorPage=a=>r(o,a);
@@ -1,10 +0,0 @@
1
- import type { FormElementDefinition } from './form-element-definition.js';
2
- import { type FormRegistry } from './form-registry.js';
3
- /** The elements of every assistant form: the built-ins the SDK prompt lists, with their components. */
4
- export declare const BUILT_IN_FORM_ELEMENTS: readonly FormElementDefinition[];
5
- /**
6
- * The registry of the built-in elements, built on the first form rather than when the module loads:
7
- * compiling validators while the bundle evaluates would break a configurator on a page whose CSP
8
- * forbids eval, even one without an assistant.
9
- */
10
- export declare const getBuiltInFormRegistry: () => FormRegistry;
@@ -1 +0,0 @@
1
- let o;import{match as t}from"ts-pattern";import{ASSISTANT_BUILT_IN_FORM_ELEMENTS as e,extendedSchemaValidator as r}from"#package/domain";import{FormCard as i,FormConfirm as m,FormGroup as n,FormNumber as c,FormOptions as p,FormReply as s,FormSwatch as a,FormText as h}from"../form-elements/index.js";import{createFormRegistry as l}from"./form-registry.js";let f={group:n,choice:p,choices:p,reply:s,card:i,swatch:a,text:h,number:c,confirm:m};export const BUILT_IN_FORM_ELEMENTS=e.map(o=>{let e;return e=f[o.name],t(o.role).with("group","choice","choices",t=>({...o,role:t,component:e})).with("option",t=>({...o,role:t,component:e})).with("input",t=>({...o,role:t,component:e})).exhaustive()});export const getBuiltInFormRegistry=()=>o??=l(BUILT_IN_FORM_ELEMENTS,{schemaValidator:r});
@@ -1,8 +0,0 @@
1
- import{getAssistantFormValueAttribute as e}from"#package/domain";let t=new Set(`a abbr acronym address applet area article aside audio b base basefont bdi bdo big blink blockquote body br
2
- button canvas caption center cite code col colgroup data datalist dd del details dfn dialog dir div dl dt em
3
- embed fieldset figcaption figure font footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html
4
- i iframe image img input ins kbd keygen label legend li link main map mark marquee math menu menuitem meta
5
- meter nav nobr noembed noframes noscript object ol optgroup option output p param picture plaintext pre
6
- progress q rb rp rt rtc ruby s samp script search section select slot small source span strike strong style
7
- sub summary sup svg table tbody td template textarea tfoot th thead time title tr track tt u ul var video wbr
8
- xmp`.split(/\s+/)),r=/^[a-z][a-z0-9-]*$/,a={type:"string"},o=t=>{let r=e(t);return Object.entries({label:a,...r?{value:r}:{},...t.attributes})},n=(e,t)=>{let r=e.get(t);if(r?.definition.role!==t)throw Error(`The form registry has no "${t}" element with the role "${t}". Forms wrap implicit content in it. Register the built-in "${t}".`);return r};export const createFormRegistry=(e,{schemaValidator:a})=>{let i=new Map;for(let n of e){if(!r.test(n.name)||t.has(n.name))throw Error(`The form element "${n.name}" cannot be registered: its name must be lowercase and must not be an HTML element name, so form markup is never read as HTML. Rename the element.`);if(i.has(n.name))throw Error(`The form element "${n.name}" is registered twice. Each tag names one element. Remove or rename one of them.`);let e=new Map(o(n).map(([e,t])=>[e,{attribute:t,validate:a.compile({type:t.type,...t.enum?{enum:t.enum}:{},...null==t.pattern?{}:{pattern:t.pattern}})}]));i.set(n.name,{definition:n,attributes:e})}return{group:n(i,"group"),choice:n(i,"choice"),choices:n(i,"choices"),get:e=>i.get(e)}};
@@ -1,6 +0,0 @@
1
- import type { AssistantFormAttribute, AssistantFormElementDescriptor } from './assistant-form-elements.js';
2
- /**
3
- * The built-in `value` attribute an element takes, or `undefined` when it takes none: options and
4
- * inputs take one, a string unless the element says otherwise.
5
- */
6
- export declare const getAssistantFormValueAttribute: ({ role, valueType, }: AssistantFormElementDescriptor) => AssistantFormAttribute | undefined;
@@ -1 +0,0 @@
1
- export const getAssistantFormValueAttribute=({role:t,valueType:n})=>{if(("option"===t||"input"===t)&&"none"!==n)return{type:n??"string"}};