@salsita-ai/sdk 0.50.0-develop.dd7119ab25 → 0.50.0-develop.df1d25280c

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 (583) hide show
  1. package/dist/application/index.d.ts +1 -0
  2. package/dist/application/index.js +1 -1
  3. package/dist/application/mount-application.d.ts +1 -1
  4. package/dist/application/mount-application.js +1 -1
  5. package/dist/application/mount-configurator.d.ts +19 -0
  6. package/dist/application/mount-configurator.js +1 -0
  7. package/dist/application/mounted-application-runtime.d.ts +4 -0
  8. package/dist/application/mounted-application-runtime.js +1 -0
  9. package/dist/application/register-web-component.d.ts +2 -0
  10. package/dist/application/register-web-component.js +1 -0
  11. package/dist/application-spec/errors/diagnostic-codes.d.ts +9 -0
  12. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  13. package/dist/application-spec/errors/diagnostic-messages.d.ts +10 -1
  14. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  15. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  16. package/dist/application-spec/generate-application/code/templates/application-types.js +6 -6
  17. package/dist/application-spec/generate-application/code/templates/common/doc-comment.d.ts +2 -0
  18. package/dist/application-spec/generate-application/code/templates/common/doc-comment.js +1 -0
  19. package/dist/application-spec/generate-application/code/templates/configurator-globals.d.ts +2 -1
  20. package/dist/application-spec/generate-application/code/templates/configurator-globals.js +19 -6
  21. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +7 -7
  22. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +12 -0
  23. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -0
  24. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +24 -22
  25. package/dist/application-spec/generate-application/code/templates/global-definition/index.d.ts +1 -0
  26. package/dist/application-spec/generate-application/code/templates/global-definition/index.js +1 -1
  27. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +13 -6
  28. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +2 -2
  29. package/dist/application-spec/generate-application/implementations/phx-application-types.d.ts +25 -0
  30. package/dist/application-spec/generate-application/implementations/phx-application-types.js +1 -0
  31. package/dist/application-spec/generate-application/implementations/phx-domain.d.ts +36 -0
  32. package/dist/application-spec/generate-application/implementations/phx-domain.js +1 -0
  33. package/dist/application-spec/generate-application/implementations/phx-model.d.ts +24 -0
  34. package/dist/application-spec/generate-application/implementations/phx-model.js +1 -0
  35. package/dist/application-spec/generate-application/implementations/phx.d.ts +22 -0
  36. package/dist/application-spec/generate-application/implementations/phx.js +1 -0
  37. package/dist/application-spec/generate-application/index.d.ts +2 -0
  38. package/dist/application-spec/generate-application/index.js +1 -1
  39. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.d.ts +3 -3
  40. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.d.ts +7 -4
  41. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.js +1 -1
  42. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.d.ts +16 -0
  43. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.js +1 -0
  44. package/dist/application-spec/generate-application/runtime/application-runtime.d.ts +17 -4
  45. package/dist/application-spec/generate-application/runtime/application-runtime.js +1 -1
  46. package/dist/application-spec/generate-application/runtime/application-spec-slice.d.ts +71 -0
  47. package/dist/application-spec/generate-application/runtime/application-spec-slice.js +1 -0
  48. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.d.ts +3 -3
  49. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.d.ts +7 -5
  50. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.js +1 -1
  51. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.d.ts +16 -0
  52. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.js +1 -0
  53. package/dist/application-spec/generate-application/runtime/create-application.d.ts +57 -0
  54. package/dist/application-spec/generate-application/runtime/create-application.js +1 -0
  55. package/dist/application-spec/generate-application/runtime/index.d.ts +8 -0
  56. package/dist/application-spec/generate-application/runtime/index.js +1 -0
  57. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.d.ts +9 -3
  58. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +1 -1
  59. package/dist/application-spec/generate-application/runtime/spec-runtime.d.ts +21 -0
  60. package/dist/application-spec/generate-application/runtime/spec-runtime.js +1 -0
  61. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.d.ts +3 -2
  62. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.d.ts +44 -9
  63. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.js +1 -1
  64. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +33 -3
  65. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  66. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +9 -0
  67. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -0
  68. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +4 -1
  69. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  70. package/dist/client/authorized-client.d.ts +3 -1
  71. package/dist/client/authorized-client.js +1 -1
  72. package/dist/client/contract.d.ts +17 -0
  73. package/dist/client/index.d.ts +1 -1
  74. package/dist/client/local-authorized-client.d.ts +3 -1
  75. package/dist/client/local-authorized-client.js +1 -1
  76. package/dist/client/memory-authorized-client.d.ts +4 -1
  77. package/dist/client/memory-authorized-client.js +1 -1
  78. package/dist/client/phoenix-api.d.ts +228 -0
  79. package/dist/configurator/ConfiguratorApp.js +1 -1
  80. package/dist/configurator/app-loader-content/index.d.ts +0 -1
  81. package/dist/configurator/app-loader-content/index.js +1 -1
  82. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  83. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +17 -3
  84. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  85. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +34 -7
  86. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  87. package/dist/configurator/application-runtime/extensions/systems/canvas-system.d.ts +8 -0
  88. package/dist/configurator/application-runtime/extensions/systems/canvas-system.js +1 -1
  89. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.d.ts +8 -0
  90. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.js +1 -0
  91. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +23 -1
  92. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  93. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +14 -1
  94. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  95. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +51 -4
  96. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  97. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +14 -5
  98. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  99. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +1 -1
  100. package/dist/configurator/common/configurator-interface.d.ts +59 -6
  101. package/dist/configurator/common/configurator-interface.js +1 -1
  102. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.d.ts +5 -0
  103. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.js +1 -0
  104. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.d.ts +0 -6
  105. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.js +1 -1
  106. package/dist/configurator/configuration-not-found-page/index.d.ts +2 -2
  107. package/dist/configurator/configuration-not-found-page/index.js +1 -1
  108. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.d.ts +3 -3
  109. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.js +1 -1
  110. package/dist/configurator/configurator-context/PreviewContextProvider.js +1 -1
  111. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.d.ts +4 -0
  112. package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.js +1 -1
  113. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.d.ts +3 -3
  114. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.js +1 -1
  115. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.d.ts +0 -5
  116. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.js +1 -1
  117. package/dist/configurator/configurator-error-page/index.d.ts +1 -2
  118. package/dist/configurator/configurator-error-page/index.js +1 -1
  119. package/dist/configurator/index.d.ts +10 -2
  120. package/dist/configurator/index.js +1 -1
  121. package/dist/configurator/pages/default-configurator-elements.d.ts +3 -2
  122. package/dist/configurator/pages/default-configurator-elements.js +1 -1
  123. package/dist/configurator/pages/default-elements/index.d.ts +1 -0
  124. package/dist/configurator/pages/default-elements/index.js +1 -1
  125. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.d.ts +3 -0
  126. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.js +1 -0
  127. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.d.ts +3 -0
  128. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.js +1 -0
  129. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.d.ts +3 -0
  130. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.js +1 -0
  131. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.d.ts +3 -0
  132. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.js +1 -0
  133. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.d.ts +3 -0
  134. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.js +1 -0
  135. package/dist/configurator/pages/default-elements/scene-controls/index.d.ts +6 -0
  136. package/dist/configurator/pages/default-elements/scene-controls/index.js +1 -0
  137. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.d.ts +6 -0
  138. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.js +1 -0
  139. package/dist/configurator/pages/error-boundaries/LoadingErrorBoundary.js +1 -1
  140. package/dist/configurator/scene/index.d.ts +1 -0
  141. package/dist/configurator/scene/index.js +1 -1
  142. package/dist/configurator/scene/scene-controls/ToolFab.d.ts +4 -0
  143. package/dist/configurator/scene/scene-controls/ToolFab.js +1 -1
  144. package/dist/configurator/scene/scene-controls/use-scene-control-tooltip.d.ts +2 -1
  145. package/dist/configurator/scene/scene-entity/scene-controls/SceneEntityHtmlHotspots.js +1 -1
  146. package/dist/configurator/toolbar-actions/index.d.ts +3 -0
  147. package/dist/configurator/toolbar-actions/index.js +1 -0
  148. package/dist/configurator/toolbar-actions/use-assistant-panel.d.ts +18 -0
  149. package/dist/configurator/toolbar-actions/use-assistant-panel.js +1 -0
  150. package/dist/configurator/toolbar-actions/use-measurements.d.ts +35 -0
  151. package/dist/configurator/toolbar-actions/use-measurements.js +1 -0
  152. package/dist/configurator/toolbar-actions/use-toolbar-actions.d.ts +100 -0
  153. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -0
  154. package/dist/configurator/toolbar-actions/use-toolbar-help.d.ts +7 -0
  155. package/dist/configurator/toolbar-actions/use-toolbar-help.js +1 -0
  156. package/dist/configurator/ui/assistant/AssistantChips.d.ts +3 -2
  157. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  158. package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +1 -1
  159. package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -1
  160. package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +8 -0
  161. package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -0
  162. package/dist/configurator/ui/assistant/alert/index.d.ts +2 -0
  163. package/dist/configurator/ui/assistant/alert/index.js +1 -0
  164. package/dist/configurator/ui/assistant/alert/remark-alerts.d.ts +10 -0
  165. package/dist/configurator/ui/assistant/alert/remark-alerts.js +1 -0
  166. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -1
  167. package/dist/configurator/ui/assistant/form/compose-answer.d.ts +1 -1
  168. package/dist/configurator/ui/assistant/form/compose-answer.js +1 -1
  169. package/dist/configurator/ui/assistant/form/form-model.d.ts +3 -4
  170. package/dist/configurator/ui/assistant/form/form-state.d.ts +1 -1
  171. package/dist/configurator/ui/assistant/form/index.d.ts +2 -0
  172. package/dist/configurator/ui/assistant/form/index.js +1 -1
  173. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +3 -2
  174. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -1
  175. package/dist/configurator/ui/assistant/form/read-form-attributes.d.ts +1 -1
  176. package/dist/configurator/ui/assistant/form/read-form-attributes.js +1 -1
  177. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +3 -0
  178. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -0
  179. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +31 -0
  180. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.js +1 -0
  181. package/dist/configurator/ui/assistant/form/{form-element-definition.d.ts → registry/form-element-definition.d.ts} +3 -1
  182. package/dist/configurator/ui/assistant/form/registry/form-element-definition.js +1 -0
  183. package/dist/configurator/ui/assistant/form/{form-registry.d.ts → registry/form-registry.d.ts} +2 -2
  184. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -0
  185. package/dist/configurator/ui/assistant/form/registry/index.d.ts +6 -0
  186. package/dist/configurator/ui/assistant/form/registry/index.js +1 -0
  187. package/dist/configurator/ui/assistant/form/registry/use-form-registry.d.ts +8 -0
  188. package/dist/configurator/ui/assistant/form/registry/use-form-registry.js +1 -0
  189. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +9 -0
  190. package/dist/configurator/ui/assistant/form-elements/FormCard.js +1 -0
  191. package/dist/configurator/ui/assistant/form-elements/FormConfirm.d.ts +9 -0
  192. package/dist/configurator/ui/assistant/form-elements/FormConfirm.js +1 -0
  193. package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +4 -1
  194. package/dist/configurator/ui/assistant/form-elements/FormNumber.d.ts +9 -0
  195. package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -0
  196. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +4 -1
  197. package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +4 -1
  198. package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -1
  199. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +10 -0
  200. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +1 -0
  201. package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +4 -1
  202. package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -1
  203. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.d.ts +10 -0
  204. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.js +1 -0
  205. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +20 -16
  206. package/dist/configurator/ui/assistant/form-elements/index.d.ts +4 -0
  207. package/dist/configurator/ui/assistant/form-elements/index.js +1 -1
  208. package/dist/configurator/ui/assistant/index.d.ts +3 -0
  209. package/dist/configurator/ui/assistant/index.js +1 -1
  210. package/dist/configurator/ui/assistant/resource-image/index.d.ts +1 -1
  211. package/dist/configurator/ui/assistant/resource-image/index.js +1 -1
  212. package/dist/configurator/ui/assistant/resource-image/resource-path.d.ts +0 -9
  213. package/dist/configurator/ui/assistant/resource-image/resource-path.js +1 -1
  214. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +9 -0
  215. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -0
  216. package/dist/configurator/ui/assistant/screenshots/index.d.ts +2 -0
  217. package/dist/configurator/ui/assistant/screenshots/index.js +1 -0
  218. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +22 -0
  219. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -0
  220. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +8 -0
  221. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -0
  222. package/dist/configurator/ui/assistant/streamed-markdown.d.ts +2 -2
  223. package/dist/configurator/ui/assistant/streamed-markdown.js +2 -2
  224. package/dist/configurator/ui/assistant/tool-chip.js +1 -1
  225. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  226. package/dist/configurator/ui/configurator-layout/slots/canvas/SharedCanvas.js +1 -1
  227. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.d.ts +5 -0
  228. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.js +1 -0
  229. package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
  230. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -1
  231. package/dist/configurator/ui/index.d.ts +1 -0
  232. package/dist/configurator/ui/index.js +1 -1
  233. package/dist/configurator/ui/legacy/layout/common/ReactiveInterfaceLayout.js +1 -1
  234. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.d.ts +0 -7
  235. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.js +2 -2
  236. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -1
  237. package/dist/configurator/ui/phoenix-layout-elements/LanguageMenuAction.js +1 -1
  238. package/dist/configurator/ui/phoenix-layout-elements/LanguageToolbarButton.js +1 -1
  239. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsMenuAction.js +1 -1
  240. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsToolbarButton.js +1 -1
  241. package/dist/configurator/ui/phoenix-layout-elements/ShareToolbarButton.js +1 -1
  242. package/dist/configurator/ui/phoenix-layout-elements/index.d.ts +8 -1
  243. package/dist/configurator/ui/phoenix-layout-elements/index.js +1 -1
  244. package/dist/configurator/ui/phoenix-layout-elements/measurements/DimensionUnitSelector.js +1 -1
  245. package/dist/configurator/ui/phoenix-layout-elements/measurements/MeasurementsIndicatorsSwitch.js +1 -1
  246. package/dist/configurator/ui/phoenix-layout-elements/share/ShareModal.js +1 -1
  247. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.d.ts +7 -8
  248. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.js +1 -1
  249. package/dist/configurator/ui/preset-layout/PresetUi.d.ts +0 -2
  250. package/dist/configurator/ui/preset-layout/PresetUi.js +1 -1
  251. package/dist/configurator/ui/preset-layout/index.d.ts +6 -1
  252. package/dist/configurator/ui/preset-layout/index.js +1 -1
  253. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.js +1 -1
  254. package/dist/docs/complex-use-cases/focus-mode.mdx +2 -0
  255. package/dist/docs/fabs/basic.mdx +4 -0
  256. package/dist/docs/index.json +95 -1
  257. package/dist/docs/integrations/webcomponent-api/basics.mdx +2 -0
  258. package/dist/docs/layouts/custom-layout.mdx +320 -158
  259. package/dist/docs/layouts/gallery/ardent-compressor.mdx +3516 -0
  260. package/dist/docs/layouts/gallery/corvid-drone.mdx +3428 -0
  261. package/dist/docs/layouts/gallery/fenwick-window.mdx +2803 -0
  262. package/dist/docs/layouts/gallery/ferrule-bar-station.mdx +6567 -0
  263. package/dist/docs/layouts/gallery/kestrel-kettle.mdx +1858 -0
  264. package/dist/docs/layouts/gallery/nightjar-guitar.mdx +3698 -0
  265. package/dist/docs/layouts/gallery/sunfold-solar.mdx +2683 -0
  266. package/dist/docs/layouts/gallery/tidepool-aquascape.mdx +5203 -0
  267. package/dist/docs/other-features/client-side-rendering/declarative.mdx +1 -1
  268. package/dist/docs/other-features/navigation-hotspot.mdx +2 -0
  269. package/dist/docs/phoenix/configurator-interface.mdx +76 -7
  270. package/dist/docs/phoenix/sdk-builder-workflow.mdx +5 -3
  271. package/dist/docs/phoenix/sessions-and-access.mdx +2 -0
  272. package/dist/docs/selection-and-highlight/hotspots.mdx +2 -0
  273. package/dist/domain/application/assistant/assistant-manifest.d.ts +16 -1
  274. package/dist/domain/application/assistant/assistant-resolved-manifest.d.ts +8 -1
  275. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  276. package/dist/domain/application/assistant/form/assistant-form-element-name.d.ts +11 -0
  277. package/dist/domain/application/assistant/form/assistant-form-element-name.js +8 -0
  278. package/dist/domain/application/assistant/form/assistant-form-elements.d.ts +174 -0
  279. package/dist/domain/application/assistant/form/assistant-form-elements.js +1 -0
  280. package/dist/domain/application/assistant/form/assistant-resource-path.d.ts +10 -0
  281. package/dist/domain/application/assistant/form/assistant-resource-path.js +1 -0
  282. package/dist/domain/application/assistant/form/index.d.ts +4 -0
  283. package/dist/domain/application/assistant/form/index.js +1 -0
  284. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +3 -0
  285. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  286. package/dist/domain/application/assistant/index.d.ts +2 -3
  287. package/dist/domain/application/assistant/index.js +1 -1
  288. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -1
  289. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +2 -0
  290. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -1
  291. package/dist/domain/application/configurator-builder.d.ts +7 -1
  292. package/dist/domain/application/configurator-builder.js +1 -1
  293. package/dist/domain/application/index.d.ts +1 -1
  294. package/dist/domain/application/index.js +1 -1
  295. package/dist/domain/application/standard-properties.js +1 -1
  296. package/dist/domain/application/web-component-property.d.ts +3 -1
  297. package/dist/domain/application/web-component-property.js +1 -1
  298. package/dist/domain/available-system-components.d.ts +1 -1
  299. package/dist/domain/available-system-components.js +1 -1
  300. package/dist/domain/domain-builder.d.ts +9 -3
  301. package/dist/domain/domain-builder.js +1 -1
  302. package/dist/domain/domain-context/store-system/store-system.d.ts +5 -0
  303. package/dist/domain/domain-context/store-system/store-system.js +1 -1
  304. package/dist/domain/domain-runtime/application.d.ts +39 -0
  305. package/dist/domain/domain-runtime/application.js +1 -0
  306. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +1 -0
  307. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  308. package/dist/domain/domain-runtime/domain-runtime.d.ts +44 -4
  309. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  310. package/dist/domain/domain-runtime/environment/initialize.d.ts +1 -1
  311. package/dist/domain/domain-runtime/environment/types.d.ts +1 -1
  312. package/dist/domain/domain-runtime/errors/implementation-error-collector.d.ts +2 -0
  313. package/dist/domain/domain-runtime/errors/implementation-error-collector.js +1 -1
  314. package/dist/domain/domain-runtime/index.d.ts +2 -1
  315. package/dist/domain/domain-runtime/index.js +1 -1
  316. package/dist/domain/domain-runtime/spec/index.d.ts +1 -1
  317. package/dist/domain/domain-runtime/spec/index.js +1 -1
  318. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  319. package/dist/domain/domain-runtime/spec/module-checks/element-registration.d.ts +15 -1
  320. package/dist/domain/domain-runtime/spec/module-checks/element-registration.js +1 -1
  321. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.d.ts +12 -0
  322. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.js +1 -0
  323. package/dist/domain/domain-runtime/spec/module-checks/index.d.ts +3 -1
  324. package/dist/domain/domain-runtime/spec/module-checks/index.js +1 -1
  325. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.d.ts +23 -0
  326. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.js +1 -0
  327. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.d.ts +3 -4
  328. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.js +1 -1
  329. package/dist/domain/domain-runtime/spec/selectors.d.ts +3 -1
  330. package/dist/domain/domain-runtime/spec/selectors.js +1 -1
  331. package/dist/domain/domain-runtime/web-component/actions.d.ts +3 -0
  332. package/dist/domain/domain-runtime/web-component/actions.js +1 -1
  333. package/dist/domain/domain-runtime/web-component/initialize.d.ts +1 -0
  334. package/dist/domain/domain-runtime/web-component/initialize.js +1 -1
  335. package/dist/domain/domain-runtime/web-component/selectors.d.ts +2 -0
  336. package/dist/domain/domain-runtime/web-component/selectors.js +1 -1
  337. package/dist/domain/domain-runtime/web-component/types.d.ts +6 -3
  338. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +24 -0
  339. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -0
  340. package/dist/domain/extensions/{client-side-image.d.ts → export-images/client-side-image.d.ts} +2 -2
  341. package/dist/domain/extensions/export-images/client-side-image.js +1 -0
  342. package/dist/domain/extensions/export-images/index.d.ts +3 -0
  343. package/dist/domain/extensions/export-images/index.js +1 -0
  344. package/dist/domain/extensions/{save-template-thumbnail.d.ts → export-images/save-template-thumbnail.d.ts} +2 -2
  345. package/dist/domain/extensions/export-images/save-template-thumbnail.js +1 -0
  346. package/dist/domain/extensions/index.d.ts +1 -2
  347. package/dist/domain/extensions/index.js +1 -1
  348. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +9 -0
  349. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  350. package/dist/editor/domain-editors/apply-spec-update.d.ts +10 -2
  351. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  352. package/dist/editor/domain-editors/use-implementation-files.d.ts +6 -14
  353. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  354. package/dist/editor/screenshot/ScreenshotHandler.js +1 -1
  355. package/dist/i18n/locales/cs/messages.js +1 -1
  356. package/dist/i18n/locales/da/messages.js +1 -1
  357. package/dist/i18n/locales/de/messages.js +1 -1
  358. package/dist/i18n/locales/de-AT/messages.js +1 -1
  359. package/dist/i18n/locales/en/messages.js +1 -1
  360. package/dist/i18n/locales/en-AU/messages.js +1 -1
  361. package/dist/i18n/locales/en-GB/messages.js +1 -1
  362. package/dist/i18n/locales/es/messages.js +1 -1
  363. package/dist/i18n/locales/fr/messages.js +1 -1
  364. package/dist/i18n/locales/hu/messages.js +1 -1
  365. package/dist/i18n/locales/it/messages.js +1 -1
  366. package/dist/i18n/locales/nl/messages.js +1 -1
  367. package/dist/i18n/locales/pl/messages.js +1 -1
  368. package/dist/i18n/locales/pt/messages.js +1 -1
  369. package/dist/i18n/locales/ro/messages.js +1 -1
  370. package/dist/i18n/locales/sk/messages.js +1 -1
  371. package/dist/i18n/locales/tr/messages.js +1 -1
  372. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  373. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  374. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +16 -0
  375. package/dist/legacy/domain-spec/spec/domain-spec.js +1 -1
  376. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/claude-md.d.ts +1 -1
  377. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/cursor-rules.d.ts +1 -1
  378. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.d.ts +1 -1
  379. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.js +11 -5
  380. package/dist/react-sdk/application-runtime/common-services/analytics/analytics-service.d.ts +1 -1
  381. package/dist/react-sdk/application-runtime/common-services/initialize.d.ts +2 -2
  382. package/dist/react-sdk/application-runtime/hooks/index.d.ts +2 -0
  383. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  384. package/dist/react-sdk/application-runtime/hooks/loading/index.d.ts +5 -0
  385. package/dist/react-sdk/application-runtime/hooks/loading/index.js +1 -0
  386. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.d.ts +11 -0
  387. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.js +1 -0
  388. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.d.ts +8 -0
  389. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.js +1 -0
  390. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.d.ts +7 -0
  391. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.js +1 -0
  392. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.d.ts +9 -0
  393. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.js +1 -0
  394. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.d.ts +24 -0
  395. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.js +1 -0
  396. package/dist/react-sdk/application-runtime/hooks/responsive/index.d.ts +3 -0
  397. package/dist/react-sdk/application-runtime/hooks/responsive/index.js +1 -0
  398. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.d.ts +9 -0
  399. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.js +1 -0
  400. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +26 -0
  401. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.js +1 -0
  402. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.d.ts +10 -0
  403. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.js +1 -0
  404. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.d.ts +24 -0
  405. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -0
  406. package/dist/react-sdk/application-runtime/hooks/use-access-service.d.ts +5 -0
  407. package/dist/react-sdk/application-runtime/hooks/use-access-service.js +1 -1
  408. package/dist/react-sdk/application-runtime/hooks/use-phoenix-element-slots.d.ts +2 -1
  409. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.d.ts +4 -11
  410. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.js +1 -1
  411. package/dist/react-sdk/application-runtime/hooks/use-web-component.d.ts +5 -0
  412. package/dist/react-sdk/application-runtime/hooks/use-web-component.js +1 -1
  413. package/dist/react-sdk/application-runtime/host-properties/actions.d.ts +15 -0
  414. package/dist/react-sdk/application-runtime/host-properties/actions.js +1 -0
  415. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.d.ts +30 -0
  416. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.js +1 -0
  417. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.d.ts +7 -0
  418. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.js +1 -0
  419. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.d.ts +21 -0
  420. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.js +1 -0
  421. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.d.ts +42 -0
  422. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.js +1 -0
  423. package/dist/react-sdk/application-runtime/host-properties/index.d.ts +8 -0
  424. package/dist/react-sdk/application-runtime/host-properties/index.js +1 -0
  425. package/dist/react-sdk/application-runtime/host-properties/initialize.d.ts +7 -0
  426. package/dist/react-sdk/application-runtime/host-properties/initialize.js +1 -0
  427. package/dist/react-sdk/application-runtime/host-properties/selectors.d.ts +54 -0
  428. package/dist/react-sdk/application-runtime/host-properties/selectors.js +1 -0
  429. package/dist/react-sdk/application-runtime/host-properties/types.d.ts +18 -0
  430. package/dist/react-sdk/application-runtime/index.d.ts +3 -0
  431. package/dist/react-sdk/application-runtime/integration/initialize.d.ts +7 -6
  432. package/dist/react-sdk/application-runtime/integration/initialize.js +1 -1
  433. package/dist/react-sdk/application-runtime/integration/selectors.d.ts +11 -2
  434. package/dist/react-sdk/application-runtime/integration/selectors.js +1 -1
  435. package/dist/react-sdk/application-runtime/integration/types.d.ts +5 -2
  436. package/dist/react-sdk/application-runtime/loading/actions.d.ts +45 -0
  437. package/dist/react-sdk/application-runtime/loading/actions.js +1 -0
  438. package/dist/react-sdk/application-runtime/loading/index.d.ts +4 -0
  439. package/dist/react-sdk/application-runtime/loading/index.js +1 -0
  440. package/dist/react-sdk/application-runtime/loading/initialize.d.ts +3 -0
  441. package/dist/react-sdk/application-runtime/loading/initialize.js +1 -0
  442. package/dist/react-sdk/application-runtime/loading/selectors.d.ts +18 -0
  443. package/dist/react-sdk/application-runtime/loading/selectors.js +1 -0
  444. package/dist/react-sdk/application-runtime/loading/types.d.ts +59 -0
  445. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  446. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.d.ts +6 -0
  447. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.js +1 -1
  448. package/dist/react-sdk/application-runtime/provider/ApplicationType.d.ts +7 -0
  449. package/dist/react-sdk/application-runtime/provider/ApplicationType.js +1 -1
  450. package/dist/react-sdk/application-runtime/responsive/actions.d.ts +47 -0
  451. package/dist/react-sdk/application-runtime/responsive/actions.js +1 -0
  452. package/dist/react-sdk/application-runtime/responsive/index.d.ts +4 -0
  453. package/dist/react-sdk/application-runtime/responsive/index.js +1 -0
  454. package/dist/react-sdk/application-runtime/responsive/initialize.d.ts +3 -0
  455. package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -0
  456. package/dist/react-sdk/application-runtime/responsive/selectors.d.ts +20 -0
  457. package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -0
  458. package/dist/react-sdk/application-runtime/responsive/types.d.ts +104 -0
  459. package/dist/react-sdk/application-runtime/routing/routing-service.d.ts +34 -2
  460. package/dist/react-sdk/application-runtime/routing/routing-service.js +1 -1
  461. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +313 -10
  462. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  463. package/dist/react-sdk/domain-application-context/BackendDataProvider.js +1 -1
  464. package/dist/react-sdk/domain-application-context/FrontendDataProvider.js +1 -1
  465. package/dist/react-sdk/domain-application-context/PublishedDataProvider.js +1 -1
  466. package/dist/react-sdk/domain-context/common-hooks/index.d.ts +1 -0
  467. package/dist/react-sdk/domain-context/common-hooks/index.js +1 -1
  468. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.d.ts +23 -0
  469. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.js +1 -0
  470. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +1 -0
  471. package/dist/react-sdk/domain-context/index.d.ts +4 -0
  472. package/dist/react-sdk/domain-context/index.js +1 -1
  473. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +8 -0
  474. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -0
  475. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.d.ts +24 -0
  476. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.js +1 -0
  477. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.d.ts +32 -0
  478. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.js +1 -0
  479. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.js +1 -1
  480. package/dist/react-sdk/elements/index.d.ts +0 -1
  481. package/dist/react-sdk/index.d.ts +2 -1
  482. package/dist/react-sdk/index.js +1 -1
  483. package/dist/react-sdk/loading-state/LoaderHost.d.ts +20 -0
  484. package/dist/react-sdk/loading-state/LoaderHost.js +1 -0
  485. package/dist/react-sdk/loading-state/built-in-loading-phase.d.ts +9 -0
  486. package/dist/react-sdk/loading-state/built-in-loading-phase.js +1 -0
  487. package/dist/react-sdk/loading-state/create-app-loader.d.ts +18 -0
  488. package/dist/react-sdk/loading-state/create-app-loader.js +1 -0
  489. package/dist/react-sdk/loading-state/index.d.ts +4 -2
  490. package/dist/react-sdk/loading-state/index.js +1 -1
  491. package/dist/react-sdk/loading-state/{LoadingStateProvider.d.ts → loading-state-hooks.d.ts} +3 -12
  492. package/dist/react-sdk/loading-state/loading-state-hooks.js +1 -0
  493. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.d.ts +17 -0
  494. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.js +1 -0
  495. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.d.ts +17 -0
  496. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.js +1 -0
  497. package/dist/react-sdk/page-elements/configurator-error-page-props.js +1 -0
  498. package/dist/{configurator/configuration-not-found-page → react-sdk/page-elements}/create-configuration-not-found-page.d.ts +7 -1
  499. package/dist/react-sdk/page-elements/create-configuration-not-found-page.js +1 -0
  500. package/dist/{configurator/configurator-error-page → react-sdk/page-elements}/create-configurator-error-page.d.ts +6 -1
  501. package/dist/react-sdk/page-elements/create-configurator-error-page.js +1 -0
  502. package/dist/react-sdk/page-elements/create-preset-ui.d.ts +9 -0
  503. package/dist/react-sdk/page-elements/create-preset-ui.js +1 -0
  504. package/dist/react-sdk/page-elements/index.d.ts +6 -0
  505. package/dist/react-sdk/page-elements/index.js +1 -0
  506. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.d.ts +36 -0
  507. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.js +1 -0
  508. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.d.ts +44 -0
  509. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.js +1 -0
  510. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.d.ts +38 -0
  511. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.js +1 -0
  512. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.d.ts +30 -0
  513. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.js +1 -0
  514. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.d.ts +30 -0
  515. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.js +1 -0
  516. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.d.ts +9 -0
  517. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.js +1 -0
  518. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.d.ts +9 -0
  519. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.js +1 -0
  520. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.d.ts +10 -0
  521. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.js +1 -0
  522. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.d.ts +9 -0
  523. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.js +1 -0
  524. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.d.ts +9 -0
  525. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.js +1 -0
  526. package/dist/react-sdk/scene-control-elements/index.d.ts +11 -0
  527. package/dist/react-sdk/scene-control-elements/index.js +1 -0
  528. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.d.ts +5 -0
  529. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.js +1 -0
  530. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  531. package/dist/react-sdk/web-component/create-web-component.js +1 -1
  532. package/dist/react-sdk/web-component/god-mode/god-mode-registry.d.ts +30 -0
  533. package/dist/react-sdk/web-component/god-mode/god-mode-registry.js +1 -0
  534. package/dist/react-sdk/web-component/god-mode/index.d.ts +1 -0
  535. package/dist/react-sdk/web-component/god-mode/index.js +1 -0
  536. package/dist/ui-sdk/icons/__generated/Lightbulb.d.ts +3 -0
  537. package/dist/ui-sdk/icons/__generated/Lightbulb.js +1 -0
  538. package/dist/ui-sdk/icons/__generated/XCircle.d.ts +3 -0
  539. package/dist/ui-sdk/icons/__generated/XCircle.js +1 -0
  540. package/dist/ui-sdk/icons/__generated/index.d.ts +4 -0
  541. package/dist/ui-sdk/icons/__generated/index.js +1 -1
  542. package/dist/ui-sdk/icons/icons-registry.js +1 -1
  543. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.d.ts +2 -2
  544. package/dist/ui-sdk/responsive-application/responsive-state-store.d.ts +11 -9
  545. package/dist/ui-sdk/responsive-application/use-store-responsive-info.js +1 -1
  546. package/dist/ui-sdk/theme/types.d.ts +5 -1
  547. package/package.json +13 -3
  548. package/schema/domain-spec.json +140 -0
  549. package/dist/configurator/app-loader-content/app-loader-content-name.d.ts +0 -5
  550. package/dist/configurator/app-loader-content/app-loader-content-name.js +0 -1
  551. package/dist/configurator/configuration-not-found-page/create-configuration-not-found-page.js +0 -1
  552. package/dist/configurator/configurator-error-page/create-configurator-error-page.js +0 -1
  553. package/dist/configurator/ui/assistant/form/built-in-form-registry.d.ts +0 -10
  554. package/dist/configurator/ui/assistant/form/built-in-form-registry.js +0 -1
  555. package/dist/configurator/ui/assistant/form/form-registry.js +0 -8
  556. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.d.ts +0 -4
  557. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.js +0 -1
  558. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.d.ts +0 -4
  559. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.js +0 -1
  560. package/dist/domain/application/assistant/assistant-form-elements.d.ts +0 -28
  561. package/dist/domain/application/assistant/assistant-form-elements.js +0 -1
  562. package/dist/domain/extensions/client-side-image.js +0 -1
  563. package/dist/domain/extensions/save-template-thumbnail.js +0 -1
  564. package/dist/react-sdk/application-runtime/runtime/god-mode.d.ts +0 -19
  565. package/dist/react-sdk/application-runtime/runtime/god-mode.js +0 -1
  566. package/dist/react-sdk/loading-state/LoadingStateProvider.js +0 -1
  567. package/dist/react-sdk/loading-state/loading-state-manager.d.ts +0 -37
  568. package/dist/react-sdk/loading-state/loading-state-manager.js +0 -1
  569. package/dist/react-sdk/responsive-state/ResponsiveStateProvider.d.ts +0 -25
  570. package/dist/react-sdk/responsive-state/ResponsiveStateProvider.js +0 -1
  571. package/dist/react-sdk/responsive-state/canvas-padding.d.ts +0 -14
  572. package/dist/react-sdk/responsive-state/index.d.ts +0 -5
  573. package/dist/react-sdk/responsive-state/index.js +0 -1
  574. package/dist/react-sdk/responsive-state/responsive-state-manager.d.ts +0 -111
  575. package/dist/react-sdk/responsive-state/responsive-state-manager.js +0 -1
  576. package/dist/react-sdk/responsive-state/use-responsive-state-manager.d.ts +0 -10
  577. package/dist/react-sdk/responsive-state/use-responsive-state-manager.js +0 -1
  578. package/dist/react-sdk/responsive-state/use-responsive-state.d.ts +0 -11
  579. package/dist/react-sdk/responsive-state/use-responsive-state.js +0 -1
  580. /package/dist/{configurator/ui/assistant/form/form-element-definition.js → react-sdk/application-runtime/host-properties/types.js} +0 -0
  581. /package/dist/react-sdk/{elements/configurator-error-page-props.js → application-runtime/loading/types.js} +0 -0
  582. /package/dist/react-sdk/{responsive-state/canvas-padding.js → application-runtime/responsive/types.js} +0 -0
  583. /package/dist/react-sdk/{elements → page-elements}/configurator-error-page-props.d.ts +0 -0
