@salsita-ai/sdk 0.50.0-develop.b5d443db78 → 0.50.0-develop.b5dfdd9774

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 (848) hide show
  1. package/README.md +10 -3
  2. package/dist/admin/common/admin-interface.d.ts +2 -2
  3. package/dist/application-spec/errors/diagnostic-codes.d.ts +8 -0
  4. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  5. package/dist/application-spec/errors/diagnostic-messages.d.ts +9 -1
  6. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  7. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  8. package/dist/application-spec/generate-application/code/index.d.ts +1 -0
  9. package/dist/application-spec/generate-application/code/standalone-app-files.d.ts +4 -3
  10. package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
  11. package/dist/application-spec/generate-application/code/templates/admin-config.d.ts +1 -1
  12. package/dist/application-spec/generate-application/code/templates/admin-config.js +3 -2
  13. package/dist/application-spec/generate-application/code/templates/application-types.js +5 -5
  14. package/dist/application-spec/generate-application/code/templates/configurator-config.js +4 -2
  15. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.d.ts +0 -1
  16. package/dist/application-spec/generate-application/code/templates/configurator-domain-code.js +6 -8
  17. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.d.ts +1 -0
  18. package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.js +8 -6
  19. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +6 -8
  20. package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +3 -3
  21. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-base-configurator-builder.js +2 -1
  22. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.d.ts +1 -1
  23. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +38 -41
  24. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +0 -3
  25. package/dist/application-spec/generate-application/code/templates/domain.js +3 -3
  26. package/dist/application-spec/generate-application/code/templates/editor.d.ts +1 -1
  27. package/dist/application-spec/generate-application/code/templates/editor.js +16 -3
  28. package/dist/application-spec/generate-application/code/templates/frontend-config.js +7 -3
  29. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.d.ts +3 -3
  30. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +3 -3
  31. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +10 -6
  32. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -7
  33. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +10 -11
  34. package/dist/application-spec/generate-application/code/templates/html-index.d.ts +12 -1
  35. package/dist/application-spec/generate-application/code/templates/html-index.js +9 -10
  36. package/dist/application-spec/generate-application/code/templates/index.d.ts +1 -1
  37. package/dist/application-spec/generate-application/code/templates/skills/core/cli.js +1 -1
  38. package/dist/application-spec/generate-application/code/templates/skills/core/sdk.js +8 -36
  39. package/dist/application-spec/generate-application/code/templates/skills/core/workflow.js +15 -11
  40. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/views-and-tools.js +1 -1
  41. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.d.ts +3 -0
  42. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.js +1 -0
  43. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/panel.d.ts +3 -0
  44. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/panel.js +42 -0
  45. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.d.ts +3 -0
  46. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.js +55 -0
  47. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/session-setup.d.ts +3 -0
  48. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/session-setup.js +16 -0
  49. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/custom-layout.js +3 -3
  50. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.d.ts +1 -1
  51. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.js +1 -1
  52. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/custom-controls.js +1 -1
  53. package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/scene-controls.js +4 -2
  54. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/actions.js +3 -3
  55. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/components.js +2 -2
  56. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/expressions.js +1 -1
  57. package/dist/application-spec/generate-application/code/templates/skills/features/features.js +1 -1
  58. package/dist/application-spec/generate-application/code/templates/skills/features/state/violations.js +2 -2
  59. package/dist/application-spec/generate-application/code/templates/skills/features/variants.js +1 -1
  60. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.d.ts +3 -0
  61. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.js +42 -0
  62. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/backend-data.d.ts +3 -0
  63. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/backend-data.js +45 -0
  64. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.d.ts +3 -0
  65. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.js +38 -0
  66. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/finalization.d.ts +3 -0
  67. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/finalization.js +92 -0
  68. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/index.d.ts +1 -0
  69. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/index.js +1 -0
  70. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/publishing.d.ts +3 -0
  71. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/publishing.js +1 -0
  72. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/callback.d.ts +3 -0
  73. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/callback.js +26 -0
  74. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/documents.d.ts +3 -0
  75. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/documents.js +51 -0
  76. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/email.d.ts +3 -0
  77. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/email.js +38 -0
  78. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/index.d.ts +1 -0
  79. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/index.js +1 -0
  80. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/integrations.d.ts +3 -0
  81. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/integrations.js +88 -0
  82. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/links-and-images.d.ts +3 -0
  83. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/links-and-images.js +68 -0
  84. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/tasks.d.ts +3 -0
  85. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/tasks.js +1 -0
  86. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.d.ts +3 -0
  87. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.js +1 -0
  88. package/dist/application-spec/generate-application/code/templates/skills/guide.d.ts +1 -1
  89. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +3 -3
  90. package/dist/application-spec/generate-application/code/templates/skills/phx-members-without-guide.js +1 -1
  91. package/dist/application-spec/generate-application/code/templates/skills/processes/asset-conversion.js +3 -3
  92. package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.d.ts +3 -0
  93. package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.js +3 -0
  94. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/report.js +29 -1
  95. package/dist/application-spec/generate-application/code/templates/skills/processes/finalization.js +2 -2
  96. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/build.js +29 -15
  97. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/direction.js +17 -14
  98. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/first-draft.js +2 -2
  99. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/handoff.js +3 -3
  100. package/dist/application-spec/generate-application/code/templates/skills/processes/index.d.ts +2 -0
  101. package/dist/application-spec/generate-application/code/templates/skills/processes/index.js +1 -1
  102. package/dist/application-spec/generate-application/code/templates/skills/processes/model-migration.js +1 -1
  103. package/dist/application-spec/generate-application/code/templates/skills/processes/review/appearance.js +2 -2
  104. package/dist/application-spec/generate-application/code/templates/skills/processes/review/code.js +1 -1
  105. package/dist/application-spec/generate-application/code/templates/skills/processes/review/review.js +1 -1
  106. package/dist/application-spec/generate-application/code/templates/skills/processes/review/visual-inspection.js +1 -1
  107. package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.d.ts +2 -0
  108. package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.js +29 -0
  109. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/product-definition.js +2 -0
  110. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/specification.js +1 -1
  111. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-specification.d.ts +2 -0
  112. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-specification.js +28 -0
  113. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +0 -7
  114. package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +1 -1
  115. package/dist/application-spec/generate-application/code/templates/skills/sdk-subpath-imports.js +1 -1
  116. package/dist/application-spec/generate-application/code/templates/webhook-builders.js +7 -6
  117. package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +2 -1
  118. package/dist/application-spec/generate-application/code/templates/webhook-index.js +2 -2
  119. package/dist/application-spec/parse-application-files/merge/merged-app-metadata.d.ts +3 -0
  120. package/dist/application-spec/parse-application-files/merge/merged-app-metadata.js +1 -1
  121. package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
  122. package/dist/application-spec/parse-application-files/parse-application-files.js +1 -1
  123. package/dist/application-spec/parse-application-files/raw-spec/raw-actions.d.ts +3 -2
  124. package/dist/application-spec/parse-application-files/raw-spec/raw-actions.js +1 -1
  125. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +67 -8
  126. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  127. package/dist/application-spec/parse-application-files/raw-spec/raw-components.js +1 -1
  128. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.d.ts +6 -3
  129. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
  130. package/dist/application-spec/parse-application-files/resolve/resolve-import-modules.js +1 -1
  131. package/dist/application-spec/parse-application-files/spec/expressions/user-expressions.js +1 -1
  132. package/dist/application-spec/parse-application-files/spec/model/session-data-schema.js +1 -1
  133. package/dist/application-spec/parse-application-files/spec/relations/relations.js +1 -1
  134. package/dist/application-spec/parse-application-files/spec/sections/actions.js +1 -1
  135. package/dist/application-spec/parse-application-files/spec/sections/app-metadata.js +1 -1
  136. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +14 -2
  137. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -1
  138. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +7 -10
  139. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  140. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.d.ts +5 -6
  141. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.js +1 -1
  142. package/dist/application-spec/parse-application-files/spec/sections/assistant/index.d.ts +0 -1
  143. package/dist/application-spec/webhook-boundary.js +1 -1
  144. package/dist/client/authorized-client.d.ts +1 -0
  145. package/dist/client/authorized-client.js +1 -1
  146. package/dist/client/cli-client/cli-api-client.d.ts +17 -0
  147. package/dist/client/cli-client/cli-api-client.js +1 -0
  148. package/dist/client/cli-client/index.d.ts +2 -0
  149. package/dist/client/cli-client/index.js +1 -0
  150. package/dist/client/cli-client/unsupported-api-version-error.d.ts +11 -0
  151. package/dist/client/cli-client/unsupported-api-version-error.js +1 -0
  152. package/dist/client/contract.d.ts +28 -10
  153. package/dist/client/contract.js +1 -1
  154. package/dist/client/index.d.ts +2 -1
  155. package/dist/client/index.js +1 -1
  156. package/dist/client/local-authorized-client.d.ts +1 -0
  157. package/dist/client/local-authorized-client.js +1 -1
  158. package/dist/client/memory-authorized-client.d.ts +1 -0
  159. package/dist/client/memory-authorized-client.js +1 -1
  160. package/dist/client/phoenix-api.d.ts +7503 -2093
  161. package/dist/client/unauthenticated-client.js +1 -1
  162. package/dist/configurator/ConfiguratorApp.js +1 -1
  163. package/dist/configurator/agent-at-work/AgentAtWorkFallback.d.ts +7 -0
  164. package/dist/configurator/agent-at-work/AgentAtWorkFallback.js +1 -0
  165. package/dist/configurator/agent-at-work/AgentAtWorkPage.d.ts +20 -0
  166. package/dist/configurator/agent-at-work/AgentAtWorkPage.js +1 -0
  167. package/dist/configurator/agent-at-work/AgentModeBadge.d.ts +11 -0
  168. package/dist/configurator/agent-at-work/AgentModeBadge.js +1 -0
  169. package/dist/configurator/agent-at-work/StudioMark.d.ts +8 -0
  170. package/dist/configurator/agent-at-work/StudioMark.js +1 -0
  171. package/dist/configurator/agent-at-work/agent-at-work-copy.d.ts +17 -0
  172. package/dist/configurator/agent-at-work/agent-at-work-copy.js +1 -0
  173. package/dist/configurator/agent-at-work/agent-at-work-styles.d.ts +23 -0
  174. package/dist/configurator/agent-at-work/agent-at-work-styles.js +374 -0
  175. package/dist/configurator/agent-at-work/index.d.ts +3 -0
  176. package/dist/configurator/agent-at-work/index.js +1 -0
  177. package/dist/configurator/application-runtime/extensions/configurator-extension-systems.d.ts +5 -4
  178. package/dist/configurator/application-runtime/extensions/configurator-extension-systems.js +1 -1
  179. package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
  180. package/dist/configurator/application-runtime/extensions/selectors.d.ts +4 -2
  181. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  182. package/dist/configurator/application-runtime/extensions/systems/action-system/action-context.d.ts +14 -0
  183. package/dist/configurator/application-runtime/extensions/systems/action-system/action-factory.d.ts +13 -0
  184. package/dist/configurator/application-runtime/extensions/systems/action-system/action-system.d.ts +55 -0
  185. package/dist/configurator/application-runtime/extensions/systems/action-system/action-system.js +1 -0
  186. package/dist/configurator/application-runtime/extensions/systems/action-system/action.d.ts +56 -0
  187. package/dist/configurator/application-runtime/extensions/systems/action-system/action.js +1 -0
  188. package/dist/configurator/application-runtime/extensions/systems/action-system/index.d.ts +6 -0
  189. package/dist/configurator/application-runtime/extensions/systems/action-system/index.js +1 -0
  190. package/dist/{domain/domain-runtime/spec → configurator/application-runtime/extensions/systems/action-system}/prepare-action-implementations.d.ts +4 -3
  191. package/dist/{domain/domain-runtime/spec → configurator/application-runtime/extensions/systems/action-system}/prepare-action-implementations.js +2 -2
  192. package/dist/{domain/spec/modules → configurator/application-runtime/extensions/systems/action-system}/resolve-action-modules.d.ts +2 -2
  193. package/dist/configurator/application-runtime/extensions/systems/action-system/resolve-action-modules.js +1 -0
  194. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-annotation.d.ts +14 -8
  195. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-image-view.d.ts +18 -0
  196. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-image-view.js +1 -0
  197. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-speech-player.d.ts +69 -0
  198. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-speech-player.js +1 -0
  199. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +246 -22
  200. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  201. package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.d.ts +63 -0
  202. package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.js +1 -0
  203. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +52 -36
  204. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
  205. package/dist/configurator/application-runtime/extensions/systems/assistant-system/rasterize-image.d.ts +13 -0
  206. package/dist/configurator/application-runtime/extensions/systems/assistant-system/rasterize-image.js +1 -0
  207. package/dist/configurator/application-runtime/extensions/systems/assistant-system/speakable-reply.d.ts +7 -0
  208. package/dist/configurator/application-runtime/extensions/systems/assistant-system/speakable-reply.js +1 -0
  209. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.d.ts +3 -0
  210. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.js +1 -0
  211. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.d.ts +33 -0
  212. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.js +6 -0
  213. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/share-link.d.ts +14 -0
  214. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/share-link.js +2 -0
  215. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/to-webmcp-result.d.ts +10 -0
  216. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/to-webmcp-result.js +1 -0
  217. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +41 -35
  218. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.js +1 -1
  219. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +18 -5
  220. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
  221. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +8 -1
  222. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  223. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +46 -12
  224. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  225. package/dist/configurator/application-runtime/extensions/systems/graphql-system/is-offered-for-selection.d.ts +16 -0
  226. package/dist/configurator/application-runtime/extensions/systems/graphql-system/is-offered-for-selection.js +1 -0
  227. package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.d.ts +26 -0
  228. package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.js +1 -0
  229. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.d.ts +25 -8
  230. package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.js +1 -1
  231. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/export-image-capture.d.ts +15 -4
  232. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/export-image-capture.js +3 -3
  233. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +15 -7
  234. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  235. package/dist/configurator/application-runtime/extensions/systems/index.d.ts +8 -3
  236. package/dist/configurator/application-runtime/extensions/systems/index.js +1 -1
  237. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.d.ts +11 -0
  238. package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.js +1 -1
  239. package/dist/configurator/application-runtime/extensions/systems/sketching-system/sketching-system.d.ts +5 -5
  240. package/dist/configurator/application-runtime/hooks/use-configurator.d.ts +3 -3
  241. package/dist/configurator/common/configurator-interface.d.ts +11 -9
  242. package/dist/configurator/common/configurator-interface.js +1 -1
  243. package/dist/configurator/index.d.ts +1 -0
  244. package/dist/configurator/index.js +1 -1
  245. package/dist/configurator/{ui/configurator-layout/universal → pages}/ExportingOverlay.d.ts +3 -2
  246. package/dist/configurator/pages/ExportingOverlay.js +1 -0
  247. package/dist/configurator/pages/InertRoot.d.ts +10 -0
  248. package/dist/configurator/pages/InertRoot.js +1 -0
  249. package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
  250. package/dist/configurator/pages/PresetCreationErrorPage.d.ts +1 -1
  251. package/dist/configurator/pages/PresetCreationErrorPage.js +1 -1
  252. package/dist/configurator/pages/error-boundaries/AgentModeErrorFallback.d.ts +8 -0
  253. package/dist/configurator/pages/error-boundaries/AgentModeErrorFallback.js +1 -0
  254. package/dist/configurator/pages/error-boundaries/DevContextFallback.d.ts +4 -2
  255. package/dist/configurator/pages/error-boundaries/DevContextFallback.js +1 -1
  256. package/dist/configurator/pages/error-boundaries/DevLoadingFallback.d.ts +6 -4
  257. package/dist/configurator/pages/error-boundaries/DevLoadingFallback.js +1 -1
  258. package/dist/configurator/pages/error-boundaries/GeneralErrorBoundary.js +1 -1
  259. package/dist/configurator/scene/cameras/CameraPadding.d.ts +5 -0
  260. package/dist/configurator/scene/cameras/CameraPadding.js +1 -1
  261. package/dist/configurator/scene/resources/use-phx-gltf.js +1 -1
  262. package/dist/configurator/scene/scene-entity/materials/LocalCreatedMaterial.js +1 -1
  263. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.d.ts +5 -0
  264. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.js +1 -1
  265. package/dist/configurator/scene/scene-entity/materials/use-dispose-replaced.d.ts +27 -0
  266. package/dist/configurator/scene/scene-entity/materials/use-dispose-replaced.js +1 -0
  267. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -1
  268. package/dist/configurator/ui/assistant/AssistantChips.d.ts +78 -6
  269. package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
  270. package/dist/configurator/ui/assistant/AssistantComposer.d.ts +99 -1
  271. package/dist/configurator/ui/assistant/AssistantComposer.js +1 -1
  272. package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +37 -3
  273. package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -1
  274. package/dist/configurator/ui/assistant/AssistantPanel.d.ts +51 -4
  275. package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
  276. package/dist/configurator/ui/assistant/AssistantThread.d.ts +85 -2
  277. package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
  278. package/dist/configurator/ui/assistant/AssistantThreadItemView.d.ts +83 -6
  279. package/dist/configurator/ui/assistant/AssistantThreadItemView.js +1 -1
  280. package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +35 -1
  281. package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -1
  282. package/dist/configurator/ui/assistant/alert/index.d.ts +1 -1
  283. package/dist/configurator/ui/assistant/annotation/AnnotationBadge.d.ts +34 -0
  284. package/dist/configurator/ui/assistant/annotation/AnnotationBadge.js +1 -1
  285. package/dist/configurator/ui/assistant/annotation/AnnotationOverlay.d.ts +2 -3
  286. package/dist/configurator/ui/assistant/annotation/AnnotationViewer.js +1 -1
  287. package/dist/configurator/ui/assistant/annotation/MessageAnnotations.js +1 -1
  288. package/dist/configurator/ui/assistant/annotation/annotation-layout.d.ts +59 -5
  289. package/dist/configurator/ui/assistant/annotation/annotation-layout.js +1 -1
  290. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.d.ts +40 -5
  291. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.js +1 -1
  292. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.d.ts +6 -5
  293. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.js +1 -1
  294. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.d.ts +5 -0
  295. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.js +1 -1
  296. package/dist/configurator/ui/assistant/annotation/editor/index.d.ts +1 -0
  297. package/dist/configurator/ui/assistant/annotation/index.d.ts +3 -2
  298. package/dist/configurator/ui/assistant/annotation/index.js +1 -1
  299. package/dist/configurator/ui/assistant/assistant-failure.d.ts +9 -4
  300. package/dist/configurator/ui/assistant/assistant-failure.js +1 -1
  301. package/dist/configurator/ui/assistant/attachments/MessageImages.d.ts +49 -5
  302. package/dist/configurator/ui/assistant/attachments/MessageImages.js +1 -1
  303. package/dist/configurator/ui/assistant/attachments/index.d.ts +1 -1
  304. package/dist/configurator/ui/assistant/composer/composer-frame.d.ts +7 -2
  305. package/dist/configurator/ui/assistant/composer/composer-frame.js +1 -1
  306. package/dist/configurator/ui/assistant/composer/index.d.ts +1 -1
  307. package/dist/configurator/ui/assistant/composer/index.js +1 -1
  308. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerDialog.d.ts +10 -0
  309. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerDialog.js +1 -0
  310. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerLine.d.ts +10 -0
  311. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerLine.js +1 -0
  312. package/dist/configurator/ui/assistant/disclaimer/index.d.ts +2 -0
  313. package/dist/configurator/ui/assistant/disclaimer/index.js +1 -0
  314. package/dist/configurator/ui/assistant/drawing/AssistantDrawing.d.ts +58 -0
  315. package/dist/configurator/ui/assistant/drawing/AssistantDrawing.js +1 -0
  316. package/dist/configurator/ui/assistant/drawing/index.d.ts +2 -0
  317. package/dist/configurator/ui/assistant/drawing/index.js +1 -0
  318. package/dist/configurator/ui/assistant/drawing/parse-drawing.d.ts +18 -0
  319. package/dist/configurator/ui/assistant/drawing/parse-drawing.js +1 -0
  320. package/dist/configurator/ui/assistant/drawing/use-drawing-url.d.ts +8 -0
  321. package/dist/configurator/ui/assistant/drawing/use-drawing-url.js +1 -0
  322. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.d.ts +35 -1
  323. package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.js +1 -1
  324. package/dist/configurator/ui/assistant/entity-link/index.d.ts +1 -1
  325. package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +59 -2
  326. package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -1
  327. package/dist/configurator/ui/assistant/form/built-in-form-slots.d.ts +16 -0
  328. package/dist/configurator/ui/assistant/form/built-in-form-slots.js +1 -0
  329. package/dist/configurator/ui/assistant/form/form-model.d.ts +9 -0
  330. package/dist/configurator/ui/assistant/form/index.d.ts +2 -1
  331. package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +6 -5
  332. package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -1
  333. package/dist/configurator/ui/assistant/form/read-form-tile.d.ts +8 -0
  334. package/dist/configurator/ui/assistant/form/read-form-tile.js +1 -0
  335. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +6 -3
  336. package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -1
  337. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +11 -7
  338. package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +1 -1
  339. package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -1
  340. package/dist/configurator/ui/assistant/form/registry/index.d.ts +1 -1
  341. package/dist/configurator/ui/assistant/form/split-form-rows.d.ts +7 -0
  342. package/dist/configurator/ui/assistant/form/split-form-rows.js +1 -0
  343. package/dist/configurator/ui/assistant/form-elements/FormConfirm.d.ts +51 -0
  344. package/dist/configurator/ui/assistant/form-elements/FormConfirm.js +1 -1
  345. package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +47 -0
  346. package/dist/configurator/ui/assistant/form-elements/FormGroup.js +1 -1
  347. package/dist/configurator/ui/assistant/form-elements/FormNumber.d.ts +43 -0
  348. package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -1
  349. package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +56 -2
  350. package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -1
  351. package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +43 -0
  352. package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -1
  353. package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +47 -0
  354. package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -1
  355. package/dist/configurator/ui/assistant/form-elements/FormTile.d.ts +72 -0
  356. package/dist/configurator/ui/assistant/form-elements/FormTile.js +1 -0
  357. package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +27 -0
  358. package/dist/configurator/ui/assistant/form-elements/index.d.ts +8 -9
  359. package/dist/configurator/ui/assistant/form-elements/index.js +1 -1
  360. package/dist/configurator/ui/assistant/image-view/ImageView.d.ts +66 -0
  361. package/dist/configurator/ui/assistant/image-view/ImageView.js +1 -0
  362. package/dist/configurator/ui/assistant/image-view/index.d.ts +1 -0
  363. package/dist/configurator/ui/assistant/image-view/index.js +1 -0
  364. package/dist/configurator/ui/assistant/image-view/use-image-blob.d.ts +7 -0
  365. package/dist/configurator/ui/assistant/image-view/use-image-blob.js +1 -0
  366. package/dist/configurator/ui/assistant/index.d.ts +21 -10
  367. package/dist/configurator/ui/assistant/index.js +1 -1
  368. package/dist/configurator/ui/assistant/panel/AssistantPanelHeader.d.ts +57 -0
  369. package/dist/configurator/ui/assistant/panel/AssistantPanelHeader.js +1 -0
  370. package/dist/configurator/ui/assistant/panel/index.d.ts +1 -0
  371. package/dist/configurator/ui/assistant/panel/index.js +1 -0
  372. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.d.ts +43 -1
  373. package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -1
  374. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +4 -1
  375. package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -1
  376. package/dist/configurator/ui/assistant/reference-link/index.d.ts +3 -2
  377. package/dist/configurator/ui/assistant/reference-link/index.js +1 -1
  378. package/dist/configurator/ui/assistant/resource-image/AssistantImage.d.ts +49 -2
  379. package/dist/configurator/ui/assistant/resource-image/AssistantImage.js +1 -1
  380. package/dist/configurator/ui/assistant/resource-image/index.d.ts +1 -1
  381. package/dist/configurator/ui/assistant/resource-image/index.js +1 -1
  382. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +34 -0
  383. package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -1
  384. package/dist/configurator/ui/assistant/screenshots/index.d.ts +1 -1
  385. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +2 -6
  386. package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -1
  387. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +5 -6
  388. package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -1
  389. package/dist/configurator/ui/assistant/thread-items.d.ts +17 -3
  390. package/dist/configurator/ui/assistant/thread-items.js +1 -1
  391. package/dist/configurator/ui/assistant/use-assistant-composer.d.ts +32 -7
  392. package/dist/configurator/ui/assistant/use-assistant-composer.js +2 -2
  393. package/dist/configurator/ui/assistant/use-assistant-thread.d.ts +15 -1
  394. package/dist/configurator/ui/assistant/use-assistant-thread.js +1 -1
  395. package/dist/configurator/ui/assistant/use-load-older-on-top.d.ts +3 -3
  396. package/dist/configurator/ui/assistant/use-load-older-on-top.js +1 -1
  397. package/dist/configurator/ui/assistant/{annotation/use-end-on-unmount.d.ts → use-on-unmount.d.ts} +1 -1
  398. package/dist/configurator/ui/assistant/use-on-unmount.js +1 -0
  399. package/dist/configurator/ui/assistant/voice/RecordingBar.d.ts +21 -0
  400. package/dist/configurator/ui/assistant/voice/RecordingBar.js +1 -0
  401. package/dist/configurator/ui/assistant/voice/ReplyPlayButton.d.ts +43 -0
  402. package/dist/configurator/ui/assistant/voice/ReplyPlayButton.js +1 -0
  403. package/dist/configurator/ui/assistant/voice/index.d.ts +4 -0
  404. package/dist/configurator/ui/assistant/voice/index.js +1 -0
  405. package/dist/configurator/ui/assistant/voice/use-voice-recording.d.ts +39 -0
  406. package/dist/configurator/ui/assistant/voice/use-voice-recording.js +1 -0
  407. package/dist/configurator/ui/assistant/voice/voice-capture.d.ts +22 -0
  408. package/dist/configurator/ui/assistant/voice/voice-capture.js +1 -0
  409. package/dist/configurator/ui/configurator-layout/index.d.ts +1 -1
  410. package/dist/configurator/ui/configurator-layout/index.js +1 -1
  411. package/dist/configurator/ui/configurator-layout/slots/canvas/LayoutCanvas.js +1 -1
  412. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +4 -4
  413. package/dist/configurator/ui/configurator-layout/slots/index.d.ts +2 -0
  414. package/dist/configurator/ui/configurator-layout/slots/index.js +1 -1
  415. package/dist/configurator/ui/configurator-layout/slots/view-controls/DesktopViewControls.js +1 -1
  416. package/dist/configurator/ui/configurator-layout/slots/view-controls/MobileViewControls.js +1 -1
  417. package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.d.ts +7 -0
  418. package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.js +1 -0
  419. package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.d.ts +6 -0
  420. package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.js +1 -0
  421. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  422. package/dist/configurator/ui/configurator-layout/universal/Layout.js +1 -1
  423. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +3 -3
  424. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  425. package/dist/configurator/ui/configurator-layout/universal/use-layout-scene-safe-area.js +1 -1
  426. package/dist/configurator/ui/configurator-layout/universal/use-preview-description.d.ts +1 -0
  427. package/dist/configurator/ui/configurator-layout/universal/use-preview-description.js +1 -0
  428. package/dist/configurator/ui/index.d.ts +1 -1
  429. package/dist/configurator/ui/legacy/layout/common/ViewControls.js +1 -1
  430. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -1
  431. package/dist/docs/index.json +130 -5
  432. package/dist/docs/integrations/woocommerce/overview.mdx +4 -2
  433. package/dist/docs/layouts/nested-view-controls.mdx +223 -0
  434. package/dist/docs/layouts/presets/custom.mdx +1 -0
  435. package/dist/docs/layouts/preview/always.mdx +22 -0
  436. package/dist/docs/layouts/view-controls.mdx +2 -0
  437. package/dist/docs/other-features/domain-actions.mdx +82 -55
  438. package/dist/docs/other-features/violation-messages.mdx +3 -1
  439. package/dist/docs/phoenix/admin.mdx +30 -34
  440. package/dist/docs/phoenix/application-states.mdx +1 -1
  441. package/dist/docs/phoenix/assistant/actions.mdx +183 -0
  442. package/dist/docs/phoenix/assistant/changing-the-configuration.mdx +333 -0
  443. package/dist/docs/phoenix/assistant/instructions-and-ai-settings.mdx +221 -0
  444. package/dist/docs/phoenix/assistant/overview.mdx +137 -0
  445. package/dist/docs/phoenix/assistant/per-session-setup.mdx +166 -0
  446. package/dist/docs/phoenix/assistant/reading-the-configuration.mdx +349 -0
  447. package/dist/docs/phoenix/assistant/screenshots.mdx +135 -0
  448. package/dist/docs/phoenix/assistant/security-and-limits.mdx +151 -0
  449. package/dist/docs/phoenix/assistant/the-panel.mdx +298 -0
  450. package/dist/docs/phoenix/blender-rendering.mdx +3 -1
  451. package/dist/docs/phoenix/configurator-interface.mdx +105 -10
  452. package/dist/docs/phoenix/data-sources.mdx +61 -37
  453. package/dist/docs/phoenix/finalization.mdx +2 -1
  454. package/dist/docs/phoenix/getting-started.mdx +1 -1
  455. package/dist/docs/phoenix/integration/authentication-internal.mdx +2 -2
  456. package/dist/docs/phoenix/integration/finalization-internal.mdx +1 -1
  457. package/dist/docs/phoenix/layout-slots.mdx +2 -2
  458. package/dist/docs/phoenix/localization.mdx +2 -1
  459. package/dist/docs/phoenix/migrations.mdx +1 -1
  460. package/dist/docs/phoenix/phoenix-cli.mdx +97 -57
  461. package/dist/docs/phoenix/project-structure.mdx +17 -7
  462. package/dist/docs/phoenix/sdk-builder-workflow.mdx +61 -30
  463. package/dist/docs/phoenix/sessions-and-access.mdx +62 -41
  464. package/dist/docs/phoenix/sharing.mdx +1 -1
  465. package/dist/docs/phoenix/theming.mdx +5 -9
  466. package/dist/docs/phoenix/webhook-membership.mdx +1 -1
  467. package/dist/docs/phoenix/webhooks.mdx +417 -241
  468. package/dist/docs/ux-guidelines/choosing-navigation.mdx +2 -0
  469. package/dist/docs/ux-guidelines/designing-the-configuration-journey.mdx +43 -0
  470. package/dist/docs/ux-guidelines/interaction-modes.mdx +2 -2
  471. package/dist/docs/ux-guidelines/overview.mdx +11 -9
  472. package/dist/domain/admin-domain/index.d.ts +2 -2
  473. package/dist/domain/application/application-config.d.ts +8 -1
  474. package/dist/domain/application/assistant/assistant-exposure.d.ts +22 -0
  475. package/dist/domain/application/assistant/assistant-exposure.js +1 -0
  476. package/dist/domain/application/assistant/assistant-selection.d.ts +30 -0
  477. package/dist/domain/application/assistant/assistant-selection.js +1 -0
  478. package/dist/domain/application/assistant/build-assistant-lenses.js +4 -4
  479. package/dist/domain/application/assistant/build-assistant-manifest.d.ts +2 -2
  480. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  481. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +18 -2
  482. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  483. package/dist/domain/application/assistant/index.d.ts +5 -1
  484. package/dist/domain/application/assistant/index.js +1 -1
  485. package/dist/domain/application/assistant/prepare-assistant-navigation-updates.d.ts +16 -0
  486. package/dist/domain/application/assistant/prepare-assistant-navigation-updates.js +1 -0
  487. package/dist/domain/application/assistant/read-assistant-navigation.d.ts +40 -0
  488. package/dist/domain/application/assistant/read-assistant-navigation.js +1 -0
  489. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -1
  490. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +30 -2
  491. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -1
  492. package/dist/domain/application/assistant/session-setup/assistant-takes-images.d.ts +7 -0
  493. package/dist/domain/application/assistant/session-setup/assistant-takes-images.js +1 -0
  494. package/dist/domain/application/assistant/session-setup/index.d.ts +1 -0
  495. package/dist/domain/application/assistant/session-setup/index.js +1 -1
  496. package/dist/domain/application/assistant-field-options.d.ts +2 -0
  497. package/dist/domain/application/assistant-field-options.js +1 -1
  498. package/dist/domain/application/assistant-mutations.d.ts +17 -11
  499. package/dist/domain/application/assistant-mutations.js +1 -1
  500. package/dist/domain/application/assistant-recipe-groups.d.ts +4 -3
  501. package/dist/domain/application/assistant-recipe-groups.js +1 -1
  502. package/dist/domain/application/configurator-builder.d.ts +45 -37
  503. package/dist/domain/application/configurator-builder.js +1 -1
  504. package/dist/domain/available-system-components/available-system-components.d.ts +1 -1
  505. package/dist/domain/available-system-components/available-system-components.js +1 -1
  506. package/dist/domain/core/action/action.d.ts +0 -49
  507. package/dist/domain/core/action/index.d.ts +0 -1
  508. package/dist/domain/core/action/index.js +1 -1
  509. package/dist/domain/core/component/system-component-filter.d.ts +1 -0
  510. package/dist/domain/core/component/system-component-filter.js +1 -1
  511. package/dist/domain/core/component/view-state-component.d.ts +4 -3
  512. package/dist/domain/core/component/view-state-component.js +1 -1
  513. package/dist/domain/core/domain-factory.d.ts +2 -3
  514. package/dist/domain/core/index.d.ts +1 -1
  515. package/dist/domain/core/index.js +1 -1
  516. package/dist/domain/core/invariant/control-violation-hints.d.ts +37 -0
  517. package/dist/domain/core/invariant/control-violation-hints.js +1 -0
  518. package/dist/domain/core/invariant/index.d.ts +1 -0
  519. package/dist/domain/core/invariant/index.js +1 -1
  520. package/dist/domain/domain-builder/domain-builder.d.ts +1 -6
  521. package/dist/domain/domain-builder/domain-builder.js +1 -1
  522. package/dist/domain/domain-context/domain-context-systems.d.ts +3 -5
  523. package/dist/domain/domain-context/index.d.ts +0 -1
  524. package/dist/domain/domain-context/index.js +1 -1
  525. package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +2 -2
  526. package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
  527. package/dist/domain/domain-context/transformers/when-builder.js +1 -1
  528. package/dist/domain/domain-runtime/domain-context/domain-context.d.ts +1 -1
  529. package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
  530. package/dist/domain/domain-runtime/domain-context/index.d.ts +0 -1
  531. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +5 -4
  532. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  533. package/dist/domain/domain-runtime/domain-runtime.d.ts +19 -13
  534. package/dist/domain/domain-runtime/domain-runtime.js +1 -1
  535. package/dist/domain/domain-runtime/environment/actions.d.ts +1 -0
  536. package/dist/domain/domain-runtime/environment/actions.js +1 -1
  537. package/dist/domain/domain-runtime/environment/initialize.js +1 -1
  538. package/dist/domain/domain-runtime/environment/selectors.d.ts +2 -0
  539. package/dist/domain/domain-runtime/environment/selectors.js +1 -1
  540. package/dist/domain/domain-runtime/environment/types.d.ts +6 -0
  541. package/dist/domain/domain-runtime/spec/index.d.ts +0 -1
  542. package/dist/domain/domain-runtime/spec/index.js +1 -1
  543. package/dist/domain/domain-runtime/spec/initialize.js +1 -1
  544. package/dist/domain/domain-runtime/spec/selectors.d.ts +2 -2
  545. package/dist/domain/domain-runtime/spec/types.d.ts +12 -10
  546. package/dist/domain/extensions/assistant/assistant-greeting.d.ts +30 -0
  547. package/dist/domain/extensions/assistant/assistant-greeting.js +1 -0
  548. package/dist/domain/extensions/assistant/index.d.ts +1 -0
  549. package/dist/domain/extensions/assistant/index.js +1 -0
  550. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +5 -4
  551. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -1
  552. package/dist/domain/extensions/index.d.ts +1 -1
  553. package/dist/domain/extensions/index.js +1 -1
  554. package/dist/domain/index.d.ts +1 -1
  555. package/dist/domain/index.js +1 -1
  556. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +9 -6
  557. package/dist/domain/spec/expressions/relation-expression-params.d.ts +1 -1
  558. package/dist/domain/spec/modules/index.d.ts +0 -1
  559. package/dist/domain/spec/modules/index.js +1 -1
  560. package/dist/domain/spec/phx/phx-domain.d.ts +0 -1
  561. package/dist/domain/spec/phx/phx-domain.js +1 -1
  562. package/dist/domain/spec/runtime/application-spec-slice.d.ts +5 -5
  563. package/dist/domain/spec/runtime/application-spec-slice.js +1 -1
  564. package/dist/domain/spec/runtime/create-application.d.ts +5 -2
  565. package/dist/domain/spec/runtime/create-application.js +1 -1
  566. package/dist/domain/spec/runtime-spec/runtime-spec.d.ts +2 -2
  567. package/dist/domain/spec/sections/actions.d.ts +3 -2
  568. package/dist/domain/spec/sections/app-metadata.d.ts +3 -0
  569. package/dist/domain/spec/sections/assistant/assistant-features.d.ts +13 -0
  570. package/dist/domain/spec/sections/assistant/assistant-features.js +1 -0
  571. package/dist/domain/spec/sections/assistant/assistant-manifest.d.ts +35 -2
  572. package/dist/domain/spec/sections/assistant/assistant-navigation.d.ts +21 -0
  573. package/dist/domain/spec/sections/assistant/assistant-navigation.js +1 -0
  574. package/dist/domain/spec/sections/assistant/assistant-resolved-manifest.d.ts +55 -13
  575. package/dist/domain/spec/sections/assistant/assistant-select.d.ts +12 -0
  576. package/dist/domain/spec/sections/assistant/assistant-select.js +1 -0
  577. package/dist/domain/spec/sections/assistant/form/assistant-form-elements.d.ts +10 -26
  578. package/dist/domain/spec/sections/assistant/form/assistant-form-elements.js +1 -1
  579. package/dist/domain/spec/sections/assistant/index.d.ts +5 -2
  580. package/dist/domain/system-components/index.d.ts +1 -0
  581. package/dist/domain/system-components/index.js +1 -1
  582. package/dist/domain/system-components/navigation/index.d.ts +1 -0
  583. package/dist/domain/system-components/navigation/index.js +1 -0
  584. package/dist/domain/system-components/navigation/view-controls.d.ts +24 -0
  585. package/dist/domain/system-components/navigation/view-controls.js +1 -0
  586. package/dist/editor/Editor.d.ts +5 -0
  587. package/dist/editor/Editor.js +1 -1
  588. package/dist/editor/EditorMode.d.ts +2 -0
  589. package/dist/editor/EditorMode.js +1 -1
  590. package/dist/editor/agent-mode/AgentModeBridge.d.ts +10 -0
  591. package/dist/editor/agent-mode/AgentModeBridge.js +1 -0
  592. package/dist/editor/agent-mode/agent-at-work-fonts.d.ts +2 -0
  593. package/dist/editor/agent-mode/agent-at-work-fonts.js +1 -0
  594. package/dist/editor/console-reporter/BrowserConsoleReporter.js +1 -1
  595. package/dist/editor/console-reporter/console-capture.d.ts +20 -0
  596. package/dist/editor/console-reporter/console-capture.js +1 -0
  597. package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
  598. package/dist/editor/domain-editors/apply-spec-update.js +1 -1
  599. package/dist/editor/domain-editors/use-implementation-files.d.ts +4 -3
  600. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  601. package/dist/editor/index.d.ts +1 -0
  602. package/dist/editor/index.js +1 -1
  603. package/dist/editor/variants/VariantAnswerFooter.d.ts +8 -1
  604. package/dist/editor/variants/VariantAnswerFooter.js +1 -1
  605. package/dist/editor/variants/VariantPageUnavailable.d.ts +5 -0
  606. package/dist/editor/variants/VariantPageUnavailable.js +1 -0
  607. package/dist/editor/variants/VariantPreviewHandler.js +1 -1
  608. package/dist/editor/variants/variant-preview-fonts.d.ts +2 -0
  609. package/dist/editor/variants/variant-preview-fonts.js +1 -0
  610. package/dist/editor/variants/variant-preview-styles.d.ts +40 -48
  611. package/dist/editor/variants/variant-preview-styles.js +493 -1
  612. package/dist/extras/cognito/CognitoSignInPage.d.ts +2 -0
  613. package/dist/extras/cognito/CognitoSignInPage.js +1 -0
  614. package/dist/extras/cognito/index.d.ts +1 -0
  615. package/dist/extras/cognito/index.js +1 -0
  616. package/dist/globals/index.d.ts +5 -0
  617. package/dist/i18n/locales/cs/messages.js +1 -1
  618. package/dist/i18n/locales/da/messages.js +1 -1
  619. package/dist/i18n/locales/de/messages.js +1 -1
  620. package/dist/i18n/locales/de-AT/messages.js +1 -1
  621. package/dist/i18n/locales/en/messages.js +1 -1
  622. package/dist/i18n/locales/en-AU/messages.js +1 -1
  623. package/dist/i18n/locales/en-GB/messages.js +1 -1
  624. package/dist/i18n/locales/es/messages.js +1 -1
  625. package/dist/i18n/locales/fr/messages.js +1 -1
  626. package/dist/i18n/locales/hu/messages.js +1 -1
  627. package/dist/i18n/locales/it/messages.js +1 -1
  628. package/dist/i18n/locales/nl/messages.js +1 -1
  629. package/dist/i18n/locales/pl/messages.js +1 -1
  630. package/dist/i18n/locales/pt/messages.js +1 -1
  631. package/dist/i18n/locales/ro/messages.js +1 -1
  632. package/dist/i18n/locales/sk/messages.js +1 -1
  633. package/dist/i18n/locales/tr/messages.js +1 -1
  634. package/dist/legacy/deployment-cli/commands/create-environment.js +1 -1
  635. package/dist/legacy/deployment-cli/commands/list-environments.js +1 -1
  636. package/dist/legacy/deployment-cli/commands/register-deployment.js +1 -1
  637. package/dist/legacy/domain-cli/gen/configurator-builder.js +5 -4
  638. package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
  639. package/dist/legacy/domain-cli/utils/cache.js +1 -1
  640. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +25 -3
  641. package/dist/legacy/phoenix-cli/commands/prepare-deployment-command.js +1 -1
  642. package/dist/legacy/phoenix-cli/commands/prepare-local-environment-command.js +1 -1
  643. package/dist/legacy/phoenix-cli/services/prepare-development-environment.js +1 -1
  644. package/dist/legacy/phoenix-cli/services/webhook-service/transport.js +1 -1
  645. package/dist/legacy/webhook-cli/lib/webhook-boundary.js +1 -1
  646. package/dist/phoenix/application-spec/application-spec-builder.d.ts +2 -2
  647. package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
  648. package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +2 -1
  649. package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
  650. package/dist/phoenix/application-spec/generate-project-files.d.ts +4 -3
  651. package/dist/phoenix/application-spec/generate-project-files.js +1 -1
  652. package/dist/phoenix/application-spec/index.d.ts +2 -1
  653. package/dist/phoenix/application-spec/index.js +1 -1
  654. package/dist/phoenix/application-spec/read-spec-project.d.ts +1 -2
  655. package/dist/phoenix/application-spec/read-spec-project.js +1 -1
  656. package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +1 -0
  657. package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
  658. package/dist/phoenix/cli.js +1 -1
  659. package/dist/phoenix/commands/account/index.d.ts +1 -0
  660. package/dist/phoenix/commands/account/index.js +1 -0
  661. package/dist/phoenix/commands/account/whoami.d.ts +10 -0
  662. package/dist/phoenix/commands/account/whoami.js +4 -0
  663. package/dist/phoenix/commands/build.d.ts +2 -1
  664. package/dist/phoenix/commands/build.js +1 -1
  665. package/dist/phoenix/commands/clean.d.ts +2 -1
  666. package/dist/phoenix/commands/clean.js +1 -1
  667. package/dist/phoenix/commands/cleanup-environment.js +1 -1
  668. package/dist/phoenix/commands/deploy.d.ts +7 -2
  669. package/dist/phoenix/commands/deploy.js +9 -3
  670. package/dist/phoenix/commands/deployment-build-envs-command.js +1 -1
  671. package/dist/phoenix/commands/dev.d.ts +2 -1
  672. package/dist/phoenix/commands/dev.js +4 -4
  673. package/dist/phoenix/commands/feedback.d.ts +2 -2
  674. package/dist/phoenix/commands/feedback.js +1 -1
  675. package/dist/phoenix/commands/finish-deployment-command.js +1 -1
  676. package/dist/phoenix/commands/index.d.ts +1 -0
  677. package/dist/phoenix/commands/index.js +1 -1
  678. package/dist/phoenix/commands/init-starter-spec.js +3 -4
  679. package/dist/phoenix/commands/init.d.ts +2 -2
  680. package/dist/phoenix/commands/init.js +1 -1
  681. package/dist/phoenix/commands/login.d.ts +6 -3
  682. package/dist/phoenix/commands/login.js +3 -3
  683. package/dist/phoenix/commands/logout.js +1 -1
  684. package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
  685. package/dist/phoenix/commands/prepare-local-environment-command.js +1 -1
  686. package/dist/phoenix/commands/sync.d.ts +2 -1
  687. package/dist/phoenix/commands/sync.js +1 -1
  688. package/dist/phoenix/services/application-spec-project-watcher.d.ts +3 -1
  689. package/dist/phoenix/services/application-spec-project-watcher.js +2 -2
  690. package/dist/phoenix/services/cli-credentials.d.ts +26 -7
  691. package/dist/phoenix/services/cli-credentials.js +2 -2
  692. package/dist/phoenix/services/cli-server/describe-saved-logins.d.ts +5 -0
  693. package/dist/phoenix/services/cli-server/describe-saved-logins.js +1 -0
  694. package/dist/phoenix/services/cli-server/index.d.ts +2 -0
  695. package/dist/phoenix/services/cli-server/index.js +1 -0
  696. package/dist/phoenix/services/cli-server/resolve-cli-server-url.d.ts +19 -0
  697. package/dist/phoenix/services/cli-server/resolve-cli-server-url.js +1 -0
  698. package/dist/phoenix/services/dev-experience/dev-experience.d.ts +31 -0
  699. package/dist/phoenix/services/dev-experience/dev-experience.js +1 -0
  700. package/dist/phoenix/services/dev-experience/index.d.ts +3 -0
  701. package/dist/phoenix/services/dev-experience/index.js +1 -0
  702. package/dist/phoenix/services/dev-experience/read-explicit-editor-setting.d.ts +7 -0
  703. package/dist/phoenix/services/dev-experience/read-explicit-editor-setting.js +1 -0
  704. package/dist/phoenix/services/dev-experience/regenerated-page-experience.d.ts +24 -0
  705. package/dist/phoenix/services/dev-experience/regenerated-page-experience.js +1 -0
  706. package/dist/phoenix/services/development-credential.js +1 -1
  707. package/dist/phoenix/services/frontend-config.d.ts +2 -0
  708. package/dist/phoenix/services/index.d.ts +6 -3
  709. package/dist/phoenix/services/index.js +1 -1
  710. package/dist/phoenix/services/phoenix-pubsub.d.ts +4 -0
  711. package/dist/phoenix/services/phoenix-regions.d.ts +6 -1
  712. package/dist/phoenix/services/phoenix-regions.js +1 -1
  713. package/dist/phoenix/services/prepare-development-environment.js +1 -1
  714. package/dist/phoenix/services/session/phoenix-application.d.ts +2 -1
  715. package/dist/phoenix/services/session/phoenix-application.js +2 -2
  716. package/dist/phoenix/services/signed-in-development-environment.d.ts +15 -4
  717. package/dist/phoenix/services/signed-in-development-environment.js +1 -1
  718. package/dist/phoenix/services/spec-project/describe-workspace-projects.d.ts +11 -0
  719. package/dist/phoenix/services/spec-project/describe-workspace-projects.js +1 -0
  720. package/dist/phoenix/services/spec-project/index.d.ts +3 -0
  721. package/dist/phoenix/services/spec-project/index.js +1 -0
  722. package/dist/phoenix/services/spec-project/resolve-deploy-target.d.ts +47 -0
  723. package/dist/phoenix/services/spec-project/resolve-deploy-target.js +1 -0
  724. package/dist/phoenix/services/spec-project/resolve-target-project.d.ts +34 -0
  725. package/dist/phoenix/services/spec-project/resolve-target-project.js +2 -0
  726. package/dist/phoenix/services/spec-project/write-spec-project.d.ts +7 -0
  727. package/dist/phoenix/services/spec-project/write-spec-project.js +1 -0
  728. package/dist/phoenix/services/telemetry/telemetry-event.js +1 -1
  729. package/dist/phoenix/services/telemetry/telemetry-state.d.ts +1 -1
  730. package/dist/phoenix/services/telemetry/telemetry-state.js +1 -1
  731. package/dist/phoenix/services/variant-file-session.js +1 -1
  732. package/dist/phoenix/services/vite-config.d.ts +2 -1
  733. package/dist/phoenix/services/vite-config.js +1 -1
  734. package/dist/phoenix/services/webhook-service/transport.js +1 -1
  735. package/dist/react-sdk/application-runtime/common-services/index.d.ts +1 -0
  736. package/dist/react-sdk/application-runtime/common-services/index.js +1 -1
  737. package/dist/react-sdk/application-runtime/common-services/selectors.d.ts +2 -0
  738. package/dist/react-sdk/application-runtime/common-services/selectors.js +1 -1
  739. package/dist/react-sdk/application-runtime/common-services/webmcp/index.d.ts +3 -0
  740. package/dist/react-sdk/application-runtime/common-services/webmcp/index.js +1 -0
  741. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-host.d.ts +35 -0
  742. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-host.js +1 -0
  743. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-model-context.d.ts +44 -0
  744. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-model-context.js +1 -0
  745. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-tool-result.d.ts +24 -0
  746. package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-tool-result.js +1 -0
  747. package/dist/react-sdk/application-runtime/domain-application-context/application-runtime-extension.d.ts +7 -1
  748. package/dist/react-sdk/application-runtime/domain-application-context/application-runtime-extension.js +1 -1
  749. package/dist/react-sdk/application-runtime/domain-application-context/domain-application-systems.d.ts +2 -2
  750. package/dist/react-sdk/application-runtime/domain-application-context/selectors.d.ts +1 -3
  751. package/dist/react-sdk/application-runtime/domain-application-context/selectors.js +1 -1
  752. package/dist/react-sdk/application-runtime/hooks/index.d.ts +1 -0
  753. package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
  754. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +2 -0
  755. package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -1
  756. package/dist/react-sdk/application-runtime/hooks/use-environment.d.ts +7 -0
  757. package/dist/react-sdk/application-runtime/hooks/use-environment.js +1 -1
  758. package/dist/react-sdk/application-runtime/hooks/use-spec.d.ts +1 -1
  759. package/dist/react-sdk/application-runtime/hooks/use-webmcp-host.d.ts +7 -0
  760. package/dist/react-sdk/application-runtime/hooks/use-webmcp-host.js +1 -0
  761. package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
  762. package/dist/react-sdk/application-runtime/responsive/actions.d.ts +6 -0
  763. package/dist/react-sdk/application-runtime/responsive/actions.js +1 -1
  764. package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -1
  765. package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -1
  766. package/dist/react-sdk/application-runtime/responsive/types.d.ts +9 -0
  767. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +28 -12
  768. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
  769. package/dist/react-sdk/application-runtime/session/session-service.js +1 -1
  770. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +2 -2
  771. package/dist/react-sdk/domain-context/common-hooks/use-state-validity.d.ts +1 -1
  772. package/dist/react-sdk/domain-context/common-hooks/use-state-validity.js +1 -1
  773. package/dist/react-sdk/domain-context/index.d.ts +3 -2
  774. package/dist/react-sdk/domain-context/index.js +1 -1
  775. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +1 -5
  776. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -1
  777. package/dist/react-sdk/domain-context/system-hooks/generate-share-link.d.ts +25 -0
  778. package/dist/react-sdk/domain-context/system-hooks/generate-share-link.js +1 -0
  779. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +5 -3
  780. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  781. package/dist/react-sdk/preset-selection/PresetSelectionProvider.d.ts +11 -0
  782. package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -1
  783. package/dist/react-sdk/preset-selection/PresetWebMcpTools.d.ts +14 -0
  784. package/dist/react-sdk/preset-selection/PresetWebMcpTools.js +1 -0
  785. package/dist/react-sdk/preset-selection/index.d.ts +2 -1
  786. package/dist/react-sdk/preset-selection/index.js +1 -1
  787. package/dist/react-sdk/preset-selection/register-preset-webmcp-tools.d.ts +31 -0
  788. package/dist/react-sdk/preset-selection/register-preset-webmcp-tools.js +1 -0
  789. package/dist/react-sdk/session/ConfiguratorUnavailablePage.d.ts +5 -0
  790. package/dist/react-sdk/session/ConfiguratorUnavailablePage.js +1 -0
  791. package/dist/react-sdk/session/SessionServiceProvider.d.ts +5 -0
  792. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  793. package/dist/ui-sdk/components/preview/Preview.d.ts +12 -4
  794. package/dist/ui-sdk/components/preview/Preview.js +2 -2
  795. package/dist/ui-sdk/components/snackbar/Snackbar.d.ts +3 -2
  796. package/dist/ui-sdk/components/snackbar/Snackbar.js +1 -1
  797. package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.d.ts +2 -0
  798. package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.js +1 -1
  799. package/dist/ui-sdk/components/view-controls/ViewControlsContext.d.ts +3 -1
  800. package/dist/ui-sdk/components/view-controls/ViewControlsItem.js +1 -1
  801. package/dist/ui-sdk/components/view-controls/ViewControlsRoot.d.ts +6 -1
  802. package/dist/ui-sdk/components/view-controls/ViewControlsRoot.js +1 -1
  803. package/dist/ui-sdk/icons/__generated/Microphone.d.ts +3 -0
  804. package/dist/ui-sdk/icons/__generated/Microphone.js +1 -0
  805. package/dist/ui-sdk/icons/__generated/MicrophoneSlash.d.ts +3 -0
  806. package/dist/ui-sdk/icons/__generated/MicrophoneSlash.js +1 -0
  807. package/dist/ui-sdk/icons/__generated/SpeakerHigh.d.ts +3 -0
  808. package/dist/ui-sdk/icons/__generated/SpeakerHigh.js +1 -0
  809. package/dist/ui-sdk/icons/__generated/SpeakerSlash.d.ts +3 -0
  810. package/dist/ui-sdk/icons/__generated/SpeakerSlash.js +1 -0
  811. package/dist/ui-sdk/icons/__generated/Stop.d.ts +3 -0
  812. package/dist/ui-sdk/icons/__generated/Stop.js +1 -0
  813. package/dist/ui-sdk/icons/__generated/index.d.ts +10 -0
  814. package/dist/ui-sdk/icons/__generated/index.js +1 -1
  815. package/dist/ui-sdk/icons/icons-registry.js +1 -1
  816. package/dist/ui-sdk/theme/types.d.ts +0 -4
  817. package/dist/webhook/builders/auth-handler-builder.d.ts +3 -0
  818. package/dist/webhook/builders/auth-handler-builder.js +1 -1
  819. package/dist/webhook/builders/common.d.ts +5 -3
  820. package/dist/webhook/builders/webhook-builder.d.ts +5 -0
  821. package/dist/webhook/builders/webhook-builder.js +1 -1
  822. package/package.json +11 -4
  823. package/schema/domain-spec.json +444 -65
  824. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks.d.ts +0 -2
  825. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks.js +0 -1
  826. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.d.ts +0 -2
  827. package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.js +0 -25
  828. package/dist/configurator/ui/assistant/annotation/annotation-host-context.d.ts +0 -5
  829. package/dist/configurator/ui/assistant/annotation/annotation-host-context.js +0 -1
  830. package/dist/configurator/ui/assistant/annotation/use-end-on-unmount.js +0 -1
  831. package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +0 -9
  832. package/dist/configurator/ui/assistant/form-elements/FormCard.js +0 -1
  833. package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +0 -10
  834. package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +0 -1
  835. package/dist/configurator/ui/assistant/theme.d.ts +0 -2
  836. package/dist/configurator/ui/assistant/theme.js +0 -1
  837. package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.js +0 -1
  838. package/dist/domain/core/action/action-factory.d.ts +0 -11
  839. package/dist/domain/domain-context/action-system/action-system.d.ts +0 -38
  840. package/dist/domain/domain-context/action-system/action-system.js +0 -1
  841. package/dist/domain/domain-context/action-system/index.d.ts +0 -1
  842. package/dist/domain/domain-context/action-system/index.js +0 -1
  843. package/dist/domain/domain-runtime/domain-context/action-context.d.ts +0 -11
  844. package/dist/domain/extensions/view-controls.d.ts +0 -25
  845. package/dist/domain/extensions/view-controls.js +0 -1
  846. package/dist/domain/spec/modules/resolve-action-modules.js +0 -1
  847. /package/dist/{domain/domain-runtime/domain-context → configurator/application-runtime/extensions/systems/action-system}/action-context.js +0 -0
  848. /package/dist/{domain/core/action → configurator/application-runtime/extensions/systems/action-system}/action-factory.js +0 -0
