astro 3.4.0 → 3.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ViewTransitions.astro +15 -1
- package/dist/@types/astro.d.ts +14 -1
- package/dist/content/utils.d.ts +9 -9
- package/dist/core/config/schema.d.ts +210 -187
- package/dist/core/config/schema.js +1 -0
- package/dist/core/constants.js +1 -1
- package/dist/core/dev/dev.js +1 -1
- package/dist/core/errors/errors-data.d.ts +2 -3
- package/dist/core/errors/errors-data.js +2 -2
- package/dist/core/messages.js +2 -2
- package/dist/runtime/client/dev-overlay/entrypoint.d.ts +1 -0
- package/dist/runtime/client/dev-overlay/entrypoint.js +73 -0
- package/dist/runtime/client/dev-overlay/overlay.d.ts +33 -1
- package/dist/runtime/client/dev-overlay/overlay.js +231 -235
- package/dist/runtime/client/dev-overlay/plugins/astro.js +4 -4
- package/dist/runtime/client/dev-overlay/plugins/audit.js +29 -19
- package/dist/runtime/client/dev-overlay/plugins/utils/highlight.js +7 -2
- package/dist/runtime/client/dev-overlay/plugins/xray.js +14 -7
- package/dist/runtime/client/dev-overlay/ui-library/tooltip.js +6 -1
- package/dist/runtime/client/dev-overlay/ui-library/window.js +1 -1
- package/dist/runtime/server/render/astro/instance.js +9 -2
- package/dist/transitions/router.js +8 -6
- package/dist/vite-plugin-astro-server/route.js +1 -1
- package/package.json +3 -2
|
@@ -5,9 +5,23 @@ export interface Props {
|
|
|
5
5
|
fallback?: Fallback;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
const { fallback = 'animate' } = Astro.props
|
|
8
|
+
const { fallback = 'animate' } = Astro.props;
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
+
<style is:global>
|
|
12
|
+
/* Route announcer */
|
|
13
|
+
.astro-route-announcer {
|
|
14
|
+
position: absolute;
|
|
15
|
+
left: 0;
|
|
16
|
+
top: 0;
|
|
17
|
+
clip: rect(0 0 0 0);
|
|
18
|
+
clip-path: inset(50%);
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
white-space: nowrap;
|
|
21
|
+
width: 1px;
|
|
22
|
+
height: 1px;
|
|
23
|
+
}
|
|
24
|
+
</style>
|
|
11
25
|
<meta name="astro-view-transitions-enabled" content="true" />
|
|
12
26
|
<meta name="astro-view-transitions-fallback" content={fallback} />
|
|
13
27
|
<script>
|
package/dist/@types/astro.d.ts
CHANGED
|
@@ -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
|
|
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
|
+
}
|
package/dist/content/utils.d.ts
CHANGED
|
@@ -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>;
|