@@ -22,12 +22,18 @@ Declarative 3D product configurator built with Phoenix SDK. Domain model defined
22
22
  - \`src/components/\` — ECS system components (\`phx.domain.attachComponent.withEntity()\`)
23
23
  - \`src/elements/\` — Page-level React components (\`phx.frontend.createCustomPhoenixLayoutElement()\`)
24
24
  - \`ConfiguratorLayout\`: a layout element with this name replaces everything the built-in layout renders for a loaded configuration, in owner and read mode, finalization included. Prefer arranging the spec's layout components; write one for shell-level changes, such as moving the sidebar or adding an area the built-in layout has no place for
25
- - Mount \`LayoutSlots.SharedCanvas\` (from \`@salsita-ai/sdk/configurator\`) in a positioned root covering the page, or the app loader stays on screen; put the UI above it, positioned and after it in the markup. Call \`useSceneSafeArea()\` (same import) and put \`containerRef\` on the element covering the whole canvas and \`safeAreaRef\` on the region the UI leaves free, with \`pointerEvents: 'none'\`, so the camera frames the scene there
25
+ - Mount \`LayoutSlots.SharedCanvas\` (from \`@salsita-ai/sdk/configurator\`) in a positioned root covering the page; put the UI above it, positioned and after it in the markup. With the canvas mounted the app loader waits until the scene has loaded; a layout without a canvas is not held by the loader. Call \`phx.frontend.useSceneSafeArea()\` and put \`containerRef\` on the element covering the whole canvas and \`safeAreaRef\` on the region the UI leaves free, with \`pointerEvents: 'none'\`, so the camera frames the scene there
26
26
  - Sidebar moved, contents as the spec configures them: mount \`LayoutSlots.DesktopSidebar\` in a positioned container that sets its size, with \`side="start"\` on the left; \`docs/layouts/sidebar/in-a-custom-layout.mdx\` is the whole layout
27
- - Your own UI: "Hooks for a Project Layout" in \`docs/phoenix/configurator-interface.mdx\` lists the hooks with what each returns (\`pnpm phoenix docs -r docs/phoenix/configurator-interface.mdx\`), \`docs/phoenix/layout-slots.mdx\` the built-in pieces you can still mount, and \`docs/layouts/custom-layout.mdx\` is a worked example
28
- - Messages: mount \`LayoutSlots.Services\` for the built-in snackbars, or show violations, side-effect hints and errors yourself with \`phx.frontend.useConfiguratorMessages(onMessage)\`, not both. Either way mount a snackbar root (\`LayoutSlots.DesktopSnackbarsRoot\` or \`LayoutSlots.MobileSnackbarsRoot\`): save and built-in action errors are always snackbars
29
- - Finalize over the spec's \`finalizeAction\` components, each naming a handler registered with \`phx.frontend.createPhoenixHandler\`: run each with \`phx.frontend.useFinalizeAction(handler)\` in a component of its own wrapped in \`PhoenixHandlerBoundary\` (from \`@salsita-ai/sdk/react\`), or mount \`FinalizeActions\` (from \`@salsita-ai/sdk/configurator\`) for the built-in buttons. \`finalizePage\` and \`finalizeButton\` are legacy
30
- - Read mode and fullscreen are the layout's job, no hook enforces them: hide what a viewer must not change while \`phx.frontend.useAccessService().accessInfo.viewMode\` is \`true\`, and remove panels while \`phx.frontend.useIsFullscreenActive()\` is set; \`phx.frontend.useSetFullscreen()\` returns its setter
27
+ - Your own UI: "Hooks for a Project Layout" in \`docs/phoenix/configurator-interface.mdx\` lists the hooks with what each returns (\`pnpm phoenix docs -r docs/phoenix/configurator-interface.mdx\`), \`docs/phoenix/layout-slots.mdx\` the built-in pieces you can still mount, and \`docs/layouts/custom-layout.mdx\` is a worked example. Call the hooks as \`phx.frontend.useX()\`; besides those below, these are often needed: \`usePreview()\` (\`isPreview\` while the preview start screen shows), \`useCloseAction()\` (the host's close action or \`null\`), \`useActiveViewports()\` (the container's breakpoints, \`null\` until measured, \`desktop\` above 768 px: the desktop/phone switch), \`useResolveLocalizable()\` and \`useLocalizable(text)\` (spec texts to strings), \`useIsCloningAllowed()\` (a read-mode "edit a copy" action with \`LayoutSlots.CloneToEditDialog\`)
28
+ - Undo and redo: \`phx.frontend.useUndoRedo()\` returns \`{ canUndo, canRedo, undo, redo }\`; disable each button from \`canUndo\`/\`canRedo\`
29
+ - Tabs: \`phx.frontend.useTabNavigation()\` returns \`{ source, tabs, activeTab, select }\` for the spec's \`sidebarTabs\` (of the selected entity) or \`horizontalTabs\`; render \`tabs\` (each \`{ index, label, icon, state, isActive }\`, \`icon\` a PhxIcon name) and call \`select(tab.index)\` on click. Pass \`{ source: 'sidebarTabs' }\` or \`{ source: 'horizontalTabs' }\` when the layout shows one kind only. Not \`LayoutSlots.useSidebarTabs()\`: it serves the built-in sidebar and returns no tabs while its summary shows
30
+ - Steps: \`phx.frontend.useStepNavigation()\` returns \`{ steps, activeStep, activeIndex, isFirst, isLast, canGoNext, canGoPrevious, next, previous, goTo }\` for the spec's \`navigationSteps\`; render \`steps\` (each \`{ index, label, state, status }\`, \`status\` \`'complete' | 'active' | 'upcoming'\`), call \`next()\`/\`previous()\` for Back and Next and \`goTo(step.index)\` from a stepper. It enforces no order and no validity: enable only \`'complete'\` steps for an "earlier steps only" stepper, and to block moving on while the configuration has a problem, require \`phx.frontend.useStateValidity().severity !== 'warning'\` besides \`canGoNext\`: a change with a \`fixable\` or \`fatal\` violation is rejected, so the configuration is never invalid, and a \`warning\` is the problem that stays (it blocks finalizing too). \`useSteps\` and \`useHasSteps\` from \`@salsita-ai/sdk/configurator\` are deprecated
31
+ - Messages: mount \`LayoutSlots.Services\` for the built-in snackbars, or show violations, side-effect hints, errors and failed saves yourself with \`phx.frontend.useConfiguratorMessages(onMessage)\`, not both. A failed save arrives as \`saveError\`, the next successful save as \`saveRecovery\`; a layout that mounts neither shows no sign of a failed save. Either way mount a snackbar root (\`LayoutSlots.DesktopSnackbarsRoot\` or \`LayoutSlots.MobileSnackbarsRoot\`): errors of the built-in actions are always snackbars
32
+ - Finalize over the spec's \`finalizeAction\` components, each naming a handler registered with \`phx.frontend.createPhoenixHandler\`: \`phx.frontend.useFinalizeActions()\` returns \`{ actions, primary, secondary, disabled, hints }\`; render \`primary\` (and \`secondary\` in a menu or list) in a loop, each action \`{ key, label, title, icon, run, isPending, error, disabled }\`, and call \`action.run()\` on click (its promise never rejects; show \`action.error\` on failure). The configurator runs the handlers itself, outside the layout, so a handler must not rely on a provider the layout adds. For one known handler, \`phx.frontend.useFinalizeAction(handler)\` in a component wrapped in \`PhoenixHandlerBoundary\` (from \`@salsita-ai/sdk/react\`) works too; \`FinalizeActions\` (from \`@salsita-ai/sdk/configurator\`) mounts the built-in buttons. \`finalizePage\` and \`finalizeButton\` are legacy
33
+ - Read mode and fullscreen are the layout's job, no hook enforces them (\`useUndoRedo\`, \`useFinalizeActions\` and \`useStepNavigation\` included): hide undo, redo, finalization and whatever else a viewer must not change while \`phx.frontend.useAccessService().accessInfo.viewMode\` is \`true\` (tabs are navigation, so a viewer may switch them), and remove panels while \`phx.frontend.useIsFullscreenActive()\` is set; \`phx.frontend.useSetFullscreen()\` returns its setter
34
+ - \`ConfigurationNotFoundPage\`: \`phx.frontend.createConfigurationNotFoundPage(({ onBack }) => …)\` replaces the "configuration not accessible" page; show a way back only when the optional \`onBack\` is set. The not-authenticated page's default renders it too; only the admin's not-authorized page keeps the built-in page
35
+ - \`ConfiguratorErrorPage\`: \`phx.frontend.createConfiguratorErrorPage(({ reason, onRetry }) => …)\` replaces the production error page; \`reason\` is \`uncaughtError\` or \`presetCreationFailed\`. A page that throws falls back to the built-in one, and development keeps the detailed error pages, so the project page shows only in a production build. Register both pages with these helpers: \`createCustomPhoenixLayoutElement\` with the name works too, but types the component as taking only \`children\`, so the typed props do not compile there in a strict project
36
+ - \`AppLoaderContent\`: \`phx.frontend.createAppLoader(({ phases }) => …)\` replaces what the loading overlay shows (each phase \`{ id, label?, progress? }\`, the list possibly empty); Phoenix keeps the overlay itself
31
37
  - \`src/handlers/\` — Event & lifecycle handlers
32
38
  - \`src/webhooks/\` — Server-side webhook handlers (\`phx.webhooks.*Builder\`)
33
39
  - \`src/migrations/\` — Schema version migrations (v*.ts)
@@ -17,5 +17,5 @@ export declare const CommonAnalyticsFactory: {
17
17
  Initialized: typeof Initialized;
18
18
  ConfigurationLoaded: typeof ConfigurationLoaded;
19
19
  };
20
- export declare const initializeAnalyticsService: (config: AnyApplicationConfig, logger: Logger, isDev: boolean) => AnalyticsSystem;
20
+ export declare const initializeAnalyticsService: (config: Pick<AnyApplicationConfig, 'services' | 'defaultEnvs'>, logger: Logger, isDev: boolean) => AnalyticsSystem;
21
21
  export {};
@@ -2,6 +2,6 @@ import type { I18n } from '@lingui/core';
2
2
  import { QueryClient } from '@tanstack/react-query';
3
3
  import { type Logger } from '@salsita-ai/common/utils';
4
4
  import type { AnyApplicationConfig } from '#package/domain';
5
- export declare const initializeLogger: (config: AnyApplicationConfig, isDev: boolean) => Logger;
6
- export declare const initializeI18n: (config: AnyApplicationConfig) => I18n;
5
+ export declare const initializeLogger: (config: Pick<AnyApplicationConfig, 'services' | 'defaultEnvs' | 'version'>, isDev: boolean) => Logger;
6
+ export declare const initializeI18n: (config: Pick<AnyApplicationConfig, 'services'>) => I18n;
7
7
  export declare const createQueryClient: (logger: Logger) => QueryClient;
@@ -22,3 +22,5 @@ export * from './use-domain-application.js';
22
22
  export * from './use-web-component.js';
23
23
  export * from './use-web-component-readonly-sync.js';
24
24
  export * from './data/index.js';
25
+ export * from './loading/index.js';
26
+ export * from './responsive/index.js';
@@ -1 +1 @@
1
- export*from"./use-application-runtime-selector.js";export{AccessServiceProvider,useAccessInfoActions,useAccessService,useAdminRawAccessService,useAdminRawAccessInfo,useConfigurationId,useConfiguratorRawAccessService,useConfiguratorRawAccessInfo,useProvidedAccessService}from"./use-access-service.js";export*from"./use-logger.js";export*from"./use-analytics-service.js";export*from"./use-application-query-client.js";export*from"./use-i18n.js";export*from"./use-spec.js";export*from"./use-environment.js";export*from"./use-overrides.js";export*from"./use-domain-application-props.js";export*from"./use-resource-url.js";export*from"./use-integration.js";export*from"./use-routing.js";export*from"./use-loaded-data.js";export*from"./use-domain-data.js";export*from"./use-session.js";export*from"./use-authorized-client.js";export*from"./use-authenticated-client.js";export*from"./use-phoenix-element-slots.js";export*from"./use-phoenix-handler-slots.js";export*from"./use-domain-application.js";export*from"./use-web-component.js";export*from"./use-web-component-readonly-sync.js";export*from"./data/index.js";
1
+ export*from"./use-application-runtime-selector.js";export{AccessServiceProvider,useAccessInfoActions,useAccessService,useAdminRawAccessService,useAdminRawAccessInfo,useConfigurationId,useConfiguratorRawAccessService,useConfiguratorRawAccessInfo,useProvidedAccessService}from"./use-access-service.js";export*from"./use-logger.js";export*from"./use-analytics-service.js";export*from"./use-application-query-client.js";export*from"./use-i18n.js";export*from"./use-spec.js";export*from"./use-environment.js";export*from"./use-overrides.js";export*from"./use-domain-application-props.js";export*from"./use-resource-url.js";export*from"./use-integration.js";export*from"./use-routing.js";export*from"./use-loaded-data.js";export*from"./use-domain-data.js";export*from"./use-session.js";export*from"./use-authorized-client.js";export*from"./use-authenticated-client.js";export*from"./use-phoenix-element-slots.js";export*from"./use-phoenix-handler-slots.js";export*from"./use-domain-application.js";export*from"./use-web-component.js";export*from"./use-web-component-readonly-sync.js";export*from"./data/index.js";export*from"./loading/index.js";export*from"./responsive/index.js";
@@ -0,0 +1,5 @@
1
+ export { LoaderHostContext } from './loader-host-context.js';
2
+ export { useIsAwaitingLoadingPhase } from './use-is-awaiting-loading-phase.js';
3
+ export { useIsLoaderHosted } from './use-is-loader-hosted.js';
4
+ export { useLoadingActions } from './use-loading-actions.js';
5
+ export { useLoadingApplication } from './use-loading-application.js';
@@ -0,0 +1 @@
1
+ export{LoaderHostContext}from"./loader-host-context.js";export{useIsAwaitingLoadingPhase}from"./use-is-awaiting-loading-phase.js";export{useIsLoaderHosted}from"./use-is-loader-hosted.js";export{useLoadingActions}from"./use-loading-actions.js";export{useLoadingApplication}from"./use-loading-application.js";
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Whether a component is mounted below the application's `LoaderHost`, which provides `true`. It is
3
+ * `false` everywhere else, as in the admin, which hosts no loader.
4
+ *
5
+ * It is a fact about the React tree, so it is a context and not part of the runtime's `loading`
6
+ * slice. It lives beside the hooks that read it rather than beside `LoaderHost`, because
7
+ * `loading-state/` imports from this folder and never the other way.
8
+ *
9
+ * @internal Runtime plumbing for the SDK's own UI.
10
+ */
11
+ export declare const LoaderHostContext: import("react").Context<boolean>;
@@ -0,0 +1 @@
1
+ import{createContext as o}from"react";export const LoaderHostContext=o(!1);
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Whether the application this component is mounted in expects the loading phase `id` and that
3
+ * phase has not started since its loader host mounted. The loader stays up across that gap.
4
+ * `false` outside a loader host.
5
+ *
6
+ * @internal Runtime plumbing for the SDK's own UI.
7
+ */
8
+ export declare const useIsAwaitingLoadingPhase: (id: string) => boolean;
@@ -0,0 +1 @@
1
+ import{useCallback as e}from"react";import{useApplicationRuntimeSelector as o}from"../use-application-runtime-selector.js";import{useIsLoaderHosted as t}from"./use-is-loader-hosted.js";import{useLoadingApplication as s}from"./use-loading-application.js";export const useIsAwaitingLoadingPhase=i=>{let r=s(),a=t(),m=o(e(()=>r?.selectors.getIsAwaitingPhase(i)??!1,[r,i]));return a&&m};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Whether this component is mounted below the application's `LoaderHost`. Without one, the SDK's
3
+ * own UI shows its inline loaders, as the admin does.
4
+ *
5
+ * @internal Runtime plumbing for the SDK's own UI.
6
+ */
7
+ export declare const useIsLoaderHosted: () => boolean;
@@ -0,0 +1 @@
1
+ import{useContext as o}from"react";import{LoaderHostContext as t}from"./loader-host-context.js";export const useIsLoaderHosted=()=>o(t);
@@ -0,0 +1,9 @@
1
+ import type { LoadingActions } from '../../loading/index.js';
2
+ /**
3
+ * The loading actions of the application this component is mounted in, or `null` outside its
4
+ * loader host, so that nothing reports phases no loader shows. Stable while the host stays mounted.
5
+ *
6
+ * @internal Runtime plumbing for the SDK's own UI. A project reports a phase with
7
+ * `phx.frontend.useLoadingState()`.
8
+ */
9
+ export declare const useLoadingActions: () => LoadingActions | null;
@@ -0,0 +1 @@
1
+ import{useIsLoaderHosted as o}from"./use-is-loader-hosted.js";import{useLoadingApplication as s}from"./use-loading-application.js";export const useLoadingActions=()=>{let t=s(),i=o();return null!==t&&i?t.actions:null};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * The selectors and actions of the loading state of the application this component is mounted in,
3
+ * chosen by its `ApplicationTypeProvider` as the domain context hooks choose theirs. `null` outside
4
+ * an `ApplicationRuntimeProvider` or an `ApplicationTypeProvider`: the session and data providers also run in trees without one, where
5
+ * no loader is hosted.
6
+ *
7
+ * @internal Runtime plumbing for the SDK's own UI.
8
+ */
9
+ export declare const useLoadingApplication: () => {
10
+ selectors: {
11
+ selectLoadingState: import("@salsita-ai/common/utils").Selector<import("../../loading/selectors.js").LoadingSelectorState, import("../../index.js").LoadingState>;
12
+ getLoadingState: () => import("../../index.js").LoadingState;
13
+ getIsAwaitingPhase: (id: string) => boolean;
14
+ };
15
+ actions: {
16
+ startPhase: (phase: import("../../index.js").LoadingPhase) => void;
17
+ endPhase: (id: string) => void;
18
+ reportError: () => void;
19
+ clearError: () => void;
20
+ expectPhase: (id: string) => void;
21
+ dropExpectation: (id: string) => void;
22
+ resetSlot: () => void;
23
+ };
24
+ } | null;
@@ -0,0 +1 @@
1
+ import{useMemo as o}from"react";import{useOptionalApplicationRuntime as i,useOptionalApplicationType as n}from"../../provider/index.js";import{ApplicationType as r}from"../../runtime/index.js";export const useLoadingApplication=()=>{let t=i(),e=n();return o(()=>null===t||null===e?null:e===r.Admin?{selectors:t.selectors.loading.admin,actions:t.actions.loading.admin}:{selectors:t.selectors.loading.configurator,actions:t.actions.loading.configurator},[t,e])};
@@ -0,0 +1,3 @@
1
+ export { useResponsiveActions } from './use-responsive-actions.js';
2
+ export { useResponsiveState } from './use-responsive-state.js';
3
+ export { type ResponsiveStore, useResponsiveStore } from './use-responsive-store.js';
@@ -0,0 +1 @@
1
+ export{useResponsiveActions}from"./use-responsive-actions.js";export{useResponsiveState}from"./use-responsive-state.js";export{useResponsiveStore}from"./use-responsive-store.js";
@@ -0,0 +1,9 @@
1
+ import type { ResponsiveActions } from '../../responsive/index.js';
2
+ /**
3
+ * The actions of the responsive state of the application this component is mounted in: set the canvas padding, expand, collapse, hide or
4
+ * show the root container. Stable for the runtime's lifetime.
5
+ *
6
+ * @internal Runtime plumbing for the SDK's own UI. A project layout uses `useActiveViewports()`
7
+ * from `@salsita-ai/sdk/react` and `useSceneSafeArea()` from `@salsita-ai/sdk/configurator`.
8
+ */
9
+ export declare const useResponsiveActions: () => ResponsiveActions;
@@ -0,0 +1 @@
1
+ import{useResponsiveApplication as e}from"./use-responsive-application.js";export const useResponsiveActions=()=>{let{actions:s}=e();return s};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * The selectors and actions of the responsive state of the application this component is mounted
3
+ * in, chosen by its `ApplicationTypeProvider` as the domain context hooks choose theirs.
4
+ */
5
+ export declare const useResponsiveApplication: () => {
6
+ runtime: import("../../index.js").ApplicationRuntime;
7
+ selectors: {
8
+ selectResponsiveState: import("@salsita-ai/common/utils").Selector<import("../../responsive/selectors.js").ResponsiveSelectorState, import("../../index.js").ResponsiveState>;
9
+ selectViewportSize: import("@salsita-ai/common/utils").Selector<import("../../responsive/selectors.js").ResponsiveSelectorState, import("../../index.js").ResponsiveViewportSize>;
10
+ selectCanvasPadding: import("@salsita-ai/common/utils").Selector<import("../../responsive/selectors.js").ResponsiveSelectorState, import("../../index.js").CanvasPadding>;
11
+ getResponsiveState: () => import("../../index.js").ResponsiveState;
12
+ getViewportSize: () => import("../../index.js").ResponsiveViewportSize;
13
+ getCanvasPadding: () => import("../../index.js").CanvasPadding;
14
+ };
15
+ actions: {
16
+ setViewport: (viewport: import("../../index.js").ResponsiveViewport) => void;
17
+ setBreakpoints: (breakpoints: import("../../index.js").ResponsiveBreakpoints) => void;
18
+ setCanvasPadding: (canvasPadding: import("../../index.js").CanvasPadding) => void;
19
+ expand: () => void;
20
+ collapse: () => void;
21
+ hide: () => void;
22
+ show: () => void;
23
+ setAnimating: (isAnimating: boolean) => void;
24
+ reset: () => void;
25
+ };
26
+ };
@@ -0,0 +1 @@
1
+ import{useApplicationRuntime as e,useApplicationType as s}from"../../provider/index.js";import{ApplicationType as o}from"../../runtime/index.js";export const useResponsiveApplication=()=>{let i=e();return s()===o.Admin?{runtime:i,selectors:i.selectors.responsive.admin,actions:i.actions.responsive.admin}:{runtime:i,selectors:i.selectors.responsive.configurator,actions:i.actions.responsive.configurator}};
@@ -0,0 +1,10 @@
1
+ import type { ResponsiveState } from '../../responsive/index.js';
2
+ /**
3
+ * The responsive state of the application this component is mounted in: the size classes of its root container, the
4
+ * canvas padding, and whether the container is expanded, hidden or animating. Re-renders when any
5
+ * of them changes, not on a resize within one size class.
6
+ *
7
+ * @internal Runtime plumbing for the SDK's own UI. A project layout uses `useActiveViewports()`
8
+ * from `@salsita-ai/sdk/react` and `useSceneSafeArea()` from `@salsita-ai/sdk/configurator`.
9
+ */
10
+ export declare const useResponsiveState: () => ResponsiveState;
@@ -0,0 +1 @@
1
+ import{useApplicationRuntimeSelector as e}from"../use-application-runtime-selector.js";import{useResponsiveApplication as t}from"./use-responsive-application.js";export const useResponsiveState=()=>{let{selectors:s}=t();return e(s.getResponsiveState)};
@@ -0,0 +1,24 @@
1
+ import type { CanvasPadding, ResponsiveActions, ResponsiveState, ResponsiveViewportSize } from '../../responsive/index.js';
2
+ /**
3
+ * The runtime's responsive state in the shape `ResponsiveApplicationProvider` of
4
+ * `@salsita-ai/sdk/ui` takes as its `store`, which that package declares by shape because it imports
5
+ * no other SDK package.
6
+ *
7
+ * @internal Runtime plumbing for the SDK's own UI. A project layout uses `useActiveViewports()`
8
+ * from `@salsita-ai/sdk/react` and `useSceneSafeArea()` from `@salsita-ai/sdk/configurator`.
9
+ */
10
+ export interface ResponsiveStore extends Omit<ResponsiveActions, 'reset'> {
11
+ /** Calls `onChange` after every change of the runtime; returns the unsubscribe. */
12
+ readonly subscribe: (onChange: () => void) => () => void;
13
+ readonly getState: () => ResponsiveState;
14
+ readonly getViewportSize: () => ResponsiveViewportSize;
15
+ readonly getCanvasPadding: () => CanvasPadding;
16
+ }
17
+ /**
18
+ * The responsive state of the application this component is mounted in, as the store its root
19
+ * container measures into and `useResponsive()` reads from. Stable for the runtime's lifetime.
20
+ *
21
+ * @internal Runtime plumbing for the SDK's own UI. A project layout uses `useActiveViewports()`
22
+ * from `@salsita-ai/sdk/react` and `useSceneSafeArea()` from `@salsita-ai/sdk/configurator`.
23
+ */
24
+ export declare const useResponsiveStore: () => ResponsiveStore;
@@ -0,0 +1 @@
1
+ import{useMemo as e}from"react";import{useResponsiveApplication as t}from"./use-responsive-application.js";export const useResponsiveStore=()=>{let{runtime:s,selectors:i,actions:a}=t();return e(()=>({setViewport:a.setViewport,setBreakpoints:a.setBreakpoints,setCanvasPadding:a.setCanvasPadding,expand:a.expand,collapse:a.collapse,hide:a.hide,show:a.show,setAnimating:a.setAnimating,subscribe:s.subscribe,getState:i.getResponsiveState,getViewportSize:i.getViewportSize,getCanvasPadding:i.getCanvasPadding}),[s,i,a])};
@@ -6,6 +6,11 @@ interface AccessServiceProviderProps {
6
6
  }
7
7
  export declare const AccessServiceProvider: (props: AccessServiceProviderProps) => import("react/jsx-runtime").JSX.Element;
8
8
  export declare const useProvidedAccessService: () => AccessService;
9
+ /**
10
+ * The provided access service with `accessInfo.viewMode` set by the application's read-only rule,
11
+ * the domain-context selector `getIsViewMode`: the access opens the configuration for viewing only,
12
+ * or the host element is `readonly`. The assistant's `apply` follows the same selector.
13
+ */
9
14
  export declare const useAccessService: () => AccessService;
10
15
  export declare const useConfigurationId: () => string;
11
16
  export declare const useConfiguratorRawAccessService: () => AccessService | null;
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{createContext as s,useContext as c,useMemo as o}from"react";import{standardWebComponentProperties as r}from"#package/domain";import{useApplicationRuntime as t}from"../provider/index.js";import{useApplicationRuntimeSelector as i}from"./use-application-runtime-selector.js";import{useWebComponentPropertyValue as n}from"./use-web-component.js";let a=s(null);export const AccessServiceProvider=s=>e(a.Provider,{value:s.value,children:s.children});export const useProvidedAccessService=()=>{let e=c(a);if(null===e)throw Error("Access service not found! Render access-dependent hooks inside AccessServiceProvider.");return e};export const useAccessService=()=>{let e=n(r.readonly),s=useProvidedAccessService();return o(()=>({...s,accessInfo:{...s.accessInfo,viewMode:s.accessInfo.viewMode||e}}),[s,e])};export const useConfigurationId=()=>useProvidedAccessService().configurationId;export const useConfiguratorRawAccessService=()=>i(t().selectors.access.getConfiguratorRawAccessService);export const useAdminRawAccessService=()=>i(t().selectors.access.getAdminRawAccessService);export const useConfiguratorRawAccessInfo=()=>i(t().selectors.access.getConfiguratorRawAccessInfo);export const useAdminRawAccessInfo=()=>i(t().selectors.access.getAdminRawAccessInfo);export const useAccessInfoActions=()=>t().actions.access;
1
+ import{jsx as e}from"react/jsx-runtime";import{createContext as s,useContext as c,useMemo as o}from"react";import{useApplicationRuntime as r,useApplicationType as t}from"../provider/index.js";import{ApplicationType as i}from"../runtime/index.js";import{useApplicationRuntimeSelector as n}from"./use-application-runtime-selector.js";let a=s(null);export const AccessServiceProvider=s=>e(a.Provider,{value:s.value,children:s.children});export const useProvidedAccessService=()=>{let e=c(a);if(null===e)throw Error("Access service not found! Render access-dependent hooks inside AccessServiceProvider.");return e};export const useAccessService=()=>{let e=t(),s=r(),c=useProvidedAccessService(),a=n(e===i.Admin?s.selectors.domainContext.admin.getIsViewMode:s.selectors.domainContext.configurator.getIsViewMode);return o(()=>({...c,accessInfo:{...c.accessInfo,viewMode:a}}),[c,a])};export const useConfigurationId=()=>useProvidedAccessService().configurationId;export const useConfiguratorRawAccessService=()=>n(r().selectors.access.getConfiguratorRawAccessService);export const useAdminRawAccessService=()=>n(r().selectors.access.getAdminRawAccessService);export const useConfiguratorRawAccessInfo=()=>n(r().selectors.access.getConfiguratorRawAccessInfo);export const useAdminRawAccessInfo=()=>n(r().selectors.access.getAdminRawAccessInfo);export const useAccessInfoActions=()=>r().actions.access;
@@ -1,8 +1,9 @@
1
- import type { PropsWithChildren } from 'react';
1
+ import type { ComponentType, PropsWithChildren } from 'react';
2
2
  import type { CustomPhoenixEntityElementProps } from '#package/domain';
3
3
  export interface PhoenixElementSlots {
4
4
  readonly entityElements: Record<string, (props: CustomPhoenixEntityElementProps) => JSX.Element>;
5
5
  readonly layoutElements: Record<string, (props: PropsWithChildren) => JSX.Element>;
6
+ readonly assistantFormElements: Record<string, ComponentType<never>>;
6
7
  readonly hashes: Record<string, string>;
7
8
  }
8
9
  export declare const usePhoenixElementSlots: () => PhoenixElementSlots;
@@ -1,15 +1,8 @@
1
1
  /**
2
- * Mirrors the host's `readonly` web-component property into runtime state, where the domain reads it
3
- * as part of the effective mode.
2
+ * Does nothing. The application runtime mirrors the host's `readonly` web-component property into
3
+ * runtime state itself, from its construction on, so no component has to.
4
4
  *
5
- * Call it once at the application root. The configurator does; the admin application deliberately
6
- * does not, because `readonly` is a property of the custom element a host embeds and admin is not
7
- * embedded that way.
8
- *
9
- * Root placement means a domain lifecycle mounting in the same commit can initialize before the
10
- * first value lands, since React runs child effects before parent effects. That is harmless: nothing
11
- * reads the effective mode while initializing — persistence reads it per save request, and the
12
- * domain context picks a later change up through the expression context, whose identity `reconcile`
13
- * compares on every runtime notification.
5
+ * @deprecated The runtime keeps `readonly` in sync without it; remove the call. This hook will be
6
+ * removed in a future version.
14
7
  */
15
8
  export declare const useWebComponentReadonlySync: () => void;
@@ -1 +1 @@
1
- import{useEffect as e}from"react";import{standardWebComponentProperties as o}from"#package/domain";import{useApplicationRuntime as r}from"../provider/index.js";import{useWebComponentProperty$ as n}from"./use-web-component.js";export const useWebComponentReadonlySync=()=>{let t=r(),m=n(o.readonly);e(()=>{let e=m.subscribe(t.actions.webComponent.setReadonly);return()=>{e.unsubscribe()}},[t,m])};
1
+ export const useWebComponentReadonlySync=()=>{};
@@ -7,6 +7,11 @@ export declare const useWebComponentApi: () => WebComponentApi;
7
7
  export declare function useWebComponentProperty$<T>(property: WebComponentPropertyDescriptor<T>): BehaviorSubject<T>;
8
8
  export declare function useWebComponentPropertySetter<T>(property: WebComponentPropertyDescriptor<T>): Dispatch<SetStateAction<T>>;
9
9
  export declare const useWebComponentPropertyState: <T>(property: WebComponentPropertyDescriptor<T>) => [value: T, setValue: Dispatch<SetStateAction<T>>];
10
+ /**
11
+ * The property's current value; re-renders when it changes. A standard property the runtime
12
+ * mirrors is read from the slice its scope names, `hostProperties` or the domain's `webComponent`;
13
+ * any other property from its storage.
14
+ */
10
15
  export declare const useWebComponentPropertyValue: <T>(property: WebComponentPropertyDescriptor<T>) => T;
11
16
  export declare const useDispatchWebComponentEvent: <T, R>(event: WebComponentEventDescriptor<T, R>) => (payload: T) => Promise<R | undefined>;
12
17
  export declare const useWebcomponentGeneration: () => number;
@@ -1 +1 @@
1
- import{useCallback as e}from"react";import{useEagerObservableValue as o}from"../../domain-context/common-hooks/use-observable-selector.js";import{useApplicationRuntime as t}from"../provider/index.js";import{useApplicationRuntimeSelector as n}from"./use-application-runtime-selector.js";export const useWebComponentOptions=()=>t().selectors.commonServices.getWebComponentOptions();export const useWebComponentApi=()=>t().selectors.commonServices.getWebComponentApi();export function useWebComponentProperty$(e){return useWebComponentApi().getPropertyStorage(e).subject}export function useWebComponentPropertySetter(o){let t=useWebComponentProperty$(o);return e(e=>{let o="function"==typeof e?e(t.value):e;o!==t.value&&t.next(o)},[t])}export const useWebComponentPropertyState=e=>{let t=useWebComponentProperty$(e),n=useWebComponentPropertySetter(e);return[o(t),n]};export const useWebComponentPropertyValue=e=>o(useWebComponentProperty$(e));export const useDispatchWebComponentEvent=o=>{let t=useWebComponentApi();return e(async e=>t.dispatchEvent(o,e),[o,t])};export const useWebcomponentGeneration=()=>n(t().selectors.webComponent.getWebcomponentGeneration);
1
+ import{useCallback as e}from"react";import{useEagerObservableValue as o}from"../../domain-context/common-hooks/use-observable-selector.js";import{findMirroredHostPropertyReader as t}from"../host-properties/index.js";import{useApplicationRuntime as n}from"../provider/index.js";import{useApplicationRuntimeSelector as r}from"./use-application-runtime-selector.js";export const useWebComponentOptions=()=>n().selectors.commonServices.getWebComponentOptions();export const useWebComponentApi=()=>n().selectors.commonServices.getWebComponentApi();export function useWebComponentProperty$(e){return useWebComponentApi().getPropertyStorage(e).subject}export function useWebComponentPropertySetter(o){let t=useWebComponentProperty$(o);return e(e=>{let o="function"==typeof e?e(t.value):e;o!==t.value&&t.next(o)},[t])}export const useWebComponentPropertyState=e=>[useWebComponentPropertyValue(e),useWebComponentPropertySetter(e)];export const useWebComponentPropertyValue=e=>{let p=n(),s=useWebComponentProperty$(e),m=t(e),u=o(s,null===m);return r(()=>null===m?u:m(p.selectors))};export const useDispatchWebComponentEvent=o=>{let t=useWebComponentApi();return e(async e=>t.dispatchEvent(o,e),[o,t])};export const useWebcomponentGeneration=()=>r(n().selectors.webComponent.getWebcomponentGeneration);
@@ -0,0 +1,15 @@
1
+ import type { HostPropertyName } from './host-property-scopes.js';
2
+ import type { HostPropertiesState, HostPropertyValue } from './types.js';
3
+ interface Context {
4
+ readonly setHostProperties: (update: (state: HostPropertiesState) => HostPropertiesState) => void;
5
+ }
6
+ /**
7
+ * Internal to the runtime: only the subscription `connectHostProperties` sets up calls these. The
8
+ * runtime does not expose them on `actions`, because the host writes properties through the
9
+ * element.
10
+ */
11
+ export declare const createHostPropertiesActions: (context: Context) => {
12
+ setHostProperty: <NAME extends HostPropertyName>(name: NAME, value: HostPropertyValue<NAME>) => void;
13
+ };
14
+ export type HostPropertiesActions = ReturnType<typeof createHostPropertiesActions>;
15
+ export {};
@@ -0,0 +1 @@
1
+ import{isShallowEqual as t}from"@salsita-ai/common/utils";export const createHostPropertiesActions=o=>{let{setHostProperties:r}=o;return{setHostProperty:(o,e)=>{r(r=>t(r[o],e)?r:{...r,[o]:e})}}};
@@ -0,0 +1,30 @@
1
+ import type { WebComponentHostActions, WebComponentSelectors } from '#package/domain';
2
+ import type { WebComponentApi } from '../web-component/index.js';
3
+ import type { HostPropertiesActions } from './actions.js';
4
+ interface Context {
5
+ readonly webComponentApi: WebComponentApi;
6
+ readonly actions: HostPropertiesActions;
7
+ /** The domain's `webComponent` slice, which keeps the domain-scoped properties. */
8
+ readonly domainSelectors: WebComponentSelectors;
9
+ readonly domainActions: WebComponentHostActions;
10
+ }
11
+ /**
12
+ * The runtime-owned subscription behind the mirrored host properties: mirrors each mirrored
13
+ * property storage of the element into the slice its scope names, the application-scoped ones
14
+ * into `hostProperties` and the domain-scoped ones into the domain's `webComponent`. Either slice
15
+ * publishes only when a value changes, equal meaning shallowly equal.
16
+ *
17
+ * The runtime calls it once, right after its subject exists, and keeps it for its whole lifetime,
18
+ * as long as the element that owns the storages. The storages are `BehaviorSubject`s, so the first
19
+ * emissions replay the values the slices were initialized with and publish nothing, except a
20
+ * domain-scoped property the host set before the runtime existed. The admin application gets the
21
+ * domain-scoped properties too: its element never sets `readonly`, so the value stays `false`.
22
+ *
23
+ * Interim: the element's property storages are still the store and these slices a read mirror,
24
+ * so every mirrored value is held twice. CON-3142 makes the slice the only store (the element's
25
+ * setters and attribute parsing write it) and removes the storages and this subscription.
26
+ *
27
+ * @returns the unsubscribe, for tests and runtimes that end before their element.
28
+ */
29
+ export declare const connectHostProperties: (context: Context) => (() => void);
30
+ export {};
@@ -0,0 +1 @@
1
+ import{isShallowEqual as r}from"@salsita-ai/common/utils";import{getDomainHostProperty as o,setDomainHostProperty as t}from"./domain-host-properties.js";import{hostPropertyDescriptors as s}from"./host-property-descriptors.js";import{domainHostPropertyNames as e,hostPropertyNames as p}from"./host-property-scopes.js";export const connectHostProperties=i=>{let{webComponentApi:m,actions:c,domainSelectors:a,domainActions:b}=i,u=[...p.map(r=>m.getPropertyStorage(s[r]).subject.subscribe(o=>{c.setHostProperty(r,o)})),...e.map(e=>m.getPropertyStorage(s[e]).subject.subscribe(s=>{r(o(a,e),s)||t(b,e,s)}))];return()=>{u.forEach(r=>{r.unsubscribe()})}};
@@ -0,0 +1,7 @@
1
+ import type { WebComponentHostActions, WebComponentSelectors } from '#package/domain';
2
+ import type { DomainHostPropertyName } from './host-property-scopes.js';
3
+ import type { HostPropertyValue } from './types.js';
4
+ /** A domain-scoped property's current value in the domain's `webComponent` slice. */
5
+ export declare const getDomainHostProperty: <NAME extends DomainHostPropertyName>(selectors: WebComponentSelectors, name: NAME) => HostPropertyValue<NAME>;
6
+ /** Writes a domain-scoped property into the domain's `webComponent` slice. */
7
+ export declare const setDomainHostProperty: <NAME extends DomainHostPropertyName>(actions: WebComponentHostActions, name: NAME, value: HostPropertyValue<NAME>) => void;
@@ -0,0 +1 @@
1
+ let e={readonly:{get:e=>e.getReadonly(),set:(e,t)=>{e.setReadonly(t)}},locale:{get:e=>e.getLocale(),set:(e,t)=>{e.setLocale(t)}}};export const getDomainHostProperty=(t,o)=>e[o].get(t);export const setDomainHostProperty=(t,o,s)=>{e[o].set(t,s)};
@@ -0,0 +1,21 @@
1
+ import { type WebComponentPropertyDescriptor, type WebComponentSelectors } from '#package/domain';
2
+ import { type MirroredHostPropertyName } from './host-property-scopes.js';
3
+ import type { HostPropertiesSelectors } from './selectors.js';
4
+ import type { HostPropertyValue } from './types.js';
5
+ export declare const hostPropertyDescriptors: {
6
+ readonly [NAME in MirroredHostPropertyName]: WebComponentPropertyDescriptor<HostPropertyValue<NAME>>;
7
+ };
8
+ /** The runtime selectors of the two slices that keep mirrored properties. */
9
+ interface MirroredHostPropertySelectors {
10
+ readonly hostProperties: HostPropertiesSelectors;
11
+ readonly webComponent: WebComponentSelectors;
12
+ }
13
+ /** Reads a mirrored property's current value from the slice its scope names. */
14
+ export type MirroredHostPropertyReader<T> = (selectors: MirroredHostPropertySelectors) => T;
15
+ /**
16
+ * The reader of the mirrored property a descriptor stands for, or `null` when the runtime does not
17
+ * mirror it. The map keys each reader by its own descriptor, so a reader returns its descriptor's
18
+ * value type; a `Map` cannot state that per entry, so the overload states it once here.
19
+ */
20
+ export declare function findMirroredHostPropertyReader<T>(descriptor: WebComponentPropertyDescriptor<T>): MirroredHostPropertyReader<T> | null;
21
+ export {};
@@ -0,0 +1 @@
1
+ import{standardWebComponentProperties as e}from"#package/domain";import{getDomainHostProperty as o}from"./domain-host-properties.js";import{domainHostPropertyNames as r,hostPropertyNames as t}from"./host-property-scopes.js";export const hostPropertyDescriptors={route:e.route,expanded:e.expanded,mode:e.mode,power:e.power,presetTags:e.presetTags,locale:e.locale,readonly:e.readonly,integrationMode:e.integrationMode,sessionToken:e.sessionToken,adminSessionToken:e.adminSessionToken,refreshToken:e.refreshToken,authorizationCode:e.authorizationCode};let s=new Map([...t.map(e=>[hostPropertyDescriptors[e],o=>o.hostProperties.getHostProperty(e)]),...r.map(e=>[hostPropertyDescriptors[e],r=>o(r.webComponent,e)])]);export function findMirroredHostPropertyReader(e){return s.get(e)??null}
@@ -0,0 +1,42 @@
1
+ import { standardWebComponentProperties } from '#package/domain';
2
+ /**
3
+ * Where the runtime keeps a standard web-component property's current value:
4
+ * - `element`: only on the element, read from its property storage.
5
+ * - `application`: mirrored into the application runtime's `hostProperties` slice.
6
+ * - `domain`: mirrored into the domain runtime's `webComponent` slice, for domain systems that
7
+ * read it without the application runtime.
8
+ */
9
+ type HostPropertyScope = 'element' | 'application' | 'domain';
10
+ type StandardPropertyName = keyof typeof standardWebComponentProperties;
11
+ declare const hostPropertyScopes: {
12
+ readonly readonly: 'domain';
13
+ readonly locale: 'domain';
14
+ readonly route: 'application';
15
+ readonly expanded: 'application';
16
+ readonly mode: 'application';
17
+ readonly power: 'application';
18
+ readonly presetTags: 'application';
19
+ readonly integrationMode: 'application';
20
+ readonly sessionToken: 'application';
21
+ readonly adminSessionToken: 'application';
22
+ readonly refreshToken: 'application';
23
+ readonly authorizationCode: 'application';
24
+ readonly onEvent: 'element';
25
+ readonly onAttached: 'element';
26
+ readonly nonce: 'element';
27
+ readonly modalZIndex: 'element';
28
+ readonly containerZIndex: 'element';
29
+ readonly htmlFontSize: 'element';
30
+ };
31
+ type ScopedPropertyName<SCOPE extends HostPropertyScope> = {
32
+ [NAME in StandardPropertyName]: (typeof hostPropertyScopes)[NAME] extends SCOPE ? NAME : never;
33
+ }[StandardPropertyName];
34
+ /** The name of a standard web-component property the runtime mirrors into `hostProperties`. */
35
+ export type HostPropertyName = ScopedPropertyName<'application'>;
36
+ /** The name of a standard web-component property the runtime mirrors into the domain's `webComponent`. */
37
+ export type DomainHostPropertyName = ScopedPropertyName<'domain'>;
38
+ /** The name of a standard web-component property the runtime mirrors, into either slice. */
39
+ export type MirroredHostPropertyName = HostPropertyName | DomainHostPropertyName;
40
+ export declare const hostPropertyNames: ScopedPropertyName<"application">[];
41
+ export declare const domainHostPropertyNames: ScopedPropertyName<"domain">[];
42
+ export {};
@@ -0,0 +1 @@
1
+ import{standardWebComponentProperties as e}from"#package/domain";let o={readonly:"domain",locale:"domain",route:"application",expanded:"application",mode:"application",power:"application",presetTags:"application",integrationMode:"application",sessionToken:"application",adminSessionToken:"application",refreshToken:"application",authorizationCode:"application",onEvent:"element",onAttached:"element",nonce:"element",modalZIndex:"element",containerZIndex:"element",htmlFontSize:"element"},n=e=>n=>o[n]===e,t=Object.keys(e).filter(o=>Object.hasOwn(e,o));export const hostPropertyNames=t.filter(n("application"));export const domainHostPropertyNames=t.filter(n("domain"));
@@ -0,0 +1,8 @@
1
+ export * from './actions.js';
2
+ export * from './connect-host-properties.js';
3
+ export * from './domain-host-properties.js';
4
+ export * from './host-property-descriptors.js';
5
+ export * from './host-property-scopes.js';
6
+ export * from './initialize.js';
7
+ export * from './selectors.js';
8
+ export type * from './types.js';
@@ -0,0 +1 @@
1
+ export*from"./actions.js";export*from"./connect-host-properties.js";export*from"./domain-host-properties.js";export*from"./host-property-descriptors.js";export*from"./host-property-scopes.js";export*from"./initialize.js";export*from"./selectors.js";
@@ -0,0 +1,7 @@
1
+ import type { WebComponentApi } from '../web-component/index.js';
2
+ import type { HostPropertiesState } from './types.js';
3
+ /**
4
+ * The element's current property values. Without a web component the API's storages hold the
5
+ * defaults, so the slice does too.
6
+ */
7
+ export declare const initializeHostProperties: (webComponentApi: WebComponentApi) => HostPropertiesState;
@@ -0,0 +1 @@
1
+ import{hostPropertyDescriptors as e}from"./host-property-descriptors.js";export const initializeHostProperties=o=>{let r=r=>o.getPropertyValue(e[r]);return{route:r("route"),expanded:r("expanded"),mode:r("mode"),power:r("power"),presetTags:r("presetTags"),integrationMode:r("integrationMode"),sessionToken:r("sessionToken"),adminSessionToken:r("adminSessionToken"),refreshToken:r("refreshToken"),authorizationCode:r("authorizationCode")}};
@@ -0,0 +1,54 @@
1
+ import { type Selector } from '@salsita-ai/common/utils';
2
+ import type { HostPropertyName } from './host-property-scopes.js';
3
+ import type { HostPropertiesState } from './types.js';
4
+ export interface HostPropertiesSelectorState {
5
+ readonly hostProperties: HostPropertiesState;
6
+ }
7
+ interface Context {
8
+ readonly getState: () => HostPropertiesSelectorState;
9
+ }
10
+ type HostPropertySelectors = {
11
+ readonly [NAME in HostPropertyName]: Selector<HostPropertiesSelectorState, HostPropertiesState[NAME]>;
12
+ };
13
+ export declare const createHostPropertiesSelectors: (context: Context) => {
14
+ getHostPropertySelector: <NAME extends HostPropertyName>(name: NAME) => HostPropertySelectors[NAME];
15
+ selectRoute: Selector<HostPropertiesSelectorState, {
16
+ route: "Index";
17
+ } | {
18
+ route: "Configuration";
19
+ configurationId: string;
20
+ accessToken?: string | undefined;
21
+ } | {
22
+ readonly route: "Index";
23
+ }>;
24
+ selectExpanded: Selector<HostPropertiesSelectorState, boolean>;
25
+ selectMode: Selector<HostPropertiesSelectorState, "admin" | "configurator" | "standalone-admin">;
26
+ selectPower: Selector<HostPropertiesSelectorState, "off" | "on" | "standby">;
27
+ selectPresetTags: Selector<HostPropertiesSelectorState, string[] | null>;
28
+ selectIntegrationMode: Selector<HostPropertiesSelectorState, "handoff" | "headless" | "page" | "widget">;
29
+ selectSessionToken: Selector<HostPropertiesSelectorState, string | undefined>;
30
+ selectAdminSessionToken: Selector<HostPropertiesSelectorState, string | undefined>;
31
+ selectRefreshToken: Selector<HostPropertiesSelectorState, string | undefined>;
32
+ selectAuthorizationCode: Selector<HostPropertiesSelectorState, string | undefined>;
33
+ getHostProperty: <NAME extends HostPropertyName>(name: NAME) => HostPropertiesState[NAME];
34
+ getRoute: () => {
35
+ route: "Index";
36
+ } | {
37
+ route: "Configuration";
38
+ configurationId: string;
39
+ accessToken?: string | undefined;
40
+ } | {
41
+ readonly route: "Index";
42
+ };
43
+ getExpanded: () => boolean;
44
+ getMode: () => "admin" | "configurator" | "standalone-admin";
45
+ getPower: () => "off" | "on" | "standby";
46
+ getPresetTags: () => string[] | null;
47
+ getIntegrationMode: () => "handoff" | "headless" | "page" | "widget";
48
+ getSessionToken: () => string | undefined;
49
+ getAdminSessionToken: () => string | undefined;
50
+ getRefreshToken: () => string | undefined;
51
+ getAuthorizationCode: () => string | undefined;
52
+ };
53
+ export type HostPropertiesSelectors = ReturnType<typeof createHostPropertiesSelectors>;
54
+ export {};
@@ -0,0 +1 @@
1
+ import{createSelector as e}from"@salsita-ai/common/utils";export const createHostPropertiesSelectors=o=>{let{getState:t}=o,s=e.withTypes(),r={route:s.leaf(e=>e.hostProperties.route),expanded:s.leaf(e=>e.hostProperties.expanded),mode:s.leaf(e=>e.hostProperties.mode),power:s.leaf(e=>e.hostProperties.power),presetTags:s.leaf(e=>e.hostProperties.presetTags),integrationMode:s.leaf(e=>e.hostProperties.integrationMode),sessionToken:s.leaf(e=>e.hostProperties.sessionToken),adminSessionToken:s.leaf(e=>e.hostProperties.adminSessionToken),refreshToken:s.leaf(e=>e.hostProperties.refreshToken),authorizationCode:s.leaf(e=>e.hostProperties.authorizationCode)},n=e=>r[e];return{getHostPropertySelector:n,selectRoute:r.route,selectExpanded:r.expanded,selectMode:r.mode,selectPower:r.power,selectPresetTags:r.presetTags,selectIntegrationMode:r.integrationMode,selectSessionToken:r.sessionToken,selectAdminSessionToken:r.adminSessionToken,selectRefreshToken:r.refreshToken,selectAuthorizationCode:r.authorizationCode,getHostProperty:e=>n(e)(t()),getRoute:()=>r.route(t()),getExpanded:()=>r.expanded(t()),getMode:()=>r.mode(t()),getPower:()=>r.power(t()),getPresetTags:()=>r.presetTags(t()),getIntegrationMode:()=>r.integrationMode(t()),getSessionToken:()=>r.sessionToken(t()),getAdminSessionToken:()=>r.adminSessionToken(t()),getRefreshToken:()=>r.refreshToken(t()),getAuthorizationCode:()=>r.authorizationCode(t())}};