astro 6.0.0-alpha.0 → 6.0.0-alpha.2
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/astro-jsx.d.ts +11 -0
- package/client.d.ts +17 -41
- package/components/Code.astro +2 -2
- package/components/Image.astro +2 -2
- package/components/Picture.astro +1 -1
- package/dist/actions/consts.d.ts +2 -5
- package/dist/actions/consts.js +4 -8
- package/dist/actions/integration.js +2 -4
- package/dist/actions/runtime/client.d.ts +84 -3
- package/dist/actions/runtime/client.js +238 -7
- package/dist/actions/runtime/entrypoints/client.d.ts +7 -0
- package/dist/actions/runtime/entrypoints/client.js +91 -0
- package/dist/actions/runtime/entrypoints/route.d.ts +2 -0
- package/dist/actions/runtime/{route.js → entrypoints/route.js} +1 -1
- package/dist/actions/runtime/entrypoints/server.d.ts +6 -0
- package/dist/actions/runtime/entrypoints/server.js +33 -0
- package/dist/actions/runtime/server.d.ts +11 -18
- package/dist/actions/runtime/server.js +162 -82
- package/dist/actions/runtime/types.d.ts +64 -0
- package/dist/actions/utils.d.ts +2 -2
- package/dist/actions/utils.js +2 -2
- package/dist/actions/vite-plugin-actions.js +58 -47
- package/dist/assets/build/generate.d.ts +2 -2
- package/dist/assets/build/generate.js +12 -10
- package/dist/assets/consts.d.ts +1 -0
- package/dist/assets/consts.js +2 -0
- package/dist/assets/endpoint/config.js +2 -2
- package/dist/assets/endpoint/dev.js +7 -6
- package/dist/assets/fonts/config.d.ts +91 -350
- package/dist/assets/fonts/config.js +35 -136
- package/dist/assets/fonts/constants.js +1 -1
- package/dist/assets/fonts/core/dedupe-font-faces.d.ts +2 -0
- package/dist/assets/fonts/core/dedupe-font-faces.js +30 -0
- package/dist/assets/fonts/definitions.d.ts +9 -22
- package/dist/assets/fonts/infra/build-remote-font-provider-mod-resolver.d.ts +4 -0
- package/dist/assets/fonts/infra/build-remote-font-provider-mod-resolver.js +8 -0
- package/dist/assets/fonts/infra/build-url-proxy-hash-resolver.d.ts +15 -0
- package/dist/assets/fonts/infra/build-url-proxy-hash-resolver.js +20 -0
- package/dist/assets/fonts/infra/build-url-resolver.d.ts +12 -0
- package/dist/assets/fonts/infra/build-url-resolver.js +40 -0
- package/dist/assets/fonts/infra/cached-font-fetcher.d.ts +11 -0
- package/dist/assets/fonts/infra/cached-font-fetcher.js +42 -0
- package/dist/assets/fonts/infra/capsize-font-metrics-resolver.d.ts +18 -0
- package/dist/assets/fonts/infra/capsize-font-metrics-resolver.js +71 -0
- package/dist/assets/fonts/infra/data-collector.d.ts +10 -0
- package/dist/assets/fonts/infra/data-collector.js +35 -0
- package/dist/assets/fonts/infra/dev-remote-font-provider-mod-resolver.d.ts +9 -0
- package/dist/assets/fonts/infra/dev-remote-font-provider-mod-resolver.js +14 -0
- package/dist/assets/fonts/infra/dev-url-proxy-hash-resolver.d.ts +15 -0
- package/dist/assets/fonts/infra/dev-url-proxy-hash-resolver.js +37 -0
- package/dist/assets/fonts/infra/dev-url-resolver.d.ts +10 -0
- package/dist/assets/fonts/infra/dev-url-resolver.js +29 -0
- package/dist/assets/fonts/infra/font-type-extractor.d.ts +5 -0
- package/dist/assets/fonts/infra/font-type-extractor.js +21 -0
- package/dist/assets/fonts/infra/fontace-font-file-reader.d.ts +11 -0
- package/dist/assets/fonts/infra/fontace-font-file-reader.js +25 -0
- package/dist/assets/fonts/infra/levenshtein-string-matcher.d.ts +5 -0
- package/dist/assets/fonts/infra/levenshtein-string-matcher.js +145 -0
- package/dist/assets/fonts/infra/local-url-proxy-content-resolver.d.ts +4 -0
- package/dist/assets/fonts/infra/local-url-proxy-content-resolver.js +14 -0
- package/dist/assets/fonts/{implementations/css-renderer.d.ts → infra/minifiable-css-renderer.d.ts} +8 -3
- package/dist/assets/fonts/{implementations/css-renderer.js → infra/minifiable-css-renderer.js} +12 -10
- package/dist/assets/fonts/infra/remote-font-provider-resolver.d.ts +10 -0
- package/dist/assets/fonts/infra/remote-font-provider-resolver.js +49 -0
- package/dist/assets/fonts/infra/remote-url-proxy-content-resolver.d.ts +4 -0
- package/dist/assets/fonts/infra/remote-url-proxy-content-resolver.js +9 -0
- package/dist/assets/fonts/infra/require-local-provider-url-resolver.d.ts +9 -0
- package/dist/assets/fonts/infra/require-local-provider-url-resolver.js +22 -0
- package/dist/assets/fonts/infra/system-fallbacks-provider.d.ts +6 -0
- package/dist/assets/fonts/{implementations → infra}/system-fallbacks-provider.js +8 -11
- package/dist/assets/fonts/infra/unstorage-fs-storage.d.ts +11 -0
- package/dist/assets/fonts/infra/unstorage-fs-storage.js +26 -0
- package/dist/assets/fonts/infra/url-proxy.d.ts +16 -0
- package/dist/assets/fonts/infra/url-proxy.js +50 -0
- package/dist/assets/fonts/infra/xxhash-hasher.d.ts +7 -0
- package/dist/assets/fonts/infra/xxhash-hasher.js +18 -0
- package/dist/assets/fonts/orchestrate.d.ts +1 -2
- package/dist/assets/fonts/orchestrate.js +50 -17
- package/dist/assets/fonts/providers/index.d.ts +6 -24
- package/dist/assets/fonts/types.d.ts +138 -8
- package/dist/assets/fonts/utils.d.ts +1 -2
- package/dist/assets/fonts/vite-plugin-fonts.js +66 -65
- package/dist/assets/services/noop.js +11 -1
- package/dist/assets/services/service.d.ts +1 -1
- package/dist/assets/services/service.js +55 -51
- package/dist/assets/types.d.ts +2 -2
- package/dist/assets/utils/index.d.ts +1 -3
- package/dist/assets/utils/index.js +4 -9
- package/dist/assets/utils/{transformToPath.d.ts → node.d.ts} +15 -1
- package/dist/assets/utils/{node/emitAsset.js → node.js} +34 -6
- package/dist/assets/utils/svg.d.ts +2 -1
- package/dist/assets/utils/svg.js +30 -4
- package/dist/assets/vite-plugin-assets.js +36 -19
- package/dist/cli/add/index.js +21 -13
- package/dist/cli/create-key/infra/crypto-key-generator.d.ts +3 -1
- package/dist/cli/create-key/infra/crypto-key-generator.js +7 -9
- package/dist/cli/definitions.d.ts +19 -2
- package/dist/cli/dev/index.js +1 -1
- package/dist/cli/docs/core/open-docs.d.ts +5 -3
- package/dist/cli/docs/core/open-docs.js +2 -9
- package/dist/cli/docs/definitions.d.ts +3 -11
- package/dist/cli/docs/domain/cloud-ide.d.ts +1 -0
- package/dist/cli/docs/domain/cloud-ide.js +0 -0
- package/dist/cli/docs/infra/process-cloud-ide-provider.d.ts +5 -0
- package/dist/cli/docs/infra/process-cloud-ide-provider.js +6 -0
- package/dist/cli/flags.d.ts +1 -0
- package/dist/cli/index.js +78 -21
- package/dist/cli/info/core/get-package-manager.d.ts +8 -0
- package/dist/cli/info/core/get-package-manager.js +37 -0
- package/dist/cli/info/core/info.d.ts +21 -0
- package/dist/cli/info/core/info.js +21 -0
- package/dist/cli/info/definitions.d.ts +30 -0
- package/dist/cli/info/definitions.js +0 -0
- package/dist/cli/info/domain/debug-info.d.ts +1 -0
- package/dist/cli/info/domain/debug-info.js +0 -0
- package/dist/cli/info/infra/bun-package-manager.d.ts +5 -0
- package/dist/cli/info/infra/bun-package-manager.js +9 -0
- package/dist/cli/info/infra/cli-astro-config-resolver.d.ts +10 -0
- package/dist/cli/info/infra/cli-astro-config-resolver.js +36 -0
- package/dist/cli/info/infra/cli-clipboard.d.ts +13 -0
- package/dist/cli/info/infra/cli-clipboard.js +78 -0
- package/dist/cli/info/infra/cli-debug-info-provider.d.ts +15 -0
- package/dist/cli/info/infra/cli-debug-info-provider.js +57 -0
- package/dist/cli/info/infra/dev-debug-info-provider.d.ts +18 -0
- package/dist/cli/info/infra/dev-debug-info-provider.js +36 -0
- package/dist/cli/info/infra/noop-package-manager.d.ts +5 -0
- package/dist/cli/info/infra/noop-package-manager.js +9 -0
- package/dist/cli/info/infra/npm-package-manager.d.ts +10 -0
- package/dist/cli/info/infra/npm-package-manager.js +32 -0
- package/dist/cli/info/infra/pnpm-package-manager.d.ts +10 -0
- package/dist/cli/info/infra/pnpm-package-manager.js +33 -0
- package/dist/cli/info/infra/process-node-version-provider.d.ts +4 -0
- package/dist/cli/info/infra/process-node-version-provider.js +6 -0
- package/dist/cli/info/infra/process-package-manager-user-agent-provider.d.ts +4 -0
- package/dist/cli/info/infra/process-package-manager-user-agent-provider.js +7 -0
- package/dist/cli/info/infra/prompts-prompt.d.ts +11 -0
- package/dist/cli/info/infra/prompts-prompt.js +25 -0
- package/dist/cli/info/infra/styled-debug-info-formatter.d.ts +10 -0
- package/dist/cli/info/infra/styled-debug-info-formatter.js +29 -0
- package/dist/cli/info/infra/yarn-package-manager.d.ts +10 -0
- package/dist/cli/info/infra/yarn-package-manager.js +34 -0
- package/dist/cli/infra/build-time-astro-version-provider.d.ts +3 -1
- package/dist/cli/infra/build-time-astro-version-provider.js +4 -8
- package/dist/cli/infra/cli-command-runner.d.ts +7 -4
- package/dist/cli/infra/cli-command-runner.js +14 -10
- package/dist/cli/infra/logger-help-display.d.ts +11 -7
- package/dist/cli/infra/logger-help-display.js +62 -50
- package/dist/cli/infra/passthrough-text-styler.d.ts +9 -0
- package/dist/cli/infra/passthrough-text-styler.js +23 -0
- package/dist/cli/infra/piccolore-text-styler.d.ts +2 -0
- package/dist/cli/infra/piccolore-text-styler.js +5 -0
- package/dist/cli/infra/process-operating-system-provider.d.ts +6 -0
- package/dist/cli/infra/process-operating-system-provider.js +12 -0
- package/dist/cli/infra/tinyexec-command-executor.d.ts +6 -0
- package/dist/cli/infra/tinyexec-command-executor.js +34 -0
- package/dist/cli/install-package.js +1 -1
- package/dist/cli/preferences/index.js +6 -2
- package/dist/cli/preview/index.js +1 -1
- package/dist/cli/utils/format-version.js +1 -1
- package/dist/config/index.js +9 -5
- package/dist/container/index.js +19 -13
- package/dist/container/pipeline.d.ts +2 -1
- package/dist/container/pipeline.js +4 -11
- package/dist/container/vite-plugin-container.js +7 -4
- package/dist/content/config.d.ts +34 -40
- package/dist/content/content-layer.js +13 -18
- package/dist/content/loaders/errors.d.ts +3 -3
- package/dist/content/loaders/errors.js +5 -2
- package/dist/content/loaders/glob.js +6 -1
- package/dist/content/loaders/types.d.ts +11 -4
- package/dist/content/runtime-assets.d.ts +4 -4
- package/dist/content/runtime-assets.js +2 -2
- package/dist/content/runtime.d.ts +21 -20
- package/dist/content/runtime.js +14 -16
- package/dist/content/types-generator.js +90 -54
- package/dist/content/utils.d.ts +46 -338
- package/dist/content/utils.js +52 -50
- package/dist/content/vite-plugin-content-assets.d.ts +12 -4
- package/dist/content/vite-plugin-content-assets.js +152 -102
- package/dist/content/vite-plugin-content-imports.js +58 -40
- package/dist/content/vite-plugin-content-virtual-mod.js +95 -77
- package/dist/core/app/app.d.ts +5 -0
- package/dist/core/app/app.js +13 -0
- package/dist/core/app/base.d.ts +132 -0
- package/dist/core/app/base.js +448 -0
- package/dist/core/app/common.d.ts +6 -2
- package/dist/core/app/common.js +60 -33
- package/dist/core/app/dev/app.d.ts +15 -0
- package/dist/core/app/dev/app.js +86 -0
- package/dist/core/app/dev/pipeline.d.ts +13 -0
- package/dist/core/app/dev/pipeline.js +123 -0
- package/dist/core/app/entrypoint.d.ts +2 -0
- package/dist/core/app/entrypoint.js +15 -0
- package/dist/core/app/index.d.ts +7 -99
- package/dist/core/app/index.js +20 -486
- package/dist/core/app/logging.d.ts +3 -0
- package/dist/core/app/logging.js +11 -0
- package/dist/core/app/manifest.d.ts +9 -0
- package/dist/core/app/manifest.js +107 -0
- package/dist/core/app/middlewares.js +1 -1
- package/dist/core/app/node.js +14 -13
- package/dist/core/app/pipeline.d.ts +6 -5
- package/dist/core/app/pipeline.js +65 -49
- package/dist/core/app/types.d.ts +58 -22
- package/dist/core/app/validate-forwarded-headers.d.ts +16 -0
- package/dist/core/app/validate-forwarded-headers.js +60 -0
- package/dist/core/base-pipeline.d.ts +22 -14
- package/dist/core/base-pipeline.js +54 -6
- package/dist/core/build/app.d.ts +13 -0
- package/dist/core/build/app.js +38 -0
- package/dist/core/build/common.d.ts +1 -1
- package/dist/core/build/common.js +2 -2
- package/dist/core/build/generate.d.ts +1 -1
- package/dist/core/build/generate.js +96 -204
- package/dist/core/build/graph.js +2 -2
- package/dist/core/build/index.js +11 -16
- package/dist/core/build/internal.d.ts +2 -27
- package/dist/core/build/internal.js +1 -44
- package/dist/core/build/page-data.js +1 -1
- package/dist/core/build/pipeline.d.ts +15 -26
- package/dist/core/build/pipeline.js +106 -170
- package/dist/core/build/plugins/index.d.ts +4 -2
- package/dist/core/build/plugins/index.js +17 -23
- package/dist/core/build/plugins/plugin-analyzer.d.ts +2 -2
- package/dist/core/build/plugins/plugin-analyzer.js +5 -13
- package/dist/core/build/plugins/plugin-component-entry.d.ts +7 -2
- package/dist/core/build/plugins/plugin-component-entry.js +15 -17
- package/dist/core/build/plugins/plugin-css.d.ts +2 -2
- package/dist/core/build/plugins/plugin-css.js +90 -41
- package/dist/core/build/plugins/plugin-internals.d.ts +2 -2
- package/dist/core/build/plugins/plugin-internals.js +24 -18
- package/dist/core/build/plugins/plugin-manifest.d.ts +33 -5
- package/dist/core/build/plugins/plugin-manifest.js +89 -129
- package/dist/core/build/plugins/plugin-middleware.d.ts +2 -2
- package/dist/core/build/plugins/plugin-middleware.js +5 -7
- package/dist/core/build/plugins/plugin-noop.d.ts +3 -0
- package/dist/core/build/plugins/plugin-noop.js +35 -0
- package/dist/core/build/plugins/plugin-prerender.d.ts +2 -2
- package/dist/core/build/plugins/plugin-prerender.js +7 -64
- package/dist/core/build/plugins/plugin-scripts.d.ts +5 -2
- package/dist/core/build/plugins/plugin-scripts.js +5 -13
- package/dist/core/build/plugins/plugin-ssr.d.ts +2 -2
- package/dist/core/build/plugins/plugin-ssr.js +85 -139
- package/dist/core/build/plugins/util.d.ts +1 -25
- package/dist/core/build/plugins/util.js +0 -47
- package/dist/core/build/runtime.d.ts +26 -0
- package/dist/core/build/runtime.js +45 -0
- package/dist/core/build/static-build.d.ts +2 -2
- package/dist/core/build/static-build.js +181 -155
- package/dist/core/build/types.d.ts +1 -2
- package/dist/core/build/util.d.ts +0 -1
- package/dist/core/build/util.js +0 -7
- package/dist/core/compile/compile.d.ts +2 -3
- package/dist/core/compile/compile.js +2 -2
- package/dist/core/config/config.js +3 -3
- package/dist/core/config/index.d.ts +0 -1
- package/dist/core/config/index.js +0 -2
- package/dist/core/config/schemas/base.d.ts +336 -1434
- package/dist/core/config/schemas/base.js +42 -41
- package/dist/core/config/schemas/refined.d.ts +2 -2
- package/dist/core/config/schemas/refined.js +1 -1
- package/dist/core/config/schemas/relative.d.ts +672 -1761
- package/dist/core/config/schemas/relative.js +4 -4
- package/dist/core/config/settings.d.ts +3 -3
- package/dist/core/config/settings.js +5 -6
- package/dist/core/config/validate.js +13 -2
- package/dist/core/config/vite-load.js +12 -3
- package/dist/core/constants.d.ts +11 -0
- package/dist/core/constants.js +20 -1
- package/dist/core/create-vite.d.ts +2 -6
- package/dist/core/create-vite.js +35 -43
- package/dist/core/csp/common.d.ts +1 -1
- package/dist/core/csp/common.js +1 -1
- package/dist/core/csp/config.d.ts +8 -4
- package/dist/core/csp/config.js +1 -1
- package/dist/core/csp/runtime.d.ts +11 -0
- package/dist/core/csp/runtime.js +35 -0
- package/dist/core/dev/container.js +13 -7
- package/dist/core/dev/dev.js +2 -2
- package/dist/core/dev/restart.js +15 -6
- package/dist/core/errors/dev/runtime.d.ts +6 -0
- package/dist/core/errors/dev/runtime.js +27 -0
- package/dist/core/errors/dev/utils.js +1 -1
- package/dist/core/errors/dev/vite.js +1 -1
- package/dist/core/errors/errors-data.d.ts +32 -16
- package/dist/core/errors/errors-data.js +23 -10
- package/dist/core/errors/errors.d.ts +3 -3
- package/dist/core/errors/errors.js +8 -8
- package/dist/core/errors/zod-error-map.d.ts +2 -2
- package/dist/core/errors/zod-error-map.js +26 -24
- package/dist/core/logger/core.js +1 -1
- package/dist/core/messages.d.ts +2 -2
- package/dist/core/messages.js +3 -3
- package/dist/core/middleware/callMiddleware.js +1 -1
- package/dist/core/middleware/defineMiddleware.d.ts +2 -0
- package/dist/core/middleware/defineMiddleware.js +6 -0
- package/dist/core/middleware/index.d.ts +3 -3
- package/dist/core/middleware/index.js +1 -3
- package/dist/core/middleware/sequence.js +4 -4
- package/dist/core/middleware/vite-plugin.d.ts +1 -1
- package/dist/core/middleware/vite-plugin.js +41 -24
- package/dist/core/module-loader/index.d.ts +2 -2
- package/dist/core/module-loader/index.js +1 -1
- package/dist/core/module-loader/{loader.d.ts → runner.d.ts} +6 -17
- package/dist/core/module-loader/{loader.js → runner.js} +3 -0
- package/dist/core/module-loader/vite.d.ts +3 -2
- package/dist/core/module-loader/vite.js +17 -13
- package/dist/core/preview/index.js +20 -3
- package/dist/core/preview/static-preview-server.js +11 -0
- package/dist/core/redirects/component.js +1 -2
- package/dist/core/redirects/index.d.ts +0 -1
- package/dist/core/redirects/index.js +1 -3
- package/dist/core/redirects/render.js +5 -2
- package/dist/core/render/paginate.d.ts +1 -1
- package/dist/core/render/paginate.js +8 -6
- package/dist/core/render/params-and-props.d.ts +2 -0
- package/dist/core/render/params-and-props.js +19 -6
- package/dist/core/render/route-cache.d.ts +3 -2
- package/dist/core/render/route-cache.js +6 -5
- package/dist/core/render-context.d.ts +6 -4
- package/dist/core/render-context.js +66 -25
- package/dist/core/routing/astro-designed-error-pages.js +2 -2
- package/dist/core/routing/default.js +1 -1
- package/dist/core/routing/helpers.d.ts +22 -0
- package/dist/core/routing/helpers.js +25 -0
- package/dist/core/routing/index.d.ts +1 -1
- package/dist/core/routing/index.js +2 -2
- package/dist/core/routing/manifest/create.d.ts +6 -1
- package/dist/core/routing/manifest/create.js +11 -14
- package/dist/core/routing/manifest/generator.d.ts +3 -1
- package/dist/core/routing/params.d.ts +2 -1
- package/dist/core/routing/params.js +3 -2
- package/dist/core/server-islands/endpoint.js +40 -19
- package/dist/core/server-islands/vite-plugin-server-islands.d.ts +1 -1
- package/dist/core/server-islands/vite-plugin-server-islands.js +106 -46
- package/dist/core/session/vite-plugin.d.ts +6 -0
- package/dist/core/session/vite-plugin.js +59 -0
- package/dist/core/session.d.ts +4 -2
- package/dist/core/session.js +8 -48
- package/dist/core/sync/index.d.ts +2 -5
- package/dist/core/sync/index.js +34 -22
- package/dist/core/util/pathname.d.ts +10 -0
- package/dist/core/util/pathname.js +17 -0
- package/dist/core/util.d.ts +2 -2
- package/dist/core/util.js +3 -3
- package/dist/core/viteUtils.d.ts +1 -0
- package/dist/core/viteUtils.js +2 -0
- package/dist/entrypoints/legacy.d.ts +2 -0
- package/dist/entrypoints/legacy.js +12 -0
- package/dist/entrypoints/prerender.d.ts +4 -0
- package/dist/entrypoints/prerender.js +7 -0
- package/dist/env/schema.d.ts +21 -251
- package/dist/env/schema.js +6 -3
- package/dist/env/vite-plugin-env.js +61 -42
- package/dist/env/vite-plugin-import-meta-env.js +45 -37
- package/dist/environments.d.ts +3 -0
- package/dist/environments.js +11 -0
- package/dist/events/error.d.ts +2 -2
- package/dist/i18n/index.d.ts +2 -2
- package/dist/i18n/utils.d.ts +1 -6
- package/dist/i18n/utils.js +1 -63
- package/dist/i18n/vite-plugin-i18n.d.ts +0 -5
- package/dist/i18n/vite-plugin-i18n.js +8 -26
- package/dist/integrations/hooks.d.ts +1 -1
- package/dist/integrations/hooks.js +10 -7
- package/dist/manifest/serialized.d.ts +9 -0
- package/dist/manifest/serialized.js +150 -0
- package/dist/manifest/virtual-module.d.ts +1 -4
- package/dist/manifest/virtual-module.js +100 -91
- package/dist/preferences/index.d.ts +1 -2
- package/dist/prefetch/vite-plugin-prefetch.js +20 -9
- package/dist/prerender/routing.d.ts +5 -7
- package/dist/prerender/routing.js +6 -17
- package/dist/runtime/client/dev-toolbar/ui-library/badge.d.ts +2 -2
- package/dist/runtime/client/dev-toolbar/ui-library/button.d.ts +2 -2
- package/dist/runtime/client/dev-toolbar/ui-library/card.d.ts +2 -2
- package/dist/runtime/client/dev-toolbar/ui-library/highlight.d.ts +2 -2
- package/dist/runtime/client/dev-toolbar/ui-library/radio-checkbox.d.ts +2 -2
- package/dist/runtime/client/dev-toolbar/ui-library/select.d.ts +2 -2
- package/dist/runtime/client/dev-toolbar/ui-library/toggle.d.ts +2 -2
- package/dist/runtime/server/endpoint.js +1 -1
- package/dist/runtime/server/render/server-islands.js +5 -4
- package/dist/runtime/server/transition.d.ts +1 -0
- package/dist/template/4xx.js +3 -1
- package/dist/toolbar/vite-plugin-dev-toolbar.js +13 -7
- package/dist/transitions/events.d.ts +7 -0
- package/dist/transitions/router.js +7 -3
- package/dist/transitions/swap-functions.js +4 -0
- package/dist/transitions/vite-plugin-transitions.js +35 -22
- package/dist/types/astro.d.ts +8 -6
- package/dist/types/public/config.d.ts +438 -289
- package/dist/types/public/context.d.ts +3 -4
- package/dist/types/public/extendables.d.ts +2 -0
- package/dist/types/public/index.d.ts +2 -1
- package/dist/types/public/integrations.d.ts +23 -1
- package/dist/types/public/internal.d.ts +1 -16
- package/dist/types/public/preview.d.ts +6 -0
- package/dist/virtual-modules/i18n.d.ts +10 -2
- package/dist/virtual-modules/i18n.js +16 -7
- package/dist/virtual-modules/live-config.d.ts +1 -1
- package/dist/virtual-modules/live-config.js +1 -1
- package/dist/virtual-modules/middleware.d.ts +2 -1
- package/dist/virtual-modules/middleware.js +2 -1
- package/dist/vite-plugin-adapter-config/index.js +12 -5
- package/dist/vite-plugin-app/app.d.ts +47 -0
- package/dist/vite-plugin-app/app.js +410 -0
- package/dist/vite-plugin-app/createAstroServerApp.d.ts +8 -0
- package/dist/vite-plugin-app/createAstroServerApp.js +56 -0
- package/dist/vite-plugin-app/index.d.ts +3 -0
- package/dist/vite-plugin-app/index.js +19 -0
- package/dist/{vite-plugin-astro-server → vite-plugin-app}/pipeline.d.ts +6 -7
- package/dist/vite-plugin-app/pipeline.js +166 -0
- package/dist/vite-plugin-astro/index.js +215 -170
- package/dist/vite-plugin-astro-server/base.js +1 -1
- package/dist/vite-plugin-astro-server/controller.d.ts +1 -1
- package/dist/vite-plugin-astro-server/error.d.ts +3 -4
- package/dist/vite-plugin-astro-server/error.js +2 -5
- package/dist/vite-plugin-astro-server/index.d.ts +0 -1
- package/dist/vite-plugin-astro-server/index.js +0 -2
- package/dist/vite-plugin-astro-server/metadata.js +1 -1
- package/dist/vite-plugin-astro-server/plugin.d.ts +3 -7
- package/dist/vite-plugin-astro-server/plugin.js +40 -108
- package/dist/vite-plugin-astro-server/server-state.d.ts +1 -1
- package/dist/vite-plugin-astro-server/util.d.ts +2 -2
- package/dist/vite-plugin-astro-server/util.js +2 -1
- package/dist/vite-plugin-astro-server/vite.d.ts +2 -2
- package/dist/vite-plugin-astro-server/vite.js +7 -7
- package/dist/vite-plugin-chromedevtools/index.d.ts +7 -0
- package/dist/vite-plugin-chromedevtools/index.js +47 -0
- package/dist/vite-plugin-config-alias/index.js +59 -44
- package/dist/vite-plugin-css/index.d.ts +18 -0
- package/dist/vite-plugin-css/index.js +155 -0
- package/dist/vite-plugin-css/util.d.ts +5 -0
- package/dist/vite-plugin-css/util.js +8 -0
- package/dist/vite-plugin-environment/index.d.ts +15 -0
- package/dist/vite-plugin-environment/index.js +77 -0
- package/dist/vite-plugin-fileurl/index.js +6 -3
- package/dist/vite-plugin-head/index.d.ts +1 -2
- package/dist/vite-plugin-head/index.js +42 -58
- package/dist/vite-plugin-hmr-reload/index.js +2 -1
- package/dist/vite-plugin-html/index.d.ts +7 -4
- package/dist/vite-plugin-html/index.js +5 -3
- package/dist/vite-plugin-load-fallback/index.js +12 -5
- package/dist/vite-plugin-markdown/index.js +27 -8
- package/dist/vite-plugin-overlay/index.d.ts +2 -0
- package/dist/vite-plugin-overlay/index.js +21 -0
- package/dist/vite-plugin-pages/const.d.ts +2 -0
- package/dist/vite-plugin-pages/const.js +6 -0
- package/dist/vite-plugin-pages/index.d.ts +2 -0
- package/dist/vite-plugin-pages/index.js +7 -0
- package/dist/vite-plugin-pages/page.d.ts +7 -0
- package/dist/vite-plugin-pages/page.js +54 -0
- package/dist/vite-plugin-pages/pages.d.ts +8 -0
- package/dist/vite-plugin-pages/pages.js +63 -0
- package/dist/vite-plugin-pages/util.d.ts +8 -0
- package/dist/vite-plugin-pages/util.js +15 -0
- package/dist/vite-plugin-renderers/index.d.ts +9 -0
- package/dist/vite-plugin-renderers/index.js +45 -0
- package/dist/vite-plugin-routes/index.d.ts +14 -0
- package/dist/vite-plugin-routes/index.js +181 -0
- package/dist/vite-plugin-scripts/index.js +27 -25
- package/dist/vite-plugin-scripts/page-ssr.js +3 -2
- package/dist/vite-plugin-utils/index.d.ts +1 -0
- package/dist/vite-plugin-utils/index.js +2 -1
- package/dist/zod.d.ts +2 -2
- package/dist/zod.js +2 -2
- package/package.json +35 -32
- package/templates/content/module.mjs +1 -0
- package/templates/content/types.d.ts +24 -11
- package/types/actions.d.ts +1 -5
- package/types/content.d.ts +9 -11
- package/types/transitions.d.ts +25 -0
- package/dist/actions/loadActions.d.ts +0 -8
- package/dist/actions/loadActions.js +0 -13
- package/dist/actions/runtime/route.d.ts +0 -2
- package/dist/actions/runtime/shared.d.ts +0 -60
- package/dist/actions/runtime/shared.js +0 -296
- package/dist/actions/runtime/utils.d.ts +0 -25
- package/dist/actions/runtime/utils.js +0 -16
- package/dist/actions/runtime/virtual.d.ts +0 -4
- package/dist/actions/runtime/virtual.js +0 -127
- package/dist/assets/fonts/implementations/data-collector.d.ts +0 -3
- package/dist/assets/fonts/implementations/data-collector.js +0 -21
- package/dist/assets/fonts/implementations/error-handler.d.ts +0 -2
- package/dist/assets/fonts/implementations/error-handler.js +0 -41
- package/dist/assets/fonts/implementations/font-fetcher.d.ts +0 -8
- package/dist/assets/fonts/implementations/font-fetcher.js +0 -34
- package/dist/assets/fonts/implementations/font-file-reader.d.ts +0 -4
- package/dist/assets/fonts/implementations/font-file-reader.js +0 -26
- package/dist/assets/fonts/implementations/font-metrics-resolver.d.ts +0 -5
- package/dist/assets/fonts/implementations/font-metrics-resolver.js +0 -66
- package/dist/assets/fonts/implementations/font-type-extractor.d.ts +0 -4
- package/dist/assets/fonts/implementations/font-type-extractor.js +0 -22
- package/dist/assets/fonts/implementations/hasher.d.ts +0 -2
- package/dist/assets/fonts/implementations/hasher.js +0 -14
- package/dist/assets/fonts/implementations/levenshtein-string-matcher.d.ts +0 -2
- package/dist/assets/fonts/implementations/levenshtein-string-matcher.js +0 -147
- package/dist/assets/fonts/implementations/local-provider-url-resolver.d.ts +0 -5
- package/dist/assets/fonts/implementations/local-provider-url-resolver.js +0 -17
- package/dist/assets/fonts/implementations/remote-font-provider-mod-resolver.d.ts +0 -6
- package/dist/assets/fonts/implementations/remote-font-provider-mod-resolver.js +0 -20
- package/dist/assets/fonts/implementations/remote-font-provider-resolver.d.ts +0 -6
- package/dist/assets/fonts/implementations/remote-font-provider-resolver.js +0 -47
- package/dist/assets/fonts/implementations/storage.d.ts +0 -4
- package/dist/assets/fonts/implementations/storage.js +0 -14
- package/dist/assets/fonts/implementations/system-fallbacks-provider.d.ts +0 -11
- package/dist/assets/fonts/implementations/url-proxy-content-resolver.d.ts +0 -5
- package/dist/assets/fonts/implementations/url-proxy-content-resolver.js +0 -28
- package/dist/assets/fonts/implementations/url-proxy-hash-resolver.d.ts +0 -8
- package/dist/assets/fonts/implementations/url-proxy-hash-resolver.js +0 -39
- package/dist/assets/fonts/implementations/url-proxy.d.ts +0 -7
- package/dist/assets/fonts/implementations/url-proxy.js +0 -31
- package/dist/assets/fonts/implementations/url-resolver.d.ts +0 -11
- package/dist/assets/fonts/implementations/url-resolver.js +0 -55
- package/dist/assets/utils/node/emitAsset.d.ts +0 -15
- package/dist/assets/utils/remotePattern.d.ts +0 -3
- package/dist/assets/utils/remotePattern.js +0 -16
- package/dist/assets/utils/transformToPath.js +0 -32
- package/dist/cli/docs/domains/platform.d.ts +0 -1
- package/dist/cli/docs/infra/process-platform-provider.d.ts +0 -2
- package/dist/cli/docs/infra/process-platform-provider.js +0 -11
- package/dist/cli/docs/infra/tinyexec-command-executor.d.ts +0 -2
- package/dist/cli/docs/infra/tinyexec-command-executor.js +0 -30
- package/dist/cli/info/index.d.ts +0 -12
- package/dist/cli/info/index.js +0 -267
- package/dist/cli/infra/picocolors-text-styler.d.ts +0 -2
- package/dist/cli/infra/picocolors-text-styler.js +0 -7
- package/dist/core/build/css-asset-name.d.ts +0 -9
- package/dist/core/build/css-asset-name.js +0 -89
- package/dist/core/build/plugin.d.ts +0 -43
- package/dist/core/build/plugin.js +0 -61
- package/dist/core/build/plugins/plugin-actions.d.ts +0 -4
- package/dist/core/build/plugins/plugin-actions.js +0 -16
- package/dist/core/build/plugins/plugin-chunks.d.ts +0 -2
- package/dist/core/build/plugins/plugin-chunks.js +0 -33
- package/dist/core/build/plugins/plugin-pages.d.ts +0 -6
- package/dist/core/build/plugins/plugin-pages.js +0 -66
- package/dist/core/build/plugins/plugin-renderers.d.ts +0 -5
- package/dist/core/build/plugins/plugin-renderers.js +0 -54
- package/dist/core/middleware/loadMiddleware.d.ts +0 -7
- package/dist/core/middleware/loadMiddleware.js +0 -14
- package/dist/core/redirects/helpers.d.ts +0 -7
- package/dist/core/redirects/helpers.js +0 -10
- package/dist/core/routing/manifest/serialization.d.ts +0 -5
- package/dist/core/routing/manifest/serialization.js +0 -37
- package/dist/prerender/metadata.d.ts +0 -8
- package/dist/prerender/metadata.js +0 -18
- package/dist/vite-plugin-astro-server/css.d.ts +0 -13
- package/dist/vite-plugin-astro-server/css.js +0 -48
- package/dist/vite-plugin-astro-server/pipeline.js +0 -161
- package/dist/vite-plugin-astro-server/request.d.ts +0 -14
- package/dist/vite-plugin-astro-server/request.js +0 -66
- package/dist/vite-plugin-astro-server/route.d.ts +0 -25
- package/dist/vite-plugin-astro-server/route.js +0 -283
- package/dist/vite-plugin-scanner/index.d.ts +0 -10
- package/dist/vite-plugin-scanner/index.js +0 -87
- package/dist/vite-plugin-ssr-manifest/index.d.ts +0 -2
- package/dist/vite-plugin-ssr-manifest/index.js +0 -26
- /package/dist/{cli/docs/domains/platform.js → actions/runtime/types.js} +0 -0
- /package/dist/assets/fonts/{logic → core}/extract-unifont-providers.d.ts +0 -0
- /package/dist/assets/fonts/{logic → core}/extract-unifont-providers.js +0 -0
- /package/dist/assets/fonts/{logic → core}/normalize-remote-font-faces.d.ts +0 -0
- /package/dist/assets/fonts/{logic → core}/normalize-remote-font-faces.js +0 -0
- /package/dist/assets/fonts/{logic → core}/optimize-fallbacks.d.ts +0 -0
- /package/dist/assets/fonts/{logic → core}/optimize-fallbacks.js +0 -0
- /package/dist/assets/fonts/{logic → core}/resolve-families.d.ts +0 -0
- /package/dist/assets/fonts/{logic → core}/resolve-families.js +0 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as path from "node:path";
|
|
2
2
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
3
|
-
import colors from "
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import colors from "piccolore";
|
|
4
|
+
import {
|
|
5
|
+
isRunnableDevEnvironment,
|
|
6
|
+
normalizePath
|
|
7
|
+
} from "vite";
|
|
8
|
+
import * as z from "zod/v4";
|
|
7
9
|
import { AstroError } from "../core/errors/errors.js";
|
|
8
10
|
import { AstroErrorData } from "../core/errors/index.js";
|
|
9
11
|
import { isRelativePath } from "../core/path.js";
|
|
@@ -24,6 +26,7 @@ import {
|
|
|
24
26
|
getEntryType,
|
|
25
27
|
reloadContentConfigObserver
|
|
26
28
|
} from "./utils.js";
|
|
29
|
+
import { ASTRO_VITE_ENVIRONMENT_NAMES } from "../core/constants.js";
|
|
27
30
|
async function createContentTypesGenerator({
|
|
28
31
|
contentConfigObserver,
|
|
29
32
|
fs,
|
|
@@ -75,7 +78,11 @@ async function createContentTypesGenerator({
|
|
|
75
78
|
return { shouldGenerateTypes: false };
|
|
76
79
|
}
|
|
77
80
|
if (fileType === "config") {
|
|
78
|
-
await reloadContentConfigObserver({
|
|
81
|
+
await reloadContentConfigObserver({
|
|
82
|
+
fs,
|
|
83
|
+
settings,
|
|
84
|
+
environment: viteServer.environments[ASTRO_VITE_ENVIRONMENT_NAMES.astro]
|
|
85
|
+
});
|
|
79
86
|
return { shouldGenerateTypes: true };
|
|
80
87
|
}
|
|
81
88
|
const { entry } = event;
|
|
@@ -103,7 +110,7 @@ async function createContentTypesGenerator({
|
|
|
103
110
|
}
|
|
104
111
|
const collectionInfo2 = collectionEntryMap[collectionKey2];
|
|
105
112
|
if (collectionInfo2.type === "content") {
|
|
106
|
-
viteServer.hot.send({
|
|
113
|
+
viteServer.environments.client.hot.send({
|
|
107
114
|
type: "error",
|
|
108
115
|
err: new AstroError({
|
|
109
116
|
...AstroErrorData.MixedContentDataCollectionError,
|
|
@@ -142,7 +149,7 @@ async function createContentTypesGenerator({
|
|
|
142
149
|
}
|
|
143
150
|
const collectionInfo = collectionEntryMap[collectionKey];
|
|
144
151
|
if (collectionInfo.type === "data") {
|
|
145
|
-
viteServer.hot.send({
|
|
152
|
+
viteServer.environments.client.hot.send({
|
|
146
153
|
type: "error",
|
|
147
154
|
err: new AstroError({
|
|
148
155
|
...AstroErrorData.MixedContentDataCollectionError,
|
|
@@ -237,59 +244,68 @@ async function createContentTypesGenerator({
|
|
|
237
244
|
logger,
|
|
238
245
|
settings
|
|
239
246
|
});
|
|
240
|
-
|
|
247
|
+
if (!isRunnableDevEnvironment(viteServer.environments[ASTRO_VITE_ENVIRONMENT_NAMES.ssr])) {
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
invalidateVirtualMod(viteServer.environments[ASTRO_VITE_ENVIRONMENT_NAMES.ssr]);
|
|
241
251
|
}
|
|
242
252
|
}
|
|
243
253
|
return { init, queueEvent };
|
|
244
254
|
}
|
|
245
|
-
function invalidateVirtualMod(
|
|
246
|
-
const virtualMod =
|
|
255
|
+
function invalidateVirtualMod(environment) {
|
|
256
|
+
const virtualMod = environment.moduleGraph.getModuleById("\0" + VIRTUAL_MODULE_ID);
|
|
247
257
|
if (!virtualMod) return;
|
|
248
|
-
|
|
258
|
+
environment.moduleGraph.invalidateModule(virtualMod);
|
|
249
259
|
}
|
|
250
260
|
function normalizeConfigPath(from, to) {
|
|
251
261
|
const configPath = path.relative(from, to).replace(/\.ts$/, ".js");
|
|
252
262
|
const normalizedPath = configPath.replaceAll("\\", "/");
|
|
253
263
|
return `"${isRelativePath(configPath) ? "" : "./"}${normalizedPath}"`;
|
|
254
264
|
}
|
|
255
|
-
const
|
|
256
|
-
async function
|
|
257
|
-
const cached =
|
|
265
|
+
const createSchemaResultCache = /* @__PURE__ */ new Map();
|
|
266
|
+
async function getCreateSchemaResult(collection, collectionKey) {
|
|
267
|
+
const cached = createSchemaResultCache.get(collectionKey);
|
|
258
268
|
if (cached) {
|
|
259
269
|
return cached;
|
|
260
270
|
}
|
|
261
|
-
if (collection?.type === CONTENT_LAYER_TYPE && typeof collection.loader === "object" && collection.loader.schema) {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
271
|
+
if (collection?.type === CONTENT_LAYER_TYPE && typeof collection.loader === "object" && !collection.loader.schema && collection.loader.createSchema) {
|
|
272
|
+
const result = await collection.loader.createSchema();
|
|
273
|
+
createSchemaResultCache.set(collectionKey, result);
|
|
274
|
+
return result;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
async function getContentLayerSchema(collection, collectionKey) {
|
|
278
|
+
if (collection?.type !== CONTENT_LAYER_TYPE || typeof collection.loader === "function") {
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
if (collection.loader.schema) {
|
|
282
|
+
return collection.loader.schema;
|
|
270
283
|
}
|
|
284
|
+
const result = await getCreateSchemaResult(collection, collectionKey);
|
|
285
|
+
return result?.schema;
|
|
271
286
|
}
|
|
272
287
|
async function typeForCollection(collection, collectionKey) {
|
|
273
288
|
if (collection?.schema) {
|
|
274
|
-
return `InferEntrySchema<${collectionKey}
|
|
289
|
+
return { type: `InferEntrySchema<${collectionKey}>` };
|
|
275
290
|
}
|
|
276
|
-
if (!collection?.type) {
|
|
277
|
-
return "any";
|
|
291
|
+
if (!collection?.type || typeof collection.loader === "function") {
|
|
292
|
+
return { type: "any" };
|
|
278
293
|
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
return "any";
|
|
294
|
+
if (collection.loader.schema) {
|
|
295
|
+
return { type: `InferLoaderSchema<${collectionKey}>` };
|
|
282
296
|
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
return zodToTs.printNode(ast.node);
|
|
287
|
-
} catch (err) {
|
|
288
|
-
if (err.message.includes("Cannot find package 'typescript'")) {
|
|
289
|
-
return "any";
|
|
290
|
-
}
|
|
291
|
-
throw err;
|
|
297
|
+
const result = await getCreateSchemaResult(collection, collectionKey);
|
|
298
|
+
if (!result) {
|
|
299
|
+
return { type: "any" };
|
|
292
300
|
}
|
|
301
|
+
const base = `loaders/${collectionKey.slice(1, -1)}`;
|
|
302
|
+
return {
|
|
303
|
+
type: `import("./${base}.js").Entry`,
|
|
304
|
+
injectedType: {
|
|
305
|
+
filename: `${base}.ts`,
|
|
306
|
+
content: result.types
|
|
307
|
+
}
|
|
308
|
+
};
|
|
293
309
|
}
|
|
294
310
|
async function writeContentFiles({
|
|
295
311
|
fs,
|
|
@@ -316,7 +332,7 @@ async function writeContentFiles({
|
|
|
316
332
|
const collectionConfig = contentConfig?.collections[JSON.parse(collectionKey)];
|
|
317
333
|
const collection = collectionEntryMap[collectionKey];
|
|
318
334
|
if (collectionConfig?.type && collection.type !== "unknown" && collectionConfig.type !== CONTENT_LAYER_TYPE && collection.type !== collectionConfig.type) {
|
|
319
|
-
viteServer.hot.send({
|
|
335
|
+
viteServer.environments.client.hot.send({
|
|
320
336
|
type: "error",
|
|
321
337
|
err: new AstroError({
|
|
322
338
|
...AstroErrorData.ContentCollectionTypeMismatchError,
|
|
@@ -333,7 +349,19 @@ async function writeContentFiles({
|
|
|
333
349
|
});
|
|
334
350
|
return;
|
|
335
351
|
}
|
|
336
|
-
const dataType = await typeForCollection(
|
|
352
|
+
const { type: dataType, injectedType } = await typeForCollection(
|
|
353
|
+
collectionConfig,
|
|
354
|
+
collectionKey
|
|
355
|
+
);
|
|
356
|
+
if (injectedType) {
|
|
357
|
+
if (settings.injectedTypes.some((t) => t.filename === CONTENT_TYPES_FILE)) {
|
|
358
|
+
const url = new URL(injectedType.filename, settings.dotAstroDir);
|
|
359
|
+
await fs.promises.mkdir(path.dirname(fileURLToPath(url)), { recursive: true });
|
|
360
|
+
await fs.promises.writeFile(url, injectedType.content, "utf-8");
|
|
361
|
+
} else {
|
|
362
|
+
settings.injectedTypes.push(injectedType);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
337
365
|
dataTypesStr += `${collectionKey}: Record<string, {
|
|
338
366
|
id: string;
|
|
339
367
|
body?: string;
|
|
@@ -357,7 +385,13 @@ async function writeContentFiles({
|
|
|
357
385
|
const collectionConfig = contentConfig?.collections[JSON.parse(collectionKey)];
|
|
358
386
|
const key = JSON.parse(collectionKey);
|
|
359
387
|
contentCollectionManifest.collections.push({
|
|
360
|
-
hasSchema: Boolean(
|
|
388
|
+
hasSchema: Boolean(
|
|
389
|
+
// Is there a user provided schema or
|
|
390
|
+
collectionConfig?.schema || // Is it a loader object and
|
|
391
|
+
typeof collectionConfig?.loader !== "function" && // Is it a loader static schema or
|
|
392
|
+
(collectionConfig?.loader.schema || // is it a loader dynamic schema
|
|
393
|
+
createSchemaResultCache.has(collectionKey))
|
|
394
|
+
),
|
|
361
395
|
name: key
|
|
362
396
|
});
|
|
363
397
|
Object.keys(collection.entries).forEach((entryKey) => {
|
|
@@ -417,20 +451,22 @@ async function generateJSONSchema(fsMod, collectionConfig, collectionKey, collec
|
|
|
417
451
|
});
|
|
418
452
|
}
|
|
419
453
|
try {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
)
|
|
454
|
+
const schema = z.toJSONSchema(zodSchemaForJson, {
|
|
455
|
+
unrepresentable: "any",
|
|
456
|
+
override: (ctx) => {
|
|
457
|
+
const def = ctx.zodSchema._zod.def;
|
|
458
|
+
if (def.type === "date") {
|
|
459
|
+
ctx.jsonSchema.type = "string";
|
|
460
|
+
ctx.jsonSchema.format = "date-time";
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
});
|
|
464
|
+
const schemaStr = JSON.stringify(schema, null, 2);
|
|
465
|
+
const schemaJsonPath = new URL(
|
|
466
|
+
`./${collectionKey.replace(/"/g, "")}.schema.json`,
|
|
467
|
+
collectionSchemasDir
|
|
433
468
|
);
|
|
469
|
+
await fsMod.promises.writeFile(schemaJsonPath, schemaStr);
|
|
434
470
|
} catch (err) {
|
|
435
471
|
logger.warn(
|
|
436
472
|
"content",
|
package/dist/content/utils.d.ts
CHANGED
|
@@ -1,349 +1,66 @@
|
|
|
1
1
|
import fsMod from 'node:fs';
|
|
2
2
|
import type { PluginContext } from 'rollup';
|
|
3
|
-
import type {
|
|
4
|
-
import
|
|
3
|
+
import type { RunnableDevEnvironment } from 'vite';
|
|
4
|
+
import * as z from 'zod/v4';
|
|
5
5
|
import type { Logger } from '../core/logger/core.js';
|
|
6
6
|
import type { AstroSettings } from '../types/astro.js';
|
|
7
7
|
import type { AstroConfig } from '../types/public/config.js';
|
|
8
8
|
import type { ContentEntryType, DataEntryType } from '../types/public/content.js';
|
|
9
9
|
import { type CONTENT_FLAGS } from './consts.js';
|
|
10
|
-
|
|
10
|
+
import type { LoaderContext } from './loaders/types.js';
|
|
11
|
+
export declare const loaderReturnSchema: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
11
12
|
id: z.ZodString;
|
|
12
|
-
},
|
|
13
|
-
id: z.ZodString;
|
|
14
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
15
|
-
id: z.ZodString;
|
|
16
|
-
}, z.ZodTypeAny, "passthrough">>, "many">, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
17
|
-
id: z.ZodOptional<z.ZodString>;
|
|
18
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
13
|
+
}, z.core.$loose>>, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
19
14
|
id: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, z.
|
|
21
|
-
|
|
22
|
-
}, z.ZodTypeAny, "passthrough">>>]>;
|
|
23
|
-
declare const collectionConfigParser: z.ZodUnion<[z.ZodObject<{
|
|
15
|
+
}, z.core.$loose>>]>;
|
|
16
|
+
declare const collectionConfigParser: z.ZodUnion<readonly [z.ZodObject<{
|
|
24
17
|
type: z.ZodLiteral<"content_layer">;
|
|
25
18
|
schema: z.ZodOptional<z.ZodAny>;
|
|
26
|
-
loader: z.ZodUnion<[z.ZodFunction<z.
|
|
19
|
+
loader: z.ZodUnion<readonly [z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>, z.ZodObject<{
|
|
27
20
|
name: z.ZodString;
|
|
28
|
-
load: z.ZodFunction<z.ZodTuple<[z.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
generateDigest: (args_0: any) => unknown;
|
|
43
|
-
config?: any;
|
|
44
|
-
meta?: any;
|
|
45
|
-
logger?: any;
|
|
46
|
-
store?: any;
|
|
47
|
-
entryTypes?: any;
|
|
48
|
-
parseData?: any;
|
|
49
|
-
renderMarkdown?: any;
|
|
50
|
-
watcher?: any;
|
|
51
|
-
refreshContextData?: Record<string, unknown> | undefined;
|
|
52
|
-
}, {
|
|
53
|
-
collection: string;
|
|
54
|
-
generateDigest: (args_0: any) => unknown;
|
|
55
|
-
config?: any;
|
|
56
|
-
meta?: any;
|
|
57
|
-
logger?: any;
|
|
58
|
-
store?: any;
|
|
59
|
-
entryTypes?: any;
|
|
60
|
-
parseData?: any;
|
|
61
|
-
renderMarkdown?: any;
|
|
62
|
-
watcher?: any;
|
|
63
|
-
refreshContextData?: Record<string, unknown> | undefined;
|
|
64
|
-
}>], null>, z.ZodUnknown>;
|
|
65
|
-
schema: z.ZodOptional<z.ZodAny>;
|
|
66
|
-
render: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], null>, z.ZodUnknown>>;
|
|
67
|
-
}, "strip", z.ZodTypeAny, {
|
|
68
|
-
name: string;
|
|
69
|
-
load: (args_0: {
|
|
70
|
-
collection: string;
|
|
71
|
-
generateDigest: (args_0: any) => unknown;
|
|
72
|
-
config?: any;
|
|
73
|
-
meta?: any;
|
|
74
|
-
logger?: any;
|
|
75
|
-
store?: any;
|
|
76
|
-
entryTypes?: any;
|
|
77
|
-
parseData?: any;
|
|
78
|
-
renderMarkdown?: any;
|
|
79
|
-
watcher?: any;
|
|
80
|
-
refreshContextData?: Record<string, unknown> | undefined;
|
|
81
|
-
}) => unknown;
|
|
82
|
-
schema?: any;
|
|
83
|
-
render?: ((args_0: any) => unknown) | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
name: string;
|
|
86
|
-
load: (args_0: {
|
|
87
|
-
collection: string;
|
|
88
|
-
generateDigest: (args_0: any) => unknown;
|
|
89
|
-
config?: any;
|
|
90
|
-
meta?: any;
|
|
91
|
-
logger?: any;
|
|
92
|
-
store?: any;
|
|
93
|
-
entryTypes?: any;
|
|
94
|
-
parseData?: any;
|
|
95
|
-
renderMarkdown?: any;
|
|
96
|
-
watcher?: any;
|
|
97
|
-
refreshContextData?: Record<string, unknown> | undefined;
|
|
98
|
-
}) => unknown;
|
|
99
|
-
schema?: any;
|
|
100
|
-
render?: ((args_0: any) => unknown) | undefined;
|
|
101
|
-
}>]>;
|
|
102
|
-
}, "strip", z.ZodTypeAny, {
|
|
103
|
-
type: "content_layer";
|
|
104
|
-
loader: ((...args: unknown[]) => unknown) | {
|
|
105
|
-
name: string;
|
|
106
|
-
load: (args_0: {
|
|
107
|
-
collection: string;
|
|
108
|
-
generateDigest: (args_0: any) => unknown;
|
|
109
|
-
config?: any;
|
|
110
|
-
meta?: any;
|
|
111
|
-
logger?: any;
|
|
112
|
-
store?: any;
|
|
113
|
-
entryTypes?: any;
|
|
114
|
-
parseData?: any;
|
|
115
|
-
renderMarkdown?: any;
|
|
116
|
-
watcher?: any;
|
|
117
|
-
refreshContextData?: Record<string, unknown> | undefined;
|
|
118
|
-
}) => unknown;
|
|
119
|
-
schema?: any;
|
|
120
|
-
render?: ((args_0: any) => unknown) | undefined;
|
|
121
|
-
};
|
|
122
|
-
schema?: any;
|
|
123
|
-
}, {
|
|
124
|
-
type: "content_layer";
|
|
125
|
-
loader: ((...args: unknown[]) => unknown) | {
|
|
126
|
-
name: string;
|
|
127
|
-
load: (args_0: {
|
|
128
|
-
collection: string;
|
|
129
|
-
generateDigest: (args_0: any) => unknown;
|
|
130
|
-
config?: any;
|
|
131
|
-
meta?: any;
|
|
132
|
-
logger?: any;
|
|
133
|
-
store?: any;
|
|
134
|
-
entryTypes?: any;
|
|
135
|
-
parseData?: any;
|
|
136
|
-
renderMarkdown?: any;
|
|
137
|
-
watcher?: any;
|
|
138
|
-
refreshContextData?: Record<string, unknown> | undefined;
|
|
139
|
-
}) => unknown;
|
|
140
|
-
schema?: any;
|
|
141
|
-
render?: ((args_0: any) => unknown) | undefined;
|
|
142
|
-
};
|
|
143
|
-
schema?: any;
|
|
144
|
-
}>, z.ZodObject<{
|
|
21
|
+
load: z.ZodFunction<z.ZodTuple<readonly [z.ZodCustom<LoaderContext, LoaderContext>], null>, z.ZodCustom<void | {
|
|
22
|
+
schema?: any;
|
|
23
|
+
types?: string;
|
|
24
|
+
}, void | {
|
|
25
|
+
schema?: any;
|
|
26
|
+
types?: string;
|
|
27
|
+
}>>;
|
|
28
|
+
schema: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<any, any>>>;
|
|
29
|
+
createSchema: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
|
|
30
|
+
schema: z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
31
|
+
types: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>>>;
|
|
33
|
+
}, z.core.$strip>]>;
|
|
34
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
145
35
|
type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"live">>>;
|
|
146
36
|
schema: z.ZodOptional<z.ZodAny>;
|
|
147
|
-
loader: z.ZodFunction<z.
|
|
148
|
-
},
|
|
149
|
-
type: "live";
|
|
150
|
-
loader: (...args: unknown[]) => unknown;
|
|
151
|
-
schema?: any;
|
|
152
|
-
}, {
|
|
153
|
-
loader: (...args: unknown[]) => unknown;
|
|
154
|
-
type?: "live" | undefined;
|
|
155
|
-
schema?: any;
|
|
156
|
-
}>]>;
|
|
37
|
+
loader: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
|
|
38
|
+
}, z.core.$strip>]>;
|
|
157
39
|
declare const contentConfigParser: z.ZodObject<{
|
|
158
|
-
collections: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
40
|
+
collections: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
159
41
|
type: z.ZodLiteral<"content_layer">;
|
|
160
42
|
schema: z.ZodOptional<z.ZodAny>;
|
|
161
|
-
loader: z.ZodUnion<[z.ZodFunction<z.
|
|
43
|
+
loader: z.ZodUnion<readonly [z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>, z.ZodObject<{
|
|
162
44
|
name: z.ZodString;
|
|
163
|
-
load: z.ZodFunction<z.ZodTuple<[z.
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
generateDigest: (args_0: any) => unknown;
|
|
178
|
-
config?: any;
|
|
179
|
-
meta?: any;
|
|
180
|
-
logger?: any;
|
|
181
|
-
store?: any;
|
|
182
|
-
entryTypes?: any;
|
|
183
|
-
parseData?: any;
|
|
184
|
-
renderMarkdown?: any;
|
|
185
|
-
watcher?: any;
|
|
186
|
-
refreshContextData?: Record<string, unknown> | undefined;
|
|
187
|
-
}, {
|
|
188
|
-
collection: string;
|
|
189
|
-
generateDigest: (args_0: any) => unknown;
|
|
190
|
-
config?: any;
|
|
191
|
-
meta?: any;
|
|
192
|
-
logger?: any;
|
|
193
|
-
store?: any;
|
|
194
|
-
entryTypes?: any;
|
|
195
|
-
parseData?: any;
|
|
196
|
-
renderMarkdown?: any;
|
|
197
|
-
watcher?: any;
|
|
198
|
-
refreshContextData?: Record<string, unknown> | undefined;
|
|
199
|
-
}>], null>, z.ZodUnknown>;
|
|
200
|
-
schema: z.ZodOptional<z.ZodAny>;
|
|
201
|
-
render: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], null>, z.ZodUnknown>>;
|
|
202
|
-
}, "strip", z.ZodTypeAny, {
|
|
203
|
-
name: string;
|
|
204
|
-
load: (args_0: {
|
|
205
|
-
collection: string;
|
|
206
|
-
generateDigest: (args_0: any) => unknown;
|
|
207
|
-
config?: any;
|
|
208
|
-
meta?: any;
|
|
209
|
-
logger?: any;
|
|
210
|
-
store?: any;
|
|
211
|
-
entryTypes?: any;
|
|
212
|
-
parseData?: any;
|
|
213
|
-
renderMarkdown?: any;
|
|
214
|
-
watcher?: any;
|
|
215
|
-
refreshContextData?: Record<string, unknown> | undefined;
|
|
216
|
-
}) => unknown;
|
|
217
|
-
schema?: any;
|
|
218
|
-
render?: ((args_0: any) => unknown) | undefined;
|
|
219
|
-
}, {
|
|
220
|
-
name: string;
|
|
221
|
-
load: (args_0: {
|
|
222
|
-
collection: string;
|
|
223
|
-
generateDigest: (args_0: any) => unknown;
|
|
224
|
-
config?: any;
|
|
225
|
-
meta?: any;
|
|
226
|
-
logger?: any;
|
|
227
|
-
store?: any;
|
|
228
|
-
entryTypes?: any;
|
|
229
|
-
parseData?: any;
|
|
230
|
-
renderMarkdown?: any;
|
|
231
|
-
watcher?: any;
|
|
232
|
-
refreshContextData?: Record<string, unknown> | undefined;
|
|
233
|
-
}) => unknown;
|
|
234
|
-
schema?: any;
|
|
235
|
-
render?: ((args_0: any) => unknown) | undefined;
|
|
236
|
-
}>]>;
|
|
237
|
-
}, "strip", z.ZodTypeAny, {
|
|
238
|
-
type: "content_layer";
|
|
239
|
-
loader: ((...args: unknown[]) => unknown) | {
|
|
240
|
-
name: string;
|
|
241
|
-
load: (args_0: {
|
|
242
|
-
collection: string;
|
|
243
|
-
generateDigest: (args_0: any) => unknown;
|
|
244
|
-
config?: any;
|
|
245
|
-
meta?: any;
|
|
246
|
-
logger?: any;
|
|
247
|
-
store?: any;
|
|
248
|
-
entryTypes?: any;
|
|
249
|
-
parseData?: any;
|
|
250
|
-
renderMarkdown?: any;
|
|
251
|
-
watcher?: any;
|
|
252
|
-
refreshContextData?: Record<string, unknown> | undefined;
|
|
253
|
-
}) => unknown;
|
|
254
|
-
schema?: any;
|
|
255
|
-
render?: ((args_0: any) => unknown) | undefined;
|
|
256
|
-
};
|
|
257
|
-
schema?: any;
|
|
258
|
-
}, {
|
|
259
|
-
type: "content_layer";
|
|
260
|
-
loader: ((...args: unknown[]) => unknown) | {
|
|
261
|
-
name: string;
|
|
262
|
-
load: (args_0: {
|
|
263
|
-
collection: string;
|
|
264
|
-
generateDigest: (args_0: any) => unknown;
|
|
265
|
-
config?: any;
|
|
266
|
-
meta?: any;
|
|
267
|
-
logger?: any;
|
|
268
|
-
store?: any;
|
|
269
|
-
entryTypes?: any;
|
|
270
|
-
parseData?: any;
|
|
271
|
-
renderMarkdown?: any;
|
|
272
|
-
watcher?: any;
|
|
273
|
-
refreshContextData?: Record<string, unknown> | undefined;
|
|
274
|
-
}) => unknown;
|
|
275
|
-
schema?: any;
|
|
276
|
-
render?: ((args_0: any) => unknown) | undefined;
|
|
277
|
-
};
|
|
278
|
-
schema?: any;
|
|
279
|
-
}>, z.ZodObject<{
|
|
45
|
+
load: z.ZodFunction<z.ZodTuple<readonly [z.ZodCustom<LoaderContext, LoaderContext>], null>, z.ZodCustom<void | {
|
|
46
|
+
schema?: any;
|
|
47
|
+
types?: string;
|
|
48
|
+
}, void | {
|
|
49
|
+
schema?: any;
|
|
50
|
+
types?: string;
|
|
51
|
+
}>>;
|
|
52
|
+
schema: z.ZodOptional<z.ZodPipe<z.ZodAny, z.ZodTransform<any, any>>>;
|
|
53
|
+
createSchema: z.ZodOptional<z.ZodFunction<z.ZodTuple<readonly [], null>, z.ZodPromise<z.ZodObject<{
|
|
54
|
+
schema: z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
55
|
+
types: z.ZodString;
|
|
56
|
+
}, z.core.$strip>>>>;
|
|
57
|
+
}, z.core.$strip>]>;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
280
59
|
type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"live">>>;
|
|
281
60
|
schema: z.ZodOptional<z.ZodAny>;
|
|
282
|
-
loader: z.ZodFunction<z.
|
|
283
|
-
},
|
|
284
|
-
|
|
285
|
-
loader: (...args: unknown[]) => unknown;
|
|
286
|
-
schema?: any;
|
|
287
|
-
}, {
|
|
288
|
-
loader: (...args: unknown[]) => unknown;
|
|
289
|
-
type?: "live" | undefined;
|
|
290
|
-
schema?: any;
|
|
291
|
-
}>]>>;
|
|
292
|
-
}, "strip", z.ZodTypeAny, {
|
|
293
|
-
collections: Record<string, {
|
|
294
|
-
type: "content_layer";
|
|
295
|
-
loader: ((...args: unknown[]) => unknown) | {
|
|
296
|
-
name: string;
|
|
297
|
-
load: (args_0: {
|
|
298
|
-
collection: string;
|
|
299
|
-
generateDigest: (args_0: any) => unknown;
|
|
300
|
-
config?: any;
|
|
301
|
-
meta?: any;
|
|
302
|
-
logger?: any;
|
|
303
|
-
store?: any;
|
|
304
|
-
entryTypes?: any;
|
|
305
|
-
parseData?: any;
|
|
306
|
-
renderMarkdown?: any;
|
|
307
|
-
watcher?: any;
|
|
308
|
-
refreshContextData?: Record<string, unknown> | undefined;
|
|
309
|
-
}) => unknown;
|
|
310
|
-
schema?: any;
|
|
311
|
-
render?: ((args_0: any) => unknown) | undefined;
|
|
312
|
-
};
|
|
313
|
-
schema?: any;
|
|
314
|
-
} | {
|
|
315
|
-
type: "live";
|
|
316
|
-
loader: (...args: unknown[]) => unknown;
|
|
317
|
-
schema?: any;
|
|
318
|
-
}>;
|
|
319
|
-
}, {
|
|
320
|
-
collections: Record<string, {
|
|
321
|
-
type: "content_layer";
|
|
322
|
-
loader: ((...args: unknown[]) => unknown) | {
|
|
323
|
-
name: string;
|
|
324
|
-
load: (args_0: {
|
|
325
|
-
collection: string;
|
|
326
|
-
generateDigest: (args_0: any) => unknown;
|
|
327
|
-
config?: any;
|
|
328
|
-
meta?: any;
|
|
329
|
-
logger?: any;
|
|
330
|
-
store?: any;
|
|
331
|
-
entryTypes?: any;
|
|
332
|
-
parseData?: any;
|
|
333
|
-
renderMarkdown?: any;
|
|
334
|
-
watcher?: any;
|
|
335
|
-
refreshContextData?: Record<string, unknown> | undefined;
|
|
336
|
-
}) => unknown;
|
|
337
|
-
schema?: any;
|
|
338
|
-
render?: ((args_0: any) => unknown) | undefined;
|
|
339
|
-
};
|
|
340
|
-
schema?: any;
|
|
341
|
-
} | {
|
|
342
|
-
loader: (...args: unknown[]) => unknown;
|
|
343
|
-
type?: "live" | undefined;
|
|
344
|
-
schema?: any;
|
|
345
|
-
}>;
|
|
346
|
-
}>;
|
|
61
|
+
loader: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
|
|
62
|
+
}, z.core.$strip>]>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
347
64
|
export type CollectionConfig = z.infer<typeof collectionConfigParser>;
|
|
348
65
|
export type ContentConfig = z.infer<typeof contentConfigParser> & {
|
|
349
66
|
digest?: string;
|
|
@@ -358,21 +75,12 @@ export declare function parseEntrySlug({ id, collection, generatedSlug, frontmat
|
|
|
358
75
|
generatedSlug: string;
|
|
359
76
|
frontmatterSlug?: unknown;
|
|
360
77
|
}): string;
|
|
361
|
-
export declare function
|
|
78
|
+
export declare function getEntryData<TInputData extends Record<string, unknown> = Record<string, unknown>, TOutputData extends TInputData = TInputData>(entry: {
|
|
362
79
|
id: string;
|
|
363
80
|
collection: string;
|
|
364
81
|
unvalidatedData: TInputData;
|
|
365
82
|
_internal: EntryInternal;
|
|
366
|
-
}, collectionConfig: CollectionConfig, shouldEmitFile: boolean, pluginContext?: PluginContext): Promise<
|
|
367
|
-
data: TOutputData;
|
|
368
|
-
imageImports: Array<string>;
|
|
369
|
-
}>;
|
|
370
|
-
export declare function getEntryData(entry: {
|
|
371
|
-
id: string;
|
|
372
|
-
collection: string;
|
|
373
|
-
unvalidatedData: Record<string, unknown>;
|
|
374
|
-
_internal: EntryInternal;
|
|
375
|
-
}, collectionConfig: CollectionConfig, shouldEmitFile: boolean, pluginContext?: PluginContext): Promise<Record<string, unknown>>;
|
|
83
|
+
}, collectionConfig: CollectionConfig, shouldEmitFile: boolean, pluginContext?: PluginContext): Promise<TOutputData>;
|
|
376
84
|
export declare function getContentEntryExts(settings: Pick<AstroSettings, 'contentEntryTypes'>): string[];
|
|
377
85
|
export declare function getDataEntryExts(settings: Pick<AstroSettings, 'dataEntryTypes'>): string[];
|
|
378
86
|
export declare function getEntryConfigByExtMap<TEntryType extends ContentEntryType | DataEntryType>(entryTypes: TEntryType[]): Map<string, TEntryType>;
|
|
@@ -413,7 +121,7 @@ export declare function isDeferredModule(viteId: string): boolean;
|
|
|
413
121
|
export declare function reloadContentConfigObserver({ observer, ...loadContentConfigOpts }: {
|
|
414
122
|
fs: typeof fsMod;
|
|
415
123
|
settings: AstroSettings;
|
|
416
|
-
|
|
124
|
+
environment: RunnableDevEnvironment;
|
|
417
125
|
observer?: ContentObservable;
|
|
418
126
|
}): Promise<void>;
|
|
419
127
|
type ContentCtx = {
|