@salsita-ai/sdk 0.50.0-develop.9241bcf09e → 0.50.0-develop.927e2414eb

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 (527) hide show
  1. package/README.md +3 -3
  2. package/dist/admin/common/admin-interface.d.ts +11 -1
  3. package/dist/admin/common/admin-interface.js +1 -1
  4. package/dist/admin/ui/layout/UserProfile.d.ts +1 -1
  5. package/dist/admin/ui/layout/UserProfile.js +1 -1
  6. package/dist/admin/ui/maintenance/ImportPresets.js +1 -1
  7. package/dist/application/mount-application.js +1 -1
  8. package/dist/application/mount-configurator.js +1 -1
  9. package/dist/application/studio-embedding.d.ts +6 -0
  10. package/dist/application/studio-embedding.js +1 -0
  11. package/dist/application-spec/core/enhanced-json-schema.d.ts +5 -6
  12. package/dist/application-spec/core/enhanced-json-schema.js +1 -1
  13. package/dist/application-spec/core/markers/index.d.ts +1 -0
  14. package/dist/application-spec/core/markers/index.js +1 -1
  15. package/dist/application-spec/core/markers/set-in-studio-marker.d.ts +15 -0
  16. package/dist/application-spec/core/markers/set-in-studio-marker.js +1 -0
  17. package/dist/application-spec/errors/diagnostic-codes.d.ts +16 -0
  18. package/dist/application-spec/errors/diagnostic-codes.js +1 -1
  19. package/dist/application-spec/errors/diagnostic-messages.d.ts +16 -0
  20. package/dist/application-spec/errors/diagnostic-messages.js +1 -1
  21. package/dist/application-spec/generate-application/code/domain-runtime-files.d.ts +3 -3
  22. package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
  23. package/dist/application-spec/generate-application/code/standalone-app-files.d.ts +0 -12
  24. package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
  25. package/dist/application-spec/generate-application/code/templates/admin-config.d.ts +5 -1
  26. package/dist/application-spec/generate-application/code/templates/admin-config.js +4 -4
  27. package/dist/application-spec/generate-application/code/templates/application-types.js +5 -5
  28. package/dist/application-spec/generate-application/code/templates/configurator-config.js +6 -6
  29. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.d.ts +1 -1
  30. package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +19 -0
  31. package/dist/application-spec/generate-application/code/templates/domain-spec.js +12 -12
  32. package/dist/application-spec/generate-application/code/templates/frontend-config.js +7 -3
  33. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.d.ts +3 -3
  34. package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +3 -3
  35. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +10 -6
  36. package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -7
  37. package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +12 -12
  38. package/dist/application-spec/generate-application/code/templates/globals.js +21 -12
  39. package/dist/application-spec/generate-application/code/templates/index.d.ts +1 -1
  40. package/dist/application-spec/generate-application/code/templates/index.js +1 -1
  41. package/dist/application-spec/generate-application/code/templates/sign-in-page-options.d.ts +5 -0
  42. package/dist/application-spec/generate-application/code/templates/sign-in-page-options.js +1 -0
  43. package/dist/application-spec/generate-application/code/templates/skills/core/cli.d.ts +2 -1
  44. package/dist/application-spec/generate-application/code/templates/skills/core/cli.js +1 -1
  45. package/dist/application-spec/generate-application/code/templates/skills/core/sdk.js +2 -1
  46. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/presets.js +1 -1
  47. package/dist/application-spec/generate-application/code/templates/skills/features/application-states/views-and-tools.js +1 -1
  48. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.d.ts +3 -0
  49. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.js +1 -0
  50. package/dist/application-spec/generate-application/code/templates/skills/features/{custom-layout/assistant.d.ts → assistant/panel.d.ts} +1 -1
  51. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/panel.js +42 -0
  52. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.d.ts +3 -0
  53. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.js +55 -0
  54. package/dist/application-spec/generate-application/code/templates/skills/features/{webhooks/assistant-setup.d.ts → assistant/session-setup.d.ts} +1 -1
  55. package/dist/application-spec/generate-application/code/templates/skills/features/assistant/session-setup.js +16 -0
  56. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/custom-layout.js +2 -2
  57. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/sign-in.d.ts +3 -0
  58. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/sign-in.js +19 -0
  59. package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/actions.js +1 -1
  60. package/dist/application-spec/generate-application/code/templates/skills/features/embedding.d.ts +2 -0
  61. package/dist/application-spec/generate-application/code/templates/skills/features/embedding.js +1 -0
  62. package/dist/application-spec/generate-application/code/templates/skills/features/features.js +1 -1
  63. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.d.ts +1 -1
  64. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.js +32 -26
  65. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.js +1 -3
  66. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/publishing.js +1 -1
  67. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/session-fields.d.ts +3 -0
  68. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/session-fields.js +1 -0
  69. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.js +1 -1
  70. package/dist/application-spec/generate-application/code/templates/skills/guide.d.ts +1 -1
  71. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.d.ts +1 -1
  72. package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +3 -3
  73. package/dist/application-spec/generate-application/code/templates/skills/processes/asset-conversion.js +3 -3
  74. package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.d.ts +3 -0
  75. package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.js +3 -0
  76. package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/report.js +2 -2
  77. package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/handoff.js +1 -1
  78. package/dist/application-spec/generate-application/code/templates/skills/processes/index.d.ts +2 -1
  79. package/dist/application-spec/generate-application/code/templates/skills/processes/index.js +1 -1
  80. package/dist/application-spec/generate-application/code/templates/skills/processes/model-migration.js +1 -1
  81. package/dist/application-spec/generate-application/code/templates/skills/processes/review/appearance.js +1 -1
  82. package/dist/application-spec/generate-application/code/templates/skills/processes/review/code.js +1 -1
  83. package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.d.ts +2 -0
  84. package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.js +29 -0
  85. package/dist/application-spec/generate-application/code/templates/skills/sdk-channel.d.ts +17 -0
  86. package/dist/application-spec/generate-application/code/templates/skills/sdk-channel.js +1 -0
  87. package/dist/application-spec/generate-application/code/templates/skills/sdk-subpath-imports.js +1 -1
  88. package/dist/application-spec/generate-application/code/templates/webhook-builders.js +3 -2
  89. package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +1 -2
  90. package/dist/application-spec/generate-application/code/templates/webhook-index.js +3 -7
  91. package/dist/application-spec/generate-application/code/webhook-safe-files.d.ts +3 -1
  92. package/dist/application-spec/generate-application/code/webhook-safe-files.js +1 -1
  93. package/dist/application-spec/parse-application-files/access/access-handler-kinds.d.ts +18 -0
  94. package/dist/application-spec/parse-application-files/access/access-handler-kinds.js +1 -0
  95. package/dist/application-spec/parse-application-files/access/analyzed-file.d.ts +7 -0
  96. package/dist/application-spec/parse-application-files/access/analyzed-file.js +1 -0
  97. package/dist/application-spec/parse-application-files/access/check-access-handler-files.d.ts +20 -0
  98. package/dist/application-spec/parse-application-files/access/check-access-handler-files.js +1 -0
  99. package/dist/application-spec/parse-application-files/access/check-auth-hook-files.d.ts +17 -0
  100. package/dist/application-spec/parse-application-files/access/check-auth-hook-files.js +1 -0
  101. package/dist/application-spec/parse-application-files/access/index.d.ts +5 -0
  102. package/dist/application-spec/parse-application-files/access/index.js +1 -0
  103. package/dist/application-spec/parse-application-files/access/sign-in-control.d.ts +7 -0
  104. package/dist/application-spec/parse-application-files/access/sign-in-control.js +1 -0
  105. package/dist/application-spec/parse-application-files/categorize/categorize-files.d.ts +2 -1
  106. package/dist/application-spec/parse-application-files/categorize/categorize-files.js +1 -1
  107. package/dist/application-spec/parse-application-files/categorize/module-analysis.d.ts +30 -4
  108. package/dist/application-spec/parse-application-files/categorize/module-analysis.js +1 -1
  109. package/dist/application-spec/parse-application-files/categorize/webhook-safety.js +1 -1
  110. package/dist/application-spec/parse-application-files/merge/merged-app-metadata.d.ts +16 -1
  111. package/dist/application-spec/parse-application-files/merge/merged-app-metadata.js +1 -1
  112. package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
  113. package/dist/application-spec/parse-application-files/merge/merged-spec.d.ts +7 -1
  114. package/dist/application-spec/parse-application-files/merge/merged-spec.js +1 -1
  115. package/dist/application-spec/parse-application-files/parse-application-files.js +1 -1
  116. package/dist/application-spec/parse-application-files/parse-common-admin-spec.js +1 -1
  117. package/dist/application-spec/parse-application-files/raw-spec/raw-actions.d.ts +3 -2
  118. package/dist/application-spec/parse-application-files/raw-spec/raw-actions.js +1 -1
  119. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +29 -6
  120. package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
  121. package/dist/application-spec/parse-application-files/raw-spec/raw-components.js +1 -1
  122. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.d.ts +11 -3
  123. package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
  124. package/dist/application-spec/parse-application-files/resolve/resolve-import-modules.js +1 -1
  125. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.d.ts +6 -0
  126. package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.js +1 -1
  127. package/dist/application-spec/parse-application-files/spec/model/index.d.ts +2 -1
  128. package/dist/application-spec/parse-application-files/spec/model/index.js +1 -1
  129. package/dist/application-spec/parse-application-files/spec/model/session-data-schema.d.ts +5 -2
  130. package/dist/application-spec/parse-application-files/spec/model/session-data-schema.js +1 -1
  131. package/dist/application-spec/parse-application-files/spec/model/session-fields/index.d.ts +1 -0
  132. package/dist/application-spec/parse-application-files/spec/model/session-fields/index.js +1 -0
  133. package/dist/application-spec/parse-application-files/spec/model/session-fields/session-fields.d.ts +15 -0
  134. package/dist/application-spec/parse-application-files/spec/model/session-fields/session-fields.js +1 -0
  135. package/dist/application-spec/parse-application-files/spec/relations/relations.js +1 -1
  136. package/dist/application-spec/parse-application-files/spec/sections/actions.js +1 -1
  137. package/dist/application-spec/parse-application-files/spec/sections/app-metadata.js +1 -1
  138. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +14 -2
  139. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -1
  140. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +6 -9
  141. package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
  142. package/dist/application-spec/parse-application-files/spec/sections/assistant/index.d.ts +0 -1
  143. package/dist/client/authenticated-client.d.ts +5 -1
  144. package/dist/client/authenticated-client.js +1 -1
  145. package/dist/client/authorized-client.d.ts +3 -1
  146. package/dist/client/authorized-client.js +1 -1
  147. package/dist/client/base-client.d.ts +15 -1
  148. package/dist/client/base-client.js +1 -1
  149. package/dist/client/cli-client/cli-api-client.d.ts +17 -0
  150. package/dist/client/cli-client/cli-api-client.js +1 -0
  151. package/dist/client/cli-client/index.d.ts +2 -0
  152. package/dist/client/cli-client/index.js +1 -0
  153. package/dist/client/cli-client/unsupported-api-version-error.d.ts +11 -0
  154. package/dist/client/cli-client/unsupported-api-version-error.js +1 -0
  155. package/dist/client/contract.d.ts +39 -4
  156. package/dist/client/contract.js +1 -1
  157. package/dist/client/index.d.ts +3 -1
  158. package/dist/client/index.js +1 -1
  159. package/dist/client/phoenix-api.d.ts +7834 -2378
  160. package/dist/client/unauthenticated-client.d.ts +2 -1
  161. package/dist/client/unauthenticated-client.js +1 -1
  162. package/dist/client/version.d.ts +11 -0
  163. package/dist/client/version.js +1 -1
  164. package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
  165. package/dist/configurator/application-runtime/extensions/systems/action-system/action.d.ts +16 -4
  166. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +25 -10
  167. package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
  168. package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +15 -5
  169. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.d.ts +1 -0
  170. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.js +1 -1
  171. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.d.ts +7 -3
  172. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.js +6 -2
  173. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/share-link.d.ts +14 -0
  174. package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/share-link.js +2 -0
  175. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +41 -35
  176. package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.js +1 -1
  177. package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +4 -2
  178. package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
  179. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +9 -3
  180. package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
  181. package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.d.ts +6 -3
  182. package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.js +1 -1
  183. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/export-image-capture.d.ts +15 -4
  184. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/export-image-capture.js +3 -3
  185. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +15 -7
  186. package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
  187. package/dist/configurator/common/configurator-interface.d.ts +13 -1
  188. package/dist/configurator/common/configurator-interface.js +1 -1
  189. package/dist/configurator/scene/animations/Animations.js +1 -1
  190. package/dist/configurator/scene/cameras/CameraPadding.d.ts +5 -0
  191. package/dist/configurator/scene/cameras/CameraPadding.js +1 -1
  192. package/dist/configurator/scene/resources/use-phx-gltf.js +1 -1
  193. package/dist/configurator/scene/scene-entity/materials/LocalCreatedMaterial.js +1 -1
  194. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.d.ts +5 -0
  195. package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.js +1 -1
  196. package/dist/configurator/scene/scene-entity/materials/use-dispose-replaced.d.ts +27 -0
  197. package/dist/configurator/scene/scene-entity/materials/use-dispose-replaced.js +1 -0
  198. package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -1
  199. package/dist/configurator/ui/assistant/AssistantComposer.js +1 -1
  200. package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
  201. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.d.ts +6 -5
  202. package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.js +1 -1
  203. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.d.ts +4 -3
  204. package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.js +1 -1
  205. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.d.ts +5 -0
  206. package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.js +1 -1
  207. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerDialog.d.ts +10 -0
  208. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerDialog.js +1 -0
  209. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerLine.d.ts +10 -0
  210. package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerLine.js +1 -0
  211. package/dist/configurator/ui/assistant/disclaimer/index.d.ts +2 -0
  212. package/dist/configurator/ui/assistant/disclaimer/index.js +1 -0
  213. package/dist/configurator/ui/assistant/drawing/AssistantDrawing.d.ts +2 -3
  214. package/dist/configurator/ui/assistant/drawing/AssistantDrawing.js +1 -1
  215. package/dist/configurator/ui/assistant/drawing/index.d.ts +1 -1
  216. package/dist/configurator/ui/assistant/drawing/index.js +1 -1
  217. package/dist/configurator/ui/assistant/drawing/use-drawing-url.d.ts +6 -12
  218. package/dist/configurator/ui/assistant/drawing/use-drawing-url.js +1 -1
  219. package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +11 -7
  220. package/dist/configurator/ui/assistant/form-elements/FormTile.js +1 -1
  221. package/dist/configurator/ui/assistant/image-view/ImageView.js +1 -1
  222. package/dist/configurator/ui/assistant/panel/AssistantPanelHeader.js +1 -1
  223. package/dist/configurator/ui/assistant/use-assistant-composer.d.ts +5 -0
  224. package/dist/configurator/ui/assistant/use-assistant-composer.js +2 -2
  225. package/dist/configurator/ui/configurator-layout/index.d.ts +1 -1
  226. package/dist/configurator/ui/configurator-layout/index.js +1 -1
  227. package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +4 -4
  228. package/dist/configurator/ui/configurator-layout/slots/index.d.ts +2 -0
  229. package/dist/configurator/ui/configurator-layout/slots/index.js +1 -1
  230. package/dist/configurator/ui/configurator-layout/slots/view-controls/DesktopViewControls.js +1 -1
  231. package/dist/configurator/ui/configurator-layout/slots/view-controls/MobileViewControls.js +1 -1
  232. package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.d.ts +7 -0
  233. package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.js +1 -0
  234. package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.d.ts +6 -0
  235. package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.js +1 -0
  236. package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
  237. package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +3 -3
  238. package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
  239. package/dist/configurator/ui/configurator-layout/universal/use-preview-description.d.ts +1 -0
  240. package/dist/configurator/ui/configurator-layout/universal/use-preview-description.js +1 -0
  241. package/dist/configurator/ui/index.d.ts +1 -1
  242. package/dist/configurator/ui/legacy/layout/common/ViewControls.js +1 -1
  243. package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -1
  244. package/dist/docs/index.json +117 -2
  245. package/dist/docs/layouts/nested-view-controls.mdx +223 -0
  246. package/dist/docs/layouts/preview/always.mdx +22 -0
  247. package/dist/docs/layouts/view-controls.mdx +2 -0
  248. package/dist/docs/other-features/domain-actions.mdx +53 -56
  249. package/dist/docs/phoenix/admin.mdx +5 -40
  250. package/dist/docs/phoenix/application-states.mdx +1 -1
  251. package/dist/docs/phoenix/assistant/actions.mdx +183 -0
  252. package/dist/docs/phoenix/assistant/changing-the-configuration.mdx +333 -0
  253. package/dist/docs/phoenix/assistant/instructions-and-ai-settings.mdx +221 -0
  254. package/dist/docs/phoenix/assistant/overview.mdx +137 -0
  255. package/dist/docs/phoenix/assistant/per-session-setup.mdx +166 -0
  256. package/dist/docs/phoenix/assistant/reading-the-configuration.mdx +349 -0
  257. package/dist/docs/phoenix/assistant/screenshots.mdx +135 -0
  258. package/dist/docs/phoenix/assistant/security-and-limits.mdx +151 -0
  259. package/dist/docs/phoenix/assistant/the-panel.mdx +298 -0
  260. package/dist/docs/phoenix/clerk-sign-in.mdx +9 -5
  261. package/dist/docs/phoenix/configurator-interface.mdx +18 -33
  262. package/dist/docs/phoenix/csp.mdx +3 -1
  263. package/dist/docs/phoenix/data-sources.mdx +26 -30
  264. package/dist/docs/phoenix/deployments.mdx +3 -3
  265. package/dist/docs/phoenix/finalization.mdx +0 -1
  266. package/dist/docs/phoenix/integration/authentication-external.mdx +17 -15
  267. package/dist/docs/phoenix/integration/authentication-internal.mdx +1 -1
  268. package/dist/docs/phoenix/integration/finalization-internal.mdx +1 -4
  269. package/dist/docs/phoenix/integration/integration-modes-external.mdx +2 -2
  270. package/dist/docs/phoenix/integration/integration-modes-internal.mdx +9 -0
  271. package/dist/docs/phoenix/layout-slots.mdx +1 -1
  272. package/dist/docs/phoenix/migrations.mdx +1 -1
  273. package/dist/docs/phoenix/phoenix-cli.mdx +90 -57
  274. package/dist/docs/phoenix/project-structure.mdx +30 -15
  275. package/dist/docs/phoenix/publishing.mdx +21 -28
  276. package/dist/docs/phoenix/sdk-builder-workflow.mdx +51 -34
  277. package/dist/docs/phoenix/sessions-and-access.mdx +171 -164
  278. package/dist/docs/phoenix/webhook-membership.mdx +4 -1
  279. package/dist/docs/phoenix/webhooks.mdx +93 -116
  280. package/dist/docs/ux-guidelines/interaction-modes.mdx +2 -2
  281. package/dist/domain/application/access/access-handlers.d.ts +19 -0
  282. package/dist/domain/application/access/access-handlers.js +1 -0
  283. package/dist/domain/application/access/anonymous-handler.d.ts +16 -0
  284. package/dist/domain/application/access/anonymous-handler.js +1 -0
  285. package/dist/domain/application/access/chunk-scopes-handler.d.ts +27 -0
  286. package/dist/domain/application/access/chunk-scopes-handler.js +1 -0
  287. package/dist/domain/application/access/code-handler.d.ts +16 -0
  288. package/dist/domain/application/access/code-handler.js +1 -0
  289. package/dist/domain/application/access/index.d.ts +7 -0
  290. package/dist/domain/application/access/index.js +1 -0
  291. package/dist/domain/application/access/refresh-handler.d.ts +16 -0
  292. package/dist/domain/application/access/refresh-handler.js +1 -0
  293. package/dist/domain/application/access/signed-in-handler.d.ts +44 -0
  294. package/dist/domain/application/access/signed-in-handler.js +1 -0
  295. package/dist/domain/application/access/visitor-handler.d.ts +23 -0
  296. package/dist/domain/application/access/visitor-handler.js +1 -0
  297. package/dist/domain/application/application-config.d.ts +36 -1
  298. package/dist/domain/application/assistant/assistant-exposure.d.ts +22 -0
  299. package/dist/domain/application/assistant/assistant-exposure.js +1 -0
  300. package/dist/domain/application/assistant/build-assistant-lenses.js +3 -3
  301. package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
  302. package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +6 -2
  303. package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
  304. package/dist/domain/application/assistant/index.d.ts +1 -0
  305. package/dist/domain/application/assistant/index.js +1 -1
  306. package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -1
  307. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +14 -2
  308. package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -1
  309. package/dist/domain/application/assistant/session-setup/assistant-takes-images.d.ts +7 -0
  310. package/dist/domain/application/assistant/session-setup/assistant-takes-images.js +1 -0
  311. package/dist/domain/application/assistant/session-setup/index.d.ts +1 -0
  312. package/dist/domain/application/assistant/session-setup/index.js +1 -1
  313. package/dist/domain/application/assistant-mutations.js +1 -1
  314. package/dist/domain/application/assistant-recipe-groups.d.ts +4 -3
  315. package/dist/domain/application/assistant-recipe-groups.js +1 -1
  316. package/dist/domain/application/configurator-builder.d.ts +2 -0
  317. package/dist/domain/application/configurator-builder.js +1 -1
  318. package/dist/domain/application/index.d.ts +2 -1
  319. package/dist/domain/application/index.js +1 -1
  320. package/dist/domain/application/standard-properties.d.ts +1 -1
  321. package/dist/domain/application/standard-properties.js +1 -1
  322. package/dist/domain/available-system-components/available-system-components.js +1 -1
  323. package/dist/domain/core/component/system-component-filter.d.ts +1 -0
  324. package/dist/domain/core/component/system-component-filter.js +1 -1
  325. package/dist/domain/core/component/view-state-component.d.ts +4 -3
  326. package/dist/domain/core/component/view-state-component.js +1 -1
  327. package/dist/domain/core/domain-factory.d.ts +6 -0
  328. package/dist/domain/core/domain-factory.js +1 -1
  329. package/dist/domain/core/fit-session-data.d.ts +16 -0
  330. package/dist/domain/core/fit-session-data.js +1 -0
  331. package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +2 -2
  332. package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
  333. package/dist/domain/domain-context/transformers/when-builder.js +1 -1
  334. package/dist/domain/domain-runtime/domain-context/actions.d.ts +4 -0
  335. package/dist/domain/domain-runtime/domain-context/actions.js +1 -1
  336. package/dist/domain/domain-runtime/domain-context/domain-context.d.ts +8 -0
  337. package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
  338. package/dist/domain/domain-runtime/domain-context/selectors.d.ts +1 -0
  339. package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
  340. package/dist/domain/domain-runtime/domain-context/types.d.ts +8 -4
  341. package/dist/domain/domain-runtime/domain-runtime.d.ts +8 -0
  342. package/dist/domain/extensions/export-images/agent-screenshot.d.ts +5 -4
  343. package/dist/domain/extensions/export-images/agent-screenshot.js +1 -1
  344. package/dist/domain/extensions/index.d.ts +0 -1
  345. package/dist/domain/extensions/index.js +1 -1
  346. package/dist/domain/mocks/create-mock-domain-runtime.d.ts +4 -0
  347. package/dist/domain/spec/sections/actions.d.ts +3 -2
  348. package/dist/domain/spec/sections/app-metadata.d.ts +12 -0
  349. package/dist/domain/spec/sections/assistant/assistant-features.d.ts +13 -0
  350. package/dist/domain/spec/sections/assistant/assistant-features.js +1 -0
  351. package/dist/domain/spec/sections/assistant/assistant-manifest.d.ts +17 -6
  352. package/dist/domain/spec/sections/assistant/assistant-resolved-manifest.d.ts +28 -5
  353. package/dist/domain/spec/sections/assistant/index.d.ts +1 -0
  354. package/dist/domain/system-components/index.d.ts +1 -0
  355. package/dist/domain/system-components/index.js +1 -1
  356. package/dist/domain/system-components/navigation/index.d.ts +1 -0
  357. package/dist/domain/system-components/navigation/index.js +1 -0
  358. package/dist/domain/system-components/navigation/view-controls.d.ts +24 -0
  359. package/dist/domain/system-components/navigation/view-controls.js +1 -0
  360. package/dist/editor/domain-editors/use-implementation-files.js +1 -1
  361. package/dist/extras/clerk/index.d.ts +6 -0
  362. package/dist/extras/cognito/AccountAvatar.d.ts +7 -0
  363. package/dist/extras/cognito/AccountAvatar.js +1 -0
  364. package/dist/extras/cognito/AccountControl.d.ts +14 -0
  365. package/dist/extras/cognito/AccountControl.js +1 -0
  366. package/dist/extras/cognito/AdminSignInPage.d.ts +26 -0
  367. package/dist/extras/cognito/AdminSignInPage.js +1 -0
  368. package/dist/extras/cognito/CognitoSignInPage.d.ts +8 -2
  369. package/dist/extras/cognito/CognitoSignInPage.js +1 -1
  370. package/dist/extras/cognito/ConfiguratorSignInPage.d.ts +19 -0
  371. package/dist/extras/cognito/ConfiguratorSignInPage.js +1 -0
  372. package/dist/extras/cognito/SignInFailurePage.d.ts +11 -0
  373. package/dist/extras/cognito/SignInFailurePage.js +1 -0
  374. package/dist/extras/cognito/SignInGateLayout.d.ts +25 -0
  375. package/dist/extras/cognito/SignInGateLayout.js +1 -0
  376. package/dist/extras/cognito/SignInNotice.d.ts +9 -0
  377. package/dist/extras/cognito/SignInNotice.js +1 -0
  378. package/dist/extras/cognito/index.d.ts +4 -0
  379. package/dist/extras/cognito/index.js +1 -1
  380. package/dist/globals/index.d.ts +5 -0
  381. package/dist/i18n/locales/cs/messages.js +1 -1
  382. package/dist/i18n/locales/da/messages.js +1 -1
  383. package/dist/i18n/locales/de/messages.js +1 -1
  384. package/dist/i18n/locales/de-AT/messages.js +1 -1
  385. package/dist/i18n/locales/en/messages.js +1 -1
  386. package/dist/i18n/locales/en-AU/messages.js +1 -1
  387. package/dist/i18n/locales/en-GB/messages.js +1 -1
  388. package/dist/i18n/locales/es/messages.js +1 -1
  389. package/dist/i18n/locales/fr/messages.js +1 -1
  390. package/dist/i18n/locales/hu/messages.js +1 -1
  391. package/dist/i18n/locales/it/messages.js +1 -1
  392. package/dist/i18n/locales/nl/messages.js +1 -1
  393. package/dist/i18n/locales/pl/messages.js +1 -1
  394. package/dist/i18n/locales/pt/messages.js +1 -1
  395. package/dist/i18n/locales/ro/messages.js +1 -1
  396. package/dist/i18n/locales/sk/messages.js +1 -1
  397. package/dist/i18n/locales/tr/messages.js +1 -1
  398. package/dist/legacy/deployment-cli/commands/create-environment.js +1 -1
  399. package/dist/legacy/deployment-cli/commands/list-environments.js +1 -1
  400. package/dist/legacy/deployment-cli/commands/register-deployment.js +1 -1
  401. package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +12 -3
  402. package/dist/legacy/phoenix-cli/commands/prepare-deployment-command.js +1 -1
  403. package/dist/legacy/phoenix-cli/commands/prepare-local-environment-command.js +1 -1
  404. package/dist/legacy/phoenix-cli/services/prepare-development-environment.js +1 -1
  405. package/dist/legacy/phoenix-cli/services/webhook-service/transport.js +1 -1
  406. package/dist/phoenix/application-spec/index.d.ts +1 -1
  407. package/dist/phoenix/application-spec/index.js +1 -1
  408. package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +10 -3
  409. package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
  410. package/dist/phoenix/cli.js +1 -1
  411. package/dist/phoenix/commands/account/whoami.d.ts +8 -2
  412. package/dist/phoenix/commands/account/whoami.js +4 -3
  413. package/dist/phoenix/commands/cleanup-environment.js +1 -1
  414. package/dist/phoenix/commands/deploy.d.ts +7 -2
  415. package/dist/phoenix/commands/deploy.js +9 -3
  416. package/dist/phoenix/commands/deployment-build-envs-command.js +1 -1
  417. package/dist/phoenix/commands/deps/deps.js +2 -2
  418. package/dist/phoenix/commands/feedback.d.ts +2 -2
  419. package/dist/phoenix/commands/feedback.js +1 -1
  420. package/dist/phoenix/commands/finish-deployment-command.js +1 -1
  421. package/dist/phoenix/commands/init-starter-spec.js +3 -4
  422. package/dist/phoenix/commands/init.d.ts +2 -2
  423. package/dist/phoenix/commands/init.js +1 -1
  424. package/dist/phoenix/commands/login.d.ts +1 -1
  425. package/dist/phoenix/commands/login.js +2 -2
  426. package/dist/phoenix/commands/logout.js +1 -1
  427. package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
  428. package/dist/phoenix/commands/prepare-local-environment-command.js +1 -1
  429. package/dist/phoenix/services/cli-credentials.d.ts +13 -2
  430. package/dist/phoenix/services/cli-credentials.js +2 -2
  431. package/dist/phoenix/services/cli-server/describe-saved-logins.d.ts +5 -0
  432. package/dist/phoenix/services/cli-server/describe-saved-logins.js +1 -0
  433. package/dist/phoenix/services/cli-server/index.d.ts +2 -0
  434. package/dist/phoenix/services/cli-server/index.js +1 -0
  435. package/dist/phoenix/services/cli-server/resolve-cli-server-url.d.ts +25 -0
  436. package/dist/phoenix/services/cli-server/resolve-cli-server-url.js +1 -0
  437. package/dist/phoenix/services/development-credential.js +1 -1
  438. package/dist/phoenix/services/frontend-config.d.ts +2 -0
  439. package/dist/phoenix/services/index.d.ts +4 -2
  440. package/dist/phoenix/services/index.js +1 -1
  441. package/dist/phoenix/services/phoenix-regions.d.ts +15 -5
  442. package/dist/phoenix/services/phoenix-regions.js +1 -1
  443. package/dist/phoenix/services/prepare-development-environment.js +2 -2
  444. package/dist/phoenix/services/session/phoenix-application.js +1 -1
  445. package/dist/phoenix/services/signed-in-development-environment.d.ts +15 -4
  446. package/dist/phoenix/services/signed-in-development-environment.js +1 -1
  447. package/dist/phoenix/services/spec-project/describe-workspace-projects.d.ts +11 -0
  448. package/dist/phoenix/services/spec-project/describe-workspace-projects.js +1 -0
  449. package/dist/phoenix/services/spec-project/index.d.ts +3 -0
  450. package/dist/phoenix/services/spec-project/index.js +1 -0
  451. package/dist/phoenix/services/spec-project/resolve-deploy-target.d.ts +47 -0
  452. package/dist/phoenix/services/spec-project/resolve-deploy-target.js +1 -0
  453. package/dist/phoenix/services/spec-project/resolve-target-project.d.ts +34 -0
  454. package/dist/phoenix/services/spec-project/resolve-target-project.js +2 -0
  455. package/dist/phoenix/services/spec-project/write-spec-project.d.ts +7 -0
  456. package/dist/phoenix/services/spec-project/write-spec-project.js +1 -0
  457. package/dist/phoenix/services/variant-file-session.js +1 -1
  458. package/dist/phoenix/services/vite-config.js +1 -1
  459. package/dist/phoenix/services/webhook-service/transport.js +1 -1
  460. package/dist/react-sdk/application-runtime/common-services/selectors.js +1 -1
  461. package/dist/react-sdk/application-runtime/domain-application-context/configuration-persist-system.d.ts +6 -0
  462. package/dist/react-sdk/application-runtime/domain-application-context/configuration-persist-system.js +1 -1
  463. package/dist/react-sdk/application-runtime/host-properties/selectors.d.ts +2 -2
  464. package/dist/react-sdk/application-runtime/integration/integration-mode.d.ts +30 -0
  465. package/dist/react-sdk/application-runtime/integration/integration-mode.js +1 -1
  466. package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +20 -6
  467. package/dist/react-sdk/application-runtime/session/actions.d.ts +2 -1
  468. package/dist/react-sdk/application-runtime/session/actions.js +1 -1
  469. package/dist/react-sdk/application-runtime/session/initialize.js +1 -1
  470. package/dist/react-sdk/application-runtime/session/selectors.d.ts +2 -0
  471. package/dist/react-sdk/application-runtime/session/selectors.js +1 -1
  472. package/dist/react-sdk/application-runtime/session/session-service.d.ts +64 -2
  473. package/dist/react-sdk/application-runtime/session/session-service.js +1 -1
  474. package/dist/react-sdk/application-runtime/session/session-token.d.ts +8 -0
  475. package/dist/react-sdk/application-runtime/session/session-token.js +1 -1
  476. package/dist/react-sdk/application-runtime/session/types.d.ts +6 -1
  477. package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +1 -0
  478. package/dist/react-sdk/domain-context/index.d.ts +3 -2
  479. package/dist/react-sdk/domain-context/index.js +1 -1
  480. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +1 -5
  481. package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -1
  482. package/dist/react-sdk/domain-context/system-hooks/generate-share-link.d.ts +25 -0
  483. package/dist/react-sdk/domain-context/system-hooks/generate-share-link.js +1 -0
  484. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +5 -3
  485. package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
  486. package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -1
  487. package/dist/react-sdk/session/AccessDeniedAdminPage.d.ts +13 -0
  488. package/dist/react-sdk/session/AccessDeniedAdminPage.js +1 -0
  489. package/dist/react-sdk/session/AccessDeniedPage.d.ts +20 -0
  490. package/dist/react-sdk/session/AccessDeniedPage.js +1 -0
  491. package/dist/react-sdk/session/ConfiguratorUnavailablePage.d.ts +5 -0
  492. package/dist/react-sdk/session/ConfiguratorUnavailablePage.js +1 -0
  493. package/dist/react-sdk/session/SessionServiceProvider.d.ts +5 -0
  494. package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
  495. package/dist/react-sdk/session/index.d.ts +3 -0
  496. package/dist/react-sdk/session/index.js +1 -1
  497. package/dist/react-sdk/session/server-sign-in-support.d.ts +16 -0
  498. package/dist/react-sdk/session/server-sign-in-support.js +1 -0
  499. package/dist/react-sdk/session/sign-in-address.d.ts +18 -0
  500. package/dist/react-sdk/session/sign-in-address.js +1 -0
  501. package/dist/react-sdk/session/studio-frame.d.ts +14 -0
  502. package/dist/react-sdk/session/studio-frame.js +1 -0
  503. package/dist/react-sdk/session/use-sign-in.d.ts +51 -0
  504. package/dist/react-sdk/session/use-sign-in.js +1 -0
  505. package/dist/ui-sdk/components/preview/Preview.d.ts +12 -4
  506. package/dist/ui-sdk/components/preview/Preview.js +2 -2
  507. package/dist/ui-sdk/components/snackbar/Snackbar.d.ts +3 -2
  508. package/dist/ui-sdk/components/snackbar/Snackbar.js +1 -1
  509. package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.d.ts +2 -0
  510. package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.js +1 -1
  511. package/dist/ui-sdk/components/view-controls/ViewControlsContext.d.ts +3 -1
  512. package/dist/ui-sdk/components/view-controls/ViewControlsItem.js +1 -1
  513. package/dist/ui-sdk/components/view-controls/ViewControlsRoot.d.ts +6 -1
  514. package/dist/ui-sdk/components/view-controls/ViewControlsRoot.js +1 -1
  515. package/dist/webhook/builders/auth-handler-builder.d.ts +21 -1
  516. package/dist/webhook/builders/auth-handler-builder.js +1 -1
  517. package/dist/webhook/builders/common.d.ts +9 -0
  518. package/dist/webhook/builders/webhook-builder.d.ts +18 -0
  519. package/dist/webhook/builders/webhook-builder.js +1 -1
  520. package/package.json +5 -4
  521. package/schema/domain-spec.json +224 -65
  522. package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/assistant.js +0 -43
  523. package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/assistant-setup.js +0 -32
  524. package/dist/application-spec/generate-application/code/templates/skills/processes/beta.d.ts +0 -14
  525. package/dist/application-spec/generate-application/code/templates/skills/processes/beta.js +0 -4
  526. package/dist/domain/extensions/view-controls.d.ts +0 -25
  527. package/dist/domain/extensions/view-controls.js +0 -1
