@wix/astro 2.26.0 → 2.28.0
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/build/dependencies/astro-auth/backend-runtime/constants-Dbkf3D5f.mjs +6 -0
- package/build/dependencies/astro-auth/backend-runtime/elevatedContextualClient-tJx9dIn_.mjs +41 -0
- package/build/dependencies/astro-auth/backend-runtime/host-utils-B2Fs_Z4S.mjs +17 -0
- package/build/dependencies/astro-auth/backend-runtime/middleware/auth.d.mts +6 -0
- package/build/dependencies/astro-auth/backend-runtime/middleware/auth.mjs +3643 -0
- package/build/dependencies/astro-auth/backend-runtime/middleware/localization.d.mts +6 -0
- package/build/dependencies/astro-auth/backend-runtime/middleware/localization.mjs +193 -0
- package/build/dependencies/astro-auth/backend-runtime/routes/callback.d.mts +6 -0
- package/build/dependencies/astro-auth/backend-runtime/routes/callback.mjs +34 -0
- package/build/dependencies/astro-auth/backend-runtime/routes/login.d.mts +6 -0
- package/build/dependencies/astro-auth/backend-runtime/routes/login.mjs +32 -0
- package/build/dependencies/astro-auth/backend-runtime/routes/logout-callback.d.mts +6 -0
- package/build/dependencies/astro-auth/backend-runtime/routes/logout-callback.mjs +14 -0
- package/build/dependencies/astro-auth/backend-runtime/routes/logout.d.mts +6 -0
- package/build/dependencies/astro-auth/backend-runtime/routes/logout.mjs +19 -0
- package/build/dependencies/astro-auth/backend-runtime/runtime/backend/setupContextualClient.d.mts +1 -0
- package/build/dependencies/astro-auth/backend-runtime/runtime/backend/setupContextualClient.mjs +8 -0
- package/build/dependencies/astro-auth/backend-runtime/saveSessionTokensToCookie-DK3xvtzk.mjs +24 -0
- package/build/dependencies/astro-auth/backend-runtime/schemas-XrMhpOYn.mjs +2771 -0
- package/build/dependencies/astro-auth/browser-runtime/setup.d.ts +4 -3
- package/build/dependencies/astro-auth/browser-runtime/setup.js +55 -81
- package/build/dependencies/astro-backend-extensions/backend-runtime/routes/extensions.d.mts +6 -0
- package/build/dependencies/astro-backend-extensions/backend-runtime/routes/extensions.mjs +37 -0
- package/build/dependencies/astro-backend-extensions/backend-runtime/runtime/setupServicePlugin.d.mts +10 -0
- package/build/dependencies/astro-backend-extensions/backend-runtime/runtime/setupServicePlugin.mjs +22 -0
- package/build/dependencies/astro-backend-extensions/backend-runtime/runtime/setupWebhook.d.mts +9 -0
- package/build/dependencies/astro-backend-extensions/backend-runtime/runtime/setupWebhook.mjs +22 -0
- package/build/dependencies/astro-backend-extensions/backend-runtime/utils-DDHGZHjR.mjs +56 -0
- package/build/dependencies/astro-backend-extensions/backend-runtime/utils-mYlwmIjd.d.mts +6 -0
- package/build/dependencies/astro-backoffice-extensions/browser-runtime/wrapComponent.d.ts +4 -3
- package/build/dependencies/astro-backoffice-extensions/browser-runtime/wrapComponent.js +6 -5
- package/build/dependencies/astro-context-providers-extensions/browser-runtime/hmr.d.ts +10 -0
- package/build/dependencies/astro-context-providers-extensions/browser-runtime/hmr.js +20 -23
- package/build/dependencies/astro-context-providers-extensions/browser-runtime/sdk.d.ts +9 -0
- package/build/dependencies/astro-context-providers-extensions/browser-runtime/sdk.js +16 -15
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/customElementHmr.d.ts +9 -5
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/customElementHmr.js +23 -40
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/reactHmr.d.ts +10 -1
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/reactHmr.js +20 -23
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/renderSettingsPanel.d.ts +4 -3
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/renderSettingsPanel.js +14 -18
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/wrapCustomElement.d.ts +9 -5
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/wrapCustomElement.js +23 -25
- package/build/dependencies/astro-embedded-scripts-extensions/browser-runtime/setupContext.d.ts +8 -4
- package/build/dependencies/astro-embedded-scripts-extensions/browser-runtime/setupContext.js +18 -17
- package/build/dependencies/astro-function-libraries-extensions/browser-runtime/sdk.d.ts +9 -0
- package/build/dependencies/astro-function-libraries-extensions/browser-runtime/sdk.js +16 -15
- package/build/dependencies/astro-html-embeds/backend-runtime/html-embeds.d.mts +6 -0
- package/build/dependencies/astro-html-embeds/backend-runtime/html-embeds.mjs +53 -0
- package/build/dependencies/astro-monitor/backend-runtime/monitor.d.mts +6 -0
- package/build/dependencies/astro-monitor/backend-runtime/monitor.mjs +43 -0
- package/build/dependencies/astro-payment-links/backend-runtime/elevate-CDDLuCIf.mjs +9 -0
- package/build/dependencies/astro-payment-links/backend-runtime/payment-checkout.d.mts +6 -0
- package/build/dependencies/astro-payment-links/backend-runtime/payment-checkout.mjs +20 -0
- package/build/dependencies/astro-payment-links/backend-runtime/payment-link.d.mts +6 -0
- package/build/dependencies/astro-payment-links/backend-runtime/payment-link.mjs +15 -0
- package/build/dependencies/astro-payment-links/backend-runtime/proposal.d.mts +6 -0
- package/build/dependencies/astro-payment-links/backend-runtime/proposal.mjs +20 -0
- package/build/dependencies/astro-robots/backend-runtime/robots.d.mts +6 -0
- package/build/dependencies/astro-robots/backend-runtime/robots.mjs +26 -0
- package/build/dependencies/astro-site-component-panels-extensions/browser-runtime/hmr.d.ts +10 -0
- package/build/dependencies/astro-site-component-panels-extensions/browser-runtime/hmr.js +20 -23
- package/build/dependencies/astro-site-component-panels-extensions/browser-runtime/sdk.d.ts +12 -0
- package/build/dependencies/astro-site-component-panels-extensions/browser-runtime/sdk.js +10 -10
- package/build/dependencies/astro-site-components-extensions/browser-runtime/hmr.d.ts +10 -0
- package/build/dependencies/astro-site-components-extensions/browser-runtime/hmr.js +20 -23
- package/build/dependencies/astro-site-components-extensions/browser-runtime/sdk.d.ts +9 -0
- package/build/dependencies/astro-site-components-extensions/browser-runtime/sdk.js +16 -15
- package/build/dependencies/astro-translations/backend-runtime/middleware/static-translations.d.mts +6 -0
- package/build/dependencies/astro-translations/backend-runtime/middleware/static-translations.mjs +177 -0
- package/build/dependencies/astro-translations/backend-runtime/runtime/{i18n.d.ts → i18n.d.mts} +3 -2
- package/build/dependencies/astro-translations/backend-runtime/runtime/i18n.mjs +38 -0
- package/build/dependencies/astro-translations/integration/index.d.mts +105 -0
- package/build/dependencies/astro-translations/integration/index.mjs +264 -0
- package/build/dependencies/astro-trusted-backoffice-extensions/browser-runtime/hmr.d.ts +10 -1
- package/build/dependencies/astro-trusted-backoffice-extensions/browser-runtime/hmr.js +20 -23
- package/build/dependencies/astro-trusted-backoffice-extensions/browser-runtime/wrapComponent.d.ts +12 -8
- package/build/dependencies/astro-trusted-backoffice-extensions/browser-runtime/wrapComponent.js +25 -35
- package/build/dependencies/astro-viewer-api/backend-runtime/api.d.mts +6 -0
- package/build/dependencies/astro-viewer-api/backend-runtime/api.mjs +27 -0
- package/build/dependencies/astro-viewer-services-extensions/browser-runtime/sdk.d.ts +9 -0
- package/build/dependencies/astro-viewer-services-extensions/browser-runtime/sdk.js +16 -15
- package/build/integration/builders-B9yQdgSz.mjs +76 -0
- package/build/integration/builders-DP0350YQ.d.mts +121 -0
- package/build/integration/builders-DVfxT6EC.mjs +225 -0
- package/build/integration/builders-experimental.d.mts +56 -0
- package/build/integration/builders-experimental.mjs +26 -0
- package/build/integration/builders-trusted.d.mts +75 -0
- package/build/integration/builders-trusted.mjs +46 -0
- package/build/integration/builders.d.mts +4 -0
- package/build/integration/builders.mjs +4 -0
- package/build/integration/index-B3B_5bgh.d.mts +248 -0
- package/build/integration/index-D5k6Bmue.d.mts +32 -0
- package/build/integration/index.d.mts +35 -0
- package/build/integration/index.mjs +29236 -0
- package/package.json +12 -12
- package/build/dependencies/astro-auth/backend-runtime/chunk-24J7STEA.js +0 -8
- package/build/dependencies/astro-auth/backend-runtime/chunk-352W54SQ.js +0 -70
- package/build/dependencies/astro-auth/backend-runtime/chunk-BIARYLOZ.js +0 -3267
- package/build/dependencies/astro-auth/backend-runtime/chunk-DZHZMKUF.js +0 -26
- package/build/dependencies/astro-auth/backend-runtime/chunk-MLKGABMK.js +0 -9
- package/build/dependencies/astro-auth/backend-runtime/chunk-USQSPPTM.js +0 -14
- package/build/dependencies/astro-auth/backend-runtime/middleware/auth.d.ts +0 -5
- package/build/dependencies/astro-auth/backend-runtime/middleware/auth.js +0 -136
- package/build/dependencies/astro-auth/backend-runtime/middleware/localization.d.ts +0 -5
- package/build/dependencies/astro-auth/backend-runtime/middleware/localization.js +0 -219
- package/build/dependencies/astro-auth/backend-runtime/routes/callback.d.ts +0 -5
- package/build/dependencies/astro-auth/backend-runtime/routes/callback.js +0 -53
- package/build/dependencies/astro-auth/backend-runtime/routes/login.d.ts +0 -5
- package/build/dependencies/astro-auth/backend-runtime/routes/login.js +0 -46
- package/build/dependencies/astro-auth/backend-runtime/routes/logout-callback.d.ts +0 -5
- package/build/dependencies/astro-auth/backend-runtime/routes/logout-callback.js +0 -24
- package/build/dependencies/astro-auth/backend-runtime/routes/logout.d.ts +0 -5
- package/build/dependencies/astro-auth/backend-runtime/routes/logout.js +0 -33
- package/build/dependencies/astro-auth/backend-runtime/runtime/backend/setupContextualClient.d.ts +0 -2
- package/build/dependencies/astro-auth/backend-runtime/runtime/backend/setupContextualClient.js +0 -10
- package/build/dependencies/astro-backend-extensions/backend-runtime/chunk-CPGTXQVH.js +0 -75
- package/build/dependencies/astro-backend-extensions/backend-runtime/routes/extensions.d.ts +0 -5
- package/build/dependencies/astro-backend-extensions/backend-runtime/routes/extensions.js +0 -41
- package/build/dependencies/astro-backend-extensions/backend-runtime/runtime/setupServicePlugin.d.ts +0 -10
- package/build/dependencies/astro-backend-extensions/backend-runtime/runtime/setupServicePlugin.js +0 -35
- package/build/dependencies/astro-backend-extensions/backend-runtime/runtime/setupWebhook.d.ts +0 -9
- package/build/dependencies/astro-backend-extensions/backend-runtime/runtime/setupWebhook.js +0 -34
- package/build/dependencies/astro-backend-extensions/backend-runtime/utils-B7jr2PES.d.ts +0 -5
- package/build/dependencies/astro-backend-extensions/types/index.d.ts +0 -102
- package/build/dependencies/astro-backoffice-extensions/types/index.d.ts +0 -68
- package/build/dependencies/astro-context-providers-extensions/types/index.d.ts +0 -32
- package/build/dependencies/astro-core/types/index.d.ts +0 -109
- package/build/dependencies/astro-custom-elements-extensions/types/index.d.ts +0 -45
- package/build/dependencies/astro-embedded-scripts-extensions/types/index.d.ts +0 -18
- package/build/dependencies/astro-function-libraries-extensions/types/index.d.ts +0 -23
- package/build/dependencies/astro-html-embeds/backend-runtime/html-embeds.d.ts +0 -5
- package/build/dependencies/astro-html-embeds/backend-runtime/html-embeds.js +0 -66
- package/build/dependencies/astro-payment-links/backend-runtime/chunk-656BVIJ3.js +0 -9
- package/build/dependencies/astro-payment-links/backend-runtime/payment-checkout.d.ts +0 -5
- package/build/dependencies/astro-payment-links/backend-runtime/payment-checkout.js +0 -24
- package/build/dependencies/astro-payment-links/backend-runtime/payment-link.d.ts +0 -5
- package/build/dependencies/astro-payment-links/backend-runtime/payment-link.js +0 -20
- package/build/dependencies/astro-payment-links/backend-runtime/proposal.d.ts +0 -5
- package/build/dependencies/astro-payment-links/backend-runtime/proposal.js +0 -24
- package/build/dependencies/astro-robots/backend-runtime/robots.d.ts +0 -5
- package/build/dependencies/astro-robots/backend-runtime/robots.js +0 -38
- package/build/dependencies/astro-site-component-panels-extensions/types/index.d.ts +0 -21
- package/build/dependencies/astro-site-components-extensions/types/index.d.ts +0 -48
- package/build/dependencies/astro-translations/backend-runtime/middleware/static-translations.d.ts +0 -5
- package/build/dependencies/astro-translations/backend-runtime/middleware/static-translations.js +0 -168
- package/build/dependencies/astro-translations/backend-runtime/runtime/i18n.js +0 -42
- package/build/dependencies/astro-translations/integration/index.d.ts +0 -5
- package/build/dependencies/astro-translations/integration/index.js +0 -296
- package/build/dependencies/astro-trusted-backoffice-extensions/types/index.d.ts +0 -50
- package/build/dependencies/astro-viewer-api/backend-runtime/api.d.ts +0 -5
- package/build/dependencies/astro-viewer-api/backend-runtime/api.js +0 -34
- package/build/dependencies/astro-viewer-services-extensions/types/index.d.ts +0 -27
- package/build/integration/builders-experimental.d.ts +0 -53
- package/build/integration/builders-experimental.js +0 -20
- package/build/integration/builders-experimental.js.map +0 -1
- package/build/integration/builders-trusted.d.ts +0 -69
- package/build/integration/builders-trusted.js +0 -52
- package/build/integration/builders-trusted.js.map +0 -1
- package/build/integration/builders.d.ts +0 -112
- package/build/integration/builders.js +0 -14
- package/build/integration/builders.js.map +0 -1
- package/build/integration/chunk-23MOLCVI.js +0 -1087
- package/build/integration/chunk-23MOLCVI.js.map +0 -1
- package/build/integration/chunk-CBVCNKLN.js +0 -7458
- package/build/integration/chunk-CBVCNKLN.js.map +0 -1
- package/build/integration/chunk-E42TF2A2.js +0 -23747
- package/build/integration/chunk-E42TF2A2.js.map +0 -1
- package/build/integration/chunk-KCOYXYJL.js +0 -386
- package/build/integration/chunk-KCOYXYJL.js.map +0 -1
- package/build/integration/chunk-MNQWQ2MC.js +0 -809
- package/build/integration/chunk-MNQWQ2MC.js.map +0 -1
- package/build/integration/index.d-BUVlSCHa.d.ts +0 -211
- package/build/integration/index.d-D4c48TR0.d.ts +0 -58
- package/build/integration/index.d.ts +0 -34
- package/build/integration/index.js +0 -498
- package/build/integration/index.js.map +0 -1
|
@@ -1,498 +0,0 @@
|
|
|
1
|
-
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
-
const require = _createRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
createIntegration,
|
|
5
|
-
createIntegration2
|
|
6
|
-
} from "./chunk-MNQWQ2MC.js";
|
|
7
|
-
import {
|
|
8
|
-
createIntegration as createIntegration9
|
|
9
|
-
} from "./chunk-KCOYXYJL.js";
|
|
10
|
-
import {
|
|
11
|
-
createIntegration as createIntegration10,
|
|
12
|
-
createIntegration2 as createIntegration11,
|
|
13
|
-
extensions
|
|
14
|
-
} from "./chunk-CBVCNKLN.js";
|
|
15
|
-
import {
|
|
16
|
-
createIntegration as createIntegration3,
|
|
17
|
-
createIntegration2 as createIntegration4,
|
|
18
|
-
createIntegration3 as createIntegration5,
|
|
19
|
-
createIntegration4 as createIntegration6,
|
|
20
|
-
createIntegration5 as createIntegration7,
|
|
21
|
-
createIntegration6 as createIntegration8,
|
|
22
|
-
readJson
|
|
23
|
-
} from "./chunk-E42TF2A2.js";
|
|
24
|
-
import {
|
|
25
|
-
defaultOutdent,
|
|
26
|
-
init_esm_shims,
|
|
27
|
-
normalizePath
|
|
28
|
-
} from "./chunk-23MOLCVI.js";
|
|
29
|
-
|
|
30
|
-
// src/index.ts
|
|
31
|
-
init_esm_shims();
|
|
32
|
-
|
|
33
|
-
// ../astro-auth/src/index.ts
|
|
34
|
-
init_esm_shims();
|
|
35
|
-
import { fileURLToPath } from "url";
|
|
36
|
-
|
|
37
|
-
// ../astro-auth/src/plugins/patchAstroInlineScripts.ts
|
|
38
|
-
init_esm_shims();
|
|
39
|
-
function patchAstroInlineScripts() {
|
|
40
|
-
return {
|
|
41
|
-
name: "patch-astro-inline-scripts",
|
|
42
|
-
transform(code, id) {
|
|
43
|
-
const [_filename, rawQuery] = id.split(`?`, 2);
|
|
44
|
-
const query = Object.fromEntries(new URLSearchParams(rawQuery).entries());
|
|
45
|
-
if (query.astro == null || query.type !== "script" || query["lang.ts"] == null || code === "") {
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
return defaultOutdent`
|
|
49
|
-
import 'astro:scripts/page.js';
|
|
50
|
-
|
|
51
|
-
${code}
|
|
52
|
-
`;
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// ../astro-auth/src/plugins/setupContentCollectionContext.ts
|
|
58
|
-
init_esm_shims();
|
|
59
|
-
import { relative } from "path";
|
|
60
|
-
var contentCollectionFilePaths = [
|
|
61
|
-
"content.config.mjs",
|
|
62
|
-
"content.config.js",
|
|
63
|
-
"content.config.mts",
|
|
64
|
-
"content.config.ts",
|
|
65
|
-
"content/config.mjs",
|
|
66
|
-
"content/config.js",
|
|
67
|
-
"content/config.mts",
|
|
68
|
-
"content/config.ts"
|
|
69
|
-
];
|
|
70
|
-
var setupContextualClientUrl = new URL(
|
|
71
|
-
"../dependencies/astro-auth/backend-runtime/runtime/backend/setupContextualClient.js",
|
|
72
|
-
import.meta.url
|
|
73
|
-
);
|
|
74
|
-
function setupContentCollectionContext(srcDir) {
|
|
75
|
-
return {
|
|
76
|
-
name: "setup-content-collection-context",
|
|
77
|
-
applyToEnvironment(environment) {
|
|
78
|
-
return environment.name === "ssr";
|
|
79
|
-
},
|
|
80
|
-
transform(code, id) {
|
|
81
|
-
const relativeId = relative(srcDir, id);
|
|
82
|
-
const isContentCollectionFile = contentCollectionFilePaths.includes(relativeId);
|
|
83
|
-
if (isContentCollectionFile) {
|
|
84
|
-
return defaultOutdent`
|
|
85
|
-
import '${normalizePath(setupContextualClientUrl)}';
|
|
86
|
-
|
|
87
|
-
${code}
|
|
88
|
-
`;
|
|
89
|
-
}
|
|
90
|
-
return null;
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// ../astro-auth/src/index.ts
|
|
96
|
-
var setupContextUrl = new URL(
|
|
97
|
-
"../dependencies/astro-auth/browser-runtime/setup.js",
|
|
98
|
-
import.meta.url
|
|
99
|
-
);
|
|
100
|
-
var createIntegration12 = ({
|
|
101
|
-
enableAuthRoutes,
|
|
102
|
-
enableWixEssentials
|
|
103
|
-
}) => {
|
|
104
|
-
return {
|
|
105
|
-
name: "@wix/astro/auth",
|
|
106
|
-
hooks: {
|
|
107
|
-
"astro:config:setup"({
|
|
108
|
-
addMiddleware,
|
|
109
|
-
config,
|
|
110
|
-
injectRoute,
|
|
111
|
-
injectScript,
|
|
112
|
-
updateConfig
|
|
113
|
-
}) {
|
|
114
|
-
const srcDir = fileURLToPath(config.srcDir);
|
|
115
|
-
updateConfig({
|
|
116
|
-
vite: {
|
|
117
|
-
plugins: [
|
|
118
|
-
setupContentCollectionContext(srcDir),
|
|
119
|
-
patchAstroInlineScripts()
|
|
120
|
-
]
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
const setupContextCode = defaultOutdent`
|
|
124
|
-
import { WIX_CLIENT_ID } from 'astro:env/client';
|
|
125
|
-
import { setup } from '${normalizePath(setupContextUrl)}';
|
|
126
|
-
|
|
127
|
-
setup({ clientId: WIX_CLIENT_ID });
|
|
128
|
-
`;
|
|
129
|
-
injectScript("before-hydration", setupContextCode);
|
|
130
|
-
injectScript("page", setupContextCode);
|
|
131
|
-
addMiddleware({
|
|
132
|
-
entrypoint: new URL(
|
|
133
|
-
"../dependencies/astro-auth/backend-runtime/middleware/auth.js",
|
|
134
|
-
import.meta.url
|
|
135
|
-
),
|
|
136
|
-
order: "pre"
|
|
137
|
-
});
|
|
138
|
-
if (enableWixEssentials) {
|
|
139
|
-
addMiddleware({
|
|
140
|
-
entrypoint: new URL(
|
|
141
|
-
"../dependencies/astro-auth/backend-runtime/middleware/localization.js",
|
|
142
|
-
import.meta.url
|
|
143
|
-
),
|
|
144
|
-
order: "pre"
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
if (enableAuthRoutes) {
|
|
148
|
-
injectRoute({
|
|
149
|
-
entrypoint: new URL(
|
|
150
|
-
"../dependencies/astro-auth/backend-runtime/routes/login.js",
|
|
151
|
-
import.meta.url
|
|
152
|
-
),
|
|
153
|
-
pattern: "/api/auth/login",
|
|
154
|
-
prerender: false
|
|
155
|
-
});
|
|
156
|
-
injectRoute({
|
|
157
|
-
entrypoint: new URL(
|
|
158
|
-
"../dependencies/astro-auth/backend-runtime/routes/logout.js",
|
|
159
|
-
import.meta.url
|
|
160
|
-
),
|
|
161
|
-
pattern: "/api/auth/logout",
|
|
162
|
-
prerender: false
|
|
163
|
-
});
|
|
164
|
-
injectRoute({
|
|
165
|
-
entrypoint: new URL(
|
|
166
|
-
"../dependencies/astro-auth/backend-runtime/routes/callback.js",
|
|
167
|
-
import.meta.url
|
|
168
|
-
),
|
|
169
|
-
pattern: "/api/auth/callback",
|
|
170
|
-
prerender: false
|
|
171
|
-
});
|
|
172
|
-
injectRoute({
|
|
173
|
-
entrypoint: new URL(
|
|
174
|
-
"../dependencies/astro-auth/backend-runtime/routes/logout-callback.js",
|
|
175
|
-
import.meta.url
|
|
176
|
-
),
|
|
177
|
-
pattern: "/api/auth/logout-callback",
|
|
178
|
-
prerender: false
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
var src_default = createIntegration12;
|
|
186
|
-
|
|
187
|
-
// ../astro-html-embeds/src/index.ts
|
|
188
|
-
init_esm_shims();
|
|
189
|
-
var createIntegration13 = () => {
|
|
190
|
-
return {
|
|
191
|
-
name: "@wix/astro/html-embeds",
|
|
192
|
-
hooks: {
|
|
193
|
-
"astro:config:setup"({ addMiddleware }) {
|
|
194
|
-
addMiddleware({
|
|
195
|
-
entrypoint: new URL(
|
|
196
|
-
"../dependencies/astro-html-embeds/backend-runtime/html-embeds.js",
|
|
197
|
-
import.meta.url
|
|
198
|
-
),
|
|
199
|
-
order: "post"
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
var src_default2 = createIntegration13;
|
|
206
|
-
|
|
207
|
-
// ../astro-payment-links/src/index.ts
|
|
208
|
-
init_esm_shims();
|
|
209
|
-
var createIntegration14 = () => {
|
|
210
|
-
return {
|
|
211
|
-
name: "@wix/astro/payment-links",
|
|
212
|
-
hooks: {
|
|
213
|
-
"astro:config:setup"({ injectRoute }) {
|
|
214
|
-
injectRoute({
|
|
215
|
-
entrypoint: new URL(
|
|
216
|
-
"../dependencies/astro-payment-links/backend-runtime/payment-link.js",
|
|
217
|
-
import.meta.url
|
|
218
|
-
),
|
|
219
|
-
pattern: "/_paylink/[id]",
|
|
220
|
-
prerender: false
|
|
221
|
-
});
|
|
222
|
-
injectRoute({
|
|
223
|
-
entrypoint: new URL(
|
|
224
|
-
"../dependencies/astro-payment-links/backend-runtime/payment-checkout.js",
|
|
225
|
-
import.meta.url
|
|
226
|
-
),
|
|
227
|
-
pattern: "/checkout",
|
|
228
|
-
prerender: false
|
|
229
|
-
});
|
|
230
|
-
injectRoute({
|
|
231
|
-
entrypoint: new URL(
|
|
232
|
-
"../dependencies/astro-payment-links/backend-runtime/payment-checkout.js",
|
|
233
|
-
import.meta.url
|
|
234
|
-
),
|
|
235
|
-
pattern: "/__ecom/checkout",
|
|
236
|
-
prerender: false
|
|
237
|
-
});
|
|
238
|
-
injectRoute({
|
|
239
|
-
entrypoint: new URL(
|
|
240
|
-
"../dependencies/astro-payment-links/backend-runtime/proposal.js",
|
|
241
|
-
import.meta.url
|
|
242
|
-
),
|
|
243
|
-
pattern: "/_proposal",
|
|
244
|
-
prerender: false
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
};
|
|
250
|
-
var src_default3 = createIntegration14;
|
|
251
|
-
|
|
252
|
-
// ../astro-robots/src/index.ts
|
|
253
|
-
init_esm_shims();
|
|
254
|
-
var createIntegration15 = () => {
|
|
255
|
-
return {
|
|
256
|
-
name: "@wix/astro/robots",
|
|
257
|
-
hooks: {
|
|
258
|
-
"astro:config:setup"({ injectRoute }) {
|
|
259
|
-
injectRoute({
|
|
260
|
-
entrypoint: new URL(
|
|
261
|
-
"../dependencies/astro-robots/backend-runtime/robots.js",
|
|
262
|
-
import.meta.url
|
|
263
|
-
),
|
|
264
|
-
pattern: "/robots.txt",
|
|
265
|
-
prerender: false
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
};
|
|
270
|
-
};
|
|
271
|
-
var src_default4 = createIntegration15;
|
|
272
|
-
|
|
273
|
-
// ../astro-translations/src/index.ts
|
|
274
|
-
init_esm_shims();
|
|
275
|
-
import { readFileSync } from "fs";
|
|
276
|
-
import { fileURLToPath as fileURLToPath4 } from "url";
|
|
277
|
-
|
|
278
|
-
// ../astro-translations/src/utils/loadTranslations.ts
|
|
279
|
-
init_esm_shims();
|
|
280
|
-
import { readdir } from "fs/promises";
|
|
281
|
-
import { join as join2 } from "path";
|
|
282
|
-
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
283
|
-
import { toNamespaceDictionary } from "@wix/headless-localization-utils";
|
|
284
|
-
|
|
285
|
-
// ../astro-translations/src/constants.ts
|
|
286
|
-
init_esm_shims();
|
|
287
|
-
var TRANSLATIONS_METADATA_FILENAME = "metadata.json";
|
|
288
|
-
var TRANSLATIONS_FILENAME = "translations.json";
|
|
289
|
-
|
|
290
|
-
// ../astro-translations/src/utils/errorMessages.ts
|
|
291
|
-
init_esm_shims();
|
|
292
|
-
import { join } from "path";
|
|
293
|
-
function createTranslationFilesError(translationsDir) {
|
|
294
|
-
return new Error(defaultOutdent`
|
|
295
|
-
Failed to load translation file(s).
|
|
296
|
-
💡 Tip: create a file '${join(translationsDir, "translations.json")}' in your project, then use the Wix CLI to push these keys.
|
|
297
|
-
|
|
298
|
-
Example translation file structure:
|
|
299
|
-
{
|
|
300
|
-
"hello": "Hello",
|
|
301
|
-
"goodbye": "Goodbye"
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
🔍 Need Help?
|
|
305
|
-
- Visit our docs: https://dev.wix.com/docs/go-headless
|
|
306
|
-
`);
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
// ../astro-translations/src/utils/loadTranslations.ts
|
|
310
|
-
async function loadTranslationFile(filePath) {
|
|
311
|
-
return readJson(filePath).then(
|
|
312
|
-
(data) => toNamespaceDictionary(data)
|
|
313
|
-
);
|
|
314
|
-
}
|
|
315
|
-
async function loadAllTranslations(astroConfig) {
|
|
316
|
-
const srcDir = fileURLToPath2(astroConfig.srcDir);
|
|
317
|
-
const rootDir = fileURLToPath2(astroConfig.root);
|
|
318
|
-
const tempDir = join2(rootDir, ".wix");
|
|
319
|
-
const multilingualDir = join2(tempDir, "multilingual");
|
|
320
|
-
const primaryTranslationPath = join2(srcDir, TRANSLATIONS_FILENAME);
|
|
321
|
-
const pulledTranslationsDir = join2(multilingualDir, "translations");
|
|
322
|
-
let metadata;
|
|
323
|
-
let primaryTranslation;
|
|
324
|
-
try {
|
|
325
|
-
metadata = await loadMetadata(multilingualDir);
|
|
326
|
-
primaryTranslation = await loadPrimaryTranslation(
|
|
327
|
-
primaryTranslationPath,
|
|
328
|
-
metadata
|
|
329
|
-
);
|
|
330
|
-
} catch {
|
|
331
|
-
throw createTranslationFilesError(srcDir);
|
|
332
|
-
}
|
|
333
|
-
const wixTranslations = await loadTranslations(pulledTranslationsDir);
|
|
334
|
-
return { ...wixTranslations, ...primaryTranslation };
|
|
335
|
-
}
|
|
336
|
-
async function loadMetadata(translationsMetadataDir) {
|
|
337
|
-
const metadataPath = join2(
|
|
338
|
-
translationsMetadataDir,
|
|
339
|
-
TRANSLATIONS_METADATA_FILENAME
|
|
340
|
-
);
|
|
341
|
-
return await readJson(metadataPath);
|
|
342
|
-
}
|
|
343
|
-
async function loadPrimaryTranslation(primaryTranslationPath, metadata) {
|
|
344
|
-
const translationContent = await loadTranslationFile(primaryTranslationPath);
|
|
345
|
-
return {
|
|
346
|
-
[metadata.primaryLanguageCode]: translationContent
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
async function loadTranslations(translationsDir) {
|
|
350
|
-
const files = await readdir(translationsDir);
|
|
351
|
-
const jsonFiles = files.filter((file) => file.endsWith(".json"));
|
|
352
|
-
const translations = {};
|
|
353
|
-
for (const file of jsonFiles) {
|
|
354
|
-
const languageCode = file.replace(".json", "");
|
|
355
|
-
const filePath = join2(translationsDir, file);
|
|
356
|
-
translations[languageCode] = await loadTranslationFile(filePath);
|
|
357
|
-
}
|
|
358
|
-
return translations;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
// ../astro-translations/src/vite/wix-astro-i18n-plugin.ts
|
|
362
|
-
init_esm_shims();
|
|
363
|
-
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
364
|
-
var VIRTUAL_MODULE_ID = "wix:astro:i18n";
|
|
365
|
-
var RESOLVED_VIRTUAL_MODULE_ID = `\0${VIRTUAL_MODULE_ID}`;
|
|
366
|
-
var i18nRuntimePath = fileURLToPath3(
|
|
367
|
-
new URL(
|
|
368
|
-
"../dependencies/astro-translations/backend-runtime/runtime/i18n.js",
|
|
369
|
-
import.meta.url
|
|
370
|
-
)
|
|
371
|
-
);
|
|
372
|
-
var wixAstroI18nPlugin = () => {
|
|
373
|
-
return {
|
|
374
|
-
name: "vite-plugin-wix-astro-i18n",
|
|
375
|
-
enforce: "pre",
|
|
376
|
-
load(id) {
|
|
377
|
-
if (id !== RESOLVED_VIRTUAL_MODULE_ID) {
|
|
378
|
-
return;
|
|
379
|
-
}
|
|
380
|
-
return `export * from '${i18nRuntimePath}';`;
|
|
381
|
-
},
|
|
382
|
-
resolveId(id) {
|
|
383
|
-
return id === VIRTUAL_MODULE_ID ? RESOLVED_VIRTUAL_MODULE_ID : void 0;
|
|
384
|
-
}
|
|
385
|
-
};
|
|
386
|
-
};
|
|
387
|
-
|
|
388
|
-
// ../astro-translations/src/index.ts
|
|
389
|
-
var i18nTypesPath = fileURLToPath4(
|
|
390
|
-
new URL(
|
|
391
|
-
"../dependencies/astro-translations/types/wix-astro-i18n.d.ts",
|
|
392
|
-
import.meta.url
|
|
393
|
-
)
|
|
394
|
-
);
|
|
395
|
-
var createIntegration16 = () => {
|
|
396
|
-
return {
|
|
397
|
-
name: "@wix/astro/static-translations",
|
|
398
|
-
hooks: {
|
|
399
|
-
"astro:config:setup": async ({
|
|
400
|
-
addMiddleware,
|
|
401
|
-
config: astroConfig,
|
|
402
|
-
updateConfig
|
|
403
|
-
}) => {
|
|
404
|
-
const translations = await loadAllTranslations(astroConfig);
|
|
405
|
-
updateConfig({
|
|
406
|
-
vite: {
|
|
407
|
-
define: {
|
|
408
|
-
__WIX_ASTRO_I18N__: JSON.stringify({
|
|
409
|
-
base: astroConfig.base,
|
|
410
|
-
siteUrl: astroConfig.site ?? null,
|
|
411
|
-
translations
|
|
412
|
-
})
|
|
413
|
-
},
|
|
414
|
-
plugins: [wixAstroI18nPlugin()]
|
|
415
|
-
}
|
|
416
|
-
});
|
|
417
|
-
addMiddleware({
|
|
418
|
-
entrypoint: new URL(
|
|
419
|
-
"../dependencies/astro-translations/backend-runtime/middleware/static-translations.js",
|
|
420
|
-
import.meta.url
|
|
421
|
-
),
|
|
422
|
-
order: "pre"
|
|
423
|
-
});
|
|
424
|
-
},
|
|
425
|
-
"astro:config:done": async ({ injectTypes }) => {
|
|
426
|
-
injectTypes({
|
|
427
|
-
content: readFileSync(i18nTypesPath, "utf-8"),
|
|
428
|
-
filename: "wix-astro-i18n.d.ts"
|
|
429
|
-
});
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
};
|
|
433
|
-
};
|
|
434
|
-
var src_default5 = createIntegration16;
|
|
435
|
-
|
|
436
|
-
// ../astro-viewer-api/src/index.ts
|
|
437
|
-
init_esm_shims();
|
|
438
|
-
|
|
439
|
-
// ../astro-viewer-api/src/integration.ts
|
|
440
|
-
init_esm_shims();
|
|
441
|
-
var createIntegration17 = () => {
|
|
442
|
-
return {
|
|
443
|
-
name: "@wix/astro/viewer-api",
|
|
444
|
-
hooks: {
|
|
445
|
-
"astro:config:setup"({ injectRoute }) {
|
|
446
|
-
injectRoute({
|
|
447
|
-
entrypoint: new URL(
|
|
448
|
-
"../dependencies/astro-viewer-api/backend-runtime/api.js",
|
|
449
|
-
import.meta.url
|
|
450
|
-
),
|
|
451
|
-
pattern: "/_api/[...path]",
|
|
452
|
-
prerender: false
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
|
-
};
|
|
458
|
-
|
|
459
|
-
// src/index.ts
|
|
460
|
-
function isEnabled(value, defaultValue = true) {
|
|
461
|
-
if (typeof value === "boolean") {
|
|
462
|
-
return value;
|
|
463
|
-
}
|
|
464
|
-
return value?.enable ?? defaultValue;
|
|
465
|
-
}
|
|
466
|
-
var createIntegration18 = (config) => {
|
|
467
|
-
const enableAuthRoutes = isEnabled(config?.auth);
|
|
468
|
-
const enableHtmlEmbeds = isEnabled(config?.htmlEmbeds);
|
|
469
|
-
const enableRobots = isEnabled(config?.robots);
|
|
470
|
-
const enableBackendExtensions = isEnabled(config?.backendExtensions);
|
|
471
|
-
const enableBackofficeExtensions = isEnabled(config?.backofficeExtensions);
|
|
472
|
-
const enableWixSitePages = isEnabled(config?.wixSitePages);
|
|
473
|
-
const enableWixEssentials = isEnabled(config?.essentials, false);
|
|
474
|
-
const enableTranslations = isEnabled(config?.translations, false);
|
|
475
|
-
const integrations = [
|
|
476
|
-
src_default({ enableAuthRoutes, enableWixEssentials }),
|
|
477
|
-
...enableTranslations && enableWixEssentials ? [src_default5()] : [],
|
|
478
|
-
...enableBackendExtensions ? [createIntegration3()] : [],
|
|
479
|
-
...enableBackofficeExtensions ? [createIntegration10(), createIntegration9()] : [],
|
|
480
|
-
createIntegration5(),
|
|
481
|
-
...enableHtmlEmbeds ? [src_default2()] : [],
|
|
482
|
-
...enableWixSitePages ? [src_default3(), createIntegration17()] : [],
|
|
483
|
-
createIntegration6(),
|
|
484
|
-
createIntegration8(),
|
|
485
|
-
createIntegration7(),
|
|
486
|
-
createIntegration11(),
|
|
487
|
-
createIntegration2(),
|
|
488
|
-
createIntegration(),
|
|
489
|
-
...enableRobots ? [src_default4()] : []
|
|
490
|
-
];
|
|
491
|
-
return [createIntegration4({ integrations }), ...integrations];
|
|
492
|
-
};
|
|
493
|
-
var index_default = createIntegration18;
|
|
494
|
-
export {
|
|
495
|
-
index_default as default,
|
|
496
|
-
extensions
|
|
497
|
-
};
|
|
498
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../../astro-auth/src/index.ts","../../../astro-auth/src/plugins/patchAstroInlineScripts.ts","../../../astro-auth/src/plugins/setupContentCollectionContext.ts","../../../astro-html-embeds/src/index.ts","../../../astro-payment-links/src/index.ts","../../../astro-robots/src/index.ts","../../../astro-translations/src/index.ts","../../../astro-translations/src/utils/loadTranslations.ts","../../../astro-translations/src/constants.ts","../../../astro-translations/src/utils/errorMessages.ts","../../../astro-translations/src/vite/wix-astro-i18n-plugin.ts","../../../astro-viewer-api/src/index.ts","../../../astro-viewer-api/src/integration.ts"],"sourcesContent":["import type { AstroIntegration } from 'astro';\nimport auth from '@wix/astro-auth';\nimport backend from '@wix/astro-backend-extensions';\nimport backoffice from '@wix/astro-backoffice-extensions';\nimport contextProviders from '@wix/astro-context-providers-extensions';\nimport core from '@wix/astro-core';\nimport customElements from '@wix/astro-custom-elements-extensions';\nimport embeddedScripts from '@wix/astro-embedded-scripts-extensions';\nimport functionLibraries from '@wix/astro-function-libraries-extensions';\nimport htmlEmbeds from '@wix/astro-html-embeds';\nimport paymentLinks from '@wix/astro-payment-links';\nimport robots from '@wix/astro-robots';\nimport siteComponentPanels from '@wix/astro-site-component-panels-extensions';\nimport siteComponents from '@wix/astro-site-components-extensions';\nimport translations from '@wix/astro-translations';\nimport internalBackoffice from '@wix/astro-trusted-backoffice-extensions';\nimport viewerApi from '@wix/astro-viewer-api';\nimport viewerServices from '@wix/astro-viewer-services-extensions';\n\nexport { extensions } from './builders.js';\n\ninterface WixAstroConfig {\n auth?: boolean | { enable?: boolean };\n backendExtensions?: boolean | { enable?: boolean };\n backofficeExtensions?: boolean | { enable?: boolean };\n essentials?: boolean | { enable?: boolean };\n htmlEmbeds?: boolean | { enable?: boolean };\n robots?: boolean | { enable?: boolean };\n translations?: boolean | { enable?: boolean };\n wixSitePages?: boolean | { enable?: boolean };\n}\n\nfunction isEnabled(\n value?: boolean | { enable?: boolean },\n defaultValue = true\n): boolean {\n if (typeof value === 'boolean') {\n return value;\n }\n return value?.enable ?? defaultValue;\n}\n\nconst createIntegration = (config?: WixAstroConfig): AstroIntegration[] => {\n const enableAuthRoutes = isEnabled(config?.auth);\n const enableHtmlEmbeds = isEnabled(config?.htmlEmbeds);\n const enableRobots = isEnabled(config?.robots);\n const enableBackendExtensions = isEnabled(config?.backendExtensions);\n const enableBackofficeExtensions = isEnabled(config?.backofficeExtensions);\n const enableWixSitePages = isEnabled(config?.wixSitePages);\n const enableWixEssentials = isEnabled(config?.essentials, false);\n const enableTranslations = isEnabled(config?.translations, false);\n\n const integrations = [\n auth({ enableAuthRoutes, enableWixEssentials }),\n ...(enableTranslations && enableWixEssentials ? [translations()] : []),\n ...(enableBackendExtensions ? [backend()] : []),\n ...(enableBackofficeExtensions ? [backoffice(), internalBackoffice()] : []),\n customElements(),\n ...(enableHtmlEmbeds ? [htmlEmbeds()] : []),\n ...(enableWixSitePages ? [paymentLinks(), viewerApi()] : []),\n embeddedScripts(),\n siteComponents(),\n siteComponentPanels(),\n viewerServices(),\n functionLibraries(),\n contextProviders(),\n ...(enableRobots ? [robots()] : []),\n ];\n\n return [core({ integrations }), ...integrations];\n};\n\nexport default createIntegration;\n","import { fileURLToPath } from 'node:url';\nimport type { WixIntegration } from '@wix/astro-core';\nimport { normalizePath } from '@wix/vite-utils';\nimport { outdent } from 'outdent';\nimport { patchAstroInlineScripts } from './plugins/patchAstroInlineScripts.js';\nimport { setupContentCollectionContext } from './plugins/setupContentCollectionContext.js';\n\nconst setupContextUrl = new URL(\n '../dependencies/astro-auth/browser-runtime/setup.js',\n import.meta.url\n);\n\nconst createIntegration = ({\n enableAuthRoutes,\n enableWixEssentials,\n}: {\n enableAuthRoutes: boolean;\n enableWixEssentials: boolean;\n}): WixIntegration => {\n return {\n name: '@wix/astro/auth',\n hooks: {\n 'astro:config:setup'({\n addMiddleware,\n config,\n injectRoute,\n injectScript,\n updateConfig,\n }) {\n const srcDir = fileURLToPath(config.srcDir);\n\n updateConfig({\n vite: {\n plugins: [\n setupContentCollectionContext(srcDir),\n patchAstroInlineScripts(),\n ],\n },\n });\n\n const setupContextCode = outdent`\n import { WIX_CLIENT_ID } from 'astro:env/client';\n import { setup } from '${normalizePath(setupContextUrl)}';\n\n setup({ clientId: WIX_CLIENT_ID });\n `;\n\n // support client-side context calls\n injectScript('before-hydration', setupContextCode);\n injectScript('page', setupContextCode);\n\n // support server side context calls\n addMiddleware({\n entrypoint: new URL(\n '../dependencies/astro-auth/backend-runtime/middleware/auth.js',\n import.meta.url\n ),\n order: 'pre',\n });\n\n // support localization\n if (enableWixEssentials) {\n addMiddleware({\n entrypoint: new URL(\n '../dependencies/astro-auth/backend-runtime/middleware/localization.js',\n import.meta.url\n ),\n order: 'pre',\n });\n }\n\n // support built-in auth routes\n if (enableAuthRoutes) {\n injectRoute({\n entrypoint: new URL(\n '../dependencies/astro-auth/backend-runtime/routes/login.js',\n import.meta.url\n ),\n pattern: '/api/auth/login',\n prerender: false,\n });\n\n injectRoute({\n entrypoint: new URL(\n '../dependencies/astro-auth/backend-runtime/routes/logout.js',\n import.meta.url\n ),\n pattern: '/api/auth/logout',\n prerender: false,\n });\n\n injectRoute({\n entrypoint: new URL(\n '../dependencies/astro-auth/backend-runtime/routes/callback.js',\n import.meta.url\n ),\n pattern: '/api/auth/callback',\n prerender: false,\n });\n\n injectRoute({\n entrypoint: new URL(\n '../dependencies/astro-auth/backend-runtime/routes/logout-callback.js',\n import.meta.url\n ),\n pattern: '/api/auth/logout-callback',\n prerender: false,\n });\n }\n },\n },\n };\n};\n\nexport default createIntegration;\n","import type { PluginOption } from 'vite';\nimport { outdent } from 'outdent';\n\nexport function patchAstroInlineScripts(): PluginOption {\n return {\n name: 'patch-astro-inline-scripts',\n transform(code, id) {\n const [_filename, rawQuery] = id.split(`?`, 2);\n const query = Object.fromEntries(new URLSearchParams(rawQuery).entries());\n\n if (\n query.astro == null ||\n query.type !== 'script' ||\n query['lang.ts'] == null ||\n code === ''\n ) {\n return null;\n }\n\n return outdent`\n import 'astro:scripts/page.js';\n\n ${code}\n `;\n },\n };\n}\n","import { relative } from 'node:path';\nimport type { PluginOption } from 'vite';\nimport { normalizePath } from '@wix/vite-utils';\nimport { outdent } from 'outdent';\n\n// https://github.com/withastro/astro/blob/e0c4460c5b6cc0c19b705d81820809aef0544100/packages/astro/src/content/utils.ts#L748-L763\nconst contentCollectionFilePaths = [\n 'content.config.mjs',\n 'content.config.js',\n 'content.config.mts',\n 'content.config.ts',\n 'content/config.mjs',\n 'content/config.js',\n 'content/config.mts',\n 'content/config.ts',\n];\n\nconst setupContextualClientUrl = new URL(\n '../dependencies/astro-auth/backend-runtime/runtime/backend/setupContextualClient.js',\n import.meta.url\n);\n\nexport function setupContentCollectionContext(srcDir: string): PluginOption {\n return {\n name: 'setup-content-collection-context',\n applyToEnvironment(environment) {\n return environment.name === 'ssr';\n },\n transform(code, id) {\n const relativeId = relative(srcDir, id);\n\n const isContentCollectionFile =\n contentCollectionFilePaths.includes(relativeId);\n\n if (isContentCollectionFile) {\n return outdent`\n import '${normalizePath(setupContextualClientUrl)}';\n\n ${code}\n `;\n }\n\n return null;\n },\n };\n}\n","import type { WixIntegration } from '@wix/astro-core';\n\nconst createIntegration = (): WixIntegration => {\n return {\n name: '@wix/astro/html-embeds',\n hooks: {\n 'astro:config:setup'({ addMiddleware }) {\n addMiddleware({\n entrypoint: new URL(\n '../dependencies/astro-html-embeds/backend-runtime/html-embeds.js',\n import.meta.url\n ),\n order: 'post',\n });\n },\n },\n };\n};\n\nexport default createIntegration;\n","import type { WixIntegration } from '@wix/astro-core';\n\nconst createIntegration = (): WixIntegration => {\n return {\n name: '@wix/astro/payment-links',\n hooks: {\n 'astro:config:setup'({ injectRoute }) {\n /*\n 1. A user generates a paylink -> https://mysite.com/_paylink/[id]\n 2. When accessing the paylink, our route redirects them to the Wix Payments link\n 3. Wix Payments then redirects the user to Wix Checkout,\n which may resolve to either https://mysite.com/checkout/... or https://mysite.com/__ecom/checkout/...,\n depending on the flow within Wix.\n */\n\n injectRoute({\n entrypoint: new URL(\n '../dependencies/astro-payment-links/backend-runtime/payment-link.js',\n import.meta.url\n ),\n pattern: '/_paylink/[id]',\n prerender: false,\n });\n\n injectRoute({\n entrypoint: new URL(\n '../dependencies/astro-payment-links/backend-runtime/payment-checkout.js',\n import.meta.url\n ),\n pattern: '/checkout',\n prerender: false,\n });\n\n injectRoute({\n entrypoint: new URL(\n '../dependencies/astro-payment-links/backend-runtime/payment-checkout.js',\n import.meta.url\n ),\n pattern: '/__ecom/checkout',\n prerender: false,\n });\n\n injectRoute({\n entrypoint: new URL(\n '../dependencies/astro-payment-links/backend-runtime/proposal.js',\n import.meta.url\n ),\n pattern: '/_proposal',\n prerender: false,\n });\n },\n },\n };\n};\n\nexport default createIntegration;\n","import type { WixIntegration } from '@wix/astro-core';\n\nconst createIntegration = (): WixIntegration => {\n return {\n name: '@wix/astro/robots',\n hooks: {\n 'astro:config:setup'({ injectRoute }) {\n injectRoute({\n entrypoint: new URL(\n '../dependencies/astro-robots/backend-runtime/robots.js',\n import.meta.url\n ),\n pattern: '/robots.txt',\n prerender: false,\n });\n },\n },\n };\n};\n\nexport default createIntegration;\n","import { readFileSync } from 'node:fs';\nimport { fileURLToPath } from 'node:url';\nimport type { WixIntegration } from '@wix/astro-core';\nimport { loadAllTranslations } from './utils/loadTranslations.js';\nimport { wixAstroI18nPlugin } from './vite/wix-astro-i18n-plugin.js';\n\nconst i18nTypesPath = fileURLToPath(\n new URL(\n '../dependencies/astro-translations/types/wix-astro-i18n.d.ts',\n import.meta.url\n )\n);\n\nconst createIntegration = (): WixIntegration => {\n return {\n name: '@wix/astro/static-translations',\n hooks: {\n 'astro:config:setup': async ({\n addMiddleware,\n config: astroConfig,\n updateConfig,\n }) => {\n const translations = await loadAllTranslations(astroConfig);\n\n updateConfig({\n vite: {\n define: {\n __WIX_ASTRO_I18N__: JSON.stringify({\n base: astroConfig.base,\n siteUrl: astroConfig.site ?? null,\n translations,\n }),\n },\n plugins: [wixAstroI18nPlugin()],\n },\n });\n\n addMiddleware({\n entrypoint: new URL(\n '../dependencies/astro-translations/backend-runtime/middleware/static-translations.js',\n import.meta.url\n ),\n order: 'pre',\n });\n },\n\n 'astro:config:done': async ({ injectTypes }) => {\n injectTypes({\n content: readFileSync(i18nTypesPath, 'utf-8'),\n filename: 'wix-astro-i18n.d.ts',\n });\n },\n },\n };\n};\n\nexport default createIntegration;\n","import { readdir } from 'node:fs/promises';\nimport { join } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport type { AstroConfig } from 'astro';\nimport { readJson } from '@wix/fs-utils';\nimport { toNamespaceDictionary } from '@wix/headless-localization-utils';\nimport type { Translations, TranslationsMetadata } from '../types.js';\nimport {\n TRANSLATIONS_FILENAME,\n TRANSLATIONS_METADATA_FILENAME,\n} from '../constants.js';\nimport { createTranslationFilesError } from './errorMessages.js';\n\nasync function loadTranslationFile(filePath: string) {\n return readJson(filePath).then((data) =>\n toNamespaceDictionary(data as Record<string, unknown>)\n );\n}\n\n/**\n * Load the primary translation from `src/translations.json` and the other translation files from `.wix/multilingual/translations`.\n * Merges translations with `src/translations.json` taking priority over `.wix/multilingual/translations`.\n */\nexport async function loadAllTranslations(astroConfig: AstroConfig) {\n const srcDir = fileURLToPath(astroConfig.srcDir);\n const rootDir = fileURLToPath(astroConfig.root);\n\n const tempDir = join(rootDir, '.wix');\n const multilingualDir = join(tempDir, 'multilingual');\n const primaryTranslationPath = join(srcDir, TRANSLATIONS_FILENAME);\n const pulledTranslationsDir = join(multilingualDir, 'translations');\n\n let metadata;\n let primaryTranslation;\n\n try {\n metadata = await loadMetadata(multilingualDir);\n primaryTranslation = await loadPrimaryTranslation(\n primaryTranslationPath,\n metadata\n );\n } catch {\n throw createTranslationFilesError(srcDir);\n }\n\n const wixTranslations = await loadTranslations(pulledTranslationsDir);\n\n return { ...wixTranslations, ...primaryTranslation };\n}\n\nasync function loadMetadata(translationsMetadataDir: string) {\n const metadataPath = join(\n translationsMetadataDir,\n TRANSLATIONS_METADATA_FILENAME\n );\n return (await readJson(metadataPath)) as TranslationsMetadata;\n}\n\nasync function loadPrimaryTranslation(\n primaryTranslationPath: string,\n metadata: TranslationsMetadata\n) {\n const translationContent = await loadTranslationFile(primaryTranslationPath);\n\n return {\n [metadata.primaryLanguageCode]: translationContent,\n };\n}\n\nasync function loadTranslations(translationsDir: string) {\n const files = await readdir(translationsDir);\n\n const jsonFiles = files.filter((file) => file.endsWith('.json'));\n\n const translations: Translations = {};\n\n for (const file of jsonFiles) {\n const languageCode = file.replace('.json', '');\n const filePath = join(translationsDir, file);\n translations[languageCode] = await loadTranslationFile(filePath);\n }\n\n return translations;\n}\n","export const TRANSLATIONS_METADATA_FILENAME = 'metadata.json';\nexport const TRANSLATIONS_FILENAME = 'translations.json';\n","import { join } from 'node:path';\nimport { outdent } from 'outdent';\n\nexport function createTranslationFilesError(translationsDir: string): Error {\n return new Error(outdent`\n Failed to load translation file(s).\n 💡 Tip: create a file '${join(translationsDir, 'translations.json')}' in your project, then use the Wix CLI to push these keys.\n\n Example translation file structure:\n {\n \"hello\": \"Hello\",\n \"goodbye\": \"Goodbye\"\n }\n\n 🔍 Need Help?\n - Visit our docs: https://dev.wix.com/docs/go-headless\n `);\n}\n","import { fileURLToPath } from 'node:url';\nimport type { PluginOption } from 'vite';\n\nconst VIRTUAL_MODULE_ID = 'wix:astro:i18n';\nconst RESOLVED_VIRTUAL_MODULE_ID = `\\0${VIRTUAL_MODULE_ID}`;\n\nconst i18nRuntimePath = fileURLToPath(\n new URL(\n '../dependencies/astro-translations/backend-runtime/runtime/i18n.js',\n import.meta.url\n )\n);\n\nexport const wixAstroI18nPlugin = (): PluginOption => {\n return {\n name: 'vite-plugin-wix-astro-i18n',\n\n enforce: 'pre',\n\n load(id) {\n if (id !== RESOLVED_VIRTUAL_MODULE_ID) {\n return;\n }\n\n return `export * from '${i18nRuntimePath}';`;\n },\n\n resolveId(id) {\n return id === VIRTUAL_MODULE_ID ? RESOLVED_VIRTUAL_MODULE_ID : undefined;\n },\n };\n};\n","export { createIntegration as default } from './integration.js';\n","import type { WixIntegration } from '@wix/astro-core';\n\nexport const createIntegration = (): WixIntegration => {\n return {\n name: '@wix/astro/viewer-api',\n hooks: {\n 'astro:config:setup'({ injectRoute }) {\n injectRoute({\n entrypoint: new URL(\n '../dependencies/astro-viewer-api/backend-runtime/api.js',\n import.meta.url\n ),\n pattern: '/_api/[...path]',\n prerender: false,\n });\n },\n },\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;ACAA;AAAA,SAAS,qBAAqB;;;ACA9B;AAGO,SAAS,0BAAwC;AACtD,SAAO;AAAA,IACL,MAAM;AAAA,IACN,UAAU,MAAM,IAAI;AAClB,YAAM,CAAC,WAAW,QAAQ,IAAI,GAAG,MAAM,KAAK,CAAC;AAC7C,YAAM,QAAQ,OAAO,YAAY,IAAI,gBAAgB,QAAQ,EAAE,QAAQ,CAAC;AAExE,UACE,MAAM,SAAS,QACf,MAAM,SAAS,YACf,MAAM,SAAS,KAAK,QACpB,SAAS,IACT;AACA,eAAO;AAAA,MACT;AAEA,aAAO;AAAA;AAAA;AAAA,UAGH,IAAI;AAAA;AAAA,IAEV;AAAA,EACF;AACF;;;AC1BA;AAAA,SAAS,gBAAgB;AAMzB,IAAM,6BAA6B;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEA,IAAM,2BAA2B,IAAI;AAAA,EACnC;AAAA,EACA,YAAY;AACd;AAEO,SAAS,8BAA8B,QAA8B;AAC1E,SAAO;AAAA,IACL,MAAM;AAAA,IACN,mBAAmB,aAAa;AAC9B,aAAO,YAAY,SAAS;AAAA,IAC9B;AAAA,IACA,UAAU,MAAM,IAAI;AAClB,YAAM,aAAa,SAAS,QAAQ,EAAE;AAEtC,YAAM,0BACJ,2BAA2B,SAAS,UAAU;AAEhD,UAAI,yBAAyB;AAC3B,eAAO;AAAA,oBACK,cAAc,wBAAwB,CAAC;AAAA;AAAA,YAE/C,IAAI;AAAA;AAAA,MAEV;AAEA,aAAO;AAAA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QAAM,mBAAmB,UAAU,QAAQ,UAAU;AACrD,QAAM,eAAe,UAAU,QAAQ,MAAM;AAC7C,QAAM,0BAA0B,UAAU,QAAQ,iBAAiB;AACnE,QAAM,6BAA6B,UAAU,QAAQ,oBAAoB;AACzE,QAAM,qBAAqB,UAAU,QAAQ,YAAY;AACzD,QAAM,sBAAsB,UAAU,QAAQ,YAAY,KAAK;AAC/D,QAAM,qBAAqB,UAAU,QAAQ,cAAc,KAAK;AAEhE,QAAM,eAAe;AAAA,IACnB,YAAK,EAAE,kBAAkB,oBAAoB,CAAC;AAAA,IAC9C,GAAI,sBAAsB,sBAAsB,CAACC,aAAa,CAAC,IAAI,CAAC;AAAA,IACpE,GAAI,0BAA0B,CAACD,mBAAQ,CAAC,IAAI,CAAC;AAAA,IAC7C,GAAI,6BAA6B,CAACA,oBAAW,GAAGA,mBAAmB,CAAC,IAAI,CAAC;AAAA,IACzEA,mBAAe;AAAA,IACf,GAAI,mBAAmB,CAACC,aAAW,CAAC,IAAI,CAAC;AAAA,IACzC,GAAI,qBAAqB,CAACA,aAAa,GAAGD,oBAAU,CAAC,IAAI,CAAC;AAAA,IAC1DA,mBAAgB;AAAA,IAChBA,mBAAe;AAAA,IACfA,mBAAoB;AAAA,IACpBA,oBAAe;AAAA,IACfA,mBAAkB;AAAA,IAClB,kBAAiB;AAAA,IACjB,GAAI,eAAe,CAACC,aAAO,CAAC,IAAI,CAAC;AAAA,EACnC;AAEA,SAAO,CAACD,mBAAK,EAAE,aAAa,CAAC,GAAG,GAAG,YAAY;AACjD;AAEA,IAAO,gBAAQA;","names":["createIntegration","createIntegration","src_default","createIntegration","src_default","createIntegration","src_default","fileURLToPath","join","fileURLToPath","fileURLToPath","join","fileURLToPath","fileURLToPath","createIntegration","src_default","createIntegration","createIntegration","src_default"]}
|