@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.
- package/README.md +3 -3
- package/dist/admin/common/admin-interface.d.ts +11 -1
- package/dist/admin/common/admin-interface.js +1 -1
- package/dist/admin/ui/layout/UserProfile.d.ts +1 -1
- package/dist/admin/ui/layout/UserProfile.js +1 -1
- package/dist/admin/ui/maintenance/ImportPresets.js +1 -1
- package/dist/application/mount-application.js +1 -1
- package/dist/application/mount-configurator.js +1 -1
- package/dist/application/studio-embedding.d.ts +6 -0
- package/dist/application/studio-embedding.js +1 -0
- package/dist/application-spec/core/enhanced-json-schema.d.ts +5 -6
- package/dist/application-spec/core/enhanced-json-schema.js +1 -1
- package/dist/application-spec/core/markers/index.d.ts +1 -0
- package/dist/application-spec/core/markers/index.js +1 -1
- package/dist/application-spec/core/markers/set-in-studio-marker.d.ts +15 -0
- package/dist/application-spec/core/markers/set-in-studio-marker.js +1 -0
- package/dist/application-spec/errors/diagnostic-codes.d.ts +16 -0
- package/dist/application-spec/errors/diagnostic-codes.js +1 -1
- package/dist/application-spec/errors/diagnostic-messages.d.ts +16 -0
- package/dist/application-spec/errors/diagnostic-messages.js +1 -1
- package/dist/application-spec/generate-application/code/domain-runtime-files.d.ts +3 -3
- package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
- package/dist/application-spec/generate-application/code/standalone-app-files.d.ts +0 -12
- package/dist/application-spec/generate-application/code/standalone-app-files.js +1 -1
- package/dist/application-spec/generate-application/code/templates/admin-config.d.ts +5 -1
- package/dist/application-spec/generate-application/code/templates/admin-config.js +4 -4
- package/dist/application-spec/generate-application/code/templates/application-types.js +5 -5
- package/dist/application-spec/generate-application/code/templates/configurator-config.js +6 -6
- package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.d.ts +1 -1
- package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +19 -0
- package/dist/application-spec/generate-application/code/templates/domain-spec.js +12 -12
- package/dist/application-spec/generate-application/code/templates/frontend-config.js +7 -3
- package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.d.ts +3 -3
- package/dist/application-spec/generate-application/code/templates/global-definition/generate-action-types.js +3 -3
- package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.d.ts +10 -6
- package/dist/application-spec/generate-application/code/templates/global-definition/generate-assistant-form-element-types.js +7 -7
- package/dist/application-spec/generate-application/code/templates/global-definition/generate-phx-types.js +12 -12
- package/dist/application-spec/generate-application/code/templates/globals.js +21 -12
- package/dist/application-spec/generate-application/code/templates/index.d.ts +1 -1
- package/dist/application-spec/generate-application/code/templates/index.js +1 -1
- package/dist/application-spec/generate-application/code/templates/sign-in-page-options.d.ts +5 -0
- package/dist/application-spec/generate-application/code/templates/sign-in-page-options.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/core/cli.d.ts +2 -1
- package/dist/application-spec/generate-application/code/templates/skills/core/cli.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/core/sdk.js +2 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/application-states/presets.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/application-states/views-and-tools.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/assistant/index.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/{custom-layout/assistant.d.ts → assistant/panel.d.ts} +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/assistant/panel.js +42 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/assistant/reading-and-changing.js +55 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/{webhooks/assistant-setup.d.ts → assistant/session-setup.d.ts} +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/assistant/session-setup.js +16 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/custom-layout.js +2 -2
- package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/sign-in.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/sign-in.js +19 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/actions.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/embedding.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/embedding.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/features.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.d.ts +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.js +32 -26
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.js +1 -3
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/publishing.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/session-fields.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/session-fields.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/guide.d.ts +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.d.ts +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/phoenix-skill-bundle.js +3 -3
- package/dist/application-spec/generate-application/code/templates/skills/processes/asset-conversion.js +3 -3
- package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/assistant-configuration.js +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/feedback/report.js +2 -2
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/handoff.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/index.d.ts +2 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/index.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/model-migration.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/appearance.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/code.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/scene-realism.js +29 -0
- package/dist/application-spec/generate-application/code/templates/skills/sdk-channel.d.ts +17 -0
- package/dist/application-spec/generate-application/code/templates/skills/sdk-channel.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/sdk-subpath-imports.js +1 -1
- package/dist/application-spec/generate-application/code/templates/webhook-builders.js +3 -2
- package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +1 -2
- package/dist/application-spec/generate-application/code/templates/webhook-index.js +3 -7
- package/dist/application-spec/generate-application/code/webhook-safe-files.d.ts +3 -1
- package/dist/application-spec/generate-application/code/webhook-safe-files.js +1 -1
- package/dist/application-spec/parse-application-files/access/access-handler-kinds.d.ts +18 -0
- package/dist/application-spec/parse-application-files/access/access-handler-kinds.js +1 -0
- package/dist/application-spec/parse-application-files/access/analyzed-file.d.ts +7 -0
- package/dist/application-spec/parse-application-files/access/analyzed-file.js +1 -0
- package/dist/application-spec/parse-application-files/access/check-access-handler-files.d.ts +20 -0
- package/dist/application-spec/parse-application-files/access/check-access-handler-files.js +1 -0
- package/dist/application-spec/parse-application-files/access/check-auth-hook-files.d.ts +17 -0
- package/dist/application-spec/parse-application-files/access/check-auth-hook-files.js +1 -0
- package/dist/application-spec/parse-application-files/access/index.d.ts +5 -0
- package/dist/application-spec/parse-application-files/access/index.js +1 -0
- package/dist/application-spec/parse-application-files/access/sign-in-control.d.ts +7 -0
- package/dist/application-spec/parse-application-files/access/sign-in-control.js +1 -0
- package/dist/application-spec/parse-application-files/categorize/categorize-files.d.ts +2 -1
- package/dist/application-spec/parse-application-files/categorize/categorize-files.js +1 -1
- package/dist/application-spec/parse-application-files/categorize/module-analysis.d.ts +30 -4
- package/dist/application-spec/parse-application-files/categorize/module-analysis.js +1 -1
- package/dist/application-spec/parse-application-files/categorize/webhook-safety.js +1 -1
- package/dist/application-spec/parse-application-files/merge/merged-app-metadata.d.ts +16 -1
- package/dist/application-spec/parse-application-files/merge/merged-app-metadata.js +1 -1
- package/dist/application-spec/parse-application-files/merge/merged-assistant.js +1 -1
- package/dist/application-spec/parse-application-files/merge/merged-spec.d.ts +7 -1
- package/dist/application-spec/parse-application-files/merge/merged-spec.js +1 -1
- package/dist/application-spec/parse-application-files/parse-application-files.js +1 -1
- package/dist/application-spec/parse-application-files/parse-common-admin-spec.js +1 -1
- package/dist/application-spec/parse-application-files/raw-spec/raw-actions.d.ts +3 -2
- package/dist/application-spec/parse-application-files/raw-spec/raw-actions.js +1 -1
- package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.d.ts +29 -6
- package/dist/application-spec/parse-application-files/raw-spec/raw-assistant.js +1 -1
- package/dist/application-spec/parse-application-files/raw-spec/raw-components.js +1 -1
- package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.d.ts +11 -3
- package/dist/application-spec/parse-application-files/raw-spec/raw-spec-file.js +1 -1
- package/dist/application-spec/parse-application-files/resolve/resolve-import-modules.js +1 -1
- package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.d.ts +6 -0
- package/dist/application-spec/parse-application-files/spec/application/configurator-spec/configurator-spec.js +1 -1
- package/dist/application-spec/parse-application-files/spec/model/index.d.ts +2 -1
- package/dist/application-spec/parse-application-files/spec/model/index.js +1 -1
- package/dist/application-spec/parse-application-files/spec/model/session-data-schema.d.ts +5 -2
- package/dist/application-spec/parse-application-files/spec/model/session-data-schema.js +1 -1
- package/dist/application-spec/parse-application-files/spec/model/session-fields/index.d.ts +1 -0
- package/dist/application-spec/parse-application-files/spec/model/session-fields/index.js +1 -0
- package/dist/application-spec/parse-application-files/spec/model/session-fields/session-fields.d.ts +15 -0
- package/dist/application-spec/parse-application-files/spec/model/session-fields/session-fields.js +1 -0
- package/dist/application-spec/parse-application-files/spec/relations/relations.js +1 -1
- package/dist/application-spec/parse-application-files/spec/sections/actions.js +1 -1
- package/dist/application-spec/parse-application-files/spec/sections/app-metadata.js +1 -1
- package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.d.ts +14 -2
- package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-form-elements.js +1 -1
- package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.d.ts +6 -9
- package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-schema.js +1 -1
- package/dist/application-spec/parse-application-files/spec/sections/assistant/index.d.ts +0 -1
- package/dist/client/authenticated-client.d.ts +5 -1
- package/dist/client/authenticated-client.js +1 -1
- package/dist/client/authorized-client.d.ts +3 -1
- package/dist/client/authorized-client.js +1 -1
- package/dist/client/base-client.d.ts +15 -1
- package/dist/client/base-client.js +1 -1
- package/dist/client/cli-client/cli-api-client.d.ts +17 -0
- package/dist/client/cli-client/cli-api-client.js +1 -0
- package/dist/client/cli-client/index.d.ts +2 -0
- package/dist/client/cli-client/index.js +1 -0
- package/dist/client/cli-client/unsupported-api-version-error.d.ts +11 -0
- package/dist/client/cli-client/unsupported-api-version-error.js +1 -0
- package/dist/client/contract.d.ts +39 -4
- package/dist/client/contract.js +1 -1
- package/dist/client/index.d.ts +3 -1
- package/dist/client/index.js +1 -1
- package/dist/client/phoenix-api.d.ts +7834 -2378
- package/dist/client/unauthenticated-client.d.ts +2 -1
- package/dist/client/unauthenticated-client.js +1 -1
- package/dist/client/version.d.ts +11 -0
- package/dist/client/version.js +1 -1
- package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/action-system/action.d.ts +16 -4
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +25 -10
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +15 -5
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.d.ts +1 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.d.ts +7 -3
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.js +6 -2
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/share-link.d.ts +14 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/share-link.js +2 -0
- package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.d.ts +41 -35
- package/dist/configurator/application-runtime/extensions/systems/camera-control-system/camera-control-system.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.d.ts +4 -2
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.d.ts +9 -3
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.d.ts +6 -3
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/export-image-capture.d.ts +15 -4
- package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/export-image-capture.js +3 -3
- package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.d.ts +15 -7
- package/dist/configurator/application-runtime/extensions/systems/image-rendering-system/image-rendering-system.js +1 -1
- package/dist/configurator/common/configurator-interface.d.ts +13 -1
- package/dist/configurator/common/configurator-interface.js +1 -1
- package/dist/configurator/scene/animations/Animations.js +1 -1
- package/dist/configurator/scene/cameras/CameraPadding.d.ts +5 -0
- package/dist/configurator/scene/cameras/CameraPadding.js +1 -1
- package/dist/configurator/scene/resources/use-phx-gltf.js +1 -1
- package/dist/configurator/scene/scene-entity/materials/LocalCreatedMaterial.js +1 -1
- package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.d.ts +5 -0
- package/dist/configurator/scene/scene-entity/materials/RemoteReplacedMaterial.js +1 -1
- package/dist/configurator/scene/scene-entity/materials/use-dispose-replaced.d.ts +27 -0
- package/dist/configurator/scene/scene-entity/materials/use-dispose-replaced.js +1 -0
- package/dist/configurator/toolbar-actions/use-toolbar-actions.js +1 -1
- package/dist/configurator/ui/assistant/AssistantComposer.js +1 -1
- package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
- package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.d.ts +6 -5
- package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.js +1 -1
- package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.d.ts +4 -3
- package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.js +1 -1
- package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.d.ts +5 -0
- package/dist/configurator/ui/assistant/annotation/editor/annotation-pins.js +1 -1
- package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerDialog.d.ts +10 -0
- package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerDialog.js +1 -0
- package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerLine.d.ts +10 -0
- package/dist/configurator/ui/assistant/disclaimer/AssistantDisclaimerLine.js +1 -0
- package/dist/configurator/ui/assistant/disclaimer/index.d.ts +2 -0
- package/dist/configurator/ui/assistant/disclaimer/index.js +1 -0
- package/dist/configurator/ui/assistant/drawing/AssistantDrawing.d.ts +2 -3
- package/dist/configurator/ui/assistant/drawing/AssistantDrawing.js +1 -1
- package/dist/configurator/ui/assistant/drawing/index.d.ts +1 -1
- package/dist/configurator/ui/assistant/drawing/index.js +1 -1
- package/dist/configurator/ui/assistant/drawing/use-drawing-url.d.ts +6 -12
- package/dist/configurator/ui/assistant/drawing/use-drawing-url.js +1 -1
- package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +11 -7
- package/dist/configurator/ui/assistant/form-elements/FormTile.js +1 -1
- package/dist/configurator/ui/assistant/image-view/ImageView.js +1 -1
- package/dist/configurator/ui/assistant/panel/AssistantPanelHeader.js +1 -1
- package/dist/configurator/ui/assistant/use-assistant-composer.d.ts +5 -0
- package/dist/configurator/ui/assistant/use-assistant-composer.js +2 -2
- package/dist/configurator/ui/configurator-layout/index.d.ts +1 -1
- package/dist/configurator/ui/configurator-layout/index.js +1 -1
- package/dist/configurator/ui/configurator-layout/slots/desktop-sidebar/DesktopSidebar.js +4 -4
- package/dist/configurator/ui/configurator-layout/slots/index.d.ts +2 -0
- package/dist/configurator/ui/configurator-layout/slots/index.js +1 -1
- package/dist/configurator/ui/configurator-layout/slots/view-controls/DesktopViewControls.js +1 -1
- package/dist/configurator/ui/configurator-layout/slots/view-controls/MobileViewControls.js +1 -1
- package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.d.ts +7 -0
- package/dist/configurator/ui/configurator-layout/slots/view-controls/NestedViewControls.js +1 -0
- package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.d.ts +6 -0
- package/dist/configurator/ui/configurator-layout/slots/view-controls/use-view-control-items.js +1 -0
- package/dist/configurator/ui/configurator-layout/universal/DesktopPreview.js +1 -1
- package/dist/configurator/ui/configurator-layout/universal/MobileLayout.js +3 -3
- package/dist/configurator/ui/configurator-layout/universal/MobilePreview.js +1 -1
- package/dist/configurator/ui/configurator-layout/universal/use-preview-description.d.ts +1 -0
- package/dist/configurator/ui/configurator-layout/universal/use-preview-description.js +1 -0
- package/dist/configurator/ui/index.d.ts +1 -1
- package/dist/configurator/ui/legacy/layout/common/ViewControls.js +1 -1
- package/dist/configurator/ui/phoenix-layout-elements/AssistantToolbarButton.js +1 -1
- package/dist/docs/index.json +117 -2
- package/dist/docs/layouts/nested-view-controls.mdx +223 -0
- package/dist/docs/layouts/preview/always.mdx +22 -0
- package/dist/docs/layouts/view-controls.mdx +2 -0
- package/dist/docs/other-features/domain-actions.mdx +53 -56
- package/dist/docs/phoenix/admin.mdx +5 -40
- package/dist/docs/phoenix/application-states.mdx +1 -1
- package/dist/docs/phoenix/assistant/actions.mdx +183 -0
- package/dist/docs/phoenix/assistant/changing-the-configuration.mdx +333 -0
- package/dist/docs/phoenix/assistant/instructions-and-ai-settings.mdx +221 -0
- package/dist/docs/phoenix/assistant/overview.mdx +137 -0
- package/dist/docs/phoenix/assistant/per-session-setup.mdx +166 -0
- package/dist/docs/phoenix/assistant/reading-the-configuration.mdx +349 -0
- package/dist/docs/phoenix/assistant/screenshots.mdx +135 -0
- package/dist/docs/phoenix/assistant/security-and-limits.mdx +151 -0
- package/dist/docs/phoenix/assistant/the-panel.mdx +298 -0
- package/dist/docs/phoenix/clerk-sign-in.mdx +9 -5
- package/dist/docs/phoenix/configurator-interface.mdx +18 -33
- package/dist/docs/phoenix/csp.mdx +3 -1
- package/dist/docs/phoenix/data-sources.mdx +26 -30
- package/dist/docs/phoenix/deployments.mdx +3 -3
- package/dist/docs/phoenix/finalization.mdx +0 -1
- package/dist/docs/phoenix/integration/authentication-external.mdx +17 -15
- package/dist/docs/phoenix/integration/authentication-internal.mdx +1 -1
- package/dist/docs/phoenix/integration/finalization-internal.mdx +1 -4
- package/dist/docs/phoenix/integration/integration-modes-external.mdx +2 -2
- package/dist/docs/phoenix/integration/integration-modes-internal.mdx +9 -0
- package/dist/docs/phoenix/layout-slots.mdx +1 -1
- package/dist/docs/phoenix/migrations.mdx +1 -1
- package/dist/docs/phoenix/phoenix-cli.mdx +90 -57
- package/dist/docs/phoenix/project-structure.mdx +30 -15
- package/dist/docs/phoenix/publishing.mdx +21 -28
- package/dist/docs/phoenix/sdk-builder-workflow.mdx +51 -34
- package/dist/docs/phoenix/sessions-and-access.mdx +171 -164
- package/dist/docs/phoenix/webhook-membership.mdx +4 -1
- package/dist/docs/phoenix/webhooks.mdx +93 -116
- package/dist/docs/ux-guidelines/interaction-modes.mdx +2 -2
- package/dist/domain/application/access/access-handlers.d.ts +19 -0
- package/dist/domain/application/access/access-handlers.js +1 -0
- package/dist/domain/application/access/anonymous-handler.d.ts +16 -0
- package/dist/domain/application/access/anonymous-handler.js +1 -0
- package/dist/domain/application/access/chunk-scopes-handler.d.ts +27 -0
- package/dist/domain/application/access/chunk-scopes-handler.js +1 -0
- package/dist/domain/application/access/code-handler.d.ts +16 -0
- package/dist/domain/application/access/code-handler.js +1 -0
- package/dist/domain/application/access/index.d.ts +7 -0
- package/dist/domain/application/access/index.js +1 -0
- package/dist/domain/application/access/refresh-handler.d.ts +16 -0
- package/dist/domain/application/access/refresh-handler.js +1 -0
- package/dist/domain/application/access/signed-in-handler.d.ts +44 -0
- package/dist/domain/application/access/signed-in-handler.js +1 -0
- package/dist/domain/application/access/visitor-handler.d.ts +23 -0
- package/dist/domain/application/access/visitor-handler.js +1 -0
- package/dist/domain/application/application-config.d.ts +36 -1
- package/dist/domain/application/assistant/assistant-exposure.d.ts +22 -0
- package/dist/domain/application/assistant/assistant-exposure.js +1 -0
- package/dist/domain/application/assistant/build-assistant-lenses.js +3 -3
- package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
- package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +6 -2
- package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
- package/dist/domain/application/assistant/index.d.ts +1 -0
- package/dist/domain/application/assistant/index.js +1 -1
- package/dist/domain/application/assistant/session-setup/apply-assistant-setup.js +1 -1
- package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.d.ts +14 -2
- package/dist/domain/application/assistant/session-setup/assistant-setup-manifest.js +1 -1
- package/dist/domain/application/assistant/session-setup/assistant-takes-images.d.ts +7 -0
- package/dist/domain/application/assistant/session-setup/assistant-takes-images.js +1 -0
- package/dist/domain/application/assistant/session-setup/index.d.ts +1 -0
- package/dist/domain/application/assistant/session-setup/index.js +1 -1
- package/dist/domain/application/assistant-mutations.js +1 -1
- package/dist/domain/application/assistant-recipe-groups.d.ts +4 -3
- package/dist/domain/application/assistant-recipe-groups.js +1 -1
- package/dist/domain/application/configurator-builder.d.ts +2 -0
- package/dist/domain/application/configurator-builder.js +1 -1
- package/dist/domain/application/index.d.ts +2 -1
- package/dist/domain/application/index.js +1 -1
- package/dist/domain/application/standard-properties.d.ts +1 -1
- package/dist/domain/application/standard-properties.js +1 -1
- package/dist/domain/available-system-components/available-system-components.js +1 -1
- package/dist/domain/core/component/system-component-filter.d.ts +1 -0
- package/dist/domain/core/component/system-component-filter.js +1 -1
- package/dist/domain/core/component/view-state-component.d.ts +4 -3
- package/dist/domain/core/component/view-state-component.js +1 -1
- package/dist/domain/core/domain-factory.d.ts +6 -0
- package/dist/domain/core/domain-factory.js +1 -1
- package/dist/domain/core/fit-session-data.d.ts +16 -0
- package/dist/domain/core/fit-session-data.js +1 -0
- package/dist/domain/domain-context/navigation-system/navigation-system.d.ts +2 -2
- package/dist/domain/domain-context/navigation-system/navigation-system.js +1 -1
- package/dist/domain/domain-context/transformers/when-builder.js +1 -1
- package/dist/domain/domain-runtime/domain-context/actions.d.ts +4 -0
- package/dist/domain/domain-runtime/domain-context/actions.js +1 -1
- package/dist/domain/domain-runtime/domain-context/domain-context.d.ts +8 -0
- package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
- package/dist/domain/domain-runtime/domain-context/selectors.d.ts +1 -0
- package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
- package/dist/domain/domain-runtime/domain-context/types.d.ts +8 -4
- package/dist/domain/domain-runtime/domain-runtime.d.ts +8 -0
- package/dist/domain/extensions/export-images/agent-screenshot.d.ts +5 -4
- package/dist/domain/extensions/export-images/agent-screenshot.js +1 -1
- package/dist/domain/extensions/index.d.ts +0 -1
- package/dist/domain/extensions/index.js +1 -1
- package/dist/domain/mocks/create-mock-domain-runtime.d.ts +4 -0
- package/dist/domain/spec/sections/actions.d.ts +3 -2
- package/dist/domain/spec/sections/app-metadata.d.ts +12 -0
- package/dist/domain/spec/sections/assistant/assistant-features.d.ts +13 -0
- package/dist/domain/spec/sections/assistant/assistant-features.js +1 -0
- package/dist/domain/spec/sections/assistant/assistant-manifest.d.ts +17 -6
- package/dist/domain/spec/sections/assistant/assistant-resolved-manifest.d.ts +28 -5
- package/dist/domain/spec/sections/assistant/index.d.ts +1 -0
- package/dist/domain/system-components/index.d.ts +1 -0
- package/dist/domain/system-components/index.js +1 -1
- package/dist/domain/system-components/navigation/index.d.ts +1 -0
- package/dist/domain/system-components/navigation/index.js +1 -0
- package/dist/domain/system-components/navigation/view-controls.d.ts +24 -0
- package/dist/domain/system-components/navigation/view-controls.js +1 -0
- package/dist/editor/domain-editors/use-implementation-files.js +1 -1
- package/dist/extras/clerk/index.d.ts +6 -0
- package/dist/extras/cognito/AccountAvatar.d.ts +7 -0
- package/dist/extras/cognito/AccountAvatar.js +1 -0
- package/dist/extras/cognito/AccountControl.d.ts +14 -0
- package/dist/extras/cognito/AccountControl.js +1 -0
- package/dist/extras/cognito/AdminSignInPage.d.ts +26 -0
- package/dist/extras/cognito/AdminSignInPage.js +1 -0
- package/dist/extras/cognito/CognitoSignInPage.d.ts +8 -2
- package/dist/extras/cognito/CognitoSignInPage.js +1 -1
- package/dist/extras/cognito/ConfiguratorSignInPage.d.ts +19 -0
- package/dist/extras/cognito/ConfiguratorSignInPage.js +1 -0
- package/dist/extras/cognito/SignInFailurePage.d.ts +11 -0
- package/dist/extras/cognito/SignInFailurePage.js +1 -0
- package/dist/extras/cognito/SignInGateLayout.d.ts +25 -0
- package/dist/extras/cognito/SignInGateLayout.js +1 -0
- package/dist/extras/cognito/SignInNotice.d.ts +9 -0
- package/dist/extras/cognito/SignInNotice.js +1 -0
- package/dist/extras/cognito/index.d.ts +4 -0
- package/dist/extras/cognito/index.js +1 -1
- package/dist/globals/index.d.ts +5 -0
- package/dist/i18n/locales/cs/messages.js +1 -1
- package/dist/i18n/locales/da/messages.js +1 -1
- package/dist/i18n/locales/de/messages.js +1 -1
- package/dist/i18n/locales/de-AT/messages.js +1 -1
- package/dist/i18n/locales/en/messages.js +1 -1
- package/dist/i18n/locales/en-AU/messages.js +1 -1
- package/dist/i18n/locales/en-GB/messages.js +1 -1
- package/dist/i18n/locales/es/messages.js +1 -1
- package/dist/i18n/locales/fr/messages.js +1 -1
- package/dist/i18n/locales/hu/messages.js +1 -1
- package/dist/i18n/locales/it/messages.js +1 -1
- package/dist/i18n/locales/nl/messages.js +1 -1
- package/dist/i18n/locales/pl/messages.js +1 -1
- package/dist/i18n/locales/pt/messages.js +1 -1
- package/dist/i18n/locales/ro/messages.js +1 -1
- package/dist/i18n/locales/sk/messages.js +1 -1
- package/dist/i18n/locales/tr/messages.js +1 -1
- package/dist/legacy/deployment-cli/commands/create-environment.js +1 -1
- package/dist/legacy/deployment-cli/commands/list-environments.js +1 -1
- package/dist/legacy/deployment-cli/commands/register-deployment.js +1 -1
- package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +12 -3
- package/dist/legacy/phoenix-cli/commands/prepare-deployment-command.js +1 -1
- package/dist/legacy/phoenix-cli/commands/prepare-local-environment-command.js +1 -1
- package/dist/legacy/phoenix-cli/services/prepare-development-environment.js +1 -1
- package/dist/legacy/phoenix-cli/services/webhook-service/transport.js +1 -1
- package/dist/phoenix/application-spec/index.d.ts +1 -1
- package/dist/phoenix/application-spec/index.js +1 -1
- package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +10 -3
- package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
- package/dist/phoenix/cli.js +1 -1
- package/dist/phoenix/commands/account/whoami.d.ts +8 -2
- package/dist/phoenix/commands/account/whoami.js +4 -3
- package/dist/phoenix/commands/cleanup-environment.js +1 -1
- package/dist/phoenix/commands/deploy.d.ts +7 -2
- package/dist/phoenix/commands/deploy.js +9 -3
- package/dist/phoenix/commands/deployment-build-envs-command.js +1 -1
- package/dist/phoenix/commands/deps/deps.js +2 -2
- package/dist/phoenix/commands/feedback.d.ts +2 -2
- package/dist/phoenix/commands/feedback.js +1 -1
- package/dist/phoenix/commands/finish-deployment-command.js +1 -1
- package/dist/phoenix/commands/init-starter-spec.js +3 -4
- package/dist/phoenix/commands/init.d.ts +2 -2
- package/dist/phoenix/commands/init.js +1 -1
- package/dist/phoenix/commands/login.d.ts +1 -1
- package/dist/phoenix/commands/login.js +2 -2
- package/dist/phoenix/commands/logout.js +1 -1
- package/dist/phoenix/commands/prepare-deployment-command.js +2 -2
- package/dist/phoenix/commands/prepare-local-environment-command.js +1 -1
- package/dist/phoenix/services/cli-credentials.d.ts +13 -2
- package/dist/phoenix/services/cli-credentials.js +2 -2
- package/dist/phoenix/services/cli-server/describe-saved-logins.d.ts +5 -0
- package/dist/phoenix/services/cli-server/describe-saved-logins.js +1 -0
- package/dist/phoenix/services/cli-server/index.d.ts +2 -0
- package/dist/phoenix/services/cli-server/index.js +1 -0
- package/dist/phoenix/services/cli-server/resolve-cli-server-url.d.ts +25 -0
- package/dist/phoenix/services/cli-server/resolve-cli-server-url.js +1 -0
- package/dist/phoenix/services/development-credential.js +1 -1
- package/dist/phoenix/services/frontend-config.d.ts +2 -0
- package/dist/phoenix/services/index.d.ts +4 -2
- package/dist/phoenix/services/index.js +1 -1
- package/dist/phoenix/services/phoenix-regions.d.ts +15 -5
- package/dist/phoenix/services/phoenix-regions.js +1 -1
- package/dist/phoenix/services/prepare-development-environment.js +2 -2
- package/dist/phoenix/services/session/phoenix-application.js +1 -1
- package/dist/phoenix/services/signed-in-development-environment.d.ts +15 -4
- package/dist/phoenix/services/signed-in-development-environment.js +1 -1
- package/dist/phoenix/services/spec-project/describe-workspace-projects.d.ts +11 -0
- package/dist/phoenix/services/spec-project/describe-workspace-projects.js +1 -0
- package/dist/phoenix/services/spec-project/index.d.ts +3 -0
- package/dist/phoenix/services/spec-project/index.js +1 -0
- package/dist/phoenix/services/spec-project/resolve-deploy-target.d.ts +47 -0
- package/dist/phoenix/services/spec-project/resolve-deploy-target.js +1 -0
- package/dist/phoenix/services/spec-project/resolve-target-project.d.ts +34 -0
- package/dist/phoenix/services/spec-project/resolve-target-project.js +2 -0
- package/dist/phoenix/services/spec-project/write-spec-project.d.ts +7 -0
- package/dist/phoenix/services/spec-project/write-spec-project.js +1 -0
- package/dist/phoenix/services/variant-file-session.js +1 -1
- package/dist/phoenix/services/vite-config.js +1 -1
- package/dist/phoenix/services/webhook-service/transport.js +1 -1
- package/dist/react-sdk/application-runtime/common-services/selectors.js +1 -1
- package/dist/react-sdk/application-runtime/domain-application-context/configuration-persist-system.d.ts +6 -0
- package/dist/react-sdk/application-runtime/domain-application-context/configuration-persist-system.js +1 -1
- package/dist/react-sdk/application-runtime/host-properties/selectors.d.ts +2 -2
- package/dist/react-sdk/application-runtime/integration/integration-mode.d.ts +30 -0
- package/dist/react-sdk/application-runtime/integration/integration-mode.js +1 -1
- package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +20 -6
- package/dist/react-sdk/application-runtime/session/actions.d.ts +2 -1
- package/dist/react-sdk/application-runtime/session/actions.js +1 -1
- package/dist/react-sdk/application-runtime/session/initialize.js +1 -1
- package/dist/react-sdk/application-runtime/session/selectors.d.ts +2 -0
- package/dist/react-sdk/application-runtime/session/selectors.js +1 -1
- package/dist/react-sdk/application-runtime/session/session-service.d.ts +64 -2
- package/dist/react-sdk/application-runtime/session/session-service.js +1 -1
- package/dist/react-sdk/application-runtime/session/session-token.d.ts +8 -0
- package/dist/react-sdk/application-runtime/session/session-token.js +1 -1
- package/dist/react-sdk/application-runtime/session/types.d.ts +6 -1
- package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +1 -0
- package/dist/react-sdk/domain-context/index.d.ts +3 -2
- package/dist/react-sdk/domain-context/index.js +1 -1
- package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.d.ts +1 -5
- package/dist/react-sdk/domain-context/system-hooks/generate-share-link-hooks.js +1 -1
- package/dist/react-sdk/domain-context/system-hooks/generate-share-link.d.ts +25 -0
- package/dist/react-sdk/domain-context/system-hooks/generate-share-link.js +1 -0
- package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.d.ts +5 -3
- package/dist/react-sdk/domain-context/system-hooks/navigation-hooks.js +1 -1
- package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -1
- package/dist/react-sdk/session/AccessDeniedAdminPage.d.ts +13 -0
- package/dist/react-sdk/session/AccessDeniedAdminPage.js +1 -0
- package/dist/react-sdk/session/AccessDeniedPage.d.ts +20 -0
- package/dist/react-sdk/session/AccessDeniedPage.js +1 -0
- package/dist/react-sdk/session/ConfiguratorUnavailablePage.d.ts +5 -0
- package/dist/react-sdk/session/ConfiguratorUnavailablePage.js +1 -0
- package/dist/react-sdk/session/SessionServiceProvider.d.ts +5 -0
- package/dist/react-sdk/session/SessionServiceProvider.js +1 -1
- package/dist/react-sdk/session/index.d.ts +3 -0
- package/dist/react-sdk/session/index.js +1 -1
- package/dist/react-sdk/session/server-sign-in-support.d.ts +16 -0
- package/dist/react-sdk/session/server-sign-in-support.js +1 -0
- package/dist/react-sdk/session/sign-in-address.d.ts +18 -0
- package/dist/react-sdk/session/sign-in-address.js +1 -0
- package/dist/react-sdk/session/studio-frame.d.ts +14 -0
- package/dist/react-sdk/session/studio-frame.js +1 -0
- package/dist/react-sdk/session/use-sign-in.d.ts +51 -0
- package/dist/react-sdk/session/use-sign-in.js +1 -0
- package/dist/ui-sdk/components/preview/Preview.d.ts +12 -4
- package/dist/ui-sdk/components/preview/Preview.js +2 -2
- package/dist/ui-sdk/components/snackbar/Snackbar.d.ts +3 -2
- package/dist/ui-sdk/components/snackbar/Snackbar.js +1 -1
- package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.d.ts +2 -0
- package/dist/ui-sdk/components/toolbar/desktop-toolbar/ToolbarPopper.js +1 -1
- package/dist/ui-sdk/components/view-controls/ViewControlsContext.d.ts +3 -1
- package/dist/ui-sdk/components/view-controls/ViewControlsItem.js +1 -1
- package/dist/ui-sdk/components/view-controls/ViewControlsRoot.d.ts +6 -1
- package/dist/ui-sdk/components/view-controls/ViewControlsRoot.js +1 -1
- package/dist/webhook/builders/auth-handler-builder.d.ts +21 -1
- package/dist/webhook/builders/auth-handler-builder.js +1 -1
- package/dist/webhook/builders/common.d.ts +9 -0
- package/dist/webhook/builders/webhook-builder.d.ts +18 -0
- package/dist/webhook/builders/webhook-builder.js +1 -1
- package/package.json +5 -4
- package/schema/domain-spec.json +224 -65
- package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/assistant.js +0 -43
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/assistant-setup.js +0 -32
- package/dist/application-spec/generate-application/code/templates/skills/processes/beta.d.ts +0 -14
- package/dist/application-spec/generate-application/code/templates/skills/processes/beta.js +0 -4
- package/dist/domain/extensions/view-controls.d.ts +0 -25
- package/dist/domain/extensions/view-controls.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./common/index.js";export{attributeSwitchComponent}from"./attribute-switch.js";export{childEntityRecipeHierarchyComponent,isChildEntityRecipeHierarchySnapshot,isChildEntityRecipeHierarchyInstance}from"./child-entity-recipe-hierarchy.js";export{dimensionIndicatorComponent,isDimensionIndicatorSnapshot}from"./dimension-indicator.js";export{angleIndicatorComponent,isAngleIndicatorSnapshot}from"./angle-indicator.js";export{editableAngleIndicatorComponent,isEditableAngleIndicatorSnapshot}from"./editable-angle-indicator.js";export{editableDistanceDimensionIndicatorComponent,isEditableDistanceDimensionIndicatorSnapshot}from"./editable-distance-dimension-indicator.js";export{editableSizeIndicatorComponent,isEditableSizeIndicatorSnapshot}from"./editable-size-indicator.js";export{editableOffsetIndicatorComponent,isEditableOffsetIndicatorSnapshot}from"./editable-offset-indicator.js";export{offsetAnchorsComponent,isOffsetAnchorsSnapshot}from"./offset-anchors.js";export{offsetIndicatorComponent,isOffsetIndicatorSnapshot}from"./offset-indicator.js";export{listSelectorDimensionIndicatorComponent,isListSelectorDimensionIndicatorSnapshot}from"./list-selector-dimension-indicator.js";export{replaceEntityRecipeHierarchyComponent,isReplaceEntityRecipeHierarchySnapshot,isReplaceEntityRecipeHierarchyInstance}from"./replace-entity-recipe-hierarchy.js";export{rotatableComponent}from"./rotatable.js";export{isSceneEntityAddFabComponentSnapshot,sceneEntityAddFabComponent}from"./scene-entity-add-fab.js";export{isSceneEntityDeleteFabComponentSnapshot,sceneEntityDeleteFabComponent}from"./scene-entity-delete-fab.js";export{isSceneEntityNavigationHotspotComponentSnapshot,sceneEntityNavigationHotspotComponent}from"./scene-entity-navigation-hotspot.js";export{htmlHotspotComponent,isHtmlHotspotComponentSnapshot,isHtmlHotspotComponentInstance}from"./scene-entity-html-hotspot.js";export{sceneEntityObjectHtmlHotspotComponent,isSceneEntityObjectHtmlHotspotComponentSnapshot,isSceneEntityObjectHtmlHotspotComponentInstance}from"./scene-entity-object-html-hotspot.js";export{isSceneEntitySelectHotspotComponentSnapshot,sceneEntitySelectHotspotComponent}from"./scene-entity-select-hotspot.js";export{customPriceFooterComponent}from"./custom-price-footer.js";export{entityHeaderComponent}from"./entity-header.js";export{finalizeButtonComponent,finalizePageComponent}from"./finalize-component.js";export{fitSelectionOrthographicCameraComponent,isFitSelectionOrthographicCameraComponent}from"./fit-selection-orthographic-camera-component.js";export{fitSelectionPerspectiveCameraComponent,isFitSelectionPerspectiveCameraComponent}from"./fit-selection-perspective-camera-component.js";export{autorotateCameraComponent,isAutorotateCameraComponent}from"./autorotate-camera-component.js";export{selectableComponent}from"./selectable-component.js";export{sizeComponent,isSizeSnapshot,isSizeInstance}from"./size.js";export{offsetComponent,isOffsetSnapshot,isOffsetInstance}from"./offset.js";export{navigationStepsComponent}from"./navigation-steps.js";export{propertyPageComponent,isPropertyPageSnapshot,isPropertyPageInstance}from"./property-page.js";export{rotationHandleComponent}from"./rotation-handle.js";export{sceneEntityAnimationComponent}from"./scene-entity-animation.js";export{sidebarTabsComponent,isSidebarTabsSnapshot,isSidebarTabsInstance}from"./sidebar-tabs.js";export{isSimpleSummaryComponentSnapshot,simpleSummaryComponent}from"./simple-summary.js";export{customSummaryPageComponent,isCustomSummaryComponentSnapshot}from"./summary-component.js";export{colorValueComponent}from"./color-value.js";export{textValueComponent}from"./text-value.js";export{toolControlsComponent}from"./tool-controls.js";export{
|
|
1
|
+
export*from"./common/index.js";export{attributeSwitchComponent}from"./attribute-switch.js";export{childEntityRecipeHierarchyComponent,isChildEntityRecipeHierarchySnapshot,isChildEntityRecipeHierarchyInstance}from"./child-entity-recipe-hierarchy.js";export{dimensionIndicatorComponent,isDimensionIndicatorSnapshot}from"./dimension-indicator.js";export{angleIndicatorComponent,isAngleIndicatorSnapshot}from"./angle-indicator.js";export{editableAngleIndicatorComponent,isEditableAngleIndicatorSnapshot}from"./editable-angle-indicator.js";export{editableDistanceDimensionIndicatorComponent,isEditableDistanceDimensionIndicatorSnapshot}from"./editable-distance-dimension-indicator.js";export{editableSizeIndicatorComponent,isEditableSizeIndicatorSnapshot}from"./editable-size-indicator.js";export{editableOffsetIndicatorComponent,isEditableOffsetIndicatorSnapshot}from"./editable-offset-indicator.js";export{offsetAnchorsComponent,isOffsetAnchorsSnapshot}from"./offset-anchors.js";export{offsetIndicatorComponent,isOffsetIndicatorSnapshot}from"./offset-indicator.js";export{listSelectorDimensionIndicatorComponent,isListSelectorDimensionIndicatorSnapshot}from"./list-selector-dimension-indicator.js";export{replaceEntityRecipeHierarchyComponent,isReplaceEntityRecipeHierarchySnapshot,isReplaceEntityRecipeHierarchyInstance}from"./replace-entity-recipe-hierarchy.js";export{rotatableComponent}from"./rotatable.js";export{isSceneEntityAddFabComponentSnapshot,sceneEntityAddFabComponent}from"./scene-entity-add-fab.js";export{isSceneEntityDeleteFabComponentSnapshot,sceneEntityDeleteFabComponent}from"./scene-entity-delete-fab.js";export{isSceneEntityNavigationHotspotComponentSnapshot,sceneEntityNavigationHotspotComponent}from"./scene-entity-navigation-hotspot.js";export{htmlHotspotComponent,isHtmlHotspotComponentSnapshot,isHtmlHotspotComponentInstance}from"./scene-entity-html-hotspot.js";export{sceneEntityObjectHtmlHotspotComponent,isSceneEntityObjectHtmlHotspotComponentSnapshot,isSceneEntityObjectHtmlHotspotComponentInstance}from"./scene-entity-object-html-hotspot.js";export{isSceneEntitySelectHotspotComponentSnapshot,sceneEntitySelectHotspotComponent}from"./scene-entity-select-hotspot.js";export{customPriceFooterComponent}from"./custom-price-footer.js";export{entityHeaderComponent}from"./entity-header.js";export{finalizeButtonComponent,finalizePageComponent}from"./finalize-component.js";export{fitSelectionOrthographicCameraComponent,isFitSelectionOrthographicCameraComponent}from"./fit-selection-orthographic-camera-component.js";export{fitSelectionPerspectiveCameraComponent,isFitSelectionPerspectiveCameraComponent}from"./fit-selection-perspective-camera-component.js";export{autorotateCameraComponent,isAutorotateCameraComponent}from"./autorotate-camera-component.js";export{selectableComponent}from"./selectable-component.js";export{sizeComponent,isSizeSnapshot,isSizeInstance}from"./size.js";export{offsetComponent,isOffsetSnapshot,isOffsetInstance}from"./offset.js";export{navigationStepsComponent}from"./navigation-steps.js";export{propertyPageComponent,isPropertyPageSnapshot,isPropertyPageInstance}from"./property-page.js";export{rotationHandleComponent}from"./rotation-handle.js";export{sceneEntityAnimationComponent}from"./scene-entity-animation.js";export{sidebarTabsComponent,isSidebarTabsSnapshot,isSidebarTabsInstance}from"./sidebar-tabs.js";export{isSimpleSummaryComponentSnapshot,simpleSummaryComponent}from"./simple-summary.js";export{customSummaryPageComponent,isCustomSummaryComponentSnapshot}from"./summary-component.js";export{colorValueComponent}from"./color-value.js";export{textValueComponent}from"./text-value.js";export{toolControlsComponent}from"./tool-controls.js";export{multilingualTextValueComponent}from"./multilingual-text-value.js";export{isSceneEntityFloorObjectComponent,sceneEntityFloorObjectComponent}from"./scene-entity-floor-object.js";export{isSceneEntityWallObjectComponent,sceneEntityWallObjectComponent}from"./scene-entity-wall-object.js";export{isSketchingDrawSnapshot,isSketchingDrawInstance,sketchingDrawComponent}from"./sketching-draw.js";export{isSketchingEditSnapshot,isSketchingEditInstance,sketchingEditComponent}from"./sketching-edit.js";export{toolbarComponent,isToolbarSnapshot,isToolbarInstance}from"./toolbar.js";export{finalizeActionComponent,isFinalizeActionSnapshot,isFinalizeActionInstance}from"./finalize-action.js";export{otherActionComponent,isOtherActionSnapshot,isOtherActionInstance}from"./other-action.js";export{hiddenSidebarFooterComponent,isHiddenSidebarFooterSnapshot,isHiddenSidebarFooterInstance}from"./hidden-sidebar-footer.js";export{universalSidebarFooterComponent,isUniversalSidebarFooterSnapshot,isUniversalSidebarFooterInstance}from"./universal-sidebar-footer.js";export{basicSidebarFooterComponent,isBasicSidebarFooterSnapshot,isBasicSidebarFooterInstance}from"./basic-sidebar-footer.js";export{readSidebarFooterComponent,isReadSidebarFooterSnapshot,isReadSidebarFooterInstance}from"./read-sidebar-footer.js";export{customSidebarFooterComponent,isCustomSidebarFooterSnapshot,isCustomSidebarFooterInstance}from"./custom-sidebar-footer.js";export{canvasPaddingComponent,isCanvasPaddingInstance,isCanvasPaddingSnapshot}from"./canvas-padding.js";export{floatingHeaderComponent,isFloatingHeaderSnapshot,isFloatingHeaderInstance}from"./floating-header.js";export{customHeaderComponent,isCustomHeaderSnapshot,isCustomHeaderInstance}from"./custom-header.js";export{fixedHeaderComponent,isFixedHeaderSnapshot,isFixedHeaderInstance}from"./fixed-header.js";export{hiddenHeaderComponent,isHiddenHeaderSnapshot,isHiddenHeaderInstance}from"./hidden-header.js";export{horizontalTabsComponent,isHorizontalTabsSnapshot,isHorizontalTabsInstance}from"./horizontal-tabs.js";export{canvasConfigComponent,isCanvasConfigInstance,isCanvasConfigSnapshot}from"./canvas-config.js";export{canvasPresetEnvironmentComponent,isCanvasPresetEnvironmentInstance,isCanvasPresetEnvironmentSnapshot}from"./canvas-preset-environment.js";export{canvasCustomEnvironmentComponent,isCanvasCustomEnvironmentInstance,isCanvasCustomEnvironmentSnapshot}from"./canvas-custom-environment.js";export{toolMenuFabComponent,isToolMenuFabComponentSnapshot,isToolMenuFabComponentInstance}from"./tool-menu-fab.js";export{exitToolModeFabComponent,isExitToolModeFabComponentSnapshot,isExitToolModeFabComponentInstance}from"./exit-tool-mode-fab.js";export{assistantGreetingComponent}from"./assistant/index.js";export{AGENT_SCREENSHOT_MAX_SIDE,agentScreenshotComponent,clientSideImageComponent,saveTemplateThumbnailComponent}from"./export-images/index.js";export{cameraBasedHiddenEntityComponent,isCameraBasedHiddenEntityComponent}from"./camera-based-hidden-entity.js";export{cameraBasedHiddenEntityObjectComponent,isCameraBasedHiddenEntityObjectComponent}from"./camera-based-hidden-entity-object.js";export{sceneEntityControlComponent,isSceneEntityControlComponentSnapshot,isSceneEntityControlComponentInstance}from"./scene-entity-control.js";
|
|
@@ -403,6 +403,7 @@ export declare const createMockDomainRuntime: <ENTITIES extends DomainEntity<str
|
|
|
403
403
|
selectActiveSessionData: import("@salsita-ai/common/utils").Selector<import("../index.js").DomainContextSelectorState, Record<string, unknown>>;
|
|
404
404
|
selectExpressionContext: import("@salsita-ai/common/utils").Selector<import("../index.js").DomainContextSelectorState, import("../index.js").AnyExpressionContext>;
|
|
405
405
|
getInitializationContext: () => import("../index.js").DomainContextInitializationContext | null;
|
|
406
|
+
getLatestSessionContext: () => import("../index.js").DomainSessionContext | null;
|
|
406
407
|
getInitializationState: () => import("../index.js").DomainContextInitializationState;
|
|
407
408
|
getNextInitializationContext: () => import("../index.js").DomainContextInitializationContext;
|
|
408
409
|
getLatestLoadedData: () => import("../index.js").ConfiguratorLoadedData | null;
|
|
@@ -513,6 +514,7 @@ export declare const createMockDomainRuntime: <ENTITIES extends DomainEntity<str
|
|
|
513
514
|
selectActiveSessionData: import("@salsita-ai/common/utils").Selector<import("../index.js").DomainContextSelectorState, Record<string, unknown>>;
|
|
514
515
|
selectExpressionContext: import("@salsita-ai/common/utils").Selector<import("../index.js").DomainContextSelectorState, import("../index.js").AnyExpressionContext>;
|
|
515
516
|
getInitializationContext: () => import("../index.js").DomainContextInitializationContext | null;
|
|
517
|
+
getLatestSessionContext: () => import("../index.js").DomainSessionContext | null;
|
|
516
518
|
getInitializationState: () => import("../index.js").DomainContextInitializationState;
|
|
517
519
|
getNextInitializationContext: () => import("../index.js").DomainContextInitializationContext;
|
|
518
520
|
getLatestLoadedData: () => import("../index.js").ConfiguratorLoadedData | null;
|
|
@@ -625,12 +627,14 @@ export declare const createMockDomainRuntime: <ENTITIES extends DomainEntity<str
|
|
|
625
627
|
failInitialization: () => void;
|
|
626
628
|
setExecutionMode: (executionMode: import("../index.js").DomainExecutionMode) => void;
|
|
627
629
|
setInitializationContext: (initializationContext: import("../index.js").DomainContextInitializationContext) => void;
|
|
630
|
+
updateSessionInputs: (role: import("@salsita-ai/contracts/api").SessionRole, sessionData: Record<string, unknown>) => void;
|
|
628
631
|
};
|
|
629
632
|
admin: {
|
|
630
633
|
completeInitialization: () => void;
|
|
631
634
|
failInitialization: () => void;
|
|
632
635
|
setExecutionMode: (executionMode: import("../index.js").DomainExecutionMode) => void;
|
|
633
636
|
setInitializationContext: (initializationContext: import("../index.js").DomainContextInitializationContext) => void;
|
|
637
|
+
updateSessionInputs: (role: import("@salsita-ai/contracts/api").SessionRole, sessionData: Record<string, unknown>) => void;
|
|
634
638
|
};
|
|
635
639
|
};
|
|
636
640
|
};
|
|
@@ -9,14 +9,15 @@ export interface ActionParam {
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* One validated action declaration. `params` and `result` keep the enhanced schemas for codegen and
|
|
12
|
-
* for consumers that expose the action; `
|
|
12
|
+
* for consumers that expose the action; `result` is absent when the action reports nothing (its
|
|
13
|
+
* result type is `void`, and it returns no `readResult`); `paramsSchema` is the AJV-ready object schema of the parameters, with the
|
|
13
14
|
* refs resolved into `$defs`, which the action system validates the arguments of a call against.
|
|
14
15
|
*/
|
|
15
16
|
export type Action = Branded<'Action', {
|
|
16
17
|
readonly name: ActionName;
|
|
17
18
|
readonly description?: string;
|
|
18
19
|
readonly params: Readonly<Record<string, ActionParam>>;
|
|
19
|
-
readonly result
|
|
20
|
+
readonly result?: Readonly<Record<string, EnhancedJsonSchemaType>>;
|
|
20
21
|
readonly paramsSchema: JsonSchema;
|
|
21
22
|
}>;
|
|
22
23
|
/** The validated `actions` section: every declared action by name, in declaration order; empty when the spec declares none. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Branded } from '@salsita-ai/common/utils';
|
|
2
|
+
import type { AccessMode } from '@salsita-ai/contracts/domain';
|
|
2
3
|
import type { ApplicationVersion } from './application-version.js';
|
|
3
4
|
/**
|
|
4
5
|
* Validated application metadata — version, auth, infrastructure settings.
|
|
@@ -9,11 +10,22 @@ export type AppMetadata = Branded<'AppMetadata', {
|
|
|
9
10
|
readonly workspace: boolean;
|
|
10
11
|
readonly webComponentTag: string | undefined;
|
|
11
12
|
readonly pageTitle: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Who can open the configurator and who signs its users in: the spec's `access`, or the mode its deprecated auth
|
|
15
|
+
* flags map to. Deployments register it, and the three flags below are derived from it for generation and for
|
|
16
|
+
* servers older than the setting.
|
|
17
|
+
*/
|
|
18
|
+
readonly access: AccessMode;
|
|
19
|
+
/** Whether every configurator session goes through the webhook's auth handler; true in every mode. */
|
|
12
20
|
readonly useAuthHook: boolean;
|
|
21
|
+
/** Whether the built-in Clerk handlers sign people in: Legacy Clerk. */
|
|
13
22
|
readonly useClerk: boolean;
|
|
23
|
+
/** Whether Studio accounts sign configurator users in: Invited only and Public with sign-in. */
|
|
14
24
|
readonly useCognito: boolean;
|
|
15
25
|
readonly enableAdminRelease: boolean;
|
|
16
26
|
readonly jsonSchemaValidator: 'ajv' | 'csp-compatible';
|
|
17
27
|
readonly gltfDecoder: 'js' | 'wasm';
|
|
28
|
+
readonly gltfDecoderWorkerLimit: number;
|
|
29
|
+
readonly exportPixelRatio: number | undefined;
|
|
18
30
|
readonly collectFinalizeData: boolean;
|
|
19
31
|
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A part of the assistant panel an integrator can switch off under `assistant.features`, on unless the
|
|
3
|
+
* spec or a session setup turns it off: `drawings` and `forms` are what the assistant may put in a
|
|
4
|
+
* reply, `images` the images the user attaches, `annotations` what the user marks up.
|
|
5
|
+
*/
|
|
6
|
+
export type AssistantFeature = 'drawings' | 'forms' | 'images' | 'annotations';
|
|
7
|
+
/**
|
|
8
|
+
* Which parts of the assistant panel are on. The prompt leaves out what an off feature would teach the
|
|
9
|
+
* assistant, and the panel hides its controls; every flag is always present.
|
|
10
|
+
*/
|
|
11
|
+
export type AssistantFeatures = {
|
|
12
|
+
readonly [FEATURE in AssistantFeature]: boolean;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AssistantFeatures } from './assistant-features.js';
|
|
1
2
|
import type { AssistantNavigation } from './assistant-navigation.js';
|
|
2
3
|
import type { AssistantSelectTarget } from './assistant-select.js';
|
|
3
4
|
import type { AssistantFormElementDescriptor } from './form/index.js';
|
|
@@ -59,9 +60,11 @@ export interface AssistantScreenshotView {
|
|
|
59
60
|
readonly description: string;
|
|
60
61
|
}
|
|
61
62
|
/**
|
|
62
|
-
*
|
|
63
|
+
* Assistant manifest generated from the application spec `assistant` section. `sdl` is
|
|
63
64
|
* the GraphQL schema text rebuilt from the resolved manifest; `fields` maps each GraphQL object type's exposed
|
|
64
|
-
* fields (type name → GraphQL field name) to the stored field or expression its resolvers read
|
|
65
|
+
* fields (type name → GraphQL field name) to the stored field or expression its resolvers read, and
|
|
66
|
+
* has an entry for every exposed entity type, and for `OtherEntity` when a type is not exposed: an
|
|
67
|
+
* entity whose type has no entry resolves as `OtherEntity` and is left out of change results;
|
|
65
68
|
* `deletableTypes` lists the entity types the `deleteEntity` mutation may delete, with aliases
|
|
66
69
|
* already expanded, and absent means none; `writableFields` maps, per entity type with a
|
|
67
70
|
* `modify<Type>` mutation, each field of its delta input to the stored property it writes, and
|
|
@@ -108,11 +111,19 @@ export interface AssistantManifest {
|
|
|
108
111
|
* their agents can read it.
|
|
109
112
|
*/
|
|
110
113
|
readonly instructions?: string;
|
|
111
|
-
/**
|
|
112
|
-
|
|
114
|
+
/**
|
|
115
|
+
* Whether the WebMCP tools are offered: `false` when the spec or the session setup turned them off. A
|
|
116
|
+
* manifest built by an older SDK has no `webmcp`, which means they are offered.
|
|
117
|
+
*/
|
|
118
|
+
readonly webmcp?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* The parts of the assistant panel that are on: the prompt leaves out the sections of those that are off,
|
|
121
|
+
* and the panel hides their controls.
|
|
122
|
+
*/
|
|
123
|
+
readonly features: AssistantFeatures;
|
|
113
124
|
}
|
|
114
125
|
/**
|
|
115
126
|
* An assistant manifest as `buildAssistantManifest` builds it: every capability listed, empty where
|
|
116
|
-
* the spec declares none,
|
|
127
|
+
* the spec declares none, and `webmcp` always set, while `instructions` stays absent unless the spec sets it.
|
|
117
128
|
*/
|
|
118
|
-
export type BuiltAssistantManifest = Required<Omit<AssistantManifest, 'instructions'
|
|
129
|
+
export type BuiltAssistantManifest = Required<Omit<AssistantManifest, 'instructions'>> & Pick<AssistantManifest, 'instructions'>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AssistantFeatures } from './assistant-features.js';
|
|
1
2
|
import type { AssistantFieldOptions, AssistantRecipeGroup, AssistantResolvedHint, AssistantScreenshotView } from './assistant-manifest.js';
|
|
2
3
|
import type { AssistantNavigation } from './assistant-navigation.js';
|
|
3
4
|
import type { AssistantSelectTarget } from './assistant-select.js';
|
|
@@ -51,6 +52,13 @@ export interface AssistantStates {
|
|
|
51
52
|
export interface AssistantResolvedManifest {
|
|
52
53
|
readonly declarations: AssistantDeclarations;
|
|
53
54
|
readonly entityTypes: readonly string[];
|
|
55
|
+
/**
|
|
56
|
+
* The entity types that get their own object type in the schema, in model order: the root types
|
|
57
|
+
* and the types an assistant section names, directly or through an alias, so naming
|
|
58
|
+
* `AnyDomainEntity` exposes every type. Every other type collapses into `OtherEntity`, and change results leave its
|
|
59
|
+
* entities out. Absent means every entity type is exposed.
|
|
60
|
+
*/
|
|
61
|
+
readonly exposedTypes?: readonly string[];
|
|
54
62
|
readonly aliases: Readonly<Record<string, readonly string[]>>;
|
|
55
63
|
readonly exampleType?: string;
|
|
56
64
|
readonly fields: Readonly<Record<string, readonly AssistantResolvedField[]>>;
|
|
@@ -73,7 +81,7 @@ export interface AssistantResolvedManifest {
|
|
|
73
81
|
* manifest order, each with its member types. Kept by key, so the session setup narrows it as it is.
|
|
74
82
|
*/
|
|
75
83
|
readonly select: readonly AssistantSelectTarget[];
|
|
76
|
-
/** The entity types that declare invariants, whose `meta` lists the warnings and notices they hold. */
|
|
84
|
+
/** The entity types that declare invariants, whose `meta` lists the warnings and notices they hold when the type is exposed. */
|
|
77
85
|
readonly invariantTypes: readonly string[];
|
|
78
86
|
/** The declared lenses by name: when to use each, and how many levels its tagged relations nest. */
|
|
79
87
|
readonly lenses: Readonly<Record<string, {
|
|
@@ -84,8 +92,13 @@ export interface AssistantResolvedManifest {
|
|
|
84
92
|
readonly formElements: readonly AssistantFormElementDescriptor[];
|
|
85
93
|
/** The integrator's guidance for the assistant; absent means none. Serialized into the application bundle like the rest. */
|
|
86
94
|
readonly instructions?: string;
|
|
87
|
-
/**
|
|
88
|
-
|
|
95
|
+
/**
|
|
96
|
+
* Whether the WebMCP tools are offered: `false` when the spec or the session setup turned them off. An
|
|
97
|
+
* application generated by an older SDK has no `webmcp`, which means they are offered.
|
|
98
|
+
*/
|
|
99
|
+
readonly webmcp: boolean;
|
|
100
|
+
/** The parts of the assistant panel that are on, after the spec and the session setup switched some off. */
|
|
101
|
+
readonly features: AssistantFeatures;
|
|
89
102
|
}
|
|
90
103
|
/** Optional mutation input for one stored field, using its exposed name. */
|
|
91
104
|
export interface AssistantWritableField {
|
|
@@ -114,7 +127,10 @@ export type AssistantResolvedActionResult = (AssistantEdgeType & {
|
|
|
114
127
|
readonly type: AssistantValueType;
|
|
115
128
|
readonly description?: string;
|
|
116
129
|
};
|
|
117
|
-
/**
|
|
130
|
+
/**
|
|
131
|
+
* A custom mutation resolved against the declared action, independent of its implementation.
|
|
132
|
+
* `result` is absent when the action declares none: the mutation then returns `Boolean!`.
|
|
133
|
+
*/
|
|
118
134
|
export interface AssistantResolvedAction {
|
|
119
135
|
readonly fieldName: string;
|
|
120
136
|
readonly actionName: string;
|
|
@@ -123,7 +139,7 @@ export interface AssistantResolvedAction {
|
|
|
123
139
|
readonly type: AssistantValueType;
|
|
124
140
|
readonly description?: string;
|
|
125
141
|
}>>;
|
|
126
|
-
readonly result
|
|
142
|
+
readonly result?: Readonly<Record<string, AssistantResolvedActionResult>>;
|
|
127
143
|
}
|
|
128
144
|
/** Immutable, validated declaration bindings retained before alias expansion for session narrowing. */
|
|
129
145
|
export interface AssistantDeclarations {
|
|
@@ -145,6 +161,13 @@ export interface AssistantDeclaredField extends AssistantResolvedField {
|
|
|
145
161
|
/** Stored-property types and component bindings, resolved separately for each concrete member. */
|
|
146
162
|
export interface AssistantDeclaredWrite {
|
|
147
163
|
readonly members: Readonly<Record<string, {
|
|
164
|
+
/**
|
|
165
|
+
* Whether the `writable` entry has its own description, which `field` carries. Without one,
|
|
166
|
+
* an exposed delta field takes the description of the field it is exposed as.
|
|
167
|
+
*/
|
|
168
|
+
readonly describedByManifest?: boolean;
|
|
169
|
+
/** The values the member's own schema allows, which the delta field lists after the description it takes. */
|
|
170
|
+
readonly enumValues?: readonly string[];
|
|
148
171
|
readonly exposedDescription?: string;
|
|
149
172
|
readonly field: AssistantWritableField;
|
|
150
173
|
readonly options?: AssistantResolvedOptionsEdge;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { ASSISTANT_HINTS } from './assistant-manifest.js';
|
|
2
|
+
export type { AssistantFeature, AssistantFeatures } from './assistant-features.js';
|
|
2
3
|
export type { AssistantNavigation, AssistantNavigationTarget } from './assistant-navigation.js';
|
|
3
4
|
export type { AssistantSelectTarget } from './assistant-select.js';
|
|
4
5
|
export type { AssistantResolvedManifest, AssistantDeclaredField, AssistantDeclarations, AssistantDeclaredWrite, AssistantResolvedField, AssistantValueType, AssistantEdgeType, AssistantStates, AssistantWritableType, AssistantWritableField, AssistantResolvedRecipes, AssistantResolvedOptionsEdge, AssistantResolvedAction, AssistantResolvedActionResult, } from './assistant-resolved-manifest.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './common/index.js';
|
|
2
|
+
export * from './navigation/index.js';
|
|
2
3
|
export * from './phoenix-entity-elements/index.js';
|
|
3
4
|
export * from './phoenix-layout-elements/index.js';
|
|
4
5
|
export { attributeSelectionComponent, type AttributeSelectionComponent, type AttributeSelectionComponentState, type AttributeSelectionOption, } from './attribute-selection.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./common/index.js";export*from"./phoenix-entity-elements/index.js";export*from"./phoenix-layout-elements/index.js";export{attributeSelectionComponent}from"./attribute-selection.js";export{childEntityRecipesComponent,isChildEntityRecipesSnapshot,isChildEntityRecipesInstance}from"./child-entity-recipes.js";export{childEntitySelectionComponent}from"./child-entity-selection.js";export{customSceneEntityComponent,isCustomSceneEntityInstance,isCustomSceneEntitySnapshot}from"./custom-scene-entity.js";export{detailComponent}from"./detail.js";export{distanceDimensionComponent,isDistanceDimensionInstance,isDistanceDimensionSnapshot}from"./distance-dimension.js";export{genericDimensionComponent,isGenericDimensionInstance,isGenericDimensionSnapshot}from"./generic-dimension.js";export{angleDimensionComponent,isAngleDimensionInstance,isAngleDimensionSnapshot}from"./angle-dimension.js";export{distanceDimensionSelectComponent,isDistanceDimensionSelectInstance,isDistanceDimensionSelectSnapshot}from"./distance-dimension-select.js";export{materialSwatchComponent}from"./material-swatch.js";export{isPriceComponentSnapshot,priceComponent}from"./price.js";export{replaceEntityRecipesComponent,isReplaceEntityRecipesSnapshot,isReplaceEntityRecipesInstance}from"./replace-entity-recipes.js";export{isSceneEntityMaterialOverrideComponent,sceneEntityMaterialOverrideComponent}from"./scene-entity-material-override.js";export{isSceneEntityLocalMaterialOverrideComponentSnapshot,sceneEntityLocalMaterialOverrideComponent}from"./scene-entity-local-material-override.js";export{isSceneEntityRemoteMaterialOverrideComponentSnapshot,sceneEntityRemoteMaterialOverrideComponent}from"./scene-entity-remote-material-override.js";export{adminSidebarComponent}from"./admin-sidebar.js";export{applicationConfigComponent,isApplicationConfigInstance,isApplicationConfigSnapshot}from"./application-config.js";export{boundingBoxComponent,isBoundingBoxComponent}from"./bounding-box-component.js";export{boundingSphereComponent,isBoundingSphereComponent}from"./bounding-sphere-component.js";export{collisionGeometryComponent,isCollisionGeometryComponent}from"./collision-geometry.js";export{collisionBoxGeometryComponent,isCollisionBoxGeometryComponent}from"./collision-box-geometry.js";export{collisionPointGeometryComponent,isCollisionPointGeometryComponent}from"./collision-point-geometry.js";export{buildCollisionGeometry,distributeCollisionGeometrySnapshots}from"./collision-geometries.js";export{pivotPointComponent,isPivotPointSnapshot,isPivotPointInstance}from"./pivot-point.js";export{constraintComponent,isConstraintComponent}from"./constraint.js";export{snapPointComponent,isSnapPointSnapshot,isSnapPointInstance}from"./snap-point.js";export{snapEdgeComponent,isSnapEdgeComponentSnapshot,isSnapEdgeComponentInstance}from"./snap-edge.js";export{snapPlaneComponent,isSnapPlaneComponentSnapshot,isSnapPlaneComponentInstance}from"./snap-plane.js";export{snapAxisComponent,isSnapAxisComponentSnapshot,isSnapAxisComponentInstance}from"./snap-axis.js";export{dragHandleComponent,DraggableUpdateTag,TransientDraggableUpdateTag,isDragHandleSnapshot,isDragHandleInstance}from"./drag-handle.js";export{hotspotDragHandleComponent,isHotspotDragHandleSnapshot,isHotspotDragHandleInstance,isHotspotDragHandleModification,HotspotDragHandleVariant}from"./hotspot-drag-handle.js";export{fitRootOrthographicCameraComponent,isFitRootOrthographicCameraComponent}from"./fit-root-orthographic-camera-component.js";export{fitRootPerspectiveCameraComponent,isFitRootPerspectiveCameraComponent}from"./fit-root-perspective-camera-component.js";export{fitEntityPerspectiveCameraComponent,isFitEntityPerspectiveCameraComponentSnapshot,isFitEntityPerspectiveCameraComponentInstance}from"./fit-entity-perspective-camera-component.js";export{fitEntityOrthographicCameraComponent,isFitEntityOrthographicCameraComponentSnapshot,isFitEntityOrthographicCameraComponentInstance}from"./fit-entity-orthographic-camera-component.js";export{materialOverridePropertyTransitionComponent}from"./material-override-property-transition.js";export{materialOverrideTransformerComponent}from"./material-override-transformer.js";export{navigationPageComponent}from"./navigation-page.js";export{navigationPanelListComponent}from"./navigation-panel-list.js";export{isSceneEntityAmbientLightComponent,sceneEntityAmbientLightComponent}from"./scene-entity-ambient-light.js";export{isSceneEntityDirectionalLightComponent,sceneEntityDirectionalLightComponent}from"./scene-entity-directional-light.js";export{isSceneEntityPointLightComponent,sceneEntityPointLightComponent}from"./scene-entity-point-light.js";export{isSceneEntityRectAreaLightComponent,sceneEntityRectAreaLightComponent}from"./scene-entity-rect-area-light.js";export{isSceneEntitySpotLightComponent,sceneEntitySpotLightComponent}from"./scene-entity-spot-light.js";export{isSceneEntityObjectComponent,sceneEntityObjectComponent}from"./scene-entity-object.js";export{sceneEntityObjectClipComponent}from"./scene-entity-object-clip.js";export{sceneEntityObjectDecalComponent}from"./scene-entity-object-decal.js";export{isSceneEntityObjectGroupComponent,sceneEntityObjectGroupComponent}from"./scene-entity-object-group.js";export{isSceneEntityObjectMaterialOverrideComponent,sceneEntityObjectMaterialOverrideComponent}from"./scene-entity-object-material-override.js";export{isSceneEntityObjectLocalMaterialOverrideComponentSnapshot,sceneEntityObjectLocalMaterialOverrideComponent}from"./scene-entity-object-local-material-override.js";export{isSceneEntityObjectPropertiesComponent,sceneEntityObjectPropertiesComponent}from"./scene-entity-object-properties.js";export{isSceneEntityObjectRemoteMaterialOverrideComponentSnapshot,sceneEntityObjectRemoteMaterialOverrideComponent}from"./scene-entity-object-remote-material-override.js";export{sceneEntityObjectTextDecalComponent}from"./scene-entity-object-text-decal.js";export{sceneEntityObjectTransformerComponent}from"./scene-entity-object-transformer.js";export{isSceneEntityObjectTransmissiveMaterialOverrideSnapshot,sceneEntityObjectTransmissiveMaterialOverrideComponent}from"./scene-entity-object-transimissive-material-override.js";export{sceneEntityPropertiesComponent}from"./scene-entity-properties.js";export{isSceneEntityRemoteObjectComponent,sceneEntityRemoteObjectComponent}from"./scene-entity-remote-object.js";export{isSceneEntityTransmissiveMaterialOverrideSnapshot,sceneEntityTransmissiveMaterialOverrideComponent}from"./scene-entity-transimissive-material-override.js";export{isStaticOrthographicCameraComponent,staticOrthographicCameraComponent}from"./static-orthographic-camera-component.js";export{isStaticPerspectiveCameraComponent,staticPerspectiveCameraComponent}from"./static-perspective-camera-component.js";export{isSceneEntityBoxObjectComponent,sceneEntityBoxObjectComponent}from"./scene-entity-box-object.js";export{isSketchingLineModification,isSketchingLineSnapshot,isSketchingLineInstance,sketchingLineComponent}from"./sketching-line.js";export{isSketchingRectangleModification,isSketchingRectangleSnapshot,isSketchingRectangleInstance,sketchingRectangleComponent}from"./sketching-rectangle.js";export{isSketchingSnapshot,isSketchingInstance,sketchingComponent}from"./sketching.js";export{hiddenEntityComponent,isHiddenEntitySnapshot}from"./hidden-entity.js";export{projectedEntitiesComponent,isProjectedEntitiesSnapshot,isProjectedEntitiesInstance}from"./projected-entities.js";export{createBlueprintFactory}from"./create-blueprint.js";
|
|
1
|
+
export*from"./common/index.js";export*from"./navigation/index.js";export*from"./phoenix-entity-elements/index.js";export*from"./phoenix-layout-elements/index.js";export{attributeSelectionComponent}from"./attribute-selection.js";export{childEntityRecipesComponent,isChildEntityRecipesSnapshot,isChildEntityRecipesInstance}from"./child-entity-recipes.js";export{childEntitySelectionComponent}from"./child-entity-selection.js";export{customSceneEntityComponent,isCustomSceneEntityInstance,isCustomSceneEntitySnapshot}from"./custom-scene-entity.js";export{detailComponent}from"./detail.js";export{distanceDimensionComponent,isDistanceDimensionInstance,isDistanceDimensionSnapshot}from"./distance-dimension.js";export{genericDimensionComponent,isGenericDimensionInstance,isGenericDimensionSnapshot}from"./generic-dimension.js";export{angleDimensionComponent,isAngleDimensionInstance,isAngleDimensionSnapshot}from"./angle-dimension.js";export{distanceDimensionSelectComponent,isDistanceDimensionSelectInstance,isDistanceDimensionSelectSnapshot}from"./distance-dimension-select.js";export{materialSwatchComponent}from"./material-swatch.js";export{isPriceComponentSnapshot,priceComponent}from"./price.js";export{replaceEntityRecipesComponent,isReplaceEntityRecipesSnapshot,isReplaceEntityRecipesInstance}from"./replace-entity-recipes.js";export{isSceneEntityMaterialOverrideComponent,sceneEntityMaterialOverrideComponent}from"./scene-entity-material-override.js";export{isSceneEntityLocalMaterialOverrideComponentSnapshot,sceneEntityLocalMaterialOverrideComponent}from"./scene-entity-local-material-override.js";export{isSceneEntityRemoteMaterialOverrideComponentSnapshot,sceneEntityRemoteMaterialOverrideComponent}from"./scene-entity-remote-material-override.js";export{adminSidebarComponent}from"./admin-sidebar.js";export{applicationConfigComponent,isApplicationConfigInstance,isApplicationConfigSnapshot}from"./application-config.js";export{boundingBoxComponent,isBoundingBoxComponent}from"./bounding-box-component.js";export{boundingSphereComponent,isBoundingSphereComponent}from"./bounding-sphere-component.js";export{collisionGeometryComponent,isCollisionGeometryComponent}from"./collision-geometry.js";export{collisionBoxGeometryComponent,isCollisionBoxGeometryComponent}from"./collision-box-geometry.js";export{collisionPointGeometryComponent,isCollisionPointGeometryComponent}from"./collision-point-geometry.js";export{buildCollisionGeometry,distributeCollisionGeometrySnapshots}from"./collision-geometries.js";export{pivotPointComponent,isPivotPointSnapshot,isPivotPointInstance}from"./pivot-point.js";export{constraintComponent,isConstraintComponent}from"./constraint.js";export{snapPointComponent,isSnapPointSnapshot,isSnapPointInstance}from"./snap-point.js";export{snapEdgeComponent,isSnapEdgeComponentSnapshot,isSnapEdgeComponentInstance}from"./snap-edge.js";export{snapPlaneComponent,isSnapPlaneComponentSnapshot,isSnapPlaneComponentInstance}from"./snap-plane.js";export{snapAxisComponent,isSnapAxisComponentSnapshot,isSnapAxisComponentInstance}from"./snap-axis.js";export{dragHandleComponent,DraggableUpdateTag,TransientDraggableUpdateTag,isDragHandleSnapshot,isDragHandleInstance}from"./drag-handle.js";export{hotspotDragHandleComponent,isHotspotDragHandleSnapshot,isHotspotDragHandleInstance,isHotspotDragHandleModification,HotspotDragHandleVariant}from"./hotspot-drag-handle.js";export{fitRootOrthographicCameraComponent,isFitRootOrthographicCameraComponent}from"./fit-root-orthographic-camera-component.js";export{fitRootPerspectiveCameraComponent,isFitRootPerspectiveCameraComponent}from"./fit-root-perspective-camera-component.js";export{fitEntityPerspectiveCameraComponent,isFitEntityPerspectiveCameraComponentSnapshot,isFitEntityPerspectiveCameraComponentInstance}from"./fit-entity-perspective-camera-component.js";export{fitEntityOrthographicCameraComponent,isFitEntityOrthographicCameraComponentSnapshot,isFitEntityOrthographicCameraComponentInstance}from"./fit-entity-orthographic-camera-component.js";export{materialOverridePropertyTransitionComponent}from"./material-override-property-transition.js";export{materialOverrideTransformerComponent}from"./material-override-transformer.js";export{navigationPageComponent}from"./navigation-page.js";export{navigationPanelListComponent}from"./navigation-panel-list.js";export{isSceneEntityAmbientLightComponent,sceneEntityAmbientLightComponent}from"./scene-entity-ambient-light.js";export{isSceneEntityDirectionalLightComponent,sceneEntityDirectionalLightComponent}from"./scene-entity-directional-light.js";export{isSceneEntityPointLightComponent,sceneEntityPointLightComponent}from"./scene-entity-point-light.js";export{isSceneEntityRectAreaLightComponent,sceneEntityRectAreaLightComponent}from"./scene-entity-rect-area-light.js";export{isSceneEntitySpotLightComponent,sceneEntitySpotLightComponent}from"./scene-entity-spot-light.js";export{isSceneEntityObjectComponent,sceneEntityObjectComponent}from"./scene-entity-object.js";export{sceneEntityObjectClipComponent}from"./scene-entity-object-clip.js";export{sceneEntityObjectDecalComponent}from"./scene-entity-object-decal.js";export{isSceneEntityObjectGroupComponent,sceneEntityObjectGroupComponent}from"./scene-entity-object-group.js";export{isSceneEntityObjectMaterialOverrideComponent,sceneEntityObjectMaterialOverrideComponent}from"./scene-entity-object-material-override.js";export{isSceneEntityObjectLocalMaterialOverrideComponentSnapshot,sceneEntityObjectLocalMaterialOverrideComponent}from"./scene-entity-object-local-material-override.js";export{isSceneEntityObjectPropertiesComponent,sceneEntityObjectPropertiesComponent}from"./scene-entity-object-properties.js";export{isSceneEntityObjectRemoteMaterialOverrideComponentSnapshot,sceneEntityObjectRemoteMaterialOverrideComponent}from"./scene-entity-object-remote-material-override.js";export{sceneEntityObjectTextDecalComponent}from"./scene-entity-object-text-decal.js";export{sceneEntityObjectTransformerComponent}from"./scene-entity-object-transformer.js";export{isSceneEntityObjectTransmissiveMaterialOverrideSnapshot,sceneEntityObjectTransmissiveMaterialOverrideComponent}from"./scene-entity-object-transimissive-material-override.js";export{sceneEntityPropertiesComponent}from"./scene-entity-properties.js";export{isSceneEntityRemoteObjectComponent,sceneEntityRemoteObjectComponent}from"./scene-entity-remote-object.js";export{isSceneEntityTransmissiveMaterialOverrideSnapshot,sceneEntityTransmissiveMaterialOverrideComponent}from"./scene-entity-transimissive-material-override.js";export{isStaticOrthographicCameraComponent,staticOrthographicCameraComponent}from"./static-orthographic-camera-component.js";export{isStaticPerspectiveCameraComponent,staticPerspectiveCameraComponent}from"./static-perspective-camera-component.js";export{isSceneEntityBoxObjectComponent,sceneEntityBoxObjectComponent}from"./scene-entity-box-object.js";export{isSketchingLineModification,isSketchingLineSnapshot,isSketchingLineInstance,sketchingLineComponent}from"./sketching-line.js";export{isSketchingRectangleModification,isSketchingRectangleSnapshot,isSketchingRectangleInstance,sketchingRectangleComponent}from"./sketching-rectangle.js";export{isSketchingSnapshot,isSketchingInstance,sketchingComponent}from"./sketching.js";export{hiddenEntityComponent,isHiddenEntitySnapshot}from"./hidden-entity.js";export{projectedEntitiesComponent,isProjectedEntitiesSnapshot,isProjectedEntitiesInstance}from"./projected-entities.js";export{createBlueprintFactory}from"./create-blueprint.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { viewControlsComponent, type ViewControlChild, type ViewControlItem, type ViewControlsComponent, type ViewControlsComponentState, } from './view-controls.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{viewControlsComponent}from"./view-controls.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Localizable } from '@salsita-ai/common/utils';
|
|
2
|
+
export interface ViewControlChild {
|
|
3
|
+
readonly label: Localizable;
|
|
4
|
+
readonly value: string;
|
|
5
|
+
readonly icon?: string;
|
|
6
|
+
}
|
|
7
|
+
export type ViewControlItem = {
|
|
8
|
+
readonly label: Localizable;
|
|
9
|
+
readonly icon: string;
|
|
10
|
+
} & ({
|
|
11
|
+
readonly value: string;
|
|
12
|
+
readonly items?: readonly ViewControlChild[];
|
|
13
|
+
} | {
|
|
14
|
+
readonly value?: undefined;
|
|
15
|
+
readonly items: readonly ViewControlChild[];
|
|
16
|
+
});
|
|
17
|
+
export type ViewControlsComponentState = {
|
|
18
|
+
readonly items: readonly ViewControlItem[];
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Renders a view controls next to the toolbar.
|
|
22
|
+
*/
|
|
23
|
+
export declare const viewControlsComponent: import("../../index.js").SystemComponentType<"viewControls", ViewControlsComponentState, never>;
|
|
24
|
+
export type ViewControlsComponent = typeof viewControlsComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{EnhancedLocalizableSchema as e}from"@salsita-ai/common/utils";import{SystemComponentBuilder as t}from"../../core/index.js";let i={label:e,value:{type:"string"},icon:{type:"string"}};export const viewControlsComponent=t.component("viewControls").withState({type:"object",tsType:"ViewControlsComponentState",import:[{module:"@salsita-ai/sdk/domain",member:"ViewControlsComponentState"}],properties:{items:{type:"array",items:{anyOf:[{type:"object",properties:i,required:["label","icon","value"],additionalProperties:!1},{type:"object",properties:{...i,items:{type:"array",items:{type:"object",properties:i,required:["label","value"],additionalProperties:!1}}},required:["label","icon","items"],additionalProperties:!1}]}}},required:["items"],additionalProperties:!1}).build();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useCallback as e,useRef as n}from"react";import{resolveActionModules as t}from"#package/configurator";import{resolveComponentOpticModules as a,resolveElementModule as r,resolveHandlerModule as o,resolveInvariantModules as i,resolveTransformerModule as s}from"#package/domain";import{importImplementationFile as l}from"./import-implementation-file.js";let m=e=>e instanceof Error?e.message:String(e),c=async(e,n)=>{let t=Date.now();return Promise.all(e.map(async e=>({origin:e,exports:await l(`/@fs/${n}/${e}?t=${t}`)})))},p=async(e,n)=>{let a=await c(e,n);return t(a),a};export const mergeComponentOptics=(e,n)=>e.concat(n);let u=async(e,n)=>a(await c(e,n)),f=async(e,n)=>i(await c(e,n)),d=async(e,n)=>(await c(e,n)).map(s),h=async(e,n)=>(await c(e,n)).map(e=>({filePath:e.origin,registrations:o(e)})),g=async(e,n)=>(await c(e,n)).map(e=>({filePath:e.origin,registrations:r(e)}));export const useImplementationFiles=()=>{let t=n([]),a=n(null),r=n([]),o=n(0),i=n(null),s=n({}),l=n(null),E=n(null),F=n(null),w=n([]),I=n(null),y=n(null),A=n(new Map),R=n(new Map);return{getImplementationFiles:e(async e=>{let{application:n,projectRoot:O}=e,D=++o.current,{applicationSpec:L,categorizedFiles:S}=n,C=[],_=t.current,$=r.current,v=s.current,x=F.current,
|
|
1
|
+
import{useCallback as e,useRef as n}from"react";import{resolveActionModules as t}from"#package/configurator";import{resolveComponentOpticModules as a,resolveElementModule as r,resolveHandlerModule as o,resolveInvariantModules as i,resolveTransformerModule as s}from"#package/domain";import{importImplementationFile as l}from"./import-implementation-file.js";let m=e=>e instanceof Error?e.message:String(e),c=async(e,n)=>{let t=Date.now();return Promise.all(e.map(async e=>({origin:e,exports:await l(`/@fs/${n}/${e}?t=${t}`)})))},p=async(e,n)=>{let a=await c(e,n);return t(a),a};export const mergeComponentOptics=(e,n)=>e.concat(n);let u=async(e,n)=>a(await c(e,n)),f=async(e,n)=>i(await c(e,n)),d=async(e,n)=>(await c(e,n)).map(s),h=async(e,n)=>(await c(e,n)).map(e=>({filePath:e.origin,registrations:o(e)})),g=async(e,n)=>(await c(e,n)).map(e=>({filePath:e.origin,registrations:r(e)}));export const useImplementationFiles=()=>{let t=n([]),a=n(null),r=n([]),o=n(0),i=n(null),s=n({}),l=n(null),E=n(null),F=n(null),w=n([]),I=n(null),y=n(null),A=n(new Map),R=n(new Map);return{getImplementationFiles:e(async e=>{let{application:n,projectRoot:O}=e,D=++o.current,{applicationSpec:L,categorizedFiles:S}=n,C=[],_=t.current,$=r.current,v=s.current,x=F.current,M=w.current,N=S.expressionsChanged,b=S.actionsChanged,P=S.componentsChanged,k=S.transformersChanged,H=S.handlersChanged,T=S.elementsChanged,j=Object.fromEntries(S.invariants.map(e=>[e.file.name,e.depHash])),J=l.current,X=JSON.stringify(L.configurator.invariants.entries),V=null===J||E.current!==X||Object.keys(J).length!==S.invariants.length||S.invariants.some(e=>J[e.file.name]!==e.depHash);if(console.info(`[useImplementationFiles] Changed: spec=${S.specChanged}, expressions=${S.expressionsChanged}, actions=${S.actionsChanged}, adminExpressions=${S.adminExpressionsChanged}, transformers=${S.transformersChanged}, handlers=${S.handlersChanged}, elements=${S.elementsChanged}`),N){console.info("[useImplementationFiles] Reloading expression implementations");try{t.current=_=await c(S.expressions.map(e=>e.file.name),O)}catch(e){console.warn("[useImplementationFiles] Failed to reload expressions:",e),C.push({code:"RELOAD_EXPRESSIONS_FAILED",message:m(e)})}}let q=a.current;if(b){console.info("[useImplementationFiles] Reloading action implementations");try{a.current=q=await p(S.actions.map(e=>e.file.name),O)}catch(e){console.warn("[useImplementationFiles] Failed to reload actions:",e),C.push({code:"RELOAD_ACTIONS_FAILED",message:m(e)})}}let z=JSON.stringify({projectRoot:O,files:S.adminExpressions.map(e=>[e.file.name,e.depHash])});if(D===o.current&&i.current!==z)try{$=await c(S.adminExpressions.map(e=>e.file.name),O),D===o.current&&(r.current=$,i.current=z)}catch(e){C.push({code:"RELOAD_ADMIN_EXPRESSIONS_FAILED",message:m(e)})}if(P){console.info("[useImplementationFiles] Reloading component optics");try{F.current=x=await u(S.components.map(e=>e.file.name),O)}catch(e){console.warn("[useImplementationFiles] Failed to reload components:",e),C.push({code:"RELOAD_COMPONENTS_FAILED",message:m(e)})}}if(V){console.info("[useImplementationFiles] Reloading invariant implementations");try{s.current=v=await f(S.invariants.map(e=>e.file.name),O),l.current=j,E.current=X}catch(e){console.warn("[useImplementationFiles] Failed to reload invariants:",e),C.push({code:"RELOAD_INVARIANTS_FAILED",message:m(e)})}}if(k){console.info("[useImplementationFiles] Reloading transformer implementations");try{w.current=M=await d(S.transformers.map(e=>e.file.name),O)}catch(e){console.warn("[useImplementationFiles] Failed to reload transformers:",e),C.push({code:"RELOAD_TRANSFORMERS_FAILED",message:m(e)})}}let B=null;if(H){console.info("[useImplementationFiles] Reloading handler implementations");try{let e=Object.fromEntries(S.handlers.map(e=>[e.file.name,e.depHash])),n=I.current,t=t=>null===n||n[t]!==e[t],a=R.current,r=S.handlers.filter(e=>"webhook-only"!==e.webhookMembership).map(e=>e.file.name),o=r.filter(e=>t(e)||!a.has(e)),i=await h(o,O),s=new Map(i.map(e=>[e.filePath,e])),l=r.map(e=>{let n=s.get(e)??a.get(e);if(!n)throw Error(`Handler file "${e}" was neither re-imported nor cached from a previous round. This is a hot-reload bookkeeping bug — reload the editor page to recover.`);return n}),m=l.flatMap(e=>e.registrations),c={};for(let{filePath:n,registrations:a}of l){let r=t(n)?e[n]:void 0;if(r)for(let e of a)c[e.name]=r}console.info(`[useImplementationFiles] Staged handlers for registry (${m.length} total)`),B={handlers:m,nameHashes:c},R.current=new Map(l.map(e=>[e.filePath,e])),I.current=e}catch(e){console.warn("[useImplementationFiles] Failed to reload handlers:",e),C.push({code:"RELOAD_HANDLERS_FAILED",message:m(e)})}}let G=null;if(T){console.info("[useImplementationFiles] Reloading element implementations");try{let e=Object.fromEntries(S.elements.map(e=>[e.file.name,e.depHash])),n=y.current,t=t=>null===n||n[t]!==e[t],a=A.current,r=S.elements.map(e=>e.file.name),o=r.filter(e=>t(e)||!a.has(e)),i=await g(o,O),s=new Map(i.map(e=>[e.filePath,e])),l=r.map(e=>{let n=s.get(e)??a.get(e);if(!n)throw Error(`Element file "${e}" was neither re-imported nor cached from a previous round. This is a hot-reload bookkeeping bug — reload the editor page to recover.`);return n}),m=l.flatMap(e=>e.registrations),c={},p=0;for(let{filePath:n,registrations:a}of l){let r=t(n)?e[n]:void 0;for(let e of a)if("assistantFormElement"!==e.type){if("entity"===e.type||"layout"===e.type){r&&(c[e.name]=r);continue}r&&(c[`icon:${p}`]=r),p+=1}}console.info(`[useImplementationFiles] Staged elements for registry (${m.length} total)`),G={elements:m,nameHashes:c},A.current=new Map(l.map(e=>[e.filePath,e])),y.current=e}catch(e){console.warn("[useImplementationFiles] Failed to reload elements:",e),C.push({code:"RELOAD_ELEMENTS_FAILED",message:m(e)})}}return{expressionModules:_,actionModules:q,adminExpressionModules:$,invariantImplementations:v,importedTransformers:M,customComponentOptics:x,handlers:B,elements:G,errors:C}},[])}};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Legacy: the Clerk sign-in pages of `access: legacy-clerk`. They keep their behaviour; Studio-account sign-in replaces
|
|
3
|
+
* Clerk for projects in a workspace with Studio accounts.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
1
7
|
export { ClerkNotAuthenticatedPage } from './ClerkNotAuthenticatedPage.js';
|
|
2
8
|
export { ClerkNotAuthorizedAdminPage } from './ClerkNotAuthorizedAdminPage.js';
|
|
3
9
|
export { ClerkSignInForm, type ClerkSignInFormProps } from './ClerkSignInForm.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SignInAccount } from '#package/domain';
|
|
2
|
+
/** Initials of a person's name, or the first letter of their email address. */
|
|
3
|
+
export declare const getInitials: (account: SignInAccount) => string;
|
|
4
|
+
export declare const AccountAvatar: ({ account, size }: {
|
|
5
|
+
readonly account: SignInAccount;
|
|
6
|
+
readonly size?: number;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{Avatar as e}from"@mui/material";export const getInitials=i=>{let e=(i.name??"").split(/\s+/).filter(i=>""!==i);return(e.length>0?e.slice(0,2).map(i=>i[0]):[i.email[0]??"?"]).join("").toUpperCase()};export const AccountAvatar=({account:t,size:r=32})=>i(e,{sx:{inlineSize:r,blockSize:r,fontSize:.4*r,bgcolor:"primary.main"},"aria-hidden":!0,children:getInitials(t)});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface AccountControlProps {
|
|
2
|
+
/**
|
|
3
|
+
* Whether the control shows, under its button, what a visitor is told after a sign-in that did not leave them signed
|
|
4
|
+
* in or that ended while they were signed in. Set it to `false` where the layout places `<SignInNotice />` itself.
|
|
5
|
+
* Defaults to `true`.
|
|
6
|
+
*/
|
|
7
|
+
readonly notice?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The account control for a configurator in Public with sign-in, placed by the project in its own layout, such as its
|
|
11
|
+
* toolbar. A visitor sees a Sign in button; a signed-in person their name, with a menu holding their email and Sign
|
|
12
|
+
* out. In Studio's frame it renders nothing.
|
|
13
|
+
*/
|
|
14
|
+
export declare const AccountControl: ({ notice }: AccountControlProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as n,jsxs as e,Fragment as i}from"react/jsx-runtime";import{Trans as r}from"@lingui/react";import{Button as a,CircularProgress as l,Dialog as o,Divider as t,Menu as s,MenuItem as c,Popper as d,Typography as m,styled as g}from"@mui/material";import{useEffect as h,useState as p}from"react";import{useSignIn as f}from"#package/react-sdk";import{useResponsive as u}from"#package/ui-sdk";import{AccountAvatar as x}from"./AccountAvatar.js";import{SignInNotice as k}from"./SignInNotice.js";let v=g("div")(({theme:n})=>({display:"flex",alignItems:"center",gap:n.spacing(1.5),padding:n.spacing(.75,1.25,1.25)})),I=g("div")({display:"flex",flexDirection:"column",minInlineSize:0,flex:1});export const AccountControl=({notice:g=!0})=>{let{state:z,person:b,hidden:C,signIn:S,signOut:y}=f(),{isDesktop:j}=u(),[W,A]=p(null),[O,w]=p(!1),[E,B]=p(!1);if(h(()=>B(!1),[z]),C)return null;if("signing-in"===z)return n(a,{variant:"text",disabled:!0,role:"status",startIcon:n(l,{size:14,"aria-hidden":!0}),children:n(r,{id:"sdk.signIn.control.signingIn.label",message:"Signing in…"})});if(null===b)return e(i,{children:[n(a,{ref:A,variant:"text",onClick:()=>void S(),children:n(r,{id:"sdk.signIn.signIn.label",message:"Sign in"})}),n(d,{open:g&&!E&&("failed"===z||"refused"===z||"ended"===z),anchorEl:W,placement:"bottom-end",sx:{zIndex:1,maxInlineSize:360},children:n(k,{onClose:()=>B(!0)})})]});let D=e(v,{children:[n(x,{account:b,size:36}),e(I,{children:[n(m,{sx:{fontWeight:600},children:b.name??b.email}),b.name&&n(m,{variant:"body2",color:"text.secondary",sx:{overflowWrap:"anywhere"},children:b.email})]})]}),F=()=>w(!1),N=n(c,{onClick:()=>{F(),y()},sx:{minBlockSize:j?void 0:48},children:n(r,{id:"sdk.signIn.control.signOut.label",message:"Sign out"})});return e(i,{children:[n(a,{ref:A,variant:"text","aria-haspopup":j?"menu":"dialog","aria-expanded":O,"aria-label":b.name??b.email,onClick:()=>w(!0),startIcon:n(x,{account:b,size:24}),children:j&&(b.name??b.email)}),j?e(s,{open:O,anchorEl:W,onClose:F,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},slotProps:{paper:{sx:{inlineSize:280}}},children:[D,n(t,{}),N]}):e(o,{open:O,onClose:F,fullWidth:!0,children:[e(v,{children:[n(x,{account:b,size:36}),e(I,{children:[n(m,{sx:{fontWeight:600},children:b.name??b.email}),b.name&&n(m,{variant:"body2",color:"text.secondary",children:b.email})]}),n(a,{size:"small",onClick:F,children:n(r,{id:"sdk.signIn.control.close.label",message:"Close"})})]}),n(t,{}),N]})]})};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type AccessDeniedPageProps } from '#package/react-sdk';
|
|
2
|
+
import type { StudioAccountPageOptions } from './ConfiguratorSignInPage.js';
|
|
3
|
+
export interface AdminSignInPageOptions extends StudioAccountPageOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Where "Open the configurator" leads; defaults to the configurator next to the admin, the address of the admin's
|
|
6
|
+
* folder.
|
|
7
|
+
*/
|
|
8
|
+
readonly configuratorUrl?: string | undefined;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The admin's default access-denied page. A person signed in who does not administer the project is told so and
|
|
12
|
+
* offered the configurator; an account the project's signed-in handler refused is named and offered another account.
|
|
13
|
+
* A project replaces it by registering its own `AccessDeniedAdminPage`.
|
|
14
|
+
*/
|
|
15
|
+
export declare const createCognitoAccessDeniedAdminPage: (options?: Pick<AdminSignInPageOptions, 'configuratorUrl'>) => ({ projectName }: AccessDeniedPageProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
/** The admin's default access-denied page, with "Open the configurator" leading next to the admin. */
|
|
17
|
+
export declare const CognitoAccessDeniedAdminPage: ({ projectName }: AccessDeniedPageProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
/**
|
|
19
|
+
* The admin's sign-in page for Studio accounts, its not-authorized page in every Studio-account mode: shown to anyone
|
|
20
|
+
* without an admin session. It sends the person to Studio's sign-in form straight away, and shows its button after a
|
|
21
|
+
* sign-out or a sign-in that did not finish. A person signed in without the Admin role, or refused, sees the
|
|
22
|
+
* `AccessDeniedAdminPage`. In Studio's frame it shows nothing.
|
|
23
|
+
*/
|
|
24
|
+
export declare const createAdminSignInPage: (options?: AdminSignInPageOptions) => () => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
/** The admin's sign-in page for Studio accounts without a project name. */
|
|
26
|
+
export declare const AdminSignInPage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,Fragment as i}from"react/jsx-runtime";import{Trans as n}from"@lingui/react";import{useEffect as t,useState as a}from"react";import{AccessDeniedAdminPage as s,useSignIn as o}from"#package/react-sdk";import{SignInFailurePage as r}from"./SignInFailurePage.js";import{SignInGateLayout as d}from"./SignInGateLayout.js";let g=()=>new URL("./",window.location.href.split(/[?#]/)[0]).href;export const createCognitoAccessDeniedAdminPage=(i={})=>({projectName:t})=>{let{refusedAccount:a,person:s,signIn:r}=o(),m={label:e(n,{id:"sdk.signIn.anotherAccount.label",message:"Sign in with another account"}),onClick:()=>void r({anotherAccount:!0})},c=e(n,{id:"sdk.signIn.admin.denied.title",message:"This account can’t open the admin"});return a||!s?e(d,{projectName:t,title:c,text:e(n,{id:"sdk.signIn.admin.refused.message",message:"You are signed in, but this account can’t open the admin. Ask the person who invited you, or sign in with another account."}),account:a,primary:m}):e(d,{projectName:t,title:c,text:t?e(n,{id:"sdk.signIn.admin.notAdmin.named.message",values:{projectName:t},message:"You can use {projectName}, but you don’t administer it. Ask a superadmin of the project for the Admin role, or sign in with another account."}):e(n,{id:"sdk.signIn.admin.notAdmin.message",message:"You can use this configurator, but you don’t administer it. Ask a superadmin of the project for the Admin role, or sign in with another account."}),account:s,primary:{label:e(n,{id:"sdk.signIn.admin.openConfigurator.label",message:"Open the configurator"}),onClick:()=>window.location.assign(i.configuratorUrl??g())},secondary:m})};export const CognitoAccessDeniedAdminPage=createCognitoAccessDeniedAdminPage();export const createAdminSignInPage=(m={})=>{let{projectName:c,configuratorUrl:u}=m,l=createCognitoAccessDeniedAdminPage({configuratorUrl:u});return()=>{let{state:m,failure:p,person:h,signedOut:f,hidden:k,signIn:I}=o(),A="refused"===m||null!==h,j=k||f||A||"failed"===m,[w]=a(()=>!j);if(t(()=>{w&&I()},[w]),k)return e(i,{});if(A)return e(s,{projectName:c,defaultPage:l});if(p)return e(r,{projectName:c,failure:p,onTryAgain:()=>void I()});let y={label:e(n,{id:"sdk.signIn.signIn.label",message:"Sign in"}),onClick:()=>void I()};return f?e(d,{projectName:c,title:e(n,{id:"sdk.signIn.admin.signedOut.title",message:"You’re signed out of the admin"}),text:c?e(n,{id:"sdk.signIn.admin.signedOut.named.message",values:{projectName:c},message:"Sign in again to administer {projectName}."}):e(n,{id:"sdk.signIn.admin.signedOut.message",message:"Sign in again to administer this configurator."}),primary:y,secondary:{label:e(n,{id:"sdk.signIn.admin.openConfigurator.label",message:"Open the configurator"}),onClick:()=>window.location.assign(u??g())}}):e(d,{projectName:c,title:e(n,{id:"sdk.signIn.admin.redirecting.title",message:"Sign in to the admin"}),text:c?e(n,{id:"sdk.signIn.admin.redirecting.named.message",values:{projectName:c},message:"The admin of {projectName} is for people who administer it. You sign in with your Salsita Studio account."}):e(n,{id:"sdk.signIn.admin.redirecting.message",message:"The admin of this configurator is for people who administer it. You sign in with your Salsita Studio account."}),busy:e(n,{id:"sdk.signIn.redirecting.busy",message:"Taking you to sign in…"}),primary:y,hint:e(n,{id:"sdk.signIn.redirecting.hint",message:"Nothing happening? Use the button below."})})}};export const AdminSignInPage=createAdminSignInPage();
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Redirect-only shared Phoenix sign-in, with an explicit retry after a rejected project grant. In Builder Studio's
|
|
3
|
+
* frame it shows nothing and never redirects: Studio's bar shows the account, and Studio its own state for a refusal.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated Use `ConfiguratorSignInPage` (or `createConfiguratorSignInPage`) for the configurator and
|
|
6
|
+
* `AdminSignInPage` (or `createAdminSignInPage`) for the admin, which generated code registers by itself.
|
|
7
|
+
*/
|
|
8
|
+
export declare const CognitoSignInPage: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{Alert as n,Button as r,Typography as t}from"@mui/material";import{useCallback as a,useEffect as o,useState as s}from"react";import{standardWebComponentProperties as c}from"#package/domain";import{INTEGRATION_MODE_SETTINGS as l,useDomainApplicationProps as d,useRawSession as g,useSessionService as h,useSignIn as p,useWebComponentPropertyValue as m}from"#package/react-sdk";export const CognitoSignInPage=()=>{let u=l[m(c.integrationMode)].hideSignInElements,{persistenceConfig:v}=d(),y=g(),f=h(),C=p(),S="idle"!==C.state,[j]=s(()=>f.hasLoggedOutFlag?.()??!1),k="authorization-code-rejected"===y.authenticationErrorCode||y.sessionPayload?.role==="user",x="server"===v.type?v.serverUrl:null,I=C.signIn,P=a(()=>I({anotherAccount:j||k}),[I,j,k]);return(o(()=>{u||k||j||S||!x||P()},[u,k,j,S,x,P]),u)?null:i("div",{style:{minHeight:"100vh",display:"grid",placeContent:"center",gap:16,padding:24},children:[e(t,{variant:"h5",children:k?"Access denied":"Sign in"}),k&&e(n,{severity:"error",children:"Your account does not have access to this application. Contact the person who invited you for help."}),!x&&e(n,{severity:"info",children:"Sign-in is currently unavailable. Please try again later."}),e(r,{variant:"contained",disabled:!x,onClick:()=>void P(),children:k?"Try sign-in again":"Sign in"})]})};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type AccessDeniedPageProps } from '#package/react-sdk';
|
|
2
|
+
export interface StudioAccountPageOptions {
|
|
3
|
+
/** The project's name, shown on the page with its first letter as a tile; the spec's page title. */
|
|
4
|
+
readonly projectName?: string | undefined;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* The configurator's default access-denied page: the refused account, and a sign-in with another one. A project
|
|
8
|
+
* replaces it by registering its own `AccessDeniedPage`.
|
|
9
|
+
*/
|
|
10
|
+
export declare const CognitoAccessDeniedPage: ({ projectName }: AccessDeniedPageProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
/**
|
|
12
|
+
* The configurator's sign-in page for Studio accounts, its not-authenticated page in Invited only and Public with
|
|
13
|
+
* sign-in, where a visitor reaches it when visitors may not start a configuration. It sends the person
|
|
14
|
+
* to Studio's sign-in form straight away, and shows its button after a sign-out, after a sign-in that did not finish,
|
|
15
|
+
* and while the redirect is held. A refused account sees the `AccessDeniedPage`. In Studio's frame it shows nothing.
|
|
16
|
+
*/
|
|
17
|
+
export declare const createConfiguratorSignInPage: (options?: StudioAccountPageOptions) => () => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
/** The configurator's sign-in page for Studio accounts without a project name. */
|
|
19
|
+
export declare const ConfiguratorSignInPage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,Fragment as i}from"react/jsx-runtime";import{Trans as n}from"@lingui/react";import{useEffect as t,useState as s}from"react";import{AccessDeniedPage as o,useSignIn as r}from"#package/react-sdk";import{SignInFailurePage as a}from"./SignInFailurePage.js";import{SignInGateLayout as g}from"./SignInGateLayout.js";export const CognitoAccessDeniedPage=({projectName:i})=>{let{refusedAccount:t,signIn:s}=r();return e(g,{projectName:i,title:i?e(n,{id:"sdk.signIn.denied.named.title",values:{projectName:i},message:"This account can’t open {projectName}"}):e(n,{id:"sdk.signIn.denied.title",message:"This account can’t open this configurator"}),text:e(n,{id:"sdk.signIn.denied.message",message:"You are signed in, but this account isn’t invited to this configurator. Ask the person who invited you, or sign in with another account."}),account:t,primary:{label:e(n,{id:"sdk.signIn.anotherAccount.label",message:"Sign in with another account"}),onClick:()=>void s({anotherAccount:!0})}})};export const createConfiguratorSignInPage=(c={})=>{let{projectName:d}=c;return()=>{let{state:c,failure:u,signedOut:m,hidden:l,signIn:p}=r(),f=l||m||"refused"===c||"failed"===c,[h]=s(()=>!f);if(t(()=>{h&&p()},[h]),l)return e(i,{});if("refused"===c)return e(o,{projectName:d,defaultPage:CognitoAccessDeniedPage});if(u)return e(a,{projectName:d,failure:u,onTryAgain:()=>void p()});let k={label:e(n,{id:"sdk.signIn.signIn.label",message:"Sign in"}),onClick:()=>void p()};return m?e(g,{projectName:d,title:e(n,{id:"sdk.signIn.signedOut.title",message:"You’re signed out"}),text:e(n,{id:"sdk.signIn.signedOut.message",message:"Sign in again to open this configurator."}),primary:k}):e(g,{projectName:d,title:e(n,{id:"sdk.signIn.redirecting.title",message:"Sign in to continue"}),text:e(n,{id:"sdk.signIn.redirecting.message",message:"This configurator is for invited people. You sign in with your Salsita Studio account."}),busy:e(n,{id:"sdk.signIn.redirecting.busy",message:"Taking you to sign in…"}),primary:k,hint:e(n,{id:"sdk.signIn.redirecting.hint",message:"Nothing happening? Use the button below."})})}};export const ConfiguratorSignInPage=createConfiguratorSignInPage();
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SignIn } from '#package/react-sdk';
|
|
2
|
+
export interface SignInFailurePageProps {
|
|
3
|
+
readonly projectName: string | undefined;
|
|
4
|
+
readonly failure: NonNullable<SignIn['failure']>;
|
|
5
|
+
readonly onTryAgain: () => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A sign-in that did not finish, or that the server could not complete right now, with its technical detail and a
|
|
9
|
+
* button to try again. The configurator's and the admin's sign-in pages show it alike.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SignInFailurePage: ({ projectName, failure, onTryAgain }: SignInFailurePageProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{Trans as i}from"@lingui/react";import{SignInGateLayout as a}from"./SignInGateLayout.js";export const SignInFailurePage=({projectName:n,failure:s,onTryAgain:t})=>{let r={label:e(i,{id:"sdk.signIn.tryAgain.label",message:"Try again"}),onClick:t};return"unavailable"===s.reason?e(a,{projectName:n,title:e(i,{id:"sdk.signIn.unavailable.title",message:"Sign-in is unavailable right now"}),text:e(i,{id:"sdk.signIn.unavailable.message",message:"The configurator can’t reach the sign-in service. Try again in a moment."}),error:s.message,primary:r}):e(a,{projectName:n,title:e(i,{id:"sdk.signIn.failed.title",message:"Sign-in didn’t finish"}),text:e(i,{id:"sdk.signIn.failed.message",message:"You came back without being signed in. Nothing was changed."}),error:s.message,primary:r})};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { SignInAccount } from '#package/domain';
|
|
3
|
+
export interface SignInGateAction {
|
|
4
|
+
readonly label: ReactNode;
|
|
5
|
+
readonly onClick: () => void;
|
|
6
|
+
}
|
|
7
|
+
export interface SignInGateLayoutProps {
|
|
8
|
+
/** The project's name; without it the page shows no project tile. */
|
|
9
|
+
readonly projectName: string | undefined;
|
|
10
|
+
readonly title: ReactNode;
|
|
11
|
+
readonly text: ReactNode;
|
|
12
|
+
readonly account?: SignInAccount | null;
|
|
13
|
+
/** Shown with a spinner while the page leaves for the sign-in form. */
|
|
14
|
+
readonly busy?: ReactNode;
|
|
15
|
+
/** Technical detail of a failure, in small monospace text. */
|
|
16
|
+
readonly error?: string | null;
|
|
17
|
+
readonly primary?: SignInGateAction;
|
|
18
|
+
readonly secondary?: SignInGateAction;
|
|
19
|
+
readonly hint?: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The page layout shared by the Studio-account sign-in pages and their access-denied pages: the project, a heading, a
|
|
23
|
+
* text, and what the person can do next, in the project's theme.
|
|
24
|
+
*/
|
|
25
|
+
export declare const SignInGateLayout: (props: SignInGateLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{Avatar as n,Button as a,CircularProgress as l,Paper as r,Typography as t,styled as o}from"@mui/material";import{AccountAvatar as c}from"./AccountAvatar.js";let d=o("div")(({theme:e})=>({minBlockSize:"100%",flex:1,display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",padding:e.spacing(4,2.5),backgroundColor:e.palette.background.default,color:e.palette.text.primary})),s=o("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1.25)})),x=o("div")({display:"flex",flexDirection:"column",minInlineSize:0}),h=o("main")(({theme:e})=>({inlineSize:"100%",maxInlineSize:400,display:"flex",flexDirection:"column",gap:e.spacing(1.75)}));export const SignInGateLayout=o=>{let{projectName:m,title:p,text:g,account:f,busy:u,error:y,primary:v,secondary:b,hint:z}=o;return e(d,{children:i(h,{children:[m&&i(s,{children:[e(n,{variant:"rounded",sx:{inlineSize:28,blockSize:28,fontSize:14,bgcolor:"primary.main"},"aria-hidden":!0,children:m.trim()[0]?.toUpperCase()}),e(t,{sx:{fontWeight:600},children:m})]}),e(t,{component:"h1",variant:"h5",sx:{fontWeight:600},children:p}),e(t,{color:"text.secondary",children:g}),f&&i(r,{variant:"outlined",sx:{display:"flex",alignItems:"center",gap:1.25,paddingBlock:1,paddingInline:1.5},children:[e(c,{account:f}),i(x,{children:[f.name&&e(t,{sx:{fontWeight:500},children:f.name}),e(t,{variant:"body2",color:"text.secondary",sx:{overflowWrap:"anywhere"},children:f.email})]})]}),u&&i(s,{role:"status",children:[e(l,{size:16,"aria-hidden":!0}),e(t,{sx:{fontWeight:500},children:u})]}),y&&e(t,{variant:"caption",color:"text.secondary",sx:{fontFamily:"monospace"},children:y}),v&&e(a,{variant:"contained",size:"large",fullWidth:!0,onClick:v.onClick,children:v.label}),b&&e(a,{variant:"text",size:"large",fullWidth:!0,onClick:b.onClick,children:b.label}),z&&e(t,{variant:"body2",color:"text.secondary",children:z})]})})};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a visitor is told after a Studio-account sign-in that did not leave them signed in: it did not finish, the
|
|
3
|
+
* account is not invited or was refused, or it ended while they were signed in, with what was on screen kept. Renders
|
|
4
|
+
* nothing otherwise, and in Studio's frame. Place it in a layout's body where the account control's own note should not
|
|
5
|
+
* appear, and give the control `notice={false}`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SignInNotice: ({ onClose }: {
|
|
8
|
+
readonly onClose?: () => void;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as n}from"react/jsx-runtime";import{Trans as o}from"@lingui/react";import{Alert as i,Link as e}from"@mui/material";import{useSignIn as s}from"#package/react-sdk";export const SignInNotice=({onClose:t})=>{let{state:r,refusedAccount:a,person:l,hidden:c,signIn:d}=s();if(c||null!==l)return null;if("failed"===r)return n(i,{severity:"warning",role:"alert",onClose:t,children:n(o,{id:"sdk.signIn.control.failed.message",components:{0:n(e,{component:"button",onClick:()=>void d()})},message:"Sign-in didn’t finish, so you are still browsing as a visitor. <0>Try again</0>"})});if("ended"===r)return n(i,{severity:"info",role:"status",onClose:t,children:n(o,{id:"sdk.signIn.control.ended.message",components:{0:n(e,{component:"button",onClick:()=>void d()})},message:"You were signed out, so you are browsing as a visitor. <0>Sign in again</0>"})});if("refused"===r){let s=a?.email??"";return n(i,{severity:"info",role:"note",onClose:t,children:a?n(o,{id:"sdk.signIn.control.refused.message",values:{email:s},components:{0:n(e,{component:"button",onClick:()=>void d()})},message:"{email} isn’t invited to this configurator, so you are browsing as a visitor. <0>Sign in with another account</0>"}):n(o,{id:"sdk.signIn.control.refusedUnnamed.message",components:{0:n(e,{component:"button",onClick:()=>void d()})},message:"This account isn’t invited to this configurator, so you are browsing as a visitor. <0>Sign in with another account</0>"})})}return null};
|