@@ -0,0 +1,223 @@
1
+ # Nested View Controls
2
+
3
+ Use a two-level view control to choose a presentation within one camera view or group several cameras under one button. The caret opens a menu. Choosing an option updates the button label and highlights the selection. The button reserves space for the widest label in the group, so the toolbar stays still as you switch options.
4
+
5
+ ## Assembly
6
+
7
+ Give the group a declared view value when its children are choices within that view. Opening Assembly leaves the scene alone. Choose Exploded to separate the cover and insert, then Overview to clear the selection.
8
+
9
+ ```yaml
10
+ viewControls:
11
+ default:
12
+ items:
13
+ - { label: Overview, icon: Cube, value: overview }
14
+ - label: Assembly
15
+ icon: CubeDuotone
16
+ value: assembly
17
+ items:
18
+ - { label: Assembled, value: assembled }
19
+ - { label: Exploded, value: exploded }
20
+ ```
21
+
22
+ Both choices activate `assembly`, so components filtered to that view stay active. A project expression can read `getComponentSystemFilterState(state).viewChildState` to distinguish them. Child values may be created at runtime. This example supplies the same array shape via `items: { $read: $assemblyOptions }`. Change the option count to see the menu update. Removing the current option clears the child selection.
23
+
24
+ ## Standard views
25
+
26
+ Omit the group's value to organize declared views. Choose Side to activate the side camera. The readout shows `side` as the active view and an empty child state.
27
+
28
+ ```yaml
29
+ viewControls:
30
+ default:
31
+ items:
32
+ - { label: Overview, icon: Cube, value: overview }
33
+ - label: Standard views
34
+ icon: GridFour
35
+ items:
36
+ - { label: Front, value: front }
37
+ - { label: Side, value: side }
38
+ - { label: Top, value: top }
39
+ ```
40
+
41
+ Declare each child value in `viewStates`. In both examples, opening or dismissing the menu preserves the selection. Use the arrow keys to move through options, Enter to select, or Escape to dismiss.
42
+
43
+ ## Complete Implementation
44
+
45
+ {/* AUTO-GENERATED SECTION: This section is automatically updated by 'phoenix story build' */}
46
+
47
+ <details>
48
+ <summary>Click to view the complete implementation files</summary>
49
+
50
+ ### ./spec/domain.yaml
51
+
52
+ ```yaml
53
+ model:
54
+ latest:
55
+ entityTypes: [Scene]
56
+ aliases:
57
+ RootEntity: [Scene]
58
+ shapes:
59
+ Scene:
60
+ standardViews: { type: boolean }
61
+ optionCount: { type: integer, minimum: 0, maximum: 3 }
62
+
63
+ expressions:
64
+ Scene:
65
+ $insertHeight: { type: number }
66
+ $showOptionCount: { type: boolean, $eval: '!self.standardViews' }
67
+
68
+ viewStates: [overview, assembly, front, side, top]
69
+
70
+ presets:
71
+ - rootEntityType: Scene
72
+ initialDomainEntities:
73
+ - { id: Scene-1, type: Scene, standardViews: false, optionCount: 2 }
74
+
75
+ components:
76
+ Scene:
77
+ applicationConfig:
78
+ default:
79
+ layout: universal
80
+ miniSidebar: true
81
+ viewControls:
82
+ assembly:
83
+ $filter:
84
+ active: { $eval: '!self.standardViews' }
85
+ items:
86
+ - { label: Overview, icon: Cube, value: overview }
87
+ - label: Assembly
88
+ icon: CubeDuotone
89
+ value: assembly
90
+ items: { $read: $assemblyOptions }
91
+ standard:
92
+ $filter:
93
+ active: { $read: standardViews }
94
+ items:
95
+ - { label: Overview, icon: Cube, value: overview }
96
+ - label: Standard views
97
+ icon: GridFour
98
+ items:
99
+ - { label: Front, value: front }
100
+ - { label: Side, value: side }
101
+ - { label: Top, value: top }
102
+ staticPerspectiveCamera:
103
+ overview:
104
+ fov: 38
105
+ distance: 2400
106
+ azimuthAngle: 0.68
107
+ polarAngle: 1.03
108
+ $filter:
109
+ viewStates: [overview, assembly]
110
+ staticOrthographicCamera:
111
+ front:
112
+ frustumSize: 1450
113
+ distance: 2400
114
+ polarAngle: 1.5708
115
+ azimuthAngle: 0
116
+ $filter:
117
+ viewStates: [front]
118
+ side:
119
+ frustumSize: 1450
120
+ distance: 2400
121
+ polarAngle: 1.5708
122
+ azimuthAngle: 1.5708
123
+ $filter:
124
+ viewStates: [side]
125
+ top:
126
+ frustumSize: 1450
127
+ distance: 2400
128
+ polarAngle: 0
129
+ azimuthAngle: 0
130
+ $filter:
131
+ viewStates: [top]
132
+ sceneEntityBoxObject:
133
+ base: { width: 920, height: 160, depth: 570, materialName: Base, anchor: center }
134
+ insert: { width: 850, height: 64, depth: 500, materialName: Insert, anchor: center }
135
+ cover: { width: 920, height: 48, depth: 570, materialName: Cover, anchor: center }
136
+ sceneEntityObjectProperties:
137
+ insert:
138
+ offsetY: { $read: $insertHeight }
139
+ cover:
140
+ offsetY: { $read: $coverHeight }
141
+ sceneEntityLocalMaterialOverride:
142
+ base: { materialsToOverride: [Base], color: '#34485b', roughness: 0.68 }
143
+ insert: { materialsToOverride: [Insert], color: '#d59a51', roughness: 0.62 }
144
+ cover: { materialsToOverride: [Cover], color: '#7b9b9a', roughness: 0.58 }
145
+ propertyPage:
146
+ default:
147
+ children:
148
+ - kind: propertyContainerGroup
149
+ children:
150
+ - kind: customElement
151
+ props: { name: ViewStateReadout }
152
+ - kind: propertyContainerItem
153
+ visible: { $read: $showOptionCount }
154
+ props: { title: Available options }
155
+ children:
156
+ - kind: genericDimensionSlider
157
+ props: { instanceName: count, step: 1 }
158
+ genericDimension:
159
+ count:
160
+ $filter:
161
+ active: { $eval: '!self.standardViews' }
162
+ unit: ''
163
+ min: 0
164
+ max: 3
165
+ value: { $bind: optionCount }
166
+ ```
167
+
168
+ ### ./src/elements/ViewStateReadout.tsx
169
+
170
+ ```tsx
171
+ import { Box } from '@mui/material'
172
+
173
+ import { PropertyContainer } from '@salsita-ai/sdk/ui'
174
+
175
+ export default phx.frontend.createCustomPhoenixEntityElement('ViewStateReadout', () => {
176
+ const viewState = phx.frontend.useActiveViewState()
177
+ const viewChildState = phx.frontend.useActiveViewChildState()
178
+ return (
179
+ <PropertyContainer.Item title="View selection">
180
+ <Box
181
+ component="dl"
182
+ sx={{
183
+ display: 'grid',
184
+ gridTemplateColumns: 'max-content 1fr',
185
+ gap: 1,
186
+ m: 0,
187
+ '& dd': { m: 0, fontFamily: 'monospace' },
188
+ }}
189
+ >
190
+ <dt>viewState</dt>
191
+ <dd>{viewState}</dd>
192
+ <dt>viewChildState</dt>
193
+ <dd>{viewChildState ?? '—'}</dd>
194
+ </Box>
195
+ </PropertyContainer.Item>
196
+ )
197
+ })
198
+ ```
199
+
200
+ ### ./src/expressions/scene.ts
201
+
202
+ ```ts
203
+ import { getComponentSystemFilterState } from '@salsita-ai/sdk/domain'
204
+
205
+ const options = [
206
+ { label: 'Assembled', value: 'assembled' },
207
+ { label: 'Exploded', value: 'exploded' },
208
+ { label: 'Fully separated', value: 'separated' },
209
+ ]
210
+
211
+ export default phx.domain.implementCustomExpressions({
212
+ Scene: {
213
+ $assemblyOptions: self => options.slice(0, self.optionCount),
214
+ $insertHeight: (_self, state) => {
215
+ const { viewChildState } = getComponentSystemFilterState(state)
216
+ return viewChildState === 'separated' ? 300 : viewChildState === 'exploded' ? 210 : 112
217
+ },
218
+ $coverHeight: self => 2 * self.$insertHeight - 56,
219
+ },
220
+ })
221
+ ```
222
+
223
+ </details>
@@ -45,6 +45,14 @@ preview: always # auto | always | never | hide
45
45
  alwaysExpand: false # optional, true expands the configurator when users leave the preview, on desktop too