@@ -1,6 +1,49 @@
1
+ import type { ComponentsOverrides } from '@mui/material';
2
+ import type { ButtonHTMLAttributes, ElementType } from 'react';
3
+ import type { ValueOf } from '@salsita-ai/common/utils';
1
4
  import type { AssistantBuiltInFormElementAttributes } from '#package/domain';
2
5
  import type { FormOptionProps } from './form-element-props.js';
6
+ declare const MuiComponentName: 'PhxAssistantFormReply';
7
+ declare module '@mui/material/styles' {
8
+ interface ComponentNameToClassKey {
9
+ [MuiComponentName]: FormReplySlots;
10
+ }
11
+ interface ComponentsPropsList {
12
+ [MuiComponentName]: ThemeableAssistantFormReplyProps;
13
+ }
14
+ interface Components {
15
+ [MuiComponentName]?: {
16
+ defaultProps?: ComponentsPropsList[typeof MuiComponentName];
17
+ styleOverrides?: ComponentsOverrides<Theme>[typeof MuiComponentName];
18
+ };
19
+ }
20
+ }
21
+ declare const Slots: {
22
+ readonly Root: 'root';
23
+ };
24
+ type FormReplySlots = ValueOf<typeof Slots>;
3
25
  type FormReplyProps = FormOptionProps<AssistantBuiltInFormElementAttributes<'reply'>>;
