@salsita-ai/sdk 0.50.0-develop.b5d443db78 → 0.50.0-develop.b5dfdd9774
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -3
- package/dist/admin/common/admin-interface.d.ts +2 -2
- package/dist/application-spec/errors/diagnostic-codes.d.ts +8 -0
- package/dist/application-spec/errors/diagnostic-codes.js +1 -1
- package/dist/application-spec/errors/diagnostic-messages.d.ts +9 -1
- package/dist/application-spec/errors/diagnostic-messages.js +1 -1
- package/dist/application-spec/generate-application/code/domain-runtime-files.js +1 -1
- package/dist/application-spec/generate-application/code/index.d.ts +1 -0
- package/dist/application-spec/generate-application/code/standalone-app-files.d.ts +4 -3
- 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 +1 -1
- package/dist/application-spec/generate-application/code/templates/admin-config.js +3 -2
- package/dist/application-spec/generate-application/code/templates/application-types.js +5 -5
- package/dist/application-spec/generate-application/code/templates/configurator-config.js +4 -2
- package/dist/application-spec/generate-application/code/templates/configurator-domain-code.d.ts +0 -1
- package/dist/application-spec/generate-application/code/templates/configurator-domain-code.js +6 -8
- package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.d.ts +1 -0
- package/dist/application-spec/generate-application/code/templates/configurator-frontend-code.js +8 -6
- package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.d.ts +6 -8
- package/dist/application-spec/generate-application/code/templates/domain-spec/factory-types/domain-factory-types.js +3 -3
- package/dist/application-spec/generate-application/code/templates/domain-spec/generate-base-configurator-builder.js +2 -1
- package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.d.ts +1 -1
- package/dist/application-spec/generate-application/code/templates/domain-spec/generate-domain-block.js +38 -41
- package/dist/application-spec/generate-application/code/templates/domain-spec/generate-phx-globals.js +0 -3
- package/dist/application-spec/generate-application/code/templates/domain.js +3 -3
- package/dist/application-spec/generate-application/code/templates/editor.d.ts +1 -1
- package/dist/application-spec/generate-application/code/templates/editor.js +16 -3
- 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 +10 -11
- package/dist/application-spec/generate-application/code/templates/html-index.d.ts +12 -1
- package/dist/application-spec/generate-application/code/templates/html-index.js +9 -10
- package/dist/application-spec/generate-application/code/templates/index.d.ts +1 -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 +8 -36
- package/dist/application-spec/generate-application/code/templates/skills/core/workflow.js +15 -11
- 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/assistant/panel.d.ts +3 -0
- 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/assistant/session-setup.d.ts +3 -0
- 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 +3 -3
- package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.d.ts +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/custom-layout/pages.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/custom-controls.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/domain-controls/scene-controls.js +4 -2
- package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/actions.js +3 -3
- package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/components.js +2 -2
- package/dist/application-spec/generate-application/code/templates/skills/features/domain-model/expressions.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/features.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/state/violations.js +2 -2
- package/dist/application-spec/generate-application/code/templates/skills/features/variants.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/authentication.js +42 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/backend-data.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/backend-data.js +45 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/entry-and-environment.js +38 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/finalization.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/finalization.js +92 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/index.d.ts +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/index.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/publishing.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/publishing.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/callback.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/callback.js +26 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/documents.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/documents.js +51 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/email.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/email.js +38 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/index.d.ts +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/index.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/integrations.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/integrations.js +88 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/links-and-images.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/links-and-images.js +68 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/tasks.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/tasks/tasks.js +1 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.d.ts +3 -0
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks/webhooks.js +1 -0
- 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.js +3 -3
- package/dist/application-spec/generate-application/code/templates/skills/phx-members-without-guide.js +1 -1
- 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 +29 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/finalization.js +2 -2
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/build.js +29 -15
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/direction.js +17 -14
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/first-draft.js +2 -2
- package/dist/application-spec/generate-application/code/templates/skills/processes/first-draft/handoff.js +3 -3
- package/dist/application-spec/generate-application/code/templates/skills/processes/index.d.ts +2 -0
- 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 +2 -2
- 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/review/review.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/review/visual-inspection.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/processes/specification/product-definition.js +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/specification.js +1 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-specification.d.ts +2 -0
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-specification.js +28 -0
- package/dist/application-spec/generate-application/code/templates/skills/sdk-content.d.ts +0 -7
- package/dist/application-spec/generate-application/code/templates/skills/sdk-content.js +1 -1
- 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 +7 -6
- package/dist/application-spec/generate-application/code/templates/webhook-index.d.ts +2 -1
- package/dist/application-spec/generate-application/code/templates/webhook-index.js +2 -2
- package/dist/application-spec/parse-application-files/merge/merged-app-metadata.d.ts +3 -0
- 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/parse-application-files.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 +67 -8
- 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 +6 -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/expressions/user-expressions.js +1 -1
- package/dist/application-spec/parse-application-files/spec/model/session-data-schema.js +1 -1
- 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 +7 -10
- 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/assistant-server-settings.d.ts +5 -6
- package/dist/application-spec/parse-application-files/spec/sections/assistant/assistant-server-settings.js +1 -1
- package/dist/application-spec/parse-application-files/spec/sections/assistant/index.d.ts +0 -1
- package/dist/application-spec/webhook-boundary.js +1 -1
- package/dist/client/authorized-client.d.ts +1 -0
- package/dist/client/authorized-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 +28 -10
- package/dist/client/contract.js +1 -1
- package/dist/client/index.d.ts +2 -1
- package/dist/client/index.js +1 -1
- package/dist/client/local-authorized-client.d.ts +1 -0
- package/dist/client/local-authorized-client.js +1 -1
- package/dist/client/memory-authorized-client.d.ts +1 -0
- package/dist/client/memory-authorized-client.js +1 -1
- package/dist/client/phoenix-api.d.ts +7503 -2093
- package/dist/client/unauthenticated-client.js +1 -1
- package/dist/configurator/ConfiguratorApp.js +1 -1
- package/dist/configurator/agent-at-work/AgentAtWorkFallback.d.ts +7 -0
- package/dist/configurator/agent-at-work/AgentAtWorkFallback.js +1 -0
- package/dist/configurator/agent-at-work/AgentAtWorkPage.d.ts +20 -0
- package/dist/configurator/agent-at-work/AgentAtWorkPage.js +1 -0
- package/dist/configurator/agent-at-work/AgentModeBadge.d.ts +11 -0
- package/dist/configurator/agent-at-work/AgentModeBadge.js +1 -0
- package/dist/configurator/agent-at-work/StudioMark.d.ts +8 -0
- package/dist/configurator/agent-at-work/StudioMark.js +1 -0
- package/dist/configurator/agent-at-work/agent-at-work-copy.d.ts +17 -0
- package/dist/configurator/agent-at-work/agent-at-work-copy.js +1 -0
- package/dist/configurator/agent-at-work/agent-at-work-styles.d.ts +23 -0
- package/dist/configurator/agent-at-work/agent-at-work-styles.js +374 -0
- package/dist/configurator/agent-at-work/index.d.ts +3 -0
- package/dist/configurator/agent-at-work/index.js +1 -0
- package/dist/configurator/application-runtime/extensions/configurator-extension-systems.d.ts +5 -4
- package/dist/configurator/application-runtime/extensions/configurator-extension-systems.js +1 -1
- package/dist/configurator/application-runtime/extensions/create-configurator-extensions.js +1 -1
- package/dist/configurator/application-runtime/extensions/selectors.d.ts +4 -2
- package/dist/configurator/application-runtime/extensions/selectors.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/action-system/action-context.d.ts +14 -0
- package/dist/configurator/application-runtime/extensions/systems/action-system/action-factory.d.ts +13 -0
- package/dist/configurator/application-runtime/extensions/systems/action-system/action-system.d.ts +55 -0
- package/dist/configurator/application-runtime/extensions/systems/action-system/action-system.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/action-system/action.d.ts +56 -0
- package/dist/configurator/application-runtime/extensions/systems/action-system/action.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/action-system/index.d.ts +6 -0
- package/dist/configurator/application-runtime/extensions/systems/action-system/index.js +1 -0
- package/dist/{domain/domain-runtime/spec → configurator/application-runtime/extensions/systems/action-system}/prepare-action-implementations.d.ts +4 -3
- package/dist/{domain/domain-runtime/spec → configurator/application-runtime/extensions/systems/action-system}/prepare-action-implementations.js +2 -2
- package/dist/{domain/spec/modules → configurator/application-runtime/extensions/systems/action-system}/resolve-action-modules.d.ts +2 -2
- package/dist/configurator/application-runtime/extensions/systems/action-system/resolve-action-modules.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-annotation.d.ts +14 -8
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-image-view.d.ts +18 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-image-view.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-speech-player.d.ts +69 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-speech-player.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.d.ts +246 -22
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/assistant-system.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.d.ts +63 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/composer-attachments.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.d.ts +52 -36
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/graphql-tools.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/rasterize-image.d.ts +13 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/rasterize-image.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/speakable-reply.d.ts +7 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/speakable-reply.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.d.ts +3 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/index.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.d.ts +33 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/register-webmcp-tools.js +6 -0
- 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/assistant-system/webmcp/to-webmcp-result.d.ts +10 -0
- package/dist/configurator/application-runtime/extensions/systems/assistant-system/webmcp/to-webmcp-result.js +1 -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 +18 -5
- package/dist/configurator/application-runtime/extensions/systems/export-system/export-system.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/entity-meta.d.ts +8 -1
- 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 +46 -12
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/graphql-system.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/is-offered-for-selection.d.ts +16 -0
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/is-offered-for-selection.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.d.ts +26 -0
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/read-offered-navigation.js +1 -0
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.d.ts +25 -8
- package/dist/configurator/application-runtime/extensions/systems/graphql-system/violations.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/application-runtime/extensions/systems/index.d.ts +8 -3
- package/dist/configurator/application-runtime/extensions/systems/index.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.d.ts +11 -0
- package/dist/configurator/application-runtime/extensions/systems/layout-system/layout-system.js +1 -1
- package/dist/configurator/application-runtime/extensions/systems/sketching-system/sketching-system.d.ts +5 -5
- package/dist/configurator/application-runtime/hooks/use-configurator.d.ts +3 -3
- package/dist/configurator/common/configurator-interface.d.ts +11 -9
- package/dist/configurator/common/configurator-interface.js +1 -1
- package/dist/configurator/index.d.ts +1 -0
- package/dist/configurator/index.js +1 -1
- package/dist/configurator/{ui/configurator-layout/universal → pages}/ExportingOverlay.d.ts +3 -2
- package/dist/configurator/pages/ExportingOverlay.js +1 -0
- package/dist/configurator/pages/InertRoot.d.ts +10 -0
- package/dist/configurator/pages/InertRoot.js +1 -0
- package/dist/configurator/pages/LoadedConfiguratorDetailPage.js +1 -1
- package/dist/configurator/pages/PresetCreationErrorPage.d.ts +1 -1
- package/dist/configurator/pages/PresetCreationErrorPage.js +1 -1
- package/dist/configurator/pages/error-boundaries/AgentModeErrorFallback.d.ts +8 -0
- package/dist/configurator/pages/error-boundaries/AgentModeErrorFallback.js +1 -0
- package/dist/configurator/pages/error-boundaries/DevContextFallback.d.ts +4 -2
- package/dist/configurator/pages/error-boundaries/DevContextFallback.js +1 -1
- package/dist/configurator/pages/error-boundaries/DevLoadingFallback.d.ts +6 -4
- package/dist/configurator/pages/error-boundaries/DevLoadingFallback.js +1 -1
- package/dist/configurator/pages/error-boundaries/GeneralErrorBoundary.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/AssistantChips.d.ts +78 -6
- package/dist/configurator/ui/assistant/AssistantChips.js +1 -1
- package/dist/configurator/ui/assistant/AssistantComposer.d.ts +99 -1
- package/dist/configurator/ui/assistant/AssistantComposer.js +1 -1
- package/dist/configurator/ui/assistant/AssistantMarkdown.d.ts +37 -3
- package/dist/configurator/ui/assistant/AssistantMarkdown.js +1 -1
- package/dist/configurator/ui/assistant/AssistantPanel.d.ts +51 -4
- package/dist/configurator/ui/assistant/AssistantPanel.js +1 -1
- package/dist/configurator/ui/assistant/AssistantThread.d.ts +85 -2
- package/dist/configurator/ui/assistant/AssistantThread.js +1 -1
- package/dist/configurator/ui/assistant/AssistantThreadItemView.d.ts +83 -6
- package/dist/configurator/ui/assistant/AssistantThreadItemView.js +1 -1
- package/dist/configurator/ui/assistant/alert/AssistantAlert.d.ts +35 -1
- package/dist/configurator/ui/assistant/alert/AssistantAlert.js +1 -1
- package/dist/configurator/ui/assistant/alert/index.d.ts +1 -1
- package/dist/configurator/ui/assistant/annotation/AnnotationBadge.d.ts +34 -0
- package/dist/configurator/ui/assistant/annotation/AnnotationBadge.js +1 -1
- package/dist/configurator/ui/assistant/annotation/AnnotationOverlay.d.ts +2 -3
- package/dist/configurator/ui/assistant/annotation/AnnotationViewer.js +1 -1
- package/dist/configurator/ui/assistant/annotation/MessageAnnotations.js +1 -1
- package/dist/configurator/ui/assistant/annotation/annotation-layout.d.ts +59 -5
- package/dist/configurator/ui/assistant/annotation/annotation-layout.js +1 -1
- package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.d.ts +40 -5
- package/dist/configurator/ui/assistant/annotation/editor/AnnotationComment.js +1 -1
- package/dist/configurator/ui/assistant/annotation/editor/AnnotationEditor.d.ts +6 -5
- 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/annotation/editor/index.d.ts +1 -0
- package/dist/configurator/ui/assistant/annotation/index.d.ts +3 -2
- package/dist/configurator/ui/assistant/annotation/index.js +1 -1
- package/dist/configurator/ui/assistant/assistant-failure.d.ts +9 -4
- package/dist/configurator/ui/assistant/assistant-failure.js +1 -1
- package/dist/configurator/ui/assistant/attachments/MessageImages.d.ts +49 -5
- package/dist/configurator/ui/assistant/attachments/MessageImages.js +1 -1
- package/dist/configurator/ui/assistant/attachments/index.d.ts +1 -1
- package/dist/configurator/ui/assistant/composer/composer-frame.d.ts +7 -2
- package/dist/configurator/ui/assistant/composer/composer-frame.js +1 -1
- package/dist/configurator/ui/assistant/composer/index.d.ts +1 -1
- package/dist/configurator/ui/assistant/composer/index.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 +58 -0
- package/dist/configurator/ui/assistant/drawing/AssistantDrawing.js +1 -0
- package/dist/configurator/ui/assistant/drawing/index.d.ts +2 -0
- package/dist/configurator/ui/assistant/drawing/index.js +1 -0
- package/dist/configurator/ui/assistant/drawing/parse-drawing.d.ts +18 -0
- package/dist/configurator/ui/assistant/drawing/parse-drawing.js +1 -0
- package/dist/configurator/ui/assistant/drawing/use-drawing-url.d.ts +8 -0
- package/dist/configurator/ui/assistant/drawing/use-drawing-url.js +1 -0
- package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.d.ts +35 -1
- package/dist/configurator/ui/assistant/entity-link/AssistantEntityLink.js +1 -1
- package/dist/configurator/ui/assistant/entity-link/index.d.ts +1 -1
- package/dist/configurator/ui/assistant/form/AssistantForm.d.ts +59 -2
- package/dist/configurator/ui/assistant/form/AssistantForm.js +1 -1
- package/dist/configurator/ui/assistant/form/built-in-form-slots.d.ts +16 -0
- package/dist/configurator/ui/assistant/form/built-in-form-slots.js +1 -0
- package/dist/configurator/ui/assistant/form/form-model.d.ts +9 -0
- package/dist/configurator/ui/assistant/form/index.d.ts +2 -1
- package/dist/configurator/ui/assistant/form/parse-form-block.d.ts +6 -5
- package/dist/configurator/ui/assistant/form/parse-form-block.js +1 -1
- package/dist/configurator/ui/assistant/form/read-form-tile.d.ts +8 -0
- package/dist/configurator/ui/assistant/form/read-form-tile.js +1 -0
- package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.d.ts +6 -3
- package/dist/configurator/ui/assistant/form/registry/built-in-form-elements.js +1 -1
- package/dist/configurator/ui/assistant/form/registry/create-assistant-form-element.d.ts +11 -7
- package/dist/configurator/ui/assistant/form/registry/form-registry.d.ts +1 -1
- package/dist/configurator/ui/assistant/form/registry/form-registry.js +1 -1
- package/dist/configurator/ui/assistant/form/registry/index.d.ts +1 -1
- package/dist/configurator/ui/assistant/form/split-form-rows.d.ts +7 -0
- package/dist/configurator/ui/assistant/form/split-form-rows.js +1 -0
- package/dist/configurator/ui/assistant/form-elements/FormConfirm.d.ts +51 -0
- package/dist/configurator/ui/assistant/form-elements/FormConfirm.js +1 -1
- package/dist/configurator/ui/assistant/form-elements/FormGroup.d.ts +47 -0
- package/dist/configurator/ui/assistant/form-elements/FormGroup.js +1 -1
- package/dist/configurator/ui/assistant/form-elements/FormNumber.d.ts +43 -0
- package/dist/configurator/ui/assistant/form-elements/FormNumber.js +1 -1
- package/dist/configurator/ui/assistant/form-elements/FormOptions.d.ts +56 -2
- package/dist/configurator/ui/assistant/form-elements/FormOptions.js +1 -1
- package/dist/configurator/ui/assistant/form-elements/FormReply.d.ts +43 -0
- package/dist/configurator/ui/assistant/form-elements/FormReply.js +1 -1
- package/dist/configurator/ui/assistant/form-elements/FormText.d.ts +47 -0
- package/dist/configurator/ui/assistant/form-elements/FormText.js +1 -1
- package/dist/configurator/ui/assistant/form-elements/FormTile.d.ts +72 -0
- package/dist/configurator/ui/assistant/form-elements/FormTile.js +1 -0
- package/dist/configurator/ui/assistant/form-elements/form-element-props.d.ts +27 -0
- package/dist/configurator/ui/assistant/form-elements/index.d.ts +8 -9
- package/dist/configurator/ui/assistant/form-elements/index.js +1 -1
- package/dist/configurator/ui/assistant/image-view/ImageView.d.ts +66 -0
- package/dist/configurator/ui/assistant/image-view/ImageView.js +1 -0
- package/dist/configurator/ui/assistant/image-view/index.d.ts +1 -0
- package/dist/configurator/ui/assistant/image-view/index.js +1 -0
- package/dist/configurator/ui/assistant/image-view/use-image-blob.d.ts +7 -0
- package/dist/configurator/ui/assistant/image-view/use-image-blob.js +1 -0
- package/dist/configurator/ui/assistant/index.d.ts +21 -10
- package/dist/configurator/ui/assistant/index.js +1 -1
- package/dist/configurator/ui/assistant/panel/AssistantPanelHeader.d.ts +57 -0
- package/dist/configurator/ui/assistant/panel/AssistantPanelHeader.js +1 -0
- package/dist/configurator/ui/assistant/panel/index.d.ts +1 -0
- package/dist/configurator/ui/assistant/panel/index.js +1 -0
- package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.d.ts +43 -1
- package/dist/configurator/ui/assistant/reference-link/AssistantReferenceLink.js +1 -1
- package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.d.ts +4 -1
- package/dist/configurator/ui/assistant/reference-link/assistant-reference-details.js +1 -1
- package/dist/configurator/ui/assistant/reference-link/index.d.ts +3 -2
- package/dist/configurator/ui/assistant/reference-link/index.js +1 -1
- package/dist/configurator/ui/assistant/resource-image/AssistantImage.d.ts +49 -2
- package/dist/configurator/ui/assistant/resource-image/AssistantImage.js +1 -1
- package/dist/configurator/ui/assistant/resource-image/index.d.ts +1 -1
- package/dist/configurator/ui/assistant/resource-image/index.js +1 -1
- package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.d.ts +34 -0
- package/dist/configurator/ui/assistant/screenshots/ScreenshotThumbnails.js +1 -1
- package/dist/configurator/ui/assistant/screenshots/index.d.ts +1 -1
- package/dist/configurator/ui/assistant/screenshots/tool-screenshots.d.ts +2 -6
- package/dist/configurator/ui/assistant/screenshots/tool-screenshots.js +1 -1
- package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.d.ts +5 -6
- package/dist/configurator/ui/assistant/screenshots/use-screenshot-src.js +1 -1
- package/dist/configurator/ui/assistant/thread-items.d.ts +17 -3
- package/dist/configurator/ui/assistant/thread-items.js +1 -1
- package/dist/configurator/ui/assistant/use-assistant-composer.d.ts +32 -7
- package/dist/configurator/ui/assistant/use-assistant-composer.js +2 -2
- package/dist/configurator/ui/assistant/use-assistant-thread.d.ts +15 -1
- package/dist/configurator/ui/assistant/use-assistant-thread.js +1 -1
- package/dist/configurator/ui/assistant/use-load-older-on-top.d.ts +3 -3
- package/dist/configurator/ui/assistant/use-load-older-on-top.js +1 -1
- package/dist/configurator/ui/assistant/{annotation/use-end-on-unmount.d.ts → use-on-unmount.d.ts} +1 -1
- package/dist/configurator/ui/assistant/use-on-unmount.js +1 -0
- package/dist/configurator/ui/assistant/voice/RecordingBar.d.ts +21 -0
- package/dist/configurator/ui/assistant/voice/RecordingBar.js +1 -0
- package/dist/configurator/ui/assistant/voice/ReplyPlayButton.d.ts +43 -0
- package/dist/configurator/ui/assistant/voice/ReplyPlayButton.js +1 -0
- package/dist/configurator/ui/assistant/voice/index.d.ts +4 -0
- package/dist/configurator/ui/assistant/voice/index.js +1 -0
- package/dist/configurator/ui/assistant/voice/use-voice-recording.d.ts +39 -0
- package/dist/configurator/ui/assistant/voice/use-voice-recording.js +1 -0
- package/dist/configurator/ui/assistant/voice/voice-capture.d.ts +22 -0
- package/dist/configurator/ui/assistant/voice/voice-capture.js +1 -0
- 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/canvas/LayoutCanvas.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/Layout.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-layout-scene-safe-area.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 +130 -5
- package/dist/docs/integrations/woocommerce/overview.mdx +4 -2
- package/dist/docs/layouts/nested-view-controls.mdx +223 -0
- package/dist/docs/layouts/presets/custom.mdx +1 -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 +82 -55
- package/dist/docs/other-features/violation-messages.mdx +3 -1
- package/dist/docs/phoenix/admin.mdx +30 -34
- 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/blender-rendering.mdx +3 -1
- package/dist/docs/phoenix/configurator-interface.mdx +105 -10
- package/dist/docs/phoenix/data-sources.mdx +61 -37
- package/dist/docs/phoenix/finalization.mdx +2 -1
- package/dist/docs/phoenix/getting-started.mdx +1 -1
- package/dist/docs/phoenix/integration/authentication-internal.mdx +2 -2
- package/dist/docs/phoenix/integration/finalization-internal.mdx +1 -1
- package/dist/docs/phoenix/layout-slots.mdx +2 -2
- package/dist/docs/phoenix/localization.mdx +2 -1
- package/dist/docs/phoenix/migrations.mdx +1 -1
- package/dist/docs/phoenix/phoenix-cli.mdx +97 -57
- package/dist/docs/phoenix/project-structure.mdx +17 -7
- package/dist/docs/phoenix/sdk-builder-workflow.mdx +61 -30
- package/dist/docs/phoenix/sessions-and-access.mdx +62 -41
- package/dist/docs/phoenix/sharing.mdx +1 -1
- package/dist/docs/phoenix/theming.mdx +5 -9
- package/dist/docs/phoenix/webhook-membership.mdx +1 -1
- package/dist/docs/phoenix/webhooks.mdx +417 -241
- package/dist/docs/ux-guidelines/choosing-navigation.mdx +2 -0
- package/dist/docs/ux-guidelines/designing-the-configuration-journey.mdx +43 -0
- package/dist/docs/ux-guidelines/interaction-modes.mdx +2 -2
- package/dist/docs/ux-guidelines/overview.mdx +11 -9
- package/dist/domain/admin-domain/index.d.ts +2 -2
- package/dist/domain/application/application-config.d.ts +8 -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/assistant-selection.d.ts +30 -0
- package/dist/domain/application/assistant/assistant-selection.js +1 -0
- package/dist/domain/application/assistant/build-assistant-lenses.js +4 -4
- package/dist/domain/application/assistant/build-assistant-manifest.d.ts +2 -2
- package/dist/domain/application/assistant/build-assistant-manifest.js +1 -1
- package/dist/domain/application/assistant/generate-assistant-prompt.d.ts +18 -2
- package/dist/domain/application/assistant/generate-assistant-prompt.js +1 -1
- package/dist/domain/application/assistant/index.d.ts +5 -1
- package/dist/domain/application/assistant/index.js +1 -1
- package/dist/domain/application/assistant/prepare-assistant-navigation-updates.d.ts +16 -0
- package/dist/domain/application/assistant/prepare-assistant-navigation-updates.js +1 -0
- package/dist/domain/application/assistant/read-assistant-navigation.d.ts +40 -0
- package/dist/domain/application/assistant/read-assistant-navigation.js +1 -0
- 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 +30 -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-field-options.d.ts +2 -0
- package/dist/domain/application/assistant-field-options.js +1 -1
- package/dist/domain/application/assistant-mutations.d.ts +17 -11
- 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 +45 -37
- package/dist/domain/application/configurator-builder.js +1 -1
- package/dist/domain/available-system-components/available-system-components.d.ts +1 -1
- package/dist/domain/available-system-components/available-system-components.js +1 -1
- package/dist/domain/core/action/action.d.ts +0 -49
- package/dist/domain/core/action/index.d.ts +0 -1
- package/dist/domain/core/action/index.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 +2 -3
- package/dist/domain/core/index.d.ts +1 -1
- package/dist/domain/core/index.js +1 -1
- package/dist/domain/core/invariant/control-violation-hints.d.ts +37 -0
- package/dist/domain/core/invariant/control-violation-hints.js +1 -0
- package/dist/domain/core/invariant/index.d.ts +1 -0
- package/dist/domain/core/invariant/index.js +1 -1
- package/dist/domain/domain-builder/domain-builder.d.ts +1 -6
- package/dist/domain/domain-builder/domain-builder.js +1 -1
- package/dist/domain/domain-context/domain-context-systems.d.ts +3 -5
- package/dist/domain/domain-context/index.d.ts +0 -1
- package/dist/domain/domain-context/index.js +1 -1
- 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/domain-context.d.ts +1 -1
- package/dist/domain/domain-runtime/domain-context/domain-context.js +1 -1
- package/dist/domain/domain-runtime/domain-context/index.d.ts +0 -1
- package/dist/domain/domain-runtime/domain-context/selectors.d.ts +5 -4
- package/dist/domain/domain-runtime/domain-context/selectors.js +1 -1
- package/dist/domain/domain-runtime/domain-runtime.d.ts +19 -13
- package/dist/domain/domain-runtime/domain-runtime.js +1 -1
- package/dist/domain/domain-runtime/environment/actions.d.ts +1 -0
- package/dist/domain/domain-runtime/environment/actions.js +1 -1
- package/dist/domain/domain-runtime/environment/initialize.js +1 -1
- package/dist/domain/domain-runtime/environment/selectors.d.ts +2 -0
- package/dist/domain/domain-runtime/environment/selectors.js +1 -1
- package/dist/domain/domain-runtime/environment/types.d.ts +6 -0
- package/dist/domain/domain-runtime/spec/index.d.ts +0 -1
- package/dist/domain/domain-runtime/spec/index.js +1 -1
- package/dist/domain/domain-runtime/spec/initialize.js +1 -1
- package/dist/domain/domain-runtime/spec/selectors.d.ts +2 -2
- package/dist/domain/domain-runtime/spec/types.d.ts +12 -10
- package/dist/domain/extensions/assistant/assistant-greeting.d.ts +30 -0
- package/dist/domain/extensions/assistant/assistant-greeting.js +1 -0
- package/dist/domain/extensions/assistant/index.d.ts +1 -0
- package/dist/domain/extensions/assistant/index.js +1 -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 +1 -1
- package/dist/domain/extensions/index.js +1 -1
- package/dist/domain/index.d.ts +1 -1
- package/dist/domain/index.js +1 -1
- package/dist/domain/mocks/create-mock-domain-runtime.d.ts +9 -6
- package/dist/domain/spec/expressions/relation-expression-params.d.ts +1 -1
- package/dist/domain/spec/modules/index.d.ts +0 -1
- package/dist/domain/spec/modules/index.js +1 -1
- package/dist/domain/spec/phx/phx-domain.d.ts +0 -1
- package/dist/domain/spec/phx/phx-domain.js +1 -1
- package/dist/domain/spec/runtime/application-spec-slice.d.ts +5 -5
- package/dist/domain/spec/runtime/application-spec-slice.js +1 -1
- package/dist/domain/spec/runtime/create-application.d.ts +5 -2
- package/dist/domain/spec/runtime/create-application.js +1 -1
- package/dist/domain/spec/runtime-spec/runtime-spec.d.ts +2 -2
- package/dist/domain/spec/sections/actions.d.ts +3 -2
- package/dist/domain/spec/sections/app-metadata.d.ts +3 -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 +35 -2
- package/dist/domain/spec/sections/assistant/assistant-navigation.d.ts +21 -0
- package/dist/domain/spec/sections/assistant/assistant-navigation.js +1 -0
- package/dist/domain/spec/sections/assistant/assistant-resolved-manifest.d.ts +55 -13
- package/dist/domain/spec/sections/assistant/assistant-select.d.ts +12 -0
- package/dist/domain/spec/sections/assistant/assistant-select.js +1 -0
- package/dist/domain/spec/sections/assistant/form/assistant-form-elements.d.ts +10 -26
- package/dist/domain/spec/sections/assistant/form/assistant-form-elements.js +1 -1
- package/dist/domain/spec/sections/assistant/index.d.ts +5 -2
- 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/Editor.d.ts +5 -0
- package/dist/editor/Editor.js +1 -1
- package/dist/editor/EditorMode.d.ts +2 -0
- package/dist/editor/EditorMode.js +1 -1
- package/dist/editor/agent-mode/AgentModeBridge.d.ts +10 -0
- package/dist/editor/agent-mode/AgentModeBridge.js +1 -0
- package/dist/editor/agent-mode/agent-at-work-fonts.d.ts +2 -0
- package/dist/editor/agent-mode/agent-at-work-fonts.js +1 -0
- package/dist/editor/console-reporter/BrowserConsoleReporter.js +1 -1
- package/dist/editor/console-reporter/console-capture.d.ts +20 -0
- package/dist/editor/console-reporter/console-capture.js +1 -0
- package/dist/editor/domain-editors/DomainSpecContext.js +1 -1
- package/dist/editor/domain-editors/apply-spec-update.js +1 -1
- package/dist/editor/domain-editors/use-implementation-files.d.ts +4 -3
- package/dist/editor/domain-editors/use-implementation-files.js +1 -1
- package/dist/editor/index.d.ts +1 -0
- package/dist/editor/index.js +1 -1
- package/dist/editor/variants/VariantAnswerFooter.d.ts +8 -1
- package/dist/editor/variants/VariantAnswerFooter.js +1 -1
- package/dist/editor/variants/VariantPageUnavailable.d.ts +5 -0
- package/dist/editor/variants/VariantPageUnavailable.js +1 -0
- package/dist/editor/variants/VariantPreviewHandler.js +1 -1
- package/dist/editor/variants/variant-preview-fonts.d.ts +2 -0
- package/dist/editor/variants/variant-preview-fonts.js +1 -0
- package/dist/editor/variants/variant-preview-styles.d.ts +40 -48
- package/dist/editor/variants/variant-preview-styles.js +493 -1
- package/dist/extras/cognito/CognitoSignInPage.d.ts +2 -0
- package/dist/extras/cognito/CognitoSignInPage.js +1 -0
- package/dist/extras/cognito/index.d.ts +1 -0
- package/dist/extras/cognito/index.js +1 -0
- 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-cli/gen/configurator-builder.js +5 -4
- package/dist/legacy/domain-cli/utils/cache.d.ts +1 -1
- package/dist/legacy/domain-cli/utils/cache.js +1 -1
- package/dist/legacy/domain-spec/__generated/domain-schema.d.ts +25 -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/legacy/webhook-cli/lib/webhook-boundary.js +1 -1
- package/dist/phoenix/application-spec/application-spec-builder.d.ts +2 -2
- package/dist/phoenix/application-spec/application-spec-builder.js +1 -1
- package/dist/phoenix/application-spec/generate-application-spec-project.d.ts +2 -1
- package/dist/phoenix/application-spec/generate-application-spec-project.js +2 -2
- package/dist/phoenix/application-spec/generate-project-files.d.ts +4 -3
- package/dist/phoenix/application-spec/generate-project-files.js +1 -1
- package/dist/phoenix/application-spec/index.d.ts +2 -1
- package/dist/phoenix/application-spec/index.js +1 -1
- package/dist/phoenix/application-spec/read-spec-project.d.ts +1 -2
- package/dist/phoenix/application-spec/read-spec-project.js +1 -1
- package/dist/phoenix/application-spec/resolve-deployment-data.d.ts +1 -0
- package/dist/phoenix/application-spec/resolve-deployment-data.js +2 -2
- package/dist/phoenix/cli.js +1 -1
- package/dist/phoenix/commands/account/index.d.ts +1 -0
- package/dist/phoenix/commands/account/index.js +1 -0
- package/dist/phoenix/commands/account/whoami.d.ts +10 -0
- package/dist/phoenix/commands/account/whoami.js +4 -0
- package/dist/phoenix/commands/build.d.ts +2 -1
- package/dist/phoenix/commands/build.js +1 -1
- package/dist/phoenix/commands/clean.d.ts +2 -1
- package/dist/phoenix/commands/clean.js +1 -1
- 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/dev.d.ts +2 -1
- package/dist/phoenix/commands/dev.js +4 -4
- 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/index.d.ts +1 -0
- package/dist/phoenix/commands/index.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 +6 -3
- package/dist/phoenix/commands/login.js +3 -3
- 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/commands/sync.d.ts +2 -1
- package/dist/phoenix/commands/sync.js +1 -1
- package/dist/phoenix/services/application-spec-project-watcher.d.ts +3 -1
- package/dist/phoenix/services/application-spec-project-watcher.js +2 -2
- package/dist/phoenix/services/cli-credentials.d.ts +26 -7
- 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 +19 -0
- package/dist/phoenix/services/cli-server/resolve-cli-server-url.js +1 -0
- package/dist/phoenix/services/dev-experience/dev-experience.d.ts +31 -0
- package/dist/phoenix/services/dev-experience/dev-experience.js +1 -0
- package/dist/phoenix/services/dev-experience/index.d.ts +3 -0
- package/dist/phoenix/services/dev-experience/index.js +1 -0
- package/dist/phoenix/services/dev-experience/read-explicit-editor-setting.d.ts +7 -0
- package/dist/phoenix/services/dev-experience/read-explicit-editor-setting.js +1 -0
- package/dist/phoenix/services/dev-experience/regenerated-page-experience.d.ts +24 -0
- package/dist/phoenix/services/dev-experience/regenerated-page-experience.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 +6 -3
- package/dist/phoenix/services/index.js +1 -1
- package/dist/phoenix/services/phoenix-pubsub.d.ts +4 -0
- package/dist/phoenix/services/phoenix-regions.d.ts +6 -1
- package/dist/phoenix/services/phoenix-regions.js +1 -1
- package/dist/phoenix/services/prepare-development-environment.js +1 -1
- package/dist/phoenix/services/session/phoenix-application.d.ts +2 -1
- package/dist/phoenix/services/session/phoenix-application.js +2 -2
- 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/telemetry/telemetry-event.js +1 -1
- package/dist/phoenix/services/telemetry/telemetry-state.d.ts +1 -1
- package/dist/phoenix/services/telemetry/telemetry-state.js +1 -1
- package/dist/phoenix/services/variant-file-session.js +1 -1
- package/dist/phoenix/services/vite-config.d.ts +2 -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/index.d.ts +1 -0
- package/dist/react-sdk/application-runtime/common-services/index.js +1 -1
- package/dist/react-sdk/application-runtime/common-services/selectors.d.ts +2 -0
- package/dist/react-sdk/application-runtime/common-services/selectors.js +1 -1
- package/dist/react-sdk/application-runtime/common-services/webmcp/index.d.ts +3 -0
- package/dist/react-sdk/application-runtime/common-services/webmcp/index.js +1 -0
- package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-host.d.ts +35 -0
- package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-host.js +1 -0
- package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-model-context.d.ts +44 -0
- package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-model-context.js +1 -0
- package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-tool-result.d.ts +24 -0
- package/dist/react-sdk/application-runtime/common-services/webmcp/webmcp-tool-result.js +1 -0
- package/dist/react-sdk/application-runtime/domain-application-context/application-runtime-extension.d.ts +7 -1
- package/dist/react-sdk/application-runtime/domain-application-context/application-runtime-extension.js +1 -1
- package/dist/react-sdk/application-runtime/domain-application-context/domain-application-systems.d.ts +2 -2
- package/dist/react-sdk/application-runtime/domain-application-context/selectors.d.ts +1 -3
- package/dist/react-sdk/application-runtime/domain-application-context/selectors.js +1 -1
- package/dist/react-sdk/application-runtime/hooks/index.d.ts +1 -0
- package/dist/react-sdk/application-runtime/hooks/index.js +1 -1
- package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-application.d.ts +2 -0
- package/dist/react-sdk/application-runtime/hooks/responsive/use-responsive-store.js +1 -1
- package/dist/react-sdk/application-runtime/hooks/use-environment.d.ts +7 -0
- package/dist/react-sdk/application-runtime/hooks/use-environment.js +1 -1
- package/dist/react-sdk/application-runtime/hooks/use-spec.d.ts +1 -1
- package/dist/react-sdk/application-runtime/hooks/use-webmcp-host.d.ts +7 -0
- package/dist/react-sdk/application-runtime/hooks/use-webmcp-host.js +1 -0
- package/dist/react-sdk/application-runtime/mocks/create-mock-application-runtime.js +1 -1
- package/dist/react-sdk/application-runtime/responsive/actions.d.ts +6 -0
- package/dist/react-sdk/application-runtime/responsive/actions.js +1 -1
- package/dist/react-sdk/application-runtime/responsive/initialize.js +1 -1
- package/dist/react-sdk/application-runtime/responsive/selectors.js +1 -1
- package/dist/react-sdk/application-runtime/responsive/types.d.ts +9 -0
- package/dist/react-sdk/application-runtime/runtime/create-application-runtime.d.ts +28 -12
- package/dist/react-sdk/application-runtime/runtime/create-application-runtime.js +1 -1
- package/dist/react-sdk/application-runtime/session/session-service.js +1 -1
- package/dist/react-sdk/domain-context/common-hooks/use-domain-context.d.ts +2 -2
- package/dist/react-sdk/domain-context/common-hooks/use-state-validity.d.ts +1 -1
- package/dist/react-sdk/domain-context/common-hooks/use-state-validity.js +1 -1
- 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.d.ts +11 -0
- package/dist/react-sdk/preset-selection/PresetSelectionProvider.js +1 -1
- package/dist/react-sdk/preset-selection/PresetWebMcpTools.d.ts +14 -0
- package/dist/react-sdk/preset-selection/PresetWebMcpTools.js +1 -0
- package/dist/react-sdk/preset-selection/index.d.ts +2 -1
- package/dist/react-sdk/preset-selection/index.js +1 -1
- package/dist/react-sdk/preset-selection/register-preset-webmcp-tools.d.ts +31 -0
- package/dist/react-sdk/preset-selection/register-preset-webmcp-tools.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/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/ui-sdk/icons/__generated/Microphone.d.ts +3 -0
- package/dist/ui-sdk/icons/__generated/Microphone.js +1 -0
- package/dist/ui-sdk/icons/__generated/MicrophoneSlash.d.ts +3 -0
- package/dist/ui-sdk/icons/__generated/MicrophoneSlash.js +1 -0
- package/dist/ui-sdk/icons/__generated/SpeakerHigh.d.ts +3 -0
- package/dist/ui-sdk/icons/__generated/SpeakerHigh.js +1 -0
- package/dist/ui-sdk/icons/__generated/SpeakerSlash.d.ts +3 -0
- package/dist/ui-sdk/icons/__generated/SpeakerSlash.js +1 -0
- package/dist/ui-sdk/icons/__generated/Stop.d.ts +3 -0
- package/dist/ui-sdk/icons/__generated/Stop.js +1 -0
- package/dist/ui-sdk/icons/__generated/index.d.ts +10 -0
- package/dist/ui-sdk/icons/__generated/index.js +1 -1
- package/dist/ui-sdk/icons/icons-registry.js +1 -1
- package/dist/ui-sdk/theme/types.d.ts +0 -4
- package/dist/webhook/builders/auth-handler-builder.d.ts +3 -0
- package/dist/webhook/builders/auth-handler-builder.js +1 -1
- package/dist/webhook/builders/common.d.ts +5 -3
- package/dist/webhook/builders/webhook-builder.d.ts +5 -0
- package/dist/webhook/builders/webhook-builder.js +1 -1
- package/package.json +11 -4
- package/schema/domain-spec.json +444 -65
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks.d.ts +0 -2
- package/dist/application-spec/generate-application/code/templates/skills/features/webhooks.js +0 -1
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.d.ts +0 -2
- package/dist/application-spec/generate-application/code/templates/skills/processes/specification/ux-guidelines.js +0 -25
- package/dist/configurator/ui/assistant/annotation/annotation-host-context.d.ts +0 -5
- package/dist/configurator/ui/assistant/annotation/annotation-host-context.js +0 -1
- package/dist/configurator/ui/assistant/annotation/use-end-on-unmount.js +0 -1
- package/dist/configurator/ui/assistant/form-elements/FormCard.d.ts +0 -9
- package/dist/configurator/ui/assistant/form-elements/FormCard.js +0 -1
- package/dist/configurator/ui/assistant/form-elements/FormSwatch.d.ts +0 -10
- package/dist/configurator/ui/assistant/form-elements/FormSwatch.js +0 -1
- package/dist/configurator/ui/assistant/theme.d.ts +0 -2
- package/dist/configurator/ui/assistant/theme.js +0 -1
- package/dist/configurator/ui/configurator-layout/universal/ExportingOverlay.js +0 -1
- package/dist/domain/core/action/action-factory.d.ts +0 -11
- package/dist/domain/domain-context/action-system/action-system.d.ts +0 -38
- package/dist/domain/domain-context/action-system/action-system.js +0 -1
- package/dist/domain/domain-context/action-system/index.d.ts +0 -1
- package/dist/domain/domain-context/action-system/index.js +0 -1
- package/dist/domain/domain-runtime/domain-context/action-context.d.ts +0 -11
- package/dist/domain/extensions/view-controls.d.ts +0 -25
- package/dist/domain/extensions/view-controls.js +0 -1
- package/dist/domain/spec/modules/resolve-action-modules.js +0 -1
- /package/dist/{domain/domain-runtime/domain-context → configurator/application-runtime/extensions/systems/action-system}/action-context.js +0 -0
- /package/dist/{domain/core/action → configurator/application-runtime/extensions/systems/action-system}/action-factory.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{match as t}from"ts-pattern";import{InfoError as e}from"@salsita-ai/common/utils";import{
|
|
1
|
+
import{match as t}from"ts-pattern";import{InfoError as e}from"@salsita-ai/common/utils";import{CONFIGURATOR_UNAVAILABLE_HEADER as r}from"@salsita-ai/contracts/api";import{createApiBaseClient as s}from"./base-client.js";import{ConfiguratorUnavailableError as i,InvalidDeploymentError as o}from"./contract.js";import{checkApiVersion as a}from"./version.js";let n=(s,a,n)=>"true"===a.headers.get(r)?new i:t(s).with({statusCode:400,invalidDeployment:!0},()=>new o).with({statusCode:403},()=>new e(`${n} API request failed: ${JSON.stringify(s)}`)).otherwise(()=>Error(`${n} API request failed: ${JSON.stringify(s)}`));export class UnauthenticatedClient{_baseUrl;_logger;_client;constructor(t,e){this._baseUrl=t,this._logger=e,this._client=s(this._baseUrl)}authenticateDeployment=async t=>{let e=await this._client.GET("/deployments/{deploymentId}/token",{params:{path:{deploymentId:t}}});if(a(e,this._logger),e.error)throw n(e.error,e.response,"authenticateDeployment");return e.data.bearerToken};authenticateSession=async(t,e,r,s)=>{let i=await this._client.POST("/deployments/{deploymentId}/session",{params:{path:{deploymentId:t}},body:{code:e,refreshToken:r,browserUserId:s}});if(a(i,this._logger),i.error)throw n(i.error,i.response,"authenticateSession");return i.data}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r,jsxs as e}from"react/jsx-runtime";import{I18nProvider as o}from"@lingui/react";import{QueryClientProvider as n}from"@tanstack/react-query";import i from"mui-modal-provider";import{useEffect as l}from"react";import{standardWebComponentProperties as a}from"#package/domain";import{getAvailableLocales as t,resolveLocale as c}from"#package/i18n";import{ApplicationType as d,ApplicationTypeProvider as m,ConfiguratorDataProvider as s,ConfiguratorProviderSlot as p,ConfiguratorProviderSlotHost as h,ConfiguratorRoutingProvider as u,ConfiguratorUiElement as f,ConfiguratorUiElementHost as g,ErrorFallbackElement as b,LoaderHost as k,OnApplicationStartProvider as x,OnRoutingReadyProvider as j,OnSessionReadyProvider as v,PlainErrorFallback as y,PresetSelectionProvider as C,
|
|
1
|
+
import{jsx as r,jsxs as e}from"react/jsx-runtime";import{I18nProvider as o}from"@lingui/react";import{QueryClientProvider as n}from"@tanstack/react-query";import i from"mui-modal-provider";import{useEffect as l}from"react";import{standardWebComponentProperties as a}from"#package/domain";import{getAvailableLocales as t,resolveLocale as c}from"#package/i18n";import{ApplicationType as d,ApplicationTypeProvider as m,ConfiguratorDataProvider as s,ConfiguratorProviderSlot as p,ConfiguratorProviderSlotHost as h,ConfiguratorRoutingProvider as u,ConfiguratorUiElement as f,ConfiguratorUiElementHost as g,ErrorFallbackElement as b,LoaderHost as k,OnApplicationStartProvider as x,OnRoutingReadyProvider as j,OnSessionReadyProvider as v,PlainErrorFallback as y,PresetSelectionProvider as C,PresetWebMcpTools as w,SessionServiceProvider as E,useApplicationQueryClient as F,useI18n as L,usePowerRoutingLifecycle as R,useSpecAlwaysExpand as q,useSpecPreview as A,useWebComponentProperty$ as B,useWebComponentPropertySetter as D,useWebComponentPropertyValue as G}from"#package/react-sdk";import{PreviewApplicationProvider as H}from"./configurator-context/index.js";import{LoadingErrorBoundary as I}from"./pages/error-boundaries/LoadingErrorBoundary.js";import{RootPage as M}from"./pages/index.js";let S=e=>r(b,{name:f.GeneralErrorFallback,unregisteredFallback:y,...e});export const ConfiguratorApp=()=>{let b=F(),y=L(),T=A(),z=q(),J=D(a.locale),K=B(a.locale);l(()=>{let r=K.subscribe(r=>{let e=c(r,t(y));y.activate(e)}),e=()=>{J(y.locale)};return y.on("change",e),()=>{r.unsubscribe(),y.removeListener("change",e)}},[K,y,J]);let N=G(a.power);return(R(),"off"===N)?null:r(m,{type:d.Configurator,children:r(n,{client:b,children:r(h,{slot:p.Theme,children:r(k,{children:r(h,{slot:p.Container,children:r(h,{slot:p.Loader,children:r(H,{alwaysExpand:z,preview:T,children:r(o,{i18n:y,children:r(h,{slot:p.MessageHost,children:r(I,{FallbackComponent:S,children:r(h,{slot:p.SceneResources,children:r(x,{children:r(E,{children:r(v,{children:"on"===N&&r(u,{children:r(s,{children:r(C,{children:e(j,{children:[r(w,{}),e(i,{children:[r(g,{name:f.InvalidDeploymentReload}),r(M,{})]})]})})})})})})})})})})})})})})})})})})};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The fallback every configurator error boundary renders in agent mode: it logs the error, which the
|
|
3
|
+
* console forwarding takes to the terminal, and shows the "Agent at work" page.
|
|
4
|
+
*/
|
|
5
|
+
export declare const AgentAtWorkFallback: (props: {
|
|
6
|
+
readonly error: unknown;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{useEffect as t}from"react";import{AgentAtWorkPage as o}from"./AgentAtWorkPage.js";export const AgentAtWorkFallback=e=>{let{error:a}=e;return t(()=>{console.error(`The configurator hit an error and shows the "Agent at work" page: ${a instanceof Error?a.stack??`${a.name}: ${a.message}`:String(a)}`)},[a]),r(o,{variant:"working"})};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `working` is the page for a configurator that failed; `restarting` is the one for a page that lost
|
|
3
|
+
* its dev server.
|
|
4
|
+
*/
|
|
5
|
+
export type AgentAtWorkVariant = 'working' | 'restarting';
|
|
6
|
+
/**
|
|
7
|
+
* Whether an "Agent at work" page shows on this document.
|
|
8
|
+
*
|
|
9
|
+
* @internal Read by the hidden editor of agent mode only.
|
|
10
|
+
*/
|
|
11
|
+
export declare const isAgentAtWorkPageShown: () => boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The "Agent at work" page of agent mode, shown in place of every dev error page. It shows no error
|
|
14
|
+
* details; those go to the terminal.
|
|
15
|
+
*
|
|
16
|
+
* @internal Rendered by the configurator fallbacks and the hidden editor of agent mode only.
|
|
17
|
+
*/
|
|
18
|
+
export declare const AgentAtWorkPage: (props: {
|
|
19
|
+
readonly variant: AgentAtWorkVariant;
|
|
20
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useEffect as r,useState as a}from"react";import{StudioMark as n,StudioMiniMark as o}from"./StudioMark.js";import{agentAtWorkCopy as s,pickNextLineIndex as i}from"./agent-at-work-copy.js";import{agentAtWorkStyles as l,agentClass as m}from"./agent-at-work-styles.js";let d="data-phoenix-agent-at-work";export const isAgentAtWorkPageShown=()=>document.documentElement.hasAttribute(d);export const AgentAtWorkPage=c=>{let{variant:u}=c,h=(()=>{let e=s.rotatingLines.length,[t,n]=a(()=>i(e,void 0,Math.random));return r(()=>{let t=window.setInterval(()=>n(t=>i(e,t,Math.random)),4e3);return()=>window.clearInterval(t)},[e]),t})();return r(()=>(document.documentElement.setAttribute(d,""),()=>document.documentElement.removeAttribute(d)),[]),t("div",{className:m.screen,role:"status","aria-live":"polite","data-variant":u,children:[e("style",{children:l}),e(n,{}),e("h1",{className:m.headline,children:s.headline}),e("p",{className:m.subline,children:s.subline[u]}),t("p",{className:m.line,"aria-hidden":"true",children:[e(o,{}),e("span",{children:s.rotatingLines[h]})]},h),e("p",{className:m.footer,children:s.footer})]})};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** What the badge shows: agent mode on and up to date, or the latest change failed to build. */
|
|
2
|
+
export type AgentModeBadgeStatus = 'idle' | 'failed';
|
|
3
|
+
/**
|
|
4
|
+
* The corner badge of agent mode, in `status`, unless it was dismissed during this browser session. It
|
|
5
|
+
* never shows error text: the agent reads the details in the terminal.
|
|
6
|
+
*
|
|
7
|
+
* @internal Rendered by the hidden editor of agent mode only.
|
|
8
|
+
*/
|
|
9
|
+
export declare const AgentModeBadge: (props: {
|
|
10
|
+
readonly status: AgentModeBadgeStatus;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useState as s}from"react";import{StudioMiniMark as a}from"./StudioMark.js";import{agentAtWorkCopy as r}from"./agent-at-work-copy.js";import{agentAtWorkStyles as i,agentClass as o}from"./agent-at-work-styles.js";let n="phoenix-agent-badge-dismissed",d=()=>{try{return"true"===window.sessionStorage.getItem(n)}catch{return!1}};export const AgentModeBadge=l=>{let{status:c}=l,[m,g]=s(d);return m?null:t("div",{id:"phoenix-agent-badge",className:o.badge,role:"status","aria-live":"polite","data-status":c,children:[e("style",{children:i}),e("span",{className:o.icon,"aria-hidden":"true",children:"idle"===c?e(a,{}):e("span",{className:o.failedDot})}),e("span",{className:o.label,children:r.badge[c]}),e("button",{type:"button",className:o.dismiss,title:r.badge.dismiss,"aria-label":r.badge.dismiss,onClick:()=>{try{window.sessionStorage.setItem(n,"true")}catch{}g(!0)},children:e("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round","aria-hidden":"true",children:e("path",{d:"M4 4l8 8M12 4l-8 8"})})})]})};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The animated Studio mark of the "Agent at work" page: fluid lines draw in, the outline draws, the
|
|
3
|
+
* fill fades in, the dot blinks once, the lines loosen, and it loops. `agent-at-work-styles.ts`
|
|
4
|
+
* animates it and shows the finished mark still under reduced motion.
|
|
5
|
+
*/
|
|
6
|
+
export declare const StudioMark: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
/** The 14px Studio mark of the rotating line and the badge, whose dot blinks now and then. */
|
|
8
|
+
export declare const StudioMiniMark: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as a,jsxs as s}from"react/jsx-runtime";import{agentClass as e}from"./agent-at-work-styles.js";let t="M6 0 H18 A6 6 0 0 1 24 6 V18 A6 6 0 0 1 18 24 H6 A6 6 0 0 1 0 18 V6 A6 6 0 0 1 6 0 Z",i=["M-16 2 C -8 -6, -2 6, 4 -2 S 14 -10, 22 -6","M40 10 C 32 4, 28 16, 22 12 S 10 6, 2 14","M-14 30 C -6 24, 2 34, 8 28 S 20 22, 36 30"],r=()=>a("circle",{className:e.dot,cx:"8.6",cy:"15.6",r:"3.3"});export const StudioMark=()=>s("svg",{className:e.mark,viewBox:"-18 -12 60 48","aria-hidden":"true",focusable:"false",children:[i.map(s=>a("path",{className:e.flow,pathLength:1,d:s},s)),a("path",{className:e.markFill,d:t}),a("path",{className:e.markOutline,pathLength:1,d:t}),a(r,{})]});export const StudioMiniMark=()=>s("svg",{className:`${e.mini} ${e.wink}`,width:"14",height:"14",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:[a("path",{className:e.miniMark,d:t}),a(r,{})]});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** The copy of the "Agent at work" screen and the rebuild badge. Dev-only, so not translated. */
|
|
2
|
+
export declare const agentAtWorkCopy: {
|
|
3
|
+
readonly headline: 'Agent at work';
|
|
4
|
+
readonly subline: {
|
|
5
|
+
readonly working: 'Your configurator is mid-makeover. It’ll pop back on its own.';
|
|
6
|
+
readonly restarting: 'The agent is restarting things. Hang tight.';
|
|
7
|
+
};
|
|
8
|
+
readonly footer: 'Taking a while? Ask your agent how it’s going.';
|
|
9
|
+
readonly rotatingLines: readonly ['Arguing with TypeScript…', 'Consulting the spec…', 'Tightening the bolts…', 'Seasoning the pixels…', 'Thinking outside the box…', 'Untangling the YAML…', 'Convincing the materials to behave…', 'Teaching the buttons some manners…', 'Measuring twice, rendering once…', 'Rearranging the furniture…', 'Negotiating with the 3D model…', 'Adding a pinch of polish…', 'Counting all the variants…', 'Reading the docs (yes, really)…', 'Nudging things one pixel to the left…', 'Checking the price is right…', 'Making the dropdowns drop down…', 'Polishing the edge cases…', 'Feeding the build pipeline…', 'Lining up the steps…', 'Turning coffee into configurators…', 'Double-checking the double-checks…', 'Choosing a nicer shade of nice…', 'Almost there, probably…'];
|
|
10
|
+
readonly badge: {
|
|
11
|
+
readonly idle: 'Agent mode';
|
|
12
|
+
readonly failed: 'Last change didn’t build';
|
|
13
|
+
readonly dismiss: 'Hide for this session';
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
/** A random index into `count` lines other than `previous`, so the same line never shows twice in a row. */
|
|
17
|
+
export declare const pickNextLineIndex: (count: number, previous: number | undefined, random: () => number) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const agentAtWorkCopy={headline:"Agent at work",subline:{working:"Your configurator is mid-makeover. It’ll pop back on its own.",restarting:"The agent is restarting things. Hang tight."},footer:"Taking a while? Ask your agent how it’s going.",rotatingLines:["Arguing with TypeScript…","Consulting the spec…","Tightening the bolts…","Seasoning the pixels…","Thinking outside the box…","Untangling the YAML…","Convincing the materials to behave…","Teaching the buttons some manners…","Measuring twice, rendering once…","Rearranging the furniture…","Negotiating with the 3D model…","Adding a pinch of polish…","Counting all the variants…","Reading the docs (yes, really)…","Nudging things one pixel to the left…","Checking the price is right…","Making the dropdowns drop down…","Polishing the edge cases…","Feeding the build pipeline…","Lining up the steps…","Turning coffee into configurators…","Double-checking the double-checks…","Choosing a nicer shade of nice…","Almost there, probably…"],badge:{idle:"Agent mode",failed:"Last change didn’t build",dismiss:"Hide for this session"}};export const pickNextLineIndex=(e,i,n)=>e<=1||void 0===i?Math.floor(n()*e):(i+(1+Math.floor(n()*(e-1))))%e;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Class names of the "Agent at work" page and the badge, styled by {@link agentAtWorkStyles}. */
|
|
2
|
+
export declare const agentClass: {
|
|
3
|
+
readonly screen: "phx-agent-screen";
|
|
4
|
+
readonly mark: "phx-agent-mark";
|
|
5
|
+
readonly flow: "phx-agent-flow";
|
|
6
|
+
readonly markFill: "phx-agent-mark-fill";
|
|
7
|
+
readonly markOutline: "phx-agent-mark-outline";
|
|
8
|
+
readonly dot: "phx-agent-dot";
|
|
9
|
+
readonly mini: "phx-agent-mini";
|
|
10
|
+
readonly miniMark: "phx-agent-mini-mark";
|
|
11
|
+
readonly wink: "phx-agent-wink";
|
|
12
|
+
readonly headline: "phx-agent-headline";
|
|
13
|
+
readonly subline: "phx-agent-subline";
|
|
14
|
+
readonly line: "phx-agent-line";
|
|
15
|
+
readonly footer: "phx-agent-footer";
|
|
16
|
+
readonly badge: "phx-agent-badge";
|
|
17
|
+
readonly icon: "phx-agent-icon";
|
|
18
|
+
readonly failedDot: "phx-agent-failed-dot";
|
|
19
|
+
readonly label: "phx-agent-label";
|
|
20
|
+
readonly dismiss: "phx-agent-dismiss";
|
|
21
|
+
};
|
|
22
|
+
/** Styles of the "Agent at work" page, the mark animation included, and of the badge. */
|
|
23
|
+
export declare const agentAtWorkStyles = "\n .phx-agent-screen,\n .phx-agent-badge {\n all: initial;\n --agent-bg: #ffffff;\n --agent-surface: #ffffff;\n --agent-hover: #f2f2f2;\n --agent-subtle: #f2f2f2;\n --agent-border3: #d4d4d4;\n --agent-text: #171717;\n --agent-text2: #3d3d3d;\n --agent-muted: #5c5c5c;\n --agent-faint: #8f8f8f;\n --agent-bad: #b42318;\n --agent-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);\n color-scheme: light;\n }\n\n @media (prefers-color-scheme: dark) {\n .phx-agent-screen,\n .phx-agent-badge {\n --agent-bg: #08090a;\n --agent-surface: #0f1011;\n --agent-hover: #16171a;\n --agent-subtle: #1c1d21;\n --agent-border3: #3a3d42;\n --agent-text: #f7f8f8;\n --agent-text2: #d0d6e0;\n --agent-muted: #8a8f98;\n --agent-faint: #62666d;\n --agent-bad: #ff7a7a;\n --agent-shadow: 0 4px 32px rgba(8, 9, 10, 0.6), inset 0 0 0 1px #23252a;\n color-scheme: dark;\n }\n }\n\n .phx-agent-mini {\n display: block;\n flex: none;\n }\n\n .phx-agent-mini .phx-agent-mini-mark {\n fill: var(--agent-text);\n }\n\n .phx-agent-mini .phx-agent-dot {\n fill: var(--agent-bg);\n }\n\n .phx-agent-wink .phx-agent-dot {\n animation: phx-agent-wink 4s ease-in-out infinite;\n }\n\n @keyframes phx-agent-wink {\n 0%,\n 88% {\n opacity: 1;\n }\n 91% {\n opacity: 0.1;\n }\n 94%,\n 100% {\n opacity: 1;\n }\n }\n\n .phx-agent-screen {\n position: fixed;\n inset: 0;\n z-index: 10000;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 24px;\n box-sizing: border-box;\n background: var(--agent-bg);\n color: var(--agent-text);\n font-family: \"Funnel Sans Variable\", system-ui, -apple-system, \"Segoe UI\", sans-serif;\n font-feature-settings: 'cv01', 'ss03';\n -webkit-font-smoothing: antialiased;\n text-align: center;\n }\n\n .phx-agent-mark {\n display: block;\n inline-size: 150px;\n block-size: 160px;\n margin-block-end: 20px;\n }\n\n .phx-agent-headline {\n margin: 0;\n font-family: \"Funnel Display Variable\", \"Funnel Sans Variable\", system-ui, -apple-system, \"Segoe UI\", sans-serif;\n font-size: 28px;\n line-height: 1.25;\n font-weight: 600;\n letter-spacing: -0.015em;\n }\n\n .phx-agent-subline {\n margin: 8px 0 0;\n max-inline-size: 420px;\n font-size: 15px;\n line-height: 22px;\n color: var(--agent-text2);\n }\n\n .phx-agent-line {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n min-block-size: 28px;\n margin: 20px 0 0;\n padding: 0 12px 0 8px;\n border-radius: 999px;\n background: var(--agent-subtle);\n font-size: 13px;\n color: var(--agent-muted);\n }\n\n .phx-agent-line {\n animation: phx-agent-line-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;\n }\n\n .phx-agent-footer {\n position: absolute;\n inset-inline: 24px;\n inset-block-end: 24px;\n margin: 0;\n font-size: 12px;\n line-height: 16px;\n color: var(--agent-faint);\n }\n\n .phx-agent-mark path,\n .phx-agent-mark circle {\n stroke-linecap: round;\n stroke-linejoin: round;\n }\n\n .phx-agent-mark .phx-agent-flow {\n fill: none;\n stroke: var(--agent-border3);\n stroke-width: 0.6;\n stroke-dasharray: 1 1;\n animation: phx-agent-flow 6s ease-in-out infinite;\n }\n\n .phx-agent-mark .phx-agent-flow:nth-child(2) {\n animation-delay: 0.25s;\n }\n\n .phx-agent-mark .phx-agent-flow:nth-child(3) {\n animation-delay: 0.5s;\n }\n\n .phx-agent-mark .phx-agent-mark-outline {\n fill: none;\n stroke: var(--agent-text);\n stroke-width: 0.9;\n stroke-dasharray: 1 1;\n animation: phx-agent-outline 6s ease-in-out infinite;\n }\n\n .phx-agent-mark .phx-agent-mark-fill {\n fill: var(--agent-text);\n animation: phx-agent-fill 6s ease-in-out infinite;\n }\n\n .phx-agent-mark .phx-agent-dot {\n fill: var(--agent-bg);\n animation: phx-agent-dot 6s ease-in-out infinite;\n }\n\n @keyframes phx-agent-flow {\n 0% {\n stroke-dashoffset: 1;\n opacity: 0;\n }\n 12% {\n opacity: 0.9;\n }\n 38% {\n stroke-dashoffset: 0;\n opacity: 0.9;\n }\n 50%,\n 100% {\n stroke-dashoffset: 0;\n opacity: 0;\n }\n }\n\n @keyframes phx-agent-outline {\n 0%,\n 22% {\n stroke-dashoffset: 1;\n }\n 48%,\n 80% {\n stroke-dashoffset: 0;\n }\n 96%,\n 100% {\n stroke-dashoffset: -1;\n }\n }\n\n @keyframes phx-agent-fill {\n 0%,\n 46% {\n opacity: 0;\n }\n 54%,\n 80% {\n opacity: 1;\n }\n 90%,\n 100% {\n opacity: 0;\n }\n }\n\n @keyframes phx-agent-dot {\n 0%,\n 56% {\n opacity: 0;\n }\n 62%,\n 68% {\n opacity: 1;\n }\n 69.5% {\n opacity: 0.1;\n }\n 71%,\n 78% {\n opacity: 1;\n }\n 86%,\n 100% {\n opacity: 0;\n }\n }\n\n @keyframes phx-agent-line-in {\n from {\n opacity: 0;\n transform: translateY(6px);\n }\n to {\n opacity: 1;\n transform: none;\n }\n }\n\n @media (max-width: 600px) {\n .phx-agent-mark {\n inline-size: 110px;\n block-size: 118px;\n }\n\n .phx-agent-headline {\n font-size: 24px;\n }\n\n /* Above the badge, which spans most of a phone's width */\n .phx-agent-footer {\n inset-block-end: 64px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .phx-agent-screen *,\n .phx-agent-badge,\n .phx-agent-badge * {\n animation: none !important;\n }\n\n .phx-agent-mark .phx-agent-flow {\n opacity: 0;\n }\n\n .phx-agent-mark .phx-agent-mark-outline {\n stroke-dashoffset: 0;\n }\n\n .phx-agent-mark .phx-agent-mark-fill,\n .phx-agent-mark .phx-agent-dot {\n opacity: 1;\n }\n }\n\n\n .phx-agent-badge {\n position: fixed;\n inset-inline-end: 16px;\n inset-block-end: 16px;\n z-index: 10000;\n display: flex;\n align-items: center;\n gap: 8px;\n block-size: 36px;\n max-inline-size: calc(100vw - 32px);\n padding: 0 4px 0 12px;\n box-sizing: border-box;\n border-radius: 999px;\n background: var(--agent-surface);\n box-shadow: var(--agent-shadow);\n color: var(--agent-text2);\n font-family: \"Funnel Sans Variable\", system-ui, -apple-system, \"Segoe UI\", sans-serif;\n font-size: 12px;\n font-weight: 500;\n -webkit-font-smoothing: antialiased;\n animation: phx-agent-rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;\n }\n\n .phx-agent-icon {\n display: flex;\n flex: none;\n }\n\n .phx-agent-failed-dot {\n inline-size: 7px;\n block-size: 7px;\n border-radius: 50%;\n background: var(--agent-bad);\n }\n\n .phx-agent-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .phx-agent-dismiss {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n inline-size: 28px;\n block-size: 28px;\n padding: 0;\n border: 0;\n border-radius: 999px;\n background: transparent;\n color: var(--agent-muted);\n cursor: pointer;\n }\n\n .phx-agent-dismiss:hover {\n background: var(--agent-hover);\n color: var(--agent-text);\n }\n\n .phx-agent-dismiss:focus-visible {\n outline: 2px solid var(--agent-text);\n outline-offset: 2px;\n }\n\n @keyframes phx-agent-rise {\n from {\n opacity: 0;\n transform: translateY(8px);\n }\n to {\n opacity: 1;\n transform: none;\n }\n }\n\n";
|
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
let e="phx-agent";export const agentClass={screen:`${e}-screen`,mark:`${e}-mark`,flow:`${e}-flow`,markFill:`${e}-mark-fill`,markOutline:`${e}-mark-outline`,dot:`${e}-dot`,mini:`${e}-mini`,miniMark:`${e}-mini-mark`,wink:`${e}-wink`,headline:`${e}-headline`,subline:`${e}-subline`,line:`${e}-line`,footer:`${e}-footer`,badge:`${e}-badge`,icon:`${e}-icon`,failedDot:`${e}-failed-dot`,label:`${e}-label`,dismiss:`${e}-dismiss`};let i=`
|
|
2
|
+
.${e}-screen,
|
|
3
|
+
.${e}-badge {
|
|
4
|
+
all: initial;
|
|
5
|
+
--agent-bg: #ffffff;
|
|
6
|
+
--agent-surface: #ffffff;
|
|
7
|
+
--agent-hover: #f2f2f2;
|
|
8
|
+
--agent-subtle: #f2f2f2;
|
|
9
|
+
--agent-border3: #d4d4d4;
|
|
10
|
+
--agent-text: #171717;
|
|
11
|
+
--agent-text2: #3d3d3d;
|
|
12
|
+
--agent-muted: #5c5c5c;
|
|
13
|
+
--agent-faint: #8f8f8f;
|
|
14
|
+
--agent-bad: #b42318;
|
|
15
|
+
--agent-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
|
|
16
|
+
color-scheme: light;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (prefers-color-scheme: dark) {
|
|
20
|
+
.${e}-screen,
|
|
21
|
+
.${e}-badge {
|
|
22
|
+
--agent-bg: #08090a;
|
|
23
|
+
--agent-surface: #0f1011;
|
|
24
|
+
--agent-hover: #16171a;
|
|
25
|
+
--agent-subtle: #1c1d21;
|
|
26
|
+
--agent-border3: #3a3d42;
|
|
27
|
+
--agent-text: #f7f8f8;
|
|
28
|
+
--agent-text2: #d0d6e0;
|
|
29
|
+
--agent-muted: #8a8f98;
|
|
30
|
+
--agent-faint: #62666d;
|
|
31
|
+
--agent-bad: #ff7a7a;
|
|
32
|
+
--agent-shadow: 0 4px 32px rgba(8, 9, 10, 0.6), inset 0 0 0 1px #23252a;
|
|
33
|
+
color-scheme: dark;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
`,a='"Funnel Sans Variable", system-ui, -apple-system, "Segoe UI", sans-serif',n=`
|
|
37
|
+
.${e}-mini {
|
|
38
|
+
display: block;
|
|
39
|
+
flex: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.${e}-mini .${e}-mini-mark {
|
|
43
|
+
fill: var(--agent-text);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.${e}-mini .${e}-dot {
|
|
47
|
+
fill: var(--agent-bg);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.${e}-wink .${e}-dot {
|
|
51
|
+
animation: ${e}-wink 4s ease-in-out infinite;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@keyframes ${e}-wink {
|
|
55
|
+
0%,
|
|
56
|
+
88% {
|
|
57
|
+
opacity: 1;
|
|
58
|
+
}
|
|
59
|
+
91% {
|
|
60
|
+
opacity: 0.1;
|
|
61
|
+
}
|
|
62
|
+
94%,
|
|
63
|
+
100% {
|
|
64
|
+
opacity: 1;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
`;export const agentAtWorkStyles=`${i}${n}
|
|
68
|
+
.${e}-screen {
|
|
69
|
+
position: fixed;
|
|
70
|
+
inset: 0;
|
|
71
|
+
z-index: 10000;
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
align-items: center;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
padding: 24px;
|
|
77
|
+
box-sizing: border-box;
|
|
78
|
+
background: var(--agent-bg);
|
|
79
|
+
color: var(--agent-text);
|
|
80
|
+
font-family: ${a};
|
|
81
|
+
font-feature-settings: 'cv01', 'ss03';
|
|
82
|
+
-webkit-font-smoothing: antialiased;
|
|
83
|
+
text-align: center;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.${e}-mark {
|
|
87
|
+
display: block;
|
|
88
|
+
inline-size: 150px;
|
|
89
|
+
block-size: 160px;
|
|
90
|
+
margin-block-end: 20px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.${e}-headline {
|
|
94
|
+
margin: 0;
|
|
95
|
+
font-family: "Funnel Display Variable", "Funnel Sans Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
96
|
+
font-size: 28px;
|
|
97
|
+
line-height: 1.25;
|
|
98
|
+
font-weight: 600;
|
|
99
|
+
letter-spacing: -0.015em;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.${e}-subline {
|
|
103
|
+
margin: 8px 0 0;
|
|
104
|
+
max-inline-size: 420px;
|
|
105
|
+
font-size: 15px;
|
|
106
|
+
line-height: 22px;
|
|
107
|
+
color: var(--agent-text2);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.${e}-line {
|
|
111
|
+
display: inline-flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
gap: 8px;
|
|
114
|
+
min-block-size: 28px;
|
|
115
|
+
margin: 20px 0 0;
|
|
116
|
+
padding: 0 12px 0 8px;
|
|
117
|
+
border-radius: 999px;
|
|
118
|
+
background: var(--agent-subtle);
|
|
119
|
+
font-size: 13px;
|
|
120
|
+
color: var(--agent-muted);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.${e}-line {
|
|
124
|
+
animation: ${e}-line-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.${e}-footer {
|
|
128
|
+
position: absolute;
|
|
129
|
+
inset-inline: 24px;
|
|
130
|
+
inset-block-end: 24px;
|
|
131
|
+
margin: 0;
|
|
132
|
+
font-size: 12px;
|
|
133
|
+
line-height: 16px;
|
|
134
|
+
color: var(--agent-faint);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.${e}-mark path,
|
|
138
|
+
.${e}-mark circle {
|
|
139
|
+
stroke-linecap: round;
|
|
140
|
+
stroke-linejoin: round;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.${e}-mark .${e}-flow {
|
|
144
|
+
fill: none;
|
|
145
|
+
stroke: var(--agent-border3);
|
|
146
|
+
stroke-width: 0.6;
|
|
147
|
+
stroke-dasharray: 1 1;
|
|
148
|
+
animation: ${e}-flow 6s ease-in-out infinite;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.${e}-mark .${e}-flow:nth-child(2) {
|
|
152
|
+
animation-delay: 0.25s;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.${e}-mark .${e}-flow:nth-child(3) {
|
|
156
|
+
animation-delay: 0.5s;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.${e}-mark .${e}-mark-outline {
|
|
160
|
+
fill: none;
|
|
161
|
+
stroke: var(--agent-text);
|
|
162
|
+
stroke-width: 0.9;
|
|
163
|
+
stroke-dasharray: 1 1;
|
|
164
|
+
animation: ${e}-outline 6s ease-in-out infinite;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.${e}-mark .${e}-mark-fill {
|
|
168
|
+
fill: var(--agent-text);
|
|
169
|
+
animation: ${e}-fill 6s ease-in-out infinite;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.${e}-mark .${e}-dot {
|
|
173
|
+
fill: var(--agent-bg);
|
|
174
|
+
animation: ${e}-dot 6s ease-in-out infinite;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@keyframes ${e}-flow {
|
|
178
|
+
0% {
|
|
179
|
+
stroke-dashoffset: 1;
|
|
180
|
+
opacity: 0;
|
|
181
|
+
}
|
|
182
|
+
12% {
|
|
183
|
+
opacity: 0.9;
|
|
184
|
+
}
|
|
185
|
+
38% {
|
|
186
|
+
stroke-dashoffset: 0;
|
|
187
|
+
opacity: 0.9;
|
|
188
|
+
}
|
|
189
|
+
50%,
|
|
190
|
+
100% {
|
|
191
|
+
stroke-dashoffset: 0;
|
|
192
|
+
opacity: 0;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
@keyframes ${e}-outline {
|
|
197
|
+
0%,
|
|
198
|
+
22% {
|
|
199
|
+
stroke-dashoffset: 1;
|
|
200
|
+
}
|
|
201
|
+
48%,
|
|
202
|
+
80% {
|
|
203
|
+
stroke-dashoffset: 0;
|
|
204
|
+
}
|
|
205
|
+
96%,
|
|
206
|
+
100% {
|
|
207
|
+
stroke-dashoffset: -1;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
@keyframes ${e}-fill {
|
|
212
|
+
0%,
|
|
213
|
+
46% {
|
|
214
|
+
opacity: 0;
|
|
215
|
+
}
|
|
216
|
+
54%,
|
|
217
|
+
80% {
|
|
218
|
+
opacity: 1;
|
|
219
|
+
}
|
|
220
|
+
90%,
|
|
221
|
+
100% {
|
|
222
|
+
opacity: 0;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@keyframes ${e}-dot {
|
|
227
|
+
0%,
|
|
228
|
+
56% {
|
|
229
|
+
opacity: 0;
|
|
230
|
+
}
|
|
231
|
+
62%,
|
|
232
|
+
68% {
|
|
233
|
+
opacity: 1;
|
|
234
|
+
}
|
|
235
|
+
69.5% {
|
|
236
|
+
opacity: 0.1;
|
|
237
|
+
}
|
|
238
|
+
71%,
|
|
239
|
+
78% {
|
|
240
|
+
opacity: 1;
|
|
241
|
+
}
|
|
242
|
+
86%,
|
|
243
|
+
100% {
|
|
244
|
+
opacity: 0;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
@keyframes ${e}-line-in {
|
|
249
|
+
from {
|
|
250
|
+
opacity: 0;
|
|
251
|
+
transform: translateY(6px);
|
|
252
|
+
}
|
|
253
|
+
to {
|
|
254
|
+
opacity: 1;
|
|
255
|
+
transform: none;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
@media (max-width: 600px) {
|
|
260
|
+
.${e}-mark {
|
|
261
|
+
inline-size: 110px;
|
|
262
|
+
block-size: 118px;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.${e}-headline {
|
|
266
|
+
font-size: 24px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* Above the badge, which spans most of a phone's width */
|
|
270
|
+
.${e}-footer {
|
|
271
|
+
inset-block-end: 64px;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
@media (prefers-reduced-motion: reduce) {
|
|
276
|
+
.${e}-screen *,
|
|
277
|
+
.${e}-badge,
|
|
278
|
+
.${e}-badge * {
|
|
279
|
+
animation: none !important;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.${e}-mark .${e}-flow {
|
|
283
|
+
opacity: 0;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.${e}-mark .${e}-mark-outline {
|
|
287
|
+
stroke-dashoffset: 0;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.${e}-mark .${e}-mark-fill,
|
|
291
|
+
.${e}-mark .${e}-dot {
|
|
292
|
+
opacity: 1;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
.${e}-badge {
|
|
298
|
+
position: fixed;
|
|
299
|
+
inset-inline-end: 16px;
|
|
300
|
+
inset-block-end: 16px;
|
|
301
|
+
z-index: 10000;
|
|
302
|
+
display: flex;
|
|
303
|
+
align-items: center;
|
|
304
|
+
gap: 8px;
|
|
305
|
+
block-size: 36px;
|
|
306
|
+
max-inline-size: calc(100vw - 32px);
|
|
307
|
+
padding: 0 4px 0 12px;
|
|
308
|
+
box-sizing: border-box;
|
|
309
|
+
border-radius: 999px;
|
|
310
|
+
background: var(--agent-surface);
|
|
311
|
+
box-shadow: var(--agent-shadow);
|
|
312
|
+
color: var(--agent-text2);
|
|
313
|
+
font-family: ${a};
|
|
314
|
+
font-size: 12px;
|
|
315
|
+
font-weight: 500;
|
|
316
|
+
-webkit-font-smoothing: antialiased;
|
|
317
|
+
animation: ${e}-rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.${e}-icon {
|
|
321
|
+
display: flex;
|
|
322
|
+
flex: none;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.${e}-failed-dot {
|
|
326
|
+
inline-size: 7px;
|
|
327
|
+
block-size: 7px;
|
|
328
|
+
border-radius: 50%;
|
|
329
|
+
background: var(--agent-bad);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.${e}-label {
|
|
333
|
+
overflow: hidden;
|
|
334
|
+
text-overflow: ellipsis;
|
|
335
|
+
white-space: nowrap;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.${e}-dismiss {
|
|
339
|
+
display: inline-flex;
|
|
340
|
+
flex: none;
|
|
341
|
+
align-items: center;
|
|
342
|
+
justify-content: center;
|
|
343
|
+
inline-size: 28px;
|
|
344
|
+
block-size: 28px;
|
|
345
|
+
padding: 0;
|
|
346
|
+
border: 0;
|
|
347
|
+
border-radius: 999px;
|
|
348
|
+
background: transparent;
|
|
349
|
+
color: var(--agent-muted);
|
|
350
|
+
cursor: pointer;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.${e}-dismiss:hover {
|
|
354
|
+
background: var(--agent-hover);
|
|
355
|
+
color: var(--agent-text);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.${e}-dismiss:focus-visible {
|
|
359
|
+
outline: 2px solid var(--agent-text);
|
|
360
|
+
outline-offset: 2px;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
@keyframes ${e}-rise {
|
|
364
|
+
from {
|
|
365
|
+
opacity: 0;
|
|
366
|
+
transform: translateY(8px);
|
|
367
|
+
}
|
|
368
|
+
to {
|
|
369
|
+
opacity: 1;
|
|
370
|
+
transform: none;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{AgentAtWorkFallback}from"./AgentAtWorkFallback.js";export{AgentAtWorkPage,isAgentAtWorkPageShown}from"./AgentAtWorkPage.js";export{AgentModeBadge}from"./AgentModeBadge.js";
|
package/dist/configurator/application-runtime/extensions/configurator-extension-systems.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { $DomainEntity, DomainEntity } from '#package/domain';
|
|
2
|
-
import type { AnimationSystem, AssistantSystem, CameraControlSystem, CameraSystem, CanvasSystem, DragAndDropSystem, ExportSystem, GraphQLSystem, ImageRenderingSystem, LayoutSystem, SketchingSystem } from './systems/index.js';
|
|
1
|
+
import type { $DomainEntity, ActionTypes, DomainEntity } from '#package/domain';
|
|
2
|
+
import type { ActionSystem, AnimationSystem, AssistantSystem, CameraControlSystem, CameraSystem, CanvasSystem, DragAndDropSystem, ExportSystem, GraphQLSystem, ImageRenderingSystem, LayoutSystem, SketchingSystem } from './systems/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* The configurator systems of one slot. Every system reaches the domain through runtime selectors,
|
|
5
5
|
* so its own entity types are all it needs and the erased aliases are what the runtime hands around.
|
|
@@ -7,7 +7,8 @@ import type { AnimationSystem, AssistantSystem, CameraControlSystem, CameraSyste
|
|
|
7
7
|
* `blenderProjections` is not here: it is a domain projection and lives on the domain slice,
|
|
8
8
|
* reachable as `domainContextSelectors.getBlenderProjections()`.
|
|
9
9
|
*/
|
|
10
|
-
export interface ConfiguratorExtensionSystems<ENTITIES extends DomainEntity<string>, ALLOWED_ROOT_ENTITIES extends ENTITIES, $MAP extends Record<ENTITIES['type'], $DomainEntity<ENTITIES>>, NAVIGATION_STATES extends string, VIEW_STATES extends string, TOOL_STATES extends string, EXPORT_STATES extends string> {
|
|
10
|
+
export interface ConfiguratorExtensionSystems<ENTITIES extends DomainEntity<string>, ALLOWED_ROOT_ENTITIES extends ENTITIES, $MAP extends Record<ENTITIES['type'], $DomainEntity<ENTITIES>>, NAVIGATION_STATES extends string, VIEW_STATES extends string, TOOL_STATES extends string, EXPORT_STATES extends string, ACTION_TYPES extends ActionTypes = ActionTypes> {
|
|
11
|
+
readonly actionSystem: ActionSystem<ENTITIES, ACTION_TYPES>;
|
|
11
12
|
readonly canvasSystem: CanvasSystem<ENTITIES>;
|
|
12
13
|
readonly cameraControlSystem: CameraControlSystem;
|
|
13
14
|
readonly animationSystem: AnimationSystem;
|
|
@@ -21,5 +22,5 @@ export interface ConfiguratorExtensionSystems<ENTITIES extends DomainEntity<stri
|
|
|
21
22
|
readonly assistantSystem: AssistantSystem;
|
|
22
23
|
}
|
|
23
24
|
/** The erased shape the runtime slice constructs; consumers that know their entities narrow on read. */
|
|
24
|
-
export type AnyConfiguratorExtensionSystems = ConfiguratorExtensionSystems<any, any, any, any, any, any, any>;
|
|
25
|
+
export type AnyConfiguratorExtensionSystems = ConfiguratorExtensionSystems<any, any, any, any, any, any, any, any>;
|
|
25
26
|
export declare const isConfiguratorExtensionSystems: (systems: object) => systems is AnyConfiguratorExtensionSystems;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let
|
|
1
|
+
let t=["actionSystem","canvasSystem","cameraControlSystem","animationSystem","dragAndDropSystem","imageRenderingSystem","layoutSystem","sketchingSystem","exportSystem","cameraSystem","graphQLSystem","assistantSystem"];export const isConfiguratorExtensionSystems=e=>t.every(t=>t in e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createApplicationRuntimeExtension as e}from"#package/react-sdk";import{createConfiguratorExtensionSelectors as
|
|
1
|
+
import{createApplicationRuntimeExtension as e}from"#package/react-sdk";import{createConfiguratorExtensionSelectors as o}from"./selectors.js";export const createConfiguratorExtensions=t=>[e(o({getState:t.getState,domainApplicationContextSelectors:t.selectors.domainApplicationContext.configurator,domainContextSelectors:t.selectors.domainContext.configurator,specSelectors:t.selectors.spec,domainServicesSelectors:t.selectors.domainServices,accessSelectors:t.selectors.access,commonServicesSelectors:t.selectors.commonServices}).getSystems())];
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type AccessInfoSelectors, type DomainContextSelectorState, type DomainContextSelectors, type DomainServicesSelectors, type SpecSelectors } from '#package/domain';
|
|
2
|
-
import type { CommonServicesSelectors } from '#package/react-sdk';
|
|
2
|
+
import type { AnyApplicationRuntimeExtension, CommonServicesSelectors, DomainApplicationContextSelectors } from '#package/react-sdk';
|
|
3
3
|
import type { AnyConfiguratorExtensionSystems } from './configurator-extension-systems.js';
|
|
4
|
-
import { AnimationSystem, type AnyCameraSystem, type AnyCanvasSystem, type AnyDragAndDropSystem, type AnyExportSystem, type AnyImageRenderingSystem, type AnyLayoutSystem, type AnySketchingSystem, AssistantSystem, CameraControlSystem, GraphQLSystem } from './systems/index.js';
|
|
4
|
+
import { AnimationSystem, type AnyActionSystem, type AnyCameraSystem, type AnyCanvasSystem, type AnyDragAndDropSystem, type AnyExportSystem, type AnyImageRenderingSystem, type AnyLayoutSystem, type AnySketchingSystem, AssistantSystem, CameraControlSystem, GraphQLSystem } from './systems/index.js';
|
|
5
5
|
interface Context {
|
|
6
|
+
readonly domainApplicationContextSelectors: DomainApplicationContextSelectors<readonly AnyApplicationRuntimeExtension[]>;
|
|
6
7
|
readonly getState: () => DomainContextSelectorState;
|
|
7
8
|
readonly domainContextSelectors: DomainContextSelectors;
|
|
8
9
|
readonly specSelectors: SpecSelectors;
|
|
@@ -23,6 +24,7 @@ interface Context {
|
|
|
23
24
|
*/
|
|
24
25
|
export declare const createConfiguratorExtensionSelectors: (context: Context) => {
|
|
25
26
|
getSystems: () => AnyConfiguratorExtensionSystems;
|
|
27
|
+
getActionSystem: () => AnyActionSystem;
|
|
26
28
|
getCanvasSystem: () => AnyCanvasSystem;
|
|
27
29
|
getCameraControlSystem: () => CameraControlSystem;
|
|
28
30
|
getAnimationSystem: () => AnimationSystem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createSelector as e}from"@salsita-ai/common/utils";import{createSessionAssistant as t,isAssistantSetupHandler as n}from"#package/domain";import{AnimationSystem as s,AssistantSystem as
|
|
1
|
+
import{createSelector as e}from"@salsita-ai/common/utils";import{createSessionAssistant as t,isAssistantSetupHandler as n}from"#package/domain";import{ActionSystem as o,AnimationSystem as s,AssistantSystem as a,CameraControlSystem as i,CameraSystem as r,CanvasSystem as g,DragAndDropSystem as m,ExportSystem as c,GraphQLSystem as l,ImageRenderingSystem as S,LayoutSystem as d,SketchingSystem as p}from"./systems/index.js";export const createConfiguratorExtensionSelectors=u=>{let{getState:C,domainContextSelectors:y,specSelectors:w,domainServicesSelectors:A,accessSelectors:f,commonServicesSelectors:h}=u,x=e.withTypes()([w.selectConfiguratorSpec,y.selectInitializationContext],(e,o)=>t({resolved:e.assistant,handler:e.handlers.find(n),inputs:o&&o.access?{role:o.role,sessionData:o.sessionData,access:o.access}:null})),I={getConfigurationId:()=>f.getConfiguratorConfigurationId(),getAuthorizedClient:()=>h.getConfiguratorAuthorizedClient(),getAssistantSetup:()=>x(C()),domainContextSelectors:y,domainServicesSelectors:A,specSelectors:w},E={getSystems:()=>G,getActionSystem:()=>z,getCanvasSystem:()=>D,getCameraControlSystem:()=>v,getAnimationSystem:()=>H,getDragAndDropSystem:()=>k,getImageRenderingSystem:()=>F,getLayoutSystem:()=>T,getSketchingSystem:()=>W,getExportSystem:()=>L,getCameraSystem:()=>j,getGraphQLSystem:()=>M,getAssistantSystem:()=>R},b={...I,configuratorExtensionSelectors:E},z=new o({domainContextSelectors:y,domainApplicationContextSelectors:u.domainApplicationContextSelectors}),D=new g(I),v=new i({configuratorExtensionSelectors:E}),k=new m(b),H=new s(I),L=new c(b),M=new l({...b,renderScreenshot:async(e,t)=>{let[n]=await E.getImageRenderingSystem().generateImagesFromComponents([e],t,{},{awaitSettledState:!0});if(!n)throw Error("The canvas rendered no image.");return n.blob},uploadScreenshot:e=>I.getAuthorizedClient().uploadAssistantImage(I.getConfigurationId(),e)}),R=new a({...b,createAudio:()=>new Audio,getWebMcpHost:()=>h.getWebMcpHost(),domainApplicationContextSelectors:u.domainApplicationContextSelectors}),T=new d(I),W=new p(b),j=new r(b),F=new S(b),G={actionSystem:z,cameraControlSystem:v,layoutSystem:T,sketchingSystem:W,dragAndDropSystem:k,canvasSystem:D,cameraSystem:j,exportSystem:L,imageRenderingSystem:F,animationSystem:H,graphQLSystem:M,assistantSystem:R};return E};
|
package/dist/configurator/application-runtime/extensions/systems/action-system/action-context.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { $DomainEntity, ActionTypes, DomainContextSystems, DomainEntity, RuntimeExpressionContext } from '#package/domain';
|
|
2
|
+
import type { ConfiguratorExtensionSystems } from '../../configurator-extension-systems.js';
|
|
3
|
+
import type { ActionSystem } from './action-system.js';
|
|
4
|
+
import type { OpenActionContext } from './action.js';
|
|
5
|
+
/**
|
|
6
|
+
* The context of a runtime action: project-typed domain systems and optional host extensions,
|
|
7
|
+
* runtime expressions, entity updates and ID allocation. Configurator extensions are optional so implementations can check the capabilities they need;
|
|
8
|
+
* the owning action system is always present.
|
|
9
|
+
*/
|
|
10
|
+
export interface ActionContext<ENTITIES extends DomainEntity<string>, ALLOWED_ROOT_ENTITIES extends ENTITIES, $MAP extends Record<ENTITIES['type'], $DomainEntity<ENTITIES>>, PUBLISHED_DATA extends Record<string, unknown>, SESSION_DATA extends Record<string, unknown>, FRONTEND_DATA extends Record<string, unknown>, NAVIGATION_STATES extends string, VIEW_STATES extends string, TOOL_STATES extends string, EXPORT_STATES extends string, ACTION_TYPES extends ActionTypes = ActionTypes> extends OpenActionContext<ENTITIES, ALLOWED_ROOT_ENTITIES, PUBLISHED_DATA, SESSION_DATA, FRONTEND_DATA, RuntimeExpressionContext<ENTITIES>, DomainContextSystems<ENTITIES, ALLOWED_ROOT_ENTITIES, $MAP, NAVIGATION_STATES, VIEW_STATES, TOOL_STATES, EXPORT_STATES> & Partial<ConfiguratorExtensionSystems<ENTITIES, ALLOWED_ROOT_ENTITIES, $MAP, NAVIGATION_STATES, VIEW_STATES, TOOL_STATES, EXPORT_STATES, ACTION_TYPES>> & {
|
|
11
|
+
readonly actionSystem: ActionSystem<ENTITIES, ACTION_TYPES>;
|
|
12
|
+
}> {
|
|
13
|
+
}
|
|
14
|
+
export type AnyActionContext = ActionContext<any, any, any, any, any, any, any, any, any, any>;
|
package/dist/configurator/application-runtime/extensions/systems/action-system/action-factory.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { $DomainEntity, ActionTypes, DomainEntity, RuntimeExpressionContext } from '#package/domain';
|
|
2
|
+
import type { ActionContext } from './action-context.js';
|
|
3
|
+
import type { ActionImplementations } from './action.js';
|
|
4
|
+
/**
|
|
5
|
+
* Creates the `implementActions` factory the configurator interface exposes as
|
|
6
|
+
* `phx.frontend.implementActions`. A module in `src/actions/` implements any subset of the declared
|
|
7
|
+
* actions and gets each parameter and result typed from the spec; a name the spec does not declare
|
|
8
|
+
* is a type error, since its implementation would have to be `never`. The generated barrel lists
|
|
9
|
+
* the modules and `configurator-config.ts` registers them with `ConfiguratorBuilder.withActionModules`;
|
|
10
|
+
* the `ActionSystem` resolves them from the spec, and configurator initialization checks that every
|
|
11
|
+
* declared action is implemented.
|
|
12
|
+
*/
|
|
13
|
+
export declare const createActionFactory: <ENTITIES extends DomainEntity<string>, ALLOWED_ROOT_ENTITIES extends ENTITIES, $MAP extends Record<ENTITIES['type'], $DomainEntity<ENTITIES>>, NAVIGATION_STATES extends string, VIEW_STATES extends string, TOOL_STATES extends string, EXPORT_STATES extends string, PUBLISHED_DATA extends Record<string, unknown>, SESSION_DATA extends Record<string, unknown>, FRONTEND_DATA extends Record<string, unknown>, ACTION_TYPES extends ActionTypes>() => <IMPLEMENTATIONS extends Partial<ActionImplementations<ENTITIES, ALLOWED_ROOT_ENTITIES, PUBLISHED_DATA, SESSION_DATA, FRONTEND_DATA, ACTION_TYPES, RuntimeExpressionContext<ENTITIES>, ActionContext<ENTITIES, ALLOWED_ROOT_ENTITIES, $MAP, PUBLISHED_DATA, SESSION_DATA, FRONTEND_DATA, NAVIGATION_STATES, VIEW_STATES, TOOL_STATES, EXPORT_STATES, ACTION_TYPES>['systems']>>>(implementations: IMPLEMENTATIONS & Readonly<Record<Exclude<keyof IMPLEMENTATIONS, keyof ACTION_TYPES>, never>>) => IMPLEMENTATIONS;
|