@salsita-ai/sdk 0.50.0-develop.f41849ae55 → 0.50.0-develop.f5b66685b9

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 (666) hide show
  1. package/README.md +1 -1
  2. package/dist/application/index.d.ts +1 -0
  3. package/dist/application/index.js +1 -1
  4. package/dist/application/mount-application.d.ts +1 -1
  5. package/dist/application/mount-application.js +1 -1
  6. package/dist/application/mount-configurator.d.ts +19 -0
  7. package/dist/application/mount-configurator.js +1 -0
  8. package/dist/application/mounted-application-runtime.d.ts +4 -0
  9. package/dist/application/mounted-application-runtime.js +1 -0
  10. package/dist/application/register-web-component.d.ts +2 -0
  11. package/dist/application/register-web-component.js +1 -0
  12. package/dist/application-spec/core/enhanced-json-value.d.ts +2 -31
  13. package/dist/application-spec/core/enhanced-json-value.js +1 -1
  14. package/dist/application-spec/core/index.d.ts +1 -3
  15. package/dist/application-spec/core/index.js +1 -1
  16. package/dist/application-spec/core/markers/index.d.ts +1 -1
  17. package/dist/application-spec/core/markers/index.js +1 -1
  18. package/dist/application-spec/core/markers/msg-marker.d.ts +2 -28
  19. package/dist/application-spec/core/markers/msg-marker.js +1 -1
  20. package/dist/application-spec/core/markers/raw-eval-write-marker.d.ts +1 -1
  21. package/dist/application-spec/core/markers/raw-eval-write-marker.js +1 -1
  22. package/dist/application-spec/core/markers/raw-read-write-marker.js +1 -1
  23. package/dist/application-spec/errors/diagnostic-codes.d.ts +9 -0
  24. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  25. package/dist/application-spec/errors/diagnostic-messages.d.ts +10 -1
  26. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  27. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  28. package/dist/application-spec/generate-application/code/project-scaffolding.js +2 -2
  29. package/dist/application-spec/generate-application/code/templates/application-types.js +6 -6
  30. package/dist/application-spec/generate-application/code/templates/common/doc-comment.d.ts +2 -0
  31. package/dist/application-spec/generate-application/code/templates/common/doc-comment.js +1 -0
  32. package/dist/application-spec/generate-application/code/templates/configurator-globals.d.ts +2 -1
  33. package/dist/application-spec/generate-application/code/templates/configurator-globals.js +19 -6
  34. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +7 -7
  35. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +12 -0
  36. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -0
  37. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +24 -22
  38. package/dist/application-spec/generate-application/code/templates/global-definition/index.d.ts +1 -0
  39. package/dist/application-spec/generate-application/code/templates/global-definition/index.js +1 -1
  40. package/dist/application-spec/generate-application/code/templates/index.d.ts +2 -6
  41. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  42. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.d.ts +10 -0
  43. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +7 -0
  44. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill.js +1 -1
  45. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +13 -6
  46. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +2 -2
  47. package/dist/application-spec/generate-application/implementations/phx-application-types.d.ts +25 -0
  48. package/dist/application-spec/generate-application/implementations/phx-application-types.js +1 -0
  49. package/dist/application-spec/generate-application/implementations/phx-domain.d.ts +36 -0
  50. package/dist/application-spec/generate-application/implementations/phx-domain.js +1 -0
  51. package/dist/application-spec/generate-application/implementations/phx-model.d.ts +24 -0
  52. package/dist/application-spec/generate-application/implementations/phx-model.js +1 -0
  53. package/dist/application-spec/generate-application/implementations/phx.d.ts +22 -0
  54. package/dist/application-spec/generate-application/implementations/phx.js +1 -0
  55. package/dist/application-spec/generate-application/index.d.ts +2 -0
  56. package/dist/application-spec/generate-application/index.js +1 -1
  57. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-model-runtime.d.ts +3 -3
  58. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.d.ts +7 -4
  59. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-runtime.js +1 -1
  60. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.d.ts +16 -0
  61. package/dist/application-spec/generate-application/runtime/admin-runtime/admin-spec-runtime.js +1 -0
  62. package/dist/application-spec/generate-application/runtime/application-runtime.d.ts +17 -4
  63. package/dist/application-spec/generate-application/runtime/application-runtime.js +1 -1
  64. package/dist/application-spec/generate-application/runtime/application-spec-slice.d.ts +71 -0
  65. package/dist/application-spec/generate-application/runtime/application-spec-slice.js +1 -0
  66. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-model-runtime.d.ts +3 -3
  67. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.d.ts +7 -5
  68. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-runtime.js +1 -1
  69. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.d.ts +16 -0
  70. package/dist/application-spec/generate-application/runtime/configurator-runtime/configurator-spec-runtime.js +1 -0
  71. package/dist/application-spec/generate-application/runtime/create-application.d.ts +57 -0
  72. package/dist/application-spec/generate-application/runtime/create-application.js +1 -0
  73. package/dist/application-spec/generate-application/runtime/factory-data/recipe-defaults.js +1 -1
  74. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.d.ts +1 -1
  75. package/dist/application-spec/generate-application/runtime/factory-data/static-violations.js +1 -1
  76. package/dist/application-spec/generate-application/runtime/generate-runtime-instance.d.ts +1 -1
  77. package/dist/application-spec/generate-application/runtime/generate-runtime-instance.js +1 -1
  78. package/dist/application-spec/generate-application/runtime/index.d.ts +8 -0
  79. package/dist/application-spec/generate-application/runtime/index.js +1 -0
  80. package/dist/application-spec/generate-application/runtime/sections/build-sdk-optic.js +1 -1
  81. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.d.ts +9 -3
  82. package/dist/application-spec/generate-application/runtime/sections/expression-runtime.js +1 -1
  83. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.d.ts +1 -1
  84. package/dist/application-spec/generate-application/runtime/sections/generate-memo-eval-plan-runtime.js +1 -1
  85. package/dist/application-spec/generate-application/runtime/spec-code/resolve-spec-code.d.ts +1 -1
  86. package/dist/application-spec/generate-application/runtime/spec-runtime.d.ts +21 -0
  87. package/dist/application-spec/generate-application/runtime/spec-runtime.js +1 -0
  88. package/dist/application-spec/generate-application/runtime-spec/encoded-runtime-spec.d.ts +3 -2
  89. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.d.ts +44 -9
  90. package/dist/application-spec/generate-application/runtime-spec/runtime-spec.js +1 -1
  91. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +33 -3
  92. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  93. package/dist/application-spec/parse-application-files/raw-spec/raw-expressions.d.ts +1 -1
  94. package/dist/application-spec/parse-application-files/raw-spec/raw-expressions.js +1 -1
  95. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +9 -0
  96. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -0
  97. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +4 -1
  98. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  99. package/dist/client/authorized-client.d.ts +3 -1
  100. package/dist/client/authorized-client.js +1 -1
  101. package/dist/client/contract.d.ts +17 -0
  102. package/dist/client/index.d.ts +1 -1
  103. package/dist/client/local-authorized-client.d.ts +3 -1
  104. package/dist/client/local-authorized-client.js +1 -1
  105. package/dist/client/memory-authorized-client.d.ts +4 -1
  106. package/dist/client/memory-authorized-client.js +1 -1
  107. package/dist/client/phoenix-api.d.ts +228 -0
  108. package/dist/configurator/ConfiguratorApp.js +1 -1
  109. package/dist/configurator/app-loader-content/index.d.ts +0 -1
  110. package/dist/configurator/app-loader-content/index.js +1 -1
  111. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  112. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +17 -3
  113. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  114. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +34 -7
  115. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  116. package/dist/configurator/application-runtime/extensions/systems/canvas-system.d.ts +8 -0
  117. package/dist/configurator/application-runtime/extensions/systems/canvas-system.js +1 -1
  118. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.d.ts +8 -0
  119. package/dist/configurator/application-runtime/extensions/systems/export-system/export-busy-error.js +1 -0
  120. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +23 -1
  121. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  122. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +14 -1
  123. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  124. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +51 -4
  125. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  126. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +14 -5
  127. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  128. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +1 -1
  129. package/dist/configurator/common/configurator-interface.d.ts +59 -6
  130. package/dist/configurator/common/configurator-interface.js +1 -1
  131. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.d.ts +5 -0
  132. package/dist/configurator/configuration-not-found-page/BuiltInConfigurationNotFoundPage.js +1 -0
  133. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.d.ts +0 -6
  134. package/dist/configurator/configuration-not-found-page/ConfigurationNotFoundPageElement.js +1 -1
  135. package/dist/configurator/configuration-not-found-page/index.d.ts +2 -2
  136. package/dist/configurator/configuration-not-found-page/index.js +1 -1
  137. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.d.ts +3 -3
  138. package/dist/configurator/configurator-context/ConfiguratorResponsiveProvider.js +1 -1
  139. package/dist/configurator/configurator-context/PreviewContextProvider.js +1 -1
  140. package/dist/configurator/configurator-context/configurator-hooks/layout-hooks.d.ts +4 -0
  141. package/dist/configurator/configurator-context/configurator-routing/ConfiguratorRoutingProvider.js +1 -1
  142. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.d.ts +3 -3
  143. package/dist/configurator/configurator-error-page/BuiltInConfiguratorErrorPage.js +1 -1
  144. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.d.ts +0 -5
  145. package/dist/configurator/configurator-error-page/ConfiguratorErrorPageElement.js +1 -1
  146. package/dist/configurator/configurator-error-page/index.d.ts +1 -2
  147. package/dist/configurator/configurator-error-page/index.js +1 -1
  148. package/dist/configurator/index.d.ts +10 -2
  149. package/dist/configurator/index.js +1 -1
  150. package/dist/configurator/pages/default-configurator-elements.d.ts +3 -2
  151. package/dist/configurator/pages/default-configurator-elements.js +1 -1
  152. package/dist/configurator/pages/default-elements/index.d.ts +1 -0
  153. package/dist/configurator/pages/default-elements/index.js +1 -1
  154. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.d.ts +3 -0
  155. package/dist/configurator/pages/default-elements/scene-controls/BuiltInAddEntityFab.js +1 -0
  156. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.d.ts +3 -0
  157. package/dist/configurator/pages/default-elements/scene-controls/BuiltInDeleteEntityFab.js +1 -0
  158. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.d.ts +3 -0
  159. package/dist/configurator/pages/default-elements/scene-controls/BuiltInNavigationHotspot.js +1 -0
  160. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.d.ts +3 -0
  161. package/dist/configurator/pages/default-elements/scene-controls/BuiltInSelectionHotspot.js +1 -0
  162. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.d.ts +3 -0
  163. package/dist/configurator/pages/default-elements/scene-controls/BuiltInToolMenuFab.js +1 -0
  164. package/dist/configurator/pages/default-elements/scene-controls/index.d.ts +6 -0
  165. package/dist/configurator/pages/default-elements/scene-controls/index.js +1 -0
  166. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.d.ts +6 -0
  167. package/dist/configurator/pages/default-elements/scene-controls/scene-control-elements.js +1 -0
  168. package/dist/configurator/pages/error-boundaries/LoadingErrorBoundary.js +1 -1
  169. package/dist/configurator/scene/index.d.ts +1 -0
  170. package/dist/configurator/scene/index.js +1 -1
  171. package/dist/configurator/scene/scene-controls/ToolFab.d.ts +4 -0
  172. package/dist/configurator/scene/scene-controls/ToolFab.js +1 -1
  173. package/dist/configurator/scene/scene-controls/use-scene-control-tooltip.d.ts +2 -1
  174. package/dist/configurator/scene/scene-entity/scene-controls/SceneEntityHtmlHotspots.js +1 -1
  175. package/dist/configurator/toolbar-actions/index.d.ts +3 -0
  176. package/dist/configurator/toolbar-actions/index.js +1 -0
  177. package/dist/configurator/toolbar-actions/use-assistant-panel.d.ts +18 -0
  178. package/dist/configurator/toolbar-actions/use-assistant-panel.js +1 -0
  179. package/dist/configurator/toolbar-actions/use-measurements.d.ts +35 -0
  180. package/dist/configurator/toolbar-actions/use-measurements.js +1 -0
  181. package/dist/configurator/toolbar-actions/use-toolbar-actions.d.ts +100 -0
  182. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -0
  183. package/dist/configurator/toolbar-actions/use-toolbar-help.d.ts +7 -0
  184. package/dist/configurator/toolbar-actions/use-toolbar-help.js +1 -0
  185. package/dist/configurator/ui/assistant/AssistantChips.d.ts +3 -2
  186. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  187. package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +1 -1
  188. package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -1
  189. package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +8 -0
  190. package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -0
  191. package/dist/configurator/ui/assistant/alert/index.d.ts +2 -0
  192. package/dist/configurator/ui/assistant/alert/index.js +1 -0
  193. package/dist/configurator/ui/assistant/alert/remark-alerts.d.ts +10 -0
  194. package/dist/configurator/ui/assistant/alert/remark-alerts.js +1 -0
  195. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -1
  196. package/dist/configurator/ui/assistant/form/compose-answer.d.ts +1 -1
  197. package/dist/configurator/ui/assistant/form/compose-answer.js +1 -1
  198. package/dist/configurator/ui/assistant/form/form-model.d.ts +3 -4
  199. package/dist/configurator/ui/assistant/form/form-state.d.ts +1 -1
  200. package/dist/configurator/ui/assistant/form/index.d.ts +2 -0
  201. package/dist/configurator/ui/assistant/form/index.js +1 -1
  202. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +3 -2
  203. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -1
  204. package/dist/configurator/ui/assistant/form/read-form-attributes.d.ts +1 -1
  205. package/dist/configurator/ui/assistant/form/read-form-attributes.js +1 -1
  206. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +3 -0
  207. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -0
  208. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +31 -0
  209. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.js +1 -0
  210. package/dist/configurator/ui/assistant/form/{form-element-definition.d.ts → registry/form-element-definition.d.ts} +3 -1
  211. package/dist/configurator/ui/assistant/form/registry/form-element-definition.js +1 -0
  212. package/dist/configurator/ui/assistant/form/{form-registry.d.ts → registry/form-registry.d.ts} +2 -2
  213. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -0
  214. package/dist/configurator/ui/assistant/form/registry/index.d.ts +6 -0
  215. package/dist/configurator/ui/assistant/form/registry/index.js +1 -0
  216. package/dist/configurator/ui/assistant/form/registry/use-form-registry.d.ts +8 -0
  217. package/dist/configurator/ui/assistant/form/registry/use-form-registry.js +1 -0
  218. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +9 -0
  219. package/dist/configurator/ui/assistant/form-elements/FormCard.js +1 -0
  220. package/dist/configurator/ui/assistant/form-elements/FormConfirm.d.ts +9 -0
  221. package/dist/configurator/ui/assistant/form-elements/FormConfirm.js +1 -0
  222. package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +4 -1
  223. package/dist/configurator/ui/assistant/form-elements/FormNumber.d.ts +9 -0
  224. package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -0
  225. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +4 -1
  226. package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +4 -1
  227. package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -1
  228. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +10 -0
  229. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +1 -0
  230. package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +4 -1
  231. package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -1
  232. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.d.ts +10 -0
  233. package/dist/configurator/ui/assistant/form-elements/clamp-form-number.js +1 -0
  234. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +20 -16
  235. package/dist/configurator/ui/assistant/form-elements/index.d.ts +4 -0
  236. package/dist/configurator/ui/assistant/form-elements/index.js +1 -1
  237. package/dist/configurator/ui/assistant/index.d.ts +3 -0
  238. package/dist/configurator/ui/assistant/index.js +1 -1
  239. package/dist/configurator/ui/assistant/resource-image/index.d.ts +1 -1
  240. package/dist/configurator/ui/assistant/resource-image/index.js +1 -1
  241. package/dist/configurator/ui/assistant/resource-image/resource-path.d.ts +0 -9
  242. package/dist/configurator/ui/assistant/resource-image/resource-path.js +1 -1
  243. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +9 -0
  244. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -0
  245. package/dist/configurator/ui/assistant/screenshots/index.d.ts +2 -0
  246. package/dist/configurator/ui/assistant/screenshots/index.js +1 -0
  247. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +22 -0
  248. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -0
  249. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +8 -0
  250. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -0
  251. package/dist/configurator/ui/assistant/streamed-markdown.d.ts +2 -2
  252. package/dist/configurator/ui/assistant/streamed-markdown.js +2 -2
  253. package/dist/configurator/ui/assistant/tool-chip.js +1 -1
  254. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  255. package/dist/configurator/ui/configurator-layout/slots/canvas/SharedCanvas.js +1 -1
  256. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.d.ts +5 -0
  257. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.js +1 -0
  258. package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
  259. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -1
  260. package/dist/configurator/ui/index.d.ts +1 -0
  261. package/dist/configurator/ui/index.js +1 -1
  262. package/dist/configurator/ui/legacy/layout/common/ReactiveInterfaceLayout.js +1 -1
  263. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.d.ts +0 -7
  264. package/dist/configurator/ui/phoenix-layout-elements/AppLoader.js +2 -2
  265. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -1
  266. package/dist/configurator/ui/phoenix-layout-elements/LanguageMenuAction.js +1 -1
  267. package/dist/configurator/ui/phoenix-layout-elements/LanguageToolbarButton.js +1 -1
  268. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsMenuAction.js +1 -1
  269. package/dist/configurator/ui/phoenix-layout-elements/MeasurementsToolbarButton.js +1 -1
  270. package/dist/configurator/ui/phoenix-layout-elements/ShareToolbarButton.js +1 -1
  271. package/dist/configurator/ui/phoenix-layout-elements/index.d.ts +8 -1
  272. package/dist/configurator/ui/phoenix-layout-elements/index.js +1 -1
  273. package/dist/configurator/ui/phoenix-layout-elements/measurements/DimensionUnitSelector.js +1 -1
  274. package/dist/configurator/ui/phoenix-layout-elements/measurements/MeasurementsIndicatorsSwitch.js +1 -1
  275. package/dist/configurator/ui/phoenix-layout-elements/share/ShareModal.js +1 -1
  276. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.d.ts +7 -8
  277. package/dist/configurator/ui/phoenix-layout-elements/share/use-share.js +1 -1
  278. package/dist/configurator/ui/preset-layout/PresetUi.d.ts +0 -2
  279. package/dist/configurator/ui/preset-layout/PresetUi.js +1 -1
  280. package/dist/configurator/ui/preset-layout/index.d.ts +6 -1
  281. package/dist/configurator/ui/preset-layout/index.js +1 -1
  282. package/dist/configurator/ui/save-message-snackbars/SaveMessageSnackbars.js +1 -1
  283. package/dist/docs/complex-use-cases/focus-mode.mdx +2 -0
  284. package/dist/docs/fabs/basic.mdx +4 -0
  285. package/dist/docs/index.json +95 -1
  286. package/dist/docs/integrations/webcomponent-api/basics.mdx +2 -0
  287. package/dist/docs/layouts/custom-layout.mdx +320 -158
  288. package/dist/docs/layouts/gallery/ardent-compressor.mdx +3516 -0
  289. package/dist/docs/layouts/gallery/corvid-drone.mdx +3428 -0
  290. package/dist/docs/layouts/gallery/fenwick-window.mdx +2803 -0
  291. package/dist/docs/layouts/gallery/ferrule-bar-station.mdx +6567 -0
  292. package/dist/docs/layouts/gallery/kestrel-kettle.mdx +1858 -0
  293. package/dist/docs/layouts/gallery/nightjar-guitar.mdx +3698 -0
  294. package/dist/docs/layouts/gallery/sunfold-solar.mdx +2683 -0
  295. package/dist/docs/layouts/gallery/tidepool-aquascape.mdx +5203 -0
  296. package/dist/docs/other-features/client-side-rendering/declarative.mdx +1 -1
  297. package/dist/docs/other-features/navigation-hotspot.mdx +2 -0
  298. package/dist/docs/phoenix/configurator-interface.mdx +76 -7
  299. package/dist/docs/phoenix/domain-model.mdx +4 -1
  300. package/dist/docs/phoenix/phoenix-cli.mdx +14 -6
  301. package/dist/docs/phoenix/project-structure.mdx +21 -17
  302. package/dist/docs/phoenix/sdk-builder-workflow.mdx +7 -5
  303. package/dist/docs/phoenix/sessions-and-access.mdx +2 -0
  304. package/dist/docs/selection-and-highlight/hotspots.mdx +2 -0
  305. package/dist/domain/application/assistant/assistant-manifest.d.ts +16 -1
  306. package/dist/domain/application/assistant/assistant-resolved-manifest.d.ts +8 -1
  307. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  308. package/dist/domain/application/assistant/form/assistant-form-element-name.d.ts +11 -0
  309. package/dist/domain/application/assistant/form/assistant-form-element-name.js +8 -0
  310. package/dist/domain/application/assistant/form/assistant-form-elements.d.ts +174 -0
  311. package/dist/domain/application/assistant/form/assistant-form-elements.js +1 -0
  312. package/dist/domain/application/assistant/form/assistant-resource-path.d.ts +10 -0
  313. package/dist/domain/application/assistant/form/assistant-resource-path.js +1 -0
  314. package/dist/domain/application/assistant/form/index.d.ts +4 -0
  315. package/dist/domain/application/assistant/form/index.js +1 -0
  316. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +3 -0
  317. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  318. package/dist/domain/application/assistant/index.d.ts +2 -3
  319. package/dist/domain/application/assistant/index.js +1 -1
  320. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -1
  321. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +2 -0
  322. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -1
  323. package/dist/domain/application/configurator-builder.d.ts +7 -1
  324. package/dist/domain/application/configurator-builder.js +1 -1
  325. package/dist/domain/application/index.d.ts +1 -1
  326. package/dist/domain/application/index.js +1 -1
  327. package/dist/domain/application/standard-properties.js +1 -1
  328. package/dist/domain/application/web-component-property.d.ts +3 -1
  329. package/dist/domain/application/web-component-property.js +1 -1
  330. package/dist/domain/available-system-components.d.ts +1 -1
  331. package/dist/domain/available-system-components.js +1 -1
  332. package/dist/domain/domain-builder.d.ts +9 -3
  333. package/dist/domain/domain-builder.js +1 -1
  334. package/dist/domain/domain-context/store-system/store-system.d.ts +5 -0
  335. package/dist/domain/domain-context/store-system/store-system.js +1 -1
  336. package/dist/domain/domain-runtime/application.d.ts +39 -0
  337. package/dist/domain/domain-runtime/application.js +1 -0
  338. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +1 -0
  339. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  340. package/dist/domain/domain-runtime/domain-runtime.d.ts +44 -4
  341. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  342. package/dist/domain/domain-runtime/environment/initialize.d.ts +1 -1
  343. package/dist/domain/domain-runtime/environment/types.d.ts +1 -1
  344. package/dist/domain/domain-runtime/errors/implementation-error-collector.d.ts +2 -0
  345. package/dist/domain/domain-runtime/errors/implementation-error-collector.js +1 -1
  346. package/dist/domain/domain-runtime/index.d.ts +2 -1
  347. package/dist/domain/domain-runtime/index.js +1 -1
  348. package/dist/domain/domain-runtime/spec/index.d.ts +1 -1
  349. package/dist/domain/domain-runtime/spec/index.js +1 -1
  350. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  351. package/dist/domain/domain-runtime/spec/module-checks/element-registration.d.ts +15 -1
  352. package/dist/domain/domain-runtime/spec/module-checks/element-registration.js +1 -1
  353. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.d.ts +12 -0
  354. package/dist/domain/domain-runtime/spec/module-checks/find-assistant-form-element-errors.js +1 -0
  355. package/dist/domain/domain-runtime/spec/module-checks/index.d.ts +3 -1
  356. package/dist/domain/domain-runtime/spec/module-checks/index.js +1 -1
  357. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.d.ts +23 -0
  358. package/dist/domain/domain-runtime/spec/module-checks/merge-expression-modules.js +1 -0
  359. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.d.ts +3 -4
  360. package/dist/domain/domain-runtime/spec/module-checks/resolve-expression-modules.js +1 -1
  361. package/dist/domain/domain-runtime/spec/selectors.d.ts +3 -1
  362. package/dist/domain/domain-runtime/spec/selectors.js +1 -1
  363. package/dist/domain/domain-runtime/web-component/actions.d.ts +3 -0
  364. package/dist/domain/domain-runtime/web-component/actions.js +1 -1
  365. package/dist/domain/domain-runtime/web-component/initialize.d.ts +1 -0
  366. package/dist/domain/domain-runtime/web-component/initialize.js +1 -1
  367. package/dist/domain/domain-runtime/web-component/selectors.d.ts +2 -0
  368. package/dist/domain/domain-runtime/web-component/selectors.js +1 -1
  369. package/dist/domain/domain-runtime/web-component/types.d.ts +6 -3
  370. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +24 -0
  371. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -0
  372. package/dist/domain/extensions/{client-side-image.d.ts → export-images/client-side-image.d.ts} +2 -2
  373. package/dist/domain/extensions/export-images/client-side-image.js +1 -0
  374. package/dist/domain/extensions/export-images/index.d.ts +3 -0
  375. package/dist/domain/extensions/export-images/index.js +1 -0
  376. package/dist/domain/extensions/{save-template-thumbnail.d.ts → export-images/save-template-thumbnail.d.ts} +2 -2
  377. package/dist/domain/extensions/export-images/save-template-thumbnail.js +1 -0
  378. package/dist/domain/extensions/index.d.ts +1 -2
  379. package/dist/domain/extensions/index.js +1 -1
  380. package/dist/domain/index.d.ts +1 -0
  381. package/dist/domain/index.js +1 -1
  382. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +9 -0
  383. package/dist/domain/spec/application/index.d.ts +1 -0
  384. package/dist/domain/spec/application/index.js +1 -0
  385. package/dist/{application-spec/core → domain/spec}/components/component-filter.d.ts +3 -2
  386. package/dist/domain/spec/enhanced-json-value.d.ts +30 -0
  387. package/dist/domain/spec/enhanced-json-value.js +1 -0
  388. package/dist/domain/spec/index.d.ts +5 -0
  389. package/dist/domain/spec/index.js +1 -0
  390. package/dist/domain/spec/markers/index.d.ts +2 -0
  391. package/dist/domain/spec/markers/index.js +1 -0
  392. package/dist/domain/spec/markers/msg-marker.d.ts +28 -0
  393. package/dist/domain/spec/markers/msg-marker.js +1 -0
  394. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  395. package/dist/editor/domain-editors/apply-spec-update.d.ts +10 -2
  396. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  397. package/dist/editor/domain-editors/use-implementation-files.d.ts +6 -14
  398. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  399. package/dist/editor/screenshot/ScreenshotHandler.js +1 -1
  400. package/dist/i18n/locales/cs/messages.js +1 -1
  401. package/dist/i18n/locales/da/messages.js +1 -1
  402. package/dist/i18n/locales/de/messages.js +1 -1
  403. package/dist/i18n/locales/de-AT/messages.js +1 -1
  404. package/dist/i18n/locales/en/messages.js +1 -1
  405. package/dist/i18n/locales/en-AU/messages.js +1 -1
  406. package/dist/i18n/locales/en-GB/messages.js +1 -1
  407. package/dist/i18n/locales/es/messages.js +1 -1
  408. package/dist/i18n/locales/fr/messages.js +1 -1
  409. package/dist/i18n/locales/hu/messages.js +1 -1
  410. package/dist/i18n/locales/it/messages.js +1 -1
  411. package/dist/i18n/locales/nl/messages.js +1 -1
  412. package/dist/i18n/locales/pl/messages.js +1 -1
  413. package/dist/i18n/locales/pt/messages.js +1 -1
  414. package/dist/i18n/locales/ro/messages.js +1 -1
  415. package/dist/i18n/locales/sk/messages.js +1 -1
  416. package/dist/i18n/locales/tr/messages.js +1 -1
  417. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  418. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  419. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +16 -0
  420. package/dist/legacy/domain-spec/spec/domain-spec.js +1 -1
  421. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/claude-md.d.ts +1 -1
  422. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/cursor-rules.d.ts +1 -1
  423. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.d.ts +1 -1
  424. package/dist/legacy/phoenix-cli/project-gen/generators/file-templates/agents/shared-sdk-content.js +11 -5
  425. package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
  426. package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +11 -0
  427. package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
  428. package/dist/phoenix/bin.js +1 -1
  429. package/dist/phoenix/cli.js +1 -1
  430. package/dist/phoenix/commands/deploy.js +1 -1
  431. package/dist/phoenix/commands/dev.js +5 -5
  432. package/dist/phoenix/commands/generated-env-markers.d.ts +1 -0
  433. package/dist/phoenix/commands/generated-env-markers.js +1 -1
  434. package/dist/phoenix/commands/index.d.ts +1 -1
  435. package/dist/phoenix/commands/index.js +1 -1
  436. package/dist/phoenix/lingui/index.d.ts +1 -0
  437. package/dist/phoenix/lingui/index.js +1 -0
  438. package/dist/phoenix/{services → lingui}/lingui.d.ts +5 -2
  439. package/dist/phoenix/lingui/lingui.js +1 -0
  440. package/dist/phoenix/services/application-spec-project-watcher.d.ts +3 -1
  441. package/dist/phoenix/services/application-spec-project-watcher.js +2 -2
  442. package/dist/phoenix/services/index.d.ts +1 -0
  443. package/dist/phoenix/services/index.js +1 -1
  444. package/dist/phoenix/services/lingui-watcher.js +1 -1
  445. package/dist/phoenix/services/prepare-development-environment.js +1 -1
  446. package/dist/phoenix/services/vite-config.js +1 -1
  447. package/dist/react-sdk/application-runtime/common-services/analytics/analytics-service.d.ts +1 -1
  448. package/dist/react-sdk/application-runtime/common-services/initialize.d.ts +2 -2
  449. package/dist/react-sdk/application-runtime/hooks/index.d.ts +2 -0
  450. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  451. package/dist/react-sdk/application-runtime/hooks/loading/index.d.ts +5 -0
  452. package/dist/react-sdk/application-runtime/hooks/loading/index.js +1 -0
  453. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.d.ts +11 -0
  454. package/dist/react-sdk/application-runtime/hooks/loading/loader-host-context.js +1 -0
  455. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.d.ts +8 -0
  456. package/dist/react-sdk/application-runtime/hooks/loading/use-is-awaiting-loading-phase.js +1 -0
  457. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.d.ts +7 -0
  458. package/dist/react-sdk/application-runtime/hooks/loading/use-is-loader-hosted.js +1 -0
  459. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.d.ts +9 -0
  460. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-actions.js +1 -0
  461. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.d.ts +24 -0
  462. package/dist/react-sdk/application-runtime/hooks/loading/use-loading-application.js +1 -0
  463. package/dist/react-sdk/application-runtime/hooks/responsive/index.d.ts +3 -0
  464. package/dist/react-sdk/application-runtime/hooks/responsive/index.js +1 -0
  465. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.d.ts +9 -0
  466. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-actions.js +1 -0
  467. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +26 -0
  468. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.js +1 -0
  469. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.d.ts +10 -0
  470. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-state.js +1 -0
  471. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.d.ts +24 -0
  472. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -0
  473. package/dist/react-sdk/application-runtime/hooks/use-access-service.d.ts +5 -0
  474. package/dist/react-sdk/application-runtime/hooks/use-access-service.js +1 -1
  475. package/dist/react-sdk/application-runtime/hooks/use-phoenix-element-slots.d.ts +2 -1
  476. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.d.ts +4 -11
  477. package/dist/react-sdk/application-runtime/hooks/use-web-component-readonly-sync.js +1 -1
  478. package/dist/react-sdk/application-runtime/hooks/use-web-component.d.ts +5 -0
  479. package/dist/react-sdk/application-runtime/hooks/use-web-component.js +1 -1
  480. package/dist/react-sdk/application-runtime/host-properties/actions.d.ts +15 -0
  481. package/dist/react-sdk/application-runtime/host-properties/actions.js +1 -0
  482. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.d.ts +30 -0
  483. package/dist/react-sdk/application-runtime/host-properties/connect-host-properties.js +1 -0
  484. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.d.ts +7 -0
  485. package/dist/react-sdk/application-runtime/host-properties/domain-host-properties.js +1 -0
  486. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.d.ts +21 -0
  487. package/dist/react-sdk/application-runtime/host-properties/host-property-descriptors.js +1 -0
  488. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.d.ts +42 -0
  489. package/dist/react-sdk/application-runtime/host-properties/host-property-scopes.js +1 -0
  490. package/dist/react-sdk/application-runtime/host-properties/index.d.ts +8 -0
  491. package/dist/react-sdk/application-runtime/host-properties/index.js +1 -0
  492. package/dist/react-sdk/application-runtime/host-properties/initialize.d.ts +7 -0
  493. package/dist/react-sdk/application-runtime/host-properties/initialize.js +1 -0
  494. package/dist/react-sdk/application-runtime/host-properties/selectors.d.ts +54 -0
  495. package/dist/react-sdk/application-runtime/host-properties/selectors.js +1 -0
  496. package/dist/react-sdk/application-runtime/host-properties/types.d.ts +18 -0
  497. package/dist/react-sdk/application-runtime/index.d.ts +3 -0
  498. package/dist/react-sdk/application-runtime/integration/initialize.d.ts +7 -6
  499. package/dist/react-sdk/application-runtime/integration/initialize.js +1 -1
  500. package/dist/react-sdk/application-runtime/integration/selectors.d.ts +11 -2
  501. package/dist/react-sdk/application-runtime/integration/selectors.js +1 -1
  502. package/dist/react-sdk/application-runtime/integration/types.d.ts +5 -2
  503. package/dist/react-sdk/application-runtime/loading/actions.d.ts +45 -0
  504. package/dist/react-sdk/application-runtime/loading/actions.js +1 -0
  505. package/dist/react-sdk/application-runtime/loading/index.d.ts +4 -0
  506. package/dist/react-sdk/application-runtime/loading/index.js +1 -0
  507. package/dist/react-sdk/application-runtime/loading/initialize.d.ts +3 -0
  508. package/dist/react-sdk/application-runtime/loading/initialize.js +1 -0
  509. package/dist/react-sdk/application-runtime/loading/selectors.d.ts +18 -0
  510. package/dist/react-sdk/application-runtime/loading/selectors.js +1 -0
  511. package/dist/react-sdk/application-runtime/loading/types.d.ts +59 -0
  512. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  513. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.d.ts +6 -0
  514. package/dist/react-sdk/application-runtime/provider/ApplicationRuntime.js +1 -1
  515. package/dist/react-sdk/application-runtime/provider/ApplicationType.d.ts +7 -0
  516. package/dist/react-sdk/application-runtime/provider/ApplicationType.js +1 -1
  517. package/dist/react-sdk/application-runtime/responsive/actions.d.ts +47 -0
  518. package/dist/react-sdk/application-runtime/responsive/actions.js +1 -0
  519. package/dist/react-sdk/application-runtime/responsive/index.d.ts +4 -0
  520. package/dist/react-sdk/application-runtime/responsive/index.js +1 -0
  521. package/dist/react-sdk/application-runtime/responsive/initialize.d.ts +3 -0
  522. package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -0
  523. package/dist/react-sdk/application-runtime/responsive/selectors.d.ts +20 -0
  524. package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -0
  525. package/dist/react-sdk/application-runtime/responsive/types.d.ts +104 -0
  526. package/dist/react-sdk/application-runtime/routing/routing-service.d.ts +34 -2
  527. package/dist/react-sdk/application-runtime/routing/routing-service.js +1 -1
  528. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +313 -10
  529. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  530. package/dist/react-sdk/domain-application-context/BackendDataProvider.js +1 -1
  531. package/dist/react-sdk/domain-application-context/FrontendDataProvider.js +1 -1
  532. package/dist/react-sdk/domain-application-context/PublishedDataProvider.js +1 -1
  533. package/dist/react-sdk/domain-context/common-hooks/index.d.ts +1 -0
  534. package/dist/react-sdk/domain-context/common-hooks/index.js +1 -1
  535. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.d.ts +23 -0
  536. package/dist/react-sdk/domain-context/common-hooks/use-configuration-save-state.js +1 -0
  537. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +1 -0
  538. package/dist/react-sdk/domain-context/index.d.ts +4 -0
  539. package/dist/react-sdk/domain-context/index.js +1 -1
  540. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +8 -0
  541. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -0
  542. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.d.ts +24 -0
  543. package/dist/react-sdk/domain-context/system-hooks/locale-switch-hooks.js +1 -0
  544. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.d.ts +32 -0
  545. package/dist/react-sdk/domain-context/system-hooks/share-links-hooks.js +1 -0
  546. package/dist/react-sdk/domain-context/system-hooks/undo-redo-hooks.js +1 -1
  547. package/dist/react-sdk/elements/index.d.ts +0 -1
  548. package/dist/react-sdk/index.d.ts +2 -1
  549. package/dist/react-sdk/index.js +1 -1
  550. package/dist/react-sdk/loading-state/LoaderHost.d.ts +20 -0
  551. package/dist/react-sdk/loading-state/LoaderHost.js +1 -0
  552. package/dist/react-sdk/loading-state/built-in-loading-phase.d.ts +9 -0
  553. package/dist/react-sdk/loading-state/built-in-loading-phase.js +1 -0
  554. package/dist/react-sdk/loading-state/create-app-loader.d.ts +18 -0
  555. package/dist/react-sdk/loading-state/create-app-loader.js +1 -0
  556. package/dist/react-sdk/loading-state/index.d.ts +4 -2
  557. package/dist/react-sdk/loading-state/index.js +1 -1
  558. package/dist/react-sdk/loading-state/{LoadingStateProvider.d.ts → loading-state-hooks.d.ts} +3 -12
  559. package/dist/react-sdk/loading-state/loading-state-hooks.js +1 -0
  560. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.d.ts +17 -0
  561. package/dist/react-sdk/page-elements/ConfigurationNotFoundPagePropsProvider.js +1 -0
  562. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.d.ts +17 -0
  563. package/dist/react-sdk/page-elements/ConfiguratorErrorPagePropsProvider.js +1 -0
  564. package/dist/react-sdk/page-elements/configurator-error-page-props.js +1 -0
  565. package/dist/{configurator/configuration-not-found-page → react-sdk/page-elements}/create-configuration-not-found-page.d.ts +7 -1
  566. package/dist/react-sdk/page-elements/create-configuration-not-found-page.js +1 -0
  567. package/dist/{configurator/configurator-error-page → react-sdk/page-elements}/create-configurator-error-page.d.ts +6 -1
  568. package/dist/react-sdk/page-elements/create-configurator-error-page.js +1 -0
  569. package/dist/react-sdk/page-elements/create-preset-ui.d.ts +9 -0
  570. package/dist/react-sdk/page-elements/create-preset-ui.js +1 -0
  571. package/dist/react-sdk/page-elements/index.d.ts +6 -0
  572. package/dist/react-sdk/page-elements/index.js +1 -0
  573. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.d.ts +36 -0
  574. package/dist/react-sdk/scene-control-elements/AddEntityFabElement.js +1 -0
  575. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.d.ts +44 -0
  576. package/dist/react-sdk/scene-control-elements/DeleteEntityFabElement.js +1 -0
  577. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.d.ts +38 -0
  578. package/dist/react-sdk/scene-control-elements/NavigationHotspotElement.js +1 -0
  579. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.d.ts +30 -0
  580. package/dist/react-sdk/scene-control-elements/SelectionHotspotElement.js +1 -0
  581. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.d.ts +30 -0
  582. package/dist/react-sdk/scene-control-elements/ToolMenuFabElement.js +1 -0
  583. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.d.ts +9 -0
  584. package/dist/react-sdk/scene-control-elements/create-add-entity-fab.js +1 -0
  585. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.d.ts +9 -0
  586. package/dist/react-sdk/scene-control-elements/create-delete-entity-fab.js +1 -0
  587. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.d.ts +10 -0
  588. package/dist/react-sdk/scene-control-elements/create-navigation-hotspot.js +1 -0
  589. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.d.ts +9 -0
  590. package/dist/react-sdk/scene-control-elements/create-selection-hotspot.js +1 -0
  591. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.d.ts +9 -0
  592. package/dist/react-sdk/scene-control-elements/create-tool-menu-fab.js +1 -0
  593. package/dist/react-sdk/scene-control-elements/index.d.ts +11 -0
  594. package/dist/react-sdk/scene-control-elements/index.js +1 -0
  595. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.d.ts +5 -0
  596. package/dist/react-sdk/scene-control-elements/scene-control-tooltip-visibility.js +1 -0
  597. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  598. package/dist/react-sdk/web-component/create-web-component.js +1 -1
  599. package/dist/react-sdk/web-component/god-mode/god-mode-registry.d.ts +30 -0
  600. package/dist/react-sdk/web-component/god-mode/god-mode-registry.js +1 -0
  601. package/dist/react-sdk/web-component/god-mode/index.d.ts +1 -0
  602. package/dist/react-sdk/web-component/god-mode/index.js +1 -0
  603. package/dist/ui-sdk/icons/__generated/Lightbulb.d.ts +3 -0
  604. package/dist/ui-sdk/icons/__generated/Lightbulb.js +1 -0
  605. package/dist/ui-sdk/icons/__generated/XCircle.d.ts +3 -0
  606. package/dist/ui-sdk/icons/__generated/XCircle.js +1 -0
  607. package/dist/ui-sdk/icons/__generated/index.d.ts +4 -0
  608. package/dist/ui-sdk/icons/__generated/index.js +1 -1
  609. package/dist/ui-sdk/icons/icons-registry.js +1 -1
  610. package/dist/ui-sdk/responsive-application/ResponsiveApplicationProvider.d.ts +2 -2
  611. package/dist/ui-sdk/responsive-application/responsive-state-store.d.ts +11 -9
  612. package/dist/ui-sdk/responsive-application/use-store-responsive-info.js +1 -1
  613. package/dist/ui-sdk/theme/types.d.ts +5 -1
  614. package/package.json +13 -3
  615. package/schema/domain-spec.json +140 -0
  616. package/dist/configurator/app-loader-content/app-loader-content-name.d.ts +0 -5
  617. package/dist/configurator/app-loader-content/app-loader-content-name.js +0 -1
  618. package/dist/configurator/configuration-not-found-page/create-configuration-not-found-page.js +0 -1
  619. package/dist/configurator/configurator-error-page/create-configurator-error-page.js +0 -1
  620. package/dist/configurator/ui/assistant/form/built-in-form-registry.d.ts +0 -10
  621. package/dist/configurator/ui/assistant/form/built-in-form-registry.js +0 -1
  622. package/dist/configurator/ui/assistant/form/form-registry.js +0 -8
  623. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.d.ts +0 -4
  624. package/dist/configurator/ui/phoenix-layout-elements/language/use-locale-options.js +0 -1
  625. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.d.ts +0 -4
  626. package/dist/configurator/ui/phoenix-layout-elements/measurements/use-measurements-visibility.js +0 -1
  627. package/dist/domain/application/assistant/assistant-form-elements.d.ts +0 -28
  628. package/dist/domain/application/assistant/assistant-form-elements.js +0 -1
  629. package/dist/domain/extensions/client-side-image.js +0 -1
  630. package/dist/domain/extensions/save-template-thumbnail.js +0 -1
  631. package/dist/phoenix/services/lingui.js +0 -1
  632. package/dist/react-sdk/application-runtime/runtime/god-mode.d.ts +0 -19
  633. package/dist/react-sdk/application-runtime/runtime/god-mode.js +0 -1
  634. package/dist/react-sdk/loading-state/LoadingStateProvider.js +0 -1
  635. package/dist/react-sdk/loading-state/loading-state-manager.d.ts +0 -37
  636. package/dist/react-sdk/loading-state/loading-state-manager.js +0 -1
  637. package/dist/react-sdk/responsive-state/ResponsiveStateProvider.d.ts +0 -25
  638. package/dist/react-sdk/responsive-state/ResponsiveStateProvider.js +0 -1
  639. package/dist/react-sdk/responsive-state/canvas-padding.d.ts +0 -14
  640. package/dist/react-sdk/responsive-state/index.d.ts +0 -5
  641. package/dist/react-sdk/responsive-state/index.js +0 -1
  642. package/dist/react-sdk/responsive-state/responsive-state-manager.d.ts +0 -111
  643. package/dist/react-sdk/responsive-state/responsive-state-manager.js +0 -1
  644. package/dist/react-sdk/responsive-state/use-responsive-state-manager.d.ts +0 -10
  645. package/dist/react-sdk/responsive-state/use-responsive-state-manager.js +0 -1
  646. package/dist/react-sdk/responsive-state/use-responsive-state.d.ts +0 -11
  647. package/dist/react-sdk/responsive-state/use-responsive-state.js +0 -1
  648. /package/dist/{application-spec/core → domain/spec/application}/application-instance.d.ts +0 -0
  649. /package/dist/{application-spec/core → domain/spec/application}/application-instance.js +0 -0
  650. /package/dist/{application-spec/core → domain/spec}/components/component-filter.js +0 -0
  651. /package/dist/{application-spec/core → domain/spec}/components/index.d.ts +0 -0
  652. /package/dist/{application-spec/core → domain/spec}/components/index.js +0 -0
  653. /package/dist/{application-spec/core → domain/spec}/components/sdk-code-ref.d.ts +0 -0
  654. /package/dist/{application-spec/core → domain/spec}/components/sdk-code-ref.js +0 -0
  655. /package/dist/{application-spec/core → domain/spec}/expressions/index.d.ts +0 -0
  656. /package/dist/{application-spec/core → domain/spec}/expressions/index.js +0 -0
  657. /package/dist/{application-spec/core → domain/spec}/expressions/relation-expression-params.d.ts +0 -0
  658. /package/dist/{application-spec/core → domain/spec}/expressions/relation-expression-params.js +0 -0
  659. /package/dist/{application-spec/core → domain/spec}/expressions/sdk-expression-implementation.d.ts +0 -0
  660. /package/dist/{application-spec/core → domain/spec}/expressions/sdk-expression-implementation.js +0 -0
  661. /package/dist/{application-spec/core → domain/spec}/markers/eval-marker.d.ts +0 -0
  662. /package/dist/{application-spec/core → domain/spec}/markers/eval-marker.js +0 -0
  663. /package/dist/{configurator/ui/assistant/form/form-element-definition.js → react-sdk/application-runtime/host-properties/types.js} +0 -0
  664. /package/dist/react-sdk/{elements/configurator-error-page-props.js → application-runtime/loading/types.js} +0 -0
  665. /package/dist/react-sdk/{responsive-state/canvas-padding.js → application-runtime/responsive/types.js} +0 -0
  666. /package/dist/react-sdk/{elements → page-elements}/configurator-error-page-props.d.ts +0 -0