26
+ /**
27
+ * The slots of a form `reply`.
28
+ *
29
+ * Read from the theme only: the component takes exactly the props of its form element.
30
+ */
31
+ export interface ThemeableAssistantFormReplyProps {
32
+ /**
33
+ * The components used for each slot.
34
+ *
35
+ * - `root` — The answer button (`button`).
36
+ */
37
+ readonly slots?: Partial<Record<FormReplySlots, ElementType>>;
38
+ /**
39
+ * Props applied to each slot component.
40
+ *
41
+ * - `root` — Props for the button.
42
+ */
43
+ readonly slotProps?: Partial<{
44
+ readonly [Slots.Root]: ButtonHTMLAttributes<HTMLButtonElement>;
45
+ }>;
46
+ }
4
47
  /** A `reply`: a short answer as a small pill, marked while it is picked. */
5
48
  export declare const FormReply: ({ attributes, label, disabled, selected, onSelect }: FormReplyProps) => import("react/jsx-runtime").JSX.Element;
6
49
  export {};
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{alpha as e,styled as o}from"@mui/material";import{AssistantPanelName as i}from"../theme.js";let a=o("button",{name:i,slot:"formReply"})(({theme:{palette:r,spacing:o,typography:i}})=>({...i.body2,background:r.background.paper,border:`1px solid ${r.divider}`,borderRadius:"calc(infinity * 1px)",color:r.text.primary,cursor:"pointer",margin:0,paddingBlock:o(.25),paddingInline:o(1.25),textAlign:"start","&:hover:not(:disabled)":{background:r.action.hover},"&:focus-visible":{outline:`2px solid ${r.primary.main}`,outlineOffset:1},"&:disabled":{color:r.text.disabled,cursor:"default"},'&[aria-pressed="true"]':{background:e(r.primary.main,r.action.selectedOpacity),borderColor:r.primary.main}}));export const FormReply=({attributes:e,label:o,disabled:i,selected:t,onSelect:d})=>r(a,{type:"button",disabled:i,"aria-pressed":t,onClick:()=>d([e.value,o].find(Boolean)??""),children:o});
1
+ import{jsx as r}from"react/jsx-runtime";import{alpha as o,styled as e,useThemeProps as i}from"@mui/material";let t="PhxAssistantFormReply",a=e("button",{name:t,slot:"root"})(({theme:{palette:r,spacing:e,typography:i}})=>({...i.body2,background:r.background.paper,border:`1px solid ${r.divider}`,borderRadius:"calc(infinity * 1px)",color:r.text.primary,cursor:"pointer",margin:0,paddingBlock:e(.25),paddingInline:e(1.25),textAlign:"start","&:hover:not(:disabled)":{background:r.action.hover},"&:focus-visible":{outline:`2px solid ${r.primary.main}`,outlineOffset:1},"&:disabled":{color:r.text.disabled,cursor:"default"},'&[aria-pressed="true"]':{background:o(r.primary.main,r.action.selectedOpacity),borderColor:r.primary.main}})),n={};export const FormReply=({attributes:o,label:e,disabled:d,selected:l,onSelect:s})=>{let{slots:p={},slotProps:c={}}=i({props:n,name:t});return r(p.root??a,{...c.root,type:"button",disabled:d,"aria-pressed":l,onClick:()=>s([o.value,e].find(Boolean)??""),children:e})};
@@ -1,5 +1,52 @@
1
+ import type { ComponentsOverrides, InputBaseProps } from '@mui/material';
2
+ import { type ElementType, type LabelHTMLAttributes } from 'react';
3
+ import type { ValueOf } from '@salsita-ai/common/utils';
1
4
  import type { AssistantBuiltInFormElementAttributes } from '#package/domain';