46
46
  ```
47
47
 
48
+ ### Customize the start screen
49
+
50
+ To introduce a product before the visitor starts, provide a project translation for `sdk.preview.customize.message`. The desktop and mobile universal layouts show it between the heading and Start button. If the resolved text is missing or blank, the button follows the heading with the usual spacing.
51
+
52
+ This example declares three [Lingui messages](?path=/docs/phoenix-localization--docs) in `src/_shared/preview-messages.ts`. Run `pnpm phoenix sync` to extract them and compile your project’s `src/locales/<locale>/messages.po` catalogs. The heading uses `sdk.preview.customize.title` and the button uses `sdk.preview.start.button.label`. Each translation can be overridden independently, and the project’s usual locale fallbacks apply.
53
+
54
+ Style each part through `components.PhxPreview.styleOverrides` using the `title`, `description`, and `button` keys. For example, set `styleOverrides.description` to `{ maxWidth: '45ch' }` to limit the paragraph’s line length. [Try the long-text preview](?path=/story/design-system-components-preview--long-text).
55
+
48
56
  ## Test cases
49
57
 
50
58
  - Preview mode always active regardless of breakpoint
@@ -160,6 +168,20 @@ components:
160
168
  $read: $edgeFinishOptions
161
169
  ```
162
170
 
