vite-hub 0.1.0 → 0.4.1
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 +177 -55
- package/dist/_internal/auth/internal/server.d.ts +1 -0
- package/dist/_internal/auth/internal/server.js +2 -0
- package/dist/_internal/auth/runtime/server.d.ts +1 -0
- package/dist/_internal/auth/runtime/server.js +2 -0
- package/dist/_internal/runtime/browser-errors.d.ts +22 -0
- package/dist/_internal/runtime/browser-errors.js +156 -0
- package/dist/_internal/runtime/internal/h3.d.ts +1 -0
- package/dist/_internal/runtime/internal/h3.js +2 -0
- package/dist/_internal/runtime/redirects.d.ts +37 -0
- package/dist/_internal/runtime/redirects.js +71 -0
- package/dist/_internal/runtime/request-policy.d.ts +43 -0
- package/dist/_internal/runtime/request-policy.js +62 -0
- package/dist/_internal/runtime/security.d.ts +27 -0
- package/dist/_internal/runtime/security.js +104 -0
- package/dist/access-BDST818p.js +439 -0
- package/dist/access-policy-CGXhO3Ee.d.ts +109 -0
- package/dist/access-policy-DjBKLo3c.js +73 -0
- package/dist/account-BnOAU055.d.ts +195 -0
- package/dist/agent/capabilities.d.ts +1 -24
- package/dist/agent/capabilities.js +1 -56
- package/dist/agent/invocations/database.d.ts +1 -2
- package/dist/agent/invocations/database.js +2 -91
- package/dist/agent/invocations/drizzle.d.ts +1 -0
- package/dist/agent/invocations/drizzle.js +2 -0
- package/dist/agent/invocations.d.ts +1 -0
- package/dist/agent/invocations.js +2 -0
- package/dist/agent/page.d.ts +1 -0
- package/dist/agent/page.js +2 -0
- package/dist/agent/process.d.ts +1 -0
- package/dist/agent/process.js +2 -0
- package/dist/agent/state.d.ts +1 -0
- package/dist/agent/state.js +2 -0
- package/dist/agent/ui/vue.d.ts +1 -0
- package/dist/agent/ui/vue.js +2 -0
- package/dist/agent/ui.d.ts +1 -0
- package/dist/agent/ui.js +2 -0
- package/dist/agent-invocations.post-CcPvfA0n.js +423 -0
- package/dist/agent.d.ts +1 -12
- package/dist/agent.js +1 -49
- package/dist/agents-BDeazoAW.js +123 -0
- package/dist/agents-BoWau_ei.js +2 -0
- package/dist/agents-C94A4N9u.d.ts +29 -0
- package/dist/auth/abilities.d.ts +1 -0
- package/dist/auth/abilities.js +2 -0
- package/dist/auth/database.d.ts +1 -0
- package/dist/auth/database.js +2 -0
- package/dist/auth/forward.d.ts +1 -0
- package/dist/auth/forward.js +2 -0
- package/dist/auth/mcp.d.ts +1 -0
- package/dist/auth/mcp.js +2 -0
- package/dist/auth/schema.d.ts +1 -0
- package/dist/auth/schema.js +2 -0
- package/dist/auth-BZOy7obk.d.ts +120 -0
- package/dist/auth-operations-GcQk0O0X.js +34 -0
- package/dist/auth-types-CyqhWvYF.d.ts +90 -0
- package/dist/bin.js +114 -128
- package/dist/blob/nuxt-image.d.ts +3 -0
- package/dist/blob/nuxt-image.js +3 -0
- package/dist/blob-CFLwMsjH.d.ts +9 -0
- package/dist/blob-CpvlM8jp.js +26 -0
- package/dist/bundle.d.ts +1 -0
- package/dist/bundle.js +2 -0
- package/dist/cache/operations.d.ts +5 -0
- package/dist/cache/operations.js +51 -0
- package/dist/cache.d.ts +28 -0
- package/dist/cache.js +219 -0
- package/dist/choices/vue.d.ts +1 -0
- package/dist/choices/vue.js +2 -0
- package/dist/choices.d.ts +1 -0
- package/dist/choices.js +2 -0
- package/dist/cli-config-UAGTmuFa.js +2 -0
- package/dist/cli-config-wxKjF2Y0.js +90 -0
- package/dist/cloudflare-env-lookup-DKXdr4P_.js +16 -0
- package/dist/cloudflare-prerender.mjs +3 -0
- package/dist/cloudflare-workers.d.ts +12 -0
- package/dist/cms/access.d.ts +1 -0
- package/dist/cms/access.js +2 -0
- package/dist/cms/vite.d.ts +1 -0
- package/dist/cms/vite.js +2 -0
- package/dist/cms.d.ts +3 -0
- package/dist/cms.js +3 -0
- package/dist/comments/testing.d.ts +1 -0
- package/dist/comments/testing.js +2 -0
- package/dist/connections/operations.d.ts +1 -0
- package/dist/connections/operations.js +2 -0
- package/dist/console/auth-types.d.ts +2 -0
- package/dist/console/auth-types.js +1 -0
- package/dist/console/auth.d.ts +6 -2
- package/dist/console/auth.js +9 -2
- package/dist/console/runtime/auth-operations.d.ts +35 -0
- package/dist/console/runtime/auth-operations.js +2 -0
- package/dist/console/runtime/client/account-views.d.ts +17 -0
- package/dist/console/runtime/client/account-views.js +8 -0
- package/dist/console/runtime/client/account.d.ts +2 -0
- package/dist/console/runtime/client/account.js +1125 -0
- package/dist/console/runtime/client/add-primitive.ts +59 -0
- package/dist/console/runtime/client/app-identity.ts +44 -0
- package/dist/console/runtime/client/auth-management.ts +21 -35
- package/dist/console/runtime/client/blob-media.d.ts +1 -1
- package/dist/console/runtime/client/blob-media.js +4 -4
- package/dist/console/runtime/client/command-search.ts +103 -0
- package/dist/console/runtime/client/comment-thread.d.ts +33 -0
- package/dist/console/runtime/client/comment-thread.js +62 -0
- package/dist/console/runtime/client/content-heads.d.ts +45 -0
- package/dist/console/runtime/client/content-heads.js +58 -0
- package/dist/console/runtime/client/document-cache.ts +13 -0
- package/dist/console/runtime/client/documents.d.ts +3 -430
- package/dist/console/runtime/client/documents.js +2 -501
- package/dist/console/runtime/client/editor.d.ts +9 -8
- package/dist/console/runtime/client/editor.js +35 -14
- package/dist/console/runtime/client/env-status.d.ts +31 -2
- package/dist/console/runtime/client/env-status.js +59 -1
- package/dist/console/runtime/client/format.d.ts +59 -0
- package/dist/console/runtime/client/format.js +2 -109
- package/dist/console/runtime/client/format.ts +267 -0
- package/dist/console/runtime/client/highlight-languages.ts +27 -0
- package/dist/console/runtime/client/invocation.js +4 -4
- package/dist/console/runtime/client/live.d.ts +3 -5
- package/dist/console/runtime/client/live.js +1 -8
- package/dist/console/runtime/client/mcp-client.d.ts +58 -0
- package/dist/console/runtime/client/mcp-client.js +125 -0
- package/dist/console/runtime/client/media-library.d.ts +2 -207
- package/dist/console/runtime/client/media-library.js +2 -243
- package/dist/console/runtime/client/media-uploads.d.ts +1 -1
- package/dist/console/runtime/client/media-uploads.js +1 -1
- package/dist/console/runtime/client/media.d.ts +2 -73
- package/dist/console/runtime/client/operation-view.d.ts +31 -4
- package/dist/console/runtime/client/operation-view.js +85 -9
- package/dist/console/runtime/client/presence.d.ts +1 -5
- package/dist/console/runtime/client/presence.js +1 -15
- package/dist/console/runtime/client/preview.d.ts +8 -0
- package/dist/console/runtime/client/preview.js +11 -1
- package/dist/console/runtime/client/problem.d.ts +1 -1
- package/dist/console/runtime/client/problem.js +3 -3
- package/dist/console/runtime/client/project-link.d.ts +2 -0
- package/dist/console/runtime/client/project-link.js +2 -0
- package/dist/console/runtime/client/project-session.d.ts +221 -0
- package/dist/console/runtime/client/project-session.js +723 -0
- package/dist/console/runtime/client/project.d.ts +48 -0
- package/dist/console/runtime/client/project.js +2 -0
- package/dist/console/runtime/client/projects.d.ts +2 -0
- package/dist/console/runtime/client/projects.js +2 -0
- package/dist/console/runtime/client/publish.d.ts +1 -1
- package/dist/console/runtime/client/rate-limit.js +2 -2
- package/dist/console/runtime/client/read-only.d.ts +1 -1
- package/dist/console/runtime/client/read-only.js +1 -1
- package/dist/console/runtime/client/request.d.ts +6 -12
- package/dist/console/runtime/client/request.js +2 -471
- package/dist/console/runtime/client/route-query.d.ts +60 -0
- package/dist/console/runtime/client/route-query.js +2 -0
- package/dist/console/runtime/client/schedule-run.js +2 -2
- package/dist/console/runtime/client/sections.d.ts +2 -26
- package/dist/console/runtime/client/sections.js +2 -84
- package/dist/console/runtime/client/sidebar.ts +84 -0
- package/dist/console/runtime/client/site-access.d.ts +32 -0
- package/dist/console/runtime/client/site-access.js +932 -0
- package/dist/console/runtime/client/stored.d.ts +33 -0
- package/dist/console/runtime/client/stored.js +2 -0
- package/dist/console/runtime/client/ticket.d.ts +2 -0
- package/dist/console/runtime/client/ticket.js +2 -0
- package/dist/console/runtime/client/workflow.js +3 -3
- package/dist/console/runtime/components/console-account-api-keys.vue +195 -0
- package/dist/console/runtime/components/console-account-env.vue +286 -0
- package/dist/console/runtime/components/console-account-home.vue +427 -0
- package/dist/console/runtime/components/console-account-link.vue +68 -0
- package/dist/console/runtime/components/console-account-menu.vue +126 -0
- package/dist/console/runtime/components/console-account-rename.vue +67 -0
- package/dist/console/runtime/components/console-account-settings.vue +184 -0
- package/dist/console/runtime/components/console-account-setup.vue +82 -0
- package/dist/console/runtime/components/console-account-shell.vue +339 -0
- package/dist/console/runtime/components/console-account-sign-in.vue +152 -0
- package/dist/console/runtime/components/console-account-snippet.vue +89 -0
- package/dist/console/runtime/components/console-account-team-settings.vue +131 -0
- package/dist/console/runtime/components/console-account-team.vue +199 -0
- package/dist/console/runtime/components/console-account-unlink.vue +52 -0
- package/dist/console/runtime/components/console-activity-feed.vue +69 -0
- package/dist/console/runtime/components/console-add-primitive.vue +176 -0
- package/dist/console/runtime/components/console-agent-session.vue +301 -0
- package/dist/console/runtime/components/console-app-crumb.vue +52 -0
- package/dist/console/runtime/components/console-app-logo.vue +44 -0
- package/dist/console/runtime/components/console-app-settings.vue +271 -0
- package/dist/console/runtime/components/console-app.vue +255 -335
- package/dist/console/runtime/components/console-auth-action.vue +15 -13
- package/dist/console/runtime/components/console-auth-activity.vue +20 -24
- package/dist/console/runtime/components/console-auth-chart.vue +24 -21
- package/dist/console/runtime/components/console-auth-detail.vue +101 -128
- package/dist/console/runtime/components/console-auth-event-list.vue +2 -2
- package/dist/console/runtime/components/console-auth-event-setup.vue +4 -4
- package/dist/console/runtime/components/console-auth-overview.vue +21 -33
- package/dist/console/runtime/components/console-auth-user-events.vue +12 -15
- package/dist/console/runtime/components/console-auth.vue +118 -116
- package/dist/console/runtime/components/console-blob-detail.vue +16 -26
- package/dist/console/runtime/components/console-blob.vue +89 -34
- package/dist/console/runtime/components/console-cache.vue +358 -0
- package/dist/console/runtime/components/console-code-text.vue +18 -0
- package/dist/console/runtime/components/console-comark-component.vue +54 -16
- package/dist/console/runtime/components/console-comment-thread.vue +320 -0
- package/dist/console/runtime/components/console-confirm.vue +46 -0
- package/dist/console/runtime/components/console-connection-state.vue +23 -26
- package/dist/console/runtime/components/console-content-heads.vue +72 -0
- package/dist/console/runtime/components/console-database.vue +77 -80
- package/dist/console/runtime/components/console-definitions.vue +163 -44
- package/dist/console/runtime/components/console-document-dashboard.vue +124 -135
- package/dist/console/runtime/components/console-document-diff.vue +2 -2
- package/dist/console/runtime/components/console-document-editor.vue +404 -203
- package/dist/console/runtime/components/console-document-history.vue +17 -17
- package/dist/console/runtime/components/console-document-list.vue +51 -53
- package/dist/console/runtime/components/console-document-preview.vue +44 -57
- package/dist/console/runtime/components/console-document-settings.vue +24 -26
- package/dist/console/runtime/components/console-documents.vue +105 -40
- package/dist/console/runtime/components/console-env-details.vue +8 -27
- package/dist/console/runtime/components/console-env.vue +109 -88
- package/dist/console/runtime/components/console-facts.ts +13 -0
- package/dist/console/runtime/components/console-frame.vue +26 -68
- package/dist/console/runtime/components/console-home.vue +145 -121
- package/dist/console/runtime/components/console-icon.vue +19 -0
- package/dist/console/runtime/components/console-invocation-composer.vue +4 -8
- package/dist/console/runtime/components/console-kv.vue +41 -47
- package/dist/console/runtime/components/console-lazy-views.ts +2 -0
- package/dist/console/runtime/components/console-loading.vue +5 -4
- package/dist/console/runtime/components/console-markdown-editor.vue +78 -99
- package/dist/console/runtime/components/console-mcp-callback.vue +76 -0
- package/dist/console/runtime/components/console-mcp-client.vue +255 -0
- package/dist/console/runtime/components/console-mcp-connect.vue +162 -0
- package/dist/console/runtime/components/console-mcp-connection.vue +219 -0
- package/dist/console/runtime/components/console-mcp-content.vue +157 -0
- package/dist/console/runtime/components/console-mcp-items.vue +346 -0
- package/dist/console/runtime/components/console-media-browser.vue +108 -138
- package/dist/console/runtime/components/console-media-crops.vue +13 -12
- package/dist/console/runtime/components/console-media-detail.vue +35 -39
- package/dist/console/runtime/components/console-media-dialog.vue +3 -3
- package/dist/console/runtime/components/console-media-field.vue +12 -36
- package/dist/console/runtime/components/console-media-focal.vue +15 -14
- package/dist/console/runtime/components/console-media-library.vue +29 -22
- package/dist/console/runtime/components/console-media-move.vue +9 -8
- package/dist/console/runtime/components/console-media-picker.vue +35 -6
- package/dist/console/runtime/components/console-media-uploads.vue +7 -4
- package/dist/console/runtime/components/console-operation-view.vue +258 -45
- package/dist/console/runtime/components/console-page-changes.vue +207 -0
- package/dist/console/runtime/components/console-page-header.vue +39 -7
- package/dist/console/runtime/components/console-page-toolbar.vue +16 -3
- package/dist/console/runtime/components/console-presence-avatars.vue +4 -3
- package/dist/console/runtime/components/console-project-switcher.vue +212 -0
- package/dist/console/runtime/components/console-property-list.vue +16 -11
- package/dist/console/runtime/components/console-property-row.vue +2 -1
- package/dist/console/runtime/components/console-rail.vue +122 -277
- package/dist/console/runtime/components/console-rate-limit.vue +32 -24
- package/dist/console/runtime/components/console-relative-time.vue +1 -1
- package/dist/console/runtime/components/console-schema-date-input.vue +88 -0
- package/dist/console/runtime/components/console-schema-field.vue +35 -89
- package/dist/console/runtime/components/console-schema-form.vue +6 -7
- package/dist/console/runtime/components/console-schema-list.vue +8 -9
- package/dist/console/runtime/components/console-search-palette.vue +1051 -0
- package/dist/console/runtime/components/console-search.vue +17 -840
- package/dist/console/runtime/components/console-section-icon.vue +7 -10
- package/dist/console/runtime/components/console-section.vue +68 -0
- package/dist/console/runtime/components/console-seo-panel.vue +16 -16
- package/dist/console/runtime/components/console-session-actions.vue +1 -3
- package/dist/console/runtime/components/console-session-bootstrap.ts +0 -28
- package/dist/console/runtime/components/console-session-cancel.vue +0 -1
- package/dist/console/runtime/components/console-session-code-preview.vue +10 -26
- package/dist/console/runtime/components/console-session-copy-link.vue +11 -0
- package/dist/console/runtime/components/console-session-inspector.vue +212 -92
- package/dist/console/runtime/components/console-session-loading.vue +12 -15
- package/dist/console/runtime/components/console-session-navbar.vue +9 -39
- package/dist/console/runtime/components/console-session-trace.vue +25 -77
- package/dist/console/runtime/components/console-session.css +208 -851
- package/dist/console/runtime/components/console-settings-card.vue +76 -0
- package/dist/console/runtime/components/console-settings-value.vue +46 -0
- package/dist/console/runtime/components/console-settings.vue +100 -0
- package/dist/console/runtime/components/console-setup-hint.vue +3 -8
- package/dist/console/runtime/components/console-sidebar-item.vue +62 -0
- package/dist/console/runtime/components/console-sidebar-trigger.vue +34 -0
- package/dist/console/runtime/components/console-sidebar.vue +352 -0
- package/dist/console/runtime/components/console-site.vue +370 -0
- package/dist/console/runtime/components/console-skill-file.vue +73 -0
- package/dist/console/runtime/components/console-skill-tree.vue +62 -0
- package/dist/console/runtime/components/console-skills.vue +193 -0
- package/dist/console/runtime/components/console-stat-grid.vue +64 -0
- package/dist/console/runtime/components/console-state.vue +60 -75
- package/dist/console/runtime/components/console-toaster.vue +63 -54
- package/dist/console/runtime/components/console-usage-chart.vue +14 -12
- package/dist/console/runtime/components/console-usage-model-detail.vue +12 -18
- package/dist/console/runtime/components/console-usage-model.ts +20 -12
- package/dist/console/runtime/components/console-usage-share-bar.vue +5 -5
- package/dist/console/runtime/components/console-usage.vue +547 -252
- package/dist/console/runtime/components/console-user-menu.vue +42 -0
- package/dist/console/runtime/components/console-value.vue +5 -4
- package/dist/console/runtime/components/console-workflow-actions.vue +32 -41
- package/dist/console/runtime/components/console-workspace-browser.vue +507 -0
- package/dist/console/runtime/components/console-workspace-history.vue +23 -24
- package/dist/console/runtime/components/invocation/agent-capability-inspector.ts +13 -14
- package/dist/console/runtime/components/invocation/agent-invocation-list.ts +22 -38
- package/dist/console/runtime/components/invocation/agent-invocation-timeline.ts +4 -12
- package/dist/console/runtime/components/invocation/agent-invocation.ts +229 -193
- package/dist/console/runtime/components/invocation/internal/input-attachments.ts +69 -0
- package/dist/console/runtime/components/invocation/internal/invocation-activity.ts +192 -55
- package/dist/console/runtime/components/invocation/internal/invocation-brand.ts +25 -0
- package/dist/console/runtime/components/invocation/internal/invocation-conversation.ts +20 -7
- package/dist/console/runtime/components/invocation/internal/invocation-page-changes.ts +64 -0
- package/dist/console/runtime/components/invocation/internal/payload-text.ts +3 -5
- package/dist/console/runtime/components/invocation/invocation.css +485 -428
- package/dist/console/runtime/components/invocation/types.ts +9 -1
- package/dist/console/runtime/console-route.js +1 -48
- package/dist/console/runtime/definitions.d.ts +2 -2
- package/dist/console/runtime/definitions.js +1 -293
- package/dist/console/runtime/diagnostics.ts +287 -0
- package/dist/console/runtime/mcp-client.d.ts +2 -0
- package/dist/console/runtime/mcp-client.js +2 -0
- package/dist/console/runtime/page/loader.js +138 -18
- package/dist/console/runtime/page-tool/page-tool.js +10 -0
- package/dist/console/runtime/public/skills/index.json +1 -0
- package/dist/console/runtime/public/skills/vitehub/SKILL.md +50 -39
- package/dist/console/runtime/public/skills/vitehub/references/agent-definitions.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/bundle.md +57 -0
- package/dist/console/runtime/public/skills/vitehub/references/capabilities-authority.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/channels-triggers.md +4 -3
- package/dist/console/runtime/public/skills/vitehub/references/framework-composition.md +2 -2
- package/dist/console/runtime/public/skills/vitehub/references/preview-contract.md +11 -3
- package/dist/console/runtime/public/skills/vitehub/references/primitives/auth.md +1 -3
- package/dist/console/runtime/public/skills/vitehub/references/primitives/blob.md +3 -3
- package/dist/console/runtime/public/skills/vitehub/references/primitives/browser.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/primitives/cache.md +2 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/channels.md +3 -5
- package/dist/console/runtime/public/skills/vitehub/references/primitives/connections.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/content.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/primitives/database.md +4 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/email.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/env.md +2 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/kv.md +2 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/markdown-template.md +3 -3
- package/dist/console/runtime/public/skills/vitehub/references/primitives/queue.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/rate-limit.md +1 -3
- package/dist/console/runtime/public/skills/vitehub/references/primitives/realtime.md +4 -4
- package/dist/console/runtime/public/skills/vitehub/references/primitives/sandbox-task.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/schedule.md +1 -3
- package/dist/console/runtime/public/skills/vitehub/references/primitives/shell.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/source.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/workflow.md +0 -2
- package/dist/console/runtime/public/skills/vitehub/references/primitives/workspace.md +1 -3
- package/dist/console/runtime/public/skills/vitehub/references/project-shapes.md +20 -0
- package/dist/console/runtime/public/skills/vitehub/references/proof-recovery.md +2 -0
- package/dist/console/runtime/public/skills/vitehub/references/sandboxes-hosts.md +10 -1
- package/dist/console/runtime/public/skills/vitehub/references/schedules-workflows-invocations.md +1 -1
- package/dist/console/runtime/public/skills/vitehub/references/server-primitives.md +1 -1
- package/dist/console/runtime/rpc.d.ts +2 -36
- package/dist/console/runtime/rpc.js +1 -3
- package/dist/console/runtime/sections.d.ts +2 -2
- package/dist/console/runtime/sections.js +2 -351
- package/dist/console/runtime/server/access-policy.d.ts +2 -0
- package/dist/console/runtime/server/access-policy.js +2 -0
- package/dist/console/runtime/server/agents.get.d.ts +4 -7
- package/dist/console/runtime/server/agents.get.js +6 -9
- package/dist/console/runtime/server/auth.d.ts +2 -0
- package/dist/console/runtime/server/auth.js +81 -0
- package/dist/console/runtime/server/blob.d.ts +2 -2
- package/dist/console/runtime/server/blob.js +2 -19
- package/dist/console/runtime/server/channel-replay.d.ts +20 -8
- package/dist/console/runtime/server/channel-replay.js +27 -55
- package/dist/console/runtime/server/database.d.ts +1 -1
- package/dist/console/runtime/server/database.get.d.ts +19 -10
- package/dist/console/runtime/server/database.get.js +40 -34
- package/dist/console/runtime/server/database.js +1 -17
- package/dist/console/runtime/server/definitions.d.ts +1 -1
- package/dist/console/runtime/server/definitions.get.d.ts +8 -8
- package/dist/console/runtime/server/definitions.get.js +37 -23
- package/dist/console/runtime/server/definitions.js +1 -96
- package/dist/console/runtime/server/development.d.ts +2 -0
- package/dist/console/runtime/server/development.js +2 -0
- package/dist/console/runtime/server/documents.d.ts +2 -2
- package/dist/console/runtime/server/documents.js +3 -111
- package/dist/console/runtime/server/env.d.ts +3 -15
- package/dist/console/runtime/server/env.get.d.ts +5 -5
- package/dist/console/runtime/server/env.get.js +9 -22
- package/dist/console/runtime/server/env.js +2 -42
- package/dist/console/runtime/server/invocation-capabilities.get.d.ts +5 -6
- package/dist/console/runtime/server/invocation-capabilities.get.js +8 -13
- package/dist/console/runtime/server/invocation-workspace.get.d.ts +3 -37
- package/dist/console/runtime/server/invocation-workspace.get.js +35 -201
- package/dist/console/runtime/server/invocation.get.d.ts +2 -2
- package/dist/console/runtime/server/invocation.get.js +35 -27
- package/dist/console/runtime/server/invocations.get.d.ts +12 -6
- package/dist/console/runtime/server/invocations.get.js +45 -60
- package/dist/console/runtime/server/logs.get.d.ts +8 -5
- package/dist/console/runtime/server/logs.get.js +25 -14
- package/dist/console/runtime/server/mcp-client-operations.d.ts +5 -0
- package/dist/console/runtime/server/mcp-client-operations.js +139 -0
- package/dist/console/runtime/server/operation-contributions.d.ts +2 -0
- package/dist/console/runtime/server/operation-contributions.js +2 -0
- package/dist/console/runtime/server/page-auth.d.ts +18 -0
- package/dist/console/runtime/server/page-auth.js +44 -0
- package/dist/console/runtime/server/page-session.d.ts +1 -1
- package/dist/console/runtime/server/page-session.js +1 -1
- package/dist/console/runtime/server/page-tool.d.ts +2 -0
- package/dist/console/runtime/server/page-tool.js +105 -0
- package/dist/console/runtime/server/rpc.d.ts +16 -11
- package/dist/console/runtime/server/rpc.js +120 -113
- package/dist/console/runtime/server/runtime.d.ts +2 -0
- package/dist/console/runtime/server/runtime.js +2 -0
- package/dist/console/runtime/server/search.get.d.ts +1 -6
- package/dist/console/runtime/server/search.get.js +3 -9
- package/dist/console/runtime/server/sections.d.ts +6 -4
- package/dist/console/runtime/server/sections.get.d.ts +2 -22
- package/dist/console/runtime/server/sections.get.js +37 -13
- package/dist/console/runtime/server/sections.js +7 -4
- package/dist/console/runtime/server/setup.d.ts +5 -0
- package/dist/console/runtime/server/setup.js +5 -0
- package/dist/console/runtime/server/site-entry.d.ts +24 -0
- package/dist/console/runtime/server/site-entry.js +145 -0
- package/dist/console/runtime/server/site-session.d.ts +89 -0
- package/dist/console/runtime/server/site-session.js +2 -0
- package/dist/console/runtime/server/status.get.d.ts +7 -4
- package/dist/console/runtime/server/status.get.js +12 -22
- package/dist/console/runtime/server/tickets.d.ts +2 -0
- package/dist/console/runtime/server/tickets.js +2 -0
- package/dist/console/runtime/server/usage.get.d.ts +7 -4
- package/dist/console/runtime/server/usage.get.js +16 -23
- package/dist/console/runtime/server/workspace-files.get.d.ts +12 -0
- package/dist/console/runtime/server/workspace-files.get.js +55 -0
- package/dist/console/runtime/site-access.d.ts +2 -0
- package/dist/console/runtime/site-access.js +2 -0
- package/dist/console/runtime/skills.d.ts +18 -0
- package/dist/console/runtime/skills.js +17 -0
- package/dist/console/server.d.ts +20 -9
- package/dist/console/server.js +9 -34
- package/dist/console/ui.d.ts +16 -0
- package/dist/console/ui.js +487 -368
- package/dist/console-lazy-views-DXnIkdyd.js +2 -0
- package/dist/console-route-CBuqZ4wO.js +49 -0
- package/dist/console.d.ts +1 -1
- package/dist/content/collections.d.ts +1 -0
- package/dist/content/collections.js +2 -0
- package/dist/content/markdown.d.ts +1 -0
- package/dist/content/markdown.js +2 -0
- package/dist/content/preview.d.ts +1 -0
- package/dist/content/preview.js +2 -0
- package/dist/content/sqlite.d.ts +1 -0
- package/dist/content/sqlite.js +2 -0
- package/dist/content.d.ts +1 -2
- package/dist/content.js +0 -1
- package/dist/database-BdOBjPkS.js +17 -0
- package/dist/database-DyPVMjp_.d.ts +6 -0
- package/dist/definitions-BW6SvmMM.js +337 -0
- package/dist/definitions-CNq_Shkh.js +98 -0
- package/dist/definitions-DB4LbZ7T.d.ts +245 -0
- package/dist/definitions-Dbgxfz3I.d.ts +19 -0
- package/dist/dev-peer-am78OsHH.js +472 -0
- package/dist/development-W5EwONyL.d.ts +12 -0
- package/dist/development-zLxOp-AO.js +28 -0
- package/dist/device/vue.d.ts +1 -0
- package/dist/device/vue.js +2 -0
- package/dist/device.d.ts +1 -0
- package/dist/device.js +2 -0
- package/dist/diagnostics-9U_fYxMy.js +79 -0
- package/dist/diagnostics-CjGiniKb.d.ts +11 -0
- package/dist/docs/assistant.d.ts +1 -0
- package/dist/docs/assistant.js +2 -0
- package/dist/docs/nuxt.d.ts +3 -0
- package/dist/docs/nuxt.js +3 -0
- package/dist/docs/server.d.ts +1 -0
- package/dist/docs/server.js +2 -0
- package/dist/docs.d.ts +1 -0
- package/dist/docs.js +2 -0
- package/dist/doctor.d.ts +7 -2
- package/dist/doctor.js +2956 -296
- package/dist/documents-BASIRZ91.d.ts +474 -0
- package/dist/documents-CboVhYFz.d.ts +87 -0
- package/dist/documents-CjJTCrY8.js +136 -0
- package/dist/documents-qrHHqlNU.js +547 -0
- package/dist/durability/operations.d.ts +5 -0
- package/dist/durability/operations.js +28 -0
- package/dist/email/test.d.ts +1 -0
- package/dist/email/test.js +2 -0
- package/dist/entries-Bj-jPs_J.js +142 -0
- package/dist/env-Dg1I_DWr.js +11 -0
- package/dist/error-diagnostics-Bm3JKYjz.js +638 -0
- package/dist/error-diagnostics.ts +636 -151
- package/dist/forge.d.ts +1 -0
- package/dist/forge.js +2 -0
- package/dist/format-BOYlanIZ.js +304 -0
- package/dist/forms/client.d.ts +1 -0
- package/dist/forms/client.js +2 -0
- package/dist/forms/database.d.ts +1 -0
- package/dist/forms/database.js +2 -0
- package/dist/forms/formisch.d.ts +1 -0
- package/dist/forms/formisch.js +2 -0
- package/dist/forms/operations.d.ts +1 -0
- package/dist/forms/operations.js +2 -0
- package/dist/forms/runtime.d.ts +1 -0
- package/dist/forms/runtime.js +2 -0
- package/dist/forms/vue.d.ts +1 -0
- package/dist/forms/vue.js +2 -0
- package/dist/forms.d.ts +1 -0
- package/dist/forms.js +2 -0
- package/dist/gateways/ai-sdk.d.ts +1 -0
- package/dist/gateways/ai-sdk.js +2 -0
- package/dist/host-CkL0jjBq.js +11 -0
- package/dist/http-error-Bs6e8_-8.js +30 -0
- package/dist/i18n/runtime.d.ts +1 -0
- package/dist/i18n/runtime.js +2 -0
- package/dist/i18n/server.d.ts +1 -0
- package/dist/i18n/server.js +2 -0
- package/dist/i18n/vue.d.ts +1 -0
- package/dist/i18n/vue.js +2 -0
- package/dist/i18n.d.ts +1 -0
- package/dist/i18n.js +2 -0
- package/dist/index.d.ts +20 -3
- package/dist/index.js +43 -2
- package/dist/inspect-CDw7e0vK.js +127 -0
- package/dist/internal/agent-invocations-libsql.d.ts +2 -0
- package/dist/internal/agent-invocations-libsql.js +2 -0
- package/dist/internal/disabled-redis-driver.d.ts +3 -0
- package/dist/internal/disabled-redis-driver.js +7 -0
- package/dist/internal/disabled-upstash-driver.d.ts +3 -0
- package/dist/internal/disabled-upstash-driver.js +7 -0
- package/dist/internal/test-loader.d.ts +8 -0
- package/dist/internal/test-loader.js +75 -0
- package/dist/internal/test-server.d.ts +1 -0
- package/dist/internal/test-server.js +84 -0
- package/dist/internal-BreyUsQ6.js +31 -0
- package/dist/internal-CO4OqqaS.d.ts +59 -0
- package/dist/invariant-DolT9EEx.js +22 -0
- package/dist/invocation-page-undo-DIZ-s3xT.js +54 -0
- package/dist/invocations-CK_-G540.js +86 -0
- package/dist/limits-BUlwWYQE.js +34 -0
- package/dist/logs/host.d.ts +1 -1
- package/dist/logs/host.js +1 -15
- package/dist/logs/memory.d.ts +2 -18
- package/dist/logs/memory.js +1 -84
- package/dist/logs/source.d.ts +2 -57
- package/dist/logs/source.js +2 -57
- package/dist/logs.d.ts +3 -4
- package/dist/logs.js +3 -4
- package/dist/mcp-client-By4zk0vU.js +1024 -0
- package/dist/mcp-client-CTbTbn7d.js +10 -0
- package/dist/mcp-client-C_sEmyQw.d.ts +118 -0
- package/dist/mcp.d.ts +1 -0
- package/dist/mcp.js +2 -0
- package/dist/media-BHpQ-4jw.js +478 -0
- package/dist/media-library-D9ThbXqs.d.ts +212 -0
- package/dist/media-library-NaOMBKWS.js +279 -0
- package/dist/media-uKX4Wy-c.d.ts +74 -0
- package/dist/memory-2bbl4hcV.d.ts +19 -0
- package/dist/memory-DTmq-Z6x.js +86 -0
- package/dist/nuxt-server-imports-DH60Z7LA.js +98 -0
- package/dist/nuxt.d.ts +10 -5
- package/dist/nuxt.js +751 -583
- package/dist/object-D8pRdprI.js +15 -0
- package/dist/operation-contributions-BdS0z3tx.js +50 -0
- package/dist/operation-contributions-DpkO_iSU.d.ts +21 -0
- package/dist/operation-definition-a5keEpCd.js +435 -0
- package/dist/operation-registry-BogGwk_I.js +22 -0
- package/dist/operation-rpc-DI9txNxK.js +158 -0
- package/dist/operations-B0689BG1.d.ts +158 -0
- package/dist/operations-CAQmIxGK.js +2 -0
- package/dist/operations-CWP9dF3i.js +863 -0
- package/dist/operations-EOdyctDc.js +235 -0
- package/dist/operations.d.ts +1 -2
- package/dist/operations.js +2 -2
- package/dist/optional-owners-BNA2OX6z.js +903 -0
- package/dist/page/pill.iife.js +70 -0
- package/dist/page-tool-CRCK1RHV.d.ts +68 -0
- package/dist/page-tools-BkSSBFoi.js +444 -0
- package/dist/page-tools-shared-D3fFoEV2.js +122 -0
- package/dist/page-tools-sw4I-Nqx.d.ts +23 -0
- package/dist/plugins-B-DpgDPB.js +12070 -0
- package/dist/plugins-BqAtIEX2.d.ts +2143 -0
- package/dist/presets/workspace.d.ts +1 -0
- package/dist/presets/workspace.js +1 -0
- package/dist/project-C4N_Zcjl.js +30 -0
- package/dist/project-CufkVP1u.d.ts +26 -0
- package/dist/project-DlWTGB7h.js +57 -0
- package/dist/project-link-BuOzBH9f.d.ts +94 -0
- package/dist/project-link-D-6UefhA.js +149 -0
- package/dist/project-root-v6ba4tn7.js +12 -0
- package/dist/projects-CAcXztf4.js +154 -0
- package/dist/projects-Ddvl9EJp.d.ts +66 -0
- package/dist/rate-limit/drivers/cloudflare.d.ts +1 -0
- package/dist/rate-limit/drivers/cloudflare.js +2 -0
- package/dist/rate-limit/drivers/kv.d.ts +1 -0
- package/dist/rate-limit/drivers/kv.js +2 -0
- package/dist/rate-limit/drivers/memory.d.ts +1 -0
- package/dist/rate-limit/drivers/memory.js +2 -0
- package/dist/realtime/agent.d.ts +1 -0
- package/dist/realtime/agent.js +2 -0
- package/dist/realtime/bus.d.ts +1 -0
- package/dist/realtime/bus.js +2 -0
- package/dist/realtime/client.d.ts +1 -0
- package/dist/realtime/client.js +2 -0
- package/dist/registry-CDKLACCZ.js +16 -0
- package/dist/registry-zw6aE2N9.js +18 -0
- package/dist/request-D7h3SQ92.d.ts +21 -0
- package/dist/request-DE8w_cSM.js +473 -0
- package/dist/request-DbFfYmCu.js +162 -0
- package/dist/request-origin-Bq7mDQG9.js +23 -0
- package/dist/route-query-CRVWXIrc.js +222 -0
- package/dist/rpc-7nlHSv3y.d.ts +37 -0
- package/dist/rpc-DIUA61pv.js +4 -0
- package/dist/runtime/durability.d.ts +1 -0
- package/dist/runtime/durability.js +2 -0
- package/dist/runtime-B_btezs1.d.ts +7 -0
- package/dist/runtime-DQuHg7OO.js +10 -0
- package/dist/runtime-DxfJOfCd.js +25 -0
- package/dist/runtime-OsEDfbM9.js +55 -0
- package/dist/runtime-YLWfdrtO.js +65 -0
- package/dist/runtime-feature-guard-B64MMW9I.js +140 -0
- package/dist/scan-module-D_3X08mj.js +2 -0
- package/dist/scan-module-Df58L_6T.js +311 -0
- package/dist/schedule/os.d.ts +1 -0
- package/dist/schedule/os.js +2 -0
- package/dist/secret-Dy5uqvq9.js +44 -0
- package/dist/sections-BogiCmtz.d.ts +57 -0
- package/dist/sections-C83x0slv.js +13 -0
- package/dist/sections-CyrXbbkG.d.ts +10 -0
- package/dist/sections-Do7X4Nwt.d.ts +158 -0
- package/dist/sections-DumoLKQN.js +368 -0
- package/dist/sections-et20h8w3.js +122 -0
- package/dist/sections.get-COiLcQ0P.d.ts +20 -0
- package/dist/seo/runtime.d.ts +64 -0
- package/dist/seo/runtime.js +123 -0
- package/dist/seo-CtLywyRx.d.ts +24 -0
- package/dist/seo.d.ts +2 -0
- package/dist/seo.js +17 -0
- package/dist/server-BRJE4t-W.js +18 -0
- package/dist/setup-C-5nB7aY.js +22 -0
- package/dist/setup-ZbA1by7W.d.ts +13 -0
- package/dist/site-access-BbJUe5QI.js +2 -0
- package/dist/site-access-BmE8HGxs.js +292 -0
- package/dist/site-access-BycrwM2v.js +18 -0
- package/dist/site-access-DxfdOel1.d.ts +55 -0
- package/dist/site-session-odJq1dYa.js +272 -0
- package/dist/skills/operations.d.ts +17 -0
- package/dist/skills/operations.js +51 -0
- package/dist/skills-DdpSMiCI.js +500 -0
- package/dist/skills.d.ts +197 -0
- package/dist/skills.get-Bl8cBe8u.js +48 -0
- package/dist/skills.js +2 -0
- package/dist/source/drizzle.d.ts +1 -0
- package/dist/source/drizzle.js +2 -0
- package/dist/source/vite.d.ts +1 -7
- package/dist/source/vite.js +2 -20
- package/dist/source-D4wWtoHh.js +60 -0
- package/dist/source-S-LChQvw.d.ts +59 -0
- package/dist/source.d.ts +1 -2
- package/dist/source.js +0 -1
- package/dist/stored-Dhv2qsQv.js +40 -0
- package/dist/sync/client.d.ts +1 -0
- package/dist/sync/client.js +2 -0
- package/dist/sync/database.d.ts +1 -0
- package/dist/sync/database.js +2 -0
- package/dist/sync/operations.d.ts +1 -0
- package/dist/sync/operations.js +2 -0
- package/dist/sync/runtime.d.ts +1 -0
- package/dist/sync/runtime.js +2 -0
- package/dist/sync/vue.d.ts +1 -0
- package/dist/sync/vue.js +2 -0
- package/dist/sync.d.ts +1 -0
- package/dist/sync.js +2 -0
- package/dist/task/operations.d.ts +22 -0
- package/dist/task/operations.js +36 -0
- package/dist/test/register.d.ts +1 -0
- package/dist/test/register.js +68 -0
- package/dist/test.d.ts +175 -0
- package/dist/test.js +49 -0
- package/dist/ticket-Cudn1dq3.js +31 -0
- package/dist/ticket-Pr_8ZtXW.d.ts +14 -0
- package/dist/tickets-C_0Fhc00.js +358 -0
- package/dist/ui/markdown-editor.d.ts +1 -0
- package/dist/ui/markdown-editor.js +2 -0
- package/dist/ui/playground.d.ts +1 -0
- package/dist/ui/playground.js +2 -0
- package/dist/ui/styles.css +2 -2662
- package/dist/ui/theme.css +2 -0
- package/dist/ui/theme.d.ts +1 -0
- package/dist/ui/theme.js +2 -0
- package/dist/ui/workspace.d.ts +1 -0
- package/dist/ui/workspace.js +2 -0
- package/dist/usage-B4taNt4a.js +569 -0
- package/dist/usage-index-BsGAFzyq.js +335 -0
- package/dist/version-DNmSsk5r.js +1083 -0
- package/dist/vite-stage-mmtwQIMA.js +66 -0
- package/dist/vue-router-C68IU1jM.d.ts +1914 -0
- package/dist/web-container/connect.d.ts +1 -0
- package/dist/web-container/connect.js +2 -0
- package/dist/web-container/env.d.ts +1 -0
- package/dist/web-container/env.js +2 -0
- package/dist/web-container/snapshot.d.ts +1 -0
- package/dist/web-container/snapshot.js +2 -0
- package/dist/web-container.d.ts +1 -0
- package/dist/web-container.js +2 -0
- package/dist/webhooks/database.d.ts +1 -0
- package/dist/webhooks/database.js +2 -0
- package/dist/webhooks/operations.d.ts +1 -0
- package/dist/webhooks/operations.js +2 -0
- package/dist/webhooks/runtime.d.ts +1 -0
- package/dist/webhooks/runtime.js +2 -0
- package/dist/webhooks.d.ts +1 -0
- package/dist/webhooks.js +2 -0
- package/dist/workflow/openworkflow.d.ts +1 -0
- package/dist/workflow/openworkflow.js +2 -0
- package/dist/workspace/checkout.d.ts +1 -0
- package/dist/workspace/checkout.js +2 -0
- package/dist/workspace/files.d.ts +1 -0
- package/dist/workspace/files.js +2 -0
- package/dist/workspace/lineage.d.ts +1 -0
- package/dist/workspace/lineage.js +2 -0
- package/dist/workspace-history-CeVwBB6Q.d.ts +52 -0
- package/dist/workspace-history-CraoERnc.js +248 -0
- package/package.json +690 -706
- package/dist/_internal/agent/cloudflare/state.d.ts +0 -1
- package/dist/_internal/agent/cloudflare/state.js +0 -2
- package/dist/_internal/agent/cloudflare.d.ts +0 -1
- package/dist/_internal/agent/cloudflare.js +0 -2
- package/dist/_internal/agent/eve.d.ts +0 -1
- package/dist/_internal/agent/eve.js +0 -2
- package/dist/_internal/agent/invocations.d.ts +0 -2
- package/dist/_internal/agent/invocations.js +0 -88
- package/dist/_internal/agent/operations.d.ts +0 -1
- package/dist/_internal/agent/operations.js +0 -2
- package/dist/_internal/agent/runtime/invocations-dev.d.ts +0 -1
- package/dist/_internal/agent/runtime/invocations-dev.js +0 -2
- package/dist/_internal/agent/runtime/process.d.ts +0 -1
- package/dist/_internal/agent/runtime/process.js +0 -2
- package/dist/_internal/agent/runtime/workflow.d.ts +0 -1
- package/dist/_internal/agent/runtime/workflow.js +0 -2
- package/dist/_internal/agent/server/internal.d.ts +0 -1
- package/dist/_internal/agent/server/internal.js +0 -2
- package/dist/_internal/agent/server/registry.d.ts +0 -1
- package/dist/_internal/agent/server/registry.js +0 -2
- package/dist/_internal/agent/server/workspace.d.ts +0 -1
- package/dist/_internal/agent/server/workspace.js +0 -2
- package/dist/_internal/agent/server.d.ts +0 -1
- package/dist/_internal/agent/server.js +0 -2
- package/dist/_internal/agent/state/sqlite.d.ts +0 -1
- package/dist/_internal/agent/state/sqlite.js +0 -2
- package/dist/_internal/agent.d.ts +0 -1
- package/dist/_internal/agent.js +0 -2
- package/dist/_internal/auth/runtime/console.d.ts +0 -1
- package/dist/_internal/auth/runtime/console.js +0 -2
- package/dist/_internal/blob/operations.d.ts +0 -1
- package/dist/_internal/blob/operations.js +0 -2
- package/dist/_internal/blob/runtime/state.d.ts +0 -1
- package/dist/_internal/blob/runtime/state.js +0 -2
- package/dist/_internal/blob.d.ts +0 -1
- package/dist/_internal/blob.js +0 -2
- package/dist/_internal/comments/operations.d.ts +0 -1
- package/dist/_internal/comments/operations.js +0 -2
- package/dist/_internal/comments/runtime/console.d.ts +0 -1
- package/dist/_internal/comments/runtime/console.js +0 -2
- package/dist/_internal/content/operations.d.ts +0 -1
- package/dist/_internal/content/operations.js +0 -2
- package/dist/_internal/content/runtime/console.d.ts +0 -1
- package/dist/_internal/content/runtime/console.js +0 -2
- package/dist/_internal/database/runtime/state.d.ts +0 -5
- package/dist/_internal/database/runtime/state.js +0 -7
- package/dist/_internal/email/operations.d.ts +0 -1
- package/dist/_internal/email/operations.js +0 -2
- package/dist/_internal/email/runtime/console.d.ts +0 -1
- package/dist/_internal/email/runtime/console.js +0 -2
- package/dist/_internal/kv/operations.d.ts +0 -1
- package/dist/_internal/kv/operations.js +0 -2
- package/dist/_internal/kv/runtime/disabled-upstash.d.ts +0 -3
- package/dist/_internal/kv/runtime/disabled-upstash.js +0 -7
- package/dist/_internal/kv.d.ts +0 -1
- package/dist/_internal/kv.js +0 -2
- package/dist/_internal/markdown-template.d.ts +0 -2
- package/dist/_internal/markdown-template.js +0 -2
- package/dist/_internal/queue/operations.d.ts +0 -1
- package/dist/_internal/queue/operations.js +0 -2
- package/dist/_internal/rate-limit/operations.d.ts +0 -1
- package/dist/_internal/rate-limit/operations.js +0 -2
- package/dist/_internal/rate-limit/runtime.d.ts +0 -1
- package/dist/_internal/rate-limit/runtime.js +0 -2
- package/dist/_internal/sandbox/task/runtime/state.d.ts +0 -1
- package/dist/_internal/sandbox/task/runtime/state.js +0 -2
- package/dist/_internal/schedule/operations.d.ts +0 -1
- package/dist/_internal/schedule/operations.js +0 -2
- package/dist/_internal/schedule/runtime/kv.d.ts +0 -1
- package/dist/_internal/schedule/runtime/kv.js +0 -2
- package/dist/_internal/schedule/runtime/process.d.ts +0 -1
- package/dist/_internal/schedule/runtime/process.js +0 -2
- package/dist/_internal/schedule/runtime/static.d.ts +0 -1
- package/dist/_internal/schedule/runtime/static.js +0 -2
- package/dist/_internal/schedule/runtime.d.ts +0 -1
- package/dist/_internal/schedule/runtime.js +0 -2
- package/dist/_internal/schedule.d.ts +0 -1
- package/dist/_internal/schedule.js +0 -2
- package/dist/_internal/task/operations.d.ts +0 -5
- package/dist/_internal/task/operations.js +0 -2
- package/dist/_internal/workflow/operations.d.ts +0 -1
- package/dist/_internal/workflow/operations.js +0 -2
- package/dist/_internal/workflow/runtime/cloudflare-runner.d.ts +0 -1
- package/dist/_internal/workflow/runtime/cloudflare-runner.js +0 -2
- package/dist/_internal/workflow/runtime/cloudflare-vite.d.ts +0 -1
- package/dist/_internal/workflow/runtime/cloudflare-vite.js +0 -2
- package/dist/_internal/workflow/runtime/execute.d.ts +0 -1
- package/dist/_internal/workflow/runtime/execute.js +0 -2
- package/dist/_internal/workflow/runtime/state.d.ts +0 -1
- package/dist/_internal/workflow/runtime/state.js +0 -2
- package/dist/_internal/workflow/runtime/vercel-vite.d.ts +0 -1
- package/dist/_internal/workflow/runtime/vercel-vite.js +0 -2
- package/dist/_internal/workflow.d.ts +0 -1
- package/dist/_internal/workflow.js +0 -2
- package/dist/_internal/workspace/internal/runtime/hosted-vercel-blob.d.ts +0 -1
- package/dist/_internal/workspace/internal/runtime/hosted-vercel-blob.js +0 -2
- package/dist/_internal/workspace/internal/runtime/hosted.d.ts +0 -1
- package/dist/_internal/workspace/internal/runtime/hosted.js +0 -2
- package/dist/_internal/workspace/internal/runtime/state.d.ts +0 -1
- package/dist/_internal/workspace/internal/runtime/state.js +0 -2
- package/dist/_internal/workspace/operations.d.ts +0 -1
- package/dist/_internal/workspace/operations.js +0 -2
- package/dist/_internal/workspace/runtime.d.ts +0 -1
- package/dist/_internal/workspace/runtime.js +0 -2
- package/dist/_internal/workspace.d.ts +0 -1
- package/dist/_internal/workspace.js +0 -2
- package/dist/access-BhTe9yuV.js +0 -516
- package/dist/access-CBqnsYdj.d.ts +0 -130
- package/dist/agent/invocations/d1.d.ts +0 -1
- package/dist/agent/invocations/d1.js +0 -2
- package/dist/agent/invocations/sqlite.d.ts +0 -1
- package/dist/agent/invocations/sqlite.js +0 -2
- package/dist/agent/process-host.d.ts +0 -1
- package/dist/agent/process-host.js +0 -2
- package/dist/agent/runtime/process.d.ts +0 -1
- package/dist/agent/runtime/process.js +0 -2
- package/dist/agent/server/github.d.ts +0 -1
- package/dist/agent/server/github.js +0 -2
- package/dist/agent/state/sqlite.d.ts +0 -1
- package/dist/agent/state/sqlite.js +0 -2
- package/dist/agent-invocations.post-CFKMEy-h.js +0 -432
- package/dist/agents-BNmuN4Qa.d.ts +0 -99
- package/dist/agents-CVehuMFA.js +0 -118
- package/dist/auth/console-runtime.d.ts +0 -1
- package/dist/auth/console-runtime.js +0 -2
- package/dist/auth/console.d.ts +0 -1
- package/dist/auth/console.js +0 -2
- package/dist/auth-BSSM-qh0.js +0 -700
- package/dist/auth-CG8tmgH7.d.ts +0 -106
- package/dist/auth-cloudflare-access-CE8xUzhY.d.ts +0 -50
- package/dist/auth-inline-config--vlclzm3.js +0 -18
- package/dist/auth-inline-config-R6q_4Iwo.d.ts +0 -30
- package/dist/auth-path-B7Ssonj-.js +0 -49
- package/dist/blob/content-type.d.ts +0 -1
- package/dist/blob/content-type.js +0 -2
- package/dist/blob-D9v5Djxw.d.ts +0 -7
- package/dist/browser/actions.d.ts +0 -1
- package/dist/browser/actions.js +0 -2
- package/dist/cloudflare-env-CIZCKabz.js +0 -70
- package/dist/comments-overlay/loader.BcGn0Hsk.js +0 -1
- package/dist/comments-overlay/overlay.D7vmaSrE.js +0 -2
- package/dist/connections/http.d.ts +0 -1
- package/dist/connections/http.js +0 -2
- package/dist/console/auth-client.d.ts +0 -8
- package/dist/console/auth-client.js +0 -6
- package/dist/console/auth-cloudflare-access.d.ts +0 -2
- package/dist/console/auth-cloudflare-access.js +0 -116
- package/dist/console/auth-inline.d.ts +0 -6
- package/dist/console/auth-inline.js +0 -107
- package/dist/console/runtime/client/build.d.ts +0 -14
- package/dist/console/runtime/client/build.js +0 -68
- package/dist/console/runtime/client/connections-management.d.ts +0 -68
- package/dist/console/runtime/client/connections-management.js +0 -201
- package/dist/console/runtime/client/env-management.d.ts +0 -20
- package/dist/console/runtime/client/env-management.js +0 -84
- package/dist/console/runtime/client/mcp.d.ts +0 -9
- package/dist/console/runtime/client/mcp.js +0 -14
- package/dist/console/runtime/client/sign-in.d.ts +0 -21
- package/dist/console/runtime/client/sign-in.js +0 -16
- package/dist/console/runtime/client/time.d.ts +0 -30
- package/dist/console/runtime/client/time.js +0 -106
- package/dist/console/runtime/components/console-connect-agent.vue +0 -59
- package/dist/console/runtime/components/console-connections-activity.vue +0 -76
- package/dist/console/runtime/components/console-connections-approvals.vue +0 -169
- package/dist/console/runtime/components/console-connections-details.vue +0 -295
- package/dist/console/runtime/components/console-connections.vue +0 -296
- package/dist/console/runtime/components/console-env-access.vue +0 -151
- package/dist/console/runtime/components/console-env-activity.vue +0 -89
- package/dist/console/runtime/components/console-env-managed.vue +0 -203
- package/dist/console/runtime/components/console-status.vue +0 -25
- package/dist/console/runtime/components/invocation/internal/runtime-type.ts +0 -61
- package/dist/console/runtime/components/invocation/nuxt/AgentInvocation.ts +0 -1
- package/dist/console/runtime/components/invocation/nuxt/AgentInvocationInspector.ts +0 -1
- package/dist/console/runtime/components/invocation/nuxt/AgentInvocationList.ts +0 -1
- package/dist/console/runtime/public/console/assets/console-app-CUTwptGe.css +0 -1
- package/dist/console/runtime/public/console/assets/console-auth-B_XoOPaB.css +0 -1
- package/dist/console/runtime/public/console/assets/console-database-BbZ7J_Mh.css +0 -1
- package/dist/console/runtime/public/console/assets/console-documents-BV1adqXa.css +0 -1
- package/dist/console/runtime/public/console/assets/console-home-DYNL7OZH.css +0 -1
- package/dist/console/runtime/public/console/assets/console-logs-BJxR8DcR.css +0 -1
- package/dist/console/runtime/public/console/assets/console-media-browser-Dqm8kLKS.css +0 -1
- package/dist/console/runtime/public/console/assets/console-search-DnK-eWOO.css +0 -1
- package/dist/console/runtime/public/console/assets/katex-BztabbvB.css +0 -1
- package/dist/console/runtime/public/console/chunks/Alert-A44KLyli.js +0 -111
- package/dist/console/runtime/public/console/chunks/Button-B-5IVAVN.js +0 -1
- package/dist/console/runtime/public/console/chunks/Checkbox-B6MMrqB7.js +0 -1
- package/dist/console/runtime/public/console/chunks/DashboardSidebar-D1tMg0lD.js +0 -1
- package/dist/console/runtime/public/console/chunks/Empty-DSuwpzRi.js +0 -1
- package/dist/console/runtime/public/console/chunks/FormField-C1QuQLPv.js +0 -1
- package/dist/console/runtime/public/console/chunks/Icon-DDNuGxPl.js +0 -1
- package/dist/console/runtime/public/console/chunks/Modal-BCfHPiul.js +0 -1
- package/dist/console/runtime/public/console/chunks/Popover-BIzgqwDJ.js +0 -1
- package/dist/console/runtime/public/console/chunks/RovingFocusItem-BQiInss6.js +0 -1
- package/dist/console/runtime/public/console/chunks/Select-CLtjSqJ4.js +0 -1
- package/dist/console/runtime/public/console/chunks/Slideover-CHzYTMLO.js +0 -1
- package/dist/console/runtime/public/console/chunks/Switch-0VgVgteh.js +0 -1
- package/dist/console/runtime/public/console/chunks/Table-dr_6Rarq.js +0 -4
- package/dist/console/runtime/public/console/chunks/Tabs-BbKlHRNF.js +0 -1
- package/dist/console/runtime/public/console/chunks/Textarea-DEoHK30I.js +0 -1
- package/dist/console/runtime/public/console/chunks/abap-CLvhMVsD.js +0 -1
- package/dist/console/runtime/public/console/chunks/actionscript-3-Cs6JJXT5.js +0 -1
- package/dist/console/runtime/public/console/chunks/ada-X3Y2mlq2.js +0 -1
- package/dist/console/runtime/public/console/chunks/ahk-DwADkxyd.js +0 -1
- package/dist/console/runtime/public/console/chunks/ahk2-_6rzW9BS.js +0 -1
- package/dist/console/runtime/public/console/chunks/andromeeda-BASpqCeJ-vGVdxbeo.js +0 -1
- package/dist/console/runtime/public/console/chunks/andromeeda-vGVdxbeo.js +0 -1
- package/dist/console/runtime/public/console/chunks/angular-html-_r0QlJAV.js +0 -1
- package/dist/console/runtime/public/console/chunks/angular-ts-BdSNcv2x.js +0 -1
- package/dist/console/runtime/public/console/chunks/apache-U0d_L8uA.js +0 -1
- package/dist/console/runtime/public/console/chunks/apex-KFGFyKwG.js +0 -1
- package/dist/console/runtime/public/console/chunks/apl-CD0B-dgl.js +0 -1
- package/dist/console/runtime/public/console/chunks/applescript-CCn79oCD.js +0 -1
- package/dist/console/runtime/public/console/chunks/ara-4CJ0cIlV.js +0 -1
- package/dist/console/runtime/public/console/chunks/asciidoc-SCjQUq34.js +0 -1
- package/dist/console/runtime/public/console/chunks/asm-Cmm7eHzH.js +0 -1
- package/dist/console/runtime/public/console/chunks/astro-BuBCLsVb.js +0 -1
- package/dist/console/runtime/public/console/chunks/aurora-x-CDeNXAV0.js +0 -1
- package/dist/console/runtime/public/console/chunks/aurora-x-DugsLcii-CDeNXAV0.js +0 -1
- package/dist/console/runtime/public/console/chunks/awk-BWXHIvNe.js +0 -1
- package/dist/console/runtime/public/console/chunks/ayu-dark-BT3qdi3o-DluEY0Gj.js +0 -1
- package/dist/console/runtime/public/console/chunks/ayu-dark-DluEY0Gj.js +0 -1
- package/dist/console/runtime/public/console/chunks/ayu-light-BVZyHoh9-C3h-C4tm.js +0 -1
- package/dist/console/runtime/public/console/chunks/ayu-light-C3h-C4tm.js +0 -1
- package/dist/console/runtime/public/console/chunks/ayu-mirage-Bqwy1Gya.js +0 -1
- package/dist/console/runtime/public/console/chunks/ayu-mirage-XFwUVZQZ-Bqwy1Gya.js +0 -1
- package/dist/console/runtime/public/console/chunks/ballerina-B7ZEbQpA.js +0 -1
- package/dist/console/runtime/public/console/chunks/bat-qdxAdBWQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/beancount-C2IN4Vk8.js +0 -1
- package/dist/console/runtime/public/console/chunks/berry-DKpUyyne.js +0 -1
- package/dist/console/runtime/public/console/chunks/bibtex-Ci_nEsc7.js +0 -1
- package/dist/console/runtime/public/console/chunks/bicep-CUHmPFLl.js +0 -1
- package/dist/console/runtime/public/console/chunks/bird2-CYIUgYqB.js +0 -1
- package/dist/console/runtime/public/console/chunks/blade-3tdbLOEu.js +0 -1
- package/dist/console/runtime/public/console/chunks/bsl-_VjlB9mv.js +0 -1
- package/dist/console/runtime/public/console/chunks/c-C1MtNG6h.js +0 -1
- package/dist/console/runtime/public/console/chunks/c3-D0apG41V.js +0 -1
- package/dist/console/runtime/public/console/chunks/cadence-CQ2zXKGN.js +0 -1
- package/dist/console/runtime/public/console/chunks/cairo-DLTphjLi.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-frappe-C9Q5zVZY.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-frappe-D20KODDN-C9Q5zVZY.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-latte-CtsyrtPq.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-latte-eGLVHIUJ-CtsyrtPq.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-R8nAf1vR.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-macchiato-bQGch4PY-R8nAf1vR.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-mocha-Bes8-0Mr-DjuaAJKi.js +0 -1
- package/dist/console/runtime/public/console/chunks/catppuccin-mocha-DjuaAJKi.js +0 -1
- package/dist/console/runtime/public/console/chunks/chapel-BzgYECs1.js +0 -1
- package/dist/console/runtime/public/console/chunks/clarity-CtfBBspg.js +0 -1
- package/dist/console/runtime/public/console/chunks/clojure-DqKBuwfJ.js +0 -1
- package/dist/console/runtime/public/console/chunks/cmake-Bj61d0ZC.js +0 -1
- package/dist/console/runtime/public/console/chunks/cobol-DObdkphG.js +0 -1
- package/dist/console/runtime/public/console/chunks/code-view-J4OsgEdh-B89t0LaT.js +0 -2
- package/dist/console/runtime/public/console/chunks/codeowners-C8r90Shi.js +0 -1
- package/dist/console/runtime/public/console/chunks/codeql-oeQT6MSM.js +0 -1
- package/dist/console/runtime/public/console/chunks/coffee-C94_xO1a.js +0 -1
- package/dist/console/runtime/public/console/chunks/common-lisp-Cv5bFMCO.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-app-C50IIheA.js +0 -85
- package/dist/console/runtime/public/console/chunks/console-auth-D4zc7Haw.js +0 -2
- package/dist/console/runtime/public/console/chunks/console-blob-CAJwJy4D.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-channels-DZQwinKY.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-connections-Buk5WGxr.js +0 -6
- package/dist/console/runtime/public/console/chunks/console-database-CKc8H8FN.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-definitions-NriWGCYI.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-documents-BnBRfM_7.js +0 -314
- package/dist/console/runtime/public/console/chunks/console-env-CLmYhbox.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-home-smb5yMSF.js +0 -2
- package/dist/console/runtime/public/console/chunks/console-kv-B1tLQHM9.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-logs-CjxEiek5.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-media-browser-o4BQu9KZ.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-operation-view-CGxpuMSQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-page-header-DDAcJBpl.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-page-toolbar-CvYwaKTR.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-property-list-96rL7wos.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-relative-time-RB6-yiul.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-search-D4EVLUeN.js +0 -5
- package/dist/console/runtime/public/console/chunks/console-setup-hint-8TRzgkby.js +0 -1
- package/dist/console/runtime/public/console/chunks/console-status-DH5NgNAQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/coq-CGaSfhwR.js +0 -1
- package/dist/console/runtime/public/console/chunks/core-CD3So4L1.js +0 -12
- package/dist/console/runtime/public/console/chunks/cpp-DMjdIJj9.js +0 -1
- package/dist/console/runtime/public/console/chunks/crystal-Czr8rWWf.js +0 -1
- package/dist/console/runtime/public/console/chunks/csharp-dmMxLVLW.js +0 -1
- package/dist/console/runtime/public/console/chunks/css-B6l3ejVl.js +0 -1
- package/dist/console/runtime/public/console/chunks/css-BDmUYLyz.js +0 -1
- package/dist/console/runtime/public/console/chunks/csv-Dx-8-gkx.js +0 -1
- package/dist/console/runtime/public/console/chunks/cue-CE9AQfxI.js +0 -1
- package/dist/console/runtime/public/console/chunks/cypher-ClKdZ_lG.js +0 -1
- package/dist/console/runtime/public/console/chunks/d-qD-0Kul2.js +0 -1
- package/dist/console/runtime/public/console/chunks/dark-plus-BGuiqa1B-Cs2F2srj.js +0 -1
- package/dist/console/runtime/public/console/chunks/dark-plus-Cs2F2srj.js +0 -1
- package/dist/console/runtime/public/console/chunks/dart-CHZY9Xhz.js +0 -1
- package/dist/console/runtime/public/console/chunks/dax-BkyTk9wS.js +0 -1
- package/dist/console/runtime/public/console/chunks/defu-DSJ9I3OW.js +0 -1
- package/dist/console/runtime/public/console/chunks/desktop-Dlh5hvp9.js +0 -1
- package/dist/console/runtime/public/console/chunks/diff-woXpYk--.js +0 -1
- package/dist/console/runtime/public/console/chunks/dist-Cfws9tG7.js +0 -1
- package/dist/console/runtime/public/console/chunks/docker-sj3NF4m5.js +0 -1
- package/dist/console/runtime/public/console/chunks/dockerfile-C147k2YT.js +0 -1
- package/dist/console/runtime/public/console/chunks/dotenv-CuH5my32.js +0 -1
- package/dist/console/runtime/public/console/chunks/dracula-0CVA2XY5-BHWKrbxM.js +0 -1
- package/dist/console/runtime/public/console/chunks/dracula-BHWKrbxM.js +0 -1
- package/dist/console/runtime/public/console/chunks/dracula-soft-5eyTD99u.js +0 -1
- package/dist/console/runtime/public/console/chunks/dracula-soft-Dk9bpbVU-5eyTD99u.js +0 -1
- package/dist/console/runtime/public/console/chunks/dream-maker-DW3nJb8Q.js +0 -1
- package/dist/console/runtime/public/console/chunks/edge-D8F7z1FE.js +0 -1
- package/dist/console/runtime/public/console/chunks/elixir-DH2VBix4.js +0 -1
- package/dist/console/runtime/public/console/chunks/elm-D2qVkg3B.js +0 -1
- package/dist/console/runtime/public/console/chunks/emacs-lisp-DR2vtWaj.js +0 -1
- package/dist/console/runtime/public/console/chunks/engine-compile-DS_05kfr.js +0 -141
- package/dist/console/runtime/public/console/chunks/engine-javascript-Dymre4AG.js +0 -1
- package/dist/console/runtime/public/console/chunks/env-management-CNydNlRX.js +0 -1
- package/dist/console/runtime/public/console/chunks/erb-B_-2w0Bg.js +0 -1
- package/dist/console/runtime/public/console/chunks/erlang-Cphh6RMH.js +0 -1
- package/dist/console/runtime/public/console/chunks/everforest-dark-CRjTbhh5-sB-x3p7T.js +0 -1
- package/dist/console/runtime/public/console/chunks/everforest-dark-sB-x3p7T.js +0 -1
- package/dist/console/runtime/public/console/chunks/everforest-light-CEeYFLn8-Df2xbC6M.js +0 -1
- package/dist/console/runtime/public/console/chunks/everforest-light-Df2xbC6M.js +0 -1
- package/dist/console/runtime/public/console/chunks/fennel-DQxkIbk2.js +0 -1
- package/dist/console/runtime/public/console/chunks/field-a8AvhnKh-Da49LBBi.js +0 -1
- package/dist/console/runtime/public/console/chunks/file-tree-2PXztdQ7.js +0 -1266
- package/dist/console/runtime/public/console/chunks/fish-BJitypiv.js +0 -1
- package/dist/console/runtime/public/console/chunks/fluent-C03EYrpw.js +0 -1
- package/dist/console/runtime/public/console/chunks/format-Bm0hCiYP.js +0 -1
- package/dist/console/runtime/public/console/chunks/fortran-fixed-form-DEKoE2YW.js +0 -1
- package/dist/console/runtime/public/console/chunks/fortran-free-form-CYNrtFtB.js +0 -1
- package/dist/console/runtime/public/console/chunks/fsharp-D13ZGOAj.js +0 -1
- package/dist/console/runtime/public/console/chunks/gdresource-xMC7jr7x.js +0 -1
- package/dist/console/runtime/public/console/chunks/gdscript-DYvRD3hg.js +0 -1
- package/dist/console/runtime/public/console/chunks/gdshader-CBce3t8t.js +0 -1
- package/dist/console/runtime/public/console/chunks/genie-CV2tkWYe.js +0 -1
- package/dist/console/runtime/public/console/chunks/gherkin-DExj1W_8.js +0 -1
- package/dist/console/runtime/public/console/chunks/git-commit-BSykSTBG.js +0 -1
- package/dist/console/runtime/public/console/chunks/git-rebase-CNMiHM3o.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-BXgKmOw_-C-LZuMrd.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-C-LZuMrd.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-default-DXG-b-1a.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-default-Dk3Gj2bt.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-default-DzJQXksd-DXG-b-1a.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-dimmed-B1pEmGtS-Bx1FflLF.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-dimmed-Bx1FflLF.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-B_tTalzw.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-dark-high-contrast-BkHIa6jc-B_tTalzw.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-BKRlUbaB-EUqPIrTm.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-EUqPIrTm.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-default-BU3eYkzs-BXViO-2h.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-default-BXViO-2h.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-default-CC-h3suv.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-high-contrast-B3MumDcI-B68TUdTA.js +0 -1
- package/dist/console/runtime/public/console/chunks/github-light-high-contrast-B68TUdTA.js +0 -1
- package/dist/console/runtime/public/console/chunks/gleam-CSRkHgEL.js +0 -1
- package/dist/console/runtime/public/console/chunks/glimmer-js-CwoxQgjc.js +0 -1
- package/dist/console/runtime/public/console/chunks/glimmer-ts-DpQshMGP.js +0 -1
- package/dist/console/runtime/public/console/chunks/glsl-vvkIs2ij.js +0 -1
- package/dist/console/runtime/public/console/chunks/gn-CAXYAgV-.js +0 -1
- package/dist/console/runtime/public/console/chunks/gnuplot-7GGW24-e.js +0 -1
- package/dist/console/runtime/public/console/chunks/go-rLFTqkRN.js +0 -1
- package/dist/console/runtime/public/console/chunks/graphql-ChhlowTj.js +0 -1
- package/dist/console/runtime/public/console/chunks/groovy-CacY0gHj.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-B0ecF443-C820rvS2.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-hard-C820rvS2.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BPjhmG05.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-medium-BQnpC39k-BPjhmG05.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-DFZUgESr-MrdJrrXF.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-dark-soft-MrdJrrXF.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-BC_s9l72.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-light-hard-CuB_LOJr-BC_s9l72.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-BAWPOn9u.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-light-medium-idDHgxjs-BAWPOn9u.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-BSMLrYjP.js +0 -1
- package/dist/console/runtime/public/console/chunks/gruvbox-light-soft-CfWH49MY-BSMLrYjP.js +0 -1
- package/dist/console/runtime/public/console/chunks/hack--5hWxtov.js +0 -1
- package/dist/console/runtime/public/console/chunks/haml-DOOWKVAn.js +0 -1
- package/dist/console/runtime/public/console/chunks/handlebars-CrRNKWA2.js +0 -1
- package/dist/console/runtime/public/console/chunks/haskell-D8IpX4py.js +0 -1
- package/dist/console/runtime/public/console/chunks/haxe-C8oCnwJJ.js +0 -1
- package/dist/console/runtime/public/console/chunks/hcl-Dh228itO.js +0 -1
- package/dist/console/runtime/public/console/chunks/hjson-CxZEssPk.js +0 -1
- package/dist/console/runtime/public/console/chunks/hlsl-Cvrh5tZx.js +0 -1
- package/dist/console/runtime/public/console/chunks/horizon-CE9ld1lL.js +0 -1
- package/dist/console/runtime/public/console/chunks/horizon-bright-Ba6M8QSV-DSNQnXHK.js +0 -1
- package/dist/console/runtime/public/console/chunks/horizon-bright-DSNQnXHK.js +0 -1
- package/dist/console/runtime/public/console/chunks/horizon-h92C5OlZ-CE9ld1lL.js +0 -1
- package/dist/console/runtime/public/console/chunks/houston-CsvMBhTu.js +0 -1
- package/dist/console/runtime/public/console/chunks/houston-EQnPegWq-CsvMBhTu.js +0 -1
- package/dist/console/runtime/public/console/chunks/html-DrTLqG4V.js +0 -1
- package/dist/console/runtime/public/console/chunks/html-DwfkhSwv.js +0 -1
- package/dist/console/runtime/public/console/chunks/html-derivative-JoBPPO4R.js +0 -1
- package/dist/console/runtime/public/console/chunks/http-DKXz4J4h.js +0 -1
- package/dist/console/runtime/public/console/chunks/hurl-m2MDTJJI.js +0 -1
- package/dist/console/runtime/public/console/chunks/hxml-Dcm88srW.js +0 -1
- package/dist/console/runtime/public/console/chunks/hy-CZbG8q4J.js +0 -1
- package/dist/console/runtime/public/console/chunks/icons-CDKEwnTx.js +0 -1
- package/dist/console/runtime/public/console/chunks/imba-DsUTQ-LC.js +0 -1
- package/dist/console/runtime/public/console/chunks/ini-B5eOa1yu.js +0 -1
- package/dist/console/runtime/public/console/chunks/java-DJ6V61UG.js +0 -1
- package/dist/console/runtime/public/console/chunks/javascript-DOney_iy.js +0 -1
- package/dist/console/runtime/public/console/chunks/javascript-DhBmaPc1.js +0 -1
- package/dist/console/runtime/public/console/chunks/jinja-CywE_Am-.js +0 -1
- package/dist/console/runtime/public/console/chunks/jison-D8DWHhWo.js +0 -1
- package/dist/console/runtime/public/console/chunks/json-B6nR7qG1.js +0 -1
- package/dist/console/runtime/public/console/chunks/json-D0JmQrvp.js +0 -1
- package/dist/console/runtime/public/console/chunks/json5-BR5RXkoi.js +0 -1
- package/dist/console/runtime/public/console/chunks/jsonc-CYpm1nAK.js +0 -1
- package/dist/console/runtime/public/console/chunks/jsonc-D4AqO_oZ.js +0 -1
- package/dist/console/runtime/public/console/chunks/jsonl-CmCQp5Yx.js +0 -1
- package/dist/console/runtime/public/console/chunks/jsonnet-CJTPZ8u_.js +0 -1
- package/dist/console/runtime/public/console/chunks/jssm-DXw9l8Rf.js +0 -1
- package/dist/console/runtime/public/console/chunks/jsx-Dro3SMhn.js +0 -1
- package/dist/console/runtime/public/console/chunks/jsx-_Ptt0Qo0.js +0 -1
- package/dist/console/runtime/public/console/chunks/julia-CruTRp58.js +0 -1
- package/dist/console/runtime/public/console/chunks/just-aBPtXuIr.js +0 -1
- package/dist/console/runtime/public/console/chunks/kanagawa-dragon-Bozd7klA.js +0 -1
- package/dist/console/runtime/public/console/chunks/kanagawa-dragon-DgDvwi3B-Bozd7klA.js +0 -1
- package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BgoQro20-BmuOG9ZW.js +0 -1
- package/dist/console/runtime/public/console/chunks/kanagawa-lotus-BmuOG9ZW.js +0 -1
- package/dist/console/runtime/public/console/chunks/kanagawa-wave-BML5mF2J.js +0 -1
- package/dist/console/runtime/public/console/chunks/kanagawa-wave-DgXEowHs-BML5mF2J.js +0 -1
- package/dist/console/runtime/public/console/chunks/katex-CF6MVAvO.js +0 -257
- package/dist/console/runtime/public/console/chunks/kdl-CsD5j6eV.js +0 -1
- package/dist/console/runtime/public/console/chunks/kotlin-DhhofPvG.js +0 -1
- package/dist/console/runtime/public/console/chunks/kusto-C7mF5XQf.js +0 -1
- package/dist/console/runtime/public/console/chunks/laserwave-C_8bwKvT.js +0 -1
- package/dist/console/runtime/public/console/chunks/laserwave-IxBH_3yW-C_8bwKvT.js +0 -1
- package/dist/console/runtime/public/console/chunks/latex-DV9xWg1U.js +0 -1
- package/dist/console/runtime/public/console/chunks/lean-CewbzKMR.js +0 -1
- package/dist/console/runtime/public/console/chunks/less-DVTAwKKz.js +0 -1
- package/dist/console/runtime/public/console/chunks/light-plus-DVQuIRkW.js +0 -1
- package/dist/console/runtime/public/console/chunks/light-plus-S8JBx6is-DVQuIRkW.js +0 -1
- package/dist/console/runtime/public/console/chunks/liquid-B62JT9qD.js +0 -1
- package/dist/console/runtime/public/console/chunks/llvm-DqHOMS-s.js +0 -1
- package/dist/console/runtime/public/console/chunks/log-BNLmms1o.js +0 -1
- package/dist/console/runtime/public/console/chunks/logo-Cluzi2Zq.js +0 -1
- package/dist/console/runtime/public/console/chunks/lua-939mH6Rk.js +0 -1
- package/dist/console/runtime/public/console/chunks/luau-VGWVLoqX.js +0 -1
- package/dist/console/runtime/public/console/chunks/make-Dixweg8N.js +0 -1
- package/dist/console/runtime/public/console/chunks/make-PPdVpZzp.js +0 -1
- package/dist/console/runtime/public/console/chunks/markdown-BK4fiefF.js +0 -1
- package/dist/console/runtime/public/console/chunks/markdown-BYOwaDjH.js +0 -1
- package/dist/console/runtime/public/console/chunks/marko-BjHTe8yB.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-Bm3Qr25_.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-D1f3HBq--Bm3Qr25_.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-darker-2IIEA8gg.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-darker-ExzYhT0j-2IIEA8gg.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-lighter-D6gH9nnA-uhdI0v04.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-lighter-uhdI0v04.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-ocean-CHQ94UKr.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-ocean-D1w5BPAa-CHQ94UKr.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-palenight-B5W6OYN7.js +0 -1
- package/dist/console/runtime/public/console/chunks/material-theme-palenight-CkqWmVpF-B5W6OYN7.js +0 -1
- package/dist/console/runtime/public/console/chunks/matlab-D7qyCx1q.js +0 -1
- package/dist/console/runtime/public/console/chunks/mdc-Dsg_kn4_.js +0 -1
- package/dist/console/runtime/public/console/chunks/mdx-DQZ5AkYe.js +0 -1
- package/dist/console/runtime/public/console/chunks/mdx-l4Hs_llf.js +0 -1
- package/dist/console/runtime/public/console/chunks/mermaid-BxpfTIzt.js +0 -1
- package/dist/console/runtime/public/console/chunks/min-dark-BSWPekZh.js +0 -1
- package/dist/console/runtime/public/console/chunks/min-dark-npsJH98j-BSWPekZh.js +0 -1
- package/dist/console/runtime/public/console/chunks/min-light-DDpmG2fV.js +0 -1
- package/dist/console/runtime/public/console/chunks/min-light-DUk1XsVt-DDpmG2fV.js +0 -1
- package/dist/console/runtime/public/console/chunks/mipsasm-BMqwQI7S.js +0 -1
- package/dist/console/runtime/public/console/chunks/mojo-fg40_ntQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/monokai-BscAjiQZ.js +0 -1
- package/dist/console/runtime/public/console/chunks/monokai-CfFRWUNl-BscAjiQZ.js +0 -1
- package/dist/console/runtime/public/console/chunks/moonbit-D9W784E_.js +0 -1
- package/dist/console/runtime/public/console/chunks/move-BYnGhZoM.js +0 -1
- package/dist/console/runtime/public/console/chunks/narrat-_X_XdTYD.js +0 -1
- package/dist/console/runtime/public/console/chunks/nextflow-CSgcYZcx.js +0 -1
- package/dist/console/runtime/public/console/chunks/nextflow-groovy-D7IRt6Pp.js +0 -1
- package/dist/console/runtime/public/console/chunks/nginx-H6FvQZhW.js +0 -1
- package/dist/console/runtime/public/console/chunks/night-owl-BS7V-av_-DhmEMT88.js +0 -1
- package/dist/console/runtime/public/console/chunks/night-owl-DhmEMT88.js +0 -1
- package/dist/console/runtime/public/console/chunks/night-owl-light-CZtRawYE-eJ-hLW7d.js +0 -1
- package/dist/console/runtime/public/console/chunks/night-owl-light-eJ-hLW7d.js +0 -1
- package/dist/console/runtime/public/console/chunks/nim-C7z2AtKH.js +0 -1
- package/dist/console/runtime/public/console/chunks/nix-IvuFDN5E.js +0 -1
- package/dist/console/runtime/public/console/chunks/nord-BFh54Nqz-Cb4Vim4T.js +0 -1
- package/dist/console/runtime/public/console/chunks/nord-Cb4Vim4T.js +0 -1
- package/dist/console/runtime/public/console/chunks/nsis-CjNLYCLg.js +0 -1
- package/dist/console/runtime/public/console/chunks/nushell--0fT3PI1.js +0 -1
- package/dist/console/runtime/public/console/chunks/objective-c-D1A_Heim.js +0 -1
- package/dist/console/runtime/public/console/chunks/objective-cpp-BsSzOQcm.js +0 -1
- package/dist/console/runtime/public/console/chunks/ocaml-O90oeIOV.js +0 -1
- package/dist/console/runtime/public/console/chunks/odin-B1RWQWA5.js +0 -1
- package/dist/console/runtime/public/console/chunks/one-dark-pro-C6YyR8OD.js +0 -1
- package/dist/console/runtime/public/console/chunks/one-dark-pro-zDovGosB-C6YyR8OD.js +0 -1
- package/dist/console/runtime/public/console/chunks/one-light-D7Lr4KcI.js +0 -1
- package/dist/console/runtime/public/console/chunks/one-light-gmHK3iK6-D7Lr4KcI.js +0 -1
- package/dist/console/runtime/public/console/chunks/openscad-BUDT5pXO.js +0 -1
- package/dist/console/runtime/public/console/chunks/org-DYUOjVHR.js +0 -1
- package/dist/console/runtime/public/console/chunks/pascal-4ZHwLPI5.js +0 -1
- package/dist/console/runtime/public/console/chunks/patch-diff-CD7Eu2gO.js +0 -1
- package/dist/console/runtime/public/console/chunks/perl-BAFITj1w.js +0 -1
- package/dist/console/runtime/public/console/chunks/php-C1opCiHJ.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-code-view-T7V67hwT-XcPks0Ko.js +0 -168
- package/dist/console/runtime/public/console/chunks/pierre-dark-DDWDl8g6-CpLgRqie.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-dark-protanopia-deuteranopia-C35UMuvO-B35FxJx-.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-dark-soft-Bb-4-biO-kZQmAZld.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-dark-tritanopia-CIJISGWF-CpjhbsIL.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-dark-vibrant-8oZzB3gw-CpQYzh95.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-light-CWhW4NrH-CoaEpmwp.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-light-protanopia-deuteranopia-u0U7N4Hn-0fSaH845.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-light-soft-BCU6fuhO-lWLdNTOI.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-light-tritanopia-3c8Yx3co-CEbqgOJL.js +0 -1
- package/dist/console/runtime/public/console/chunks/pierre-light-vibrant-Cwh332o_-D80Fkn33.js +0 -1
- package/dist/console/runtime/public/console/chunks/pkl-ot-7Btpt.js +0 -1
- package/dist/console/runtime/public/console/chunks/plastic-DQwYfKfQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/plastic-DtdaCjub-DQwYfKfQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/plsql-DGHpHOYJ.js +0 -1
- package/dist/console/runtime/public/console/chunks/po-BiJDBrnU.js +0 -1
- package/dist/console/runtime/public/console/chunks/poimandres-DRFjx7u4.js +0 -1
- package/dist/console/runtime/public/console/chunks/poimandres-Hdda6aHK-DRFjx7u4.js +0 -1
- package/dist/console/runtime/public/console/chunks/polar-C7UOKdEL.js +0 -1
- package/dist/console/runtime/public/console/chunks/postcss-BXeXVLqQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/powerquery-DNMTfnFr.js +0 -1
- package/dist/console/runtime/public/console/chunks/powershell-QtSnmXcu.js +0 -1
- package/dist/console/runtime/public/console/chunks/preload-helper-uBIymjUX.js +0 -1
- package/dist/console/runtime/public/console/chunks/presence-BGvCcBvS.js +0 -1
- package/dist/console/runtime/public/console/chunks/prisma-DMgNhnYS.js +0 -1
- package/dist/console/runtime/public/console/chunks/prolog-iXnhIJG7.js +0 -1
- package/dist/console/runtime/public/console/chunks/proto-DB4EqR-F.js +0 -1
- package/dist/console/runtime/public/console/chunks/pug-ChIfOLQs.js +0 -1
- package/dist/console/runtime/public/console/chunks/puppet-CDv2pdJW.js +0 -1
- package/dist/console/runtime/public/console/chunks/purescript-9MfHhQsQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/python-gzcpVVnB.js +0 -1
- package/dist/console/runtime/public/console/chunks/qml-BAjZcRJm.js +0 -1
- package/dist/console/runtime/public/console/chunks/qmldir-DCQb3MpD.js +0 -1
- package/dist/console/runtime/public/console/chunks/qss-Fe1Jh2GI.js +0 -1
- package/dist/console/runtime/public/console/chunks/r-CnJIyxn2.js +0 -1
- package/dist/console/runtime/public/console/chunks/racket-DcIDlBhZ.js +0 -1
- package/dist/console/runtime/public/console/chunks/raku-B3gFvitq.js +0 -1
- package/dist/console/runtime/public/console/chunks/razor-Bk3VGUqz.js +0 -1
- package/dist/console/runtime/public/console/chunks/rbs-C0MpOrj4.js +0 -1
- package/dist/console/runtime/public/console/chunks/read-only-DJWK7nHC.js +0 -1
- package/dist/console/runtime/public/console/chunks/red-CYlAq2b0.js +0 -1
- package/dist/console/runtime/public/console/chunks/red-VqZFRByZ-CYlAq2b0.js +0 -1
- package/dist/console/runtime/public/console/chunks/reg-CRGYupPL.js +0 -1
- package/dist/console/runtime/public/console/chunks/regexp-CF4aByxb.js +0 -1
- package/dist/console/runtime/public/console/chunks/rel-BtDbiS_P.js +0 -1
- package/dist/console/runtime/public/console/chunks/riscv-Ckw8ddFX.js +0 -1
- package/dist/console/runtime/public/console/chunks/rolldown-runtime-DK3Fl9T5.js +0 -1
- package/dist/console/runtime/public/console/chunks/ron-VUp2lXgN.js +0 -1
- package/dist/console/runtime/public/console/chunks/rose-pine-DiTkEueR-aMsaMD1D.js +0 -1
- package/dist/console/runtime/public/console/chunks/rose-pine-aMsaMD1D.js +0 -1
- package/dist/console/runtime/public/console/chunks/rose-pine-dawn-8PwUyIlP.js +0 -1
- package/dist/console/runtime/public/console/chunks/rose-pine-dawn-tfo5y2X0-8PwUyIlP.js +0 -1
- package/dist/console/runtime/public/console/chunks/rose-pine-moon-C0gON9XN-DO-qXg-I.js +0 -1
- package/dist/console/runtime/public/console/chunks/rose-pine-moon-DO-qXg-I.js +0 -1
- package/dist/console/runtime/public/console/chunks/rosmsg-CAekHB0j.js +0 -1
- package/dist/console/runtime/public/console/chunks/rst-D8R3YvuX.js +0 -1
- package/dist/console/runtime/public/console/chunks/ruby-BDvumEf2.js +0 -1
- package/dist/console/runtime/public/console/chunks/rust-DpiIf5JO.js +0 -1
- package/dist/console/runtime/public/console/chunks/sas-CDxiwfn1.js +0 -1
- package/dist/console/runtime/public/console/chunks/sass-DXrisJhu.js +0 -1
- package/dist/console/runtime/public/console/chunks/scala-BiFt_7mu.js +0 -1
- package/dist/console/runtime/public/console/chunks/scheme-DQCgrYNe.js +0 -1
- package/dist/console/runtime/public/console/chunks/scss-BPiS1nMZ.js +0 -1
- package/dist/console/runtime/public/console/chunks/scss-DuikUNMR.js +0 -1
- package/dist/console/runtime/public/console/chunks/sdbl-bTVj8UrX.js +0 -1
- package/dist/console/runtime/public/console/chunks/sections-aIkyV8J9.js +0 -8
- package/dist/console/runtime/public/console/chunks/shaderlab-TOUzSsQk.js +0 -1
- package/dist/console/runtime/public/console/chunks/shellscript-CgLkv1T0.js +0 -1
- package/dist/console/runtime/public/console/chunks/shellscript-DStN_0YR.js +0 -1
- package/dist/console/runtime/public/console/chunks/shellsession-C_5QA7eC.js +0 -1
- package/dist/console/runtime/public/console/chunks/slack-dark-DnToyrRv.js +0 -1
- package/dist/console/runtime/public/console/chunks/slack-dark-v8P_eXr6-DnToyrRv.js +0 -1
- package/dist/console/runtime/public/console/chunks/slack-ochin-B2OO5cIa.js +0 -1
- package/dist/console/runtime/public/console/chunks/slack-ochin-D8SyEdKz-B2OO5cIa.js +0 -1
- package/dist/console/runtime/public/console/chunks/smalltalk-BHpQb5nM.js +0 -1
- package/dist/console/runtime/public/console/chunks/smithy-Dgaz7aur.js +0 -1
- package/dist/console/runtime/public/console/chunks/snazzy-light-4G7pJPwS.js +0 -1
- package/dist/console/runtime/public/console/chunks/snazzy-light-BtkQkvXb-4G7pJPwS.js +0 -1
- package/dist/console/runtime/public/console/chunks/solarized-dark-B8nAdMfM-b97czJOk.js +0 -1
- package/dist/console/runtime/public/console/chunks/solarized-dark-b97czJOk.js +0 -1
- package/dist/console/runtime/public/console/chunks/solarized-light-B-3F1INj-DFPxpIYQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/solarized-light-DFPxpIYQ.js +0 -1
- package/dist/console/runtime/public/console/chunks/solidity-Bj7E1mRn.js +0 -1
- package/dist/console/runtime/public/console/chunks/soy-Drvj0-hN.js +0 -1
- package/dist/console/runtime/public/console/chunks/sparql-D_iOobhT.js +0 -1
- package/dist/console/runtime/public/console/chunks/splunk-BC2Px7Mm.js +0 -1
- package/dist/console/runtime/public/console/chunks/sql-7uki0mN6.js +0 -1
- package/dist/console/runtime/public/console/chunks/sql-DvnUxQaA.js +0 -1
- package/dist/console/runtime/public/console/chunks/ssh-config-BgfXC-Er.js +0 -1
- package/dist/console/runtime/public/console/chunks/stata-5ekhIp_w.js +0 -1
- package/dist/console/runtime/public/console/chunks/stylus-B6D30XZt.js +0 -1
- package/dist/console/runtime/public/console/chunks/surrealql-BggsF-oc.js +0 -1
- package/dist/console/runtime/public/console/chunks/svelte-BOzpv3zx.js +0 -1
- package/dist/console/runtime/public/console/chunks/swift-CyEgAFGc.js +0 -1
- package/dist/console/runtime/public/console/chunks/synthwave-84-DcsXCF_c-nFMaYfgc.js +0 -1
- package/dist/console/runtime/public/console/chunks/synthwave-84-nFMaYfgc.js +0 -1
- package/dist/console/runtime/public/console/chunks/system-verilog-Dh5ihWbf.js +0 -1
- package/dist/console/runtime/public/console/chunks/systemd-BxMlprV5.js +0 -1
- package/dist/console/runtime/public/console/chunks/talonscript-CohzipZa.js +0 -1
- package/dist/console/runtime/public/console/chunks/tasl-DMoTqEGO.js +0 -1
- package/dist/console/runtime/public/console/chunks/tcl-CZd0xW_V.js +0 -1
- package/dist/console/runtime/public/console/chunks/templ-fdyF5dsr.js +0 -1
- package/dist/console/runtime/public/console/chunks/terraform-DswuEJGm.js +0 -1
- package/dist/console/runtime/public/console/chunks/tex-DHA47n0s.js +0 -1
- package/dist/console/runtime/public/console/chunks/tokyo-night-Bvpqduda-oM2G3aXe.js +0 -1
- package/dist/console/runtime/public/console/chunks/tokyo-night-oM2G3aXe.js +0 -1
- package/dist/console/runtime/public/console/chunks/toml-CcmNWLt0.js +0 -1
- package/dist/console/runtime/public/console/chunks/ts-tags-FylMzM_u.js +0 -1
- package/dist/console/runtime/public/console/chunks/tsv-sltzmVWM.js +0 -1
- package/dist/console/runtime/public/console/chunks/tsx-B8qh6jDH.js +0 -1
- package/dist/console/runtime/public/console/chunks/tsx-Ge9e86uq.js +0 -1
- package/dist/console/runtime/public/console/chunks/turtle-ByJddavk.js +0 -1
- package/dist/console/runtime/public/console/chunks/twig-r9Dsv_Ri.js +0 -1
- package/dist/console/runtime/public/console/chunks/typescript-C2Eu6twH.js +0 -1
- package/dist/console/runtime/public/console/chunks/typescript-CiUCm0l2.js +0 -1
- package/dist/console/runtime/public/console/chunks/typespec-BGhR2SqG.js +0 -1
- package/dist/console/runtime/public/console/chunks/typst-BCkRs6d9.js +0 -1
- package/dist/console/runtime/public/console/chunks/url-uI6JSUZP.js +0 -4
- package/dist/console/runtime/public/console/chunks/useForwardScopeId-mJ8JPuYU.js +0 -1
- package/dist/console/runtime/public/console/chunks/usePortal-BqI7uIRp.js +0 -3
- package/dist/console/runtime/public/console/chunks/v-DBj4K9d_.js +0 -1
- package/dist/console/runtime/public/console/chunks/vala-zf12oZj6.js +0 -1
- package/dist/console/runtime/public/console/chunks/vb-DOwzaHZ0.js +0 -1
- package/dist/console/runtime/public/console/chunks/verilog-B2gwz-sJ.js +0 -1
- package/dist/console/runtime/public/console/chunks/vesper-CfxmMOy3-DdrHHSXu.js +0 -1
- package/dist/console/runtime/public/console/chunks/vesper-DdrHHSXu.js +0 -1
- package/dist/console/runtime/public/console/chunks/vhdl-BroJfC0k.js +0 -1
- package/dist/console/runtime/public/console/chunks/viml-DvXPmvsu.js +0 -1
- package/dist/console/runtime/public/console/chunks/vitesse-black-D9-_1mjV-fwtXNY1n.js +0 -1
- package/dist/console/runtime/public/console/chunks/vitesse-black-fwtXNY1n.js +0 -1
- package/dist/console/runtime/public/console/chunks/vitesse-dark-BZCL-v6S.js +0 -1
- package/dist/console/runtime/public/console/chunks/vitesse-dark-DlSMLlr9-BZCL-v6S.js +0 -1
- package/dist/console/runtime/public/console/chunks/vitesse-light-KRWWWztf-VbXTXTou.js +0 -1
- package/dist/console/runtime/public/console/chunks/vitesse-light-VbXTXTou.js +0 -1
- package/dist/console/runtime/public/console/chunks/vue-Bc1L0ruR.js +0 -3
- package/dist/console/runtime/public/console/chunks/vue-CGPRTtAM.js +0 -1
- package/dist/console/runtime/public/console/chunks/vue-CHGs_ru8.js +0 -1
- package/dist/console/runtime/public/console/chunks/vue-html-CU_0vU6P.js +0 -1
- package/dist/console/runtime/public/console/chunks/vue-vine-BrC7uwb8.js +0 -1
- package/dist/console/runtime/public/console/chunks/vueuse-DCpBt1pZ.js +0 -4
- package/dist/console/runtime/public/console/chunks/vyper-CgoNMtux.js +0 -1
- package/dist/console/runtime/public/console/chunks/wasm-BnjxR4X6.js +0 -1
- package/dist/console/runtime/public/console/chunks/wasm-ByWQv1Qj.js +0 -1
- package/dist/console/runtime/public/console/chunks/wenyan-C8pVoKbM.js +0 -1
- package/dist/console/runtime/public/console/chunks/wgsl-BsKzXJz4.js +0 -1
- package/dist/console/runtime/public/console/chunks/wikitext-ClFFjSW2.js +0 -1
- package/dist/console/runtime/public/console/chunks/wit-DdvCle-K.js +0 -1
- package/dist/console/runtime/public/console/chunks/wolfram-DLL8P-h_.js +0 -1
- package/dist/console/runtime/public/console/chunks/xml-Bx1i6T7B.js +0 -1
- package/dist/console/runtime/public/console/chunks/xsl-DR5M53i7.js +0 -1
- package/dist/console/runtime/public/console/chunks/yaml-CZmR-Icd.js +0 -1
- package/dist/console/runtime/public/console/chunks/yaml-a9wqVlBt.js +0 -1
- package/dist/console/runtime/public/console/chunks/zenscript-BnlCZFoB.js +0 -1
- package/dist/console/runtime/public/console/chunks/zig-CMLA9XwU.js +0 -1
- package/dist/console/runtime/public/console/console-QjK_HKoM.css +0 -2
- package/dist/console/runtime/public/console/console-j0_7kmR5.js +0 -21
- package/dist/console/runtime/public/console/page-tool-Cji0S8q-.js +0 -1
- package/dist/console/runtime/server/auth-manage.d.ts +0 -7
- package/dist/console/runtime/server/auth-manage.js +0 -155
- package/dist/console/runtime/server/client.get.d.ts +0 -3
- package/dist/console/runtime/server/client.get.js +0 -11
- package/dist/console/runtime/server/env-manage.d.ts +0 -5
- package/dist/console/runtime/server/env-manage.js +0 -10
- package/dist/console/runtime/server/mcp-authorization-server.d.ts +0 -11
- package/dist/console/runtime/server/mcp-authorization-server.js +0 -71
- package/dist/console/runtime/server/mcp-discovery.d.ts +0 -7
- package/dist/console/runtime/server/mcp-discovery.js +0 -20
- package/dist/console/runtime/server/mcp-metadata.d.ts +0 -11
- package/dist/console/runtime/server/mcp-metadata.js +0 -54
- package/dist/console/runtime/server/mcp.d.ts +0 -16
- package/dist/console/runtime/server/mcp.js +0 -364
- package/dist/console/runtime/server/page.get.d.ts +0 -4
- package/dist/console/runtime/server/page.get.js +0 -49
- package/dist/console/runtime/server/schedule-run.d.ts +0 -36
- package/dist/console/runtime/server/schedule-run.js +0 -213
- package/dist/console/runtime/server/sign-in.d.ts +0 -5
- package/dist/console/runtime/server/sign-in.js +0 -11
- package/dist/content/presets/cms.d.ts +0 -2
- package/dist/content/presets/cms.js +0 -2
- package/dist/database/drizzle.d.ts +0 -1
- package/dist/database/drizzle.js +0 -2
- package/dist/database-DLPk6HVu.d.ts +0 -7
- package/dist/database-hyYo7JVD.d.ts +0 -11
- package/dist/definitions-BJGSpYGa.d.ts +0 -209
- package/dist/definitions-Y0pIwSQm.d.ts +0 -19
- package/dist/diagnostics-YTWM3K3t.js +0 -74
- package/dist/diagnostics-lT85pbVx.d.ts +0 -6
- package/dist/document-metadata-nXusaMSq.js +0 -6
- package/dist/documents-BRt3-fIu.d.ts +0 -72
- package/dist/email/server.d.ts +0 -1
- package/dist/email/server.js +0 -2
- package/dist/env/auth.d.ts +0 -1
- package/dist/env/auth.js +0 -2
- package/dist/env/http.d.ts +0 -1
- package/dist/env/http.js +0 -2
- package/dist/env/presets.d.ts +0 -1
- package/dist/env/presets.js +0 -2
- package/dist/env/provider.d.ts +0 -1
- package/dist/env/provider.js +0 -2
- package/dist/env/schema.d.ts +0 -1
- package/dist/env/schema.js +0 -2
- package/dist/env/secret.d.ts +0 -1
- package/dist/env/secret.js +0 -2
- package/dist/error-diagnostics-n7V-_SPy.js +0 -160
- package/dist/h3-v1-request-DDGXJ9E7.js +0 -166
- package/dist/index-CWk5rJOo.d.ts +0 -247
- package/dist/internal-Ca7DYHpa.js +0 -311
- package/dist/internal-VvXn0bX4.d.ts +0 -25
- package/dist/invocations-DkjhdkpT.js +0 -1151
- package/dist/invocations-TvN9ux06.d.ts +0 -47
- package/dist/loopback-DAr1IFQP.js +0 -43
- package/dist/media-BBybn3NP.js +0 -512
- package/dist/operation-contributions-BXHKgT_w.d.ts +0 -18
- package/dist/operations-4uDh4zah.js +0 -38
- package/dist/operations-7RHOMAHT.js +0 -455
- package/dist/operations-Bgklf9hM.d.ts +0 -149
- package/dist/operations-CwqEItfA.js +0 -468
- package/dist/package-BsfDnNm8.js +0 -1119
- package/dist/page-tools-B3g4CQ5c.js +0 -402
- package/dist/page-tools-C5dufxVz.d.ts +0 -16
- package/dist/page-tools-shared-D-amu6sx.js +0 -53
- package/dist/project-registry-BT7RcCcQ.js +0 -39
- package/dist/registry-dSdI2Oa3.js +0 -142
- package/dist/request-BT6g-Fwf.js +0 -326
- package/dist/request-DOvvVgpI.d.ts +0 -52
- package/dist/retention-DBXuVtQL.js +0 -257
- package/dist/rolldown-runtime-8H4AJuhK.js +0 -14
- package/dist/runtime/h3.d.ts +0 -2
- package/dist/runtime/h3.js +0 -2
- package/dist/runtime/node.d.ts +0 -1
- package/dist/runtime/node.js +0 -2
- package/dist/runtime-DPqC3MTX.js +0 -60
- package/dist/scan-module-TmHMoGKw.js +0 -148
- package/dist/secret-DrgWMRms.js +0 -47
- package/dist/sections-BVtKNenQ.js +0 -108
- package/dist/sections-C985LlW2.d.ts +0 -31
- package/dist/sections-Drj-o4_z.d.ts +0 -141
- package/dist/source/file.d.ts +0 -1
- package/dist/source/file.js +0 -2
- package/dist/source/files.d.ts +0 -1
- package/dist/source/files.js +0 -2
- package/dist/source/github.d.ts +0 -1
- package/dist/source/github.js +0 -2
- package/dist/source/glob.d.ts +0 -1
- package/dist/source/glob.js +0 -2
- package/dist/source/markdown.d.ts +0 -1
- package/dist/source/markdown.js +0 -2
- package/dist/src-CaqWiza-.js +0 -7910
- package/dist/task.d.ts +0 -3
- package/dist/task.js +0 -2
- package/dist/types-BsuwNk3q.js +0 -256
- package/dist/ui/attachment.d.ts +0 -1
- package/dist/ui/attachment.js +0 -2
- package/dist/ui/avatar-stack.d.ts +0 -1
- package/dist/ui/avatar-stack.js +0 -2
- package/dist/ui/bubble.d.ts +0 -1
- package/dist/ui/bubble.js +0 -2
- package/dist/ui/chat-message.d.ts +0 -1
- package/dist/ui/chat-message.js +0 -2
- package/dist/ui/chat-session.d.ts +0 -1
- package/dist/ui/chat-session.js +0 -2
- package/dist/ui/chat.d.ts +0 -1
- package/dist/ui/chat.js +0 -2
- package/dist/ui/code-block.d.ts +0 -1
- package/dist/ui/code-block.js +0 -2
- package/dist/ui/code-view.d.ts +0 -1
- package/dist/ui/code-view.js +0 -2
- package/dist/ui/comments.d.ts +0 -1
- package/dist/ui/comments.js +0 -2
- package/dist/ui/connection-status.d.ts +0 -1
- package/dist/ui/connection-status.js +0 -2
- package/dist/ui/file-diff.d.ts +0 -1
- package/dist/ui/file-diff.js +0 -2
- package/dist/ui/file-tree.d.ts +0 -1
- package/dist/ui/file-tree.js +0 -2
- package/dist/ui/file-view.d.ts +0 -1
- package/dist/ui/file-view.js +0 -2
- package/dist/ui/markdown.d.ts +0 -1
- package/dist/ui/markdown.js +0 -2
- package/dist/ui/marker.d.ts +0 -1
- package/dist/ui/marker.js +0 -2
- package/dist/ui/message-parts.d.ts +0 -1
- package/dist/ui/message-parts.js +0 -2
- package/dist/ui/message.d.ts +0 -1
- package/dist/ui/message.js +0 -2
- package/dist/ui/multi-file-diff.d.ts +0 -1
- package/dist/ui/multi-file-diff.js +0 -2
- package/dist/ui/nuxt.d.ts +0 -3
- package/dist/ui/nuxt.js +0 -3
- package/dist/ui/patch-diff.d.ts +0 -1
- package/dist/ui/patch-diff.js +0 -2
- package/dist/ui/prompt-input.d.ts +0 -1
- package/dist/ui/prompt-input.js +0 -2
- package/dist/ui/sync-status.d.ts +0 -1
- package/dist/ui/sync-status.js +0 -2
- package/dist/ui/tool-list.d.ts +0 -1
- package/dist/ui/tool-list.js +0 -2
- package/dist/ui/trace-run.d.ts +0 -1
- package/dist/ui/trace-run.js +0 -2
- package/dist/ui/trace.d.ts +0 -1
- package/dist/ui/trace.js +0 -2
- package/dist/ui/unresolved-file.d.ts +0 -1
- package/dist/ui/unresolved-file.js +0 -2
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import { consoleTimeOfDay } from "../client/format";
|
|
2
3
|
import { Time, today } from "@internationalized/date";
|
|
3
4
|
import { computed, markRaw, nextTick, onBeforeUnmount, onMounted, provide, ref, shallowRef, watch } from "vue";
|
|
4
|
-
import { AvatarStack, ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel } from "@vite-hub/ui";
|
|
5
|
+
import { AvatarStack, ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, CopyButton, Status, useCopy } from "@vite-hub/ui";
|
|
5
6
|
import { onBeforeRouteLeave, onBeforeRouteUpdate, useRoute, useRouter } from "vue-router";
|
|
6
7
|
|
|
7
8
|
import {
|
|
@@ -12,12 +13,14 @@ import {
|
|
|
12
13
|
consoleDocumentScheduleTone,
|
|
13
14
|
consoleDocumentStateColor,
|
|
14
15
|
consoleDocumentStateLabel,
|
|
16
|
+
consoleDocumentText,
|
|
15
17
|
consoleErrorMessage,
|
|
16
18
|
consoleFieldIssues,
|
|
17
19
|
consoleFixFieldsLabel,
|
|
18
20
|
consoleHintText,
|
|
19
21
|
consoleLeaseHolder,
|
|
20
22
|
consoleListQueryFor,
|
|
23
|
+
consoleLocaleName,
|
|
21
24
|
consolePublishedConflicts,
|
|
22
25
|
consolePublishMismatches,
|
|
23
26
|
consoleRevisionLabel,
|
|
@@ -25,6 +28,7 @@ import {
|
|
|
25
28
|
consoleSeoField,
|
|
26
29
|
consoleDocumentFolders,
|
|
27
30
|
consoleSingularLabel,
|
|
31
|
+
consoleTranslationLabel,
|
|
28
32
|
isConsoleConflict,
|
|
29
33
|
isConsoleDocumentId,
|
|
30
34
|
consoleLocalScheduleTime,
|
|
@@ -39,9 +43,11 @@ import {
|
|
|
39
43
|
} from "../client/schema-form";
|
|
40
44
|
import { splitConsoleFrontmatter } from "../client/editor";
|
|
41
45
|
import { useConsoleLiveDocument } from "../client/live";
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
46
|
+
import { isRemoteProject } from "../client/project";
|
|
47
|
+
import { consoleLiveDefinition, consoleLiveLabel, consoleLiveUnavailable, consoleTabSession, useConsoleDocumentPresence } from "../client/presence";
|
|
48
|
+
import { clearConsoleLocalDraft, consolePreviewUrl, consolePreviewWidth, consolePublishPreviewUrl, readConsoleLocalDraft, writeConsoleLocalDraft } from "../client/preview";
|
|
44
49
|
import { useConsoleToast } from "../client/toast";
|
|
50
|
+
import { openConsoleTicket } from "../client/ticket";
|
|
45
51
|
import ConsoleDocumentDiff from "./console-document-diff.vue";
|
|
46
52
|
import ConsoleDocumentHistory from "./console-document-history.vue";
|
|
47
53
|
import ConsoleDocumentPreview from "./console-document-preview.vue";
|
|
@@ -54,15 +60,16 @@ import ConsolePageHeader from "./console-page-header.vue";
|
|
|
54
60
|
import ConsolePresenceAvatars from "./console-presence-avatars.vue";
|
|
55
61
|
import ConsoleRelativeTime from "./console-relative-time.vue";
|
|
56
62
|
import ConsoleSeoPanel from "./console-seo-panel.vue";
|
|
57
|
-
import ConsoleStatus from "./console-status.vue";
|
|
58
63
|
|
|
59
64
|
import type { CalendarDate } from "@internationalized/date";
|
|
60
65
|
import type { RouteLocationRaw } from "vue-router";
|
|
61
66
|
|
|
62
|
-
import type { ConsoleDocument, ConsoleDocumentCollection, ConsoleDocumentRevision, ConsoleDocumentSchedule, ConsoleDocumentsClient, ConsoleDocumentState, ConsoleRawDocument } from "../client/documents";
|
|
67
|
+
import type { ConsoleDocument, ConsoleDocumentCollection, ConsoleDocumentPublished, ConsoleDocumentRevision, ConsoleDocumentSchedule, ConsoleDocumentsClient, ConsoleDocumentState, ConsoleDocumentTranslationState, ConsoleRawDocument } from "../client/documents";
|
|
63
68
|
import type { ConsoleDocumentSetup } from "../definitions";
|
|
64
69
|
import type { ConsoleLivePerson, ConsoleLiveReset } from "../client/live";
|
|
65
70
|
import type { ConsoleLocalVersion, ConsolePreviewView, ConsolePreviewViewport } from "../client/preview";
|
|
71
|
+
import ConsoleConfirm from "./console-confirm.vue";
|
|
72
|
+
import Icon from "./console-icon.vue";
|
|
66
73
|
|
|
67
74
|
/**
|
|
68
75
|
* Edits one document as a page: a large title, the fields as property rows, then the body. Drafts save on their own
|
|
@@ -77,8 +84,15 @@ const props = defineProps<{
|
|
|
77
84
|
collection: ConsoleDocumentCollection;
|
|
78
85
|
/** Undefined for a new document. */
|
|
79
86
|
documentId?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The translation to edit, in a collection with locales. Undefined for the source locale. `client` reads and writes
|
|
89
|
+
* this locale. A translation has no live room, edit lease, Local only mode, preview, or schedule yet.
|
|
90
|
+
*/
|
|
91
|
+
locale?: string;
|
|
80
92
|
/** Where Back leads instead of the collection list, such as the Settings page for a singleton. */
|
|
81
93
|
parent?: { label: string, to: RouteLocationRaw };
|
|
94
|
+
/** Reads the source locale of a translation, to show it before Mark as up to date records it as the source. */
|
|
95
|
+
sourceClient?: ConsoleDocumentsClient;
|
|
82
96
|
/** What the project lacks, such as a runner for scheduled publishes. */
|
|
83
97
|
setup?: ConsoleDocumentSetup;
|
|
84
98
|
}>();
|
|
@@ -170,6 +184,82 @@ let saveQueued = false;
|
|
|
170
184
|
const canWrite = computed(() => props.collection.access.write);
|
|
171
185
|
const canPublish = computed(() => props.collection.access.publish);
|
|
172
186
|
|
|
187
|
+
/** The source locale, the first one, in a collection with locales. */
|
|
188
|
+
const sourceLocale = computed(() => props.collection.locales?.[0]);
|
|
189
|
+
/**
|
|
190
|
+
* The source locale version that a locale without a translation opens with. The editor shows it, and the first edit
|
|
191
|
+
* saves the translation.
|
|
192
|
+
*/
|
|
193
|
+
const untranslated = ref<Version>();
|
|
194
|
+
/** The source digest of `untranslated`. The first save records it, so the translation names the version it shows. */
|
|
195
|
+
const untranslatedSource = ref<string>();
|
|
196
|
+
/** The state of each translation, by locale, from the last read or save. */
|
|
197
|
+
const translations = ref<Record<string, ConsoleDocumentTranslationState>>();
|
|
198
|
+
/** The locales to switch between, source locale first, each with the state of its translation. A new document starts in the source locale. */
|
|
199
|
+
const localeOptions = computed(() => (creating.value ? [] : props.collection.locales ?? []).map((locale) => {
|
|
200
|
+
const source = locale === sourceLocale.value;
|
|
201
|
+
const state = source ? undefined : translations.value?.[locale];
|
|
202
|
+
const label = source ? "Source" : state ? consoleTranslationLabel(state) : undefined;
|
|
203
|
+
return { active: locale === (props.locale ?? sourceLocale.value), locale, state, hint: label ? `${consoleLocaleName(locale)} · ${label}` : consoleLocaleName(locale) };
|
|
204
|
+
}));
|
|
205
|
+
/** Not translated yet, or the source changed after the translation: one line above the page, with a way to the source. */
|
|
206
|
+
const translationNote = computed(() => {
|
|
207
|
+
if (!props.locale || !sourceLocale.value || loading.value) return undefined;
|
|
208
|
+
const source = consoleLocaleName(sourceLocale.value);
|
|
209
|
+
if (untranslated.value) {
|
|
210
|
+
return canWrite.value
|
|
211
|
+
? `Not translated yet · This is the ${source} version. Your first edit saves the ${consoleLocaleName(props.locale)} translation.`
|
|
212
|
+
: `Not translated yet · This is the ${source} version.`;
|
|
213
|
+
}
|
|
214
|
+
if (stale.value) return `Out of date · The ${source} version changed after this translation was made.`;
|
|
215
|
+
return undefined;
|
|
216
|
+
});
|
|
217
|
+
/** A saved translation whose source changed after it was made. */
|
|
218
|
+
const stale = computed(() => Boolean(props.locale && base.value && translations.value?.[props.locale] === "stale"));
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Mark as up to date: the dialog shows the current source version, and confirming saves the translation with that
|
|
222
|
+
* version as its source. A normal save keeps the source version that the translation records.
|
|
223
|
+
*/
|
|
224
|
+
const markOpen = ref(false);
|
|
225
|
+
const markSource = ref<ConsoleDocument | null>();
|
|
226
|
+
const markError = ref<string>();
|
|
227
|
+
const markChanged = ref(false);
|
|
228
|
+
|
|
229
|
+
async function openMarkCurrent(changed = false): Promise<void> {
|
|
230
|
+
if (!props.sourceClient || props.documentId === undefined) return;
|
|
231
|
+
markOpen.value = true;
|
|
232
|
+
markChanged.value = changed;
|
|
233
|
+
markSource.value = undefined;
|
|
234
|
+
markError.value = undefined;
|
|
235
|
+
try {
|
|
236
|
+
markSource.value = await props.sourceClient.get(props.collection.name, props.documentId);
|
|
237
|
+
}
|
|
238
|
+
catch (error) {
|
|
239
|
+
markError.value = consoleErrorMessage(error, "Couldn't read the source version.");
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
async function markCurrent(): Promise<void> {
|
|
244
|
+
const digest = markSource.value?.source?.digest;
|
|
245
|
+
if (!digest) return;
|
|
246
|
+
await save({ sourceDigest: digest });
|
|
247
|
+
if (saveError.value || conflict.value) {
|
|
248
|
+
markOpen.value = false;
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
// The source changed again after the dialog read it: the translation stays out of date, so show the newer source.
|
|
252
|
+
if (stale.value) await openMarkCurrent(true);
|
|
253
|
+
else markOpen.value = false;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function localeRoute(locale: string) {
|
|
257
|
+
const query = { ...route.query };
|
|
258
|
+
if (locale === sourceLocale.value) delete query.locale;
|
|
259
|
+
else query.locale = locale;
|
|
260
|
+
return { query };
|
|
261
|
+
}
|
|
262
|
+
|
|
173
263
|
/**
|
|
174
264
|
* Collaborative or Local only. Collaborative edits save to the shared draft, in the live room where Content installs
|
|
175
265
|
* it. Local-only edits stay in this tab: they never save, never reach the room, and survive a reload. Apply saves
|
|
@@ -193,7 +283,8 @@ const readingConflict = ref(false);
|
|
|
193
283
|
const sharedPublishOpen = ref(false);
|
|
194
284
|
const sharedPublish = ref<{ draft: ConsoleDocument | null, site: ConsoleDocument | null }>();
|
|
195
285
|
const sharedPublishLoading = ref(false);
|
|
196
|
-
|
|
286
|
+
// Local only stores the source locale version of a document, so a translation does not read it.
|
|
287
|
+
if (!creating.value && props.documentId !== undefined && canWrite.value && !props.locale) {
|
|
197
288
|
const stored = readConsoleLocalDraft(window.sessionStorage, props.collection.name, props.documentId);
|
|
198
289
|
if (stored) {
|
|
199
290
|
editing.value = "local";
|
|
@@ -225,17 +316,19 @@ const { dialogOpen: leaseDialogOpen, holder: leaseHolder, others: sessionOthers,
|
|
|
225
316
|
* people type, carets and focused fields show who is where, and the room saves the draft and holds the edit lease for
|
|
226
317
|
* everyone in it. The page edits alone, with the lease, when the codec cannot keep the body or the room does not answer.
|
|
227
318
|
*/
|
|
228
|
-
|
|
319
|
+
// The Realtime room opens a WebSocket on the app origin with the app session, so a Console on another origin edits alone.
|
|
320
|
+
const remote = isRemoteProject();
|
|
321
|
+
const liveDefinition = remote ? undefined : consoleLiveDefinition(props.setup);
|
|
229
322
|
const liveFallback = ref<"document" | "unreachable">();
|
|
230
323
|
const liveRoom = computed(() => {
|
|
231
|
-
|
|
324
|
+
// The room of a document holds its source locale version.
|
|
325
|
+
if (!liveDefinition || !hasBody.value || creating.value || liveFallback.value || local.value || props.documentId === undefined || props.locale) return undefined;
|
|
232
326
|
return single.value ? props.collection.name : `${props.collection.name}/${props.documentId}`;
|
|
233
327
|
});
|
|
234
328
|
const live = liveDefinition
|
|
235
329
|
? useConsoleLiveDocument({
|
|
236
330
|
definition: liveDefinition,
|
|
237
331
|
room: () => liveRoom.value,
|
|
238
|
-
components: () => props.collection.components,
|
|
239
332
|
user: () => sessionPresence.value?.user,
|
|
240
333
|
onReset: onLiveReset,
|
|
241
334
|
})
|
|
@@ -258,6 +351,7 @@ const liveUnavailableReason = computed(() => {
|
|
|
258
351
|
if (!hasBody.value || creating.value) return undefined;
|
|
259
352
|
const live = props.setup?.live;
|
|
260
353
|
if (live && "unavailable" in live) return live.unavailable;
|
|
354
|
+
if (live && remote) return "Live editing needs the app origin, so this Console saves alone. Saves still refuse to overwrite a newer version.";
|
|
261
355
|
if (liveFallback.value === "unreachable") return "The live session did not answer. Saves still refuse to overwrite a newer version.";
|
|
262
356
|
return undefined;
|
|
263
357
|
});
|
|
@@ -315,16 +409,14 @@ function onLiveReset(reset: ConsoleLiveReset): void {
|
|
|
315
409
|
toast.show({ action: { label: "Copy your unsaved edits", onClick: () => void copyLiveUnsaved() }, title: `This ${what} changed while you typed` });
|
|
316
410
|
}
|
|
317
411
|
|
|
412
|
+
const clipboard = useCopy();
|
|
413
|
+
|
|
414
|
+
// The toast action and the menu items have no button to show the check, so a toast confirms the copy.
|
|
318
415
|
async function copyLiveUnsaved(): Promise<void> {
|
|
319
416
|
const unsaved = liveUnsaved.value;
|
|
320
417
|
if (!unsaved) return;
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
toast.show({ title: "Your edits copied" });
|
|
324
|
-
}
|
|
325
|
-
catch {
|
|
326
|
-
toast.error("Couldn't copy. Select the text and copy it.");
|
|
327
|
-
}
|
|
418
|
+
if (await clipboard.copy(unsaved.body)) toast.show({ title: "Your edits copied" });
|
|
419
|
+
else toast.error("Couldn't copy. Select the text and copy it.");
|
|
328
420
|
}
|
|
329
421
|
|
|
330
422
|
/** The field a focused element edits: the top-level field of its property row, or the title. */
|
|
@@ -360,7 +452,8 @@ const fieldPeople = computed(() => {
|
|
|
360
452
|
});
|
|
361
453
|
provide("vitehubFieldPeople", fieldPeople);
|
|
362
454
|
/** Sessions are on, but this tab cannot check them: a failed request, or an owner without the sessions table. */
|
|
363
|
-
|
|
455
|
+
// A translation takes no edit lease, so it has nothing to check.
|
|
456
|
+
const sessionsUnchecked = computed(() => !creating.value && !props.locale && (sessionUnreachable.value || sessionPresence.value?.available === false));
|
|
364
457
|
/** The one line under the header that says who holds the lease and what this tab can do about it. */
|
|
365
458
|
const leaseBanner = computed<{ icon: string, text: string } | undefined>(() => {
|
|
366
459
|
if (!canWrite.value || creating.value || local.value) return;
|
|
@@ -370,7 +463,7 @@ const leaseBanner = computed<{ icon: string, text: string } | undefined>(() => {
|
|
|
370
463
|
return { icon: "i-lucide-lock", text: name === "You" ? "Read-only · You're editing this in another tab" : `Read-only · ${name} is editing` };
|
|
371
464
|
}
|
|
372
465
|
if (leaseMode.value === "taken") {
|
|
373
|
-
const savedTime =
|
|
466
|
+
const savedTime = consoleTimeOfDay(savedAt.value ?? base.value?.updatedAt);
|
|
374
467
|
const by = name === "You" ? "Your other tab took over" : `${name} took over`;
|
|
375
468
|
return { icon: "i-lucide-user-round-pen", text: savedTime ? `${by} · Your changes up to ${savedTime} are saved` : by };
|
|
376
469
|
}
|
|
@@ -400,11 +493,13 @@ const folders = computed(() => consoleDocumentFolders(props.collection));
|
|
|
400
493
|
const folderIndex = ref(0);
|
|
401
494
|
const folderPrefix = computed(() => folders.value[folderIndex.value]?.prefix ?? "");
|
|
402
495
|
const id = computed(() => (creating.value ? (newId.value.trim() ? `${folderPrefix.value}${newId.value.trim()}` : "") : props.documentId!));
|
|
403
|
-
const savedVersion = computed<Version>(() => (base.value ? { body: base.value.body, data: base.value.data } : { body: "", data: consoleSchemaDefaults(props.collection.schema) }));
|
|
496
|
+
const savedVersion = computed<Version>(() => (base.value ? { body: base.value.body, data: base.value.data } : untranslated.value ?? { body: "", data: consoleSchemaDefaults(props.collection.schema) }));
|
|
404
497
|
const dirty = computed(() => {
|
|
405
498
|
// The live room saves on its own, and local-only edits never save: nothing waits on this tab.
|
|
406
499
|
if (liveActive.value || local.value) return false;
|
|
407
500
|
if (creating.value) return Boolean(newId.value.trim()) || stableConsoleJSON(compact(draft.value.data)) !== stableConsoleJSON(compact(savedVersion.value.data)) || Boolean(draft.value.body.trim());
|
|
501
|
+
// A translation that does not exist yet is dirty once it differs from the source version it opened with.
|
|
502
|
+
if (!base.value && untranslated.value) return draft.value.body.trimEnd() !== untranslated.value.body.trimEnd() || stableConsoleJSON(compact(draft.value.data)) !== stableConsoleJSON(compact(untranslated.value.data));
|
|
408
503
|
// A singleton that does not exist yet is dirty once it differs from its defaults.
|
|
409
504
|
if (!base.value) return single.value && state.value !== "deleted" && stableConsoleJSON(compact(draft.value.data)) !== stableConsoleJSON(compact(savedVersion.value.data));
|
|
410
505
|
// The editor writes canonical Markdown, which can drop a trailing newline that the stored file has.
|
|
@@ -427,7 +522,7 @@ const dataDirty = computed(() => Boolean(base.value) && stableConsoleJSON(compac
|
|
|
427
522
|
// Local-only edits keep the editor open when the shared draft is gone, so they are never hidden behind these states.
|
|
428
523
|
const deleted = computed(() => !creating.value && !loading.value && !base.value && !local.value && state.value === "deleted");
|
|
429
524
|
// A singleton that was never saved opens with its defaults instead.
|
|
430
|
-
const missing = computed(() => !single.value && !creating.value && !loading.value && !base.value && !local.value && !loadError.value && state.value !== "deleted");
|
|
525
|
+
const missing = computed(() => !single.value && !creating.value && !loading.value && !base.value && !untranslated.value && !local.value && !loadError.value && state.value !== "deleted");
|
|
431
526
|
// Local-only edits do not need a shared save, but removing the iframe still needs the page tools' exit guard.
|
|
432
527
|
watch(() => dirty.value || localChanged.value || sharedGone.value, value => {
|
|
433
528
|
if (window.parent !== window) window.parent.postMessage({ type: "vitehub:dirty", dirty: value }, location.origin);
|
|
@@ -452,7 +547,7 @@ const idError = computed(() => (creating.value && newId.value && !isConsoleDocum
|
|
|
452
547
|
* Drafts save on their own once they exist. A new document waits for Create, since its id names the file. A singleton
|
|
453
548
|
* has a fixed file, so its first edit creates it.
|
|
454
549
|
*/
|
|
455
|
-
const autosaves = computed(() => !liveActive.value && !local.value && canWrite.value && !creating.value && (Boolean(base.value) || (single.value && state.value !== "deleted")) && !conflict.value && !publishing.value && !restoring.value && session.mayWrite.value);
|
|
550
|
+
const autosaves = computed(() => !liveActive.value && !local.value && canWrite.value && !creating.value && (Boolean(base.value) || Boolean(untranslated.value) || (single.value && state.value !== "deleted")) && !conflict.value && !publishing.value && !restoring.value && session.mayWrite.value);
|
|
456
551
|
const sourceParts = computed(() => (storedFile.value === undefined ? undefined : splitConsoleFrontmatter(storedFile.value)));
|
|
457
552
|
|
|
458
553
|
// "Saving…" shows only when a save takes longer than 200ms, then stays at least 400ms, so fast saves do not flicker.
|
|
@@ -495,6 +590,7 @@ const headerStatus = computed<{ action?: HeaderAction, label: string, pending?:
|
|
|
495
590
|
if (saveError.value && dirty.value) return { action: "retry", label: "Not saved · retry", tone: "error" };
|
|
496
591
|
if (base.value?.conflict) return { action: "site", label: "Changed on the site too", tone: "warning" };
|
|
497
592
|
if (creating.value) return dirty.value ? { label: "Not created yet", tone: "neutral" } : undefined;
|
|
593
|
+
if (untranslated.value) return { label: "Not translated yet", tone: "neutral" };
|
|
498
594
|
if (!state.value) return single.value && !base.value && !loading.value ? { label: "Not saved yet", tone: "neutral" } : undefined;
|
|
499
595
|
const label = dirty.value && !autosaves.value ? "Unsaved" : consoleDocumentStateLabel(state.value);
|
|
500
596
|
return { label, savedAt: savedAt.value ?? base.value?.updatedAt ?? undefined, tone: dirty.value && !autosaves.value ? "warning" : consoleDocumentStateColor(state.value) };
|
|
@@ -537,6 +633,8 @@ const seenDigests = new Set<string>();
|
|
|
537
633
|
|
|
538
634
|
function accept(document: ConsoleDocument): void {
|
|
539
635
|
seenDigests.add(document.digest);
|
|
636
|
+
untranslated.value = undefined;
|
|
637
|
+
translations.value = document.translations;
|
|
540
638
|
base.value = document;
|
|
541
639
|
state.value = document.state;
|
|
542
640
|
schedule.value = document.schedule;
|
|
@@ -558,12 +656,22 @@ function showSavedIssues(document: ConsoleDocument): void {
|
|
|
558
656
|
errorBody = document.body;
|
|
559
657
|
}
|
|
560
658
|
|
|
659
|
+
/** A locale fallback is source content, not a stored translation to compare or overwrite. */
|
|
660
|
+
async function readStoredDocument(documentId: string, ref?: "draft" | "published"): Promise<ConsoleDocument | null> {
|
|
661
|
+
const document = await props.client.get(props.collection.name, documentId, ref);
|
|
662
|
+
return document?.fallback ? null : document;
|
|
663
|
+
}
|
|
664
|
+
|
|
561
665
|
async function load(): Promise<void> {
|
|
562
666
|
if (creating.value) return;
|
|
563
667
|
loading.value = true;
|
|
564
668
|
loadError.value = undefined;
|
|
565
669
|
try {
|
|
566
670
|
const document = await props.client.get(props.collection.name, props.documentId!);
|
|
671
|
+
if (document?.fallback) {
|
|
672
|
+
openUntranslated(document);
|
|
673
|
+
return;
|
|
674
|
+
}
|
|
567
675
|
// In a live room the fields and body come from the room, and local-only edits stay on screen. Only the stored
|
|
568
676
|
// version and its state come from here.
|
|
569
677
|
if (document && (liveActive.value || local.value)) {
|
|
@@ -592,9 +700,33 @@ async function load(): Promise<void> {
|
|
|
592
700
|
}
|
|
593
701
|
}
|
|
594
702
|
|
|
703
|
+
/**
|
|
704
|
+
* A locale without a translation: the editor opens the source version that the read fell back to, and the first save
|
|
705
|
+
* creates the translation. A translation deleted on the draft but still published shows as deleted instead.
|
|
706
|
+
*/
|
|
707
|
+
function openUntranslated(document: ConsoleDocument): void {
|
|
708
|
+
base.value = null;
|
|
709
|
+
state.value = document.state;
|
|
710
|
+
schedule.value = undefined;
|
|
711
|
+
translations.value = document.translations;
|
|
712
|
+
if (document.state === "deleted") {
|
|
713
|
+
untranslated.value = undefined;
|
|
714
|
+
untranslatedSource.value = undefined;
|
|
715
|
+
return;
|
|
716
|
+
}
|
|
717
|
+
// Someone typed while the page loaded: keep their edits and the source version they translate.
|
|
718
|
+
if (untranslated.value && dirty.value) return;
|
|
719
|
+
untranslated.value = { body: document.body, data: clone(document.data) };
|
|
720
|
+
untranslatedSource.value = document.source?.digest;
|
|
721
|
+
draft.value = { body: document.body, data: clone(document.data) };
|
|
722
|
+
}
|
|
723
|
+
|
|
595
724
|
/** The stored version, its state, and its schedule, without the fields and body on screen. */
|
|
596
725
|
function takeState(document: ConsoleDocument): void {
|
|
726
|
+
// Without a translation, the read is the source version, which is not this locale's stored version.
|
|
727
|
+
if (document.fallback) return;
|
|
597
728
|
seenDigests.add(document.digest);
|
|
729
|
+
translations.value = document.translations;
|
|
598
730
|
base.value = document;
|
|
599
731
|
state.value = document.state;
|
|
600
732
|
schedule.value = document.schedule;
|
|
@@ -607,7 +739,7 @@ function takeState(document: ConsoleDocument): void {
|
|
|
607
739
|
async function refreshShared(): Promise<void> {
|
|
608
740
|
if (creating.value || props.documentId === undefined) return;
|
|
609
741
|
try {
|
|
610
|
-
const document = await
|
|
742
|
+
const document = await readStoredDocument(props.documentId);
|
|
611
743
|
if (!local.value) return;
|
|
612
744
|
if (document) takeState(document);
|
|
613
745
|
else base.value = null;
|
|
@@ -621,7 +753,7 @@ async function refreshShared(): Promise<void> {
|
|
|
621
753
|
async function refreshState(): Promise<void> {
|
|
622
754
|
if (creating.value) return;
|
|
623
755
|
try {
|
|
624
|
-
const document = await
|
|
756
|
+
const document = await readStoredDocument(props.documentId!);
|
|
625
757
|
if (document) takeState(document);
|
|
626
758
|
}
|
|
627
759
|
catch {
|
|
@@ -684,7 +816,7 @@ watch(() => draft.value.data, (data) => {
|
|
|
684
816
|
* Saves the draft. An autosave never moves focus or opens a dialog: invalid fields and conflicts show in the header
|
|
685
817
|
* and inline, and saving pauses until the next edit or until someone resolves the conflict.
|
|
686
818
|
*/
|
|
687
|
-
async function save(options: { auto?: boolean, ifDigest?: string | null } = {}): Promise<void> {
|
|
819
|
+
async function save(options: { auto?: boolean, ifDigest?: string | null, sourceDigest?: string } = {}): Promise<void> {
|
|
688
820
|
if (!canWrite.value) return;
|
|
689
821
|
if (liveActive.value) {
|
|
690
822
|
await saveLive();
|
|
@@ -709,11 +841,14 @@ async function save(options: { auto?: boolean, ifDigest?: string | null } = {}):
|
|
|
709
841
|
const failedBefore = Boolean(saveError.value);
|
|
710
842
|
saveError.value = undefined;
|
|
711
843
|
const sent: Version = { body: draft.value.body, data: compact(draft.value.data) };
|
|
844
|
+
// A new translation records the source version it opened with. An existing one keeps its own, unless marked up to date.
|
|
845
|
+
const sourceDigest = options.sourceDigest ?? (untranslated.value ? untranslatedSource.value : undefined);
|
|
712
846
|
try {
|
|
713
847
|
const saved = await props.client.save(props.collection.name, id.value, {
|
|
714
848
|
...sent,
|
|
715
849
|
ifDigest: options.ifDigest !== undefined ? options.ifDigest : base.value?.digest ?? null,
|
|
716
850
|
session: consoleTabSession,
|
|
851
|
+
...(sourceDigest ? { sourceDigest } : {}),
|
|
717
852
|
});
|
|
718
853
|
refusedEdits.value = 0;
|
|
719
854
|
conflict.value = undefined;
|
|
@@ -723,6 +858,8 @@ async function save(options: { auto?: boolean, ifDigest?: string | null } = {}):
|
|
|
723
858
|
seenDigests.add(saved.digest);
|
|
724
859
|
base.value = saved;
|
|
725
860
|
state.value = saved.state;
|
|
861
|
+
untranslated.value = undefined;
|
|
862
|
+
translations.value = saved.translations;
|
|
726
863
|
if (!editedDuringSave) draft.value = { body: saved.body === sent.body ? draft.value.body : saved.body, data: clone(saved.data) };
|
|
727
864
|
showSavedIssues(saved);
|
|
728
865
|
savedAt.value = new Date().toISOString();
|
|
@@ -752,7 +889,7 @@ async function save(options: { auto?: boolean, ifDigest?: string | null } = {}):
|
|
|
752
889
|
if (!options.auto) await focusFirstInvalid();
|
|
753
890
|
}
|
|
754
891
|
else if (isConsoleConflict(error)) {
|
|
755
|
-
const theirs = await
|
|
892
|
+
const theirs = await readStoredDocument(id.value).catch(() => null);
|
|
756
893
|
conflict.value = { mine: sent, theirs };
|
|
757
894
|
const compare = () => {
|
|
758
895
|
conflictOpen.value = true;
|
|
@@ -830,33 +967,25 @@ async function reloadAndEdit(): Promise<void> {
|
|
|
830
967
|
|
|
831
968
|
/** Compares the version the other tab saved with the one on screen. */
|
|
832
969
|
async function compareWithHolder(): Promise<void> {
|
|
833
|
-
const theirs = await
|
|
970
|
+
const theirs = await readStoredDocument(id.value).catch(() => null);
|
|
834
971
|
leaseCompare.value = { mine: { body: draft.value.body, data: compact(draft.value.data) }, theirs };
|
|
835
972
|
leaseCompareOpen.value = true;
|
|
836
973
|
}
|
|
837
974
|
|
|
838
|
-
/**
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
try {
|
|
842
|
-
await navigator.clipboard.writeText(text);
|
|
843
|
-
toast.show({ title: "Your edits copied" });
|
|
844
|
-
}
|
|
845
|
-
catch {
|
|
846
|
-
toast.error("Couldn't copy. Select the text and copy it.");
|
|
847
|
-
}
|
|
975
|
+
/** The edits another tab refused, to copy so that nothing typed is lost. */
|
|
976
|
+
function unsavedText(): string {
|
|
977
|
+
return hasBody.value ? draft.value.body : JSON.stringify(compact(draft.value.data), null, 2);
|
|
848
978
|
}
|
|
849
979
|
|
|
850
|
-
/**
|
|
851
|
-
|
|
980
|
+
/** The local edits as the stored file would hold them: the fields as JSON, then the body. */
|
|
981
|
+
function localText(): string {
|
|
852
982
|
const data = JSON.stringify(compact(draft.value.data), null, 2);
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
}
|
|
983
|
+
return hasBody.value ? `${data}\n\n${draft.value.body}` : data;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
async function copyMenuValue(value: string, label: string): Promise<void> {
|
|
987
|
+
if (await clipboard.copy(value)) toast.show({ title: `${label} copied` });
|
|
988
|
+
else toast.error(`Couldn't copy the ${label.toLowerCase()}.`);
|
|
860
989
|
}
|
|
861
990
|
|
|
862
991
|
/** Resolves once no save is running, such as an autosave that started just before a publish. */
|
|
@@ -956,7 +1085,7 @@ async function publish(): Promise<void> {
|
|
|
956
1085
|
// Publish exactly the draft on screen. A deleted document has no draft to expect.
|
|
957
1086
|
const result = await props.client.publish(props.collection.name, [{ digest: base.value?.digest ?? null, id: id.value }]);
|
|
958
1087
|
const pullRequest = result.pullRequest;
|
|
959
|
-
if (result.documents.length && pullRequest) toast.show({ action:
|
|
1088
|
+
if (result.documents.length && pullRequest) toast.show({ action: pullRequestAction(pullRequest, result.previews, id.value), title: `Pull request #${pullRequest.number} opened. The changes go live when it merges.` });
|
|
960
1089
|
else if (result.documents.length) toast.show({ title: removing ? `${noun.value} removed from the site` : "Changes published" });
|
|
961
1090
|
notifyChanged();
|
|
962
1091
|
previewReloads.value++;
|
|
@@ -1142,7 +1271,7 @@ async function readLocalConflict(): Promise<void> {
|
|
|
1142
1271
|
if (props.documentId === undefined) return;
|
|
1143
1272
|
readingConflict.value = true;
|
|
1144
1273
|
try {
|
|
1145
|
-
const theirs = await
|
|
1274
|
+
const theirs = await readStoredDocument(props.documentId);
|
|
1146
1275
|
if (local.value) localConflict.value = { theirs };
|
|
1147
1276
|
}
|
|
1148
1277
|
catch (error) {
|
|
@@ -1175,8 +1304,8 @@ async function openSharedPublish(): Promise<void> {
|
|
|
1175
1304
|
sharedPublishLoading.value = true;
|
|
1176
1305
|
try {
|
|
1177
1306
|
const [draftDocument, site] = await Promise.all([
|
|
1178
|
-
|
|
1179
|
-
|
|
1307
|
+
readStoredDocument(props.documentId),
|
|
1308
|
+
readStoredDocument(props.documentId, "published"),
|
|
1180
1309
|
]);
|
|
1181
1310
|
sharedPublish.value = { draft: draftDocument, site };
|
|
1182
1311
|
if (draftDocument) takeState(draftDocument);
|
|
@@ -1190,6 +1319,13 @@ async function openSharedPublish(): Promise<void> {
|
|
|
1190
1319
|
}
|
|
1191
1320
|
}
|
|
1192
1321
|
|
|
1322
|
+
/** The toast action after a publish opened a pull request: its signed page preview when this Console can open it, else the pull request. */
|
|
1323
|
+
function pullRequestAction(pullRequest: { url: string }, previews: ConsoleDocumentPublished["previews"], documentId: string | undefined) {
|
|
1324
|
+
const preview = consolePublishPreviewUrl(previews, documentId, remote ? undefined : window.location.origin);
|
|
1325
|
+
const url = preview ?? pullRequest.url;
|
|
1326
|
+
return { label: preview ? "Open preview" : "Open pull request", onClick: () => void window.open(url, "_blank", "noopener") };
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1193
1329
|
/** Publishes exactly the shared draft that the dialog showed. The local edits stay in this tab. */
|
|
1194
1330
|
async function publishShared(): Promise<void> {
|
|
1195
1331
|
const reviewed = sharedPublish.value;
|
|
@@ -1205,7 +1341,7 @@ async function publishShared(): Promise<void> {
|
|
|
1205
1341
|
sharedPublishOpen.value = false;
|
|
1206
1342
|
// With `publish: "pr"` the store opens a pull request: nothing is live until it merges.
|
|
1207
1343
|
const pullRequest = result.pullRequest;
|
|
1208
|
-
if (pullRequest) toast.show({ action:
|
|
1344
|
+
if (pullRequest) toast.show({ action: pullRequestAction(pullRequest, result.previews, props.documentId), title: `Pull request #${pullRequest.number} opened. The shared draft goes live when it merges. Your local edits are still here.` });
|
|
1209
1345
|
else toast.show({ title: "Shared draft published. Your local edits are still here." });
|
|
1210
1346
|
notifyChanged();
|
|
1211
1347
|
previewReloads.value++;
|
|
@@ -1474,19 +1610,17 @@ async function changeMode(next: "rich" | "source"): Promise<void> {
|
|
|
1474
1610
|
mode.value = next;
|
|
1475
1611
|
}
|
|
1476
1612
|
|
|
1613
|
+
// The Rich and Source tabs. Source commits the rich editor first, so the tab change goes through changeMode.
|
|
1614
|
+
const modeItems = [{ label: "Rich", value: "rich" }, { label: "Source", value: "source" }];
|
|
1615
|
+
const modeTab = computed({
|
|
1616
|
+
get: () => mode.value,
|
|
1617
|
+
set: (next: string | number) => void changeMode(next === "source" ? "source" : "rich"),
|
|
1618
|
+
});
|
|
1619
|
+
|
|
1477
1620
|
function toggleMode(): void {
|
|
1478
1621
|
void changeMode(mode.value === "rich" ? "source" : "rich");
|
|
1479
1622
|
}
|
|
1480
1623
|
|
|
1481
|
-
async function onModeKeydown(event: KeyboardEvent): Promise<void> {
|
|
1482
|
-
if (!["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)) return;
|
|
1483
|
-
event.preventDefault();
|
|
1484
|
-
const group = event.currentTarget instanceof Element ? event.currentTarget.closest('[role="radiogroup"]') : null;
|
|
1485
|
-
await changeMode(event.key === "Home" ? "rich" : event.key === "End" ? "source" : mode.value === "rich" ? "source" : "rich");
|
|
1486
|
-
await nextTick();
|
|
1487
|
-
group?.querySelector<HTMLButtonElement>('[aria-checked="true"]')?.focus();
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
1624
|
function onKeydown(event: KeyboardEvent): void {
|
|
1491
1625
|
if (!(event.metaKey || event.ctrlKey) || event.altKey) return;
|
|
1492
1626
|
if (event.key.toLowerCase() === "s") {
|
|
@@ -1528,7 +1662,7 @@ async function openSiteConflict(shared?: ConsoleDocument): Promise<void> {
|
|
|
1528
1662
|
siteConflictError.value = undefined;
|
|
1529
1663
|
siteConflictLoading.value = true;
|
|
1530
1664
|
try {
|
|
1531
|
-
const site = await
|
|
1665
|
+
const site = await readStoredDocument(id.value, "published");
|
|
1532
1666
|
// Only a successful read confirms the version (or its absence) that the person can acknowledge.
|
|
1533
1667
|
siteConflict.value = { site, published: site?.digest ?? null, ...(shared ? { shared } : {}) };
|
|
1534
1668
|
}
|
|
@@ -1645,19 +1779,11 @@ async function resolveSharedSiteConflict(choice: "site" | "draft", site: Console
|
|
|
1645
1779
|
}
|
|
1646
1780
|
}
|
|
1647
1781
|
|
|
1648
|
-
// Title: a large borderless field. Enter moves to the body, as in Notion.
|
|
1649
|
-
function resizeTitle(): void {
|
|
1650
|
-
const input = titleInput.value;
|
|
1651
|
-
if (!input) return;
|
|
1652
|
-
input.style.height = "auto";
|
|
1653
|
-
input.style.height = `${input.scrollHeight}px`;
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1782
|
+
// Title: a large borderless field that grows with its text (`field-sizing: content`). Enter moves to the body, as in Notion.
|
|
1656
1783
|
function onTitleInput(event: Event): void {
|
|
1657
1784
|
if (!titleField.value || !(event.target instanceof HTMLTextAreaElement)) return;
|
|
1658
1785
|
const value = event.target.value.replace(/\r?\n/g, " ");
|
|
1659
1786
|
draft.value = { ...draft.value, data: { ...draft.value.data, [titleField.value.name]: value } };
|
|
1660
|
-
resizeTitle();
|
|
1661
1787
|
}
|
|
1662
1788
|
|
|
1663
1789
|
function onTitleKeydown(event: KeyboardEvent): void {
|
|
@@ -1674,7 +1800,26 @@ function onTitleKeydown(event: KeyboardEvent): void {
|
|
|
1674
1800
|
}
|
|
1675
1801
|
|
|
1676
1802
|
// Side browser: the page of the document, kept open in the URL as `?preview`. Its width is kept per browser.
|
|
1677
|
-
|
|
1803
|
+
// A preview frame renders the source locale draft, so a translation has no preview yet.
|
|
1804
|
+
const previewUrl = computed(() => (props.locale || remote ? undefined : consolePreviewUrl(base.value?.url, window.location.origin)));
|
|
1805
|
+
const openingPreview = ref(false);
|
|
1806
|
+
/**
|
|
1807
|
+
* A Console on another origin cannot frame the page. It opens the page with its saved draft in a new tab, with a
|
|
1808
|
+
* one-time link that the app redeems. Edits that are not saved yet do not show there.
|
|
1809
|
+
*/
|
|
1810
|
+
async function openPreviewTab(): Promise<void> {
|
|
1811
|
+
if (!props.documentId || openingPreview.value) return;
|
|
1812
|
+
openingPreview.value = true;
|
|
1813
|
+
try {
|
|
1814
|
+
await openConsoleTicket(() => props.client.previewLink(props.collection.name, props.documentId!));
|
|
1815
|
+
}
|
|
1816
|
+
catch (error) {
|
|
1817
|
+
toast.error(consoleErrorMessage(error, "The Console could not open the preview."));
|
|
1818
|
+
}
|
|
1819
|
+
finally {
|
|
1820
|
+
openingPreview.value = false;
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1678
1823
|
const previewOpen = computed(() => route.query.preview !== undefined && !creating.value && Boolean(previewUrl.value));
|
|
1679
1824
|
const previewView = ref<ConsolePreviewView>("draft");
|
|
1680
1825
|
const previewViewport = ref<ConsolePreviewViewport>("desktop");
|
|
@@ -1756,7 +1901,7 @@ async function onPreviewSelect(field: string): Promise<void> {
|
|
|
1756
1901
|
const row = document.querySelector<HTMLElement>(`.vitehub-document-editor [data-vitehub-field="field-${field.replace(/[^a-zA-Z0-9_-]/g, "-")}"]`);
|
|
1757
1902
|
if (!row) return;
|
|
1758
1903
|
row.scrollIntoView({ block: "center" });
|
|
1759
|
-
row.animate([{ backgroundColor: "color-mix(in oklab, var(--
|
|
1904
|
+
row.animate([{ backgroundColor: "color-mix(in oklab, var(--primary) 14%, transparent)" }, { backgroundColor: "transparent" }], { duration: 1200, easing: "ease-out" });
|
|
1760
1905
|
if (!inPlace) row.querySelector<HTMLElement>("input, textarea, select, button, [contenteditable='true']")?.focus({ preventScroll: true });
|
|
1761
1906
|
}
|
|
1762
1907
|
|
|
@@ -1764,7 +1909,6 @@ async function onPreviewSelect(field: string): Promise<void> {
|
|
|
1764
1909
|
function onPreviewEdit(field: string, value: string): void {
|
|
1765
1910
|
if (!editable.value || !previewTextFields.value.includes(field)) return;
|
|
1766
1911
|
draft.value = { ...draft.value, data: { ...draft.value.data, [field]: value } };
|
|
1767
|
-
if (titleField.value?.name === field) void nextTick(resizeTitle);
|
|
1768
1912
|
}
|
|
1769
1913
|
|
|
1770
1914
|
function setPreviewWidth(width: number): void {
|
|
@@ -1830,6 +1974,11 @@ function setPanel(next: "history" | "outline" | undefined): void {
|
|
|
1830
1974
|
else delete query.panel;
|
|
1831
1975
|
void router.replace({ query });
|
|
1832
1976
|
}
|
|
1977
|
+
const panelItems = computed(() => [...(hasBody.value ? [{ label: "Outline", value: "outline" }] : []), { label: "History", value: "history" }]);
|
|
1978
|
+
const panelTab = computed({
|
|
1979
|
+
get: () => panel.value,
|
|
1980
|
+
set: (next: string | number | undefined) => setPanel(next === "outline" ? "outline" : "history"),
|
|
1981
|
+
});
|
|
1833
1982
|
function openHistory(): void {
|
|
1834
1983
|
if (window.matchMedia("(min-width: 1024px)").matches) setPanel("history");
|
|
1835
1984
|
else historyOpen.value = true;
|
|
@@ -1838,7 +1987,6 @@ function openHistory(): void {
|
|
|
1838
1987
|
// The id follows the title until someone edits the id.
|
|
1839
1988
|
watch(() => (titleField.value ? draft.value.data[titleField.value.name] : undefined), (value) => {
|
|
1840
1989
|
if (creating.value && !idEdited.value) newId.value = consoleDocumentSlug(String(value ?? ""));
|
|
1841
|
-
void nextTick(resizeTitle);
|
|
1842
1990
|
});
|
|
1843
1991
|
watch(historyOpen, (open) => {
|
|
1844
1992
|
if (open && !revisions.value.length) void loadRevisions();
|
|
@@ -1876,13 +2024,15 @@ onBeforeRouteLeave(beforeLeaveDocument);
|
|
|
1876
2024
|
onBeforeRouteUpdate((to, from) => {
|
|
1877
2025
|
// The document, collection list and other documents share a route record.
|
|
1878
2026
|
if (local.value && to.path !== from.path) return beforeLeaveDocument();
|
|
2027
|
+
// Another locale opens a new editor, so pending edits save first.
|
|
2028
|
+
if (to.query.locale !== from.query.locale) return beforeLeaveDocument();
|
|
1879
2029
|
});
|
|
1880
2030
|
onMounted(() => {
|
|
1881
2031
|
window.addEventListener("keydown", onKeydown);
|
|
1882
2032
|
window.addEventListener("beforeunload", onBeforeUnload);
|
|
1883
2033
|
const saved: unknown = window.history.state?.vitehubDocumentSavedAt;
|
|
1884
2034
|
if (String(saved) === saved) savedAt.value = saved;
|
|
1885
|
-
void load()
|
|
2035
|
+
void load();
|
|
1886
2036
|
// A new document starts at its title.
|
|
1887
2037
|
if (creating.value) void nextTick(() => titleInput.value?.focus());
|
|
1888
2038
|
});
|
|
@@ -1901,8 +2051,8 @@ const menuItems = computed(() => [[
|
|
|
1901
2051
|
...(canPublish.value && schedule.value
|
|
1902
2052
|
? [{ label: schedule.value.status === "failed" ? "Dismiss failed schedule" : "Cancel schedule", icon: "i-lucide-calendar-x", onSelect: () => void unscheduleDraft() }]
|
|
1903
2053
|
: []),
|
|
1904
|
-
{ label: "Copy id", icon: "i-lucide-copy", onSelect: () => void
|
|
1905
|
-
...(base.value ? [{ label: "Copy path", icon: "i-lucide-folder", onSelect: () => void
|
|
2054
|
+
{ label: "Copy id", icon: "i-lucide-copy", onSelect: () => void copyMenuValue(id.value, "Id") },
|
|
2055
|
+
...(base.value ? [{ label: "Copy path", icon: "i-lucide-folder", onSelect: () => void copyMenuValue(base.value!.path, "Path") }] : []),
|
|
1906
2056
|
], ...(editable.value && !local.value && base.value && !single.value ? [[{ label: "Delete", icon: "i-lucide-trash-2", color: "error" as const, onSelect: () => (deleteOpen.value = true) }]] : [])]);
|
|
1907
2057
|
</script>
|
|
1908
2058
|
|
|
@@ -1912,9 +2062,28 @@ const menuItems = computed(() => [[
|
|
|
1912
2062
|
<div class="flex min-w-0 flex-1 flex-col">
|
|
1913
2063
|
<!-- A singleton named like its page, such as Settings, shows the name once. -->
|
|
1914
2064
|
<ConsolePageHeader :title="title" :back="back" :trail="back && back.label !== title ? [back] : []">
|
|
1915
|
-
<template v-if="schedule" #title-trailing>
|
|
1916
|
-
<
|
|
1917
|
-
<
|
|
2065
|
+
<template v-if="schedule || localeOptions.length" #title-trailing>
|
|
2066
|
+
<nav v-if="localeOptions.length" class="flex shrink-0 items-center rounded-md p-0.5 ring-1 ring-default ring-inset" aria-label="Locales">
|
|
2067
|
+
<UTooltip v-for="option in localeOptions" :key="option.locale" :text="option.hint" :content="{ side: 'bottom' }">
|
|
2068
|
+
<RouterLink
|
|
2069
|
+
:to="localeRoute(option.locale)"
|
|
2070
|
+
class="flex h-6 items-center gap-1.5 rounded-[4px] px-2 text-xs font-normal uppercase"
|
|
2071
|
+
:class="option.active ? 'bg-elevated text-highlighted' : 'text-muted hover:text-highlighted'"
|
|
2072
|
+
:aria-current="option.active ? 'page' : undefined"
|
|
2073
|
+
:aria-label="option.hint"
|
|
2074
|
+
>
|
|
2075
|
+
{{ option.locale }}
|
|
2076
|
+
<span
|
|
2077
|
+
v-if="option.state"
|
|
2078
|
+
class="size-1.5 shrink-0 rounded-full"
|
|
2079
|
+
:class="option.state === 'current' ? 'bg-success' : option.state === 'stale' ? 'bg-warning' : 'ring-1 ring-(--ui-text-dimmed) ring-inset'"
|
|
2080
|
+
aria-hidden="true"
|
|
2081
|
+
/>
|
|
2082
|
+
</RouterLink>
|
|
2083
|
+
</UTooltip>
|
|
2084
|
+
</nav>
|
|
2085
|
+
<UTooltip v-if="schedule" :text="scheduleHint" :content="{ side: 'bottom' }">
|
|
2086
|
+
<Status class="shrink-0" :tone="consoleDocumentScheduleTone(schedule)" :label="consoleDocumentScheduleLabel(schedule)" />
|
|
1918
2087
|
</UTooltip>
|
|
1919
2088
|
</template>
|
|
1920
2089
|
<template #right>
|
|
@@ -1929,38 +2098,37 @@ const menuItems = computed(() => [[
|
|
|
1929
2098
|
</template>
|
|
1930
2099
|
<ConsolePresenceAvatars v-else-if="sessionOthers.length" class="me-1" :sessions="sessionOthers" :user="sessionPresence?.user" />
|
|
1931
2100
|
<UTooltip v-if="!liveActive && liveUnavailableReason && sessionOthers.length" :text="liveUnavailableReason" :content="{ side: 'bottom' }">
|
|
1932
|
-
<span class="me-1 hidden lg:inline-flex"><
|
|
2101
|
+
<span class="me-1 hidden lg:inline-flex"><Status :label="consoleLiveUnavailable" /></span>
|
|
1933
2102
|
</UTooltip>
|
|
1934
2103
|
<UTooltip v-if="sessionsUnchecked" :text="sessionPresence?.reason ?? 'The Console could not reach the server. Saves still refuse to overwrite a newer version.'" :content="{ side: 'bottom' }">
|
|
1935
|
-
<span class="me-1 hidden lg:inline-flex"><
|
|
2104
|
+
<span class="me-1 hidden lg:inline-flex"><Status label="Can't check who else is editing" /></span>
|
|
1936
2105
|
</UTooltip>
|
|
1937
2106
|
<span class="me-1 inline-flex" role="status" aria-live="polite">
|
|
1938
|
-
<
|
|
2107
|
+
<UButton
|
|
1939
2108
|
v-if="headerStatus?.action && !savingVisible"
|
|
1940
|
-
|
|
1941
|
-
|
|
2109
|
+
variant="ghost"
|
|
2110
|
+
size="xs"
|
|
1942
2111
|
@click="onHeaderAction(headerStatus.action)"
|
|
1943
2112
|
>
|
|
1944
|
-
<
|
|
1945
|
-
</
|
|
2113
|
+
<Status :label="headerStatus.label" :tone="headerStatus.tone" class="underline decoration-dotted underline-offset-4" />
|
|
2114
|
+
</UButton>
|
|
1946
2115
|
<UTooltip v-else-if="headerStatus" :text="creating ? 'Create saves the first draft' : 'Drafts save as you type. ⌘S saves now.'" :content="{ side: 'bottom' }">
|
|
1947
|
-
|
|
1948
|
-
|
|
2116
|
+
<!-- On a phone only the dot shows, so the title keeps its place. Screen readers still hear the label. -->
|
|
2117
|
+
<Status :label="headerStatus.label" :tone="headerStatus.tone" :pulse="headerStatus.pending">
|
|
2118
|
+
<span class="max-sm:sr-only">{{ headerStatus.label }}<template v-if="headerStatus.savedAt">
|
|
1949
2119
|
· <ConsoleRelativeTime :value="headerStatus.savedAt" prefix="Saved" seconds />
|
|
1950
|
-
</template>
|
|
1951
|
-
</
|
|
2120
|
+
</template></span>
|
|
2121
|
+
</Status>
|
|
1952
2122
|
</UTooltip>
|
|
1953
2123
|
</span>
|
|
1954
2124
|
<UDropdownMenu
|
|
1955
|
-
v-if="canWrite && (base || local) && !creating && !missing && !deleted && !loadError"
|
|
2125
|
+
v-if="canWrite && (base || local) && !creating && !missing && !deleted && !loadError && !locale"
|
|
1956
2126
|
:items="editingItems"
|
|
1957
2127
|
:content="{ align: 'end' }"
|
|
1958
2128
|
:ui="{ content: 'w-72', itemDescription: 'whitespace-normal!' }"
|
|
1959
2129
|
>
|
|
1960
2130
|
<UButton
|
|
1961
|
-
size="sm"
|
|
1962
2131
|
variant="ghost"
|
|
1963
|
-
:color="local ? 'warning' : 'neutral'"
|
|
1964
2132
|
:icon="local ? 'i-lucide-laptop' : 'i-lucide-users'"
|
|
1965
2133
|
trailing-icon="i-lucide-chevron-down"
|
|
1966
2134
|
:aria-label="`Editing: ${local ? 'Local only' : 'Collaborative'}`"
|
|
@@ -1969,44 +2137,45 @@ const menuItems = computed(() => [[
|
|
|
1969
2137
|
<span class="hidden sm:inline">{{ local ? "Local only" : "Collaborative" }}</span>
|
|
1970
2138
|
</UButton>
|
|
1971
2139
|
</UDropdownMenu>
|
|
1972
|
-
|
|
2140
|
+
<!-- The preview frame shows pages of the Console origin. A Console on another origin opens the page in a new tab. -->
|
|
2141
|
+
<UTooltip v-if="remote && base && !creating && !missing && !locale" :text="base.url ? 'Open the page with the saved draft in a new tab' : 'Set url on the collection to preview its pages'" :content="{ side: 'bottom' }">
|
|
2142
|
+
<UButton
|
|
2143
|
+
variant="ghost"
|
|
2144
|
+
icon="i-lucide-external-link"
|
|
2145
|
+
aria-label="Open the preview in a new tab"
|
|
2146
|
+
:disabled="!base.url"
|
|
2147
|
+
:loading="openingPreview"
|
|
2148
|
+
@click="openPreviewTab"
|
|
2149
|
+
/>
|
|
2150
|
+
</UTooltip>
|
|
2151
|
+
<UTooltip v-if="!remote && base && !creating && !missing && !locale" :text="previewUrl ? 'Preview the page' : 'Set url on the collection to preview its pages'" :content="{ side: 'bottom' }">
|
|
1973
2152
|
<UButton
|
|
1974
2153
|
variant="ghost"
|
|
1975
|
-
size="sm"
|
|
1976
2154
|
icon="i-lucide-app-window"
|
|
1977
2155
|
aria-label="Preview the page"
|
|
1978
2156
|
:aria-pressed="previewOpen"
|
|
1979
2157
|
:disabled="!previewUrl"
|
|
1980
|
-
:active="previewOpen"
|
|
1981
|
-
active-variant="soft"
|
|
1982
2158
|
@click="setPreview(!previewOpen)"
|
|
1983
2159
|
/>
|
|
1984
2160
|
</UTooltip>
|
|
1985
|
-
<
|
|
2161
|
+
<UTooltip
|
|
1986
2162
|
v-if="hasBody && !creating && !loading && !missing && !deleted && !loadError"
|
|
1987
|
-
|
|
1988
|
-
:
|
|
1989
|
-
|
|
1990
|
-
aria-label="Editing mode"
|
|
2163
|
+
text="Rich edits the page. Source shows the stored Markdown file."
|
|
2164
|
+
:kbds="['meta', '/']"
|
|
2165
|
+
:content="{ side: 'bottom' }"
|
|
1991
2166
|
>
|
|
1992
|
-
<
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
>
|
|
2003
|
-
{{ option.label }}
|
|
2004
|
-
</button>
|
|
2005
|
-
</UTooltip>
|
|
2006
|
-
</div>
|
|
2007
|
-
<UButton v-if="creating && canWrite" size="sm" label="Create" :loading="saving" @click="save()" />
|
|
2167
|
+
<UTabs
|
|
2168
|
+
v-model="modeTab"
|
|
2169
|
+
:items="modeItems"
|
|
2170
|
+
:content="false"
|
|
2171
|
+
class="hidden self-end"
|
|
2172
|
+
:class="previewOpen ? '' : 'md:flex'"
|
|
2173
|
+
aria-label="Editing mode"
|
|
2174
|
+
/>
|
|
2175
|
+
</UTooltip>
|
|
2176
|
+
<UButton v-if="creating && canWrite" label="Create" :loading="saving" @click="save()" />
|
|
2008
2177
|
<!-- A split button: Publish now, or Schedule… from the arrow. A deleted document publishes its deletion now only. -->
|
|
2009
|
-
<UFieldGroup v-else-if="publishable"
|
|
2178
|
+
<UFieldGroup v-else-if="publishable">
|
|
2010
2179
|
<UTooltip :text="errorCount ? consoleFixFieldsLabel(errorCount) : undefined" :disabled="!errorCount" :content="{ side: 'bottom' }">
|
|
2011
2180
|
<UButton
|
|
2012
2181
|
:label="state === 'deleted' ? 'Publish deletion' : local ? 'Publish shared draft' : 'Publish'"
|
|
@@ -2017,7 +2186,7 @@ const menuItems = computed(() => [[
|
|
|
2017
2186
|
/>
|
|
2018
2187
|
</UTooltip>
|
|
2019
2188
|
<UDropdownMenu
|
|
2020
|
-
v-if="state !== 'deleted' && !local"
|
|
2189
|
+
v-if="state !== 'deleted' && !local && !locale"
|
|
2021
2190
|
:items="publishMenu"
|
|
2022
2191
|
:content="{ align: 'end' }"
|
|
2023
2192
|
:ui="{ content: 'max-w-72', itemDescription: 'whitespace-normal!' }"
|
|
@@ -2029,23 +2198,21 @@ const menuItems = computed(() => [[
|
|
|
2029
2198
|
<UButton
|
|
2030
2199
|
class="hidden lg:inline-flex"
|
|
2031
2200
|
variant="ghost"
|
|
2032
|
-
size="sm"
|
|
2033
2201
|
icon="i-lucide-panel-right"
|
|
2034
2202
|
aria-label="Toggle the side panel"
|
|
2035
|
-
:
|
|
2036
|
-
active-variant="soft"
|
|
2203
|
+
:aria-pressed="Boolean(panel)"
|
|
2037
2204
|
@click="setPanel(panel ? undefined : hasBody ? 'outline' : 'history')"
|
|
2038
2205
|
/>
|
|
2039
2206
|
</UTooltip>
|
|
2040
2207
|
<UDropdownMenu v-if="!missing" :items="menuItems" :content="{ align: 'end' }">
|
|
2041
|
-
<UButton variant="ghost"
|
|
2208
|
+
<UButton variant="ghost" icon="i-lucide-ellipsis" aria-label="More actions" />
|
|
2042
2209
|
</UDropdownMenu>
|
|
2043
2210
|
</template>
|
|
2044
2211
|
</ConsolePageHeader>
|
|
2045
2212
|
|
|
2046
2213
|
<p class="sr-only" role="status">{{ loading ? 'Loading document…' : '' }}</p>
|
|
2047
2214
|
<div class="flex min-h-0 flex-1">
|
|
2048
|
-
<div class="vitehub-document-editor min-h-0 min-w-0 flex-1 overflow-y-auto" :aria-busy="loading">
|
|
2215
|
+
<div class="vitehub-document-editor flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto" :aria-busy="loading">
|
|
2049
2216
|
<ConsoleState
|
|
2050
2217
|
v-if="loadError"
|
|
2051
2218
|
class="m-4"
|
|
@@ -2056,7 +2223,7 @@ const menuItems = computed(() => [[
|
|
|
2056
2223
|
<ConsoleLoading v-else-if="loading" label="Loading document…" />
|
|
2057
2224
|
<UEmpty
|
|
2058
2225
|
v-else-if="missing"
|
|
2059
|
-
class="py-16"
|
|
2226
|
+
class="flex-1 py-16"
|
|
2060
2227
|
variant="naked"
|
|
2061
2228
|
icon="i-lucide-file-question"
|
|
2062
2229
|
:title="`This ${noun.toLowerCase()} does not exist`"
|
|
@@ -2065,55 +2232,77 @@ const menuItems = computed(() => [[
|
|
|
2065
2232
|
/>
|
|
2066
2233
|
<UEmpty
|
|
2067
2234
|
v-else-if="deleted"
|
|
2068
|
-
class="py-16"
|
|
2235
|
+
class="flex-1 py-16"
|
|
2069
2236
|
variant="naked"
|
|
2070
2237
|
icon="i-lucide-file-x"
|
|
2071
2238
|
title="Deleted from the draft"
|
|
2072
2239
|
description="It stays on the published site until you publish the deletion. Open History to restore an earlier version."
|
|
2073
|
-
:actions="[{ label: 'History', icon: 'i-lucide-history',
|
|
2240
|
+
:actions="[{ label: 'History', icon: 'i-lucide-history', variant: 'outline', onClick: () => (historyOpen = true) }]"
|
|
2074
2241
|
/>
|
|
2075
2242
|
<article v-else class="mx-auto w-full max-w-[52rem] px-6 pt-10 pb-8 sm:px-16 sm:pt-14">
|
|
2076
|
-
<
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2243
|
+
<UAlert
|
|
2244
|
+
v-if="local"
|
|
2245
|
+
class="mb-6"
|
|
2246
|
+
color="warning"
|
|
2247
|
+
icon="i-lucide-laptop"
|
|
2248
|
+
title="Local only"
|
|
2249
|
+
role="status"
|
|
2250
|
+
aria-live="polite"
|
|
2251
|
+
>
|
|
2252
|
+
<template #description>
|
|
2253
|
+
<p>Your edits stay in this tab. Nobody sees them, and nothing saves until you apply them.</p>
|
|
2254
|
+
<p v-if="sharedGone" class="mt-1">
|
|
2255
|
+
The shared draft was deleted after your local edits started. They are still here. Copy them, apply them to create the {{ single ? "page" : noun.toLowerCase() }} again after a comparison, or discard them.
|
|
2256
|
+
</p>
|
|
2257
|
+
<p v-if="localLeaseHolder" class="mt-1">{{ localLeaseHolder }} Apply when they stop.</p>
|
|
2258
|
+
<p v-if="sharedMoved" class="mt-1">Someone saved the shared draft after your local edits started. Apply compares them before it saves.</p>
|
|
2259
|
+
<p v-if="localStorageFailed" class="mt-1 text-error">This tab can't keep your local edits after a reload. Apply or copy them before you leave.</p>
|
|
2260
|
+
</template>
|
|
2261
|
+
<template #actions>
|
|
2262
|
+
<CopyButton v-if="sharedGone" :value="localText" size="xs" label="Copy" aria-label="Copy your local edits" />
|
|
2263
|
+
<UButton size="xs" variant="ghost" label="Discard…" :disabled="(!localChanged && !sharedGone) || applyingLocal" @click="localExitOpen = true" />
|
|
2264
|
+
<UButton size="xs" variant="outline" label="Apply to shared draft" :disabled="!localChanged && !sharedGone" :loading="applyingLocal" @click="applyLocal()" />
|
|
2265
|
+
</template>
|
|
2266
|
+
</UAlert>
|
|
2267
|
+
<UAlert
|
|
2268
|
+
v-if="leaseBanner"
|
|
2269
|
+
class="mb-6"
|
|
2270
|
+
color="neutral"
|
|
2271
|
+
variant="outline"
|
|
2272
|
+
:icon="leaseBanner.icon"
|
|
2273
|
+
role="status"
|
|
2274
|
+
aria-live="polite"
|
|
2275
|
+
>
|
|
2276
|
+
<template #description>
|
|
2277
|
+
<p>{{ leaseBanner.text }}</p>
|
|
2278
|
+
<p v-if="leaseMode === 'taken' && refusedEdits" class="mt-1 text-muted">{{ refusedEdits === 1 ? "1 edit wasn't saved." : `${refusedEdits} edits weren't saved.` }}</p>
|
|
2279
|
+
</template>
|
|
2280
|
+
<template v-if="leaseMode === 'blocked' || leaseMode === 'taken' || leaseMode === 'left'" #actions>
|
|
2095
2281
|
<template v-if="leaseMode === 'blocked'">
|
|
2096
|
-
<UButton v-if="holderLive && liveDefinition" size="xs"
|
|
2097
|
-
<UButton v-else-if="!holderLive" size="xs"
|
|
2282
|
+
<UButton v-if="holderLive && liveDefinition" size="xs" variant="outline" label="Join" @click="joinLive" />
|
|
2283
|
+
<UButton v-else-if="!holderLive" size="xs" variant="outline" label="Take over" @click="takeOver" />
|
|
2098
2284
|
</template>
|
|
2099
2285
|
<template v-else-if="leaseMode === 'taken'">
|
|
2100
|
-
<
|
|
2101
|
-
<UButton size="xs"
|
|
2286
|
+
<CopyButton v-if="refusedEdits" :value="unsavedText" size="xs" label="Copy unsaved edits" />
|
|
2287
|
+
<UButton size="xs" variant="ghost" label="Compare" @click="compareWithHolder" />
|
|
2288
|
+
<UButton size="xs" variant="outline" label="Take back" @click="takeOver" />
|
|
2102
2289
|
</template>
|
|
2103
|
-
<UButton v-else
|
|
2104
|
-
</
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
</
|
|
2290
|
+
<UButton v-else size="xs" variant="outline" label="Reload and edit" @click="reloadAndEdit" />
|
|
2291
|
+
</template>
|
|
2292
|
+
</UAlert>
|
|
2293
|
+
<div v-if="translationNote" class="mb-6 flex flex-wrap items-center gap-x-3 gap-y-1.5 rounded-md px-3 py-2 text-[13px] ring-1 ring-default ring-inset" role="status">
|
|
2294
|
+
<Icon name="i-lucide-languages" class="size-4 shrink-0 text-muted" aria-hidden="true" />
|
|
2295
|
+
<span class="min-w-0 flex-1 text-default">{{ translationNote }}</span>
|
|
2296
|
+
<UButton v-if="sourceLocale" size="xs" variant="outline" :label="`Open ${consoleLocaleName(sourceLocale)}`" :to="localeRoute(sourceLocale)" />
|
|
2297
|
+
<UButton v-if="stale && canWrite && sourceClient" size="xs" variant="outline" label="Mark as up to date" @click="openMarkCurrent()" />
|
|
2109
2298
|
</div>
|
|
2110
2299
|
<p v-if="!canWrite" class="mb-6 flex items-center gap-2 text-[13px] text-muted">
|
|
2111
|
-
<
|
|
2300
|
+
<Icon name="i-lucide-lock" class="size-4 shrink-0" aria-hidden="true" />
|
|
2112
2301
|
Read-only. You can read drafts of this collection but not change them.
|
|
2113
2302
|
</p>
|
|
2114
2303
|
|
|
2115
2304
|
<template v-if="mode === 'rich'">
|
|
2116
|
-
<h1 v-if="single" class="mb-4 text-[32px]/[40px] font-semibold tracking-[-0.
|
|
2305
|
+
<h1 v-if="single" class="mb-4 text-[32px]/[40px] font-semibold tracking-[-0.015em] text-highlighted">{{ collection.label }}</h1>
|
|
2117
2306
|
<div v-else-if="titleField" class="mb-4">
|
|
2118
2307
|
<label :for="`field-${titleField.name}`" class="sr-only">{{ titleField.label }}</label>
|
|
2119
2308
|
<textarea
|
|
@@ -2121,7 +2310,7 @@ const menuItems = computed(() => [[
|
|
|
2121
2310
|
ref="titleInput"
|
|
2122
2311
|
:value="String(draft.data[titleField.name] ?? '')"
|
|
2123
2312
|
rows="1"
|
|
2124
|
-
class="block w-full
|
|
2313
|
+
class="block w-full field-sizing-content resize-none bg-transparent text-[32px]/[40px] font-semibold tracking-[-0.015em] text-highlighted placeholder:text-dimmed disabled:cursor-default"
|
|
2125
2314
|
:placeholder="`${noun} title`"
|
|
2126
2315
|
:disabled="!editable"
|
|
2127
2316
|
:aria-invalid="fieldErrors[titleField.name] ? 'true' : undefined"
|
|
@@ -2152,20 +2341,18 @@ const menuItems = computed(() => [[
|
|
|
2152
2341
|
<USelect
|
|
2153
2342
|
id="field-folder"
|
|
2154
2343
|
v-model="folderIndex"
|
|
2155
|
-
class="w-full"
|
|
2344
|
+
class="w-full font-mono"
|
|
2156
2345
|
variant="ghost"
|
|
2157
2346
|
:items="folders.map((entry, index) => ({ label: entry.folder || '/', value: index }))"
|
|
2158
|
-
:ui="{ base: 'font-mono text-xs' }"
|
|
2159
2347
|
/>
|
|
2160
2348
|
</ConsolePropertyRow>
|
|
2161
2349
|
<ConsolePropertyRow v-if="creating" icon="i-lucide-file" label="Id" control="field-id" :error="idError" :missing="!newId.trim() && !idError">
|
|
2162
2350
|
<UInput
|
|
2163
2351
|
id="field-id"
|
|
2164
2352
|
v-model="newId"
|
|
2165
|
-
class="w-full"
|
|
2353
|
+
class="w-full font-mono"
|
|
2166
2354
|
variant="ghost"
|
|
2167
2355
|
placeholder="hello-world"
|
|
2168
|
-
:ui="{ base: 'bg-transparent hover:bg-transparent focus:bg-transparent ring-0 hover:ring-1 hover:ring-inset hover:ring-(--ui-border) focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-(--ui-border-accented) font-mono text-xs', trailing: 'pe-2' }"
|
|
2169
2356
|
:aria-invalid="idError ? 'true' : undefined"
|
|
2170
2357
|
:aria-describedby="idError ? 'field-id-error' : 'field-id-hint'"
|
|
2171
2358
|
@update:model-value="idEdited = true"
|
|
@@ -2199,13 +2386,13 @@ const menuItems = computed(() => [[
|
|
|
2199
2386
|
|
|
2200
2387
|
<section v-else class="mb-4 grid gap-3" aria-label="Stored file">
|
|
2201
2388
|
<div class="flex items-center gap-2 text-xs text-muted">
|
|
2202
|
-
<
|
|
2389
|
+
<Icon name="i-lucide-file-code" class="size-4 shrink-0" aria-hidden="true" />
|
|
2203
2390
|
<span class="font-mono text-highlighted">{{ base?.path }}</span>
|
|
2204
2391
|
<span class="ms-auto">{{ liveActive ? "Read-only during a live session. Edit in Rich." : dataDirty ? "Fields are saving…" : "Fields are read-only here. Edit them in Rich." }}</span>
|
|
2205
2392
|
</div>
|
|
2206
2393
|
<pre
|
|
2207
2394
|
v-if="sourceParts?.frontmatter"
|
|
2208
|
-
class="overflow-x-auto rounded-
|
|
2395
|
+
class="overflow-x-auto rounded-lg bg-muted px-4 py-3 font-mono text-[13px]/6 text-muted select-text"
|
|
2209
2396
|
aria-label="Frontmatter, read-only"
|
|
2210
2397
|
>{{ sourceParts.frontmatter.trimEnd() }}</pre>
|
|
2211
2398
|
</section>
|
|
@@ -2228,7 +2415,7 @@ const menuItems = computed(() => [[
|
|
|
2228
2415
|
@outline="outline = $event"
|
|
2229
2416
|
/>
|
|
2230
2417
|
<div v-else-if="hasBody && liveRoom" v-show="mode === 'rich'" class="flex min-h-[40vh] items-start gap-2 text-[13px] text-muted" role="status">
|
|
2231
|
-
<
|
|
2418
|
+
<Icon name="i-lucide-loader-circle" class="mt-0.5 size-4 animate-spin" aria-hidden="true" />
|
|
2232
2419
|
Joining the live session…
|
|
2233
2420
|
</div>
|
|
2234
2421
|
<ConsoleMarkdownEditor
|
|
@@ -2256,41 +2443,30 @@ const menuItems = computed(() => [[
|
|
|
2256
2443
|
autoresize
|
|
2257
2444
|
:rows="16"
|
|
2258
2445
|
variant="none"
|
|
2259
|
-
class="w-full"
|
|
2260
|
-
:ui="{ base: 'min-h-80 p-0 font-mono text-[13px] leading-6' }"
|
|
2446
|
+
class="w-full font-mono"
|
|
2261
2447
|
aria-label="Markdown body"
|
|
2262
2448
|
/>
|
|
2263
2449
|
</article>
|
|
2264
2450
|
</div>
|
|
2265
2451
|
|
|
2266
2452
|
<aside v-if="panel && !creating && !missing" class="hidden w-72 shrink-0 flex-col border-s border-default lg:flex" aria-label="Side panel">
|
|
2267
|
-
<div class="flex h-11 shrink-0 items-
|
|
2268
|
-
<
|
|
2269
|
-
|
|
2270
|
-
:key="option.value"
|
|
2271
|
-
size="xs"
|
|
2272
|
-
variant="ghost"
|
|
2273
|
-
:label="option.label"
|
|
2274
|
-
:active="panel === option.value"
|
|
2275
|
-
active-variant="soft"
|
|
2276
|
-
:aria-pressed="panel === option.value"
|
|
2277
|
-
@click="setPanel(option.value)"
|
|
2278
|
-
/>
|
|
2279
|
-
<UButton class="ms-auto" size="xs" variant="ghost" icon="i-lucide-x" aria-label="Close the side panel" @click="setPanel(undefined)" />
|
|
2453
|
+
<div class="flex h-11 shrink-0 items-end gap-1 border-b border-default px-2">
|
|
2454
|
+
<UTabs v-model="panelTab" :items="panelItems" :content="false" class="min-w-0" aria-label="Side panel" />
|
|
2455
|
+
<UButton class="ms-auto self-center" size="xs" variant="ghost" icon="i-lucide-x" aria-label="Close the side panel" @click="setPanel(undefined)" />
|
|
2280
2456
|
</div>
|
|
2281
2457
|
<div class="min-h-0 flex-1 overflow-y-auto p-2">
|
|
2282
2458
|
<nav v-if="panel === 'outline'" aria-label="Outline">
|
|
2283
|
-
<
|
|
2459
|
+
<UEmpty v-if="!outline.length" variant="naked" size="sm" icon="i-lucide-list-tree" title="No headings yet" description="Headings in the body show here." />
|
|
2284
2460
|
<ol v-else class="grid">
|
|
2285
2461
|
<li v-for="heading in outline" :key="`${heading.pos}`">
|
|
2286
|
-
<
|
|
2287
|
-
|
|
2288
|
-
|
|
2462
|
+
<UButton
|
|
2463
|
+
variant="ghost"
|
|
2464
|
+
size="xs"
|
|
2465
|
+
class="w-full"
|
|
2289
2466
|
:style="{ paddingInlineStart: `${0.5 + (heading.level - 1) * 0.75}rem` }"
|
|
2467
|
+
:label="heading.text"
|
|
2290
2468
|
@click="bodyEditor?.scrollTo(heading.pos)"
|
|
2291
|
-
|
|
2292
|
-
{{ heading.text }}
|
|
2293
|
-
</button>
|
|
2469
|
+
/>
|
|
2294
2470
|
</li>
|
|
2295
2471
|
</ol>
|
|
2296
2472
|
</nav>
|
|
@@ -2313,7 +2489,7 @@ const menuItems = computed(() => [[
|
|
|
2313
2489
|
<template v-if="previewOpen && previewUrl && base">
|
|
2314
2490
|
<div
|
|
2315
2491
|
v-if="wide"
|
|
2316
|
-
class="
|
|
2492
|
+
class="relative z-10 -mx-1 w-2 shrink-0 cursor-col-resize touch-none"
|
|
2317
2493
|
role="separator"
|
|
2318
2494
|
aria-orientation="vertical"
|
|
2319
2495
|
aria-label="Resize the preview"
|
|
@@ -2325,7 +2501,7 @@ const menuItems = computed(() => [[
|
|
|
2325
2501
|
@pointerdown="onSplitterPointerDown"
|
|
2326
2502
|
@keydown="onSplitterKeydown"
|
|
2327
2503
|
>
|
|
2328
|
-
<div class="mx-auto h-full w-px bg-(--
|
|
2504
|
+
<div class="mx-auto h-full w-px bg-(--border) transition-colors hover:bg-(--ui-border-accented)" :class="resizing ? 'w-0.5 bg-primary' : ''" />
|
|
2329
2505
|
</div>
|
|
2330
2506
|
<ConsoleDocumentPreview
|
|
2331
2507
|
id="vitehub-document-preview"
|
|
@@ -2507,14 +2683,14 @@ const menuItems = computed(() => [[
|
|
|
2507
2683
|
@update:open="(open) => { if (!open) openReadOnly() }"
|
|
2508
2684
|
>
|
|
2509
2685
|
<template v-if="leaseHolder?.since || liveUnavailableReason" #body>
|
|
2510
|
-
<p v-if="leaseHolder?.since" class="text-[13px] text-muted tabular-nums">{{ holderLive ? "Live since" : "Editing since" }} {{
|
|
2686
|
+
<p v-if="leaseHolder?.since" class="text-[13px] text-muted tabular-nums">{{ holderLive ? "Live since" : "Editing since" }} {{ consoleTimeOfDay(leaseHolder.since) }}</p>
|
|
2511
2687
|
<p v-if="liveUnavailableReason && !holderLive" class="mt-1 text-xs text-dimmed">{{ consoleLiveUnavailable }}</p>
|
|
2512
2688
|
</template>
|
|
2513
2689
|
<template #footer>
|
|
2514
2690
|
<div class="flex w-full justify-end gap-2">
|
|
2515
|
-
<UButton
|
|
2516
|
-
<UButton v-if="canWrite && holderLive && liveDefinition"
|
|
2517
|
-
<UButton v-else-if="canWrite && !holderLive"
|
|
2691
|
+
<UButton variant="outline" label="Open read-only" @click="openReadOnly" />
|
|
2692
|
+
<UButton v-if="canWrite && holderLive && liveDefinition" label="Join" @click="joinLive" />
|
|
2693
|
+
<UButton v-else-if="canWrite && !holderLive" label="Take over" @click="takeOver" />
|
|
2518
2694
|
</div>
|
|
2519
2695
|
</template>
|
|
2520
2696
|
</UModal>
|
|
@@ -2531,8 +2707,8 @@ const menuItems = computed(() => [[
|
|
|
2531
2707
|
</template>
|
|
2532
2708
|
<template #footer>
|
|
2533
2709
|
<div class="flex w-full justify-end gap-2">
|
|
2534
|
-
<UButton
|
|
2535
|
-
<
|
|
2710
|
+
<UButton variant="ghost" label="Close" @click="leaseCompareOpen = false" />
|
|
2711
|
+
<CopyButton :value="unsavedText" variant="outline" label="Copy mine" />
|
|
2536
2712
|
</div>
|
|
2537
2713
|
</template>
|
|
2538
2714
|
</UModal>
|
|
@@ -2544,10 +2720,10 @@ const menuItems = computed(() => [[
|
|
|
2544
2720
|
>
|
|
2545
2721
|
<template #body>
|
|
2546
2722
|
<div class="flex flex-wrap items-end gap-3">
|
|
2547
|
-
<UFormField label="Date"
|
|
2723
|
+
<UFormField label="Date">
|
|
2548
2724
|
<UInputDate v-model="scheduleDate" :min-value="scheduleMinDate" class="w-40" aria-label="Publish date" />
|
|
2549
2725
|
</UFormField>
|
|
2550
|
-
<UFormField label="Time"
|
|
2726
|
+
<UFormField label="Time">
|
|
2551
2727
|
<UInputTime v-model="scheduleTime" :hour-cycle="24" class="w-24" aria-label="Publish time" />
|
|
2552
2728
|
</UFormField>
|
|
2553
2729
|
<span class="pb-2 text-xs text-dimmed">{{ timeZone }}</span>
|
|
@@ -2562,15 +2738,40 @@ const menuItems = computed(() => [[
|
|
|
2562
2738
|
</template>
|
|
2563
2739
|
</UModal>
|
|
2564
2740
|
|
|
2565
|
-
<UModal
|
|
2741
|
+
<UModal
|
|
2742
|
+
:open="markOpen"
|
|
2743
|
+
:title="`Mark the ${consoleLocaleName(locale ?? '')} translation as up to date?`"
|
|
2744
|
+
:description="`Check that it matches the ${consoleLocaleName(sourceLocale ?? '')} version below. The translation then records this version as its source.`"
|
|
2745
|
+
:ui="{ content: 'sm:max-w-3xl' }"
|
|
2746
|
+
@update:open="(open) => { if (!open) markOpen = false }"
|
|
2747
|
+
>
|
|
2748
|
+
<template #body>
|
|
2749
|
+
<p v-if="markError" role="alert" class="text-sm text-muted">{{ markError }}</p>
|
|
2750
|
+
<ConsoleLoading v-else-if="markSource === undefined" :label="`Loading the ${consoleLocaleName(sourceLocale ?? '')} version…`" />
|
|
2751
|
+
<p v-else-if="!markSource" class="text-sm text-muted">The {{ consoleLocaleName(sourceLocale ?? "") }} version no longer exists on the draft.</p>
|
|
2752
|
+
<div v-else class="grid gap-3">
|
|
2753
|
+
<p v-if="markChanged" class="text-xs text-muted" role="status">The {{ consoleLocaleName(sourceLocale ?? "") }} version changed again while you checked it. This is the newer version.</p>
|
|
2754
|
+
<pre class="max-h-[60vh] overflow-auto rounded-md bg-elevated/50 px-4 py-3 font-mono text-[13px]/6 whitespace-pre-wrap text-muted select-text" :aria-label="`${consoleLocaleName(sourceLocale ?? '')} version, read-only`">{{ consoleDocumentText({ body: markSource.body, data: markSource.data }, collection.format) }}</pre>
|
|
2755
|
+
</div>
|
|
2756
|
+
</template>
|
|
2566
2757
|
<template #footer>
|
|
2567
2758
|
<div class="flex w-full justify-end gap-2">
|
|
2568
|
-
<UButton variant="ghost" label="Cancel" @click="
|
|
2569
|
-
<UButton
|
|
2759
|
+
<UButton variant="ghost" label="Cancel" @click="markOpen = false" />
|
|
2760
|
+
<UButton label="Mark as up to date" :disabled="!markSource?.source" :loading="saving" @click="markCurrent" />
|
|
2570
2761
|
</div>
|
|
2571
2762
|
</template>
|
|
2572
2763
|
</UModal>
|
|
2573
2764
|
|
|
2765
|
+
<ConsoleConfirm
|
|
2766
|
+
v-model:open="deleteOpen"
|
|
2767
|
+
:title="`Delete this ${noun.toLowerCase()}?`"
|
|
2768
|
+
:description="`${title} is removed from the draft. It stays on the published site until you publish the deletion, and History can restore it.`"
|
|
2769
|
+
confirm-label="Delete"
|
|
2770
|
+
destructive
|
|
2771
|
+
:loading="deleting"
|
|
2772
|
+
@confirm="remove"
|
|
2773
|
+
/>
|
|
2774
|
+
|
|
2574
2775
|
<USlideover v-model:open="historyOpen" title="History" :description="`Saves and publishes of ${id}`" :ui="{ content: 'sm:max-w-xl', footer: 'justify-end' }">
|
|
2575
2776
|
<template #body>
|
|
2576
2777
|
<div v-if="preview" class="grid gap-3">
|
|
@@ -2583,7 +2784,7 @@ const menuItems = computed(() => [[
|
|
|
2583
2784
|
</p>
|
|
2584
2785
|
<p class="text-xs text-muted">Compared with the saved draft.</p>
|
|
2585
2786
|
</div>
|
|
2586
|
-
<div v-if="previewLoading" class="flex justify-center py-8"><
|
|
2787
|
+
<div v-if="previewLoading" class="flex justify-center py-8"><Icon name="i-lucide-loader-circle" class="size-4 animate-spin text-muted" /></div>
|
|
2587
2788
|
<p v-else-if="!preview.document" class="text-xs text-muted">The {{ noun.toLowerCase() }} does not exist in this version.</p>
|
|
2588
2789
|
<ConsoleDocumentDiff v-else :before="preview.current?.text ?? null" :after="preview.document.text" :format="collection.format" :name="fileName" />
|
|
2589
2790
|
</div>
|