2
5
  import type { FormInputProps } from './form-element-props.js';
6
+ declare const MuiComponentName: 'PhxAssistantFormText';
7
+ declare module '@mui/material/styles' {
8
+ interface ComponentNameToClassKey {
9
+ [MuiComponentName]: FormTextSlots;
10
+ }
11
+ interface ComponentsPropsList {
12
+ [MuiComponentName]: ThemeableAssistantFormTextProps;
13
+ }
14
+ interface Components {
15
+ [MuiComponentName]?: {
16
+ defaultProps?: ComponentsPropsList[typeof MuiComponentName];
17
+ styleOverrides?: ComponentsOverrides<Theme>[typeof MuiComponentName];
18
+ };
19
+ }
20
+ }
21
+ declare const Slots: {
22
+ readonly Root: 'root';
23
+ readonly Input: 'input';
24
+ };
25
+ type FormTextSlots = ValueOf<typeof Slots>;
26
+ /**
27
+ * The slots of a form `text`.
28
+ *
29
+ * Read from the theme only: the component takes exactly the props of its form element.
30
+ */
31
+ export interface ThemeableAssistantFormTextProps {
32
+ /**
33
+ * The components used for each slot.
34
+ *
35
+ * - `root` — The field with its label (`label`).
36
+ * - `input` — The text input (`InputBase`).
37
+ */
38
+ readonly slots?: Partial<Record<FormTextSlots, ElementType>>;
39
+ /**
40
+ * Props applied to each slot component.
41
+ *
42
+ * - `root` — Props for the field.
43
+ * - `input` — Props for the input.
44
+ */
45
+ readonly slotProps?: Partial<{
46
+ readonly [Slots.Root]: LabelHTMLAttributes<HTMLLabelElement>;
47
+ readonly [Slots.Input]: InputBaseProps;
48
+ }>;
49
+ }
3
50
  type FormTextProps = FormInputProps<string, AssistantBuiltInFormElementAttributes<'text'>>;