171
+ ### ./src/\_shared/preview-messages.ts
172
+
173
+ ```ts
174
+ import { msg } from '@lingui/core/macro'
175
+
176
+ // Lingui extracts these project overrides for the built-in universal preview.
177
+ msg({ id: 'sdk.preview.customize.title', message: 'Design your table' })
178
+ msg({
179
+ id: 'sdk.preview.customize.message',
180
+ message: 'Choose an edge finish for your tabletop and preview the result before you decide.',
181
+ })
182
+ msg({ id: 'sdk.preview.start.button.label', message: 'Start designing' })
183
+ ```
184
+
163
185
  ### ./src/components/components.tsx
164
186
 
165
187
  ```tsx
@@ -17,6 +17,8 @@ Common use cases include:
17
17
  - **Engineering drawings**: Standard mechanical drawing views (front, top, left, isometric)
18
18
  - **3D model inspection**: Multiple angles for comprehensive object examination
19
19
 
20
+ For a menu of related views or runtime options within one view, see [Nested View Controls](?path=/docs/layouts-nested-view-controls--docs).
21
+
20
22
  ## Guide
21
23
 
22
24
  ### Step 1: Define view states
@@ -11,13 +11,18 @@
11
11
 
12
12
  ## Use case
13
13
 
14
- A plate carries holes, and a hole can be nudged by an offset as long as it stays on the plate. The arrow buttons of a selected hole and the AI assistant both make this change, so the rule ("stay on the plate") has to live in one place.
14
+ Some changes are more than writing one field. Moving a part goes through the placement rules. A swap touches two entities. Replacing a layout creates and removes many entities at once. An **action** is a named domain operation for such a change. You declare it once under `actions:` and implement it in `src/actions/`, with generated parameter and result types.
15
15
 
16
- An **action** is that place: a named domain operation you declare once under `actions:`, implement in `src/actions/` with generated parameter and result types, and run from any control through `actionSystem.prepareAction()`. The same action is exposed to the assistant as a custom mutation by naming it under `assistant.actions`. Use an action whenever a change is more than writing one field: a swap, a move among siblings, a change that touches several entities at once.
16
+ An action gives you two things:
17
+
18
+ - **The domain logic stays out of the UI.** A control only runs the action, through `actionSystem.prepareAction()`. The rules of the change live in the action, not in the component that triggers it.
19
+ - **The UI and the AI assistant share the logic.** Name the action under `assistant.actions`, and the assistant runs the same operation under the same rules.
20
+
21
+ The example on this page is a plate with holes. The arrow buttons of a selected hole nudge it by an offset, and the move fails when the hole would leave the plate.
17
22
 
18
23
  ## Declare the action
19
24
 
20
- `params` and `result` are maps of named JSON schemas, with the same `phx:` refs, `references`, `tsType` and `import` as entity shapes. A param whose schema allows `null` is optional; every other param is required. A result member typed `phx:$DomainEntity` is the enhanced entity after the change.
25
+ `params` and `result` are maps of named JSON schemas, with the same `phx:` refs, `references`, `tsType` and `import` as entity shapes. A param whose schema allows `null` is optional; every other param is required. A result member typed `phx:$DomainEntity` is the enhanced entity after the change. `result` is optional: an action that reports nothing leaves it out.
21
26
 
22
27
  ```yaml
