astro 4.3.5 → 4.3.7
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/dist/core/app/index.js +1 -1
- package/dist/core/build/plugins/plugin-manifest.js +1 -1
- package/dist/core/client-directive/build.d.ts +1 -1
- package/dist/core/client-directive/build.js +4 -3
- package/dist/core/config/schema.d.ts +37 -37
- package/dist/core/config/schema.js +3 -3
- package/dist/core/constants.js +1 -1
- package/dist/core/dev/dev.js +1 -1
- package/dist/core/messages.js +2 -2
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/index.js +12 -76
- package/dist/i18n/middleware.js +1 -1
- package/dist/integrations/index.js +4 -1
- package/dist/runtime/client/dev-toolbar/apps/audit/a11y.js +24 -17
- package/dist/runtime/server/astro-island.js +30 -23
- package/dist/runtime/server/astro-island.prebuilt.d.ts +1 -1
- package/dist/runtime/server/astro-island.prebuilt.js +1 -1
- package/dist/runtime/server/endpoint.js +9 -2
- package/dist/transitions/router.js +5 -3
- package/dist/vite-plugin-astro-server/response.js +5 -0
- package/package.json +7 -9
package/dist/core/app/index.js
CHANGED
|
@@ -123,7 +123,7 @@ class App {
|
|
|
123
123
|
#computePathnameFromDomain(request) {
|
|
124
124
|
let pathname = void 0;
|
|
125
125
|
const url = new URL(request.url);
|
|
126
|
-
if (this.#manifest.i18n && (this.#manifest.i18n.routing === "domains-prefix-always" || this.#manifest.i18n.routing === "domains-prefix-other-locales" || this.#manifest.i18n.routing === "domains-prefix-
|
|
126
|
+
if (this.#manifest.i18n && (this.#manifest.i18n.routing === "domains-prefix-always" || this.#manifest.i18n.routing === "domains-prefix-other-locales" || this.#manifest.i18n.routing === "domains-prefix-always-no-redirect")) {
|
|
127
127
|
let host = request.headers.get("X-Forwarded-Host");
|
|
128
128
|
let protocol = request.headers.get("X-Forwarded-Proto");
|
|
129
129
|
if (protocol) {
|
|
@@ -177,7 +177,7 @@ function buildManifest(opts, internals, staticFiles) {
|
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
const i18n = settings.config.i18n;
|
|
180
|
-
if (settings.config.experimental.i18nDomains && i18n && i18n.domains && (i18n.routing === "domains-prefix-always" || i18n.routing === "domains-prefix-other-locales" || i18n.routing === "domains-prefix-
|
|
180
|
+
if (settings.config.experimental.i18nDomains && i18n && i18n.domains && (i18n.routing === "domains-prefix-always" || i18n.routing === "domains-prefix-other-locales" || i18n.routing === "domains-prefix-always-no-redirect")) {
|
|
181
181
|
for (const [locale, domainValue] of Object.entries(i18n.domains)) {
|
|
182
182
|
domainLookupTable[domainValue] = normalizeTheLocale(locale);
|
|
183
183
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Build a client directive entrypoint into code that can directly run in a `<script>` tag.
|
|
3
3
|
*/
|
|
4
|
-
export declare function buildClientDirectiveEntrypoint(name: string, entrypoint: string): Promise<string>;
|
|
4
|
+
export declare function buildClientDirectiveEntrypoint(name: string, entrypoint: string, root: URL): Promise<string>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { build } from "esbuild";
|
|
2
|
-
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
async function buildClientDirectiveEntrypoint(name, entrypoint, root) {
|
|
3
4
|
const stringifiedName = JSON.stringify(name);
|
|
4
5
|
const stringifiedEntrypoint = JSON.stringify(entrypoint);
|
|
5
6
|
const output = await build({
|
|
@@ -9,9 +10,9 @@ async function buildClientDirectiveEntrypoint(name, entrypoint) {
|
|
|
9
10
|
(self.Astro || (self.Astro = {}))[${stringifiedName}] = directive;
|
|
10
11
|
|
|
11
12
|
window.dispatchEvent(new Event('astro:' + ${stringifiedName}));`,
|
|
12
|
-
resolveDir:
|
|
13
|
+
resolveDir: fileURLToPath(root)
|
|
13
14
|
},
|
|
14
|
-
absWorkingDir:
|
|
15
|
+
absWorkingDir: fileURLToPath(root),
|
|
15
16
|
format: "iife",
|
|
16
17
|
minify: true,
|
|
17
18
|
bundle: true,
|
|
@@ -7,7 +7,7 @@ import { z } from 'zod';
|
|
|
7
7
|
import 'mdast-util-to-hast';
|
|
8
8
|
import 'shikiji-core';
|
|
9
9
|
type ShikiTheme = NonNullable<ShikiConfig['theme']>;
|
|
10
|
-
export type RoutingStrategies = 'pathname-prefix-always' | 'pathname-prefix-other-locales' | 'pathname-prefix-always-no-redirect' | 'domains-prefix-always' | 'domains-prefix-other-locales' | 'domains-prefix-
|
|
10
|
+
export type RoutingStrategies = 'pathname-prefix-always' | 'pathname-prefix-other-locales' | 'pathname-prefix-always-no-redirect' | 'domains-prefix-always' | 'domains-prefix-other-locales' | 'domains-prefix-always-no-redirect';
|
|
11
11
|
export declare const AstroConfigSchema: z.ZodObject<{
|
|
12
12
|
root: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>;
|
|
13
13
|
srcDir: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, URL, string | undefined>;
|
|
@@ -192,14 +192,14 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
192
192
|
transformers: z.ZodDefault<z.ZodArray<z.ZodType<import("shikiji-core/dist/chunk-types.mjs").K, z.ZodTypeDef, import("shikiji-core/dist/chunk-types.mjs").K>, "many">>;
|
|
193
193
|
}, "strip", z.ZodTypeAny, {
|
|
194
194
|
langs: import("shikiji-core/dist/chunk-types.mjs").s[];
|
|
195
|
-
theme: ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
|
|
196
|
-
experimentalThemes: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
|
|
195
|
+
theme: ("andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
|
|
196
|
+
experimentalThemes: Record<string, "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
|
|
197
197
|
wrap: boolean | null;
|
|
198
198
|
transformers: import("shikiji-core/dist/chunk-types.mjs").K[];
|
|
199
199
|
}, {
|
|
200
200
|
langs?: import("shikiji-core/dist/chunk-types.mjs").s[] | undefined;
|
|
201
|
-
theme?: "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
|
|
202
|
-
experimentalThemes?: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
|
|
201
|
+
theme?: "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
|
|
202
|
+
experimentalThemes?: Record<string, "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
|
|
203
203
|
wrap?: boolean | null | undefined;
|
|
204
204
|
transformers?: import("shikiji-core/dist/chunk-types.mjs").K[] | undefined;
|
|
205
205
|
}>>;
|
|
@@ -212,8 +212,8 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
212
212
|
syntaxHighlight: false | "shiki" | "prism";
|
|
213
213
|
shikiConfig: {
|
|
214
214
|
langs: import("shikiji-core/dist/chunk-types.mjs").s[];
|
|
215
|
-
theme: ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
|
|
216
|
-
experimentalThemes: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
|
|
215
|
+
theme: ("andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
|
|
216
|
+
experimentalThemes: Record<string, "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
|
|
217
217
|
wrap: boolean | null;
|
|
218
218
|
transformers: import("shikiji-core/dist/chunk-types.mjs").K[];
|
|
219
219
|
};
|
|
@@ -226,8 +226,8 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
226
226
|
syntaxHighlight?: false | "shiki" | "prism" | undefined;
|
|
227
227
|
shikiConfig?: {
|
|
228
228
|
langs?: import("shikiji-core/dist/chunk-types.mjs").s[] | undefined;
|
|
229
|
-
theme?: "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
|
|
230
|
-
experimentalThemes?: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
|
|
229
|
+
theme?: "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
|
|
230
|
+
experimentalThemes?: Record<string, "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
|
|
231
231
|
wrap?: boolean | null | undefined;
|
|
232
232
|
transformers?: import("shikiji-core/dist/chunk-types.mjs").K[] | undefined;
|
|
233
233
|
} | undefined;
|
|
@@ -422,8 +422,8 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
422
422
|
syntaxHighlight: false | "shiki" | "prism";
|
|
423
423
|
shikiConfig: {
|
|
424
424
|
langs: import("shikiji-core/dist/chunk-types.mjs").s[];
|
|
425
|
-
theme: ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
|
|
426
|
-
experimentalThemes: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
|
|
425
|
+
theme: ("andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
|
|
426
|
+
experimentalThemes: Record<string, "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
|
|
427
427
|
wrap: boolean | null;
|
|
428
428
|
transformers: import("shikiji-core/dist/chunk-types.mjs").K[];
|
|
429
429
|
};
|
|
@@ -522,8 +522,8 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
522
522
|
syntaxHighlight?: false | "shiki" | "prism" | undefined;
|
|
523
523
|
shikiConfig?: {
|
|
524
524
|
langs?: import("shikiji-core/dist/chunk-types.mjs").s[] | undefined;
|
|
525
|
-
theme?: "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
|
|
526
|
-
experimentalThemes?: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
|
|
525
|
+
theme?: "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
|
|
526
|
+
experimentalThemes?: Record<string, "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
|
|
527
527
|
wrap?: boolean | null | undefined;
|
|
528
528
|
transformers?: import("shikiji-core/dist/chunk-types.mjs").K[] | undefined;
|
|
529
529
|
} | undefined;
|
|
@@ -687,14 +687,14 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
687
687
|
transformers: z.ZodDefault<z.ZodArray<z.ZodType<import("shikiji-core/dist/chunk-types.mjs").K, z.ZodTypeDef, import("shikiji-core/dist/chunk-types.mjs").K>, "many">>;
|
|
688
688
|
}, "strip", z.ZodTypeAny, {
|
|
689
689
|
langs: import("shikiji-core/dist/chunk-types.mjs").s[];
|
|
690
|
-
theme: ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
|
|
691
|
-
experimentalThemes: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
|
|
690
|
+
theme: ("andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
|
|
691
|
+
experimentalThemes: Record<string, "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
|
|
692
692
|
wrap: boolean | null;
|
|
693
693
|
transformers: import("shikiji-core/dist/chunk-types.mjs").K[];
|
|
694
694
|
}, {
|
|
695
695
|
langs?: import("shikiji-core/dist/chunk-types.mjs").s[] | undefined;
|
|
696
|
-
theme?: "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
|
|
697
|
-
experimentalThemes?: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
|
|
696
|
+
theme?: "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
|
|
697
|
+
experimentalThemes?: Record<string, "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
|
|
698
698
|
wrap?: boolean | null | undefined;
|
|
699
699
|
transformers?: import("shikiji-core/dist/chunk-types.mjs").K[] | undefined;
|
|
700
700
|
}>>;
|
|
@@ -707,8 +707,8 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
707
707
|
syntaxHighlight: false | "shiki" | "prism";
|
|
708
708
|
shikiConfig: {
|
|
709
709
|
langs: import("shikiji-core/dist/chunk-types.mjs").s[];
|
|
710
|
-
theme: ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
|
|
711
|
-
experimentalThemes: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
|
|
710
|
+
theme: ("andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
|
|
711
|
+
experimentalThemes: Record<string, "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
|
|
712
712
|
wrap: boolean | null;
|
|
713
713
|
transformers: import("shikiji-core/dist/chunk-types.mjs").K[];
|
|
714
714
|
};
|
|
@@ -721,8 +721,8 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
721
721
|
syntaxHighlight?: false | "shiki" | "prism" | undefined;
|
|
722
722
|
shikiConfig?: {
|
|
723
723
|
langs?: import("shikiji-core/dist/chunk-types.mjs").s[] | undefined;
|
|
724
|
-
theme?: "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
|
|
725
|
-
experimentalThemes?: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
|
|
724
|
+
theme?: "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
|
|
725
|
+
experimentalThemes?: Record<string, "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
|
|
726
726
|
wrap?: boolean | null | undefined;
|
|
727
727
|
transformers?: import("shikiji-core/dist/chunk-types.mjs").K[] | undefined;
|
|
728
728
|
} | undefined;
|
|
@@ -977,8 +977,8 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
977
977
|
syntaxHighlight: false | "shiki" | "prism";
|
|
978
978
|
shikiConfig: {
|
|
979
979
|
langs: import("shikiji-core/dist/chunk-types.mjs").s[];
|
|
980
|
-
theme: ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
|
|
981
|
-
experimentalThemes: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
|
|
980
|
+
theme: ("andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
|
|
981
|
+
experimentalThemes: Record<string, "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
|
|
982
982
|
wrap: boolean | null;
|
|
983
983
|
transformers: import("shikiji-core/dist/chunk-types.mjs").K[];
|
|
984
984
|
};
|
|
@@ -1060,8 +1060,8 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1060
1060
|
syntaxHighlight?: false | "shiki" | "prism" | undefined;
|
|
1061
1061
|
shikiConfig?: {
|
|
1062
1062
|
langs?: import("shikiji-core/dist/chunk-types.mjs").s[] | undefined;
|
|
1063
|
-
theme?: "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
|
|
1064
|
-
experimentalThemes?: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
|
|
1063
|
+
theme?: "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
|
|
1064
|
+
experimentalThemes?: Record<string, "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
|
|
1065
1065
|
wrap?: boolean | null | undefined;
|
|
1066
1066
|
transformers?: import("shikiji-core/dist/chunk-types.mjs").K[] | undefined;
|
|
1067
1067
|
} | undefined;
|
|
@@ -1170,8 +1170,8 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1170
1170
|
syntaxHighlight: false | "shiki" | "prism";
|
|
1171
1171
|
shikiConfig: {
|
|
1172
1172
|
langs: import("shikiji-core/dist/chunk-types.mjs").s[];
|
|
1173
|
-
theme: ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
|
|
1174
|
-
experimentalThemes: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
|
|
1173
|
+
theme: ("andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
|
|
1174
|
+
experimentalThemes: Record<string, "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
|
|
1175
1175
|
wrap: boolean | null;
|
|
1176
1176
|
transformers: import("shikiji-core/dist/chunk-types.mjs").K[];
|
|
1177
1177
|
};
|
|
@@ -1253,8 +1253,8 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1253
1253
|
syntaxHighlight?: false | "shiki" | "prism" | undefined;
|
|
1254
1254
|
shikiConfig?: {
|
|
1255
1255
|
langs?: import("shikiji-core/dist/chunk-types.mjs").s[] | undefined;
|
|
1256
|
-
theme?: "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
|
|
1257
|
-
experimentalThemes?: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
|
|
1256
|
+
theme?: "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
|
|
1257
|
+
experimentalThemes?: Record<string, "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
|
|
1258
1258
|
wrap?: boolean | null | undefined;
|
|
1259
1259
|
transformers?: import("shikiji-core/dist/chunk-types.mjs").K[] | undefined;
|
|
1260
1260
|
} | undefined;
|
|
@@ -1363,8 +1363,8 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1363
1363
|
syntaxHighlight: false | "shiki" | "prism";
|
|
1364
1364
|
shikiConfig: {
|
|
1365
1365
|
langs: import("shikiji-core/dist/chunk-types.mjs").s[];
|
|
1366
|
-
theme: ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
|
|
1367
|
-
experimentalThemes: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
|
|
1366
|
+
theme: ("andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
|
|
1367
|
+
experimentalThemes: Record<string, "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
|
|
1368
1368
|
wrap: boolean | null;
|
|
1369
1369
|
transformers: import("shikiji-core/dist/chunk-types.mjs").K[];
|
|
1370
1370
|
};
|
|
@@ -1446,8 +1446,8 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1446
1446
|
syntaxHighlight?: false | "shiki" | "prism" | undefined;
|
|
1447
1447
|
shikiConfig?: {
|
|
1448
1448
|
langs?: import("shikiji-core/dist/chunk-types.mjs").s[] | undefined;
|
|
1449
|
-
theme?: "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
|
|
1450
|
-
experimentalThemes?: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
|
|
1449
|
+
theme?: "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
|
|
1450
|
+
experimentalThemes?: Record<string, "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
|
|
1451
1451
|
wrap?: boolean | null | undefined;
|
|
1452
1452
|
transformers?: import("shikiji-core/dist/chunk-types.mjs").K[] | undefined;
|
|
1453
1453
|
} | undefined;
|
|
@@ -1556,8 +1556,8 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1556
1556
|
syntaxHighlight: false | "shiki" | "prism";
|
|
1557
1557
|
shikiConfig: {
|
|
1558
1558
|
langs: import("shikiji-core/dist/chunk-types.mjs").s[];
|
|
1559
|
-
theme: ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
|
|
1560
|
-
experimentalThemes: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
|
|
1559
|
+
theme: ("andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z) & ("andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined);
|
|
1560
|
+
experimentalThemes: Record<string, "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z>;
|
|
1561
1561
|
wrap: boolean | null;
|
|
1562
1562
|
transformers: import("shikiji-core/dist/chunk-types.mjs").K[];
|
|
1563
1563
|
};
|
|
@@ -1639,8 +1639,8 @@ export declare function createRelativeSchema(cmd: string, fileProtocolRoot: stri
|
|
|
1639
1639
|
syntaxHighlight?: false | "shiki" | "prism" | undefined;
|
|
1640
1640
|
shikiConfig?: {
|
|
1641
1641
|
langs?: import("shikiji-core/dist/chunk-types.mjs").s[] | undefined;
|
|
1642
|
-
theme?: "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
|
|
1643
|
-
experimentalThemes?: Record<string, "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
|
|
1642
|
+
theme?: "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z | undefined;
|
|
1643
|
+
experimentalThemes?: Record<string, "andromeeda" | "aurora-x" | "catppuccin-frappe" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-mocha" | "dark-plus" | "dracula" | "dracula-soft" | "github-dark" | "github-dark-dimmed" | "github-light" | "light-plus" | "material-theme" | "material-theme-darker" | "material-theme-lighter" | "material-theme-ocean" | "material-theme-palenight" | "min-dark" | "min-light" | "monokai" | "nord" | "one-dark-pro" | "poimandres" | "red" | "rose-pine" | "rose-pine-dawn" | "rose-pine-moon" | "slack-dark" | "slack-ochin" | "solarized-dark" | "solarized-light" | "vitesse-black" | "vitesse-dark" | "vitesse-light" | "css-variables" | import("shikiji-core/dist/chunk-types.mjs").D | import("shikiji-core/dist/chunk-types.mjs").z> | undefined;
|
|
1644
1644
|
wrap?: boolean | null | undefined;
|
|
1645
1645
|
transformers?: import("shikiji-core/dist/chunk-types.mjs").K[] | undefined;
|
|
1646
1646
|
} | undefined;
|
|
@@ -237,7 +237,7 @@ const AstroConfigSchema = z.object({
|
|
|
237
237
|
if (routing.redirectToDefaultLocale) {
|
|
238
238
|
strategy = "domains-prefix-always";
|
|
239
239
|
} else {
|
|
240
|
-
strategy = "domains-prefix-
|
|
240
|
+
strategy = "domains-prefix-always-no-redirect";
|
|
241
241
|
}
|
|
242
242
|
} else {
|
|
243
243
|
strategy = "domains-prefix-other-locales";
|
|
@@ -287,7 +287,7 @@ const AstroConfigSchema = z.object({
|
|
|
287
287
|
if (domains) {
|
|
288
288
|
const entries = Object.entries(domains);
|
|
289
289
|
if (entries.length > 0) {
|
|
290
|
-
if (routing !== "domains-prefix-other-locales" && routing !== "domains-prefix-
|
|
290
|
+
if (routing !== "domains-prefix-other-locales" && routing !== "domains-prefix-always-no-redirect" && routing !== "domains-prefix-always") {
|
|
291
291
|
ctx.addIssue({
|
|
292
292
|
code: z.ZodIssueCode.custom,
|
|
293
293
|
message: `When specifying some domains, the property \`i18n.routingStrategy\` must be set to \`"domains"\`.`
|
|
@@ -394,7 +394,7 @@ function createRelativeSchema(cmd, fileProtocolRoot) {
|
|
|
394
394
|
}).superRefine((configuration, ctx) => {
|
|
395
395
|
const { site, experimental, i18n, output } = configuration;
|
|
396
396
|
if (experimental.i18nDomains) {
|
|
397
|
-
if (i18n?.routing === "domains-prefix-other-locales" || i18n?.routing === "domains-prefix-
|
|
397
|
+
if (i18n?.routing === "domains-prefix-other-locales" || i18n?.routing === "domains-prefix-always-no-redirect" || i18n?.routing === "domains-prefix-always") {
|
|
398
398
|
if (!site) {
|
|
399
399
|
ctx.addIssue({
|
|
400
400
|
code: z.ZodIssueCode.custom,
|
package/dist/core/constants.js
CHANGED
package/dist/core/dev/dev.js
CHANGED
|
@@ -23,7 +23,7 @@ async function dev(inlineConfig) {
|
|
|
23
23
|
base: restart.container.settings.config.base
|
|
24
24
|
})
|
|
25
25
|
);
|
|
26
|
-
const currentVersion = "4.3.
|
|
26
|
+
const currentVersion = "4.3.7";
|
|
27
27
|
if (currentVersion.includes("-")) {
|
|
28
28
|
logger.warn("SKIP_FORMAT", msg.prerelease({ currentVersion }));
|
|
29
29
|
}
|
package/dist/core/messages.js
CHANGED
|
@@ -36,7 +36,7 @@ function serverStart({
|
|
|
36
36
|
host,
|
|
37
37
|
base
|
|
38
38
|
}) {
|
|
39
|
-
const version = "4.3.
|
|
39
|
+
const version = "4.3.7";
|
|
40
40
|
const localPrefix = `${dim("\u2503")} Local `;
|
|
41
41
|
const networkPrefix = `${dim("\u2503")} Network `;
|
|
42
42
|
const emptyPrefix = " ".repeat(11);
|
|
@@ -261,7 +261,7 @@ function printHelp({
|
|
|
261
261
|
message.push(
|
|
262
262
|
linebreak(),
|
|
263
263
|
` ${bgGreen(black(` ${commandName} `))} ${green(
|
|
264
|
-
`v${"4.3.
|
|
264
|
+
`v${"4.3.7"}`
|
|
265
265
|
)} ${headline}`
|
|
266
266
|
);
|
|
267
267
|
}
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -44,12 +44,12 @@ interface GetLocalesRelativeUrlList extends GetLocaleOptions {
|
|
|
44
44
|
defaultLocale: string;
|
|
45
45
|
domains: Record<string, string> | undefined;
|
|
46
46
|
}
|
|
47
|
-
export declare function getLocaleRelativeUrlList({
|
|
47
|
+
export declare function getLocaleRelativeUrlList({ locales: _locales, ...rest }: GetLocalesRelativeUrlList): string[];
|
|
48
48
|
interface GetLocalesAbsoluteUrlList extends GetLocalesRelativeUrlList {
|
|
49
|
-
site
|
|
49
|
+
site: AstroConfig['site'];
|
|
50
50
|
isBuild: boolean;
|
|
51
51
|
}
|
|
52
|
-
export declare function getLocaleAbsoluteUrlList(
|
|
52
|
+
export declare function getLocaleAbsoluteUrlList(params: GetLocalesAbsoluteUrlList): string[];
|
|
53
53
|
/**
|
|
54
54
|
* Given a locale (code), it returns its corresponding path
|
|
55
55
|
* @param locale
|
package/dist/i18n/index.js
CHANGED
|
@@ -23,7 +23,7 @@ function getLocaleRelativeUrl({
|
|
|
23
23
|
}
|
|
24
24
|
const pathsToJoin = [base, prependWith];
|
|
25
25
|
const normalizedLocale = normalizeLocale ? normalizeTheLocale(codeToUse) : codeToUse;
|
|
26
|
-
if (routing === "pathname-prefix-always" || routing === "pathname-prefix-always-no-redirect") {
|
|
26
|
+
if (routing === "pathname-prefix-always" || routing === "pathname-prefix-always-no-redirect" || routing === "domains-prefix-always" || routing === "domains-prefix-always-no-redirect") {
|
|
27
27
|
pathsToJoin.push(normalizedLocale);
|
|
28
28
|
} else if (locale !== defaultLocale) {
|
|
29
29
|
pathsToJoin.push(normalizedLocale);
|
|
@@ -39,7 +39,7 @@ function getLocaleAbsoluteUrl({ site, isBuild, ...rest }) {
|
|
|
39
39
|
const localeUrl = getLocaleRelativeUrl(rest);
|
|
40
40
|
const { domains, locale } = rest;
|
|
41
41
|
let url;
|
|
42
|
-
if (isBuild && domains) {
|
|
42
|
+
if (isBuild && domains && domains[locale]) {
|
|
43
43
|
const base = domains[locale];
|
|
44
44
|
url = joinPaths(base, localeUrl.replace(`/${rest.locale}`, ""));
|
|
45
45
|
} else {
|
|
@@ -56,78 +56,18 @@ function getLocaleAbsoluteUrl({ site, isBuild, ...rest }) {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
function getLocaleRelativeUrlList({
|
|
59
|
-
base,
|
|
60
59
|
locales: _locales,
|
|
61
|
-
|
|
62
|
-
format,
|
|
63
|
-
path,
|
|
64
|
-
prependWith,
|
|
65
|
-
normalizeLocale = true,
|
|
66
|
-
routing = "pathname-prefix-other-locales",
|
|
67
|
-
defaultLocale
|
|
60
|
+
...rest
|
|
68
61
|
}) {
|
|
69
62
|
const locales = toPaths(_locales);
|
|
70
63
|
return locales.map((locale) => {
|
|
71
|
-
|
|
72
|
-
const normalizedLocale = normalizeLocale ? normalizeTheLocale(locale) : locale;
|
|
73
|
-
if (routing === "pathname-prefix-always" || routing === "pathname-prefix-always-no-redirect") {
|
|
74
|
-
pathsToJoin.push(normalizedLocale);
|
|
75
|
-
} else if (locale !== defaultLocale) {
|
|
76
|
-
pathsToJoin.push(normalizedLocale);
|
|
77
|
-
}
|
|
78
|
-
pathsToJoin.push(path);
|
|
79
|
-
if (shouldAppendForwardSlash(trailingSlash, format)) {
|
|
80
|
-
return appendForwardSlash(joinPaths(...pathsToJoin));
|
|
81
|
-
} else {
|
|
82
|
-
return joinPaths(...pathsToJoin);
|
|
83
|
-
}
|
|
64
|
+
return getLocaleRelativeUrl({ ...rest, locales, locale });
|
|
84
65
|
});
|
|
85
66
|
}
|
|
86
|
-
function getLocaleAbsoluteUrlList({
|
|
87
|
-
|
|
88
|
-
locales: _locales,
|
|
89
|
-
trailingSlash,
|
|
90
|
-
format,
|
|
91
|
-
path,
|
|
92
|
-
prependWith,
|
|
93
|
-
normalizeLocale = true,
|
|
94
|
-
routing = "pathname-prefix-other-locales",
|
|
95
|
-
defaultLocale,
|
|
96
|
-
isBuild,
|
|
97
|
-
domains,
|
|
98
|
-
site
|
|
99
|
-
}) {
|
|
100
|
-
const locales = toPaths(_locales);
|
|
67
|
+
function getLocaleAbsoluteUrlList(params) {
|
|
68
|
+
const locales = toCodes(params.locales);
|
|
101
69
|
return locales.map((currentLocale) => {
|
|
102
|
-
|
|
103
|
-
const normalizedLocale = normalizeLocale ? normalizeTheLocale(currentLocale) : currentLocale;
|
|
104
|
-
const domainBase = domains ? domains[currentLocale] : void 0;
|
|
105
|
-
if (isBuild && domainBase) {
|
|
106
|
-
if (domainBase) {
|
|
107
|
-
pathsToJoin.push(domainBase);
|
|
108
|
-
} else {
|
|
109
|
-
pathsToJoin.push(site);
|
|
110
|
-
}
|
|
111
|
-
pathsToJoin.push(base);
|
|
112
|
-
pathsToJoin.push(prependWith);
|
|
113
|
-
} else {
|
|
114
|
-
if (site) {
|
|
115
|
-
pathsToJoin.push(site);
|
|
116
|
-
}
|
|
117
|
-
pathsToJoin.push(base);
|
|
118
|
-
pathsToJoin.push(prependWith);
|
|
119
|
-
if (routing === "pathname-prefix-always" || routing === "pathname-prefix-always-no-redirect") {
|
|
120
|
-
pathsToJoin.push(normalizedLocale);
|
|
121
|
-
} else if (currentLocale !== defaultLocale) {
|
|
122
|
-
pathsToJoin.push(normalizedLocale);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
pathsToJoin.push(path);
|
|
126
|
-
if (shouldAppendForwardSlash(trailingSlash, format)) {
|
|
127
|
-
return appendForwardSlash(joinPaths(...pathsToJoin));
|
|
128
|
-
} else {
|
|
129
|
-
return joinPaths(...pathsToJoin);
|
|
130
|
-
}
|
|
70
|
+
return getLocaleAbsoluteUrl({ ...params, locale: currentLocale });
|
|
131
71
|
});
|
|
132
72
|
}
|
|
133
73
|
function getPathByLocale(locale, locales) {
|
|
@@ -165,17 +105,13 @@ function normalizeTheLocale(locale) {
|
|
|
165
105
|
return locale.replaceAll("_", "-").toLowerCase();
|
|
166
106
|
}
|
|
167
107
|
function toCodes(locales) {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
codes.push(locale);
|
|
108
|
+
return locales.map((loopLocale) => {
|
|
109
|
+
if (typeof loopLocale === "string") {
|
|
110
|
+
return loopLocale;
|
|
172
111
|
} else {
|
|
173
|
-
|
|
174
|
-
codes.push(code);
|
|
175
|
-
}
|
|
112
|
+
return loopLocale.codes[0];
|
|
176
113
|
}
|
|
177
|
-
}
|
|
178
|
-
return codes;
|
|
114
|
+
});
|
|
179
115
|
}
|
|
180
116
|
function toPaths(locales) {
|
|
181
117
|
return locales.map((loopLocale) => {
|
package/dist/i18n/middleware.js
CHANGED
|
@@ -91,7 +91,7 @@ function createI18nMiddleware(i18n, base, trailingSlash, buildFormat) {
|
|
|
91
91
|
}
|
|
92
92
|
break;
|
|
93
93
|
}
|
|
94
|
-
case "domains-prefix-
|
|
94
|
+
case "domains-prefix-always-no-redirect": {
|
|
95
95
|
if (localeHasntDomain(i18n, currentLocale)) {
|
|
96
96
|
const result = prefixAlwaysNoRedirect(url, response);
|
|
97
97
|
if (result) {
|
|
@@ -108,7 +108,10 @@ async function runHookConfigSetup({
|
|
|
108
108
|
`The "${integration.name}" integration is trying to add the "${name}" client directive, but it already exists.`
|
|
109
109
|
);
|
|
110
110
|
}
|
|
111
|
-
addedClientDirectives.set(
|
|
111
|
+
addedClientDirectives.set(
|
|
112
|
+
name,
|
|
113
|
+
buildClientDirectiveEntrypoint(name, entrypoint, settings.config.root)
|
|
114
|
+
);
|
|
112
115
|
},
|
|
113
116
|
addMiddleware: ({ order, entrypoint }) => {
|
|
114
117
|
if (typeof updatedSettings.middlewares[order] === "undefined") {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
*/
|
|
25
25
|
import { aria, roles } from "aria-query";
|
|
26
26
|
import { AXObjectRoles, elementAXObjects } from "axobject-query";
|
|
27
|
+
const WHITESPACE_REGEX = /\s+/;
|
|
27
28
|
const a11y_required_attributes = {
|
|
28
29
|
a: ["href"],
|
|
29
30
|
area: ["alt", "aria-label", "aria-labelledby"],
|
|
@@ -450,13 +451,16 @@ const a11y = [
|
|
|
450
451
|
if (is_semantic_role_element(role, element.localName, getAttributeObject(element))) {
|
|
451
452
|
return;
|
|
452
453
|
}
|
|
453
|
-
const
|
|
454
|
-
const
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
454
|
+
const elementRoles = role.split(WHITESPACE_REGEX);
|
|
455
|
+
for (const elementRole of elementRoles) {
|
|
456
|
+
const { requiredProps } = roles.get(elementRole);
|
|
457
|
+
const required_role_props = Object.keys(requiredProps);
|
|
458
|
+
const missingProps = required_role_props.filter((prop) => !element.hasAttribute(prop));
|
|
459
|
+
if (missingProps.length > 0) {
|
|
460
|
+
element.__astro_role = elementRole;
|
|
461
|
+
element.__astro_missing_attributes = missingProps;
|
|
462
|
+
return true;
|
|
463
|
+
}
|
|
460
464
|
}
|
|
461
465
|
}
|
|
462
466
|
},
|
|
@@ -474,16 +478,19 @@ const a11y = [
|
|
|
474
478
|
const role = getRole(element);
|
|
475
479
|
if (!role)
|
|
476
480
|
return false;
|
|
477
|
-
const
|
|
478
|
-
const
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
(
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
481
|
+
const elementRoles = role.split(WHITESPACE_REGEX);
|
|
482
|
+
for (const elementRole of elementRoles) {
|
|
483
|
+
const { props } = roles.get(elementRole);
|
|
484
|
+
const attributes = getAttributeObject(element);
|
|
485
|
+
const unsupportedAttributes = aria.keys().filter((attribute) => !(attribute in props));
|
|
486
|
+
const invalidAttributes = Object.keys(attributes).filter(
|
|
487
|
+
(key) => key.startsWith("aria-") && unsupportedAttributes.includes(key)
|
|
488
|
+
);
|
|
489
|
+
if (invalidAttributes.length > 0) {
|
|
490
|
+
element.__astro_role = elementRole;
|
|
491
|
+
element.__astro_unsupported_attributes = invalidAttributes;
|
|
492
|
+
return true;
|
|
493
|
+
}
|
|
487
494
|
}
|
|
488
495
|
}
|
|
489
496
|
},
|
|
@@ -59,36 +59,43 @@
|
|
|
59
59
|
}
|
|
60
60
|
this.start();
|
|
61
61
|
}
|
|
62
|
-
start() {
|
|
62
|
+
async start() {
|
|
63
63
|
const opts = JSON.parse(this.getAttribute("opts"));
|
|
64
64
|
const directive = this.getAttribute("client");
|
|
65
65
|
if (Astro[directive] === void 0) {
|
|
66
66
|
window.addEventListener(`astro:${directive}`, () => this.start(), { once: true });
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
69
|
+
try {
|
|
70
|
+
await Astro[directive](
|
|
71
|
+
async () => {
|
|
72
|
+
const rendererUrl = this.getAttribute("renderer-url");
|
|
73
|
+
const [componentModule, { default: hydrator }] = await Promise.all([
|
|
74
|
+
import(this.getAttribute("component-url")),
|
|
75
|
+
rendererUrl ? import(rendererUrl) : () => () => {
|
|
76
|
+
}
|
|
77
|
+
]);
|
|
78
|
+
const componentExport = this.getAttribute("component-export") || "default";
|
|
79
|
+
if (!componentExport.includes(".")) {
|
|
80
|
+
this.Component = componentModule[componentExport];
|
|
81
|
+
} else {
|
|
82
|
+
this.Component = componentModule;
|
|
83
|
+
for (const part of componentExport.split(".")) {
|
|
84
|
+
this.Component = this.Component[part];
|
|
85
|
+
}
|
|
84
86
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
)
|
|
87
|
+
this.hydrator = hydrator;
|
|
88
|
+
return this.hydrate;
|
|
89
|
+
},
|
|
90
|
+
opts,
|
|
91
|
+
this
|
|
92
|
+
);
|
|
93
|
+
} catch (e) {
|
|
94
|
+
console.error(
|
|
95
|
+
`[astro-island] Error hydrating ${this.getAttribute("component-url")}`,
|
|
96
|
+
e
|
|
97
|
+
);
|
|
98
|
+
}
|
|
92
99
|
}
|
|
93
100
|
hydrate = async () => {
|
|
94
101
|
if (!this.hydrator)
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Do not edit this directly, but instead edit that file and rerun the prebuild
|
|
4
4
|
* to generate this file.
|
|
5
5
|
*/
|
|
6
|
-
declare const _default: "(()=>{var b=Object.defineProperty;var f=(c,
|
|
6
|
+
declare const _default: "(()=>{var b=Object.defineProperty;var f=(c,s,a)=>s in c?b(c,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[s]=a;var l=(c,s,a)=>(f(c,typeof s!=\"symbol\"?s+\"\":s,a),a);var p;{let c={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t)},s=t=>{let[e,r]=t;return e in c?c[e](r):void 0},a=t=>t.map(s),m=t=>typeof t!=\"object\"||t===null?t:Object.fromEntries(Object.entries(t).map(([e,r])=>[e,s(r)]));customElements.get(\"astro-island\")||customElements.define(\"astro-island\",(p=class extends HTMLElement{constructor(){super(...arguments);l(this,\"Component\");l(this,\"hydrator\");l(this,\"hydrate\",async()=>{var d;if(!this.hydrator||!this.isConnected)return;let e=(d=this.parentElement)==null?void 0:d.closest(\"astro-island[ssr]\");if(e){e.addEventListener(\"astro:hydrate\",this.hydrate,{once:!0});return}let r=this.querySelectorAll(\"astro-slot\"),o={},h=this.querySelectorAll(\"template[data-astro-template]\");for(let n of h){let i=n.closest(this.tagName);i!=null&&i.isSameNode(this)&&(o[n.getAttribute(\"data-astro-template\")||\"default\"]=n.innerHTML,n.remove())}for(let n of r){let i=n.closest(this.tagName);i!=null&&i.isSameNode(this)&&(o[n.getAttribute(\"name\")||\"default\"]=n.innerHTML)}let u;try{u=this.hasAttribute(\"props\")?m(JSON.parse(this.getAttribute(\"props\"))):{}}catch(n){let i=this.getAttribute(\"component-url\")||\"<unknown>\",y=this.getAttribute(\"component-export\");throw y&&(i+=` (export ${y})`),console.error(`[hydrate] Error parsing props for component ${i}`,this.getAttribute(\"props\"),n),n}await this.hydrator(this)(this.Component,u,o,{client:this.getAttribute(\"client\")}),this.removeAttribute(\"ssr\"),this.dispatchEvent(new CustomEvent(\"astro:hydrate\"))});l(this,\"unmount\",()=>{this.isConnected||this.dispatchEvent(new CustomEvent(\"astro:unmount\"))})}disconnectedCallback(){document.removeEventListener(\"astro:after-swap\",this.unmount),document.addEventListener(\"astro:after-swap\",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute(\"await-children\")||document.readyState===\"interactive\"||document.readyState===\"complete\")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener(\"DOMContentLoaded\",e),r.disconnect(),this.childrenConnectedCallback()},r=new MutationObserver(()=>{var o;((o=this.lastChild)==null?void 0:o.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue===\"astro:end\"&&(this.lastChild.remove(),e())});r.observe(this,{childList:!0}),document.addEventListener(\"DOMContentLoaded\",e)}}async childrenConnectedCallback(){let e=this.getAttribute(\"before-hydration-url\");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute(\"opts\")),r=this.getAttribute(\"client\");if(Astro[r]===void 0){window.addEventListener(`astro:${r}`,()=>this.start(),{once:!0});return}try{await Astro[r](async()=>{let o=this.getAttribute(\"renderer-url\"),[h,{default:u}]=await Promise.all([import(this.getAttribute(\"component-url\")),o?import(o):()=>()=>{}]),d=this.getAttribute(\"component-export\")||\"default\";if(!d.includes(\".\"))this.Component=h[d];else{this.Component=h;for(let n of d.split(\".\"))this.Component=this.Component[n]}return this.hydrator=u,this.hydrate},e,this)}catch(o){console.error(`[astro-island] Error hydrating ${this.getAttribute(\"component-url\")}`,o)}}attributeChangedCallback(){this.hydrate()}},l(p,\"observedAttributes\",[\"props\"]),p))}})();";
|
|
7
7
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var astro_island_prebuilt_default = `(()=>{var b=Object.defineProperty;var f=(c,
|
|
1
|
+
var astro_island_prebuilt_default = `(()=>{var b=Object.defineProperty;var f=(c,s,a)=>s in c?b(c,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[s]=a;var l=(c,s,a)=>(f(c,typeof s!="symbol"?s+"":s,a),a);var p;{let c={0:t=>m(t),1:t=>a(t),2:t=>new RegExp(t),3:t=>new Date(t),4:t=>new Map(a(t)),5:t=>new Set(a(t)),6:t=>BigInt(t),7:t=>new URL(t),8:t=>new Uint8Array(t),9:t=>new Uint16Array(t),10:t=>new Uint32Array(t)},s=t=>{let[e,r]=t;return e in c?c[e](r):void 0},a=t=>t.map(s),m=t=>typeof t!="object"||t===null?t:Object.fromEntries(Object.entries(t).map(([e,r])=>[e,s(r)]));customElements.get("astro-island")||customElements.define("astro-island",(p=class extends HTMLElement{constructor(){super(...arguments);l(this,"Component");l(this,"hydrator");l(this,"hydrate",async()=>{var d;if(!this.hydrator||!this.isConnected)return;let e=(d=this.parentElement)==null?void 0:d.closest("astro-island[ssr]");if(e){e.addEventListener("astro:hydrate",this.hydrate,{once:!0});return}let r=this.querySelectorAll("astro-slot"),o={},h=this.querySelectorAll("template[data-astro-template]");for(let n of h){let i=n.closest(this.tagName);i!=null&&i.isSameNode(this)&&(o[n.getAttribute("data-astro-template")||"default"]=n.innerHTML,n.remove())}for(let n of r){let i=n.closest(this.tagName);i!=null&&i.isSameNode(this)&&(o[n.getAttribute("name")||"default"]=n.innerHTML)}let u;try{u=this.hasAttribute("props")?m(JSON.parse(this.getAttribute("props"))):{}}catch(n){let i=this.getAttribute("component-url")||"<unknown>",y=this.getAttribute("component-export");throw y&&(i+=\` (export \${y})\`),console.error(\`[hydrate] Error parsing props for component \${i}\`,this.getAttribute("props"),n),n}await this.hydrator(this)(this.Component,u,o,{client:this.getAttribute("client")}),this.removeAttribute("ssr"),this.dispatchEvent(new CustomEvent("astro:hydrate"))});l(this,"unmount",()=>{this.isConnected||this.dispatchEvent(new CustomEvent("astro:unmount"))})}disconnectedCallback(){document.removeEventListener("astro:after-swap",this.unmount),document.addEventListener("astro:after-swap",this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute("await-children")||document.readyState==="interactive"||document.readyState==="complete")this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener("DOMContentLoaded",e),r.disconnect(),this.childrenConnectedCallback()},r=new MutationObserver(()=>{var o;((o=this.lastChild)==null?void 0:o.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue==="astro:end"&&(this.lastChild.remove(),e())});r.observe(this,{childList:!0}),document.addEventListener("DOMContentLoaded",e)}}async childrenConnectedCallback(){let e=this.getAttribute("before-hydration-url");e&&await import(e),this.start()}async start(){let e=JSON.parse(this.getAttribute("opts")),r=this.getAttribute("client");if(Astro[r]===void 0){window.addEventListener(\`astro:\${r}\`,()=>this.start(),{once:!0});return}try{await Astro[r](async()=>{let o=this.getAttribute("renderer-url"),[h,{default:u}]=await Promise.all([import(this.getAttribute("component-url")),o?import(o):()=>()=>{}]),d=this.getAttribute("component-export")||"default";if(!d.includes("."))this.Component=h[d];else{this.Component=h;for(let n of d.split("."))this.Component=this.Component[n]}return this.hydrator=u,this.hydrate},e,this)}catch(o){console.error(\`[astro-island] Error hydrating \${this.getAttribute("component-url")}\`,o)}}attributeChangedCallback(){this.hydrate()}},l(p,"observedAttributes",["props"]),p))}})();`;
|
|
2
2
|
export {
|
|
3
3
|
astro_island_prebuilt_default as default
|
|
4
4
|
};
|
|
@@ -12,16 +12,23 @@ async function renderEndpoint(mod, context, ssr, logger) {
|
|
|
12
12
|
)} requests are not available for a static site. Update your config to \`output: 'server'\` or \`output: 'hybrid'\` to enable.`
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
|
-
if (
|
|
15
|
+
if (handler === void 0) {
|
|
16
16
|
logger.warn(
|
|
17
17
|
"router",
|
|
18
|
-
`No API Route handler exists for the method "${method}" for the route ${url.pathname}.
|
|
18
|
+
`No API Route handler exists for the method "${method}" for the route "${url.pathname}".
|
|
19
19
|
Found handlers: ${Object.keys(mod).map((exp) => JSON.stringify(exp)).join(", ")}
|
|
20
20
|
` + ("all" in mod ? `One of the exported handlers is "all" (lowercase), did you mean to export 'ALL'?
|
|
21
21
|
` : "")
|
|
22
22
|
);
|
|
23
23
|
return new Response(null, { status: 404 });
|
|
24
24
|
}
|
|
25
|
+
if (typeof handler !== "function") {
|
|
26
|
+
logger.error(
|
|
27
|
+
"router",
|
|
28
|
+
`The route "${url.pathname}" exports a value for the method "${method}", but it is of the type ${typeof handler} instead of a function.`
|
|
29
|
+
);
|
|
30
|
+
return new Response(null, { status: 500 });
|
|
31
|
+
}
|
|
25
32
|
const response = await handler.call(mod, context);
|
|
26
33
|
if (response.status === 404 || response.status === 500) {
|
|
27
34
|
response.headers.set(REROUTE_DIRECTIVE_HEADER, "no");
|
|
@@ -304,9 +304,11 @@ async function transition(direction, from, to, options, historyState) {
|
|
|
304
304
|
if (navigationType !== "traverse") {
|
|
305
305
|
updateScrollPosition({ scrollX, scrollY });
|
|
306
306
|
}
|
|
307
|
-
if (samePage(from, to)
|
|
308
|
-
|
|
309
|
-
|
|
307
|
+
if (samePage(from, to)) {
|
|
308
|
+
if (direction !== "back" && to.hash || direction === "back" && from.hash) {
|
|
309
|
+
moveToLocation(to, from, options, document.title, historyState);
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
310
312
|
}
|
|
311
313
|
const prepEvent = await doPreparation(
|
|
312
314
|
from,
|
|
@@ -60,6 +60,11 @@ async function writeWebResponse(res, webResponse) {
|
|
|
60
60
|
res.write(body);
|
|
61
61
|
} else {
|
|
62
62
|
const reader = body.getReader();
|
|
63
|
+
res.on("close", () => {
|
|
64
|
+
reader.cancel().catch((error) => {
|
|
65
|
+
console.error("An unexpected error occurred in the middle of the stream.", error);
|
|
66
|
+
});
|
|
67
|
+
});
|
|
63
68
|
while (true) {
|
|
64
69
|
const { done, value } = await reader.read();
|
|
65
70
|
if (done)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astro",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.7",
|
|
4
4
|
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "withastro",
|
|
@@ -152,7 +152,8 @@
|
|
|
152
152
|
"resolve": "^1.22.4",
|
|
153
153
|
"semver": "^7.5.4",
|
|
154
154
|
"server-destroy": "^1.0.1",
|
|
155
|
-
"shikiji": "^0.9.
|
|
155
|
+
"shikiji": "^0.9.19",
|
|
156
|
+
"shikiji-core": "^0.9.19",
|
|
156
157
|
"string-width": "^7.0.0",
|
|
157
158
|
"strip-ansi": "^7.1.0",
|
|
158
159
|
"tsconfck": "^3.0.0",
|
|
@@ -164,8 +165,8 @@
|
|
|
164
165
|
"yargs-parser": "^21.1.1",
|
|
165
166
|
"zod": "^3.22.4",
|
|
166
167
|
"@astrojs/internal-helpers": "0.2.1",
|
|
167
|
-
"@astrojs/
|
|
168
|
-
"@astrojs/
|
|
168
|
+
"@astrojs/telemetry": "3.0.4",
|
|
169
|
+
"@astrojs/markdown-remark": "4.2.1"
|
|
169
170
|
},
|
|
170
171
|
"optionalDependencies": {
|
|
171
172
|
"sharp": "^0.32.6"
|
|
@@ -213,7 +214,6 @@
|
|
|
213
214
|
"remark-code-titles": "^0.1.2",
|
|
214
215
|
"rollup": "^4.5.0",
|
|
215
216
|
"sass": "^1.69.5",
|
|
216
|
-
"shikiji-core": "^0.9.18",
|
|
217
217
|
"srcset-parse": "^1.1.0",
|
|
218
218
|
"unified": "^11.0.4",
|
|
219
219
|
"astro-scripts": "0.0.14"
|
|
@@ -231,10 +231,8 @@
|
|
|
231
231
|
"build:ci": "pnpm run prebuild && astro-scripts build \"src/**/*.{ts,js}\" && pnpm run postbuild",
|
|
232
232
|
"dev": "astro-scripts dev --copy-wasm --prebuild \"src/runtime/server/astro-island.ts\" --prebuild \"src/runtime/client/{idle,load,media,only,visible}.ts\" \"src/**/*.{ts,js}\"",
|
|
233
233
|
"postbuild": "astro-scripts copy \"src/**/*.astro\" && astro-scripts copy \"src/**/*.wasm\"",
|
|
234
|
-
"test:
|
|
235
|
-
"test:
|
|
236
|
-
"test": "pnpm run test:node && pnpm run test:unit && mocha --exit --timeout 30000 --ignore **/*.nodetest.js --ignore **/lit-element.test.js && mocha --timeout 30000 **/lit-element.test.js --ignore **/*.nodetest.js",
|
|
237
|
-
"test:match": "mocha --timeout 30000 -g",
|
|
234
|
+
"test": "pnpm run test:node && mocha ./test/*.test.js --exit --timeout 30000 --ignore ./test/lit-element.test.js && mocha ./test/lit-element.test.js --timeout 30000",
|
|
235
|
+
"test:match": "mocha ./test/*.test.js --timeout 30000 -g",
|
|
238
236
|
"test:e2e": "playwright test",
|
|
239
237
|
"test:e2e:match": "playwright test -g",
|
|
240
238
|
"test:node": "astro-scripts test \"test/**/*.nodetest.js\""
|