astro 4.5.0 → 4.5.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/client.d.ts
CHANGED
|
@@ -119,11 +119,9 @@ declare module 'astro:transitions' {
|
|
|
119
119
|
declare module 'astro:transitions/client' {
|
|
120
120
|
type TransitionRouterModule = typeof import('./dist/virtual-modules/transitions-router.js');
|
|
121
121
|
export const navigate: TransitionRouterModule['navigate'];
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
export const
|
|
125
|
-
export const getFallback: TransitionUtilModule['getFallback'];
|
|
126
|
-
export const transitionEnabledOnThisPage: TransitionUtilModule['transitionEnabledOnThisPage'];
|
|
122
|
+
export const supportsViewTransitions: TransitionRouterModule['supportsViewTransitions'];
|
|
123
|
+
export const getFallback: TransitionRouterModule['getFallback'];
|
|
124
|
+
export const transitionEnabledOnThisPage: TransitionRouterModule['transitionEnabledOnThisPage'];
|
|
127
125
|
|
|
128
126
|
export type Fallback = import('./dist/virtual-modules/transitions-types.js').Fallback;
|
|
129
127
|
export type Direction = import('./dist/virtual-modules/transitions-types.ts').Direction;
|
package/dist/cli/index.js
CHANGED
|
@@ -21,6 +21,11 @@ async function printAstroHelp() {
|
|
|
21
21
|
["preferences", "Configure user preferences."],
|
|
22
22
|
["telemetry", "Configure telemetry settings."]
|
|
23
23
|
],
|
|
24
|
+
"Studio Commands": [
|
|
25
|
+
["login", "Authenticate your machine with Astro Studio."],
|
|
26
|
+
["logout", "End your authenticated session with Astro Studio."],
|
|
27
|
+
["link", "Link this project directory to an Astro Studio project."]
|
|
28
|
+
],
|
|
24
29
|
"Global Flags": [
|
|
25
30
|
["--config <path>", "Specify your config file."],
|
|
26
31
|
["--root <path>", "Specify your project root folder."],
|
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.5.
|
|
26
|
+
const currentVersion = "4.5.2";
|
|
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.5.
|
|
39
|
+
const version = "4.5.2";
|
|
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.5.
|
|
264
|
+
`v${"4.5.2"}`
|
|
265
265
|
)} ${headline}`
|
|
266
266
|
);
|
|
267
267
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { escape as escapeHTML } from "html-escaper";
|
|
1
2
|
import {
|
|
2
3
|
attachTooltipToHighlight,
|
|
3
4
|
createHighlight,
|
|
@@ -101,13 +102,14 @@ var xray_default = {
|
|
|
101
102
|
(prop) => !prop[0].startsWith("data-astro-cid-")
|
|
102
103
|
);
|
|
103
104
|
if (islandPropsEntries.length > 0) {
|
|
105
|
+
const stringifiedProps = JSON.stringify(
|
|
106
|
+
Object.fromEntries(islandPropsEntries.map((prop) => [prop[0], prop[1][1]])),
|
|
107
|
+
void 0,
|
|
108
|
+
2
|
|
109
|
+
);
|
|
104
110
|
tooltip.sections.push({
|
|
105
111
|
title: "Props",
|
|
106
|
-
content: `<pre><code>${
|
|
107
|
-
Object.fromEntries(islandPropsEntries.map((prop) => [prop[0], prop[1][1]])),
|
|
108
|
-
void 0,
|
|
109
|
-
2
|
|
110
|
-
)}</code></pre>`
|
|
112
|
+
content: `<pre><code>${escapeHTML(stringifiedProps)}</code></pre>`
|
|
111
113
|
});
|
|
112
114
|
}
|
|
113
115
|
const islandComponentPath = island.getAttribute("component-url");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astro",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.2",
|
|
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",
|
|
@@ -163,8 +163,8 @@
|
|
|
163
163
|
"yargs-parser": "^21.1.1",
|
|
164
164
|
"zod": "^3.22.4",
|
|
165
165
|
"zod-to-json-schema": "^3.22.4",
|
|
166
|
-
"@astrojs/internal-helpers": "0.3.0",
|
|
167
166
|
"@astrojs/markdown-remark": "4.3.0",
|
|
167
|
+
"@astrojs/internal-helpers": "0.3.0",
|
|
168
168
|
"@astrojs/telemetry": "3.0.4"
|
|
169
169
|
},
|
|
170
170
|
"optionalDependencies": {
|