23
28
  actions:
@@ -30,28 +35,22 @@ actions:
30
35
  description: The hole to move
31
36
  dx:
32
37
  type: integer
33
- description: Offset along the x axis, in plate units
38
+ description: Offset along the x axis, in plate units; positive moves right
34
39
  dy:
35
40
  type: integer
36
- description: Offset along the y axis, in plate units
41
+ description: Offset along the y axis, in plate units; positive moves up
37
42
  result:
38
43
  hole:
39
44
  $ref: phx:$DomainEntity
40
45
  references: Hole
41
46
  description: The hole at its new position
42
- plate:
43
- $ref: phx:$DomainEntity
44
- references: Plate
45
- description: The plate after the move
46
47
  ```
47
48
 
48
- Generation derives the types `ActionTypes`, `ActionName`, `ActionParams<'nudgeHole'>` and `ActionResult<'nudgeHole'>` from it: here `ActionParams<'nudgeHole'>` is `{ holeId: Hole['id']; dx: number; dy: number }` and `ActionResult<'nudgeHole'>` is `{ hole: $Hole; plate: $Plate }`. The `description` of the action, of a param and of a result member becomes the doc comment of its generated property, so it shows in the editor wherever the action is implemented or called.
49
+ The build generates types from the declaration. The implementation and every call of the action are checked against them, so a wrong param name or a missing result member is a type error. The `description` of the action, of a param and of a result member becomes the doc comment of its generated property, so it shows in the editor wherever the action is implemented or called.
49
50
 
50
51
  ## Implement it
51
52
 
52
- Actions belong to the configurator and execute in the browser. Their implementation modules may import browser systems. Webhook assistant setup reads the shared action schemas without loading those modules. The generated `configurator-config.ts` registers the modules with `ConfiguratorBuilder.withActionModules`; a hand-written config calls it the same way, on the frontend builder only.
53
-
54
- A file in `src/actions/` default-exports `phx.frontend.implementActions({...})` with any subset of the declared actions. The implementation receives the validated parameters, the state the action runs on, and a context with the `expressionContext`, the domain and registered configurator `systems`, `getIdSequence()` for entities it creates and the typed `updates` factory. It returns the updates it wants applied and `readResult`, which reads the result from the state those updates produced, including whatever the transformers added. It never stages or commits anything.
53
+ Actions run in the browser, so an implementation can import browser systems. A file in `src/actions/` default-exports `phx.frontend.implementActions({...})` with any subset of the declared actions. The implementation receives the validated parameters, the state the action runs on, and a context with the `expressionContext`, the domain and registered configurator `systems`, `getIdSequence()` for entities it creates and the typed `updates` factory. It returns the updates it wants applied and `readResult`, which reads the result from the state those updates produced, including whatever the transformers added. An action without a `result` returns only the updates. It never stages or commits anything.
55
54
 
56
55
  ```ts