4
51
  /** A `text`: a single line the user types, with its label above it. */
5
52
  export declare const FormText: ({ attributes: { value, placeholder }, label, disabled, state, onChange }: FormTextProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- import{jsx as e,jsxs as r}from"react/jsx-runtime";import{InputBase as t,styled as o}from"@mui/material";import{useCallback as i,useEffect as a}from"react";import{AssistantPanelName as d}from"../theme.js";let m=o("label",{name:d,slot:"formText"})(({theme:{palette:e,spacing:r,typography:t}})=>({alignSelf:"stretch",color:e.text.secondary,display:"grid",gap:r(.5),...t.caption})),l=e=>""===e.trim()?void 0:e.trim(),n=o(t,{name:d,slot:"formTextInput"})(({theme:{palette:e,spacing:r,typography:t}})=>({...t.body2,border:`1px solid ${e.divider}`,borderRadius:12,color:e.text.primary,paddingBlock:r(.75),paddingInline:r(1.5),"&.Mui-focused":{borderColor:e.primary.main},"& .MuiInputBase-input":{padding:0}}));export const FormText=({attributes:{value:t,placeholder:o},label:d,disabled:s,state:p,onChange:c})=>(a(()=>{void 0===p&&void 0!==t&&""!==t&&c(t,l(t))},[p,t,c]),r(m,{children:[d,e(n,{value:p??t??"",placeholder:o,disabled:s,onChange:i(e=>{let r=e.target.value;c(r,l(r))},[c])})]}));
1
+ import{jsx as t,jsxs as r}from"react/jsx-runtime";import{InputBase as e,styled as o,useThemeProps as i}from"@mui/material";import{useCallback as a,useEffect as d}from"react";let l="PhxAssistantFormText",n=o("label",{name:l,slot:"root"})(({theme:{palette:t,spacing:r,typography:e}})=>({alignSelf:"stretch",color:t.text.secondary,display:"grid",gap:r(.5),...e.caption})),s=t=>""===t.trim()?void 0:t.trim(),m=o(e,{name:l,slot:"input"})(({theme:{palette:t,spacing:r,typography:e}})=>({...e.body2,border:`1px solid ${t.divider}`,borderRadius:12,color:t.text.primary,paddingBlock:r(.75),paddingInline:r(1.5),"&.Mui-focused":{borderColor:t.primary.main},"& .MuiInputBase-input":{padding:0}})),p={};export const FormText=({attributes:{value:e,placeholder:o},label:u,disabled:c,state:x,onChange:g})=>{let{slots:b={},slotProps:h={}}=i({props:p,name:l});d(()=>{void 0===x&&void 0!==e&&""!==e&&g(e,s(e))},[x,e,g]);let v=a(t=>{let r=t.target.value;g(r,s(r))},[g]),f=b.root??n,y=b.input??m;return r(f,{...h.root,children:[u,t(y,{placeholder:o,...h.input,value:x??e??"",disabled:c,onChange:v})]})};
@@ -0,0 +1,72 @@
1
+ import type { ComponentsOverrides } from '@mui/material';
2
+ import { type ButtonHTMLAttributes, type ElementType, type HTMLAttributes, type ImgHTMLAttributes } from 'react';
3
+ import type { ValueOf } from '@salsita-ai/common/utils';
4
+ import type { AssistantFormTileAttributes, FormOptionProps } from './form-element-props.js';
5
+ declare const MuiComponentName: 'PhxAssistantFormTile';
6
+ declare module '@mui/material/styles' {
7
+ interface ComponentNameToClassKey {
8
+ [MuiComponentName]: FormTileSlots;
9
+ }
10
+ interface ComponentsPropsList {
11
+ [MuiComponentName]: ThemeableAssistantFormTileProps;
12
+ }
13
+ interface Components {
14
+ [MuiComponentName]?: {
15
+ defaultProps?: ComponentsPropsList[typeof MuiComponentName];
16
+ styleOverrides?: ComponentsOverrides<Theme>[typeof MuiComponentName];
17
+ };
18
+ }
19
+ }
20
+ declare const Slots: {
21
+ readonly Root: 'root';
22
+ readonly Image: 'image';
23
+ readonly Label: 'label';
24
+ readonly Description: 'description';
25
+ readonly Check: 'check';
26
+ };
27
+ type FormTileSlots = ValueOf<typeof Slots>;
28
+ /** The props of a `tile`: its attributes are its `ref` and what the form resolved it to. */
29
+ export type FormTileProps = FormOptionProps<AssistantFormTileAttributes>;
30
+ /**
31
+ * The slots of a form `tile`. Its `root` carries `data-look`, `swatch`, `picture` or `text`, for
32
+ * style overrides of one look.
33
+ *
34
+ * Read from the theme only: the component takes exactly the props of its form element.
35
+ */
36
+ export interface ThemeableAssistantFormTileProps {
37
+ /**
38
+ * The components used for each slot.
39
+ *
40
+ * - `root` — The tile (`button`).
41
+ * - `image` — The picture on top of a picture tile, or covering a swatch (`img`).
42
+ * - `label` — The name of a picture or text tile (`span`).
43
+ * - `description` — The description of a picture or text tile (`span`).
44
+ * - `check` — The check mark of a picked tile (`span`).
45
+ */
46
+ readonly slots?: Partial<Record<FormTileSlots, ElementType>>;
47
+ /**
48
+ * Props applied to each slot component.
49
+ *
50
+ * - `root` — Props for the tile.
51
+ * - `image` — Props for the picture.
52
+ * - `label` — Props for the name.
53
+ * - `description` — Props for the description.
54
+ * - `check` — Props for the check mark.
55
+ */
56
+ readonly slotProps?: Partial<{
57
+ readonly [Slots.Root]: ButtonHTMLAttributes<HTMLButtonElement>;
58
+ readonly [Slots.Image]: ImgHTMLAttributes<HTMLImageElement>;
59
+ readonly [Slots.Label]: HTMLAttributes<HTMLSpanElement>;
60
+ readonly [Slots.Description]: HTMLAttributes<HTMLSpanElement>;
61
+ readonly [Slots.Check]: HTMLAttributes<HTMLSpanElement>;
62
+ }>;
63
+ }
64
+ /**
65
+ * A `tile`: a recipe or option shown by what the form resolved its ref to, answering with its
66
+ * name. A swatch is a small square of its color or picture with its name and description in a
67
+ * tooltip; a picture tile shows its picture over its name and description, and a text tile only
68
+ * the texts. It is outlined or ringed, and checked, while it is picked. A picture that fails to
69
+ * load is left out, leaving a swatch its color.
70
+ */
71
+ export declare const FormTile: ({ attributes, disabled, selected, onSelect }: FormTileProps) => import("react/jsx-runtime").JSX.Element;
72
+ export {};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as o}from"react/jsx-runtime";import{Tooltip as t,styled as a,useThemeProps as i}from"@mui/material";import{useCallback as r,useState as n}from"react";import{useResourceUrl as l}from"#package/react-sdk";import{PhxIcon as d}from"#package/ui-sdk";let s="PhxAssistantFormTile",c=a("button",{name:s,slot:"root"})(({theme:{palette:e,shape:o,spacing:t}})=>({border:`1px solid ${e.divider}`,borderRadius:o.borderRadius,cursor:"pointer",font:"inherit",margin:0,position:"relative","&:focus-visible":{outline:`2px solid ${e.primary.main}`,outlineOffset:1},"&:disabled":{cursor:"default"},'&[data-look="picture"], &[data-look="text"]':{background:e.background.paper,color:e.text.primary,display:"grid",gridTemplateRows:"subgrid",padding:t(.75),rowGap:0,textAlign:"start","&:hover:not(:disabled)":{background:e.action.hover},"&:disabled":{color:e.text.disabled},'&[aria-pressed="true"]':{borderColor:e.primary.main,boxShadow:`inset 0 0 0 1px ${e.primary.main}`}},'&[data-look="picture"]':{gridRow:"span 3"},'&[data-look="text"]':{gridRow:"span 2"},'&[data-look="swatch"]':{background:e.action.hover,blockSize:36,flex:"none",inlineSize:36,overflow:"hidden",padding:0,"&:focus-visible":{outlineOffset:3},"&:disabled":{opacity:e.action.disabledOpacity},'&[aria-pressed="true"]':{boxShadow:`0 0 0 2px ${e.background.paper}, 0 0 0 4px ${e.primary.main}`}}})),p=a("img",{name:s,slot:"image"})(({theme:{shape:e,spacing:o}})=>({display:"block",inlineSize:"100%",'[data-look="picture"] > &':{aspectRatio:"4 / 3",borderRadius:e.borderRadius,gridRow:1,marginBlockEnd:o(.75),objectFit:"contain"},'[data-look="swatch"] > &':{blockSize:"100%",objectFit:"cover"}})),m=a("span",{name:s,slot:"label"})(({theme:{typography:e}})=>({...e.body2,fontWeight:e.fontWeightMedium,'[data-look="picture"] > &':{gridRow:2}})),u=a("span",{name:s,slot:"description"})(({theme:{palette:e,spacing:o,typography:t}})=>({...t.caption,color:e.text.secondary,marginBlockStart:o(.25),'[data-look="picture"] > &':{gridRow:3}})),b=a("span",{name:s,slot:"check"})(({theme:{palette:e,spacing:o}})=>({alignItems:"center",background:e.primary.main,borderRadius:"50%",color:e.primary.contrastText,display:"flex",fontSize:14,justifyContent:"center",padding:2,position:"absolute",'[data-look="picture"] > &, [data-look="text"] > &':{insetBlockStart:o(.5),insetInlineEnd:o(.5)},'[data-look="swatch"] > &':{inset:"50% auto auto 50%",transform:"translate(-50%, -50%)"}})),k=a("span")({display:"inline-flex"}),g={};export const FormTile=({attributes:a,disabled:h,selected:x,onSelect:f})=>{let{look:y,name:w,description:R,imageUrl:v,color:S}=a,{getResourceUrl:$}=l(),z=null==v||"text"===y?void 0:$(v),[j,C]=n(),{slots:F={},slotProps:T={}}=i({props:g,name:s}),B=r(()=>{C(z)},[z]),E=F.root??c,O=F.image??p,A=F.label??m,I=F.description??u,W=F.check??b,G="swatch"===y,M=null==R?w:`${w}, ${R}`,P=o(E,{...T.root,type:"button","data-look":y,"aria-label":G?M:void 0,disabled:h,"aria-pressed":x,onClick:()=>f(w),style:G&&null!=S?{...T.root?.style,background:S}:T.root?.style,children:[null!=z&&z!==j&&e(O,{loading:"lazy",...T.image,src:z,alt:"",onError:B}),!G&&e(A,{...T.label,children:w}),!G&&null!=R&&e(I,{...T.description,children:R}),x&&e(W,{"aria-hidden":!0,...T.check,children:e(d,{name:"Check",fontSize:"inherit"})})]});return G?e(t,{title:null==R?w:`${w} \xb7 ${R}`,placement:"top",describeChild:!0,children:e(k,{children:P})}):P};
@@ -7,6 +7,33 @@ export interface FormContainerProps<ATTRIBUTES = FormElementAttributes> {
7
7
  readonly label?: string;
8
8
  readonly disabled: boolean;
9
9
  readonly children: ReactNode;
10
+ /**
11
+ * The same children, split where their look changes: each entry is a run of consecutive children
12
+ * that look alike, such as swatches, picture tiles, text tiles or replies, in the model's order.
13
+ * A container that lays its options out in rows renders one row per entry.
14
+ */
15
+ readonly rows: readonly ReactNode[];
16
+ }
17
+ /**
18
+ * How a `tile` looks, picked from what it names: a `swatch` for an option of a material swatch, a
19
+ * `picture` for anything else with a picture, and `text` for the rest.
20
+ */
21
+ export type AssistantFormTileLook = 'swatch' | 'picture' | 'text';
22
+ /**
23
+ * What a `tile` shows of the recipe or option its `ref` names, read from the session's manifest on
24
+ * the current configuration, texts in the current language. `description` is the one the model
25
+ * wrote on the tile when it wrote one, or else the recipe's or option's own.
26
+ */
27
+ export interface AssistantFormTileData {
28
+ readonly look: AssistantFormTileLook;
29
+ readonly name: string;
30
+ readonly description: string | null;
31
+ readonly imageUrl: string | null;
32
+ readonly color: string | null;
33
+ }
34
+ /** The attributes the component of a `tile` gets: its `ref`, and what the form resolved it to. */
35
+ export interface AssistantFormTileAttributes extends AssistantFormTileData {
36
+ readonly ref: string;
10
37
  }
