@wix/astro 2.27.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 -189
- 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-6UOFHB2M.js +0 -386
- package/build/integration/chunk-6UOFHB2M.js.map +0 -1
- package/build/integration/chunk-L6JEDTVM.js +0 -7458
- package/build/integration/chunk-L6JEDTVM.js.map +0 -1
- package/build/integration/chunk-MNQWQ2MC.js +0 -809
- package/build/integration/chunk-MNQWQ2MC.js.map +0 -1
- package/build/integration/chunk-XN6SBNMI.js +0 -23758
- package/build/integration/chunk-XN6SBNMI.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
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { i as BaseExtension } from "./index-D5k6Bmue.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../astro-context-providers-extensions/src/builders.d.ts
|
|
4
|
+
interface ContextProvider extends BaseExtension {
|
|
5
|
+
type: "ContextProvider";
|
|
6
|
+
options: Options$1;
|
|
7
|
+
}
|
|
8
|
+
interface Options$1 {
|
|
9
|
+
id: string;
|
|
10
|
+
type: string;
|
|
11
|
+
context?: Record<string, unknown>;
|
|
12
|
+
data?: Record<string, unknown>;
|
|
13
|
+
resources: {
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
client: {
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
url: string;
|
|
18
|
+
};
|
|
19
|
+
contextSpecifier: {
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
hook: string;
|
|
22
|
+
};
|
|
23
|
+
editor?: {
|
|
24
|
+
[key: string]: unknown;
|
|
25
|
+
url: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
declare function contextProvider(options: Options$1): ContextProvider;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region ../astro-function-libraries-extensions/src/builders.d.ts
|
|
32
|
+
interface FunctionLibrary extends BaseExtension {
|
|
33
|
+
type: "FunctionLibrary";
|
|
34
|
+
options: Options;
|
|
35
|
+
}
|
|
36
|
+
interface Options {
|
|
37
|
+
id: string;
|
|
38
|
+
type: string;
|
|
39
|
+
functions: Record<string, unknown>;
|
|
40
|
+
resources: {
|
|
41
|
+
[key: string]: unknown;
|
|
42
|
+
client: {
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
url: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
declare function functionLibrary(options: Options): FunctionLibrary;
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/builders-experimental.d.ts
|
|
51
|
+
declare const extensions: {
|
|
52
|
+
contextProvider: typeof contextProvider;
|
|
53
|
+
functionLibrary: typeof functionLibrary;
|
|
54
|
+
};
|
|
55
|
+
//#endregion
|
|
56
|
+
export { extensions };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region ../astro-context-providers-extensions/src/builders.ts
|
|
2
|
+
function contextProvider(options) {
|
|
3
|
+
return {
|
|
4
|
+
type: "ContextProvider",
|
|
5
|
+
options
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region ../astro-function-libraries-extensions/src/builders.ts
|
|
11
|
+
function functionLibrary(options) {
|
|
12
|
+
return {
|
|
13
|
+
type: "FunctionLibrary",
|
|
14
|
+
options
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/builders-experimental.ts
|
|
20
|
+
const extensions = {
|
|
21
|
+
contextProvider,
|
|
22
|
+
functionLibrary
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { extensions };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { n as genericExtension, r as app } from "./index-D5k6Bmue.mjs";
|
|
2
|
+
import { a as customElement, c as webhook, d as ecomPaymentSettings, f as ecomGiftCards, h as bookingsStaffSortingProvider, i as sitePlugin, l as ecomValidations, m as ecomAdditionalFees, n as siteComponentPanel, o as webhookBundler, p as ecomDiscountTriggers, r as embeddedScript, s as servicePluginBundler, t as siteComponent, u as ecomShippingRates } from "./index-B3B_5bgh.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../astro-trusted-backoffice-extensions/src/builders/trustedBackofficePage.d.ts
|
|
5
|
+
interface TrustedBackofficePage {
|
|
6
|
+
type: "TrustedBackofficePage";
|
|
7
|
+
options: Options$1;
|
|
8
|
+
}
|
|
9
|
+
interface MetaDataKeyword {
|
|
10
|
+
id: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}
|
|
13
|
+
interface Options$1 {
|
|
14
|
+
id: string;
|
|
15
|
+
activeSidebarPageId?: string;
|
|
16
|
+
additionalRoutes?: string[];
|
|
17
|
+
component: string;
|
|
18
|
+
fullPage?: boolean;
|
|
19
|
+
hideInSidebar?: boolean;
|
|
20
|
+
metaData?: {
|
|
21
|
+
description?: string;
|
|
22
|
+
keywords?: MetaDataKeyword[];
|
|
23
|
+
searchable?: boolean;
|
|
24
|
+
title?: string;
|
|
25
|
+
};
|
|
26
|
+
pageCategoryId?: string;
|
|
27
|
+
previousRoutePaths?: string[];
|
|
28
|
+
priority?: number;
|
|
29
|
+
requiredPermission?: string;
|
|
30
|
+
routePath: string;
|
|
31
|
+
title: string;
|
|
32
|
+
}
|
|
33
|
+
declare function trustedBackofficePage(options: Options$1): TrustedBackofficePage;
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region ../astro-trusted-backoffice-extensions/src/builders/trustedBackofficeWidget.d.ts
|
|
36
|
+
interface TrustedBackofficeWidget {
|
|
37
|
+
type: "TrustedBackofficeWidget";
|
|
38
|
+
options: Options;
|
|
39
|
+
}
|
|
40
|
+
interface Options {
|
|
41
|
+
id: string;
|
|
42
|
+
component: string;
|
|
43
|
+
height?: number;
|
|
44
|
+
requiredPermission?: string;
|
|
45
|
+
slotIds?: string[];
|
|
46
|
+
title: string;
|
|
47
|
+
width?: number;
|
|
48
|
+
}
|
|
49
|
+
declare function trustedBackofficeWidget(options: Options): TrustedBackofficeWidget;
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/builders-trusted.d.ts
|
|
52
|
+
declare const extensions: {
|
|
53
|
+
bookingsStaffSortingProvider: typeof bookingsStaffSortingProvider;
|
|
54
|
+
customElement: typeof customElement;
|
|
55
|
+
dashboardExportedComponent: typeof trustedBackofficeWidget;
|
|
56
|
+
dashboardPage: typeof trustedBackofficePage;
|
|
57
|
+
ecomAdditionalFees: typeof ecomAdditionalFees;
|
|
58
|
+
ecomDiscountTriggers: typeof ecomDiscountTriggers;
|
|
59
|
+
ecomGiftCards: typeof ecomGiftCards;
|
|
60
|
+
ecomPaymentSettings: typeof ecomPaymentSettings;
|
|
61
|
+
ecomShippingRates: typeof ecomShippingRates;
|
|
62
|
+
ecomValidations: typeof ecomValidations;
|
|
63
|
+
embeddedScript: typeof embeddedScript;
|
|
64
|
+
event: typeof webhook;
|
|
65
|
+
genericExtension: typeof genericExtension;
|
|
66
|
+
siteComponent: typeof siteComponent;
|
|
67
|
+
siteComponentPanel: typeof siteComponentPanel;
|
|
68
|
+
sitePlugin: typeof sitePlugin;
|
|
69
|
+
};
|
|
70
|
+
declare const bundlers: {
|
|
71
|
+
event: typeof webhookBundler;
|
|
72
|
+
servicePlugin: typeof servicePluginBundler;
|
|
73
|
+
};
|
|
74
|
+
//#endregion
|
|
75
|
+
export { app, bundlers, extensions };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { _ as webhookBundler, a as customElement, c as webhook, d as ecomPaymentSettings, f as ecomGiftCards, h as bookingsStaffSortingProvider, i as sitePlugin, l as ecomValidations, m as ecomAdditionalFees, n as siteComponentPanel, o as app, p as ecomDiscountTriggers, r as embeddedScript, s as genericExtension, t as siteComponent, u as ecomShippingRates, y as servicePluginBundler } from "./builders-DVfxT6EC.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../astro-trusted-backoffice-extensions/src/builders/trustedBackofficePage.ts
|
|
4
|
+
function trustedBackofficePage(options) {
|
|
5
|
+
return {
|
|
6
|
+
type: "TrustedBackofficePage",
|
|
7
|
+
options
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region ../astro-trusted-backoffice-extensions/src/builders/trustedBackofficeWidget.ts
|
|
13
|
+
function trustedBackofficeWidget(options) {
|
|
14
|
+
return {
|
|
15
|
+
type: "TrustedBackofficeWidget",
|
|
16
|
+
options
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/builders-trusted.ts
|
|
22
|
+
const extensions = {
|
|
23
|
+
bookingsStaffSortingProvider,
|
|
24
|
+
customElement,
|
|
25
|
+
dashboardExportedComponent: trustedBackofficeWidget,
|
|
26
|
+
dashboardPage: trustedBackofficePage,
|
|
27
|
+
ecomAdditionalFees,
|
|
28
|
+
ecomDiscountTriggers,
|
|
29
|
+
ecomGiftCards,
|
|
30
|
+
ecomPaymentSettings,
|
|
31
|
+
ecomShippingRates,
|
|
32
|
+
ecomValidations,
|
|
33
|
+
embeddedScript,
|
|
34
|
+
event: webhook,
|
|
35
|
+
genericExtension,
|
|
36
|
+
siteComponent,
|
|
37
|
+
siteComponentPanel,
|
|
38
|
+
sitePlugin
|
|
39
|
+
};
|
|
40
|
+
const bundlers = {
|
|
41
|
+
event: webhookBundler,
|
|
42
|
+
servicePlugin: servicePluginBundler
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
export { app, bundlers, extensions };
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { i as BaseExtension, t as GenericExtension } from "./index-D5k6Bmue.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../dev-center-schemas/src/components/custom-element.d.ts
|
|
4
|
+
interface DevCenterCustomElementBehaviors {
|
|
5
|
+
dashboard?: {
|
|
6
|
+
dashboardPageComponentId: string;
|
|
7
|
+
};
|
|
8
|
+
settings?: {
|
|
9
|
+
settingsUrl: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
type DevCenterCustomElementPresets = Array<{
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
thumbnailUrl: string;
|
|
16
|
+
}>;
|
|
17
|
+
interface DevCenterCustomElementSize {
|
|
18
|
+
height: {
|
|
19
|
+
defaultHeight: number;
|
|
20
|
+
heightMode?: "AUTO" | "FIXED" | "UNKNOWN";
|
|
21
|
+
};
|
|
22
|
+
width: {
|
|
23
|
+
allowStretch?: boolean;
|
|
24
|
+
defaultWidth: number;
|
|
25
|
+
stretchByDefault?: boolean;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region ../dev-center-schemas/src/components/site-plugin.d.ts
|
|
30
|
+
interface DevCenterSitePluginMarketData {
|
|
31
|
+
name?: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
logoUrl?: string;
|
|
34
|
+
}
|
|
35
|
+
interface DevCenterSitePluginPlacements {
|
|
36
|
+
appDefinitionId: string;
|
|
37
|
+
slotId: string;
|
|
38
|
+
widgetId: string;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region ../dev-center-schemas/src/components/webhook.d.ts
|
|
42
|
+
interface DevCenterWebhookCompData {
|
|
43
|
+
callbackUrl?: string;
|
|
44
|
+
webhookSlug?: unknown;
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region ../astro-backend-extensions/src/builders/bookingsStaffSorting.d.ts
|
|
48
|
+
interface Options$13 {
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
dashboardPluginId?: string;
|
|
52
|
+
methodDescription: string;
|
|
53
|
+
methodName: string;
|
|
54
|
+
source: string;
|
|
55
|
+
}
|
|
56
|
+
declare function bookingsStaffSortingProvider(options: Options$13): GenericExtension;
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region ../astro-backend-extensions/src/builders/ecomAdditionalFees.d.ts
|
|
59
|
+
interface Options$12 {
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
source: string;
|
|
63
|
+
}
|
|
64
|
+
declare function ecomAdditionalFees(options: Options$12): GenericExtension;
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region ../astro-backend-extensions/src/builders/ecomDiscountTriggers.d.ts
|
|
67
|
+
interface Options$11 {
|
|
68
|
+
id: string;
|
|
69
|
+
name: string;
|
|
70
|
+
source: string;
|
|
71
|
+
}
|
|
72
|
+
declare function ecomDiscountTriggers(options: Options$11): GenericExtension;
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region ../astro-backend-extensions/src/builders/ecomGiftCards.d.ts
|
|
75
|
+
interface Options$10 {
|
|
76
|
+
id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
source: string;
|
|
79
|
+
}
|
|
80
|
+
declare function ecomGiftCards(options: Options$10): GenericExtension;
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region ../astro-backend-extensions/src/builders/ecomPaymentSettings.d.ts
|
|
83
|
+
interface Options$9 {
|
|
84
|
+
id: string;
|
|
85
|
+
name: string;
|
|
86
|
+
fallbackValueForRequires3dSecure?: boolean;
|
|
87
|
+
source: string;
|
|
88
|
+
}
|
|
89
|
+
declare function ecomPaymentSettings(options: Options$9): GenericExtension;
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region ../astro-backend-extensions/src/builders/ecomShippingRates.d.ts
|
|
92
|
+
interface Options$8 {
|
|
93
|
+
id: string;
|
|
94
|
+
name: string;
|
|
95
|
+
dashboardUrl?: string;
|
|
96
|
+
description?: string;
|
|
97
|
+
fallbackDefinitionMandatory?: boolean;
|
|
98
|
+
learnMoreUrl?: string;
|
|
99
|
+
source: string;
|
|
100
|
+
thumbnailUrl?: string;
|
|
101
|
+
}
|
|
102
|
+
declare function ecomShippingRates(options: Options$8): GenericExtension;
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region ../astro-backend-extensions/src/builders/ecomValidations.d.ts
|
|
105
|
+
interface Options$7 {
|
|
106
|
+
id: string;
|
|
107
|
+
name: string;
|
|
108
|
+
source: string;
|
|
109
|
+
validateInCart?: boolean;
|
|
110
|
+
}
|
|
111
|
+
declare function ecomValidations(options: Options$7): GenericExtension;
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region ../astro-backend-extensions/src/builders/webhook.d.ts
|
|
114
|
+
interface Options$6 {
|
|
115
|
+
id: string;
|
|
116
|
+
source: string;
|
|
117
|
+
}
|
|
118
|
+
declare function webhook(options: Options$6): GenericExtension;
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region ../astro-backend-extensions/src/bundlers/service-plugin.d.ts
|
|
121
|
+
interface Options$5 {
|
|
122
|
+
source: string;
|
|
123
|
+
}
|
|
124
|
+
declare function servicePluginBundler(options: Options$5): string;
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region ../astro-backend-extensions/src/bundlers/webhook.d.ts
|
|
127
|
+
interface Options$4 {
|
|
128
|
+
source: string;
|
|
129
|
+
}
|
|
130
|
+
declare function webhookBundler(options: Options$4): DevCenterWebhookCompData;
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region ../astro-custom-elements-extensions/src/builders/customElement.d.ts
|
|
133
|
+
interface CustomElement {
|
|
134
|
+
type: "CustomElement";
|
|
135
|
+
options: Options$3;
|
|
136
|
+
}
|
|
137
|
+
interface Options$3 {
|
|
138
|
+
id: string;
|
|
139
|
+
name: string;
|
|
140
|
+
behaviors?: DevCenterCustomElementBehaviors;
|
|
141
|
+
element: string;
|
|
142
|
+
height: DevCenterCustomElementSize["height"];
|
|
143
|
+
installation: {
|
|
144
|
+
autoAdd: boolean;
|
|
145
|
+
essential?: boolean;
|
|
146
|
+
};
|
|
147
|
+
presets?: DevCenterCustomElementPresets;
|
|
148
|
+
settings?: string;
|
|
149
|
+
tagName: string;
|
|
150
|
+
width: DevCenterCustomElementSize["width"];
|
|
151
|
+
}
|
|
152
|
+
declare function customElement(options: Options$3): CustomElement;
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region ../astro-custom-elements-extensions/src/builders/sitePlugin.d.ts
|
|
155
|
+
interface SitePlugin extends BaseExtension {
|
|
156
|
+
type: "SitePlugin";
|
|
157
|
+
options: Options$2;
|
|
158
|
+
}
|
|
159
|
+
interface Options$2 {
|
|
160
|
+
id: string;
|
|
161
|
+
name: string;
|
|
162
|
+
element: string;
|
|
163
|
+
installation: {
|
|
164
|
+
autoAdd: boolean;
|
|
165
|
+
};
|
|
166
|
+
marketData?: DevCenterSitePluginMarketData;
|
|
167
|
+
placements: DevCenterSitePluginPlacements[];
|
|
168
|
+
settings: string;
|
|
169
|
+
tagName: string;
|
|
170
|
+
}
|
|
171
|
+
declare function sitePlugin(options: Options$2): SitePlugin;
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region ../astro-embedded-scripts-extensions/src/builders.d.ts
|
|
174
|
+
interface EmbeddedScript extends BaseExtension {
|
|
175
|
+
type: "EmbeddedScript";
|
|
176
|
+
options: Options$1;
|
|
177
|
+
}
|
|
178
|
+
interface Options$1 {
|
|
179
|
+
id: string;
|
|
180
|
+
name: string;
|
|
181
|
+
placement: "BODY_END" | "BODY_START" | "HEAD";
|
|
182
|
+
scriptType: "ADVERTISING" | "ANALYTICS" | "ESSENTIAL" | "FUNCTIONAL";
|
|
183
|
+
source: string;
|
|
184
|
+
}
|
|
185
|
+
declare function embeddedScript(options: Options$1): EmbeddedScript;
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region ../astro-site-component-panels-extensions/src/builders.d.ts
|
|
188
|
+
interface SiteComponentPanel extends BaseExtension {
|
|
189
|
+
type: "SiteComponentPanel";
|
|
190
|
+
options: PanelOptions;
|
|
191
|
+
}
|
|
192
|
+
interface PanelOptions {
|
|
193
|
+
id: string;
|
|
194
|
+
component: string;
|
|
195
|
+
displayName: string;
|
|
196
|
+
referenceId?: string;
|
|
197
|
+
size: {
|
|
198
|
+
height: number;
|
|
199
|
+
width: string;
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
declare function siteComponentPanel(options: PanelOptions): SiteComponentPanel;
|
|
203
|
+
//#endregion
|
|
204
|
+
//#region ../astro-site-components-extensions/src/builders.d.ts
|
|
205
|
+
interface PresetOptions {
|
|
206
|
+
[key: string]: unknown;
|
|
207
|
+
displayName: string;
|
|
208
|
+
presetCssUrl: string;
|
|
209
|
+
thumbnailUrl?: string;
|
|
210
|
+
}
|
|
211
|
+
interface SiteComponent extends BaseExtension {
|
|
212
|
+
type: "SiteComponent";
|
|
213
|
+
options: Options;
|
|
214
|
+
}
|
|
215
|
+
interface Options {
|
|
216
|
+
id: string;
|
|
217
|
+
type: string;
|
|
218
|
+
description: string;
|
|
219
|
+
editorElement: {
|
|
220
|
+
[key: string]: unknown;
|
|
221
|
+
displayName: string;
|
|
222
|
+
presets?: Record<string, PresetOptions>;
|
|
223
|
+
selector: string;
|
|
224
|
+
};
|
|
225
|
+
resources: {
|
|
226
|
+
[key: string]: unknown;
|
|
227
|
+
client: {
|
|
228
|
+
[key: string]: unknown;
|
|
229
|
+
componentUrl: string;
|
|
230
|
+
};
|
|
231
|
+
dependencies?: {
|
|
232
|
+
[key: string]: unknown;
|
|
233
|
+
componentDependencies?: string[];
|
|
234
|
+
contextDependencies?: string[];
|
|
235
|
+
};
|
|
236
|
+
editor?: {
|
|
237
|
+
[key: string]: unknown;
|
|
238
|
+
componentUrl: string;
|
|
239
|
+
};
|
|
240
|
+
sdk?: {
|
|
241
|
+
[key: string]: unknown;
|
|
242
|
+
url: string;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
declare function siteComponent(options: Options): SiteComponent;
|
|
247
|
+
//#endregion
|
|
248
|
+
export { customElement as a, webhook as c, ecomPaymentSettings as d, ecomGiftCards as f, bookingsStaffSortingProvider as h, sitePlugin as i, ecomValidations as l, ecomAdditionalFees as m, siteComponentPanel as n, webhookBundler as o, ecomDiscountTriggers as p, embeddedScript as r, servicePluginBundler as s, siteComponent as t, ecomShippingRates as u };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import "vite";
|
|
2
|
+
import EventEmitter from "node:events";
|
|
3
|
+
import { AstroIntegration } from "astro";
|
|
4
|
+
|
|
5
|
+
//#region ../dev-center-schemas/src/components/base.d.ts
|
|
6
|
+
interface BaseDevCenterComponent {
|
|
7
|
+
compId: string;
|
|
8
|
+
compName?: string;
|
|
9
|
+
compType: string;
|
|
10
|
+
compData: unknown;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region ../astro-core/src/types.d.ts
|
|
14
|
+
interface BaseExtension {
|
|
15
|
+
type: string;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region ../astro-core/src/builders/app.d.ts
|
|
19
|
+
declare class App {
|
|
20
|
+
private extensions;
|
|
21
|
+
use(extension: BaseDevCenterComponent | BaseExtension): this;
|
|
22
|
+
}
|
|
23
|
+
declare function app(): App;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region ../astro-core/src/builders/generic-extension.d.ts
|
|
26
|
+
interface GenericExtension {
|
|
27
|
+
type: "GenericExtension";
|
|
28
|
+
options: BaseDevCenterComponent;
|
|
29
|
+
}
|
|
30
|
+
declare function genericExtension(options: BaseDevCenterComponent): GenericExtension;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { BaseExtension as i, genericExtension as n, app as r, GenericExtension as t };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import "./index-D5k6Bmue.mjs";
|
|
2
|
+
import "./index-B3B_5bgh.mjs";
|
|
3
|
+
import { n as extensions } from "./builders-DP0350YQ.mjs";
|
|
4
|
+
import { AstroIntegration } from "astro";
|
|
5
|
+
|
|
6
|
+
//#region src/index.d.ts
|
|
7
|
+
interface WixAstroConfig {
|
|
8
|
+
auth?: boolean | {
|
|
9
|
+
enable?: boolean;
|
|
10
|
+
};
|
|
11
|
+
backendExtensions?: boolean | {
|
|
12
|
+
enable?: boolean;
|
|
13
|
+
};
|
|
14
|
+
backofficeExtensions?: boolean | {
|
|
15
|
+
enable?: boolean;
|
|
16
|
+
};
|
|
17
|
+
essentials?: boolean | {
|
|
18
|
+
enable?: boolean;
|
|
19
|
+
};
|
|
20
|
+
htmlEmbeds?: boolean | {
|
|
21
|
+
enable?: boolean;
|
|
22
|
+
};
|
|
23
|
+
robots?: boolean | {
|
|
24
|
+
enable?: boolean;
|
|
25
|
+
};
|
|
26
|
+
translations?: boolean | {
|
|
27
|
+
enable?: boolean;
|
|
28
|
+
};
|
|
29
|
+
wixSitePages?: boolean | {
|
|
30
|
+
enable?: boolean;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
declare const createIntegration: (config?: WixAstroConfig) => AstroIntegration[];
|
|
34
|
+
//#endregion
|
|
35
|
+
export { createIntegration as default, extensions };
|