57
56
  // src/actions/nudge-hole.ts
@@ -69,30 +68,40 @@ export default phx.frontend.implementActions({
69
68
  const x = hole.x + dx
70
69
  const y = hole.y + dy
71
70
 
72
- if (Math.abs(x) > 150 || Math.abs(y) > 150) {
71
+ if (x < 20 || x > 180 || y < 20 || y > 180) {
73
72
  throw new Error(
74
- `Nudging "${holeId}" by (${dx}, ${dy}) would put it at (${x}, ${y}), outside the plate. Keep both coordinates between -150 and 150.`
73
+ `Nudging "${holeId}" by (${dx}, ${dy}) would put it at (${x}, ${y}), outside the plate. Keep both coordinates between 20 and 180.`
75
74
  )
76
75
  }
77
76
 
78
77
  return {
79
78
  updates: [updates.DomainEntityModification({ entityId: hole.id, stateDelta: { x, y }, updateTag: 'nudgeHole' })],
80
- readResult: ({ state: nudged }) => ({
81
- hole: domain.get$Entity(holeId, nudged),
82
- plate: domain.getRoot$Entity(nudged),
83
- }),
79
+ readResult: ({ state: nudged }) => ({ hole: domain.get$Entity(holeId, nudged) }),
84
80
  }
85
81
  },
86
82
  })
