@wix/astro 2.9.0 → 2.10.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/chunk-BIARYLOZ.js +3267 -0
- package/build/dependencies/astro-auth/backend-runtime/chunk-HPW4ZAEJ.js +23 -0
- package/build/dependencies/astro-auth/backend-runtime/chunk-MLKGABMK.js +9 -0
- package/build/dependencies/astro-auth/backend-runtime/chunk-RTCWF7UX.js +90 -0
- package/build/dependencies/astro-auth/backend-runtime/chunk-YHKPE45V.js +13 -0
- package/build/dependencies/astro-auth/backend-runtime/middleware/auth.d.ts +5 -0
- package/build/dependencies/astro-auth/backend-runtime/middleware/auth.js +85 -0
- package/build/dependencies/astro-auth/backend-runtime/routes/callback.d.ts +5 -0
- package/build/dependencies/astro-auth/backend-runtime/routes/callback.js +52 -0
- package/build/dependencies/astro-auth/backend-runtime/routes/login.d.ts +5 -0
- package/build/dependencies/astro-auth/backend-runtime/routes/login.js +45 -0
- package/build/dependencies/astro-auth/backend-runtime/routes/logout-callback.d.ts +5 -0
- package/build/dependencies/astro-auth/backend-runtime/routes/logout-callback.js +23 -0
- package/build/dependencies/astro-auth/backend-runtime/routes/logout.d.ts +5 -0
- package/build/dependencies/astro-auth/backend-runtime/routes/logout.js +32 -0
- package/build/dependencies/astro-auth/backend-runtime/runtime/backend/setupContextualClient.d.ts +2 -0
- package/build/dependencies/astro-auth/backend-runtime/runtime/backend/setupContextualClient.js +2 -0
- package/build/dependencies/astro-auth/browser-runtime/setup.d.ts +5 -0
- package/build/dependencies/astro-auth/browser-runtime/setup.js +63 -0
- package/build/dependencies/astro-backend-extensions/backend-runtime/chunk-RHCMPH4V.js +24 -0
- package/build/dependencies/astro-backend-extensions/backend-runtime/routes/servicePlugins.d.ts +5 -0
- package/build/dependencies/astro-backend-extensions/backend-runtime/routes/servicePlugins.js +18 -0
- package/build/dependencies/astro-backend-extensions/backend-runtime/routes/webhooks.d.ts +5 -0
- package/build/dependencies/astro-backend-extensions/backend-runtime/routes/webhooks.js +18 -0
- package/build/dependencies/astro-backend-extensions/backend-runtime/runtime/setupServicePlugin.d.ts +5 -0
- package/build/dependencies/astro-backend-extensions/backend-runtime/runtime/setupServicePlugin.js +14 -0
- package/build/dependencies/astro-backend-extensions/backend-runtime/runtime/setupWebhook.d.ts +5 -0
- package/build/dependencies/astro-backend-extensions/backend-runtime/runtime/setupWebhook.js +15 -0
- package/build/dependencies/astro-backoffice-extensions/astro-runtime/entry.astro +30 -0
- package/build/dependencies/astro-backoffice-extensions/browser-runtime/wrapComponent.d.ts +5 -0
- package/build/dependencies/astro-backoffice-extensions/browser-runtime/wrapComponent.js +8 -0
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/index.d.ts +11 -0
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/index.js +77 -0
- package/build/dependencies/astro-embedded-scripts-extensions/browser-runtime/setupContext.d.ts +5 -0
- package/build/dependencies/astro-embedded-scripts-extensions/browser-runtime/setupContext.js +25 -0
- package/build/dependencies/astro-html-embeds/backend-runtime/html-embeds.d.ts +5 -0
- package/build/dependencies/astro-html-embeds/backend-runtime/html-embeds.js +64 -0
- package/build/dependencies/astro-payment-links/backend-runtime/chunk-656BVIJ3.js +9 -0
- package/build/dependencies/astro-payment-links/backend-runtime/payment-checkout.d.ts +5 -0
- package/build/dependencies/astro-payment-links/backend-runtime/payment-checkout.js +24 -0
- package/build/dependencies/astro-payment-links/backend-runtime/payment-link.d.ts +5 -0
- package/build/dependencies/astro-payment-links/backend-runtime/payment-link.js +20 -0
- package/build/dependencies/astro-robots/backend-runtime/robots.d.ts +5 -0
- package/build/dependencies/astro-robots/backend-runtime/robots.js +38 -0
- package/build/dependencies/astro-site-components-extensions/browser-runtime/hmr.js +26 -0
- package/build/dependencies/astro-viewer-api/backend-runtime/api.d.ts +5 -0
- package/build/dependencies/astro-viewer-api/backend-runtime/api.js +34 -0
- package/build/{builders.js → integration/builders.js} +15 -14
- package/build/integration/builders.js.map +1 -0
- package/build/integration/chunk-JFJIM45R.js +29525 -0
- package/build/integration/chunk-JFJIM45R.js.map +1 -0
- package/build/integration/index.js +306 -0
- package/build/integration/index.js.map +1 -0
- package/package.json +26 -16
- package/build/builders.js.map +0 -1
- package/build/index.js +0 -58
- package/build/index.js.map +0 -1
- /package/build/{builders.d.ts → integration/builders.d.ts} +0 -0
- /package/build/{index.d.ts → integration/index.d.ts} +0 -0
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
+
const require = _createRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
createIntegration,
|
|
5
|
+
createIntegration2,
|
|
6
|
+
createIntegration3,
|
|
7
|
+
createIntegration4,
|
|
8
|
+
createIntegration5,
|
|
9
|
+
createIntegration6,
|
|
10
|
+
createIntegration7,
|
|
11
|
+
defaultOutdent,
|
|
12
|
+
init_esm_shims,
|
|
13
|
+
normalizePath
|
|
14
|
+
} from "./chunk-JFJIM45R.js";
|
|
15
|
+
|
|
16
|
+
// src/index.ts
|
|
17
|
+
init_esm_shims();
|
|
18
|
+
|
|
19
|
+
// ../astro-auth/src/index.ts
|
|
20
|
+
init_esm_shims();
|
|
21
|
+
import { fileURLToPath } from "url";
|
|
22
|
+
|
|
23
|
+
// ../astro-auth/src/plugins/patchAstroInlineScripts.ts
|
|
24
|
+
init_esm_shims();
|
|
25
|
+
function patchAstroInlineScripts() {
|
|
26
|
+
return {
|
|
27
|
+
name: "patch-astro-inline-scripts",
|
|
28
|
+
transform(code, id) {
|
|
29
|
+
const [_filename, rawQuery] = id.split(`?`, 2);
|
|
30
|
+
const query = Object.fromEntries(new URLSearchParams(rawQuery).entries());
|
|
31
|
+
if (query.astro == null || query.type !== "script" || query["lang.ts"] == null || code === "") {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return defaultOutdent`
|
|
35
|
+
import 'astro:scripts/page.js';
|
|
36
|
+
|
|
37
|
+
${code}
|
|
38
|
+
`;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// ../astro-auth/src/plugins/setupContentCollectionContext.ts
|
|
44
|
+
init_esm_shims();
|
|
45
|
+
import { relative } from "path";
|
|
46
|
+
var contentCollectionFilePaths = [
|
|
47
|
+
"content.config.mjs",
|
|
48
|
+
"content.config.js",
|
|
49
|
+
"content.config.mts",
|
|
50
|
+
"content.config.ts",
|
|
51
|
+
"content/config.mjs",
|
|
52
|
+
"content/config.js",
|
|
53
|
+
"content/config.mts",
|
|
54
|
+
"content/config.ts"
|
|
55
|
+
];
|
|
56
|
+
var setupContextualClientUrl = new URL(
|
|
57
|
+
"../dependencies/astro-auth/backend-runtime/runtime/backend/setupContextualClient.js",
|
|
58
|
+
import.meta.url
|
|
59
|
+
);
|
|
60
|
+
function setupContentCollectionContext(srcDir) {
|
|
61
|
+
return {
|
|
62
|
+
name: "setup-content-collection-context",
|
|
63
|
+
applyToEnvironment(environment) {
|
|
64
|
+
return environment.name === "ssr";
|
|
65
|
+
},
|
|
66
|
+
transform(code, id) {
|
|
67
|
+
const relativeId = relative(srcDir, id);
|
|
68
|
+
const isContentCollectionFile = contentCollectionFilePaths.includes(relativeId);
|
|
69
|
+
if (isContentCollectionFile) {
|
|
70
|
+
return defaultOutdent`
|
|
71
|
+
import '${normalizePath(setupContextualClientUrl)}';
|
|
72
|
+
|
|
73
|
+
${code}
|
|
74
|
+
`;
|
|
75
|
+
}
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// ../astro-auth/src/index.ts
|
|
82
|
+
var setupContextUrl = new URL(
|
|
83
|
+
"../dependencies/astro-auth/browser-runtime/setup.js",
|
|
84
|
+
import.meta.url
|
|
85
|
+
);
|
|
86
|
+
var createIntegration8 = ({
|
|
87
|
+
enableAuthRoutes
|
|
88
|
+
}) => {
|
|
89
|
+
return {
|
|
90
|
+
name: "@wix/astro/auth",
|
|
91
|
+
hooks: {
|
|
92
|
+
"astro:config:setup"({
|
|
93
|
+
addMiddleware,
|
|
94
|
+
config,
|
|
95
|
+
injectRoute,
|
|
96
|
+
injectScript,
|
|
97
|
+
updateConfig
|
|
98
|
+
}) {
|
|
99
|
+
const srcDir = fileURLToPath(config.srcDir);
|
|
100
|
+
updateConfig({
|
|
101
|
+
vite: {
|
|
102
|
+
plugins: [
|
|
103
|
+
setupContentCollectionContext(srcDir),
|
|
104
|
+
patchAstroInlineScripts()
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
const setupContextCode = defaultOutdent`
|
|
109
|
+
import { WIX_CLIENT_ID } from 'astro:env/client';
|
|
110
|
+
import { setup } from '${normalizePath(setupContextUrl)}';
|
|
111
|
+
|
|
112
|
+
setup({ clientId: WIX_CLIENT_ID });
|
|
113
|
+
`;
|
|
114
|
+
injectScript("before-hydration", setupContextCode);
|
|
115
|
+
injectScript("page", setupContextCode);
|
|
116
|
+
addMiddleware({
|
|
117
|
+
entrypoint: new URL(
|
|
118
|
+
"../dependencies/astro-auth/backend-runtime/middleware/auth.js",
|
|
119
|
+
import.meta.url
|
|
120
|
+
),
|
|
121
|
+
order: "pre"
|
|
122
|
+
});
|
|
123
|
+
if (enableAuthRoutes) {
|
|
124
|
+
injectRoute({
|
|
125
|
+
entrypoint: new URL(
|
|
126
|
+
"../dependencies/astro-auth/backend-runtime/routes/login.js",
|
|
127
|
+
import.meta.url
|
|
128
|
+
),
|
|
129
|
+
pattern: "/api/auth/login",
|
|
130
|
+
prerender: false
|
|
131
|
+
});
|
|
132
|
+
injectRoute({
|
|
133
|
+
entrypoint: new URL(
|
|
134
|
+
"../dependencies/astro-auth/backend-runtime/routes/logout.js",
|
|
135
|
+
import.meta.url
|
|
136
|
+
),
|
|
137
|
+
pattern: "/api/auth/logout",
|
|
138
|
+
prerender: false
|
|
139
|
+
});
|
|
140
|
+
injectRoute({
|
|
141
|
+
entrypoint: new URL(
|
|
142
|
+
"../dependencies/astro-auth/backend-runtime/routes/callback.js",
|
|
143
|
+
import.meta.url
|
|
144
|
+
),
|
|
145
|
+
pattern: "/api/auth/callback",
|
|
146
|
+
prerender: false
|
|
147
|
+
});
|
|
148
|
+
injectRoute({
|
|
149
|
+
entrypoint: new URL(
|
|
150
|
+
"../dependencies/astro-auth/backend-runtime/routes/logout-callback.js",
|
|
151
|
+
import.meta.url
|
|
152
|
+
),
|
|
153
|
+
pattern: "/api/auth/logout-callback",
|
|
154
|
+
prerender: false
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
var src_default = createIntegration8;
|
|
162
|
+
|
|
163
|
+
// ../astro-html-embeds/src/index.ts
|
|
164
|
+
init_esm_shims();
|
|
165
|
+
var createIntegration9 = () => {
|
|
166
|
+
return {
|
|
167
|
+
name: "@wix/astro/html-embeds",
|
|
168
|
+
hooks: {
|
|
169
|
+
"astro:config:setup"({ addMiddleware }) {
|
|
170
|
+
addMiddleware({
|
|
171
|
+
entrypoint: new URL(
|
|
172
|
+
"../dependencies/astro-html-embeds/backend-runtime/html-embeds.js",
|
|
173
|
+
import.meta.url
|
|
174
|
+
),
|
|
175
|
+
order: "post"
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
var src_default2 = createIntegration9;
|
|
182
|
+
|
|
183
|
+
// ../astro-payment-links/src/index.ts
|
|
184
|
+
init_esm_shims();
|
|
185
|
+
var createIntegration10 = () => {
|
|
186
|
+
return {
|
|
187
|
+
name: "@wix/astro/payment-links",
|
|
188
|
+
hooks: {
|
|
189
|
+
"astro:config:setup"({ injectRoute }) {
|
|
190
|
+
injectRoute({
|
|
191
|
+
entrypoint: new URL(
|
|
192
|
+
"../dependencies/astro-payment-links/backend-runtime/payment-link.js",
|
|
193
|
+
import.meta.url
|
|
194
|
+
),
|
|
195
|
+
pattern: "/_paylink/[id]",
|
|
196
|
+
prerender: false
|
|
197
|
+
});
|
|
198
|
+
injectRoute({
|
|
199
|
+
entrypoint: new URL(
|
|
200
|
+
"../dependencies/astro-payment-links/backend-runtime/payment-checkout.js",
|
|
201
|
+
import.meta.url
|
|
202
|
+
),
|
|
203
|
+
pattern: "/checkout",
|
|
204
|
+
prerender: false
|
|
205
|
+
});
|
|
206
|
+
injectRoute({
|
|
207
|
+
entrypoint: new URL(
|
|
208
|
+
"../dependencies/astro-payment-links/backend-runtime/payment-checkout.js",
|
|
209
|
+
import.meta.url
|
|
210
|
+
),
|
|
211
|
+
pattern: "/__ecom/checkout",
|
|
212
|
+
prerender: false
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
var src_default3 = createIntegration10;
|
|
219
|
+
|
|
220
|
+
// ../astro-robots/src/index.ts
|
|
221
|
+
init_esm_shims();
|
|
222
|
+
var createIntegration11 = () => {
|
|
223
|
+
return {
|
|
224
|
+
name: "@wix/astro/robots",
|
|
225
|
+
hooks: {
|
|
226
|
+
"astro:config:setup"({ injectRoute }) {
|
|
227
|
+
injectRoute({
|
|
228
|
+
entrypoint: new URL(
|
|
229
|
+
"../dependencies/astro-robots/backend-runtime/robots.js",
|
|
230
|
+
import.meta.url
|
|
231
|
+
),
|
|
232
|
+
pattern: "/robots.txt",
|
|
233
|
+
prerender: false
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
var src_default4 = createIntegration11;
|
|
240
|
+
|
|
241
|
+
// ../astro-viewer-api/src/index.ts
|
|
242
|
+
init_esm_shims();
|
|
243
|
+
|
|
244
|
+
// ../astro-viewer-api/src/integration.ts
|
|
245
|
+
init_esm_shims();
|
|
246
|
+
var createIntegration12 = () => {
|
|
247
|
+
return {
|
|
248
|
+
name: "@wix/astro/viewer-api",
|
|
249
|
+
hooks: {
|
|
250
|
+
"astro:config:setup"({ injectRoute }) {
|
|
251
|
+
injectRoute({
|
|
252
|
+
entrypoint: new URL(
|
|
253
|
+
"../dependencies/astro-viewer-api/backend-runtime/api.js",
|
|
254
|
+
import.meta.url
|
|
255
|
+
),
|
|
256
|
+
pattern: "/_api/[...path]",
|
|
257
|
+
prerender: false
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
// src/index.ts
|
|
265
|
+
function isEnabled(value) {
|
|
266
|
+
if (typeof value === "boolean") {
|
|
267
|
+
return value;
|
|
268
|
+
}
|
|
269
|
+
return value?.enable ?? true;
|
|
270
|
+
}
|
|
271
|
+
var createIntegration13 = (config) => {
|
|
272
|
+
const enableAuthRoutes = isEnabled(config?.auth);
|
|
273
|
+
const enableHtmlEmbeds = isEnabled(config?.htmlEmbeds);
|
|
274
|
+
const enableRobots = isEnabled(config?.robots);
|
|
275
|
+
return {
|
|
276
|
+
name: "@wix/astro",
|
|
277
|
+
hooks: {
|
|
278
|
+
async "astro:config:setup"({ updateConfig }) {
|
|
279
|
+
updateConfig({
|
|
280
|
+
integrations: [
|
|
281
|
+
createIntegration3({
|
|
282
|
+
integrations: [
|
|
283
|
+
src_default({ enableAuthRoutes }),
|
|
284
|
+
createIntegration(),
|
|
285
|
+
createIntegration2(),
|
|
286
|
+
createIntegration7(),
|
|
287
|
+
createIntegration4(),
|
|
288
|
+
...enableHtmlEmbeds ? [src_default2()] : [],
|
|
289
|
+
src_default3(),
|
|
290
|
+
createIntegration5(),
|
|
291
|
+
createIntegration6(),
|
|
292
|
+
...enableRobots ? [src_default4()] : [],
|
|
293
|
+
createIntegration12()
|
|
294
|
+
]
|
|
295
|
+
})
|
|
296
|
+
]
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
var index_default = createIntegration13;
|
|
303
|
+
export {
|
|
304
|
+
index_default as default
|
|
305
|
+
};
|
|
306
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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-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 core from '@wix/astro-core';\nimport customElements from '@wix/astro-custom-elements-extensions';\nimport embeddedScripts from '@wix/astro-embedded-scripts-extensions';\nimport htmlEmbeds from '@wix/astro-html-embeds';\nimport paymentLinks from '@wix/astro-payment-links';\nimport robots from '@wix/astro-robots';\nimport siteComponents from '@wix/astro-site-components-extensions';\nimport sitePlugins from '@wix/astro-site-plugins-extensions';\nimport viewerApi from '@wix/astro-viewer-api';\n\ninterface WixAstroConfig {\n auth?: boolean | { enable?: boolean };\n htmlEmbeds?: boolean | { enable?: boolean };\n robots?: boolean | { enable?: boolean };\n}\n\nfunction isEnabled(value?: boolean | { enable?: boolean }): boolean {\n if (typeof value === 'boolean') {\n return value;\n }\n return value?.enable ?? true;\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\n return {\n name: '@wix/astro',\n hooks: {\n async 'astro:config:setup'({ updateConfig }) {\n updateConfig({\n integrations: [\n core({\n integrations: [\n auth({ enableAuthRoutes }),\n backend(),\n backoffice(),\n sitePlugins(),\n customElements(),\n ...(enableHtmlEmbeds ? [htmlEmbeds()] : []),\n paymentLinks(),\n embeddedScripts(),\n siteComponents(),\n ...(enableRobots ? [robots()] : []),\n viewerApi(),\n ],\n }),\n ],\n });\n },\n },\n };\n};\n\nexport default createIntegration;\n","import { fileURLToPath } from 'node:url';\nimport type { WixIntegration } from '@wix/astro-core';\nimport { normalizePath } from '@wix/fs-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}: {\n enableAuthRoutes: 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 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/fs-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 },\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","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":"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","names":["createIntegration","createIntegration","src_default","createIntegration","src_default","createIntegration","src_default","createIntegration","createIntegration","src_default"]}
|
package/package.json
CHANGED
|
@@ -1,36 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/astro",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@wix/
|
|
6
|
-
"@wix/
|
|
7
|
-
"@wix/
|
|
8
|
-
"@wix/
|
|
9
|
-
"@wix/
|
|
10
|
-
"@wix/
|
|
11
|
-
"@wix/
|
|
12
|
-
"@wix/
|
|
13
|
-
"@wix/
|
|
14
|
-
"@wix/astro-site-components-extensions": "^2.3.1",
|
|
15
|
-
"@wix/astro-site-plugins-extensions": "^2.3.1",
|
|
16
|
-
"@wix/astro-viewer-api": "^3.0.0"
|
|
5
|
+
"@wix/auth-management": "^1.0.71",
|
|
6
|
+
"@wix/dashboard": "^1.3.35",
|
|
7
|
+
"@wix/headless-node": "^1.11.0",
|
|
8
|
+
"@wix/headless-site": "^1.7.0",
|
|
9
|
+
"@wix/headless-site-assets": "^1.0.2",
|
|
10
|
+
"@wix/sdk": "^1.15.23",
|
|
11
|
+
"@wix/sdk-runtime": "^0.5.0",
|
|
12
|
+
"@wix/sdk-types": "^1.13.41",
|
|
13
|
+
"@wix/site": "^1.22.0"
|
|
17
14
|
},
|
|
18
15
|
"devDependencies": {
|
|
16
|
+
"@wix/astro-auth": "workspace:*",
|
|
17
|
+
"@wix/astro-backend-extensions": "workspace:*",
|
|
18
|
+
"@wix/astro-backoffice-extensions": "workspace:*",
|
|
19
|
+
"@wix/astro-core": "workspace:*",
|
|
20
|
+
"@wix/astro-custom-elements-extensions": "workspace:*",
|
|
21
|
+
"@wix/astro-embedded-scripts-extensions": "workspace:*",
|
|
22
|
+
"@wix/astro-html-embeds": "workspace:*",
|
|
23
|
+
"@wix/astro-payment-links": "workspace:*",
|
|
24
|
+
"@wix/astro-robots": "workspace:*",
|
|
25
|
+
"@wix/astro-site-components-extensions": "workspace:*",
|
|
26
|
+
"@wix/astro-site-plugins-extensions": "workspace:*",
|
|
27
|
+
"@wix/astro-viewer-api": "workspace:*",
|
|
19
28
|
"astro": "^5.10.1",
|
|
20
29
|
"is-ci": "^4.1.0",
|
|
21
30
|
"outdent": "^0.8.0",
|
|
22
31
|
"tsup": "^8.5.0"
|
|
23
32
|
},
|
|
24
33
|
"exports": {
|
|
25
|
-
".": "./build/index.js",
|
|
26
|
-
"./builders": "./build/builders.js",
|
|
34
|
+
".": "./build/integration/index.js",
|
|
35
|
+
"./builders": "./build/integration/builders.js",
|
|
27
36
|
"./package.json": "./package.json"
|
|
28
37
|
},
|
|
29
38
|
"files": [
|
|
30
39
|
"build"
|
|
31
40
|
],
|
|
32
41
|
"peerDependencies": {
|
|
33
|
-
"astro": "^5.0.0"
|
|
42
|
+
"astro": "^5.0.0",
|
|
43
|
+
"react": "^18.3.1"
|
|
34
44
|
},
|
|
35
45
|
"publishConfig": {
|
|
36
46
|
"registry": "https://registry.npmjs.org/",
|
package/build/builders.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/builders.ts"],"sourcesContent":["export {\n ecomAdditionalFees,\n ecomDiscountsTrigger,\n ecomGiftCardsProvider,\n ecomPaymentSettings,\n ecomShippingRates,\n ecomValidations,\n webhook,\n} from '@wix/astro-backend-extensions';\nexport {\n backofficeExtensionMenuPlugin,\n backofficeExtensionWidget,\n backofficeModal,\n backofficePage,\n} from '@wix/astro-backoffice-extensions';\nexport { app, genericExtension } from '@wix/astro-core';\nexport { customElement } from '@wix/astro-custom-elements-extensions';\nexport { embeddedScript } from '@wix/astro-embedded-scripts-extensions';\nexport { siteComponent } from '@wix/astro-site-components-extensions';\nexport { sitePlugin } from '@wix/astro-site-plugins-extensions';\n"],"mappings":";;;;AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,KAAK,wBAAwB;AACtC,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB;AAC/B,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;","names":[]}
|
package/build/index.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
-
const require = _createRequire(import.meta.url);
|
|
3
|
-
|
|
4
|
-
// src/index.ts
|
|
5
|
-
import auth from "@wix/astro-auth";
|
|
6
|
-
import backend from "@wix/astro-backend-extensions";
|
|
7
|
-
import backoffice from "@wix/astro-backoffice-extensions";
|
|
8
|
-
import core from "@wix/astro-core";
|
|
9
|
-
import customElements from "@wix/astro-custom-elements-extensions";
|
|
10
|
-
import embeddedScripts from "@wix/astro-embedded-scripts-extensions";
|
|
11
|
-
import htmlEmbeds from "@wix/astro-html-embeds";
|
|
12
|
-
import paymentLinks from "@wix/astro-payment-links";
|
|
13
|
-
import robots from "@wix/astro-robots";
|
|
14
|
-
import siteComponents from "@wix/astro-site-components-extensions";
|
|
15
|
-
import sitePlugins from "@wix/astro-site-plugins-extensions";
|
|
16
|
-
import viewerApi from "@wix/astro-viewer-api";
|
|
17
|
-
function isEnabled(value) {
|
|
18
|
-
if (typeof value === "boolean") {
|
|
19
|
-
return value;
|
|
20
|
-
}
|
|
21
|
-
return value?.enable ?? true;
|
|
22
|
-
}
|
|
23
|
-
var createIntegration = (config) => {
|
|
24
|
-
const enableAuthRoutes = isEnabled(config?.auth);
|
|
25
|
-
const enableHtmlEmbeds = isEnabled(config?.htmlEmbeds);
|
|
26
|
-
const enableRobots = isEnabled(config?.robots);
|
|
27
|
-
return {
|
|
28
|
-
name: "@wix/astro",
|
|
29
|
-
hooks: {
|
|
30
|
-
async "astro:config:setup"({ updateConfig }) {
|
|
31
|
-
updateConfig({
|
|
32
|
-
integrations: [
|
|
33
|
-
core({
|
|
34
|
-
integrations: [
|
|
35
|
-
auth({ enableAuthRoutes }),
|
|
36
|
-
backend(),
|
|
37
|
-
backoffice(),
|
|
38
|
-
sitePlugins(),
|
|
39
|
-
customElements(),
|
|
40
|
-
...enableHtmlEmbeds ? [htmlEmbeds()] : [],
|
|
41
|
-
paymentLinks(),
|
|
42
|
-
embeddedScripts(),
|
|
43
|
-
siteComponents(),
|
|
44
|
-
...enableRobots ? [robots()] : [],
|
|
45
|
-
viewerApi()
|
|
46
|
-
]
|
|
47
|
-
})
|
|
48
|
-
]
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
var index_default = createIntegration;
|
|
55
|
-
export {
|
|
56
|
-
index_default as default
|
|
57
|
-
};
|
|
58
|
-
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.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 core from '@wix/astro-core';\nimport customElements from '@wix/astro-custom-elements-extensions';\nimport embeddedScripts from '@wix/astro-embedded-scripts-extensions';\nimport htmlEmbeds from '@wix/astro-html-embeds';\nimport paymentLinks from '@wix/astro-payment-links';\nimport robots from '@wix/astro-robots';\nimport siteComponents from '@wix/astro-site-components-extensions';\nimport sitePlugins from '@wix/astro-site-plugins-extensions';\nimport viewerApi from '@wix/astro-viewer-api';\n\ninterface WixAstroConfig {\n auth?: boolean | { enable?: boolean };\n htmlEmbeds?: boolean | { enable?: boolean };\n robots?: boolean | { enable?: boolean };\n}\n\nfunction isEnabled(value?: boolean | { enable?: boolean }): boolean {\n if (typeof value === 'boolean') {\n return value;\n }\n return value?.enable ?? true;\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\n return {\n name: '@wix/astro',\n hooks: {\n async 'astro:config:setup'({ updateConfig }) {\n updateConfig({\n integrations: [\n core({\n integrations: [\n auth({ enableAuthRoutes }),\n backend(),\n backoffice(),\n sitePlugins(),\n customElements(),\n ...(enableHtmlEmbeds ? [htmlEmbeds()] : []),\n paymentLinks(),\n embeddedScripts(),\n siteComponents(),\n ...(enableRobots ? [robots()] : []),\n viewerApi(),\n ],\n }),\n ],\n });\n },\n },\n };\n};\n\nexport default createIntegration;\n"],"mappings":";;;;AACA,OAAO,UAAU;AACjB,OAAO,aAAa;AACpB,OAAO,gBAAgB;AACvB,OAAO,UAAU;AACjB,OAAO,oBAAoB;AAC3B,OAAO,qBAAqB;AAC5B,OAAO,gBAAgB;AACvB,OAAO,kBAAkB;AACzB,OAAO,YAAY;AACnB,OAAO,oBAAoB;AAC3B,OAAO,iBAAiB;AACxB,OAAO,eAAe;AAQtB,SAAS,UAAU,OAAiD;AAClE,MAAI,OAAO,UAAU,WAAW;AAC9B,WAAO;AAAA,EACT;AACA,SAAO,OAAO,UAAU;AAC1B;AAEA,IAAM,oBAAoB,CAAC,WAA8C;AACvE,QAAM,mBAAmB,UAAU,QAAQ,IAAI;AAC/C,QAAM,mBAAmB,UAAU,QAAQ,UAAU;AACrD,QAAM,eAAe,UAAU,QAAQ,MAAM;AAE7C,SAAO;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,MACL,MAAM,qBAAqB,EAAE,aAAa,GAAG;AAC3C,qBAAa;AAAA,UACX,cAAc;AAAA,YACZ,KAAK;AAAA,cACH,cAAc;AAAA,gBACZ,KAAK,EAAE,iBAAiB,CAAC;AAAA,gBACzB,QAAQ;AAAA,gBACR,WAAW;AAAA,gBACX,YAAY;AAAA,gBACZ,eAAe;AAAA,gBACf,GAAI,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC;AAAA,gBACzC,aAAa;AAAA,gBACb,gBAAgB;AAAA,gBAChB,eAAe;AAAA,gBACf,GAAI,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC;AAAA,gBACjC,UAAU;AAAA,cACZ;AAAA,YACF,CAAC;AAAA,UACH;AAAA,QACF,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACF;AAEA,IAAO,gBAAQ;","names":[]}
|
|
File without changes
|
|
File without changes
|