@astrojs/starlight 0.42.0 → 0.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/PageFrame.astro +8 -2
- package/dist/package.js +1 -1
- package/dist/schema.d.ts +12 -12
- package/dist/schemas/badge.d.ts +17 -17
- package/dist/schemas/head.d.ts +3 -3
- package/dist/schemas/hero.d.ts +4 -4
- package/dist/schemas/icon.d.ts +3 -3
- package/dist/schemas/sidebar.d.ts +17 -17
- package/dist/schemas/social.d.ts +3 -3
- package/dist/utils/plugins.d.ts +26 -26
- package/dist/utils/user-config.d.ts +114 -114
- package/package.json +1 -1
package/dist/utils/plugins.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ declare function runPlugins(starlightUserConfig: StarlightUserConfig, pluginsUse
|
|
|
75
75
|
baseUrl?: string | undefined;
|
|
76
76
|
};
|
|
77
77
|
readonly head: {
|
|
78
|
-
tag: "
|
|
78
|
+
tag: "title" | "base" | "link" | "style" | "meta" | "script" | "noscript" | "template";
|
|
79
79
|
attrs?: Record<string, string | boolean | undefined> | undefined;
|
|
80
80
|
content?: string | undefined;
|
|
81
81
|
}[];
|
|
@@ -137,7 +137,7 @@ declare function runPlugins(starlightUserConfig: StarlightUserConfig, pluginsUse
|
|
|
137
137
|
replacesTitle: boolean;
|
|
138
138
|
} | undefined;
|
|
139
139
|
readonly social?: {
|
|
140
|
-
icon: "
|
|
140
|
+
icon: "link" | "error" | "up-caret" | "down-caret" | "right-caret" | "left-caret" | "up-arrow" | "down-arrow" | "right-arrow" | "left-arrow" | "bars" | "translate" | "pencil" | "pen" | "document" | "add-document" | "setting" | "link-alt" | "external" | "download" | "cloud-download" | "moon" | "sun" | "clock" | "laptop" | "desktop" | "mobile-android" | "window" | "database" | "server" | "code-branch" | "open-book" | "notes" | "information" | "magnifier" | "forward-slash" | "close" | "warning" | "approve-check-circle" | "approve-check" | "question-circle" | "question" | "rocket" | "star" | "puzzle" | "list-format" | "analytics" | "random" | "padlock" | "comment" | "comment-alt" | "heart" | "github" | "gitlab" | "bitbucket" | "forgejo" | "codePen" | "farcaster" | "discord" | "gitter" | "twitter" | "x.com" | "mastodon" | "codeberg" | "youtube" | "threads" | "linkedin" | "twitch" | "azureDevOps" | "microsoftTeams" | "instagram" | "stackOverflow" | "telegram" | "whatsApp" | "rss" | "facebook" | "email" | "phone" | "reddit" | "patreon" | "signal" | "slack" | "matrix" | "hackerOne" | "openCollective" | "blueSky" | "discourse" | "zulip" | "pinterest" | "tiktok" | "goodreads" | "hypothesis" | "astro" | "solidjs" | "alpine" | "pnpm" | "biome" | "bun" | "mdx" | "apple" | "linux" | "homebrew" | "nix" | "starlight" | "pkl" | "node" | "cloudflare" | "vercel" | "netlify" | "deno" | "jsr" | "nostr" | "backstage" | "confluence" | "jira" | "storybook" | "vscode" | "jetbrains" | "zed" | "vim" | "figma" | "sketch" | "npm" | "npmx" | "sourcehut" | "substack" | "chrome" | "edge" | "firefox" | "safari" | "seti:folder" | "seti:bsl" | "seti:mdo" | "seti:salesforce" | "seti:asm" | "seti:bicep" | "seti:bazel" | "seti:c" | "seti:c-sharp" | "seti:html" | "seti:cpp" | "seti:clojure" | "seti:coldfusion" | "seti:config" | "seti:crystal" | "seti:crystal_embedded" | "seti:json" | "seti:css" | "seti:csv" | "seti:xls" | "seti:cu" | "seti:cake" | "seti:cake_php" | "seti:d" | "seti:word" | "seti:elixir" | "seti:elixir_script" | "seti:hex" | "seti:elm" | "seti:favicon" | "seti:f-sharp" | "seti:git" | "seti:go" | "seti:godot" | "seti:gradle" | "seti:grails" | "seti:graphql" | "seti:hacklang" | "seti:haml" | "seti:mustache" | "seti:haskell" | "seti:haxe" | "seti:jade" | "seti:java" | "seti:javascript" | "seti:jinja" | "seti:julia" | "seti:karma" | "seti:kotlin" | "seti:dart" | "seti:liquid" | "seti:livescript" | "seti:lua" | "seti:markdown" | "seti:argdown" | "seti:info" | "seti:clock" | "seti:maven" | "seti:nim" | "seti:github" | "seti:notebook" | "seti:nunjucks" | "seti:npm" | "seti:ocaml" | "seti:odata" | "seti:perl" | "seti:php" | "seti:pipeline" | "seti:pddl" | "seti:plan" | "seti:happenings" | "seti:powershell" | "seti:prisma" | "seti:pug" | "seti:puppet" | "seti:purescript" | "seti:python" | "seti:react" | "seti:rescript" | "seti:R" | "seti:ruby" | "seti:rust" | "seti:sass" | "seti:spring" | "seti:slim" | "seti:smarty" | "seti:sbt" | "seti:scala" | "seti:ethereum" | "seti:stylus" | "seti:svelte" | "seti:swift" | "seti:db" | "seti:terraform" | "seti:tex" | "seti:default" | "seti:twig" | "seti:typescript" | "seti:tsconfig" | "seti:vala" | "seti:vite" | "seti:vue" | "seti:wasm" | "seti:wat" | "seti:xml" | "seti:yml" | "seti:prolog" | "seti:zig" | "seti:zip" | "seti:wgt" | "seti:illustrator" | "seti:photoshop" | "seti:pdf" | "seti:font" | "seti:image" | "seti:svg" | "seti:sublime" | "seti:code-search" | "seti:shell" | "seti:video" | "seti:audio" | "seti:windows" | "seti:jenkins" | "seti:babel" | "seti:bower" | "seti:docker" | "seti:code-climate" | "seti:eslint" | "seti:firebase" | "seti:firefox" | "seti:gitlab" | "seti:grunt" | "seti:gulp" | "seti:ionic" | "seti:platformio" | "seti:rollup" | "seti:stylelint" | "seti:yarn" | "seti:webpack" | "seti:lock" | "seti:license" | "seti:makefile" | "seti:heroku" | "seti:todo" | "seti:ignored";
|
|
141
141
|
label: string;
|
|
142
142
|
href: string;
|
|
143
143
|
}[] | undefined;
|
|
@@ -148,7 +148,7 @@ declare function runPlugins(starlightUserConfig: StarlightUserConfig, pluginsUse
|
|
|
148
148
|
attrs?: undefined;
|
|
149
149
|
badge?: string | {
|
|
150
150
|
text: string | Record<string, string>;
|
|
151
|
-
variant: "
|
|
151
|
+
variant: "success" | "default" | "note" | "danger" | "caution" | "tip";
|
|
152
152
|
class?: string | undefined;
|
|
153
153
|
} | undefined;
|
|
154
154
|
} & {
|
|
@@ -160,12 +160,12 @@ declare function runPlugins(starlightUserConfig: StarlightUserConfig, pluginsUse
|
|
|
160
160
|
badge: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
161
161
|
text: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
162
162
|
variant: z.ZodDefault<z.ZodEnum<{
|
|
163
|
-
default: "default";
|
|
164
163
|
success: "success";
|
|
164
|
+
default: "default";
|
|
165
165
|
note: "note";
|
|
166
|
-
tip: "tip";
|
|
167
|
-
caution: "caution";
|
|
168
166
|
danger: "danger";
|
|
167
|
+
caution: "caution";
|
|
168
|
+
tip: "tip";
|
|
169
169
|
}>>;
|
|
170
170
|
class: z.ZodOptional<z.ZodString>;
|
|
171
171
|
}, z.core.$strip>]>>;
|
|
@@ -184,12 +184,12 @@ declare function runPlugins(starlightUserConfig: StarlightUserConfig, pluginsUse
|
|
|
184
184
|
badge: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
185
185
|
text: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
186
186
|
variant: z.ZodDefault<z.ZodEnum<{
|
|
187
|
-
default: "default";
|
|
188
187
|
success: "success";
|
|
188
|
+
default: "default";
|
|
189
189
|
note: "note";
|
|
190
|
-
tip: "tip";
|
|
191
|
-
caution: "caution";
|
|
192
190
|
danger: "danger";
|
|
191
|
+
caution: "caution";
|
|
192
|
+
tip: "tip";
|
|
193
193
|
}>>;
|
|
194
194
|
class: z.ZodOptional<z.ZodString>;
|
|
195
195
|
}, z.core.$strip>]>>;
|
|
@@ -200,7 +200,7 @@ declare function runPlugins(starlightUserConfig: StarlightUserConfig, pluginsUse
|
|
|
200
200
|
label?: string | undefined;
|
|
201
201
|
badge?: string | {
|
|
202
202
|
text: string | Record<string, string>;
|
|
203
|
-
variant: "
|
|
203
|
+
variant: "success" | "default" | "note" | "danger" | "caution" | "tip";
|
|
204
204
|
class?: string | undefined;
|
|
205
205
|
} | undefined;
|
|
206
206
|
}, string>>> | ({
|
|
@@ -210,7 +210,7 @@ declare function runPlugins(starlightUserConfig: StarlightUserConfig, pluginsUse
|
|
|
210
210
|
attrs?: undefined;
|
|
211
211
|
badge?: string | {
|
|
212
212
|
text: string | Record<string, string>;
|
|
213
|
-
variant: "
|
|
213
|
+
variant: "success" | "default" | "note" | "danger" | "caution" | "tip";
|
|
214
214
|
class?: string | undefined;
|
|
215
215
|
} | undefined;
|
|
216
216
|
} & /*elided*/ any)>;
|
|
@@ -221,7 +221,7 @@ declare function runPlugins(starlightUserConfig: StarlightUserConfig, pluginsUse
|
|
|
221
221
|
label?: string | undefined;
|
|
222
222
|
badge?: string | {
|
|
223
223
|
text: string | Record<string, string>;
|
|
224
|
-
variant: "
|
|
224
|
+
variant: "success" | "default" | "note" | "danger" | "caution" | "tip";
|
|
225
225
|
class?: string | undefined;
|
|
226
226
|
} | undefined;
|
|
227
227
|
} | {
|
|
@@ -231,7 +231,7 @@ declare function runPlugins(starlightUserConfig: StarlightUserConfig, pluginsUse
|
|
|
231
231
|
translations: Record<string, string>;
|
|
232
232
|
badge?: string | {
|
|
233
233
|
text: string | Record<string, string>;
|
|
234
|
-
variant: "
|
|
234
|
+
variant: "success" | "default" | "note" | "danger" | "caution" | "tip";
|
|
235
235
|
class?: string | undefined;
|
|
236
236
|
} | undefined;
|
|
237
237
|
} | {
|
|
@@ -292,7 +292,7 @@ declare function runPlugins(starlightUserConfig: StarlightUserConfig, pluginsUse
|
|
|
292
292
|
baseUrl?: string | undefined;
|
|
293
293
|
};
|
|
294
294
|
readonly head: {
|
|
295
|
-
tag: "
|
|
295
|
+
tag: "title" | "base" | "link" | "style" | "meta" | "script" | "noscript" | "template";
|
|
296
296
|
attrs?: Record<string, string | boolean | undefined> | undefined;
|
|
297
297
|
content?: string | undefined;
|
|
298
298
|
}[];
|
|
@@ -354,7 +354,7 @@ declare function runPlugins(starlightUserConfig: StarlightUserConfig, pluginsUse
|
|
|
354
354
|
replacesTitle: boolean;
|
|
355
355
|
} | undefined;
|
|
356
356
|
readonly social?: {
|
|
357
|
-
icon: "
|
|
357
|
+
icon: "link" | "error" | "up-caret" | "down-caret" | "right-caret" | "left-caret" | "up-arrow" | "down-arrow" | "right-arrow" | "left-arrow" | "bars" | "translate" | "pencil" | "pen" | "document" | "add-document" | "setting" | "link-alt" | "external" | "download" | "cloud-download" | "moon" | "sun" | "clock" | "laptop" | "desktop" | "mobile-android" | "window" | "database" | "server" | "code-branch" | "open-book" | "notes" | "information" | "magnifier" | "forward-slash" | "close" | "warning" | "approve-check-circle" | "approve-check" | "question-circle" | "question" | "rocket" | "star" | "puzzle" | "list-format" | "analytics" | "random" | "padlock" | "comment" | "comment-alt" | "heart" | "github" | "gitlab" | "bitbucket" | "forgejo" | "codePen" | "farcaster" | "discord" | "gitter" | "twitter" | "x.com" | "mastodon" | "codeberg" | "youtube" | "threads" | "linkedin" | "twitch" | "azureDevOps" | "microsoftTeams" | "instagram" | "stackOverflow" | "telegram" | "whatsApp" | "rss" | "facebook" | "email" | "phone" | "reddit" | "patreon" | "signal" | "slack" | "matrix" | "hackerOne" | "openCollective" | "blueSky" | "discourse" | "zulip" | "pinterest" | "tiktok" | "goodreads" | "hypothesis" | "astro" | "solidjs" | "alpine" | "pnpm" | "biome" | "bun" | "mdx" | "apple" | "linux" | "homebrew" | "nix" | "starlight" | "pkl" | "node" | "cloudflare" | "vercel" | "netlify" | "deno" | "jsr" | "nostr" | "backstage" | "confluence" | "jira" | "storybook" | "vscode" | "jetbrains" | "zed" | "vim" | "figma" | "sketch" | "npm" | "npmx" | "sourcehut" | "substack" | "chrome" | "edge" | "firefox" | "safari" | "seti:folder" | "seti:bsl" | "seti:mdo" | "seti:salesforce" | "seti:asm" | "seti:bicep" | "seti:bazel" | "seti:c" | "seti:c-sharp" | "seti:html" | "seti:cpp" | "seti:clojure" | "seti:coldfusion" | "seti:config" | "seti:crystal" | "seti:crystal_embedded" | "seti:json" | "seti:css" | "seti:csv" | "seti:xls" | "seti:cu" | "seti:cake" | "seti:cake_php" | "seti:d" | "seti:word" | "seti:elixir" | "seti:elixir_script" | "seti:hex" | "seti:elm" | "seti:favicon" | "seti:f-sharp" | "seti:git" | "seti:go" | "seti:godot" | "seti:gradle" | "seti:grails" | "seti:graphql" | "seti:hacklang" | "seti:haml" | "seti:mustache" | "seti:haskell" | "seti:haxe" | "seti:jade" | "seti:java" | "seti:javascript" | "seti:jinja" | "seti:julia" | "seti:karma" | "seti:kotlin" | "seti:dart" | "seti:liquid" | "seti:livescript" | "seti:lua" | "seti:markdown" | "seti:argdown" | "seti:info" | "seti:clock" | "seti:maven" | "seti:nim" | "seti:github" | "seti:notebook" | "seti:nunjucks" | "seti:npm" | "seti:ocaml" | "seti:odata" | "seti:perl" | "seti:php" | "seti:pipeline" | "seti:pddl" | "seti:plan" | "seti:happenings" | "seti:powershell" | "seti:prisma" | "seti:pug" | "seti:puppet" | "seti:purescript" | "seti:python" | "seti:react" | "seti:rescript" | "seti:R" | "seti:ruby" | "seti:rust" | "seti:sass" | "seti:spring" | "seti:slim" | "seti:smarty" | "seti:sbt" | "seti:scala" | "seti:ethereum" | "seti:stylus" | "seti:svelte" | "seti:swift" | "seti:db" | "seti:terraform" | "seti:tex" | "seti:default" | "seti:twig" | "seti:typescript" | "seti:tsconfig" | "seti:vala" | "seti:vite" | "seti:vue" | "seti:wasm" | "seti:wat" | "seti:xml" | "seti:yml" | "seti:prolog" | "seti:zig" | "seti:zip" | "seti:wgt" | "seti:illustrator" | "seti:photoshop" | "seti:pdf" | "seti:font" | "seti:image" | "seti:svg" | "seti:sublime" | "seti:code-search" | "seti:shell" | "seti:video" | "seti:audio" | "seti:windows" | "seti:jenkins" | "seti:babel" | "seti:bower" | "seti:docker" | "seti:code-climate" | "seti:eslint" | "seti:firebase" | "seti:firefox" | "seti:gitlab" | "seti:grunt" | "seti:gulp" | "seti:ionic" | "seti:platformio" | "seti:rollup" | "seti:stylelint" | "seti:yarn" | "seti:webpack" | "seti:lock" | "seti:license" | "seti:makefile" | "seti:heroku" | "seti:todo" | "seti:ignored";
|
|
358
358
|
label: string;
|
|
359
359
|
href: string;
|
|
360
360
|
}[] | undefined;
|
|
@@ -365,7 +365,7 @@ declare function runPlugins(starlightUserConfig: StarlightUserConfig, pluginsUse
|
|
|
365
365
|
attrs?: undefined;
|
|
366
366
|
badge?: string | {
|
|
367
367
|
text: string | Record<string, string>;
|
|
368
|
-
variant: "
|
|
368
|
+
variant: "success" | "default" | "note" | "danger" | "caution" | "tip";
|
|
369
369
|
class?: string | undefined;
|
|
370
370
|
} | undefined;
|
|
371
371
|
} & {
|
|
@@ -377,12 +377,12 @@ declare function runPlugins(starlightUserConfig: StarlightUserConfig, pluginsUse
|
|
|
377
377
|
badge: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
378
378
|
text: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
379
379
|
variant: z.ZodDefault<z.ZodEnum<{
|
|
380
|
-
default: "default";
|
|
381
380
|
success: "success";
|
|
381
|
+
default: "default";
|
|
382
382
|
note: "note";
|
|
383
|
-
tip: "tip";
|
|
384
|
-
caution: "caution";
|
|
385
383
|
danger: "danger";
|
|
384
|
+
caution: "caution";
|
|
385
|
+
tip: "tip";
|
|
386
386
|
}>>;
|
|
387
387
|
class: z.ZodOptional<z.ZodString>;
|
|
388
388
|
}, z.core.$strip>]>>;
|
|
@@ -401,12 +401,12 @@ declare function runPlugins(starlightUserConfig: StarlightUserConfig, pluginsUse
|
|
|
401
401
|
badge: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
402
402
|
text: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>;
|
|
403
403
|
variant: z.ZodDefault<z.ZodEnum<{
|
|
404
|
-
default: "default";
|
|
405
404
|
success: "success";
|
|
405
|
+
default: "default";
|
|
406
406
|
note: "note";
|
|
407
|
-
tip: "tip";
|
|
408
|
-
caution: "caution";
|
|
409
407
|
danger: "danger";
|
|
408
|
+
caution: "caution";
|
|
409
|
+
tip: "tip";
|
|
410
410
|
}>>;
|
|
411
411
|
class: z.ZodOptional<z.ZodString>;
|
|
412
412
|
}, z.core.$strip>]>>;
|
|
@@ -417,7 +417,7 @@ declare function runPlugins(starlightUserConfig: StarlightUserConfig, pluginsUse
|
|
|
417
417
|
label?: string | undefined;
|
|
418
418
|
badge?: string | {
|
|
419
419
|
text: string | Record<string, string>;
|
|
420
|
-
variant: "
|
|
420
|
+
variant: "success" | "default" | "note" | "danger" | "caution" | "tip";
|
|
421
421
|
class?: string | undefined;
|
|
422
422
|
} | undefined;
|
|
423
423
|
}, string>>> | ({
|
|
@@ -427,7 +427,7 @@ declare function runPlugins(starlightUserConfig: StarlightUserConfig, pluginsUse
|
|
|
427
427
|
attrs?: undefined;
|
|
428
428
|
badge?: string | {
|
|
429
429
|
text: string | Record<string, string>;
|
|
430
|
-
variant: "
|
|
430
|
+
variant: "success" | "default" | "note" | "danger" | "caution" | "tip";
|
|
431
431
|
class?: string | undefined;
|
|
432
432
|
} | undefined;
|
|
433
433
|
} & /*elided*/ any)>;
|
|
@@ -438,7 +438,7 @@ declare function runPlugins(starlightUserConfig: StarlightUserConfig, pluginsUse
|
|
|
438
438
|
label?: string | undefined;
|
|
439
439
|
badge?: string | {
|
|
440
440
|
text: string | Record<string, string>;
|
|
441
|
-
variant: "
|
|
441
|
+
variant: "success" | "default" | "note" | "danger" | "caution" | "tip";
|
|
442
442
|
class?: string | undefined;
|
|
443
443
|
} | undefined;
|
|
444
444
|
} | {
|
|
@@ -448,7 +448,7 @@ declare function runPlugins(starlightUserConfig: StarlightUserConfig, pluginsUse
|
|
|
448
448
|
translations: Record<string, string>;
|
|
449
449
|
badge?: string | {
|
|
450
450
|
text: string | Record<string, string>;
|
|
451
|
-
variant: "
|
|
451
|
+
variant: "success" | "default" | "note" | "danger" | "caution" | "tip";
|
|
452
452
|
class?: string | undefined;
|
|
453
453
|
} | undefined;
|
|
454
454
|
} | {
|