87
83
  ```
88
84
 
89
- Throw to reject a call: the message reaches the user through the control's hint and the assistant through the failed mutation, so say what went wrong and what to send instead. An implementation of a name the spec does not declare is a type error. A declared action without an implementation is not: it stops the configurator from initializing, and under `phoenix dev` the editor reports it as a `MISSING_ACTION_IMPLEMENTATIONS` diagnostic and does not apply the change; an implementation of an undeclared name is logged.
85
+ Throw to reject a call: the message reaches the user through the control's hint and the assistant through the failed mutation, so say what went wrong and what to send instead.
86
+
87
+ The declared and the implemented actions have to match:
88
+
89
+ - **A declared action without an implementation** is not a type error. It stops the configurator from initializing, and under `phoenix dev` the editor reports it as a `MISSING_ACTION_IMPLEMENTATIONS` diagnostic and does not apply the change.
90
+ - **An implementation of a name the spec does not declare** is a type error. If it runs anyway, it is logged to the console and ignored.
90
91
 
91
92
  ## Use registered systems
92
93
 
93
- Actions execute in the browser, including custom mutations requested by the assistant. Their `systems` record combines the domain systems with the systems registered for that application slot, preserving the registered instances. Built-in extension capabilities are optional in the generated types because a runtime may omit the configurator extensions. Check that the capability is present before using it, and throw a clear error when the slot does not provide it.
94
+ The logic an action needs often exists already, in a system of the configurator, such as sketching or snapping. Call that system from the action. The action then follows the same rules as the control that uses the system, and you write them once.
95
+
96
+ The implementation gets the systems in its context, as `systems`. The record holds the domain systems and the systems registered for the configurator.
94
97
 
95
- For a railing action with a `lineId` and `length` parameter, prepare a resize with the existing sketching operation. The project declares the action and binds a `sketchingLine` component to its line entity, with a `sketching` definition using the same `railing` key (see [Sketching](?path=/docs/complex-use-cases-sketching--docs)):
98
+ Three rules apply to any system an action uses:
99
+
100
+ - **Check that the system is there.** The built-in extension systems are optional in the generated types, because a runtime can be set up without them. Throw a clear error when the system is missing.
101
+ - **Read from the `state` the action was given.** It is not always the committed state. The assistant can run several mutations in one transaction, and a later one gets the state the earlier ones produced. Pass `state` to every read, and avoid methods that read the committed state themselves.
102
+ - **Only prepare updates.** An action returns updates and never applies them. Do not call a method that stages, commits, rolls back or moves the camera.
103
+
104
+ This action sets the length of a sketched line through the sketching system, the same way the length input in the UI does:
96
105
 
97
106
  ```ts