11
38
  /**
12
39
  * Props of an option. It reports what it answers with when the user picks it, as an input reports
@@ -1,9 +1,8 @@
1
- export type { FormContainerProps, FormElementAttributes, FormInputProps, FormOptionProps, } from './form-element-props.js';
2
- export { FormCard } from './FormCard.js';
3
- export { FormConfirm } from './FormConfirm.js';
4
- export { FormGroup } from './FormGroup.js';
5
- export { FormOptions } from './FormOptions.js';
6
- export { FormNumber } from './FormNumber.js';
7
- export { FormReply } from './FormReply.js';
8
- export { FormSwatch } from './FormSwatch.js';
9
- export { FormText } from './FormText.js';
1
+ export type { AssistantFormTileAttributes, AssistantFormTileData, AssistantFormTileLook, FormContainerProps, FormElementAttributes, FormInputProps, FormOptionProps, } from './form-element-props.js';
2
+ export { FormConfirm, type ThemeableAssistantFormConfirmProps } from './FormConfirm.js';
3
+ export { FormGroup, type ThemeableAssistantFormGroupProps } from './FormGroup.js';
4
+ export { FormOptions, type ThemeableAssistantFormOptionsProps } from './FormOptions.js';
5
+ export { FormNumber, type ThemeableAssistantFormNumberProps } from './FormNumber.js';
6
+ export { FormReply, type ThemeableAssistantFormReplyProps } from './FormReply.js';
7
+ export { FormText, type ThemeableAssistantFormTextProps } from './FormText.js';
8
+ export { FormTile, type FormTileProps, type ThemeableAssistantFormTileProps } from './FormTile.js';
@@ -1 +1 @@
1
- export{FormCard}from"./FormCard.js";export{FormConfirm}from"./FormConfirm.js";export{FormGroup}from"./FormGroup.js";export{FormOptions}from"./FormOptions.js";export{FormNumber}from"./FormNumber.js";export{FormReply}from"./FormReply.js";export{FormSwatch}from"./FormSwatch.js";export{FormText}from"./FormText.js";
1
+ export{FormConfirm}from"./FormConfirm.js";export{FormGroup}from"./FormGroup.js";export{FormOptions}from"./FormOptions.js";export{FormNumber}from"./FormNumber.js";export{FormReply}from"./FormReply.js";export{FormText}from"./FormText.js";export{FormTile}from"./FormTile.js";
@@ -0,0 +1,66 @@
1
+ import type { ButtonProps, ComponentsOverrides } from '@mui/material';
2
+ import { type ElementType, type HTMLAttributes, type ImgHTMLAttributes } from 'react';
3
+ declare const MuiComponentName: 'PhxAssistantImageView';
4
+ declare module '@mui/material/styles' {
5
+ interface ComponentNameToClassKey {
6
+ [MuiComponentName]: 'root' | 'header' | 'title' | 'actions' | 'annotateButton' | 'closeButton' | 'image';
7
+ }
8
+ interface ComponentsPropsList {
9
+ [MuiComponentName]: ThemeableAssistantImageViewProps;
10
+ }
11
+ interface Components {
12
+ [MuiComponentName]?: {
13
+ defaultProps?: ComponentsPropsList[typeof MuiComponentName];
14
+ styleOverrides?: ComponentsOverrides<Theme>[typeof MuiComponentName];
15
+ };
16
+ }
17
+ }
18
+ /** CSS px; a safe area narrower or lower than this is too small for the view, which then covers everything. */
19
+ export declare const MIN_IMAGE_VIEW_SIZE = 240;
20
+ /** The slots of the larger view of an image of the chat beside the panel. Read from the theme only. */
21
+ export interface ThemeableAssistantImageViewProps {
22
+ /**
23
+ * The components used for each slot.
24
+ *
25
+ * - `root` — The view, placed inside the layout's safe area (`div`).
26
+ * - `header` — The row with the title and the close button (`div`).
27
+ * - `title` — The image's title, when it has one (`h2`).
28
+ * - `actions` — The buttons of the header (`div`).
29
+ * - `annotateButton` — The button that opens the annotation editor on the image (`Button`).
30
+ * - `closeButton` — The button that closes the view (`Button`).
31
+ * - `image` — The picture, contain-fitted (`img`).
32
+ */
33
+ readonly slots?: Partial<Record<'root' | 'header' | 'title' | 'actions' | 'annotateButton' | 'closeButton' | 'image', ElementType>>;
34
+ /**
35
+ * Props applied to each slot component.
36
+ *
37
+ * - `root` — Props for the view.
38
+ * - `header` — Props for the header row.
39
+ * - `title` — Props for the title.
40
+ * - `actions` — Props for the buttons' row.
41
+ * - `annotateButton` — Props for the annotate button.
42
+ * - `closeButton` — Props for the close button.
43
+ * - `image` — Props for the picture.
44
+ */
45
+ readonly slotProps?: Partial<{
46
+ readonly root: HTMLAttributes<HTMLDivElement>;
47
+ readonly header: HTMLAttributes<HTMLDivElement>;
48
+ readonly title: HTMLAttributes<HTMLHeadingElement>;
49
+ readonly actions: HTMLAttributes<HTMLDivElement>;
50
+ readonly annotateButton: ButtonProps;
51
+ readonly closeButton: ButtonProps;
52
+ readonly image: ImgHTMLAttributes<HTMLImageElement>;
53
+ }>;
54
+ }
55
+ /**
56
+ * The image of the chat the user opened, larger, rendered by the configurator page over whichever layout
57
+ * it shows: a drawing of a reply, a project picture of a reply or an image of a sent message. It sits
58
+ * inside the layout's safe area, beside the assistant panel, and makes nothing inert, so the user can go
59
+ * on writing; where that area is too small, as on a phone, it covers the whole configurator until it is
60
+ * closed. Close or Escape closes it. Annotate closes it too and opens the annotation editor on the image,
61
+ * whose result is attached to the message being written; it is disabled while that message is full,
62
+ * another annotation shows or the assistant banned the user, and an image that cannot be read offers none.
63
+ * Nothing shows while no image is open.
64
+ */
65
+ export declare const ImageView: () => import("react/jsx-runtime").JSX.Element | null;
66
+ export {};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{Trans as i}from"@lingui/react";import{Button as a,Tooltip as n,keyframes as o,styled as s,useTheme as l,useThemeProps as r}from"@mui/material";import{useEffect as m,useMemo as d,useState as c}from"react";import{useApplicationRuntimeSelector as u,useEagerObservableSelector as g,useEagerObservableValue as p,useLocalizable as h,useResponsiveState as v}from"#package/react-sdk";import{MAX_COMPOSER_ATTACHMENTS as w,useConfigurator as f}from"../../../application-runtime/index.js";import{useDrawingUrl as b}from"../drawing/index.js";import{useOnUnmount as x}from"../use-on-unmount.js";import{useImageBlob as k}from"./use-image-blob.js";let y="PhxAssistantImageView";export const MIN_IMAGE_VIEW_SIZE=240;let I={id:"sdk.assistant.image.view.drawing",message:"Drawing"},$={id:"sdk.assistant.image.view.image",message:"Image"},S={id:"sdk.assistant.composer.attachment.limit",message:"You can attach up to {max} images."},j=o({from:{opacity:0}}),B=s("div")(({theme:{zIndex:e}})=>({inset:0,pointerEvents:"none",position:"absolute",zIndex:e.modal+1})),E=s("div",{name:y,slot:"root"})(({theme:{palette:e,shadows:t,shape:i,spacing:a}})=>({animation:`${j} 200ms ease`,background:e.background.paper,borderRadius:i.borderRadius,boxShadow:t[8],display:"flex",flexDirection:"column",gap:a(1),margin:a(2),padding:a(1.5),pointerEvents:"auto",position:"absolute","@media (prefers-reduced-motion: reduce)":{animation:"none"}})),z=s("div",{name:y,slot:"header"})(({theme:{spacing:e}})=>({alignItems:"center",display:"flex",gap:e(1),justifyContent:"space-between"})),V=s("h2",{name:y,slot:"title"})(({theme:{typography:e}})=>({...e.subtitle2,margin:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"})),C=s("div",{name:y,slot:"actions"})(({theme:{spacing:e}})=>({display:"flex",flexShrink:0,gap:e(.5),marginInlineStart:"auto"})),R=s(a,{name:y,slot:"annotateButton"})({}),A=s(a,{name:y,slot:"closeButton"})({}),O=s("img",{name:y,slot:"image"})({blockSize:"100%",display:"block",flex:1,inlineSize:"100%",minBlockSize:0,objectFit:"contain"}),L={},M=({view:a,close:o,label:s,src:d,image:b})=>{var k;let{title:I}=a,{assistantSystem:$}=f(),{canvasPadding:j,sceneSafeArea:M}=v(),[_,D]=c(null),[F,P]=c(),G=h(s),{slots:N={},slotProps:T={}}=r({props:L,name:y}),W=h({...S,values:{max:w}}),Y=p($.hasFreeAttachmentSlot$),Z=null!==p($.annotationOverlay$),q=g($.chat$,e=>e.isLocked,[]),H=u(()=>$.getSessionManifest()?.features.annotations===!0),J=H&&Y&&!Z&&!q&&null!=b,{palette:K}=l();x(()=>{$.imageView$.value===a&&o()}),m(()=>{if(null===_)return;let e=new ResizeObserver(([e])=>{void 0!==e&&P({width:e.contentRect.width,height:e.contentRect.height})});return e.observe(_),()=>e.disconnect()},[_]),m(()=>{let e=e=>{"Escape"!==e.key||e.isComposing||e.defaultPrevented||null!==$.annotationOverlay$.value||o()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[$,o]);let Q=N.root??E,U=N.header??z,X=N.title??V,ee=N.actions??C,et=N.annotateButton??R,ei=N.closeButton??A,ea=N.image??O;return e(B,{ref:D,children:t(Q,{...T.root,role:"dialog","aria-label":I??G,style:{...T.root?.style,inset:(k=M??j,void 0!==F&&F.width-k.left-k.right>=240&&F.height-k.top-k.bottom>=240?`${k.top}px ${k.right}px ${k.bottom}px ${k.left}px`:0)},children:[t(U,{...T.header,children:[void 0!==I&&e(X,{...T.title,children:I}),t(ee,{...T.actions,children:[null!==b&&H&&e(n,{title:Y?"":W,children:e("span",{children:e(et,{size:"small",...T.annotateButton,disabled:!J,onClick:()=>{null!=b&&(o(),$.annotate({type:"image",image:b,background:K.background.default}))},children:e(i,{id:"sdk.assistant.image.view.annotate",message:"Annotate"})})})}),e(ei,{size:"small",...T.closeButton,onClick:o,children:e(i,{id:"sdk.assistant.image.view.close",message:"Close"})})]})]}),e(ea,{...T.image,src:d,alt:I??""})]})})},_=({view:t,close:i})=>{let{source:a}=t;return e(M,{view:t,close:i,label:I,src:b(a),image:d(()=>new Blob([a],{type:"image/svg+xml"}),[a])})},D=({view:t,close:i})=>e(M,{view:t,close:i,label:$,src:t.url,image:k(t.url)});export const ImageView=()=>{let{assistantSystem:t}=f(),i=p(t.imageView$),a=t.closeImageView;return null===i?null:"svg"===i.kind?e(_,{view:i,close:a}):e(D,{view:i,close:a})};
@@ -0,0 +1 @@
1
+ export { ImageView, type ThemeableAssistantImageViewProps } from './ImageView.js';
@@ -0,0 +1 @@
1
+ export{ImageView}from"./ImageView.js";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The image at `url` read as a blob, for the annotation editor: `undefined` while it is read, `null` when
3
+ * it cannot be. Read as a blob, a picture of another origin draws onto the editor's canvas without
4
+ * tainting it; one whose server does not let this page read it, without CORS headers, cannot be read.
5
+ * An object URL, such as an image of a sent message, is read from memory.
6
+ */
7
+ export declare const useImageBlob: (url: string) => Blob | null | undefined;
@@ -0,0 +1 @@
1
+ import{useEffect as t,useState as e}from"react";export const useImageBlob=l=>{let[r,o]=e();return t(()=>{let t=new AbortController;return fetch(l,{signal:t.signal}).then(t=>t.ok?t.blob():null).catch(()=>null).then(e=>{t.signal.aborted||o({url:l,image:e})}),()=>t.abort()},[l]),r?.url===l?r.image:void 0};
@@ -1,15 +1,26 @@
1
- export { AssistantPanel, ASSISTANT_PANEL_SLOT } from './AssistantPanel.js';
2
- export { AnnotationHostContext, AnnotationOverlay } from './annotation/index.js';
1
+ export { AssistantPanel, ASSISTANT_PANEL_SLOT, type ThemeableAssistantPanelProps } from './AssistantPanel.js';
2
+ export type { ThemeableAssistantPanelHeaderProps } from './panel/index.js';
3
+ export type { ThemeableAssistantComposerProps } from './AssistantComposer.js';
4
+ export { AnnotationOverlay, type ThemeableAssistantAnnotationBadgeProps, type ThemeableAssistantAnnotationCommentProps, type ThemeableAssistantAnnotationProps, } from './annotation/index.js';
5
+ export type { ThemeableAssistantAlertProps } from './alert/index.js';
6
+ export type { ThemeableAssistantMessageImagesProps } from './attachments/index.js';
7
+ export type { ThemeableAssistantDrawingProps } from './drawing/index.js';
8
+ export { ImageView, type ThemeableAssistantImageViewProps } from './image-view/index.js';
9
+ export type { ThemeableAssistantReferenceLinkProps } from './reference-link/index.js';
10
+ export type { ThemeableAssistantImageProps } from './resource-image/index.js';
11
+ export type { ThemeableAssistantScreenshotsProps } from './screenshots/index.js';
12
+ export type { ThemeableAssistantThreadProps } from './AssistantThread.js';
3
13
  export { useIsAssistantPanelOpen } from './use-is-assistant-panel-open.js';
4
- export type { AssistantFormElementRoleProps, AssistantFormElementType, CreateAssistantFormElement, } from './form/index.js';
14
+ export type { AssistantBuiltInFormSlots, AssistantFormElementRoleProps, AssistantFormElementType, CreateAssistantFormElement, ThemeableAssistantFormProps, } from './form/index.js';
5
15
  export { createAssistantFormElementFactory } from './form/index.js';
6
- export type { FormContainerProps, FormInputProps, FormOptionProps } from './form-elements/index.js';
7
- export { useAssistantThread, type UseAssistantThread, type UseAssistantThreadResult } from './use-assistant-thread.js';
16
+ export type { AssistantFormTileAttributes, AssistantFormTileData, AssistantFormTileLook, FormContainerProps, FormInputProps, FormOptionProps, ThemeableAssistantFormConfirmProps, ThemeableAssistantFormGroupProps, ThemeableAssistantFormNumberProps, ThemeableAssistantFormOptionsProps, ThemeableAssistantFormReplyProps, ThemeableAssistantFormTextProps, ThemeableAssistantFormTileProps, } from './form-elements/index.js';
17
+ export { type AssistantThreadStarter, useAssistantThread, type UseAssistantThread, type UseAssistantThreadResult, } from './use-assistant-thread.js';
8
18
  export { useAssistantComposer, type AssistantComposerAttachment, type AssistantComposerNotice, type UseAssistantComposer, type UseAssistantComposerResult, } from './use-assistant-composer.js';
9
- export { AssistantSeparator, AssistantThreadItemView, type AssistantThreadItemViewProps, AssistantUserMessage, type AssistantUserMessageProps, } from './AssistantThreadItemView.js';
10
- export { AssistantMarkdown, type AssistantMarkdownProps } from './AssistantMarkdown.js';
11
- export { AssistantToolChips, type AssistantToolChipsProps } from './AssistantChips.js';
12
- export { EntityLinkSelectionProvider, type EntityLinkSelectionProviderProps, type EntityLinkSelection, useCreateEntityLinkSelection, } from './entity-link/index.js';
19
+ export { AssistantSeparator, type AssistantThreadItemSlots, AssistantThreadItemView, type AssistantThreadItemViewProps, AssistantUserMessage, type AssistantUserMessageProps, type ThemeableAssistantSeparatorProps, type ThemeableAssistantUserMessageProps, } from './AssistantThreadItemView.js';
20
+ export { AssistantMarkdown, type AssistantMarkdownProps, type ThemeableAssistantMarkdownProps, } from './AssistantMarkdown.js';
21
+ export { AssistantToolChips, type AssistantToolChipsProps, type ThemeableAssistantToolChipsProps, } from './AssistantChips.js';
22
+ export { type ThemeableAssistantEntityLinkProps, EntityLinkSelectionProvider, type EntityLinkSelectionProviderProps, type EntityLinkSelection, useCreateEntityLinkSelection, } from './entity-link/index.js';
13
23
  export type { AssistantFailure, AssistantFailureKind } from './assistant-failure.js';
14
- export type { AssistantFormsVisibility, AssistantThreadItem, AssistantToolItem } from './thread-items.js';
24
+ export type { AssistantFormsVisibility, AssistantThreadItem, AssistantToolItem, AssistantUserVoice, } from './thread-items.js';
25
+ export type { AssistantRecording, AssistantRecordingStatus, ThemeableAssistantReplyPlayButtonProps, } from './voice/index.js';
15
26
  export type { AssistantToolChip, AssistantToolChipLabel, AssistantToolChipState } from './tool-chip.js';
@@ -1 +1 @@
1
- export{AssistantPanel,ASSISTANT_PANEL_SLOT}from"./AssistantPanel.js";export{AnnotationHostContext,AnnotationOverlay}from"./annotation/index.js";export{useIsAssistantPanelOpen}from"./use-is-assistant-panel-open.js";export{createAssistantFormElementFactory}from"./form/index.js";export{useAssistantThread}from"./use-assistant-thread.js";export{useAssistantComposer}from"./use-assistant-composer.js";export{AssistantSeparator,AssistantThreadItemView,AssistantUserMessage}from"./AssistantThreadItemView.js";export{AssistantMarkdown}from"./AssistantMarkdown.js";export{AssistantToolChips}from"./AssistantChips.js";export{EntityLinkSelectionProvider,useCreateEntityLinkSelection}from"./entity-link/index.js";
1
+ export{AssistantPanel,ASSISTANT_PANEL_SLOT}from"./AssistantPanel.js";export{AnnotationOverlay}from"./annotation/index.js";export{ImageView}from"./image-view/index.js";export{useIsAssistantPanelOpen}from"./use-is-assistant-panel-open.js";export{createAssistantFormElementFactory}from"./form/index.js";export{useAssistantThread}from"./use-assistant-thread.js";export{useAssistantComposer}from"./use-assistant-composer.js";export{AssistantSeparator,AssistantThreadItemView,AssistantUserMessage}from"./AssistantThreadItemView.js";export{AssistantMarkdown}from"./AssistantMarkdown.js";export{AssistantToolChips}from"./AssistantChips.js";export{EntityLinkSelectionProvider,useCreateEntityLinkSelection}from"./entity-link/index.js";
@@ -0,0 +1,57 @@
1
+ import type { ComponentsOverrides, IconButtonProps, TypographyProps } from '@mui/material';
2
+ import { type ElementType, type HTMLAttributes } from 'react';
3
+ import type { ValueOf } from '@salsita-ai/common/utils';
4
+ declare const MuiComponentName: 'PhxAssistantPanelHeader';
5
+ declare module '@mui/material/styles' {
6
+ interface ComponentNameToClassKey {
7
+ [MuiComponentName]: AssistantPanelHeaderSlots;
8
+ }
9
+ interface ComponentsPropsList {
10
+ [MuiComponentName]: ThemeableAssistantPanelHeaderProps;
11
+ }
12
+ interface Components {
13
+ [MuiComponentName]?: {
14
+ defaultProps?: ComponentsPropsList[typeof MuiComponentName];
15
+ styleOverrides?: ComponentsOverrides<Theme>[typeof MuiComponentName];
16
+ };
17
+ }
18
+ }
19
+ declare const Slots: {
20
+ readonly Root: 'root';
21
+ readonly Title: 'title';
22
+ readonly MuteButton: 'muteButton';
23
+ readonly CloseButton: 'closeButton';
24
+ };
25
+ type AssistantPanelHeaderSlots = ValueOf<typeof Slots>;
26
+ export interface ThemeableAssistantPanelHeaderProps {
27
+ /**
28
+ * The components used for each slot inside the panel's header.
29
+ *
30
+ * - `root` — The header bar (`header`).
31
+ * - `title` — The panel's title (`Typography`).
32
+ * - `muteButton` — The control that mutes the replies that read themselves aloud after a voice message, shown
33
+ * while voice is on (`IconButton`).
34
+ * - `closeButton` — The control that closes the panel (`IconButton`).
35
+ */
36
+ readonly slots?: Partial<Record<AssistantPanelHeaderSlots, ElementType>>;
37
+ /**
38
+ * Props applied to each slot component.
39
+ *
40
+ * - `root` — Props for the header bar.
41
+ * - `title` — Props for the title.
42
+ * - `muteButton` — Props for the mute control.
43
+ * - `closeButton` — Props for the close control.
44
+ */
45
+ readonly slotProps?: Partial<{
46
+ readonly [Slots.Root]: HTMLAttributes<HTMLElement>;
47
+ readonly [Slots.Title]: TypographyProps;
48
+ readonly [Slots.MuteButton]: IconButtonProps;
49
+ readonly [Slots.CloseButton]: IconButtonProps;
50
+ }>;
51
+ }
52
+ /**
53
+ * The header of the built-in assistant panel: the panel's title, while voice is on a control that mutes the replies
54
+ * that read themselves aloud, and a control that closes the panel.
55
+ */
56
+ export declare const AssistantPanelHeader: (inProps: ThemeableAssistantPanelHeaderProps) => import("react/jsx-runtime").JSX.Element;
57
+ export {};
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{IconButton as a,Tooltip as s,Typography as n,styled as i,useThemeProps as l}from"@mui/material";import{useCallback as o}from"react";import{useEagerObservableValue as r,useLocalizable as m}from"#package/react-sdk";import{PhxIcon as p}from"#package/ui-sdk";import{useConfigurator as d}from"../../../application-runtime/index.js";let u="PhxAssistantPanelHeader",c={id:"sdk.assistant.panel.title",message:"AI assistant"},k={id:"sdk.assistant.panel.close.label",message:"Close assistant"},h={id:"sdk.assistant.panel.mute.label",message:"Mute spoken replies"},g={id:"sdk.assistant.panel.unmute.label",message:"Unmute spoken replies"},B={Root:i("header",{name:u,slot:"root"})(({theme:{palette:e,spacing:t}})=>({alignItems:"center",borderBlockEnd:`1px solid ${e.divider}`,display:"flex",gap:t(1),justifyContent:"space-between",paddingBlock:t(1),paddingInline:`var(--phx-sidebar-padding, ${t(2)}) ${t(1)}`})),Title:i(n,{name:u,slot:"title"})({fontWeight:600,marginInlineEnd:"auto"}),MuteButton:i(a,{name:u,slot:"muteButton"})({}),CloseButton:i(a,{name:u,slot:"closeButton"})({})};export const AssistantPanelHeader=a=>{let{slots:n={},slotProps:i={}}=l({props:a,name:u}),{assistantSystem:b}=d(),f=m(c),x=m(k),{isVoiceEnabled:C}=r(b.chat$),j=r(b.muted$),$=m(j?g:h),I=o(()=>{b.setOpen(!1)},[b]),M=o(()=>{b.setMuted(!j)},[b,j]),v=n.root??B.Root,A=n.title??B.Title,H=n.muteButton??B.MuteButton,P=n.closeButton??B.CloseButton;return t(v,{...i.root,children:[e(A,{variant:"subtitle1",component:"h2",...i.title,children:f}),C&&e(s,{title:$,placement:"top",children:e(H,{size:"small","aria-label":$,...i.muteButton,onClick:M,children:e(p,{name:j?"SpeakerSlash":"SpeakerHigh"})})}),e(s,{title:x,placement:"top",children:e(P,{size:"small","aria-label":x,...i.closeButton,onClick:I,children:e(p,{name:"X"})})})]})};
@@ -0,0 +1 @@
1
+ export { AssistantPanelHeader, type ThemeableAssistantPanelHeaderProps } from './AssistantPanelHeader.js';
@@ -0,0 +1 @@
1
+ export{AssistantPanelHeader}from"./AssistantPanelHeader.js";
@@ -1,5 +1,47 @@
1
- import { type ReactNode } from 'react';
1
+ import type { ComponentsOverrides } from '@mui/material';
2
+ import { type ElementType, type HTMLAttributes, type ReactNode } from 'react';
3
+ import { type ValueOf } from '@salsita-ai/common/utils';
2
4
  import type { AssistantReferenceTarget } from './assistant-link-target.js';
5
+ declare const MuiComponentName: 'PhxAssistantReferenceLink';
6
+ declare module '@mui/material/styles' {
7
+ interface ComponentNameToClassKey {
8
+ [MuiComponentName]: ReferenceLinkSlots;
9
+ }
10
+ interface ComponentsPropsList {
11
+ [MuiComponentName]: ThemeableAssistantReferenceLinkProps;
12
+ }
13
+ interface Components {
14
+ [MuiComponentName]?: {
15
+ defaultProps?: ComponentsPropsList[typeof MuiComponentName];
16
+ styleOverrides?: ComponentsOverrides<Theme>[typeof MuiComponentName];
17
+ };
18
+ }
19
+ }
20
+ declare const Slots: {
21
+ readonly Root: 'root';
22
+ readonly Details: 'details';
23
+ };
24
+ type ReferenceLinkSlots = ValueOf<typeof Slots>;
25
+ /** The slots of a link to a recipe or an option in a reply. Read from the theme only. */
26
+ export interface ThemeableAssistantReferenceLinkProps {
27
+ /**
28
+ * The components used for each slot.
29
+ *
30
+ * - `root` — The label of the link (`span`).
31
+ * - `details` — The popover's content: the picture or color, name and description (`span`).
32
+ */
33
+ readonly slots?: Partial<Record<ReferenceLinkSlots, ElementType>>;
34
+ /**
35
+ * Props applied to each slot component.
36
+ *
37
+ * - `root` — Props for the label.
38
+ * - `details` — Props for the popover's content.
39
+ */
40
+ readonly slotProps?: Partial<{
41
+ readonly [Slots.Root]: HTMLAttributes<HTMLSpanElement>;
42
+ readonly [Slots.Details]: HTMLAttributes<HTMLSpanElement>;
43
+ }>;
44
+ }
3
45
  export interface AssistantReferenceLinkProps {
4
46
  readonly target: AssistantReferenceTarget;
5
47
  /** The text the assistant gave the link; the target itself is never shown. */
@@ -1 +1 @@
1
- import{jsx as e,jsxs as r}from"react/jsx-runtime";import{Trans as a}from"@lingui/react";import{styled as i}from"@mui/material";import{memo as t,useCallback as n,useEffect as o,useState as l}from"react";import{isShallowEqual as s}from"@salsita-ai/common/utils";import{useResourceUrl as d}from"#package/react-sdk";import{AssistantPopover as m}from"../popover/index.js";import{AssistantPanelName as c}from"../theme.js";import{assistantReferenceStyles as f}from"./reference-styles.js";import{useAssistantReferenceDetails as p}from"./use-assistant-reference-details.js";let u=i("span",{name:c,slot:"referenceLink"})(f),h=i("span",{name:c,slot:"referenceDetails"})(({theme:{palette:e,shape:r,shadows:a,spacing:i,typography:t}})=>({...t.body2,background:e.background.paper,borderRadius:r.borderRadius,boxShadow:a[4],color:e.text.primary,display:"flex",gap:i(1.5),maxInlineSize:320,padding:i(1.5),'&[data-reference-details="unavailable"]':{color:e.text.secondary}})),b=i("img")(({theme:{shape:e}})=>({alignSelf:"flex-start",blockSize:"auto",borderRadius:e.borderRadius/2,flexShrink:0,inlineSize:64,maxBlockSize:96,objectFit:"contain"})),x=i("span")(({theme:{palette:e,shape:r}})=>({blockSize:32,borderRadius:r.borderRadius/2,boxShadow:`inset 0 0 0 1px ${e.divider}`,flexShrink:0,inlineSize:32})),g=i("span")(({theme:{palette:e,spacing:r}})=>({display:"flex",flexDirection:"column",gap:r(.5),minInlineSize:0,"& > :first-of-type":{fontWeight:600},"& > :not(:first-of-type)":{color:e.text.secondary}})),k=({target:i,onResolve:t,onImageLoad:n})=>{let l=p(i),{getResourceUrl:s}=d(),m=null!=l;if(o(()=>{t(m)},[m,t]),!l)return e(h,{"data-reference-details":"unavailable",children:e(a,{id:"sdk.assistant.reference.unavailable.message",message:"Not available right now"})});let{name:c,description:f,imageUrl:u,color:k}=l;return r(h,{children:[null!=u&&e(b,{src:s(u),alt:"",onLoad:n}),null==u&&null!=k&&e(x,{style:{background:k}}),r(g,{children:[e("span",{children:c}),null!=f&&e("span",{children:f})]})]})};export const AssistantReferenceLink=t(({target:r,children:a})=>{let[i,t]=l(!1),o=n(e=>t(!e),[]);return e(m,{title:a=>e(k,{target:r,onResolve:o,onImageLoad:a}),children:r=>e(u,{...r,"data-reference":i?"muted":void 0,children:a})})},(e,r)=>e.children===r.children&&s(e.target,r.target));
1
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{Trans as a}from"@lingui/react";import{styled as t,useThemeProps as i}from"@mui/material";import{memo as n,useCallback as o,useEffect as l,useState as s}from"react";import{isShallowEqual as d}from"@salsita-ai/common/utils";import{useResourceUrl as m}from"#package/react-sdk";import{AssistantPopover as c}from"../popover/index.js";import{assistantReferenceStyles as p}from"./reference-styles.js";import{useAssistantReferenceDetails as f}from"./use-assistant-reference-details.js";let u="PhxAssistantReferenceLink",h=t("span",{name:u,slot:"root"})(p),x=t("span",{name:u,slot:"details"})(({theme:{palette:e,shape:r,shadows:a,spacing:t,typography:i}})=>({...i.body2,background:e.background.paper,borderRadius:r.borderRadius,boxShadow:a[4],color:e.text.primary,display:"flex",gap:t(1.5),maxInlineSize:320,padding:t(1.5),'&[data-reference-details="unavailable"]':{color:e.text.secondary}})),b=t("img")(({theme:{shape:e}})=>({alignSelf:"flex-start",blockSize:"auto",borderRadius:e.borderRadius/2,flexShrink:0,inlineSize:64,maxBlockSize:96,objectFit:"contain"})),g=t("span")(({theme:{palette:e,shape:r}})=>({blockSize:32,borderRadius:r.borderRadius/2,boxShadow:`inset 0 0 0 1px ${e.divider}`,flexShrink:0,inlineSize:32})),k=t("span")(({theme:{palette:e,spacing:r}})=>({display:"flex",flexDirection:"column",gap:r(.5),minInlineSize:0,"& > :first-of-type":{fontWeight:600},"& > :not(:first-of-type)":{color:e.text.secondary}})),S={},y=({target:t,onResolve:n,onImageLoad:o})=>{let s=f(t),{getResourceUrl:d}=m(),c=null!=s,{slots:p={},slotProps:h={}}=i({props:S,name:u}),y=p.details??x;if(l(()=>{n(c)},[c,n]),!s)return e(y,{...h.details,"data-reference-details":"unavailable",children:e(a,{id:"sdk.assistant.reference.unavailable.message",message:"Not available right now"})});let{name:R,description:v,imageUrl:j,color:z}=s;return r(y,{...h.details,children:[null!=j&&e(b,{src:d(j),alt:"",onLoad:o}),null==j&&null!=z&&e(g,{style:{background:z}}),r(k,{children:[e("span",{children:R}),null!=v&&e("span",{children:v})]})]})};export const AssistantReferenceLink=n(({target:r,children:a})=>{let[t,n]=s(!1),l=o(e=>n(!e),[]),{slots:d={},slotProps:m={}}=i({props:S,name:u}),p=d.root??h;return e(c,{title:a=>e(y,{target:r,onResolve:l,onImageLoad:a}),children:r=>e(p,{...m.root,...r,"data-reference":t?"muted":void 0,children:a})})},(e,r)=>e.children===r.children&&d(e.target,r.target));
@@ -1,8 +1,11 @@
1
- import { type AssistantManifest, type AssistantRecipeContext, type DomainEntity, type DomainState } from '#package/domain';
1
+ import { type AssistantFieldOption, type AssistantManifest, type AssistantRecipeContext, type DomainEntity, type DomainState } from '#package/domain';
2
2
  import type { AssistantReferenceTarget } from './assistant-link-target.js';
3
3
  type AnyDomainState = DomainState<DomainEntity<string>>;
4
+ /** Where what a reference points at comes from: a recipe, or the component an option is read from. */
5
+ export type AssistantReferenceSource = 'recipe' | AssistantFieldOption['source'];
4
6
  /** What the popover of a reference shows of the recipe or option it points at, texts in the current language. */
5
7
  export interface AssistantReferenceDetails {
8
+ readonly source: AssistantReferenceSource;
6
9
  readonly name: string;
7
10
  readonly description: string | null;
8
11
  readonly imageUrl: string | null;
@@ -1 +1 @@
1
- import{match as e}from"ts-pattern";import{findAssistantFieldOptions as i,findAssistantRecipeGroups as t,readAssistantFieldOptions as n,readAssistantRecipeGroup as r}from"#package/domain";let l=["child","replace"];export const readAssistantReferenceDetails=(o,a,d)=>{let u=a.entities.find(e=>e.id===o.entityId);return u?e(o).with({kind:"recipe"},e=>((e,i,n,o)=>{let a=(({entityId:e,groupId:i,key:n},o,a,d)=>{for(let u of l)for(let l of t(d.manifest,u,o)){if(l.groupId!==i)continue;let t=r(u,l,e,a,d)?.recipes.find(e=>e.key===n);if(t)return t}return null})(e,i,n,o);if(!a)return null;let{title:d,description:u,thumbnailUrl:f}=a.item,{resolveLocalizable:m}=o;return{name:m(d),description:void 0===u?null:m(u),imageUrl:void 0===f?null:m(f),color:null}})(e,u.type,a,d)).with({kind:"option"},e=>(({entityId:e,edgeName:t,value:r},l,o,a)=>{let d=i(a.manifest,l).find(e=>e.edgeName===t),u=d?n(d,e,o,a)?.find(e=>String(e.value)===r):void 0;return u?{name:u.name??u.description??String(u.value),description:null==u.name?null:u.description,imageUrl:u.imageUrl,color:u.color}:null})(e,u.type,a,d)).exhaustive():null};
1
+ import{match as e}from"ts-pattern";import{findAssistantFieldOptions as i,findAssistantRecipeGroups as t,readAssistantFieldOptions as n,readAssistantRecipeGroup as r}from"#package/domain";let l=["child","replace"];export const readAssistantReferenceDetails=(o,u,a)=>{let d=u.entities.find(e=>e.id===o.entityId);return d?e(o).with({kind:"recipe"},e=>((e,i,n,o)=>{let u=(({entityId:e,groupId:i,key:n},o,u,a)=>{for(let d of l)for(let l of t(a.manifest,d,o)){if(l.groupId!==i)continue;let t=r(d,l,e,u,a)?.recipes.find(e=>e.key===n);if(t)return t}return null})(e,i,n,o);if(!u)return null;let{title:a,description:d,thumbnailUrl:c}=u.item,{resolveLocalizable:s}=o;return{source:"recipe",name:s(a),description:void 0===d?null:s(d),imageUrl:void 0===c?null:s(c),color:null}})(e,d.type,u,a)).with({kind:"option"},e=>(({entityId:e,edgeName:t,value:r},l,o,u)=>{let a=i(u.manifest,l).find(e=>e.edgeName===t),d=a?n(a,e,o,u)?.find(e=>String(e.value)===r):void 0;return d?{source:d.source,name:d.name??d.description??String(d.value),description:null==d.name?null:d.description,imageUrl:d.imageUrl,color:d.color}:null})(e,d.type,u,a)).exhaustive():null};
@@ -1,3 +1,4 @@
1
- export { AssistantReferenceLink } from './AssistantReferenceLink.js';
2
- export { isAssistantLinkHref, parseAssistantLinkTarget } from './assistant-link-target.js';
1
+ export { AssistantReferenceLink, type ThemeableAssistantReferenceLinkProps } from './AssistantReferenceLink.js';
2
+ export { type AssistantReferenceTarget, isAssistantLinkHref, parseAssistantLinkTarget, } from './assistant-link-target.js';
3
+ export { type AssistantReferenceContext, type AssistantReferenceDetails, readAssistantReferenceDetails, } from './assistant-reference-details.js';
3
4
  export { assistantReferenceStyles } from './reference-styles.js';
@@ -1 +1 @@
1
- export{AssistantReferenceLink}from"./AssistantReferenceLink.js";export{isAssistantLinkHref,parseAssistantLinkTarget}from"./assistant-link-target.js";export{assistantReferenceStyles}from"./reference-styles.js";
1
+ export{AssistantReferenceLink}from"./AssistantReferenceLink.js";export{isAssistantLinkHref,parseAssistantLinkTarget}from"./assistant-link-target.js";export{readAssistantReferenceDetails}from"./assistant-reference-details.js";export{assistantReferenceStyles}from"./reference-styles.js";