@jini-ai/devops 0.7.3-next.2 → 0.7.3-next.3
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 +16 -0
- package/dist/backup/site/archive-extensions.d.ts +73 -0
- package/dist/backup/site/archive-extensions.js +129 -0
- package/dist/backup/site/archive-manifest.d.ts +85 -0
- package/dist/backup/site/archive-manifest.js +176 -0
- package/dist/backup/site/archive-media.d.ts +121 -0
- package/dist/backup/site/archive-media.js +93 -0
- package/dist/backup/site/backup-service.credentials.d.ts +31 -0
- package/dist/backup/site/backup-service.credentials.js +161 -0
- package/dist/backup/site/backup-service.d.ts +331 -0
- package/dist/backup/site/backup-service.js +125 -0
- package/dist/backup/site/backup-service.plan.d.ts +64 -0
- package/dist/backup/site/backup-service.plan.js +207 -0
- package/dist/backup/site/backup-service.push.d.ts +29 -0
- package/dist/backup/site/backup-service.push.js +82 -0
- package/dist/backup/site/backup-service.shared.d.ts +40 -0
- package/dist/backup/site/backup-service.shared.js +37 -0
- package/dist/backup/site/bundled-export-file-policy.d.ts +38 -0
- package/dist/backup/site/bundled-export-file-policy.js +40 -0
- package/dist/backup/site/credential-warnings.d.ts +41 -0
- package/dist/backup/site/credential-warnings.js +50 -0
- package/dist/backup/site/import-backend-steps.d.ts +167 -0
- package/dist/backup/site/import-backend-steps.js +170 -0
- package/dist/backup/site/import-backend.d.ts +167 -0
- package/dist/backup/site/import-backend.js +298 -0
- package/dist/backup/site/import-database.d.ts +118 -0
- package/dist/backup/site/import-database.js +167 -0
- package/dist/backup/site/import-index/admission.d.ts +54 -0
- package/dist/backup/site/import-index/admission.js +46 -0
- package/dist/backup/site/import-index/backfill.d.ts +106 -0
- package/dist/backup/site/import-index/backfill.js +137 -0
- package/dist/backup/site/import-index/errors.d.ts +28 -0
- package/dist/backup/site/import-index/errors.js +38 -0
- package/dist/backup/site/import-index/migrations/checksums.d.ts +4 -0
- package/dist/backup/site/import-index/migrations/checksums.js +4 -0
- package/dist/backup/site/import-index/migrations/site-imports-v1.d.ts +2 -0
- package/dist/backup/site/import-index/migrations/site-imports-v1.js +10 -0
- package/dist/backup/site/import-index/mode.d.ts +191 -0
- package/dist/backup/site/import-index/mode.js +272 -0
- package/dist/backup/site/import-index/open.d.ts +40 -0
- package/dist/backup/site/import-index/open.js +87 -0
- package/dist/backup/site/import-index/paging.d.ts +28 -0
- package/dist/backup/site/import-index/paging.js +66 -0
- package/dist/backup/site/import-index/payload-namespace.d.ts +80 -0
- package/dist/backup/site/import-index/payload-namespace.js +156 -0
- package/dist/backup/site/import-index/rows.d.ts +32 -0
- package/dist/backup/site/import-index/rows.js +61 -0
- package/dist/backup/site/import-index/schema.d.ts +8 -0
- package/dist/backup/site/import-index/schema.js +31 -0
- package/dist/backup/site/import-index/store.d.ts +27 -0
- package/dist/backup/site/import-index/store.js +33 -0
- package/dist/backup/site/import-index/sweep.d.ts +10 -0
- package/dist/backup/site/import-index/sweep.js +26 -0
- package/dist/backup/site/import-keep-off.d.ts +128 -0
- package/dist/backup/site/import-keep-off.js +204 -0
- package/dist/backup/site/import-plugin-state.d.ts +74 -0
- package/dist/backup/site/import-plugin-state.js +67 -0
- package/dist/backup/site/import-registry.d.ts +110 -0
- package/dist/backup/site/import-registry.js +205 -0
- package/dist/backup/site/import-restore-placement.d.ts +94 -0
- package/dist/backup/site/import-restore-placement.js +158 -0
- package/dist/backup/site/import-restore.d.ts +111 -0
- package/dist/backup/site/import-restore.js +120 -0
- package/dist/backup/site/import-verifier-inventory.d.ts +137 -0
- package/dist/backup/site/import-verifier-inventory.js +236 -0
- package/dist/backup/site/import-verifier-projection.d.ts +78 -0
- package/dist/backup/site/import-verifier-projection.js +100 -0
- package/dist/backup/site/import-verifier.d.ts +126 -0
- package/dist/backup/site/import-verifier.js +53 -0
- package/dist/backup/site/owned-temp-root.d.ts +12 -0
- package/dist/backup/site/owned-temp-root.js +2 -0
- package/dist/backup/site/package-file-inventory.d.ts +63 -0
- package/dist/backup/site/package-file-inventory.js +56 -0
- package/dist/backup/site/push-content.d.ts +70 -0
- package/dist/backup/site/push-content.js +56 -0
- package/dist/backup/site/react/ShowMoreImports.d.ts +21 -0
- package/dist/backup/site/react/ShowMoreImports.js +8 -0
- package/dist/backup/site/saved-keys-port.d.ts +47 -0
- package/dist/backup/site/saved-keys-port.js +3 -0
- package/dist/backup/site/saved-keys.d.ts +25 -0
- package/dist/backup/site/saved-keys.js +38 -0
- package/dist/backup/site/share-backend.d.ts +243 -0
- package/dist/backup/site/share-backend.js +284 -0
- package/dist/backup/site/share-database/projection.d.ts +195 -0
- package/dist/backup/site/share-database/projection.js +90 -0
- package/dist/backup/site/share-database/projection.media.d.ts +38 -0
- package/dist/backup/site/share-database/projection.media.js +179 -0
- package/dist/backup/site/share-database/projection.tables.d.ts +46 -0
- package/dist/backup/site/share-database/projection.tables.js +193 -0
- package/dist/backup/site/share-expiry.d.ts +75 -0
- package/dist/backup/site/share-expiry.js +49 -0
- package/dist/backup/site/share-export-failure.d.ts +17 -0
- package/dist/backup/site/share-export-failure.js +16 -0
- package/dist/backup/site/share-file-policy.d.ts +60 -0
- package/dist/backup/site/share-file-policy.js +146 -0
- package/dist/backup/site/share-hosting.d.ts +107 -0
- package/dist/backup/site/share-hosting.js +148 -0
- package/dist/backup/site/share-preparation-steps.d.ts +180 -0
- package/dist/backup/site/share-preparation-steps.js +109 -0
- package/dist/backup/site/share-preparation.d.ts +122 -0
- package/dist/backup/site/share-preparation.js +43 -0
- package/dist/backup/site/share-refusal.d.ts +21 -0
- package/dist/backup/site/share-refusal.js +20 -0
- package/dist/backup/site/share-registry.d.ts +124 -0
- package/dist/backup/site/share-registry.js +219 -0
- package/dist/backup/site/share-retention.d.ts +62 -0
- package/dist/backup/site/share-retention.js +126 -0
- package/dist/backup/site/share-service.d.ts +128 -0
- package/dist/backup/site/share-service.js +194 -0
- package/dist/backup/site/share-zip.d.ts +115 -0
- package/dist/backup/site/share-zip.js +144 -0
- package/dist/backup/site/sources.d.ts +344 -0
- package/dist/backup/site/sources.js +595 -0
- package/dist/backup/site/static-copy.d.ts +122 -0
- package/dist/backup/site/static-copy.js +165 -0
- package/dist/backup/site/static-download-html.d.ts +76 -0
- package/dist/backup/site/static-download-html.js +149 -0
- package/dist/backup/site/static-download-landing.d.ts +52 -0
- package/dist/backup/site/static-download-landing.js +95 -0
- package/dist/backup/site/static-download-layout.d.ts +96 -0
- package/dist/backup/site/static-download-layout.js +325 -0
- package/dist/backup/site/static-export-selection.d.ts +50 -0
- package/dist/backup/site/static-export-selection.js +76 -0
- package/dist/backup/site/static-site-packager.d.ts +42 -0
- package/dist/backup/site/static-site-packager.js +32 -0
- package/dist/backup/site/tool-registrations.d.ts +74 -0
- package/dist/backup/site/tool-registrations.js +201 -0
- package/dist/checks/complexity-debt.d.ts +100 -0
- package/dist/checks/complexity-debt.js +131 -0
- package/dist/checks/coverage/diff.js +5 -1
- package/dist/checks/env-access.d.ts +14 -1
- package/dist/checks/env-access.js +92 -6
- package/dist/checks/live-verify-checks.d.ts +29 -0
- package/dist/checks/live-verify-checks.js +30 -0
- package/dist/checks/quality-gates.d.ts +137 -0
- package/dist/checks/quality-gates.js +209 -0
- package/dist/core/deploy-types.d.ts +2 -0
- package/dist/deploy/admin-http/site-update-status.d.ts +8 -0
- package/dist/deploy/admin-http/site-update-status.js +15 -0
- package/dist/deploy/host-kit.d.ts +3 -0
- package/dist/deploy/index.d.ts +6 -0
- package/dist/deploy/index.js +6 -0
- package/dist/deploy/ops-runner.js +7 -0
- package/dist/deploy/ops-tool-contracts.d.ts +10 -1
- package/dist/deploy/react/Deployment.d.ts +37 -0
- package/dist/deploy/react/Deployment.js +94 -0
- package/dist/deploy/react/DockerfileTab.d.ts +72 -0
- package/dist/deploy/react/DockerfileTab.js +131 -0
- package/dist/deploy/react/HistoryTab.d.ts +43 -0
- package/dist/deploy/react/HistoryTab.js +12 -0
- package/dist/deploy/react/OverviewTab.d.ts +60 -0
- package/dist/deploy/react/OverviewTab.js +75 -0
- package/dist/deploy/react/PublishRunResult.d.ts +5 -1
- package/dist/deploy/react/PublishRunResult.js +4 -4
- package/dist/deploy/react/SiteUpdateNotice.d.ts +22 -0
- package/dist/deploy/react/SiteUpdateNotice.js +25 -0
- package/dist/deploy/react/StaticCredentialFields.d.ts +36 -0
- package/dist/deploy/react/StaticCredentialFields.js +63 -0
- package/dist/deploy/react/StaticCredentialSteps.d.ts +23 -0
- package/dist/deploy/react/StaticCredentialSteps.js +155 -0
- package/dist/deploy/react/StaticExportCard.d.ts +11 -0
- package/dist/deploy/react/StaticExportCard.js +97 -0
- package/dist/deploy/react/StaticPublishCredentials.d.ts +50 -0
- package/dist/deploy/react/StaticPublishCredentials.js +77 -0
- package/dist/deploy/react/StaticPublishForm.d.ts +12 -0
- package/dist/deploy/react/StaticPublishForm.js +91 -0
- package/dist/deploy/react/StaticSiteTab.d.ts +207 -0
- package/dist/deploy/react/StaticSiteTab.js +117 -0
- package/dist/deploy/react/deployment-visuals.d.ts +207 -0
- package/dist/deploy/react/deployment-visuals.js +101 -0
- package/dist/deploy/react/download-dockerfile.d.ts +14 -0
- package/dist/deploy/react/download-dockerfile.js +15 -0
- package/dist/deploy/react/hooks/publish-credential-draft.d.ts +33 -0
- package/dist/deploy/react/hooks/publish-credential-draft.js +54 -0
- package/dist/deploy/react/hooks/publish-credential-selection.d.ts +13 -0
- package/dist/deploy/react/hooks/publish-credential-selection.js +34 -0
- package/dist/deploy/react/hooks/publish-credential-writes.d.ts +20 -0
- package/dist/deploy/react/hooks/publish-credential-writes.js +99 -0
- package/dist/deploy/react/hooks/static-publish-actions.d.ts +10 -0
- package/dist/deploy/react/hooks/static-publish-actions.js +62 -0
- package/dist/deploy/react/hooks/static-publish-form.hooks.d.ts +38 -0
- package/dist/deploy/react/hooks/static-publish-form.hooks.js +103 -0
- package/dist/deploy/react/hooks/static-publish-run.hooks.d.ts +28 -0
- package/dist/deploy/react/hooks/static-publish-run.hooks.js +92 -0
- package/dist/deploy/react/hooks/use-dockerfile-source.hooks.d.ts +148 -0
- package/dist/deploy/react/hooks/use-dockerfile-source.hooks.js +155 -0
- package/dist/deploy/react/hooks/use-publish-credentials.hooks.d.ts +268 -0
- package/dist/deploy/react/hooks/use-publish-credentials.hooks.js +52 -0
- package/dist/deploy/react/hooks/use-static-export.hooks.d.ts +128 -0
- package/dist/deploy/react/hooks/use-static-export.hooks.js +159 -0
- package/dist/deploy/react/hooks/use-static-publish.hooks.d.ts +208 -0
- package/dist/deploy/react/hooks/use-static-publish.hooks.js +48 -0
- package/dist/deploy/react/index.d.ts +4 -0
- package/dist/deploy/react/index.js +2 -0
- package/dist/deploy/react/rules.d.ts +363 -0
- package/dist/deploy/react/rules.js +314 -0
- package/dist/deploy/react/use-deployment-overview.hooks.d.ts +41 -0
- package/dist/deploy/react/use-deployment-overview.hooks.js +11 -0
- package/dist/deploy/site/agent-tools.d.ts +42 -0
- package/dist/deploy/site/agent-tools.js +119 -0
- package/dist/deploy/site/deploy-config-registry.d.ts +155 -0
- package/dist/deploy/site/deploy-config-registry.js +124 -0
- package/dist/deploy/site/deploy-config.d.ts +97 -0
- package/dist/deploy/site/deploy-config.js +115 -0
- package/dist/deploy/site/deploy-ops/agent-tools.d.ts +22 -0
- package/dist/deploy/site/deploy-ops/agent-tools.js +76 -0
- package/dist/deploy/site/deploy-ops/registry.d.ts +134 -0
- package/dist/deploy/site/deploy-ops/registry.js +106 -0
- package/dist/deploy/site/deploy-ops/run-ops.d.ts +66 -0
- package/dist/deploy/site/deploy-ops/run-ops.js +34 -0
- package/dist/deploy/site/deploy-ops/secret-confirm.d.ts +36 -0
- package/dist/deploy/site/deploy-ops/secret-confirm.js +27 -0
- package/dist/deploy/site/deploy-targets/host-kit.d.ts +28 -0
- package/dist/deploy/site/deploy-targets/host-kit.js +120 -0
- package/dist/deploy/site/deploy-targets/registry.d.ts +157 -0
- package/dist/deploy/site/deploy-targets/registry.js +132 -0
- package/dist/deploy/site/deploy-targets/types.d.ts +27 -0
- package/dist/deploy/site/deploy-targets/types.js +2 -0
- package/dist/deploy/site/dockerfile.d.ts +137 -0
- package/dist/deploy/site/dockerfile.js +101 -0
- package/dist/deploy/site/export-run.d.ts +137 -0
- package/dist/deploy/site/export-run.js +152 -0
- package/dist/deploy/site/ports.d.ts +115 -0
- package/dist/deploy/site/ports.js +2 -0
- package/dist/deploy/site/publish-agent-tools.d.ts +18 -0
- package/dist/deploy/site/publish-agent-tools.js +120 -0
- package/dist/deploy/site/publish-candidate.d.ts +26 -0
- package/dist/deploy/site/publish-candidate.js +37 -0
- package/dist/deploy/site/publish-credentials/account-label-heal-scheduler.d.ts +78 -0
- package/dist/deploy/site/publish-credentials/account-label-heal-scheduler.js +88 -0
- package/dist/deploy/site/publish-credentials/compatibility-port.d.ts +38 -0
- package/dist/deploy/site/publish-credentials/compatibility-port.js +19 -0
- package/dist/deploy/site/publish-credentials/execution-mode.d.ts +43 -0
- package/dist/deploy/site/publish-credentials/execution-mode.js +19 -0
- package/dist/deploy/site/publish-credentials/store-owner.d.ts +11 -0
- package/dist/deploy/site/publish-credentials/store-owner.js +9 -0
- package/dist/deploy/site/publish-credentials/store-resolution.d.ts +55 -0
- package/dist/deploy/site/publish-credentials/store-resolution.js +100 -0
- package/dist/deploy/site/publish-credentials/store-validation.d.ts +68 -0
- package/dist/deploy/site/publish-credentials/store-validation.js +182 -0
- package/dist/deploy/site/publish-credentials/store.d.ts +322 -0
- package/dist/deploy/site/publish-credentials/store.js +372 -0
- package/dist/deploy/site/publish-credentials/types.d.ts +85 -0
- package/dist/deploy/site/publish-credentials/types.js +2 -0
- package/dist/deploy/site/publish-tool-capabilities.d.ts +123 -0
- package/dist/deploy/site/publish-tool-capabilities.js +175 -0
- package/dist/deploy/site/publish-tool-credential.d.ts +48 -0
- package/dist/deploy/site/publish-tool-credential.js +284 -0
- package/dist/deploy/site/publish-tool-deps.d.ts +205 -0
- package/dist/deploy/site/publish-tool-deps.js +15 -0
- package/dist/deploy/site/publish-tool-execution.d.ts +78 -0
- package/dist/deploy/site/publish-tool-execution.js +313 -0
- package/dist/deploy/site/publish-tool-schema.d.ts +29 -0
- package/dist/deploy/site/publish-tool-schema.js +38 -0
- package/dist/deploy/site/static-publish/adapter-export.d.ts +54 -0
- package/dist/deploy/site/static-publish/adapter-export.js +89 -0
- package/dist/deploy/site/static-publish/adapter-plan.d.ts +99 -0
- package/dist/deploy/site/static-publish/adapter-plan.js +112 -0
- package/dist/deploy/site/static-publish/adapter.d.ts +182 -0
- package/dist/deploy/site/static-publish/adapter.js +321 -0
- package/dist/deploy/site/static-publish/admin-publish-read.d.ts +209 -0
- package/dist/deploy/site/static-publish/admin-publish-read.js +116 -0
- package/dist/deploy/site/static-publish/credentials.d.ts +110 -0
- package/dist/deploy/site/static-publish/credentials.js +290 -0
- package/dist/deploy/site/static-publish/domain-publish-rows.d.ts +25 -0
- package/dist/deploy/site/static-publish/domain-publish-rows.js +43 -0
- package/dist/deploy/site/static-publish/domain-publish-tool.d.ts +19 -0
- package/dist/deploy/site/static-publish/domain-publish-tool.js +111 -0
- package/dist/deploy/site/static-publish/inspection.d.ts +24 -0
- package/dist/deploy/site/static-publish/inspection.js +69 -0
- package/dist/deploy/site/static-publish/publish-history.d.ts +197 -0
- package/dist/deploy/site/static-publish/publish-history.js +153 -0
- package/dist/deploy/site/static-publish/publish-run.d.ts +156 -0
- package/dist/deploy/site/static-publish/publish-run.js +186 -0
- package/dist/deploy/site/static-publish/types.d.ts +165 -0
- package/dist/deploy/site/static-publish/types.js +2 -0
- package/dist/deploy/site/static-publish/verify.d.ts +217 -0
- package/dist/deploy/site/static-publish/verify.js +248 -0
- package/dist/deploy/site/tool-registrations.d.ts +97 -0
- package/dist/deploy/site/tool-registrations.js +130 -0
- package/dist/deploy/site/types.d.ts +51 -0
- package/dist/deploy/site/types.js +2 -0
- package/dist/deploy/site-update/check-for-update.d.ts +19 -0
- package/dist/deploy/site-update/check-for-update.js +19 -0
- package/dist/deploy/site-update/contracts.d.ts +161 -0
- package/dist/deploy/site-update/contracts.js +94 -0
- package/dist/deploy/site-update/desktop-site-update.d.ts +66 -0
- package/dist/deploy/site-update/desktop-site-update.js +43 -0
- package/dist/deploy/site-update/fake-site-update.d.ts +39 -0
- package/dist/deploy/site-update/fake-site-update.js +52 -0
- package/dist/deploy/site-update/run-site-update.d.ts +121 -0
- package/dist/deploy/site-update/run-site-update.js +219 -0
- package/dist/deploy/site-update/self-hosted-site-update.d.ts +71 -0
- package/dist/deploy/site-update/self-hosted-site-update.js +79 -0
- package/dist/deploy/target-contracts.d.ts +3 -0
- package/dist/deploy/tool.d.ts +5 -8
- package/dist/deploy/tool.js +6 -9
- package/dist/dns/binding-sweeper.d.ts +72 -0
- package/dist/dns/binding-sweeper.js +53 -0
- package/dist/dns/index.d.ts +1 -0
- package/dist/dns/index.js +1 -0
- package/dist/dns/site/binding.repo.d.ts +71 -0
- package/dist/dns/site/binding.repo.js +45 -0
- package/dist/dns/site/dns-changes.d.ts +90 -0
- package/dist/dns/site/dns-changes.js +271 -0
- package/dist/dns/site/dns-tools.d.ts +46 -0
- package/dist/dns/site/dns-tools.js +204 -0
- package/dist/dns/site/mail-dns-status.d.ts +111 -0
- package/dist/dns/site/mail-dns-status.js +190 -0
- package/dist/dns/site/mail-dns-tools.d.ts +33 -0
- package/dist/dns/site/mail-dns-tools.js +62 -0
- package/dist/dns/site/mail-requirements.d.ts +30 -0
- package/dist/dns/site/mail-requirements.js +78 -0
- package/dist/dns/site/tool-deps.d.ts +21 -0
- package/dist/dns/site/tool-deps.js +2 -0
- package/dist/dns/site/tools.d.ts +74 -0
- package/dist/dns/site/tools.js +124 -0
- package/dist/local-dev/bind-host.d.ts +80 -0
- package/dist/local-dev/bind-host.js +90 -0
- package/dist/local-dev/dev-proxy-upstream.d.ts +69 -0
- package/dist/local-dev/dev-proxy-upstream.js +63 -0
- package/dist/local-dev/index.d.ts +28 -0
- package/dist/local-dev/index.js +25 -0
- package/dist/packaging/electron/archive.d.ts +2 -9
- package/dist/packaging/electron/asar-adapter.d.ts +2 -1
- package/dist/packaging/electron/entry.d.ts +2 -0
- package/dist/packaging/electron/move-to-applications.d.ts +165 -0
- package/dist/packaging/electron/move-to-applications.js +162 -0
- package/dist/packaging/electron/policies.d.ts +33 -4
- package/dist/packaging/electron/policies.js +29 -10
- package/dist/packaging/electron/ports.d.ts +1 -6
- package/dist/packaging/electron/staging.d.ts +11 -2
- package/dist/packaging/electron/staging.js +15 -5
- package/dist/react/site-share-expiry/ShareExpiryControls.d.ts +29 -0
- package/dist/react/site-share-expiry/ShareExpiryControls.js +7 -0
- package/dist/react/site-share-expiry/index.d.ts +2 -0
- package/dist/react/site-share-expiry/index.js +2 -0
- package/dist/source-control/react/ProvidersTab.d.ts +98 -0
- package/dist/source-control/react/ProvidersTab.js +195 -0
- package/dist/source-control/react/SourceControl.d.ts +51 -0
- package/dist/source-control/react/SourceControl.js +61 -0
- package/dist/source-control/react/hooks/use-source-control-credentials.hooks.d.ts +128 -0
- package/dist/source-control/react/hooks/use-source-control-credentials.hooks.js +102 -0
- package/dist/source-control/react/rules.d.ts +167 -0
- package/dist/source-control/react/rules.js +125 -0
- package/dist/source-control/react/source-control-visuals.d.ts +75 -0
- package/dist/source-control/react/source-control-visuals.js +48 -0
- package/dist/source-control/site/agent-tools.d.ts +5 -0
- package/dist/source-control/site/agent-tools.js +30 -0
- package/dist/source-control/site/bundled-provider-registry.d.ts +33 -0
- package/dist/source-control/site/bundled-provider-registry.js +37 -0
- package/dist/source-control/site/commit-schema.d.ts +40 -0
- package/dist/source-control/site/commit-schema.js +29 -0
- package/dist/source-control/site/commit-target.d.ts +26 -0
- package/dist/source-control/site/commit-target.js +58 -0
- package/dist/source-control/site/credential-form.d.ts +36 -0
- package/dist/source-control/site/credential-form.js +102 -0
- package/dist/source-control/site/credential-setup.d.ts +107 -0
- package/dist/source-control/site/credential-setup.js +216 -0
- package/dist/source-control/site/provider-kit.d.ts +37 -0
- package/dist/source-control/site/provider-kit.js +35 -0
- package/dist/source-control/site/provider-module.d.ts +251 -0
- package/dist/source-control/site/provider-module.js +2 -0
- package/dist/source-control/site/saved-key-bindings.d.ts +4 -0
- package/dist/source-control/site/saved-key-bindings.js +4 -0
- package/dist/source-control/site/static-site-packager-port.d.ts +37 -0
- package/dist/source-control/site/static-site-packager-port.js +2 -0
- package/dist/source-control/site/store.d.ts +209 -0
- package/dist/source-control/site/store.js +374 -0
- package/dist/source-control/site/store.validation.d.ts +72 -0
- package/dist/source-control/site/store.validation.js +168 -0
- package/dist/source-control/site/tool-registrations.d.ts +190 -0
- package/dist/source-control/site/tool-registrations.js +379 -0
- package/dist/static-export/site/export-preflight.d.ts +48 -0
- package/dist/static-export/site/export-preflight.js +82 -0
- package/dist/static-export/site/media-original-urls.d.ts +57 -0
- package/dist/static-export/site/media-original-urls.js +109 -0
- package/dist/static-export/site/ports.d.ts +82 -0
- package/dist/static-export/site/ports.js +29 -0
- package/dist/static-export/site/public-origin-policy.d.ts +32 -0
- package/dist/static-export/site/public-origin-policy.js +68 -0
- package/dist/static-export/site/route-manifest.d.ts +65 -0
- package/dist/static-export/site/route-manifest.js +139 -0
- package/dist/static-export/site/site-exporter.d.ts +158 -0
- package/dist/static-export/site/site-exporter.js +112 -0
- package/dist/static-export/site/static-security-headers.d.ts +39 -0
- package/dist/static-export/site/static-security-headers.js +43 -0
- package/dist/static-export/site/theme-preview-manifest.d.ts +35 -0
- package/dist/static-export/site/theme-preview-manifest.js +28 -0
- package/package.json +911 -7
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { agentHandle } from "@jini-ai/core/agent-handles";
|
|
3
|
+
import { fieldHelpText, publishConfigFieldHandleId, publishRunStatusLabelKey, runStatusTone } from "./rules.js";
|
|
4
|
+
import { PublishRunResult } from "./PublishRunResult.js";
|
|
5
|
+
import { FieldLabel } from "./StaticCredentialFields.js";
|
|
6
|
+
function PublishFailureNotice({ controller, t: translate, kit }, _optional = {}) {
|
|
7
|
+
const { ErrorNotice } = kit;
|
|
8
|
+
if (controller.publishFailure)
|
|
9
|
+
return _jsx(ErrorNotice, { failure: controller.publishFailure, t: translate, className: "save-error" });
|
|
10
|
+
return controller.publishError ? _jsx("p", { className: "save-error", role: "alert", children: controller.publishError }) : null;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* {@link StaticPublishForm}'s per-target field block — the selected host's descriptor config fields
|
|
14
|
+
* (a repository, a team), in the descriptor's order; nothing for a host that declares none. Input
|
|
15
|
+
* ids come from `publishConfigFieldHandleId` (`rules.ts`), which keeps the ids agent tooling
|
|
16
|
+
* already uses.
|
|
17
|
+
*/
|
|
18
|
+
function StaticPublishTargetFields({ controller, t: translate, deps }, _optional = {}) {
|
|
19
|
+
const { asciiSlug } = deps;
|
|
20
|
+
// The target is bound once, up front: a field can only render when a target exists, so the
|
|
21
|
+
// agent-handle label below reads `target.label` directly instead of a per-field
|
|
22
|
+
// `selectedTarget?.label ?? ""` whose empty-label arm no field could ever reach.
|
|
23
|
+
const target = controller.selectedTarget;
|
|
24
|
+
if (!target)
|
|
25
|
+
return null;
|
|
26
|
+
return (_jsx(_Fragment, { children: target.configFields.map((field) => {
|
|
27
|
+
const id = publishConfigFieldHandleId({ asciiSlug, fieldName: field.name });
|
|
28
|
+
return (_jsxs("div", { className: "field", children: [_jsx(FieldLabel, { field: field, htmlFor: id, t: translate }), _jsx("input", { id: id, type: "text", value: controller.configValues[field.name] ?? "", onChange: (e) => controller.setConfigField({ name: field.name, value: e.target.value }), ...agentHandle({ handle: id }, { role: "field", label: `${target.label} ${field.label}` }) }), fieldHelpText({ field }) ? _jsx("p", { className: "field-hint", children: fieldHelpText({ field }) }) : null] }, field.name));
|
|
29
|
+
}) }));
|
|
30
|
+
}
|
|
31
|
+
/** The Preview action — its own component (not inlined in {@link StaticPublishForm}) purely for the
|
|
32
|
+
* complexity gate: every conditional in this file that renders on `controller.preview*` state used
|
|
33
|
+
* to accumulate directly in `StaticPublishForm`'s own cyclomatic count, which is what pushed that
|
|
34
|
+
* function over this repo's complexity convention once `pollError` (below) added one more branch on
|
|
35
|
+
* top of an already-over-budget function — splitting each `.deployment-action` block out the same
|
|
36
|
+
* way `PublishPreviewFacts`/`PublishRunResult` already are moves each block's branches into ITS OWN
|
|
37
|
+
* score instead. No behavior moved, only where the branches are counted. */
|
|
38
|
+
function PublishPreviewAction({ canPreview, controller, t: translate, }, _optional = {}) {
|
|
39
|
+
return (_jsxs("div", { className: "deployment-action", children: [_jsx("button", { type: "button", className: "btn-secondary", disabled: !canPreview || controller.previewLoading, onClick: () => void controller.checkPreview(), ...agentHandle({ handle: "deployment-static-site-publish-preview" }, { role: "button", label: "Preview what publishing to this target would do, without publishing anything" }), children: controller.previewLoading ? translate("Checking…") : translate("Preview") }), controller.previewError ? (_jsx("p", { className: "save-error", role: "alert", children: controller.previewError })) : null, controller.preview ? _jsx(PublishPreviewFacts, { preview: controller.preview, t: translate }) : null] }));
|
|
40
|
+
}
|
|
41
|
+
/** The Publish action — status pill, the button itself (gated by {@link busy}), and every terminal
|
|
42
|
+
* state a publish attempt can end in: a rejected trigger, a poll that gave up ({@link
|
|
43
|
+
* StaticPublishController.pollError} — see this file's header for why this pass added it here at
|
|
44
|
+
* all), and a settled run's own result. Split out of {@link StaticPublishForm} for the same
|
|
45
|
+
* complexity-gate reason {@link PublishPreviewAction} documents. `busy` and `runTone` are passed in
|
|
46
|
+
* rather than recomputed here — `busy` is `StaticPublishForm`'s own value, read by BOTH the disabled
|
|
47
|
+
* check below and the button's own label, and computing it twice would let the two drift; `runTone`
|
|
48
|
+
* is `runStatusTone({ status: controller.run?.status ?? "idle" }, ...)`, whose own optional-chaining/`??`
|
|
49
|
+
* operators each count as a branch for this repo's `complexity` rule same as a ternary does — kept
|
|
50
|
+
* in the parent (mirrors `BuildExportCard` keeping its own `tone` outside `ExportTriggerAction`)
|
|
51
|
+
* rather than pushing this function back over the 9/9 gate the same way computing it here once did. */
|
|
52
|
+
function PublishTriggerAction({ canPublish, busy, credentialChangePending, chosenCredentialId, runTone, controller, t: translate, deps, kit }, _optional = {}) {
|
|
53
|
+
const { PUBLISH_RUN_RESULT_CLASSES } = deps;
|
|
54
|
+
return (_jsxs("div", { className: "deployment-action", children: [_jsx("span", { className: `status status-${runTone}`, children: translate(publishRunStatusLabelKey({ run: controller.run })) }), _jsx("button", { type: "button", disabled: !canPublish || busy || credentialChangePending, onClick: () => void controller.publish(chosenCredentialId !== undefined ? { credentialId: chosenCredentialId } : {}), ...agentHandle({ handle: "deployment-static-site-publish-trigger" }, { role: "button", label: "Publish the current site export to this target right now — live on the public internet immediately" }), children: busy ? translate("Publishing…") : translate("Publish") }), _jsx("p", { className: "deployment-action-reason", children: translate("This is immediately live on the public internet once it finishes — there is no draft or review step.") }), _jsx(PublishFailureNotice, { kit: kit, controller: controller, t: translate }), _jsx(PublishPollNotice, { controller: controller }), controller.run ? _jsx(PublishRunResult, { run: controller.run, publishedLabel: translate("Published:"), linkLabel: "Open the just-published site", linkHandle: "deployment-static-site-publish-result-url", classes: PUBLISH_RUN_RESULT_CLASSES }) : null] }));
|
|
55
|
+
}
|
|
56
|
+
export function StaticPublishForm({ controller, credentialChangePending, chosenCredentialId, t: translate, deps, kit }, _optional = {}) {
|
|
57
|
+
const { canPreview, canPublish, projectNameCopy } = controller;
|
|
58
|
+
const runTone = runStatusTone({ status: controller.run?.status ?? "idle" }, { ok: controller.run?.result?.ok });
|
|
59
|
+
// `publishing` (the POST-in-flight flag) is included alongside `isPublishing` (the server-confirmed
|
|
60
|
+
// "running" state) on purpose — without it, the window between clicking Publish and the response
|
|
61
|
+
// supplying a "running" run left the button enabled, which is exactly how a double-click could send
|
|
62
|
+
// two POSTs (see `use-static-publish.hooks.ts`'s own `publish()` for the matching in-hook guard —
|
|
63
|
+
// this is the UI half of that same C4 fix, belt-and-suspenders rather than either alone).
|
|
64
|
+
const busy = controller.isPublishing || controller.publishing;
|
|
65
|
+
return (_jsxs("div", { className: "deployment-route", children: [_jsx(StaticPublishHeading, { t: translate }), _jsxs("div", { className: "field-row field-row-top", children: [_jsx(StaticPublishTargetFields, { deps: deps, controller: controller, t: translate }), _jsx(PublishProjectNameField, { projectNameCopy: projectNameCopy, controller: controller, t: translate })] }), _jsx(PublishPreviewAction, { canPreview: canPreview, controller: controller, t: translate }), _jsx(PublishTriggerAction, { deps: deps, kit: kit, canPublish: canPublish, busy: busy, credentialChangePending: credentialChangePending, chosenCredentialId: chosenCredentialId, runTone: runTone, controller: controller, t: translate })] }));
|
|
66
|
+
}
|
|
67
|
+
/** A preview result's facts — base path (or "root, no prefix" for a root-served host/an invalid config) and
|
|
68
|
+
* whether a credential is configured. Never shows the credential itself — `preview.credentialsConfigured`
|
|
69
|
+
* is a boolean the server already reduced it to. */
|
|
70
|
+
function PublishPreviewFacts({ preview, t: translate }, _optional = {}) {
|
|
71
|
+
if (!preview.valid) {
|
|
72
|
+
return (_jsx("p", { className: "save-error", role: "alert", children: preview.validationError }));
|
|
73
|
+
}
|
|
74
|
+
return (_jsxs("div", { className: "deployment-facts", children: [_jsxs("div", { className: "deployment-fact", children: [_jsx("span", { className: "deployment-fact-label", children: translate("Base path") }), _jsx("span", { className: "deployment-fact-value", children: preview.basePath ? _jsx("code", { translate: "no", children: preview.basePath }) : translate("None — serves from the domain root") })] }), _jsxs("div", { className: "deployment-fact", children: [_jsx("span", { className: "deployment-fact-label", children: translate("Credential") }), _jsx("span", { className: `status status-${preview.credentialsConfigured ? "ok" : "warning"}`, children: preview.credentialsConfigured ? translate("Configured") : translate("Not configured") })] }), !preview.credentialsConfigured && preview.credentialGuidance ? (_jsx("p", { className: "deployment-action-reason", children: preview.credentialGuidance })) : null] }));
|
|
75
|
+
}
|
|
76
|
+
function StaticPublishHeading({ t: translate }, _optional = {}) {
|
|
77
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "deployment-route-label", children: [_jsx("span", { className: "deployment-step-marker deployment-step-marker-inline", "aria-hidden": "true", children: "2" }), _jsx("span", { className: "deployment-fact-label", children: translate("Where this publish goes") })] }), _jsx("p", { className: "deployment-action-reason", children: translate("The account above only proves you're allowed to publish — this says exactly where this one goes.") })] }));
|
|
78
|
+
}
|
|
79
|
+
function PublishProjectNameField({ projectNameCopy, controller, t: translate }, _optional = {}) {
|
|
80
|
+
return (_jsx(_Fragment, { children: projectNameCopy ? (_jsxs("div", { className: "field", children: [_jsx("label", { className: "field-label", htmlFor: "deployment-static-site-publish-project-name", children: translate(projectNameCopy.labelKey) }), _jsx("input", { id: "deployment-static-site-publish-project-name", type: "text", value: controller.projectName, onChange: (e) => controller.setProjectName(e.target.value), ...agentHandle({ handle: "deployment-static-site-publish-project-name" }, {
|
|
81
|
+
role: "field",
|
|
82
|
+
label: `Human-facing label for this publish — ${projectNameCopy.helpKey ?? projectNameCopy.labelKey}`,
|
|
83
|
+
}) }), projectNameCopy.helpKey ? (_jsx("p", { className: "deployment-action-reason", children: translate(projectNameCopy.helpKey) })) : null] })) : null }));
|
|
84
|
+
}
|
|
85
|
+
function PublishPollNotice({ controller }, _optional = {}) {
|
|
86
|
+
return (_jsx(_Fragment, { children: controller.pollError ? (_jsx("p", { className: "notice warning", role: "status", ...agentHandle({ handle: "deployment-static-site-publish-poll-error" }, {
|
|
87
|
+
role: "status",
|
|
88
|
+
label: "States that this publish's status could no longer be checked, so the button re-enabled even though the run may still be in progress",
|
|
89
|
+
}), children: controller.pollError })) : null }));
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=StaticPublishForm.js.map
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import type { ChangeEvent, ComponentType } from "react";
|
|
2
|
+
import type { Translate } from "@jini-ai/core/text";
|
|
3
|
+
import type { StaticExportController } from "./hooks/use-static-export.hooks.js";
|
|
4
|
+
import type { StaticPublishController } from "./hooks/use-static-publish.hooks.js";
|
|
5
|
+
import type { PublishCredentialRowState, PublishCredentialsController } from "./hooks/use-publish-credentials.hooks.js";
|
|
6
|
+
import { credentialFieldHandleId } from "./rules.js";
|
|
7
|
+
import type { DeploymentCapability } from "./rules.js";
|
|
8
|
+
import { StepDoneIcon } from "./deployment-visuals.js";
|
|
9
|
+
/**
|
|
10
|
+
* @file Static Site tab — what a static export produces, a real trigger+poll build action, and a
|
|
11
|
+
* real per-provider publish flow to the four host-supplied static-hosting providers.
|
|
12
|
+
*
|
|
13
|
+
* ## Third pass (2026-08-15) — the two "not wired up yet" halves both got wired
|
|
14
|
+
*
|
|
15
|
+
* The second pass's own header traced a grep (`runExportCommand|exportSite\b` against
|
|
16
|
+
* `src/server/routes`) that returned nothing, and concluded the build button had to stay inert. That
|
|
17
|
+
* grep is now stale for a second time, the same way it was corrected once already: a concurrent
|
|
18
|
+
* agent landed `the host system routes/export-site.ts` (`POST`/`GET .../system/export`,
|
|
19
|
+
* trigger+poll, `system.export`-gated) the same session, registered in `the host composition root`, tested in
|
|
20
|
+
* `export-site-route.test.ts`. The build button below now calls it for real, through
|
|
21
|
+
* `useWiredStaticExport` (`hooks/use-static-export.hooks.ts`).
|
|
22
|
+
*
|
|
23
|
+
* The publish half tells the same story a second time over: `the host system routes/
|
|
24
|
+
* publish-site.ts` (preview + trigger + poll, wrapping `features/deployments/static-publish/`) also
|
|
25
|
+
* landed the same session, cookie-authed — a HUMAN clicking Publish in this admin, not the AI
|
|
26
|
+
* assistant (`deployment_execute_static_publish`, the agent-tool half of this same feature, stays
|
|
27
|
+
* declared-but-never-wired on purpose; see that tool's own doc comment in `publish-agent-tools.ts`
|
|
28
|
+
* for why: no confirmation-token transport exists yet for an agent to trigger an irreversible public
|
|
29
|
+
* publish). The "Getting it online" card below now has a real provider picker, preview, and publish
|
|
30
|
+
* action wired through `useWiredStaticPublish` (`hooks/use-static-publish.hooks.ts`), sitting
|
|
31
|
+
* alongside the CLI-first assistant route rather than replacing it — see that card's own doc for how
|
|
32
|
+
* the two relate.
|
|
33
|
+
*
|
|
34
|
+
* The CLI-first assistant route (a vendor-CLI PATH probe per provider) was removed 2026-09-29
|
|
35
|
+
* (owner decision: publishing goes through the hosting plugins, not a server CLI).
|
|
36
|
+
*
|
|
37
|
+
* ## Fourth pass (2026-08-15) — the picker catches up to all four providers the credential form
|
|
38
|
+
* already saved for
|
|
39
|
+
*
|
|
40
|
+
* The third pass wired a real picker, but `STATIC_PUBLISH_TARGETS` still only listed the two
|
|
41
|
+
* CLI-backed providers even though `PUBLISH_CREDENTIAL_PROVIDERS` (below, in `rules.ts`) already covered all
|
|
42
|
+
* four — a saved credential for either of the other two had no tab that could ever use it. Closed by
|
|
43
|
+
* widening `STATIC_PUBLISH_TARGETS`/`AdminStaticPublishTargetId` to the full four-provider set the
|
|
44
|
+
* server (`static-publish/adapter.ts`) already published to. Those two providers have no
|
|
45
|
+
* CLI this codebase drives, so their tab shows no CLI-first row at all (`StaticPublishTargetFields`'s
|
|
46
|
+
* own doc) — the token-based credential form below is their only publish path today.
|
|
47
|
+
*
|
|
48
|
+
* ## Fifth pass (2026-08-15) — the credential section became a flat settings form, not a collection
|
|
49
|
+
*
|
|
50
|
+
* The fourth pass's credential block was still modelled as "manage a collection of named
|
|
51
|
+
* connections": an "Add credential" button, a provider `<select>`, a user-invented `Label` field,
|
|
52
|
+
* then a form. The owner's own read: "'Add credential' should be gone. Just list the providers,
|
|
53
|
+
* labels, and access token space, and that's it" — plus a second complaint that the OLD edit-mode
|
|
54
|
+
* form's placeholder text ("Leave blank to keep the current token") read as a prepopulated value at
|
|
55
|
+
* a glance. `PublishCredentialsSection`/`PublishCredentialRow` below are the replacement: one
|
|
56
|
+
* always-visible row per provider, no picker, no label, hints below every input rather than inside
|
|
57
|
+
* it. See `use-publish-credentials.hooks.ts`'s own header for the hook-side half of this story.
|
|
58
|
+
*
|
|
59
|
+
* ## Sixth pass (2026-08-15) — a design pass on "it looks awful", with a fifth provider already on
|
|
60
|
+
* the way
|
|
61
|
+
*
|
|
62
|
+
* Three fixes, none of them touching `use-static-publish.hooks.ts`/`use-static-export.hooks.ts`
|
|
63
|
+
* (both off-limits this pass — their `busy`/`pollError` behaviour landed and was proven correct just
|
|
64
|
+
* before this pass started; see `StaticPublishForm`'s own `busy` comment for the guard this pass
|
|
65
|
+
* deliberately left alone):
|
|
66
|
+
*
|
|
67
|
+
* 1. "Publish directly from here" named nothing — a reader had no way to tell it apart from the
|
|
68
|
+
* credential above it. Renamed to "Where this publish goes", with a line contrasting it against
|
|
69
|
+
* the credential explicitly (`StaticPublishForm` below).
|
|
70
|
+
* 2. `PublishCredentialRow`'s two-field layout (one provider only, today) broke under uneven
|
|
71
|
+
* field heights — see that component's own doc.
|
|
72
|
+
* 3. Neither `StaticExportController.pollError` nor `StaticPublishController.pollError` was rendered
|
|
73
|
+
* ANYWHERE on this tab before this pass, despite both hooks having shipped it — a stalled poll
|
|
74
|
+
* silently re-enabled the button with no explanation on screen for why the spinner stopped.
|
|
75
|
+
* `BuildExportCard` and `StaticPublishForm` below now both render it, same `notice warning`
|
|
76
|
+
* treatment `PublishCredentialsSection`'s own hosted-mode notice already established on this tab.
|
|
77
|
+
*
|
|
78
|
+
* A fifth publish target (any S3-compatible object store) is being spec'd separately and is NOT built here. It matters to this pass because it
|
|
79
|
+
* will need roughly five credential fields (endpoint, access key id, secret access key, bucket,
|
|
80
|
+
* region) with uneven hint lengths of its own — exactly the shape `PublishCredentialRow`'s single-
|
|
81
|
+
* column fix (fix 2 above) exists to tolerate, and exactly why that fix did not just special-case
|
|
82
|
+
* that one provider's two fields.
|
|
83
|
+
*
|
|
84
|
+
* ## Seventh pass (2026-08-16) — the sixth pass polished the boxes; the owner's actual complaint was
|
|
85
|
+
* that there were sixteen fields of them on screen at once
|
|
86
|
+
*
|
|
87
|
+
* The sixth pass ("Publish directly from here" -> "Where this publish goes", the two-field-row fix,
|
|
88
|
+
* surfacing `pollError`) shipped, the owner looked at the running app, and the verdict was "it looks
|
|
89
|
+
* just awful" — followed by the real diagnosis: `PublishCredentialsSection` rendered ALL FOUR
|
|
90
|
+
* providers' credential forms simultaneously, regardless of which tab was selected. A reader on the
|
|
91
|
+
* first provider's tab saw its fields, then the second's, the third's and the fourth's,
|
|
92
|
+
* all inside one `<details>` — a wall of "ACCESS TOKEN" boxes nobody but that one reader's own
|
|
93
|
+
* provider needed. Three changes, all in this file plus `TabBar.tsx`/`styles.css`:
|
|
94
|
+
*
|
|
95
|
+
* 1. **The credential section now renders exactly one row: the SELECTED provider's.** See
|
|
96
|
+
* `PublishCredentialsSection`'s own doc for the filter and why the id-set guarantee between
|
|
97
|
+
* `STATIC_PUBLISH_TARGETS` and `PUBLISH_CREDENTIAL_PROVIDERS` makes it safe. This is the fix the
|
|
98
|
+
* owner explicitly approved — collapsing a 4-row wall down to whichever one the reader is already
|
|
99
|
+
* looking at.
|
|
100
|
+
* 2. **The connected/not-connected fact the old all-rows layout gave away for free moved onto the tab
|
|
101
|
+
* bar itself.** Collapsing to one row would otherwise have made it strictly WORSE than before —
|
|
102
|
+
* "which providers have I already connected" was visible pre-collapse (scroll down, look at four
|
|
103
|
+
* pills) and invisible post-collapse (click through every tab to find out) unless it went
|
|
104
|
+
* somewhere else. `TabBar.tsx`'s new `TabBarTab.dot`/`dotLabel` puts a small filled dot on any tab
|
|
105
|
+
* whose provider has a saved credential (`connectedProviderIds`, computed once from
|
|
106
|
+
* `credentialsController.rows` below) — visible from EVERY tab at once, which the old layout never
|
|
107
|
+
* actually managed either (you had to scroll to a row to see ITS OWN status, never all four at a
|
|
108
|
+
* glance without scrolling). Generic and opt-in on `TabBar.tsx` itself, so `Themes.tsx`/`Pages.tsx`
|
|
109
|
+
* (its other two callers) render unchanged — see that prop's own doc for the accessibility
|
|
110
|
+
* reasoning (presence, not color alone, carries the meaning).
|
|
111
|
+
* 3. **Visual weight now matches actual importance.** Before this pass, `.deployment-route`'s tinted-
|
|
112
|
+
* surface-plus-`--primary`-left-border treatment was applied identically to three different-weight
|
|
113
|
+
* blocks: the CLI recommendation (a suggestion), the "no CLI path" note (a fact), and "Where this
|
|
114
|
+
* publish goes" (the actual Preview/Publish action — this tab's real job). Nothing stood out as
|
|
115
|
+
* more important than anything else. The CLI recommendation and the "no CLI path" note now use
|
|
116
|
+
* `.deployment-route-quiet` (`styles.css`) — same structure, no strong accent — so the one block
|
|
117
|
+
* that ends in a live "publish this to the public internet" action is the one block on this card
|
|
118
|
+
* that still looks like it. The credential row's own box also lost its NESTED border/background
|
|
119
|
+
* inside the Advanced `<details>`/hosted-mode `.deployment-route` it now sits alone in — a single
|
|
120
|
+
* row no longer needs to look like a card inside a card inside a disclosure.
|
|
121
|
+
*
|
|
122
|
+
* None of this touches `use-static-publish.hooks.ts`/`use-static-export.hooks.ts`, or the `busy`
|
|
123
|
+
* guard `StaticPublishForm`'s own comment documents — both were verified correct earlier the same
|
|
124
|
+
* day and stayed off-limits this pass too.
|
|
125
|
+
*/
|
|
126
|
+
export interface StaticSiteTabProps {
|
|
127
|
+
/** DI seams for tests — same convention as every other wired-hook prop in this app
|
|
128
|
+
* (`DockerfileTabProps.useDockerfileSourceHook`, `OverviewTabProps.useDeploymentOverviewHook`). */
|
|
129
|
+
hooks: {
|
|
130
|
+
useStaticExportHook: () => StaticExportController;
|
|
131
|
+
useStaticPublishHook: () => StaticPublishController;
|
|
132
|
+
usePublishCredentialsHook: (required: {
|
|
133
|
+
targets: StaticPublishController["targets"];
|
|
134
|
+
}) => PublishCredentialsController;
|
|
135
|
+
useAdminLocale: () => string;
|
|
136
|
+
useWiredCopyToClipboard: () => {
|
|
137
|
+
copied: boolean;
|
|
138
|
+
copy: (text: string) => Promise<boolean>;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
kit: {
|
|
142
|
+
Icon: Parameters<typeof StepDoneIcon>[0]["Icon"];
|
|
143
|
+
CredentialHint: ComponentType<{
|
|
144
|
+
hint?: NonNullable<PublishCredentialRowState["saved"]>["tokenHint"] | null;
|
|
145
|
+
}>;
|
|
146
|
+
SecretInput: ComponentType<{
|
|
147
|
+
label: string;
|
|
148
|
+
secret: boolean;
|
|
149
|
+
id: string;
|
|
150
|
+
autoComplete: "new-password";
|
|
151
|
+
value: string;
|
|
152
|
+
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
153
|
+
}>;
|
|
154
|
+
TabBar: ComponentType<{
|
|
155
|
+
ariaLabel: string;
|
|
156
|
+
tabs: readonly {
|
|
157
|
+
id: string;
|
|
158
|
+
label: string;
|
|
159
|
+
dot: boolean;
|
|
160
|
+
dotLabel: string;
|
|
161
|
+
}[];
|
|
162
|
+
activeId: string;
|
|
163
|
+
onChange: (id: string) => void;
|
|
164
|
+
}>;
|
|
165
|
+
ErrorNotice: ComponentType<{
|
|
166
|
+
failure: NonNullable<StaticPublishController["publishFailure"]>;
|
|
167
|
+
t: Translate;
|
|
168
|
+
className: string;
|
|
169
|
+
}>;
|
|
170
|
+
};
|
|
171
|
+
deps: {
|
|
172
|
+
PUBLISH_RUN_RESULT_CLASSES: {
|
|
173
|
+
readonly success: string;
|
|
174
|
+
readonly error: string;
|
|
175
|
+
};
|
|
176
|
+
LINE_ICON: Parameters<typeof StepDoneIcon>[0]["lineIcon"];
|
|
177
|
+
copy: {
|
|
178
|
+
credentialSubtitle: string;
|
|
179
|
+
exportDescription: string;
|
|
180
|
+
exportCommand: string;
|
|
181
|
+
storedTokenNotice: string;
|
|
182
|
+
pickerTokenNotice: string;
|
|
183
|
+
productName: string;
|
|
184
|
+
};
|
|
185
|
+
asciiSlug: Parameters<typeof credentialFieldHandleId>[0]["asciiSlug"];
|
|
186
|
+
STATIC_SITE_CAPABILITIES: readonly DeploymentCapability[];
|
|
187
|
+
createStaticSiteTabTranslator: (required: {
|
|
188
|
+
locale: string;
|
|
189
|
+
}) => Translate;
|
|
190
|
+
adminHref: (required: {
|
|
191
|
+
routePath: string;
|
|
192
|
+
}) => string;
|
|
193
|
+
navigate: (required: {
|
|
194
|
+
routePath: string;
|
|
195
|
+
}) => void;
|
|
196
|
+
t: (required: {
|
|
197
|
+
locale: string;
|
|
198
|
+
key: string;
|
|
199
|
+
}) => string;
|
|
200
|
+
VIEWER_TIME_ZONE: string;
|
|
201
|
+
pluginsPath: string;
|
|
202
|
+
accessTokensPath: string;
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
export declare function StaticSiteTab(props: StaticSiteTabProps, _optional?: {}): import("react").JSX.Element;
|
|
206
|
+
export declare function bindStaticSiteTab(required: StaticSiteTabProps, _optional?: {}): (_required: Record<string, never>, _optional?: {}) => import("react").JSX.Element;
|
|
207
|
+
//# sourceMappingURL=StaticSiteTab.d.ts.map
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { agentHandle } from "@jini-ai/core/agent-handles";
|
|
3
|
+
import { credentialFieldHandleId } from "./rules.js";
|
|
4
|
+
import { CapabilityList, StaticSiteIcon, StepDoneIcon } from "./deployment-visuals.js";
|
|
5
|
+
import { BuildExportCard } from "./StaticExportCard.js";
|
|
6
|
+
import { PublishCredentialsSection } from "./StaticPublishCredentials.js";
|
|
7
|
+
import { StaticPublishForm } from "./StaticPublishForm.js";
|
|
8
|
+
export function StaticSiteTab(props, _optional = {}) {
|
|
9
|
+
const { deps, kit } = props;
|
|
10
|
+
const { createStaticSiteTabTranslator } = deps;
|
|
11
|
+
const { hooks } = props;
|
|
12
|
+
const locale = hooks.useAdminLocale();
|
|
13
|
+
const translate = createStaticSiteTabTranslator({ locale });
|
|
14
|
+
// Keep the DI seams. Forwarding resolvers previously isolated these branches for the
|
|
15
|
+
// complexity gate; this component is small enough to resolve its defaults directly.
|
|
16
|
+
const exportController = hooks.useStaticExportHook();
|
|
17
|
+
const publishController = hooks.useStaticPublishHook();
|
|
18
|
+
const credentialsController = hooks.usePublishCredentialsHook({ targets: publishController.targets });
|
|
19
|
+
return (_jsxs("div", { className: "deployment-tab", children: [_jsx(StaticExportCapabilities, { deps: deps, locale: locale, translate: translate, publishController: publishController }), _jsx(BuildExportCard, { deps: deps, hooks: hooks, controller: exportController, t: exportController.t }), _jsx(GettingItOnlineCard, { deps: deps, kit: kit, publishController: publishController, credentialsController: credentialsController, t: publishController.t })] }));
|
|
20
|
+
}
|
|
21
|
+
function StaticExportCapabilities({ locale, translate, publishController, deps }, _optional = {}) {
|
|
22
|
+
const { LINE_ICON, t } = deps;
|
|
23
|
+
return (_jsxs("div", { className: "card", children: [_jsxs("div", { className: "card-head", children: [_jsxs("div", { className: "deployment-path-head", children: [_jsx("span", { className: "deployment-path-icon", children: _jsx(StaticSiteIcon, { lineIcon: LINE_ICON }) }), _jsx("h2", { className: "card-title", children: t({ locale: locale, key: "What a static export gives you" }) })] }), _jsx("div", { className: "card-head-actions", children: _jsx("span", { className: "status status-neutral", children: t({ locale: locale, key: "Available here" }) }) })] }), _jsxs("div", { className: "deployment-card-body", children: [_jsx("p", { className: "card-lead", children: t({ locale: locale, key: "A fast, read-only copy of this site's published pages — no server behind it." }) }), _jsx(StaticExportCapabilityDetails, { deps: deps, locale: locale, translate: translate, publishController: publishController })] })] }));
|
|
24
|
+
}
|
|
25
|
+
function StaticExportCapabilityDetails({ locale, translate, publishController, deps }, _optional = {}) {
|
|
26
|
+
const { LINE_ICON, STATIC_SITE_CAPABILITIES, t } = deps;
|
|
27
|
+
return (_jsxs("div", { className: "deployment-split", children: [_jsxs("div", { children: [_jsx("span", { className: "deployment-fact-label", children: t({ locale: locale, key: "What survives the export" }) }), _jsx(CapabilityList, { lineIcon: LINE_ICON, rows: STATIC_SITE_CAPABILITIES, t: translate })] }), _jsxs("div", { children: [_jsx("span", { className: "deployment-fact-label", children: t({ locale: locale, key: "Where it runs" }) }), _jsx("ul", { className: "deployment-chips", children: (publishController.targets ?? []).map((target) => (_jsx("li", { translate: "no", children: target.label }, target.id))) }), _jsx("p", { className: "deployment-action-reason", children: t({ locale: locale, key: "The output is a plain folder of files — any static host will serve it." }) })] })] }));
|
|
28
|
+
}
|
|
29
|
+
/** The "Getting it online" card — a provider picker and that provider's own credential step and
|
|
30
|
+
* preview+publish mini-form. Composed as its own function (not inline in `StaticSiteTab`) for the
|
|
31
|
+
* same complexity-gate reason `Deployment.tsx`'s `deploymentTabPanel` documents.
|
|
32
|
+
*
|
|
33
|
+
* `t` is `publishController.t` (the injected hook's own bound translator), not a second one built
|
|
34
|
+
* from `useAdminLocale()` — same "the DI seam has to actually be exercised" reasoning
|
|
35
|
+
* `use-deployment-overview.unit.test.tsx`'s own "proving the value isn't built internally" test
|
|
36
|
+
* pins for `OverviewTab`. One card, one translator, so a test injecting a fake `useStaticPublishHook` controls every string
|
|
37
|
+
* this card renders. */
|
|
38
|
+
function GettingItOnlineCard({ publishController, credentialsController, t: translate, deps, kit }, _optional = {}) {
|
|
39
|
+
const { adminHref, pluginsPath } = deps;
|
|
40
|
+
if (publishController.targets?.length === 0 && !publishController.targetsError) {
|
|
41
|
+
return _jsxs("div", { className: "empty-state", children: [_jsx("p", { children: translate("Enable a hosting plugin to publish this site.") }), _jsx("a", { href: adminHref({ routePath: pluginsPath }), children: translate("Plugins") })] });
|
|
42
|
+
}
|
|
43
|
+
const selectedTargetId = publishController.target;
|
|
44
|
+
// One `Set` lookup per render, not a `.find()` inside the `.map()` below — keeps the connected
|
|
45
|
+
// check a single small expression the `tabs` map stays readable with. `undefined` (rows not
|
|
46
|
+
// loaded yet) reads as "nothing connected yet" rather than a loading state of its own.
|
|
47
|
+
const connectedProviderIds = new Set((credentialsController.rows ?? []).filter((row) => row.saved !== undefined).map((row) => row.providerId));
|
|
48
|
+
return (_jsxs("div", { className: "card", ...agentHandle({ handle: "deployment-static-site-online-card" }, {
|
|
49
|
+
role: "region",
|
|
50
|
+
label: "Publish target picker and direct preview/publish form for this static export",
|
|
51
|
+
}), children: [_jsx("div", { className: "card-head", children: _jsx("h2", { className: "card-title", children: translate("Getting it online") }) }), _jsx(GettingItOnlineContent, { kit: kit, deps: deps, publishController: publishController, credentialsController: credentialsController, selectedTargetId: selectedTargetId, connectedProviderIds: connectedProviderIds, t: translate })] }));
|
|
52
|
+
}
|
|
53
|
+
function GettingItOnlineContent({ publishController, credentialsController, selectedTargetId, connectedProviderIds, t: translate, kit, deps }, _optional = {}) {
|
|
54
|
+
const { TabBar } = kit;
|
|
55
|
+
return (_jsxs("div", { className: "deployment-card-body", children: [_jsx(PublishTargetLoadNotice, { publishController: publishController }), publishController.targetsError ? (_jsx("p", { className: "notice error", role: "status", children: publishController.targetsError })) : null, _jsx("p", { className: "card-lead", children: translate("The export is just a folder of files. Pick where it goes, then publish straight from here.") }), _jsx(TabBar, { ariaLabel: translate("Publish target"), tabs: (publishController.targets ?? []).map((target) => ({
|
|
56
|
+
id: target.id,
|
|
57
|
+
label: target.label,
|
|
58
|
+
dot: connectedProviderIds.has(target.id),
|
|
59
|
+
dotLabel: translate("Connected"),
|
|
60
|
+
})), activeId: selectedTargetId, onChange: publishController.setTarget }), _jsx(PublishCredentialsSection, { deps: deps, kit: kit, controller: credentialsController, selectedProviderId: selectedTargetId, t: translate }), _jsx(ManageAccessTokensLink, { deps: deps, t: translate }), _jsx(StaticPublishForm, { deps: deps, kit: kit, controller: publishController, credentialChangePending: credentialsController.credentialChangePending, chosenCredentialId: chosenCredentialIdForTarget(credentialsController, selectedTargetId), t: translate })] }));
|
|
61
|
+
}
|
|
62
|
+
function PublishTargetLoadNotice({ publishController }, _optional = {}) {
|
|
63
|
+
return (_jsx(_Fragment, { children: publishController.loadError ? (_jsx("p", { className: "notice error", role: "status", ...agentHandle({ handle: "deployment-static-site-publish-load-error" }, {
|
|
64
|
+
role: "status",
|
|
65
|
+
label: "Shows the error when this publish's current status could not be loaded",
|
|
66
|
+
}), children: publishController.loadError })) : null }));
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Cross-link from this tab's single-token-per-provider credential row to the fuller Access Tokens
|
|
70
|
+
* tab on the Security page — the owner's own ask, verbatim: "a button 'create access token' that
|
|
71
|
+
* takes them back to the access token tab on the security page." This tab's own row above still
|
|
72
|
+
* handles the common case inline (one token per provider, paste-and-save) — {@link
|
|
73
|
+
* PublishCredentialsSection} is deliberately UNCHANGED by this link, per the standing "Static Site
|
|
74
|
+
* stays as-is for now" decision (`ADS-memory/reports/2026-08-17-source-control-ui.md`). This is the
|
|
75
|
+
* escape hatch to what Security's Access Tokens tab can do that this row cannot: save a SECOND named
|
|
76
|
+
* token for the same provider, rename one, or remove one — `AccessTokensTab.tsx`'s own header on
|
|
77
|
+
* why "Create" living there too is not a duplicate of what this tab does.
|
|
78
|
+
*
|
|
79
|
+
* One link per card, not one per provider — clicking it always lands on the same destination
|
|
80
|
+
* regardless of which of the four tabs is currently selected, so it renders once beneath the
|
|
81
|
+
* credential section rather than being threaded through {@link PublishCredentialFields} four times.
|
|
82
|
+
* Plain `navigate()`, not `{ replace: true }` — this is a real navigation to a different page (the
|
|
83
|
+
* reader may want the Back button to return here), unlike this tab's own `handleTabChange`-style
|
|
84
|
+
* calls, which only swap a `?tab=` query param on the SAME page.
|
|
85
|
+
* @complexity O(1) — no branches.
|
|
86
|
+
*/
|
|
87
|
+
function ManageAccessTokensLink({ t: translate, deps }, _optional = {}) {
|
|
88
|
+
const { navigate, accessTokensPath } = deps;
|
|
89
|
+
return (_jsxs("p", { className: "deployment-action-reason", children: [translate("Need to save more than one token, rename one, or manage every saved credential in one place?"), " ", _jsx("button", { type: "button", className: "link-button", onClick: () => navigate({ routePath: accessTokensPath }), ...agentHandle({ handle: "deployment-static-site-manage-tokens-link" }, {
|
|
90
|
+
role: "button",
|
|
91
|
+
label: "Go to the Access Tokens tab on the Security page to create, rename, or manage saved tokens",
|
|
92
|
+
}), children: translate("Create access token") })] }));
|
|
93
|
+
}
|
|
94
|
+
/** The token-based preview+publish mini-form for whichever target is currently selected. Reads
|
|
95
|
+
* ONLY the fields the current target uses (see `use-static-publish.hooks.ts`'s header for why the
|
|
96
|
+
* hook still keeps all five target fields in state at once) — a target never shows another
|
|
97
|
+
* target's companion field (e.g. an owner/repo pair vs a `teamId`); a target with neither shows neither. */
|
|
98
|
+
/** The saved connection this provider's row is currently showing as the one that publishes — the
|
|
99
|
+
* id the Publish request must NAME, so the server publishes with that account instead of resolving
|
|
100
|
+
* whichever row is default when the POST lands (terra review 2026-09-20, finding 1). `undefined`
|
|
101
|
+
* when this provider has no saved connection: an install publishing from server env vars has no
|
|
102
|
+
* connection ids at all, and that caller keeps the server's default lookup.
|
|
103
|
+
*
|
|
104
|
+
* Reads `saved` and not `selectingCredentialId`: a pick still in flight is not yet the connection
|
|
105
|
+
* that publishes, and Publish is disabled for that whole window anyway
|
|
106
|
+
* ({@link PublishCredentialsController.credentialChangePending}).
|
|
107
|
+
*
|
|
108
|
+
* @complexity O(providers) — a four-element scan. */
|
|
109
|
+
function chosenCredentialIdForTarget(controller, target) {
|
|
110
|
+
return controller.rows?.find((row) => row.providerId === target)?.saved?.id;
|
|
111
|
+
}
|
|
112
|
+
export function bindStaticSiteTab(required, _optional = {}) {
|
|
113
|
+
return function BoundStaticSiteTab(_required, _optional = {}) {
|
|
114
|
+
return _jsx(StaticSiteTab, { ...required });
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=StaticSiteTab.js.map
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import type { ComponentType } from "react";
|
|
2
|
+
import type { DeploymentCapability } from "./rules.js";
|
|
3
|
+
import { type Translate } from '@jini-ai/core/text';
|
|
4
|
+
/**
|
|
5
|
+
* @file The Deployment panel's own small presentational pieces — four inline icons and the
|
|
6
|
+
* capability list they sit above. No hooks, no fetch, no data of its own.
|
|
7
|
+
*
|
|
8
|
+
* Icons are inline SVG at `currentColor` rather than an icon dependency: this app ships no icon
|
|
9
|
+
* component library to `features/` (the sidebar's own glyphs are inline SVG in `App.tsx`, and
|
|
10
|
+
* `SettingsUi.tsx`'s tab icons are inline SVG too), so following that is reuse, not reinvention.
|
|
11
|
+
* All four are `aria-hidden` — every one of them sits next to text that already says the same
|
|
12
|
+
* thing, and an icon that duplicates its own label is noise to a screen reader
|
|
13
|
+
* (`frontend-accessibility`: "do not add `aria-label` to elements that already have visible text").
|
|
14
|
+
* The one exception is {@link CapabilityMark}, whose ✓/✗ carries meaning the row's label does NOT
|
|
15
|
+
* repeat, so it gets a real accessible name.
|
|
16
|
+
*
|
|
17
|
+
* Sizes are `1em`-relative where the icon sits inline with text, so they track the type scale
|
|
18
|
+
* instead of pinning a px size that drifts when the surrounding text changes
|
|
19
|
+
* (`kole-jain-uiux-concepts`: "size icons to match the related text line height").
|
|
20
|
+
*/
|
|
21
|
+
/** Overview — a small dashboard grid, i.e. a summary of several facts at a glance. Added for the
|
|
22
|
+
* Deployment tab row's own icon set (owner request) — the four tabs beside it already had a glyph
|
|
23
|
+
* each; this is Overview's. */
|
|
24
|
+
export declare function OverviewIcon({ size, lineIcon }: {
|
|
25
|
+
size?: number;
|
|
26
|
+
lineIcon: {
|
|
27
|
+
viewBox: string;
|
|
28
|
+
fill: string;
|
|
29
|
+
stroke: string;
|
|
30
|
+
strokeWidth: number;
|
|
31
|
+
strokeLinecap: "round";
|
|
32
|
+
strokeLinejoin: "round";
|
|
33
|
+
"aria-hidden": true;
|
|
34
|
+
};
|
|
35
|
+
}): import("react").JSX.Element;
|
|
36
|
+
/** Static Site — a document, i.e. files on disk with no machine behind them. */
|
|
37
|
+
export declare function StaticSiteIcon({ size, lineIcon }: {
|
|
38
|
+
size?: number;
|
|
39
|
+
lineIcon: {
|
|
40
|
+
viewBox: string;
|
|
41
|
+
fill: string;
|
|
42
|
+
stroke: string;
|
|
43
|
+
strokeWidth: number;
|
|
44
|
+
strokeLinecap: "round";
|
|
45
|
+
strokeLinejoin: "round";
|
|
46
|
+
"aria-hidden": true;
|
|
47
|
+
};
|
|
48
|
+
}): import("react").JSX.Element;
|
|
49
|
+
/** Full Site — stacked server racks, i.e. a machine that stays running. */
|
|
50
|
+
export declare function FullSiteIcon({ size, lineIcon }: {
|
|
51
|
+
size?: number;
|
|
52
|
+
lineIcon: {
|
|
53
|
+
viewBox: string;
|
|
54
|
+
fill: string;
|
|
55
|
+
stroke: string;
|
|
56
|
+
strokeWidth: number;
|
|
57
|
+
strokeLinecap: "round";
|
|
58
|
+
strokeLinejoin: "round";
|
|
59
|
+
"aria-hidden": true;
|
|
60
|
+
};
|
|
61
|
+
}): import("react").JSX.Element;
|
|
62
|
+
/** History — a clock with no hands set to a real time, for a tab that has nothing to show yet. */
|
|
63
|
+
export declare function HistoryIcon({ size, lineIcon }: {
|
|
64
|
+
size?: number;
|
|
65
|
+
lineIcon: {
|
|
66
|
+
viewBox: string;
|
|
67
|
+
fill: string;
|
|
68
|
+
stroke: string;
|
|
69
|
+
strokeWidth: number;
|
|
70
|
+
strokeLinecap: "round";
|
|
71
|
+
strokeLinejoin: "round";
|
|
72
|
+
"aria-hidden": true;
|
|
73
|
+
};
|
|
74
|
+
}): import("react").JSX.Element;
|
|
75
|
+
/** Dockerfile — a stack of layers, the shape of an image build. */
|
|
76
|
+
export declare function LayersIcon({ size, lineIcon }: {
|
|
77
|
+
size?: number;
|
|
78
|
+
lineIcon: {
|
|
79
|
+
viewBox: string;
|
|
80
|
+
fill: string;
|
|
81
|
+
stroke: string;
|
|
82
|
+
strokeWidth: number;
|
|
83
|
+
strokeLinecap: "round";
|
|
84
|
+
strokeLinejoin: "round";
|
|
85
|
+
"aria-hidden": true;
|
|
86
|
+
};
|
|
87
|
+
}): import("react").JSX.Element;
|
|
88
|
+
/**
|
|
89
|
+
* The checkmark inside a completed step's marker (`StaticSiteTab.tsx`'s `CredentialStepDone`) — the
|
|
90
|
+
* same check-glyph path {@link CapabilityMark} uses for "Supported", reused here rather than
|
|
91
|
+
* redrawn, so the two ✓ marks on this tab (a capability that survives the export, a credential
|
|
92
|
+
* that's connected) read as the same symbol meaning the same thing. Always `aria-hidden`: the
|
|
93
|
+
* summary text next to it already states "connected" in words — this glyph is reinforcement on a
|
|
94
|
+
* step marker that already has its own accessible summary, not the only place the fact lives (a
|
|
95
|
+
* genuine second appearance, not this icon file's usual "every icon sits next to text that already
|
|
96
|
+
* says the same thing" rule stretched to cover something new).
|
|
97
|
+
*/
|
|
98
|
+
export declare function StepDoneIcon({ size, lineIcon, Icon }: {
|
|
99
|
+
size?: number;
|
|
100
|
+
lineIcon: {
|
|
101
|
+
viewBox: string;
|
|
102
|
+
fill: string;
|
|
103
|
+
stroke: string;
|
|
104
|
+
strokeWidth: number;
|
|
105
|
+
strokeLinecap: "round";
|
|
106
|
+
strokeLinejoin: "round";
|
|
107
|
+
"aria-hidden": true;
|
|
108
|
+
};
|
|
109
|
+
Icon: ComponentType<{
|
|
110
|
+
name: "check-long" | "chevron-down";
|
|
111
|
+
size: number;
|
|
112
|
+
focusable: undefined;
|
|
113
|
+
viewBox: string;
|
|
114
|
+
fill: string;
|
|
115
|
+
stroke: string;
|
|
116
|
+
strokeWidth: number;
|
|
117
|
+
strokeLinecap: "round";
|
|
118
|
+
strokeLinejoin: "round";
|
|
119
|
+
"aria-hidden": true | "true";
|
|
120
|
+
}>;
|
|
121
|
+
}): import("react").JSX.Element;
|
|
122
|
+
/**
|
|
123
|
+
* The disclosure chevron on a collapsed `<summary>` (`StaticSiteTab.tsx`'s `CredentialStepDone`),
|
|
124
|
+
* rotated 180° by CSS when its `<details>` is open.
|
|
125
|
+
*
|
|
126
|
+
* Exists because that summary had NO expand affordance at all (owner-reported, 2026-08-15): the row
|
|
127
|
+
* was clickable and its stylesheet had deliberately stripped the browser's native triangle
|
|
128
|
+
* (`list-style: none` plus the `::-webkit-details-marker` reset), on the reasoning that "the row's
|
|
129
|
+
* own hover/focus are signifier enough". They are not — a reader with a rotated access token had no
|
|
130
|
+
* way to discover the row could be opened to replace it. This is that missing signifier, restored
|
|
131
|
+
* on purpose rather than by putting the native triangle back: the stripped triangle would sit at
|
|
132
|
+
* the START of the row, competing with the step marker for "which glyph means what", which is the
|
|
133
|
+
* problem the reset was avoiding. This one sits at the END, beside a visible text label that says
|
|
134
|
+
* what opening does.
|
|
135
|
+
*
|
|
136
|
+
* `aria-hidden` like every other icon here, and for the usual reason: `<summary>` already exposes
|
|
137
|
+
* its own expanded/collapsed state to a screen reader, and the label beside this glyph already says
|
|
138
|
+
* the rest in words.
|
|
139
|
+
*/
|
|
140
|
+
export declare function DisclosureChevron({ size, lineIcon, Icon }: {
|
|
141
|
+
size?: number;
|
|
142
|
+
lineIcon: {
|
|
143
|
+
viewBox: string;
|
|
144
|
+
fill: string;
|
|
145
|
+
stroke: string;
|
|
146
|
+
strokeWidth: number;
|
|
147
|
+
strokeLinecap: "round";
|
|
148
|
+
strokeLinejoin: "round";
|
|
149
|
+
"aria-hidden": true;
|
|
150
|
+
};
|
|
151
|
+
Icon: ComponentType<{
|
|
152
|
+
name: "check-long" | "chevron-down";
|
|
153
|
+
size: number;
|
|
154
|
+
focusable: undefined;
|
|
155
|
+
viewBox: string;
|
|
156
|
+
fill: string;
|
|
157
|
+
stroke: string;
|
|
158
|
+
strokeWidth: number;
|
|
159
|
+
strokeLinecap: "round";
|
|
160
|
+
strokeLinejoin: "round";
|
|
161
|
+
"aria-hidden": true | "true";
|
|
162
|
+
}>;
|
|
163
|
+
}): import("react").JSX.Element;
|
|
164
|
+
/**
|
|
165
|
+
* The ✓ or ✗ beside a capability row.
|
|
166
|
+
*
|
|
167
|
+
* Two distinct SHAPES, not one shape in two colors — a check and a cross are told apart with no
|
|
168
|
+
* color perception at all, which is the requirement (`frontend-accessibility`: "color is not the
|
|
169
|
+
* only means of conveying information"). The color on top is reinforcement. The `<title>` gives
|
|
170
|
+
* the mark a real accessible name because, unlike every other icon in this file, it states
|
|
171
|
+
* something its neighbouring label does not: the label is "Checkout", the mark is what says whether
|
|
172
|
+
* you get it.
|
|
173
|
+
*/
|
|
174
|
+
export declare function CapabilityMark({ supported, t, lineIcon }: {
|
|
175
|
+
supported: boolean;
|
|
176
|
+
t: Translate;
|
|
177
|
+
lineIcon: {
|
|
178
|
+
viewBox: string;
|
|
179
|
+
fill: string;
|
|
180
|
+
stroke: string;
|
|
181
|
+
strokeWidth: number;
|
|
182
|
+
strokeLinecap: "round";
|
|
183
|
+
strokeLinejoin: "round";
|
|
184
|
+
"aria-hidden": true;
|
|
185
|
+
};
|
|
186
|
+
}): import("react").JSX.Element;
|
|
187
|
+
/**
|
|
188
|
+
* The "what works on this path" list — the same four rows rendered on both Overview path cards and
|
|
189
|
+
* again on the Static Site tab, so the reader meets one fact in one shape rather than a comparison
|
|
190
|
+
* on one screen and a prose restatement on another (`self-made-web-designer-core-skills`' visual
|
|
191
|
+
* rhyming). Rows come from `rules.ts`'s {@link DeploymentCapability} table; nothing here decides
|
|
192
|
+
* what is or is not supported.
|
|
193
|
+
*/
|
|
194
|
+
export declare function CapabilityList({ rows, t, lineIcon }: {
|
|
195
|
+
rows: readonly DeploymentCapability[];
|
|
196
|
+
t: Translate;
|
|
197
|
+
lineIcon: {
|
|
198
|
+
viewBox: string;
|
|
199
|
+
fill: string;
|
|
200
|
+
stroke: string;
|
|
201
|
+
strokeWidth: number;
|
|
202
|
+
strokeLinecap: "round";
|
|
203
|
+
strokeLinejoin: "round";
|
|
204
|
+
"aria-hidden": true;
|
|
205
|
+
};
|
|
206
|
+
}): import("react").JSX.Element;
|
|
207
|
+
//# sourceMappingURL=deployment-visuals.d.ts.map
|