98
107
  export default phx.frontend.implementActions({
@@ -106,15 +115,16 @@ export default phx.frontend.implementActions({
106
115
 
107
116
  return {
108
117
  updates: sketchingSystem.getLineLengthUpdates(length, line),
109
- readResult: () => ({ length }),
110
118
  }
111
119
  },
112
120
  })
113
121
  ```
114
122
 
115
- The line must come from projections evaluated on the supplied `state`. An assistant transaction may already have prepared earlier mutations on that working state. Use `getLineLengthUpdates`, `getRectangleWidthUpdates`, `getRectangleDepthUpdates`, `getConnectionAngleUpdate`, or `getMoveSketchingPointUpdates` with shapes from those projections. A method that reads committed state, such as `prepareInitialDrawingUpdates`, cannot prepare against the action's working state. Drawing operations that stage, commit, roll back, or change camera state also violate the action's preparation contract.
123
+ - **The `if`** covers the first rule.
124
+ - **`getEntityLine(lineId, state, 'railing')`** covers the second. It reads the line from the given `state`. `railing` is the key of the project's `sketching` definition.
125
+ - **`getLineLengthUpdates`** covers the third. It returns the updates for the new length and applies nothing.
116
126
 
117
- For a custom extension, check `'pricingSystem' in systems` and narrow `systems.pricingSystem` with a local type guard such as `isPricingSystem`. Register that system with `createApplicationRuntimeExtension({ pricingSystem })` in the runtime extension factory. Throw a clear error when the system is missing or does not match the expected type.
127
+ See [Sketching](?path=/docs/complex-use-cases-sketching--docs) for the system itself.
118
128
 
119
129
  ## Run it from the UI
120
130
 
@@ -140,7 +150,7 @@ export default phx.frontend.createCustomPhoenixEntityElement('NudgeControl', ({
140
150
 
141
151
  ## Expose it to the assistant
142
152
 
143
- Naming the action under `assistant.actions` adds a `Mutation` field with one argument per param and a `<Name>Result` type whose entity members are traversable edges. `as` renames the field, `description` replaces the action's.
153
+ Naming the action under `assistant.actions` lets the AI assistant run it too, through the same `prepareAction` and with the same message when a call is rejected:
144
154
 
145
155
  ```yaml
146
156
  assistant:
@@ -148,18 +158,7 @@ assistant:
148
158
  nudgeHole:
149
159
  ```
150
160
 
151
- ```graphql
152
- type Mutation {
153
- nudgeHole(holeId: ID!, dx: Int!, dy: Int!): NudgeHoleResult!
154
- }
155
-
156
- type NudgeHoleResult {
157
- hole: Hole!
158
- plate: Plate!
159
- }
160
- ```
161
-
162
- The field runs the same `prepareAction`, applies the updates through the same validation as every other mutation, and fails with the action's message when the call is rejected.
161
+ See [Actions](?path=/docs/phoenix-assistant-actions--docs) in the assistant docs for what the assistant gets from the declaration and how to shape an action for it.
163
162
 
164
163
  ## Known gaps
165
164
 
@@ -228,19 +227,15 @@ actions:
228
227
  description: The hole to move
229
228
  dx:
230
229
  type: integer
231
- description: Offset along the x axis, in plate units
230
+ description: Offset along the x axis, in plate units; positive moves right
232
231
  dy:
233
232
  type: integer
234
- description: Offset along the y axis, in plate units
233
+ description: Offset along the y axis, in plate units; positive moves up
235
234
  result:
236
235
  hole:
237
236
  $ref: phx:$DomainEntity
238
237
  references: Hole
239
238
  description: The hole at its new position
240
- plate:
241
- $ref: phx:$DomainEntity
242
- references: Plate
243
- description: The plate after the move
244
239
 
245
240
  assistant:
246
241
  ai:
@@ -253,7 +248,9 @@ assistant:
253
248
  description: The holes of the plate
254
249
  Hole:
255
250
  x:
251
+ description: Center of the hole from the left edge of the plate, in plate units
256
252
  y:
253
+ description: Center of the hole from the bottom edge of the plate, in plate units
257
254
  actions:
258
255
  nudgeHole:
259
256
 
@@ -264,12 +261,12 @@ presets:
264
261
  type: 'Plate'
265
262
  - id: 'Hole-1'
266
263
  type: 'Hole'
267
- x: -60
268
- y: 40
264
+ x: 40
265
+ y: 140
269
266
  - id: 'Hole-2'
270
267
  type: 'Hole'
271
- x: 70
272
- y: -50
268
+ x: 170
269
+ y: 50
273
270
 
274
271
  components:
275
272
  Plate:
@@ -328,8 +325,11 @@ components:
328
325
  ### ./src/actions/nudge-hole.ts
329
326
 
330
327
  ```ts
331
- /** How far a hole may sit from the plate's center on either axis, in plate units. */
332
- const REACH = 150
328
+ /** The plate is 200 units wide and high, measured from its lower left corner; a hole's center keeps this far from every edge. */
329
+ const MIN = 20
330
+ const MAX = 180
331
+
332
+ const isOnPlate = (coordinate: number) => coordinate >= MIN && coordinate <= MAX
333
333
 
334
334
  export default phx.frontend.implementActions({
335
335
  nudgeHole: ({ holeId, dx, dy }, state, { systems: { domain }, updates }) => {
@@ -345,18 +345,15 @@ export default phx.frontend.implementActions({
345
345
  const x = hole.x + dx
346
346
  const y = hole.y + dy
347
347
 
348
- if (Math.abs(x) > REACH || Math.abs(y) > REACH) {
348
+ if (!isOnPlate(x) || !isOnPlate(y)) {
349
349
  throw new Error(
350
- `Nudging "${holeId}" by (${dx}, ${dy}) would put it at (${x}, ${y}), outside the plate. Keep both coordinates between ${-REACH} and ${REACH}.`
350
+ `Nudging "${holeId}" by (${dx}, ${dy}) would put it at (${x}, ${y}), outside the plate. Keep both coordinates between ${MIN} and ${MAX}.`
351
351
  )
352
352
  }
353
353
 
354
354
  return {
355
355
  updates: [updates.DomainEntityModification({ entityId: hole.id, stateDelta: { x, y }, updateTag: 'nudgeHole' })],
356
- readResult: ({ state: nudged }) => ({
357
- hole: domain.get$Entity(holeId, nudged),
358
- plate: domain.getRoot$Entity(nudged),
359
- }),
356
+ readResult: ({ state: nudged }) => ({ hole: domain.get$Entity(holeId, nudged) }),
360
357
  }
361
358
  },
362
359
  })
@@ -107,47 +107,16 @@ Setting up admin functionality requires configuring authentication, domain model
107
107
 
108
108
  ### Authentication Setup
109
109
 
110
- Admin requires authentication that can assign admin roles to users. Clerk provides the most straightforward integration with Phoenix.
111
-
112
- See [Clerk Sign-In](?path=/docs/phoenix-clerk-sign-in--docs) for the inline Admin fallback page, generated publishable key, method configuration, and account-switching behavior.
113
-
114
- **Enable Auth Hook**: In phx-cli projects, authentication is configured in `spec/application.yaml`:
110
+ Admin requires authentication that can assign admin roles to users. The access mode in `spec/application.yaml` sets it up, and the project writes no auth code:
115
111
 
116
112
  ```yaml
117
113
  # spec/application.yaml
118
- useAuthHook: true
119
- useClerk: true
120
- ```
121
-
122
- phx-cli generates the frontend and webhook configuration in `.phoenix/` from your spec files, so the project writes no configuration file for it.
123
-
124
- **Webhook Auth Handler**: Create an auth handler for Clerk integration:
125
-
126
- ```typescript
127
- // src/webhooks/handlers/auth-handler.ts
128
- export const authHandler = phx.webhooks.authHandlerBuilder
129
- .withClerkSessionHandler() // Handles inline Clerk session exchange
130
- .withClerkCodeHandler() // Handles Clerk OAuth integration
131
- .withClerkRefreshHandler() // Handles Clerk token refresh
132
- .withAnonymousHandler(async () => {
133
- // Handle anonymous access (typically not allowed for admin)
134
- return {
135
- success: false,
136
- }
137
- })
138
- .build()
114
+ access: public # The default; invited and public-with-sign-in work the same for the admin
139
115
  ```
140
116
 
141
- **Clerk Integration**: In phx-cli projects, the webhook builders are generated into `.phoenix/webhook-builders.ts`, which sets the `phx.webhooks` global, so project code uses them without importing anything from `.phoenix/`. With `useClerk: true`, the Clerk credentials come from the workspace's Clerk settings in Studio and reach the webhook as generated variables; the project declares none of them.
142
-
143
- Register the auth handler in the webhook entry, the default export of `src/webhooks/index.ts`:
117
+ In `public`, `invited` and `public-with-sign-in` the admin signs in with a Studio account, and the person's Admin or Superadmin grant in the project opens it (see [Studio-account sign-in](?path=/docs/phoenix-webhooks--docs#studio-account-sign-in)). With `access: legacy-clerk` the built-in Clerk handlers sign the admin in instead, with credentials from the workspace's Clerk settings in Studio; see [Clerk Sign-In](?path=/docs/phoenix-clerk-sign-in--docs) for the inline Admin fallback page, generated publishable key, method configuration, and account-switching behavior. With `access: custom` the project's own code handler grants the admin role (see [Webhooks - Auth Hook](?path=/docs/phoenix-webhooks--docs#auth-hook)).
144
118
 
145
- ```typescript
146
- // src/webhooks/index.ts
147
- import { authHandler } from './handlers/auth-handler.js'
148
-
149
- export default phx.webhooks.webhookBuilder.withAuthHook(authHandler).build()
150
- ```
119
+ phx-cli generates the frontend and webhook configuration in `.phoenix/` from your spec files, so the project writes no configuration file for it.
151
120
 
152
121
  Admin publishing needs no builder: the SDK adds the Admin finalization to the webhook itself (see [Webhook Integration](#webhook-integration)).
153
122
 
@@ -365,13 +334,9 @@ Admin finalization needs nothing in your webhook entry: the SDK builds it and ad
365
334
 
366
335
  ```typescript
367
336
  // src/webhooks/index.ts
368
- import { authHandler } from './handlers/auth-handler.js'
369
337
  import { configuratorFinalizeHandler } from './handlers/configurator-finalize-handler.js'
370
338
 
371
- export default phx.webhooks.webhookBuilder
372
- .withAuthHook(authHandler)
373
- .withConfiguratorFinalize(configuratorFinalizeHandler)
374
- .build()
339
+ export default phx.webhooks.webhookBuilder.withConfiguratorFinalize(configuratorFinalizeHandler).build()
375
340
  ```
376
341
 
377
342
  You customize publishing only with handlers default-exported from files in `src/handlers/`, which join the webhook automatically: `phx.domain.admin.createMapPublishedRevisionDataHandler` or `phx.domain.admin.createMapPublishedChunkedDataHandler` for the published data, and `phx.domain.admin.createDataRowValidatorHandler` and `phx.domain.admin.createSheetValidatorHandler` for validating manual and connected data.
@@ -213,7 +213,7 @@ viewStates:
213
213
  - 'perspective' # Standard 3D perspective view
214
214
  ```
215
215
 
216
- View states are usually controlled via `viewControls` components but can also be changed programmatically when needed.
216
+ View states can be selected through a `viewControls` component or programmatically. A two-level control can also set an ephemeral child choice within the active view. See [Nested View Controls](?path=/docs/layouts-nested-view-controls--docs).
217
217
 
218
218
  **Camera Control Example**:
219
219