@@ -0,0 +1 @@
1
+ import{useMemo as e}from"react";import{useDomainApplication as r}from"../../application-runtime/index.js";import{useEagerObservableValue as o}from"./use-observable-selector.js";export const useConfigurationSaveState=()=>{let{configurationPersistSystem:t}=r(),i=o(t.revisionId$),a=o(t.saving$),n=o(t.failure$);return e(()=>({revisionId:i,isSaving:a,failure:n}),[i,a,n])};
@@ -69,6 +69,7 @@ export declare const useDomainContextSelectors: () => {
69
69
  getMigrate: () => import("#package/domain").MigrateFunction<DomainEntity<string>>;
70
70
  getActiveMode: () => import("#package/domain").DomainMode;
71
71
  getIsInitialized: () => boolean;
72
+ getIsViewMode: () => boolean;
72
73
  getComponentReaderIndexes: () => import("#package/domain").ComponentReaderIndexes;
73
74
  getStoreRuntimeDependencies: () => {
74
75
  componentReaderIndexes: import("#package/domain").ComponentReaderIndexes;
@@ -2,6 +2,7 @@ export { useDomain, type UseDomainContext } from './common-hooks/use-domain-cont
2
2
  export { useStoreSelector, useRenderedSelector, useRenderedSelector$, useStoreSelector$, type UseSynchronizedSelector, type UseSynchronizedSelector$, } from './common-hooks/use-store-selector.js';
3
3
  export { useEagerObservableSelector, usePatientObservableSelector, usePatientObservableValue, useEagerObservableValue, } from './common-hooks/use-observable-selector.js';
4
4
  export { useStateValidity, type UseStateValidity, useMapViolationHints, type UseMapViolationHints, useControlViolations, type UseControlViolations, useFinalizeViolations, type UseFinalizeViolations, } from './common-hooks/use-state-validity.js';
5
+ export { useConfigurationSaveState, type UseConfigurationSaveState, type ConfigurationSaveState, } from './common-hooks/use-configuration-save-state.js';
5
6
  export { useConfiguratorMessages, type UseConfiguratorMessages, type ConfiguratorMessage, } from './common-hooks/use-configurator-messages.js';
6
7
  export { useComponent, useRenderedComponent, type UseComponent, useComponents, useDynamicComponents, useRenderedComponents, type UseComponents, useRootComponents, useRootRenderedComponents, type UseRootComponents, useFirstComponent, useFirstRenderedComponent, type UseFirstComponent, useFirstRootComponent, useFirstRootRenderedComponent, type UseFirstRootComponent, } from './component-hooks/use-component.js';
7
8
  export { useCommittedState, useCommittedSlice, useRenderedSlice, useRenderedState, type UseSlice, type UseState, } from './common-hooks/use-slices.js';
@@ -13,6 +14,9 @@ export { useComposition, type UseComposition } from './system-hooks/composition-
13
14
  export { useUndoRedo, type UseUndoRedo, type UseUndoRedoResult } from './system-hooks/undo-redo-hooks.js';
14
15
  export { useTabNavigation, type TabEntry, type TabSource, type UseTabNavigation, type UseTabNavigationOptions, type UseTabNavigationResult, } from './system-hooks/tab-navigation-hooks.js';
15
16
  export { useStepNavigation, type NavigationStepEntry, type StepStatus, type UseStepNavigation, type UseStepNavigationResult, } from './system-hooks/step-navigation-hooks.js';
17
+ export { useLocaleSwitch, type UseLocaleSwitch, type UseLocaleSwitchResult, type LocaleOption, } from './system-hooks/locale-switch-hooks.js';
18
+ export { useGenerateShareLink, type GenerateShareLinkOptions } from './system-hooks/generate-share-link-hooks.js';
19
+ export { useShareLinks, type UseShareLinks, type UseShareLinksOptions, type UseShareLinksResult, } from './system-hooks/share-links-hooks.js';
16
20
  export { useHoveredDomainEntityId, useHoveredEntity, useHoveredEntityId, type UseHoveredDomainEntityId, type UseHoveredEntity, type UseHoveredEntityId, } from './system-hooks/hover-hooks.js';
17
21
  export { type UseRootEntityState, useRootEntityState, useRootEntityRenderedState, } from './entity-hooks/use-root-entity-state.js';
18
22
  export { type UseRootEntityId, useRootEntityId, useRootEntityRenderedId } from './entity-hooks/use-root-entity-id.js';
@@ -1 +1 @@
1
- export{useDomain}from"./common-hooks/use-domain-context.js";export{useStoreSelector,useRenderedSelector,useRenderedSelector$,useStoreSelector$}from"./common-hooks/use-store-selector.js";export{useEagerObservableSelector,usePatientObservableSelector,usePatientObservableValue,useEagerObservableValue}from"./common-hooks/use-observable-selector.js";export{useStateValidity,useMapViolationHints,useControlViolations,useFinalizeViolations}from"./common-hooks/use-state-validity.js";export{useConfiguratorMessages}from"./common-hooks/use-configurator-messages.js";export{useComponent,useRenderedComponent,useComponents,useDynamicComponents,useRenderedComponents,useRootComponents,useRootRenderedComponents,useFirstComponent,useFirstRenderedComponent,useFirstRootComponent,useFirstRootRenderedComponent}from"./component-hooks/use-component.js";export{useCommittedState,useCommittedSlice,useRenderedSlice,useRenderedState}from"./common-hooks/use-slices.js";export{useDomainEntityState,useDomainEntityRenderedState}from"./entity-hooks/use-domain-entity-state.js";export{useEntityPrice,useRootEntityPrice}from"./entity-hooks/use-entity-price.js";export{useSelectEntity,useSelectedEntity,useSelectedEntityId,useSelectedDomainEntityId,useDeselect,useSelectParent}from"./system-hooks/selection-hooks.js";export{useActiveNavigationState,useActiveViewState,useSetViewState,useActiveToolState,useIsFullscreenActive,useSetFullscreen,useActiveViewports,useDraggedDomainEntityId,useNavigate,usePushNavigate,usePopNavigate}from"./system-hooks/navigation-hooks.js";export{useComposition}from"./system-hooks/composition-hooks.js";export{useUndoRedo}from"./system-hooks/undo-redo-hooks.js";export{useTabNavigation}from"./system-hooks/tab-navigation-hooks.js";export{useStepNavigation}from"./system-hooks/step-navigation-hooks.js";export{useHoveredDomainEntityId,useHoveredEntity,useHoveredEntityId}from"./system-hooks/hover-hooks.js";export{useRootEntityState,useRootEntityRenderedState}from"./entity-hooks/use-root-entity-state.js";export{useRootEntityId,useRootEntityRenderedId}from"./entity-hooks/use-root-entity-id.js";export{useEntitySelector,useRootEntitySelector,useRenderedEntitySelector,useRenderedRootEntitySelector}from"./common-hooks/use-entity-selector.js";export{useDimensionState,useDimensions,useDimensionConfig}from"./system-hooks/dimension-hooks.js";
1
+ export{useDomain}from"./common-hooks/use-domain-context.js";export{useStoreSelector,useRenderedSelector,useRenderedSelector$,useStoreSelector$}from"./common-hooks/use-store-selector.js";export{useEagerObservableSelector,usePatientObservableSelector,usePatientObservableValue,useEagerObservableValue}from"./common-hooks/use-observable-selector.js";export{useStateValidity,useMapViolationHints,useControlViolations,useFinalizeViolations}from"./common-hooks/use-state-validity.js";export{useConfigurationSaveState}from"./common-hooks/use-configuration-save-state.js";export{useConfiguratorMessages}from"./common-hooks/use-configurator-messages.js";export{useComponent,useRenderedComponent,useComponents,useDynamicComponents,useRenderedComponents,useRootComponents,useRootRenderedComponents,useFirstComponent,useFirstRenderedComponent,useFirstRootComponent,useFirstRootRenderedComponent}from"./component-hooks/use-component.js";export{useCommittedState,useCommittedSlice,useRenderedSlice,useRenderedState}from"./common-hooks/use-slices.js";export{useDomainEntityState,useDomainEntityRenderedState}from"./entity-hooks/use-domain-entity-state.js";export{useEntityPrice,useRootEntityPrice}from"./entity-hooks/use-entity-price.js";export{useSelectEntity,useSelectedEntity,useSelectedEntityId,useSelectedDomainEntityId,useDeselect,useSelectParent}from"./system-hooks/selection-hooks.js";export{useActiveNavigationState,useActiveViewState,useSetViewState,useActiveToolState,useIsFullscreenActive,useSetFullscreen,useActiveViewports,useDraggedDomainEntityId,useNavigate,usePushNavigate,usePopNavigate}from"./system-hooks/navigation-hooks.js";export{useComposition}from"./system-hooks/composition-hooks.js";export{useUndoRedo}from"./system-hooks/undo-redo-hooks.js";export{useTabNavigation}from"./system-hooks/tab-navigation-hooks.js";export{useStepNavigation}from"./system-hooks/step-navigation-hooks.js";export{useLocaleSwitch}from"./system-hooks/locale-switch-hooks.js";export{useGenerateShareLink}from"./system-hooks/generate-share-link-hooks.js";export{useShareLinks}from"./system-hooks/share-links-hooks.js";export{useHoveredDomainEntityId,useHoveredEntity,useHoveredEntityId}from"./system-hooks/hover-hooks.js";export{useRootEntityState,useRootEntityRenderedState}from"./entity-hooks/use-root-entity-state.js";export{useRootEntityId,useRootEntityRenderedId}from"./entity-hooks/use-root-entity-id.js";export{useEntitySelector,useRootEntitySelector,useRenderedEntitySelector,useRenderedRootEntitySelector}from"./common-hooks/use-entity-selector.js";export{useDimensionState,useDimensions,useDimensionConfig}from"./system-hooks/dimension-hooks.js";
@@ -0,0 +1,8 @@
1
+ import type { AccessLevel } from '@salsita-ai/contracts/api';
2
+ export interface GenerateShareLinkOptions {
3
+ access: AccessLevel;
4
+ expiration?: number;
5
+ }
6
+ export declare const useGenerateShareLink: () => (options: GenerateShareLinkOptions) => Promise<{
7
+ readonly link: string;
8
+ }>;
@@ -0,0 +1 @@
1
+ import{useCallback as e}from"react";import{match as r}from"ts-pattern";import{applicationConfigComponent as t}from"#package/domain";import{useAuthorizedClient as a,useConfigurationId as o,useDomainApplication as i}from"../../application-runtime/index.js";import{useFirstRootComponent as n}from"../component-hooks/index.js";export const useGenerateShareLink=()=>{let s=n(t),m=s?.state.shareStrategy??"deployment-registered",{configurationPersistSystem:c}=i(),d=o(),p=a();return e(async e=>{let t=r(m).with("deployment-registered",()=>void 0).with("current-frontend",()=>{let e=new URL(window.location.href);return e.searchParams.delete("cid"),e.searchParams.delete("ca"),e.toString()}).exhaustive(),a=await c.save();return p.generateShareLink(d,"rr"===e.access?a:void 0,e.expiration,e.access,t)},[m,c,p,d])};
@@ -0,0 +1,24 @@
1
+ /** A language the configurator offers, with its name in that language. */
2
+ export interface LocaleOption {
3
+ readonly locale: string;
4
+ readonly displayName: string;
5
+ }
6
+ /**
7
+ * What a project layout needs to offer a language switch.
8
+ * - `locales`: the spec's `applicationConfig.availableLocales` (`['en']` without it), each with its own name.
9
+ * - `locale`: the active locale.
10
+ * - `setLocale`: activates a locale, falling back to a supported one as `useLinguiActivate` does.
11
+ * - `available`: whether there is more than one locale to choose from, the built-in rule for showing the switch.
12
+ */
13
+ export interface UseLocaleSwitchResult {
14
+ readonly locales: readonly LocaleOption[];
15
+ readonly locale: string;
16
+ readonly setLocale: (locale: string) => void;
17
+ readonly available: boolean;
18
+ }
19
+ export type UseLocaleSwitch = () => UseLocaleSwitchResult;
20
+ /**
21
+ * Hook to list the languages the configurator offers and switch between them, as the built-in toolbar's language
22
+ * button and the menu's language action do. It re-renders when the language changes.
23
+ */
24
+ export declare const useLocaleSwitch: UseLocaleSwitch;
@@ -0,0 +1 @@
1
+ import{useLingui as e}from"@lingui/react";import{useMemo as a}from"react";import{applicationConfigComponent as o}from"#package/domain";import{useLinguiActivate as l}from"../../localizable/index.js";import{useFirstRootComponent as t}from"../component-hooks/index.js";export const useLocaleSwitch=()=>{let{i18n:r}=e(),i=t(o),m=l(),n=i?.state.availableLocales,c=a(()=>(n??["en"]).map(e=>{let a=new Intl.DisplayNames([e],{type:"language",fallback:"code"});return{locale:e,displayName:a.of(e)??e}}),[n]),p=r.locale;return a(()=>({locales:c,locale:p,setLocale:e=>{m(e)},available:c.length>1}),[c,p,m])};
@@ -0,0 +1,32 @@
1
+ export interface UseShareLinksOptions {
2
+ /** Whether the links are generated; `true` by default. A layout passes whether its share dialog is open. */
3
+ readonly enabled?: boolean;
4
+ }
5
+ /**
6
+ * What a project layout needs to share the configuration.
7
+ * - `available`: whether sharing is offered, that is `applicationConfig.shareDisabled` is not set and at least one
8
+ * kind of link is enabled; the built-in share button renders nothing otherwise.
9
+ * - `ownerLinkAvailable` and `readLinkAvailable`: whether each kind of link is enabled
10
+ * (`applicationConfig.shareOwnerLinkDisabled`, `applicationConfig.shareReadRevisionLinkDisabled`).
11
+ * - `ownerLink`: a link that opens the configuration for editing, or `null` while it loads, is disabled or the
12
+ * hook is not `enabled`.
13
+ * - `readLink`: a link that opens the current revision of the configuration for viewing, `null` in the same cases.
14
+ * The configuration is saved before the link is generated; while the hook is enabled, each commit of the
15
+ * configuration generates a new link, and `readLink` is `null` again until it arrives.
16
+ * - `isLoading`: whether an enabled link is still being generated.
17
+ */
18
+ export interface UseShareLinksResult {
19
+ readonly available: boolean;
20
+ readonly ownerLinkAvailable: boolean;
21
+ readonly readLinkAvailable: boolean;
22
+ readonly ownerLink: string | null;
23
+ readonly readLink: string | null;
24
+ readonly isLoading: boolean;
25
+ }
26
+ export type UseShareLinks = (options?: UseShareLinksOptions) => UseShareLinksResult;
27
+ /**
28
+ * Hook to generate the links that share the configuration, as the built-in share dialog does. The links expire
29
+ * after `applicationConfig.shareExpiration` hours, or never without it. Generating a link saves the configuration,
30
+ * so a layout enables the hook only while its share dialog is open. It does not check read mode.
31
+ */
32
+ export declare const useShareLinks: UseShareLinks;
@@ -0,0 +1 @@
1
+ import{useQuery as e}from"@tanstack/react-query";import{useMemo as t}from"react";import{applicationConfigComponent as i}from"#package/domain";import{useConfigurationId as r}from"../../application-runtime/index.js";import{useStoreSelector as a}from"../common-hooks/index.js";import{useFirstRootComponent as n}from"../component-hooks/index.js";import{useGenerateShareLink as s}from"./generate-share-link-hooks.js";export const useShareLinks=(o={})=>{let{enabled:l=!0}=o,d=n(i),m=s(),c=r(),h=d?.state.shareExpiration,k=d?.state.shareDisabled??!1,p=!k&&!d?.state.shareOwnerLinkDisabled,u=!k&&!d?.state.shareReadRevisionLinkDisabled,y=l&&u,f=a(e=>({entities:e.state.entities,rootEntityId:e.state.rootEntityId}),[],y),b=e({queryKey:["share-owner-link",c],staleTime:1/0,queryFn:()=>m({access:"o",expiration:h}),enabled:l&&p}),q=e({queryKey:y?["share-revision-link",c,f.entities,f.rootEntityId]:["share-revision-link",c,"disabled"],queryFn:()=>m({access:"rr",expiration:h}),enabled:y}),x=l&&p&&b.data?.link||null,F=y&&q.isFetchedAfterMount&&q.data?.link||null,g=l&&p&&b.isLoading||y&&q.isFetching&&!q.isFetchedAfterMount;return t(()=>({available:p||u,ownerLinkAvailable:p,readLinkAvailable:u,ownerLink:x,readLink:F,isLoading:g}),[p,u,x,F,g])};
@@ -1 +1 @@
1
- import{useCallback as o}from"react";import{FrontendAnalyticsFactory as n,useAnalyticsService as e}from"../../application-runtime/index.js";import{useDomain as d,useEagerObservableValue as t}from"../common-hooks/index.js";export const useUndoRedo=()=>{let r=e(),{undoSystem:i}=d(),{canUndo:c,canRedo:m}=t(i.can$);return{canUndo:c,canRedo:m,undo:o(()=>{i.canUndo()&&(r.push(n.UndoButtonClicked()),i.undo())},[r,i]),redo:o(()=>{i.canRedo()&&(r.push(n.RedoButtonClicked()),i.redo())},[r,i])}};
1
+ import{useCallback as o,useMemo as n}from"react";import{FrontendAnalyticsFactory as e,useAnalyticsService as t}from"../../application-runtime/index.js";import{useDomain as d,useEagerObservableValue as r}from"../common-hooks/index.js";export const useUndoRedo=()=>{let i=t(),{undoSystem:c}=d(),{canUndo:m,canRedo:p}=r(c.can$),u=o(()=>{c.canUndo()&&(i.push(e.UndoButtonClicked()),c.undo())},[i,c]),s=o(()=>{c.canRedo()&&(i.push(e.RedoButtonClicked()),c.redo())},[i,c]);return n(()=>({canUndo:m,canRedo:p,undo:u,redo:s}),[m,p,u,s])};
@@ -1,3 +1,2 @@
1
- export type { ConfiguratorErrorPageProps, ConfiguratorErrorReason } from './configurator-error-page-props.js';
2
1
  export { PhoenixEntityElement, PhoenixEntityElements, PhoenixEntityElementWithChildren, type PhoenixEntityElementProps, type PhoenixEntityElementsProps, type PhoenixEntityElementWithChildrenProps, } from './PhoenixEntityElement.js';
3
2
  export { PhoenixLayoutElement, PhoenixLayoutElements, PhoenixLayoutElementWithChildren, usePhoenixLayoutElementExists, type PhoenixLayoutElementProps, type PhoenixLayoutElementsProps, type PhoenixLayoutElementWithChildrenProps, } from './PhoenixLayoutElement.js';
@@ -8,7 +8,8 @@ export * from './invalid-deployment/index.js';
8
8
  export * from './web-component/index.js';
9
9
  export * from './localizable/index.js';
10
10
  export * from './loading-state/index.js';
11
- export * from './responsive-state/index.js';
12
11
  export * from './elements/index.js';
12
+ export * from './scene-control-elements/index.js';
13
+ export * from './page-elements/index.js';
13
14
  export * from './handlers/index.js';
14
15
  export * from './application-runtime/index.js';
@@ -1 +1 @@
1
- export*from"./theme/index.js";export*from"./utils/index.js";export*from"./session/index.js";export*from"./domain-context/index.js";export*from"./domain-application-context/index.js";export*from"./domain-controls/index.js";export*from"./invalid-deployment/index.js";export*from"./web-component/index.js";export*from"./localizable/index.js";export*from"./loading-state/index.js";export*from"./responsive-state/index.js";export*from"./elements/index.js";export*from"./handlers/index.js";export*from"./application-runtime/index.js";
1
+ export*from"./theme/index.js";export*from"./utils/index.js";export*from"./session/index.js";export*from"./domain-context/index.js";export*from"./domain-application-context/index.js";export*from"./domain-controls/index.js";export*from"./invalid-deployment/index.js";export*from"./web-component/index.js";export*from"./localizable/index.js";export*from"./loading-state/index.js";export*from"./elements/index.js";export*from"./scene-control-elements/index.js";export*from"./page-elements/index.js";export*from"./handlers/index.js";export*from"./application-runtime/index.js";
@@ -0,0 +1,20 @@
1
+ import type { ReactNode } from 'react';
2
+ /**
3
+ * Hosts the application's loader: the loading hooks below it report to the runtime's `loading`
4
+ * slice, and the SDK's own UI below it leaves its inline loaders out (`useIsLoaderHosted()`). The
5
+ * configurator mounts the one host, inside its `ApplicationTypeProvider`, while it is powered on.
6
+ *
7
+ * It resets the slice when it mounts and not again while it stays mounted, so the loading state
8
+ * starts over at power-on and on remount, and only there.
9
+ *
10
+ * Its children mount once the reset is done, so their first render and their first phases already
11
+ * see the host, and the reset cannot wipe phases they started. The host resets in a layout effect
12
+ * and then sets local state, which React renders synchronously before the browser paints, whatever
13
+ * the lane of the first render. StrictMode repeats that layout effect before the children mount, so
14
+ * the second reset wipes nothing either.
15
+ *
16
+ * @internal Runtime plumbing for the SDK's own UI.
17
+ */
18
+ export declare const LoaderHost: ({ children }: {
19
+ readonly children: ReactNode;
20
+ }) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1 @@
1
+ import{jsx as o}from"react/jsx-runtime";import{useLayoutEffect as r,useState as i}from"react";import{LoaderHostContext as t,useLoadingApplication as e}from"../application-runtime/index.js";export const LoaderHost=({children:n})=>{let a=e(),[p,d]=i(!1);if(null===a)throw Error("LoaderHost has no application whose loader it could host: it is mounted outside an ApplicationRuntimeProvider or an ApplicationTypeProvider. Render LoaderHost inside both an ApplicationRuntimeProvider and an ApplicationTypeProvider, as ConfiguratorApp does.");return(r(()=>{a.actions.resetSlot(),d(!0)},[a]),p)?o(t.Provider,{value:!0,children:n}):null};
@@ -0,0 +1,9 @@
1
+ /** The ids of the loading phases the SDK reports itself. A project reports its own under other ids. */
2
+ export declare enum BuiltInLoadingPhase {
3
+ SessionAuth = "session-auth",
4
+ PublishedData = "published-data",
5
+ FrontendData = "frontend-data",
6
+ BackendData = "backend-data",
7
+ DataFetch = "data-fetch",
8
+ SceneAssets = "scene-assets"
9
+ }
@@ -0,0 +1 @@
1
+ var a;export var BuiltInLoadingPhase=((a={}).SessionAuth="session-auth",a.PublishedData="published-data",a.FrontendData="frontend-data",a.BackendData="backend-data",a.DataFetch="data-fetch",a.SceneAssets="scene-assets",a);
@@ -0,0 +1,18 @@
1
+ import { type PhoenixLayoutElementRegistration } from '#package/domain';
2
+ import type { LoadingPhase } from '../application-runtime/index.js';
3
+ /**
4
+ * The name a project registers a layout element under to replace what the app loader overlay shows.
5
+ * Its default, the built-in loader content, is registered in `defaultConfiguratorElements`.
6
+ */
7
+ export declare const AppLoaderContentName = "AppLoaderContent";
8
+ /** The props of the content a project registers with `createAppLoader`. */
9
+ export interface AppLoaderContentProps {
10
+ /** The loading phases running now; empty while the loader waits for the scene to start loading. */
11
+ readonly phases: readonly LoadingPhase[];
12
+ }
13
+ /**
14
+ * Registers a project's app loader content as the `AppLoaderContent` element. The SDK keeps the
15
+ * overlay, its place over the scene's safe area and its fade-in; the component is only what it shows.
16
+ */
17
+ export declare const createAppLoader: (Element: (props: AppLoaderContentProps) => JSX.Element) => readonly PhoenixLayoutElementRegistration[];
18
+ export type CreateAppLoader = (Element: (props: AppLoaderContentProps) => JSX.Element) => readonly PhoenixLayoutElementRegistration[];
@@ -0,0 +1 @@
1
+ import{jsx as o}from"react/jsx-runtime";import{createCustomPhoenixLayoutElement as t}from"#package/domain";import{useLoadingStateValue as e}from"./loading-state-hooks.js";export const AppLoaderContentName="AppLoaderContent";export const createAppLoader=r=>[t("AppLoaderContent",()=>{let{phases:t}=e();return o(r,{phases:t})})];
@@ -1,2 +1,4 @@
1
- export { BuiltInLoadingPhase, type LoadingPhase, type LoadingState, LoadingStateManager, } from './loading-state-manager.js';
2
- export { LoadingStateProvider, useLoadingState, type UseLoadingState, useLoadingStateManager, useLoadingStateValue, useLoadingPhase, useExpectPhase, useLoadingError, } from './LoadingStateProvider.js';
1
+ export { BuiltInLoadingPhase } from './built-in-loading-phase.js';
2
+ export { LoaderHost } from './LoaderHost.js';
3
+ export { useLoadingState, type UseLoadingState, useLoadingStateValue, useLoadingPhase, useExpectPhase, useLoadingError, } from './loading-state-hooks.js';
4
+ export { AppLoaderContentName, type AppLoaderContentProps, createAppLoader, type CreateAppLoader, } from './create-app-loader.js';
@@ -1 +1 @@
1
- export{BuiltInLoadingPhase,LoadingStateManager}from"./loading-state-manager.js";export{LoadingStateProvider,useLoadingState,useLoadingStateManager,useLoadingStateValue,useLoadingPhase,useExpectPhase,useLoadingError}from"./LoadingStateProvider.js";
1
+ export{BuiltInLoadingPhase}from"./built-in-loading-phase.js";export{LoaderHost}from"./LoaderHost.js";export{useLoadingState,useLoadingStateValue,useLoadingPhase,useExpectPhase,useLoadingError}from"./loading-state-hooks.js";export{AppLoaderContentName,createAppLoader}from"./create-app-loader.js";
@@ -1,22 +1,13 @@
1
- import type { ReactNode } from 'react';
2
- import { type LoadingPhase, type LoadingState, LoadingStateManager } from './loading-state-manager.js';
3
- export declare const LoadingStateProvider: ({ children }: {
4
- readonly children: ReactNode;
5
- }) => import("react/jsx-runtime").JSX.Element;
6
- /**
7
- * Returns the loading state manager if available.
8
- * Returns `null` when used outside of `LoadingStateProvider` (e.g. in admin app).
9
- */
10
- export declare const useLoadingStateManager: () => LoadingStateManager | null;
1
+ import { type LoadingPhase, type LoadingState } from '../application-runtime/index.js';
11
2
  /**
12
3
  * Subscribe to the current aggregated loading state.
13
- * Returns the default (not loading) state when used outside of `LoadingStateProvider`.
4
+ * Returns the default (not loading) state outside the application's loader host.
14
5
  */
15
6
  export declare const useLoadingStateValue: () => LoadingState;
16
7
  export type UseLoadingState = typeof useLoadingState;
17
8
  /**
18
9
  * Returns loading phase control functions.
19
- * Returns `null` when used outside of `LoadingStateProvider`.
10
+ * Returns `null` outside the application's loader host.
20
11
  */
21
12
  export declare const useLoadingState: () => {
22
13
  startPhase: (phase: LoadingPhase) => void;
@@ -0,0 +1 @@
1
+ import{useEffect as e,useMemo as t,useRef as r,useSyncExternalStore as n}from"react";import{useIsLoaderHosted as s,useLoadingActions as a,useLoadingApplication as o,useOptionalApplicationRuntime as u}from"../application-runtime/index.js";let c={isLoading:!1,hasError:!1,phases:[],expectedPhaseIds:new Set},l=()=>c,i=()=>()=>{};export const useLoadingStateValue=()=>{let e=o(),t=s(),r=u(),a=n(r?.subscribe??i,e?.selectors.getLoadingState??l);return t?a:c};export const useLoadingState=()=>{let e=a();return t(()=>e?{startPhase:e.startPhase,endPhase:e.endPhase}:null,[e])};export const useLoadingPhase=(t,n)=>{let s=a(),o=r(t);o.current=t;let u=r(null);e(()=>{if(s)return n?(u.current=o.current.id,s.startPhase(o.current)):null!==u.current&&(s.endPhase(u.current),u.current=null),()=>{null!==u.current&&(s.endPhase(u.current),u.current=null)}},[s,n,t.id])};export const useExpectPhase=t=>{let r=a();e(()=>{if(r)return r.expectPhase(t),()=>{r.dropExpectation(t)}},[r,t])};export const useLoadingError=t=>{let r=a();e(()=>{r&&t&&r.reportError()},[r,t])};
@@ -0,0 +1,17 @@
1
+ import { type PropsWithChildren } from 'react';
2
+ import type { ConfigurationNotFoundPageProps } from '../session/index.js';
3
+ interface ConfigurationNotFoundPagePropsProviderProps extends PropsWithChildren {
4
+ readonly value: ConfigurationNotFoundPageProps;
5
+ }
6
+ /**
7
+ * @internal Runtime plumbing behind `createConfigurationNotFoundPage`, for the SDK's own UI. The
8
+ * configurator's renderer of the `ConfigurationNotFoundPage` element provides the page's props through
9
+ * it, because an element slot is typed as taking only `children`.
10
+ */
11
+ export declare const ConfigurationNotFoundPagePropsProvider: (props: ConfigurationNotFoundPagePropsProviderProps) => import("react/jsx-runtime").JSX.Element;
12
+ /**
13
+ * @internal Exists for the SDK's own UI and for `createConfigurationNotFoundPage`, which read the
14
+ * props of the `ConfigurationNotFoundPage` element through it.
15
+ */
16
+ export declare const useConfigurationNotFoundPageProps: () => ConfigurationNotFoundPageProps;
17
+ export {};
@@ -0,0 +1 @@
1
+ import{jsx as o}from"react/jsx-runtime";import{createContext as r,useContext as t}from"react";let e=r({});export const ConfigurationNotFoundPagePropsProvider=r=>{let{value:t,children:n}=r;return o(e.Provider,{value:t,children:n})};export const useConfigurationNotFoundPageProps=()=>t(e);
@@ -0,0 +1,17 @@
1
+ import { type PropsWithChildren } from 'react';
2
+ import type { ConfiguratorErrorPageProps } from './configurator-error-page-props.js';
3
+ interface ConfiguratorErrorPagePropsProviderProps extends PropsWithChildren {
4
+ readonly value: ConfiguratorErrorPageProps;
5
+ }
6
+ /**
7
+ * @internal Runtime plumbing behind `createConfiguratorErrorPage`, for the SDK's own UI. The
8
+ * configurator's renderer of the `ConfiguratorErrorPage` element provides the page's props through it,
9
+ * because an element slot is typed as taking only `children`.
10
+ */
11
+ export declare const ConfiguratorErrorPagePropsProvider: (props: ConfiguratorErrorPagePropsProviderProps) => import("react/jsx-runtime").JSX.Element;
12
+ /**
13
+ * @internal Exists for the SDK's own UI and for `createConfiguratorErrorPage`, which read the props
14
+ * of the `ConfiguratorErrorPage` element through it.
15
+ */
16
+ export declare const useConfiguratorErrorPageProps: () => ConfiguratorErrorPageProps;
17
+ export {};
@@ -0,0 +1 @@
1
+ import{jsx as r}from"react/jsx-runtime";import{createContext as e,useContext as o}from"react";let t=e(void 0);export const ConfiguratorErrorPagePropsProvider=e=>{let{value:o,children:i}=e;return r(t.Provider,{value:o,children:i})};export const useConfiguratorErrorPageProps=()=>{let r=o(t);if(void 0===r)throw Error("The ConfiguratorErrorPage element was rendered without its props. Only the configurator renders this element, inside ConfiguratorErrorPagePropsProvider; render the element through the configurator instead of mounting it directly.");return r};
@@ -1,5 +1,11 @@
1
1
  import { type PhoenixLayoutElementRegistration } from '#package/domain';
2
- import type { ConfigurationNotFoundPageProps } from '#package/react-sdk';
2
+ import type { ConfigurationNotFoundPageProps } from '../session/index.js';
3
+ /**
4
+ * The name a project registers a layout element under to replace the page shown when a configuration
5
+ * cannot be loaded or opened. Its default, the built-in `ConfigurationNotFoundPage`, is registered in
6
+ * `defaultConfiguratorElements`.
7
+ */
8
+ export declare const ConfigurationNotFoundPageName = "ConfigurationNotFoundPage";
3
9
  /**
4
10
  * Registers a project's "configuration not accessible" page as the `ConfigurationNotFoundPage`
5
11
  * element, with its props typed. Registering a layout element under that name with
@@ -0,0 +1 @@
1
+ import{jsx as o}from"react/jsx-runtime";import{createCustomPhoenixLayoutElement as t}from"#package/domain";import{useConfigurationNotFoundPageProps as n}from"./ConfigurationNotFoundPagePropsProvider.js";export const ConfigurationNotFoundPageName="ConfigurationNotFoundPage";export const createConfigurationNotFoundPage=r=>t("ConfigurationNotFoundPage",()=>o(r,{...n()}));
@@ -1,5 +1,10 @@
1
1
  import { type PhoenixLayoutElementRegistration } from '#package/domain';
2
- import type { ConfiguratorErrorPageProps } from '#package/react-sdk';
2
+ import type { ConfiguratorErrorPageProps } from './configurator-error-page-props.js';
3
+ /**
4
+ * The name a project registers a layout element under to replace the configurator's production error
5
+ * page. Its default, the built-in error page, is registered in `defaultConfiguratorElements`.
6
+ */
7
+ export declare const ConfiguratorErrorPageName = "ConfiguratorErrorPage";
3
8
  /**
4
9
  * Registers a project's production error page as the `ConfiguratorErrorPage` element, with its props
5
10
  * typed. Registering a layout element under that name with `createCustomPhoenixLayoutElement` works
@@ -0,0 +1 @@
1
+ import{jsx as r}from"react/jsx-runtime";import{createCustomPhoenixLayoutElement as o}from"#package/domain";import{useConfiguratorErrorPageProps as a}from"./ConfiguratorErrorPagePropsProvider.js";export const ConfiguratorErrorPageName="ConfiguratorErrorPage";export const createConfiguratorErrorPage=t=>o("ConfiguratorErrorPage",()=>r(t,{...a()}));
@@ -0,0 +1,9 @@
1
+ import { type PhoenixLayoutElementRegistration } from '#package/domain';
2
+ /**
3
+ * The name a project registers a layout element under to replace the whole preset screen. Its
4
+ * default, the built-in preset screen, is registered in `defaultConfiguratorElements`.
5
+ */
6
+ export declare const PresetUiName = "PresetUi";
7
+ /** Registers a project's preset screen as the `PresetUi` element. */
8
+ export declare const createPresetUi: (Element: () => JSX.Element) => PhoenixLayoutElementRegistration;
9
+ export type CreatePresetUi = (Element: () => JSX.Element) => PhoenixLayoutElementRegistration;
@@ -0,0 +1 @@
1
+ import{createCustomPhoenixLayoutElement as e}from"#package/domain";export const PresetUiName="PresetUi";export const createPresetUi=t=>e("PresetUi",t);
@@ -0,0 +1,6 @@
1
+ export type { ConfiguratorErrorPageProps, ConfiguratorErrorReason } from './configurator-error-page-props.js';
2
+ export { ConfiguratorErrorPagePropsProvider, useConfiguratorErrorPageProps, } from './ConfiguratorErrorPagePropsProvider.js';
3
+ export { ConfiguratorErrorPageName, createConfiguratorErrorPage, type CreateConfiguratorErrorPage, } from './create-configurator-error-page.js';
4
+ export { ConfigurationNotFoundPagePropsProvider, useConfigurationNotFoundPageProps, } from './ConfigurationNotFoundPagePropsProvider.js';
5
+ export { ConfigurationNotFoundPageName, createConfigurationNotFoundPage, type CreateConfigurationNotFoundPage, } from './create-configuration-not-found-page.js';
6
+ export { PresetUiName, createPresetUi, type CreatePresetUi } from './create-preset-ui.js';
@@ -0,0 +1 @@
1
+ export{ConfiguratorErrorPagePropsProvider,useConfiguratorErrorPageProps}from"./ConfiguratorErrorPagePropsProvider.js";export{ConfiguratorErrorPageName,createConfiguratorErrorPage}from"./create-configurator-error-page.js";export{ConfigurationNotFoundPagePropsProvider,useConfigurationNotFoundPageProps}from"./ConfigurationNotFoundPagePropsProvider.js";export{ConfigurationNotFoundPageName,createConfigurationNotFoundPage}from"./create-configuration-not-found-page.js";export{PresetUiName,createPresetUi}from"./create-preset-ui.js";
@@ -0,0 +1,36 @@
1
+ import type { Localizable } from '@salsita-ai/common/utils';
2
+ import type { DomainEntityId } from '#package/domain';
3
+ import type { SceneControlTooltipVisibility } from './scene-control-tooltip-visibility.js';
4
+ /**
5
+ * The name of the entity element that renders a `sceneEntityAddFab`. Its default, the built-in
6
+ * add-entity FAB, is registered in `defaultConfiguratorElements`.
7
+ */
8
+ export declare const AddEntityFabName = "AddEntityFab";
9
+ /**
10
+ * Props of the `AddEntityFab` element, rendered for each `sceneEntityAddFab` of an entity, at the
11
+ * position the component sets. The recipes it can add are not computed up front: the built-in FAB
12
+ * reads them with `useGroupedRecipeOptions(entityId, instanceNames, fixableViolations)` when it
13
+ * opens its menu, and a replacement does the same.
14
+ */
15
+ export interface AddEntityFabElementProps {
16
+ /** The entity the FAB adds children to. */
17
+ readonly entityId: DomainEntityId<string>;
18
+ /** The `childEntityRecipes` instances whose recipes the FAB offers; all of them when not set. */
19
+ readonly instanceNames?: readonly string[];
20
+ /** Violations a new entity may cause without disabling its recipe (the component's `hiddenViolations`). */
21
+ readonly fixableViolations?: readonly string[];
22
+ /** The name of a Phoenix icon. */
23
+ readonly icon?: string;
24
+ /** A visible text label. */
25
+ readonly label?: Localizable;
26
+ /** The tooltip text. */
27
+ readonly title?: Localizable;
28
+ /** When the tooltip shows: `on-hover` unless the component sets it. */
29
+ readonly tooltipVisibility: SceneControlTooltipVisibility;
30
+ /** Add the only recipe directly, without a menu. */
31
+ readonly skipMenuWhenOnlyOne?: boolean;
32
+ /** Render nothing when there is no recipe. */
33
+ readonly hideWhenNone?: boolean;
34
+ }
35
+ /** Renders the `AddEntityFab` element for an entity. */
36
+ export declare const AddEntityFabElement: import("react").MemoExoticComponent<(props: AddEntityFabElementProps) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1 @@
1
+ import{jsx as t}from"react/jsx-runtime";import{memo as e,useMemo as n}from"react";import{PhoenixEntityElementWithChildren as r}from"../elements/index.js";export const AddEntityFabName="AddEntityFab";export const AddEntityFabElement=e(e=>{let{entityId:d,instanceNames:i,fixableViolations:m,icon:o,label:a,title:s,tooltipVisibility:p,skipMenuWhenOnlyOne:x,hideWhenNone:y}=e,E=n(()=>({instanceNames:i,fixableViolations:m,icon:o,label:a,title:s,tooltipVisibility:p,skipMenuWhenOnlyOne:x,hideWhenNone:y}),[i,m,o,a,s,p,x,y]);return t(r,{kind:"AddEntityFab",entityId:d,elementProps:E})});
@@ -0,0 +1,44 @@
1
+ import { type SyntheticEvent } from 'react';
2
+ import type { Localizable } from '@salsita-ai/common/utils';
3
+ import type { DomainEntityId } from '#package/domain';
4
+ import type { SceneControlTooltipVisibility } from './scene-control-tooltip-visibility.js';
5
+ /**
6
+ * The name of the entity element that renders a `sceneEntityDeleteFab`. Its default, the built-in
7
+ * delete-entity FAB, is registered in `defaultConfiguratorElements`.
8
+ */
9
+ export declare const DeleteEntityFabName = "DeleteEntityFab";
10
+ /**
11
+ * Props of the `DeleteEntityFab` element, rendered for each `sceneEntityDeleteFab` of an entity, at
12
+ * the position the component sets.
13
+ */
14
+ export interface DeleteEntityFabElementProps {
15
+ /** The entity the FAB deletes. */
16
+ readonly entityId: DomainEntityId<string>;
17
+ /** The name of a Phoenix icon. */
18
+ readonly icon?: string;
19
+ /** A visible text label. */
20
+ readonly label?: Localizable;
21
+ /** The tooltip text. */
22
+ readonly title?: Localizable;
23
+ /** When the tooltip shows: `on-hover` unless the component sets it. */
24
+ readonly tooltipVisibility: SceneControlTooltipVisibility;
25
+ /**
26
+ * Deletes the entity and pushes the delete analytics event. Pass it straight to `onClick`: given
27
+ * an event, it stops the event's propagation so the click does not reach the scene.
28
+ */
29
+ readonly onDelete: (event?: SyntheticEvent) => void;
30
+ /** True when deleting would cause a violation the component does not allow. */
31
+ readonly disabled: boolean;
32
+ /** Why deleting is disabled, when it is. */
33
+ readonly disabledHint: string | undefined;
34
+ /** Logs the dry run of the deletion to the console, for debugging. */
35
+ readonly trace: () => void;
36
+ }
37
+ type DeleteEntityFabElementConfig = Omit<DeleteEntityFabElementProps, 'onDelete' | 'disabled' | 'disabledHint' | 'trace'>;
38
+ interface Props extends DeleteEntityFabElementConfig {
39
+ /** Violations deleting may cause without disabling the FAB (the component's `hiddenViolations`). */
40
+ readonly fixableViolations?: readonly string[];
41
+ }
42
+ /** Renders the `DeleteEntityFab` element for an entity, with the deletion it performs. */
43
+ export declare const DeleteEntityFabElement: import("react").MemoExoticComponent<(props: Props) => import("react/jsx-runtime").JSX.Element>;
44
+ export {};
@@ -0,0 +1 @@
1
+ import{jsx as t}from"react/jsx-runtime";import{memo as e,useCallback as i,useMemo as o}from"react";import{FrontendAnalyticsFactory as n}from"../application-runtime/index.js";import{useDeletedEntity as r}from"../domain-controls/index.js";import{PhoenixEntityElementWithChildren as m}from"../elements/index.js";export const DeleteEntityFabName="DeleteEntityFab";export const DeleteEntityFabElement=e(e=>{let{entityId:a,fixableViolations:s,icon:l,label:p,title:d,tooltipVisibility:c}=e,x=i(()=>n.EntityDeleteHotspotClicked(a),[a]),{disabled:y,hints:E,remove:b,trace:f}=r(a,s,x),j=i(t=>{t?.stopPropagation(),b()},[b]),D=o(()=>({icon:l,label:p,title:d,tooltipVisibility:c,onDelete:j,disabled:y,disabledHint:E,trace:f}),[l,p,d,c,j,y,E,f]);return t(m,{kind:"DeleteEntityFab",entityId:a,elementProps:D})});
@@ -0,0 +1,38 @@
1
+ import { type SyntheticEvent } from 'react';
2
+ import type { Localizable } from '@salsita-ai/common/utils';
3
+ import type { DomainEntityId } from '#package/domain';
4
+ import type { SceneControlTooltipVisibility } from './scene-control-tooltip-visibility.js';
5
+ /**
6
+ * The name of the entity element that renders a `sceneEntityNavigationHotspot`. Its default, the
7
+ * built-in navigation hotspot, is registered in `defaultConfiguratorElements`.
8
+ */
9
+ export declare const NavigationHotspotName = "NavigationHotspot";
10
+ /**
11
+ * Props of the `NavigationHotspot` element, rendered for each `sceneEntityNavigationHotspot` of an
12
+ * entity, at the position the component sets.
13
+ */
14
+ export interface NavigationHotspotElementProps {
15
+ /** The entity the hotspot is attached to. */
16
+ readonly entityId: DomainEntityId<string>;
17
+ /** The navigation state the hotspot goes to. */
18
+ readonly navigationState: string;
19
+ /** The tooltip text. */
20
+ readonly title?: Localizable;
21
+ /** When the tooltip shows: `on-hover` unless the component sets it. */
22
+ readonly tooltipVisibility: SceneControlTooltipVisibility;
23
+ /**
24
+ * Goes to `navigationState`, pushed onto the navigation stack or replacing the current state as
25
+ * the component sets. Pass it straight to `onClick`: given an event, it prevents the event's
26
+ * default and stops its propagation so the click does not reach the scene.
27
+ */
28
+ readonly onNavigate: (event?: SyntheticEvent) => void;
29
+ }
30
+ interface Props extends Omit<NavigationHotspotElementProps, 'onNavigate'> {
31
+ /** Push `navigationState` onto the navigation stack instead of replacing the current state. */
32
+ readonly pushToStack?: boolean;
33
+ /** The states `navigationState` can be stacked onto. */
34
+ readonly canStackOnto?: readonly string[];
35
+ }
36
+ /** Renders the `NavigationHotspot` element for an entity, with the navigation it performs. */
37
+ export declare const NavigationHotspotElement: import("react").MemoExoticComponent<(props: Props) => import("react/jsx-runtime").JSX.Element>;
38
+ export {};
@@ -0,0 +1 @@
1
+ import{jsx as t}from"react/jsx-runtime";import{memo as e,useCallback as o,useMemo as a}from"react";import{useDomain as i}from"../domain-context/index.js";import{PhoenixEntityElementWithChildren as n}from"../elements/index.js";export const NavigationHotspotName="NavigationHotspot";export const NavigationHotspotElement=e(e=>{let{entityId:s,navigationState:m,pushToStack:r,canStackOnto:p,title:g,tooltipVisibility:d}=e,{navigationSystem:l,storeSystem:v}=i(),c=o(t=>{t?.preventDefault(),t?.stopPropagation();let e=r?l.getPushNavigationUpdate(m,v.stateSlices.committed.value.state,{canStackOnto:p}):l.getNavigationUpdate(m);v.stageAndCommit([e])},[l,m,r,v,p]);return t(n,{kind:"NavigationHotspot",entityId:s,elementProps:a(()=>({navigationState:m,title:g,tooltipVisibility:d,onNavigate:c}),[m,g,d,c])})});
@@ -0,0 +1,30 @@
1
+ import { type SyntheticEvent } from 'react';
2
+ import type { Localizable } from '@salsita-ai/common/utils';
3
+ import type { DomainEntityId } from '#package/domain';
4
+ import type { SceneControlTooltipVisibility } from './scene-control-tooltip-visibility.js';
5
+ /**
6
+ * The name of the entity element that renders a `sceneEntitySelectHotspot`. Its default, the
7
+ * built-in selection hotspot, is registered in `defaultConfiguratorElements`.
8
+ */
9
+ export declare const SelectionHotspotName = "SelectionHotspot";
10
+ /**
11
+ * Props of the `SelectionHotspot` element, rendered for each `sceneEntitySelectHotspot` of an
12
+ * entity, at the position the component sets.
13
+ */
14
+ export interface SelectionHotspotElementProps {
15
+ /** The entity the hotspot selects. */
16
+ readonly entityId: DomainEntityId<string>;
17
+ /** The tooltip text. */
18
+ readonly title?: Localizable;
19
+ /** When the tooltip shows: `on-hover` unless the component sets it. */
20
+ readonly tooltipVisibility: SceneControlTooltipVisibility;
21
+ /**
22
+ * Selects the entity and pushes the selection-hotspot analytics event. Pass it straight to
23
+ * `onClick`: given an event, it stops the event's propagation so the click does not reach the scene.
24
+ */
25
+ readonly onSelect: (event?: SyntheticEvent) => void;
26
+ }
27
+ type Props = Omit<SelectionHotspotElementProps, 'onSelect'>;
28
+ /** Renders the `SelectionHotspot` element for an entity, with the selection it performs. */
29
+ export declare const SelectionHotspotElement: import("react").MemoExoticComponent<(props: Props) => import("react/jsx-runtime").JSX.Element>;
30
+ export {};
@@ -0,0 +1 @@
1
+ import{jsx as t}from"react/jsx-runtime";import{memo as o,useCallback as e,useMemo as i}from"react";import{FrontendAnalyticsFactory as n}from"../application-runtime/index.js";import{useSelectEntity as r}from"../domain-context/index.js";import{PhoenixEntityElementWithChildren as m}from"../elements/index.js";export const SelectionHotspotName="SelectionHotspot";export const SelectionHotspotElement=o(o=>{let{entityId:p,title:s,tooltipVisibility:c}=o,l=r(n.SelectionHotspotClicked),a=e(t=>{t?.stopPropagation(),l(p)},[p,l]);return t(m,{kind:"SelectionHotspot",entityId:p,elementProps:i(()=>({title:s,tooltipVisibility:c,onSelect:a}),[s,c,a])})});
@@ -0,0 +1,30 @@
1
+ import type { Localizable } from '@salsita-ai/common/utils';
2
+ import type { DomainEntityId, ToolMenuFabOption } from '#package/domain';
3
+ import type { SceneControlTooltipVisibility } from './scene-control-tooltip-visibility.js';
4
+ /**
5
+ * The name of the entity element that renders a `toolMenuFab`. Its default, the built-in tool-menu
6
+ * FAB, is registered in `defaultConfiguratorElements`.
7
+ */
8
+ export declare const ToolMenuFabName = "ToolMenuFab";
9
+ /**
10
+ * Props of the `ToolMenuFab` element, rendered for each `toolMenuFab` of an entity, at the position
11
+ * the component sets.
12
+ */
13
+ export interface ToolMenuFabElementProps {
14
+ /** The entity the FAB is attached to. */
15
+ readonly entityId: DomainEntityId<string>;
16
+ /** The tools the menu offers, each with its `label`, optional `icon` and `toolState`. */
17
+ readonly options: readonly ToolMenuFabOption[];
18
+ /** The name of a Phoenix icon; the built-in FAB shows `PencilSimpleBold` when it is not set. */
19
+ readonly icon?: string;
20
+ /** The tooltip text, which the built-in menu also shows as its heading. */
21
+ readonly title?: Localizable;
22
+ /** When the tooltip shows: `on-hover` unless the component sets it. */
23
+ readonly tooltipVisibility: SceneControlTooltipVisibility;
24
+ /** Switches to the given tool state, the `toolState` of one of the `options`. */
25
+ readonly onSelectTool: (toolState: string) => void;
26
+ }
27
+ type Props = Omit<ToolMenuFabElementProps, 'onSelectTool'>;
28
+ /** Renders the `ToolMenuFab` element for an entity, with the tool switch it performs. */
29
+ export declare const ToolMenuFabElement: import("react").MemoExoticComponent<(props: Props) => import("react/jsx-runtime").JSX.Element>;
30
+ export {};
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{memo as o,useCallback as t,useMemo as n}from"react";import{useDomain as m}from"../domain-context/index.js";import{PhoenixEntityElementWithChildren as r}from"../elements/index.js";export const ToolMenuFabName="ToolMenuFab";export const ToolMenuFabElement=o(o=>{let{entityId:a,options:i,icon:s,title:l,tooltipVisibility:p}=o,{navigationSystem:d,storeSystem:x}=m(),u=t(e=>{x.stageAndCommit([d.getToolUpdate(e)])},[d,x]);return e(r,{kind:"ToolMenuFab",entityId:a,elementProps:n(()=>({options:i,icon:s,title:l,tooltipVisibility:p,onSelectTool:u}),[i,s,l,p,u])})});