astro 3.4.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,3 +54,16 @@
54
54
  animation: none !important;
55
55
  }
56
56
  }
57
+
58
+ /* Route announcer */
59
+ .astro-route-announcer {
60
+ position: absolute;
61
+ left: 0;
62
+ top: 0;
63
+ clip: rect(0 0 0 0);
64
+ clip-path: inset(50%);
65
+ overflow: hidden;
66
+ white-space: nowrap;
67
+ width: 1px;
68
+ height: 1px;
69
+ }
@@ -16,7 +16,11 @@ import type { TSConfig } from '../core/config/tsconfig.js';
16
16
  import type { AstroCookies } from '../core/cookies/index.js';
17
17
  import type { ResponseWithEncoding } from '../core/endpoint/index.js';
18
18
  import type { AstroIntegrationLogger, Logger, LoggerLevel } from '../core/logger/core.js';
19
+ import type { AstroDevOverlay, DevOverlayCanvas } from '../runtime/client/dev-overlay/overlay.js';
20
+ import type { DevOverlayHighlight } from '../runtime/client/dev-overlay/ui-library/highlight.js';
19
21
  import type { Icon } from '../runtime/client/dev-overlay/ui-library/icons.js';
22
+ import type { DevOverlayTooltip } from '../runtime/client/dev-overlay/ui-library/tooltip.js';
23
+ import type { DevOverlayWindow } from '../runtime/client/dev-overlay/ui-library/window.js';
20
24
  import type { AstroComponentFactory, AstroComponentInstance } from '../runtime/server/index.js';
21
25
  import type { OmitIndexSignature, Simplify } from '../type-utils.js';
22
26
  import type { SUPPORTED_MARKDOWN_FILE_EXTENSIONS } from './../core/constants.js';
@@ -167,7 +171,7 @@ export interface AstroGlobal<Props extends Record<string, any> = Record<string,
167
171
  * }
168
172
  * ```
169
173
  *
170
- * [Astro reference](https://docs.astro.build/en/guides/server-side-rendering/#astroredirect)
174
+ * [Astro reference](https://docs.astro.build/en/guides/server-side-rendering/)
171
175
  */
172
176
  redirect: AstroSharedContext['redirect'];
173
177
  /**
@@ -2060,3 +2064,12 @@ export type DevOverlayMetadata = Window & typeof globalThis & {
2060
2064
  root: string;
2061
2065
  };
2062
2066
  };
2067
+ declare global {
2068
+ interface HTMLElementTagNameMap {
2069
+ 'astro-dev-overlay': AstroDevOverlay;
2070
+ 'astro-dev-overlay-window': DevOverlayWindow;
2071
+ 'astro-dev-overlay-plugin-canvas': DevOverlayCanvas;
2072
+ 'astro-dev-overlay-tooltip': DevOverlayTooltip;
2073
+ 'astro-dev-overlay-highlight': DevOverlayHighlight;
2074
+ }
2075
+ }
@@ -23,8 +23,8 @@ export declare const collectionConfigParser: z.ZodUnion<[z.ZodObject<{
23
23
  type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"content">>>;
24
24
  schema: z.ZodOptional<z.ZodAny>;
25
25
  }, "strip", z.ZodTypeAny, {
26
- schema?: any;
27
26
  type: "content";
27
+ schema?: any;
28
28
  }, {
29
29
  type?: "content" | undefined;
30
30
  schema?: any;
@@ -32,11 +32,11 @@ export declare const collectionConfigParser: z.ZodUnion<[z.ZodObject<{
32
32
  type: z.ZodLiteral<"data">;
33
33
  schema: z.ZodOptional<z.ZodAny>;
34
34
  }, "strip", z.ZodTypeAny, {
35
- schema?: any;
36
35
  type: "data";
37
- }, {
38
36
  schema?: any;
37
+ }, {
39
38
  type: "data";
39
+ schema?: any;
40
40
  }>]>;
41
41
  export declare function getDotAstroTypeReference({ root, srcDir }: {
42
42
  root: URL;
@@ -47,8 +47,8 @@ export declare const contentConfigParser: z.ZodObject<{
47
47
  type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"content">>>;
48
48
  schema: z.ZodOptional<z.ZodAny>;
49
49
  }, "strip", z.ZodTypeAny, {
50
- schema?: any;
51
50
  type: "content";
51
+ schema?: any;
52
52
  }, {
53
53
  type?: "content" | undefined;
54
54
  schema?: any;
@@ -56,27 +56,27 @@ export declare const contentConfigParser: z.ZodObject<{
56
56
  type: z.ZodLiteral<"data">;
57
57
  schema: z.ZodOptional<z.ZodAny>;
58
58
  }, "strip", z.ZodTypeAny, {
59
- schema?: any;
60
59
  type: "data";
61
- }, {
62
60
  schema?: any;
61
+ }, {
63
62
  type: "data";
63
+ schema?: any;
64
64
  }>]>>;
65
65
  }, "strip", z.ZodTypeAny, {
66
66
  collections: Record<string, {
67
- schema?: any;
68
67
  type: "content";
69
- } | {
70
68
  schema?: any;
69
+ } | {
71
70
  type: "data";
71
+ schema?: any;
72
72
  }>;
73
73
  }, {
74
74
  collections: Record<string, {
75
75
  type?: "content" | undefined;
76
76
  schema?: any;
77
77
  } | {
78
- schema?: any;
79
78
  type: "data";
79
+ schema?: any;
80
80
  }>;
81
81
  }>;
82
82
  export type CollectionConfig = z.infer<typeof collectionConfigParser>;