@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,296 +0,0 @@
|
|
|
1
|
-
// src/index.ts
|
|
2
|
-
import { readFileSync } from "fs";
|
|
3
|
-
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
4
|
-
|
|
5
|
-
// src/utils/loadTranslations.ts
|
|
6
|
-
import { readdir } from "fs/promises";
|
|
7
|
-
import { join as join2 } from "path";
|
|
8
|
-
import { fileURLToPath } from "url";
|
|
9
|
-
import { readJson } from "@wix/fs-utils";
|
|
10
|
-
import { toNamespaceDictionary } from "@wix/headless-localization-utils";
|
|
11
|
-
|
|
12
|
-
// src/constants.ts
|
|
13
|
-
var TRANSLATIONS_METADATA_FILENAME = "metadata.json";
|
|
14
|
-
var TRANSLATIONS_FILENAME = "translations.json";
|
|
15
|
-
|
|
16
|
-
// src/utils/errorMessages.ts
|
|
17
|
-
import { join } from "path";
|
|
18
|
-
|
|
19
|
-
// ../../node_modules/outdent/lib-module/index.js
|
|
20
|
-
function noop() {
|
|
21
|
-
var args = [];
|
|
22
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
23
|
-
args[_i] = arguments[_i];
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function createWeakMap() {
|
|
27
|
-
if (typeof WeakMap !== "undefined") {
|
|
28
|
-
return /* @__PURE__ */ new WeakMap();
|
|
29
|
-
} else {
|
|
30
|
-
return fakeSetOrMap();
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function fakeSetOrMap() {
|
|
34
|
-
return {
|
|
35
|
-
add: noop,
|
|
36
|
-
delete: noop,
|
|
37
|
-
get: noop,
|
|
38
|
-
set: noop,
|
|
39
|
-
has: function(k) {
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
var hop = Object.prototype.hasOwnProperty;
|
|
45
|
-
var has = function(obj, prop) {
|
|
46
|
-
return hop.call(obj, prop);
|
|
47
|
-
};
|
|
48
|
-
function extend(target, source) {
|
|
49
|
-
for (var prop in source) {
|
|
50
|
-
if (has(source, prop)) {
|
|
51
|
-
target[prop] = source[prop];
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return target;
|
|
55
|
-
}
|
|
56
|
-
var reLeadingNewline = /^[ \t]*(?:\r\n|\r|\n)/;
|
|
57
|
-
var reTrailingNewline = /(?:\r\n|\r|\n)[ \t]*$/;
|
|
58
|
-
var reStartsWithNewlineOrIsEmpty = /^(?:[\r\n]|$)/;
|
|
59
|
-
var reDetectIndentation = /(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/;
|
|
60
|
-
var reOnlyWhitespaceWithAtLeastOneNewline = /^[ \t]*[\r\n][ \t\r\n]*$/;
|
|
61
|
-
function _outdentArray(strings, firstInterpolatedValueSetsIndentationLevel, options) {
|
|
62
|
-
var indentationLevel = 0;
|
|
63
|
-
var match = strings[0].match(reDetectIndentation);
|
|
64
|
-
if (match) {
|
|
65
|
-
indentationLevel = match[1].length;
|
|
66
|
-
}
|
|
67
|
-
var reSource = "(\\r\\n|\\r|\\n).{0," + indentationLevel + "}";
|
|
68
|
-
var reMatchIndent = new RegExp(reSource, "g");
|
|
69
|
-
if (firstInterpolatedValueSetsIndentationLevel) {
|
|
70
|
-
strings = strings.slice(1);
|
|
71
|
-
}
|
|
72
|
-
var newline = options.newline, trimLeadingNewline = options.trimLeadingNewline, trimTrailingNewline = options.trimTrailingNewline;
|
|
73
|
-
var normalizeNewlines = typeof newline === "string";
|
|
74
|
-
var l = strings.length;
|
|
75
|
-
var outdentedStrings = strings.map(function(v, i) {
|
|
76
|
-
v = v.replace(reMatchIndent, "$1");
|
|
77
|
-
if (i === 0 && trimLeadingNewline) {
|
|
78
|
-
v = v.replace(reLeadingNewline, "");
|
|
79
|
-
}
|
|
80
|
-
if (i === l - 1 && trimTrailingNewline) {
|
|
81
|
-
v = v.replace(reTrailingNewline, "");
|
|
82
|
-
}
|
|
83
|
-
if (normalizeNewlines) {
|
|
84
|
-
v = v.replace(/\r\n|\n|\r/g, function(_) {
|
|
85
|
-
return newline;
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
return v;
|
|
89
|
-
});
|
|
90
|
-
return outdentedStrings;
|
|
91
|
-
}
|
|
92
|
-
function concatStringsAndValues(strings, values) {
|
|
93
|
-
var ret = "";
|
|
94
|
-
for (var i = 0, l = strings.length; i < l; i++) {
|
|
95
|
-
ret += strings[i];
|
|
96
|
-
if (i < l - 1) {
|
|
97
|
-
ret += values[i];
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
return ret;
|
|
101
|
-
}
|
|
102
|
-
function isTemplateStringsArray(v) {
|
|
103
|
-
return has(v, "raw") && has(v, "length");
|
|
104
|
-
}
|
|
105
|
-
function createInstance(options) {
|
|
106
|
-
var arrayAutoIndentCache = createWeakMap();
|
|
107
|
-
var arrayFirstInterpSetsIndentCache = createWeakMap();
|
|
108
|
-
function outdent(stringsOrOptions) {
|
|
109
|
-
var values = [];
|
|
110
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
111
|
-
values[_i - 1] = arguments[_i];
|
|
112
|
-
}
|
|
113
|
-
if (isTemplateStringsArray(stringsOrOptions)) {
|
|
114
|
-
var strings = stringsOrOptions;
|
|
115
|
-
var firstInterpolatedValueSetsIndentationLevel = (values[0] === outdent || values[0] === defaultOutdent) && reOnlyWhitespaceWithAtLeastOneNewline.test(strings[0]) && reStartsWithNewlineOrIsEmpty.test(strings[1]);
|
|
116
|
-
var cache = firstInterpolatedValueSetsIndentationLevel ? arrayFirstInterpSetsIndentCache : arrayAutoIndentCache;
|
|
117
|
-
var renderedArray = cache.get(strings);
|
|
118
|
-
if (!renderedArray) {
|
|
119
|
-
renderedArray = _outdentArray(strings, firstInterpolatedValueSetsIndentationLevel, options);
|
|
120
|
-
cache.set(strings, renderedArray);
|
|
121
|
-
}
|
|
122
|
-
if (values.length === 0) {
|
|
123
|
-
return renderedArray[0];
|
|
124
|
-
}
|
|
125
|
-
var rendered = concatStringsAndValues(renderedArray, firstInterpolatedValueSetsIndentationLevel ? values.slice(1) : values);
|
|
126
|
-
return rendered;
|
|
127
|
-
} else {
|
|
128
|
-
return createInstance(extend(extend({}, options), stringsOrOptions || {}));
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
var fullOutdent = extend(outdent, {
|
|
132
|
-
string: function(str) {
|
|
133
|
-
return _outdentArray([str], false, options)[0];
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
return fullOutdent;
|
|
137
|
-
}
|
|
138
|
-
var defaultOutdent = createInstance({
|
|
139
|
-
trimLeadingNewline: true,
|
|
140
|
-
trimTrailingNewline: true
|
|
141
|
-
});
|
|
142
|
-
if (typeof module !== "undefined") {
|
|
143
|
-
try {
|
|
144
|
-
module.exports = defaultOutdent;
|
|
145
|
-
Object.defineProperty(defaultOutdent, "__esModule", { value: true });
|
|
146
|
-
defaultOutdent.default = defaultOutdent;
|
|
147
|
-
defaultOutdent.outdent = defaultOutdent;
|
|
148
|
-
} catch (e) {
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// src/utils/errorMessages.ts
|
|
153
|
-
function createTranslationFilesError(translationsDir) {
|
|
154
|
-
return new Error(defaultOutdent`
|
|
155
|
-
Failed to load translation file(s).
|
|
156
|
-
💡 Tip: create a file '${join(translationsDir, "translations.json")}' in your project, then use the Wix CLI to push these keys.
|
|
157
|
-
|
|
158
|
-
Example translation file structure:
|
|
159
|
-
{
|
|
160
|
-
"hello": "Hello",
|
|
161
|
-
"goodbye": "Goodbye"
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
🔍 Need Help?
|
|
165
|
-
- Visit our docs: https://dev.wix.com/docs/go-headless
|
|
166
|
-
`);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// src/utils/loadTranslations.ts
|
|
170
|
-
async function loadTranslationFile(filePath) {
|
|
171
|
-
return readJson(filePath).then(
|
|
172
|
-
(data) => toNamespaceDictionary(data)
|
|
173
|
-
);
|
|
174
|
-
}
|
|
175
|
-
async function loadAllTranslations(astroConfig) {
|
|
176
|
-
const srcDir = fileURLToPath(astroConfig.srcDir);
|
|
177
|
-
const rootDir = fileURLToPath(astroConfig.root);
|
|
178
|
-
const tempDir = join2(rootDir, ".wix");
|
|
179
|
-
const multilingualDir = join2(tempDir, "multilingual");
|
|
180
|
-
const primaryTranslationPath = join2(srcDir, TRANSLATIONS_FILENAME);
|
|
181
|
-
const pulledTranslationsDir = join2(multilingualDir, "translations");
|
|
182
|
-
let metadata;
|
|
183
|
-
let primaryTranslation;
|
|
184
|
-
try {
|
|
185
|
-
metadata = await loadMetadata(multilingualDir);
|
|
186
|
-
primaryTranslation = await loadPrimaryTranslation(
|
|
187
|
-
primaryTranslationPath,
|
|
188
|
-
metadata
|
|
189
|
-
);
|
|
190
|
-
} catch {
|
|
191
|
-
throw createTranslationFilesError(srcDir);
|
|
192
|
-
}
|
|
193
|
-
const wixTranslations = await loadTranslations(pulledTranslationsDir);
|
|
194
|
-
return { ...wixTranslations, ...primaryTranslation };
|
|
195
|
-
}
|
|
196
|
-
async function loadMetadata(translationsMetadataDir) {
|
|
197
|
-
const metadataPath = join2(
|
|
198
|
-
translationsMetadataDir,
|
|
199
|
-
TRANSLATIONS_METADATA_FILENAME
|
|
200
|
-
);
|
|
201
|
-
return await readJson(metadataPath);
|
|
202
|
-
}
|
|
203
|
-
async function loadPrimaryTranslation(primaryTranslationPath, metadata) {
|
|
204
|
-
const translationContent = await loadTranslationFile(primaryTranslationPath);
|
|
205
|
-
return {
|
|
206
|
-
[metadata.primaryLanguageCode]: translationContent
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
async function loadTranslations(translationsDir) {
|
|
210
|
-
const files = await readdir(translationsDir);
|
|
211
|
-
const jsonFiles = files.filter((file) => file.endsWith(".json"));
|
|
212
|
-
const translations = {};
|
|
213
|
-
for (const file of jsonFiles) {
|
|
214
|
-
const languageCode = file.replace(".json", "");
|
|
215
|
-
const filePath = join2(translationsDir, file);
|
|
216
|
-
translations[languageCode] = await loadTranslationFile(filePath);
|
|
217
|
-
}
|
|
218
|
-
return translations;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
// src/vite/wix-astro-i18n-plugin.ts
|
|
222
|
-
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
223
|
-
var VIRTUAL_MODULE_ID = "wix:astro:i18n";
|
|
224
|
-
var RESOLVED_VIRTUAL_MODULE_ID = `\0${VIRTUAL_MODULE_ID}`;
|
|
225
|
-
var i18nRuntimePath = fileURLToPath2(
|
|
226
|
-
new URL(
|
|
227
|
-
"../dependencies/astro-translations/backend-runtime/runtime/i18n.js",
|
|
228
|
-
import.meta.url
|
|
229
|
-
)
|
|
230
|
-
);
|
|
231
|
-
var wixAstroI18nPlugin = () => {
|
|
232
|
-
return {
|
|
233
|
-
name: "vite-plugin-wix-astro-i18n",
|
|
234
|
-
enforce: "pre",
|
|
235
|
-
load(id) {
|
|
236
|
-
if (id !== RESOLVED_VIRTUAL_MODULE_ID) {
|
|
237
|
-
return;
|
|
238
|
-
}
|
|
239
|
-
return `export * from '${i18nRuntimePath}';`;
|
|
240
|
-
},
|
|
241
|
-
resolveId(id) {
|
|
242
|
-
return id === VIRTUAL_MODULE_ID ? RESOLVED_VIRTUAL_MODULE_ID : void 0;
|
|
243
|
-
}
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
// src/index.ts
|
|
248
|
-
var i18nTypesPath = fileURLToPath3(
|
|
249
|
-
new URL(
|
|
250
|
-
"../dependencies/astro-translations/types/wix-astro-i18n.d.ts",
|
|
251
|
-
import.meta.url
|
|
252
|
-
)
|
|
253
|
-
);
|
|
254
|
-
var createIntegration = () => {
|
|
255
|
-
return {
|
|
256
|
-
name: "@wix/astro/static-translations",
|
|
257
|
-
hooks: {
|
|
258
|
-
"astro:config:setup": async ({
|
|
259
|
-
addMiddleware,
|
|
260
|
-
config: astroConfig,
|
|
261
|
-
updateConfig
|
|
262
|
-
}) => {
|
|
263
|
-
const translations = await loadAllTranslations(astroConfig);
|
|
264
|
-
updateConfig({
|
|
265
|
-
vite: {
|
|
266
|
-
define: {
|
|
267
|
-
__WIX_ASTRO_I18N__: JSON.stringify({
|
|
268
|
-
base: astroConfig.base,
|
|
269
|
-
siteUrl: astroConfig.site ?? null,
|
|
270
|
-
translations
|
|
271
|
-
})
|
|
272
|
-
},
|
|
273
|
-
plugins: [wixAstroI18nPlugin()]
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
addMiddleware({
|
|
277
|
-
entrypoint: new URL(
|
|
278
|
-
"../dependencies/astro-translations/backend-runtime/middleware/static-translations.js",
|
|
279
|
-
import.meta.url
|
|
280
|
-
),
|
|
281
|
-
order: "pre"
|
|
282
|
-
});
|
|
283
|
-
},
|
|
284
|
-
"astro:config:done": async ({ injectTypes }) => {
|
|
285
|
-
injectTypes({
|
|
286
|
-
content: readFileSync(i18nTypesPath, "utf-8"),
|
|
287
|
-
filename: "wix-astro-i18n.d.ts"
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
};
|
|
292
|
-
};
|
|
293
|
-
var index_default = createIntegration;
|
|
294
|
-
export {
|
|
295
|
-
index_default as default
|
|
296
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { WixIntegration } from '@wix/astro-core';
|
|
2
|
-
|
|
3
|
-
declare const createIntegration: () => WixIntegration;
|
|
4
|
-
|
|
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
|
-
|
|
35
|
-
interface TrustedBackofficeWidget {
|
|
36
|
-
type: 'TrustedBackofficeWidget';
|
|
37
|
-
options: Options;
|
|
38
|
-
}
|
|
39
|
-
interface Options {
|
|
40
|
-
id: string;
|
|
41
|
-
component: string;
|
|
42
|
-
height?: number;
|
|
43
|
-
requiredPermission?: string;
|
|
44
|
-
slotIds?: string[];
|
|
45
|
-
title: string;
|
|
46
|
-
width?: number;
|
|
47
|
-
}
|
|
48
|
-
declare function trustedBackofficeWidget(options: Options): TrustedBackofficeWidget;
|
|
49
|
-
|
|
50
|
-
export { createIntegration as default, trustedBackofficePage, trustedBackofficeWidget };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// src/routes/api.ts
|
|
2
|
-
import { ok } from "assert";
|
|
3
|
-
import { oAuthApps } from "@wix/auth-management";
|
|
4
|
-
import { WIX_CLIENT_ID } from "astro:env/client";
|
|
5
|
-
|
|
6
|
-
// src/elevate.ts
|
|
7
|
-
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
8
|
-
function elevate(restModule) {
|
|
9
|
-
return createRESTModule(restModule, true);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// src/routes/api.ts
|
|
13
|
-
var GET = async ({ url }) => {
|
|
14
|
-
const { redirectUrlWixPages } = await elevate(oAuthApps.getOAuthApp)(
|
|
15
|
-
WIX_CLIENT_ID
|
|
16
|
-
);
|
|
17
|
-
ok(redirectUrlWixPages != null);
|
|
18
|
-
const baseWixUrl = new URL(redirectUrlWixPages);
|
|
19
|
-
const mergedPath = baseWixUrl.pathname.replace(/\/$/, "") + url.pathname.replace(/\/$/, "");
|
|
20
|
-
const redirectUrl = new URL(mergedPath, baseWixUrl.origin);
|
|
21
|
-
for (const [key, value] of [
|
|
22
|
-
...baseWixUrl.searchParams.entries(),
|
|
23
|
-
...url.searchParams.entries()
|
|
24
|
-
]) {
|
|
25
|
-
redirectUrl.searchParams.append(key, value);
|
|
26
|
-
}
|
|
27
|
-
return new Response(null, {
|
|
28
|
-
headers: { Location: redirectUrl.toString() },
|
|
29
|
-
status: 302
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
export {
|
|
33
|
-
GET
|
|
34
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { WixIntegration, BaseExtension } from '@wix/astro-core';
|
|
2
|
-
|
|
3
|
-
declare const createIntegration: () => WixIntegration;
|
|
4
|
-
|
|
5
|
-
interface ViewerService extends BaseExtension {
|
|
6
|
-
type: 'ViewerService';
|
|
7
|
-
options: Options;
|
|
8
|
-
}
|
|
9
|
-
interface Options {
|
|
10
|
-
id: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
docLink?: string;
|
|
13
|
-
editor?: {
|
|
14
|
-
[key: string]: unknown;
|
|
15
|
-
bundle: string;
|
|
16
|
-
dependencies?: string[];
|
|
17
|
-
};
|
|
18
|
-
packageName: string;
|
|
19
|
-
viewer: {
|
|
20
|
-
[key: string]: unknown;
|
|
21
|
-
bundle: string;
|
|
22
|
-
dependencies?: string[];
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
declare function viewerService(options: Options): ViewerService;
|
|
26
|
-
|
|
27
|
-
export { createIntegration as default, viewerService };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { B as BaseExtension } from './index.d-D4c48TR0.js';
|
|
2
|
-
|
|
3
|
-
interface ContextProvider extends BaseExtension {
|
|
4
|
-
type: 'ContextProvider';
|
|
5
|
-
options: Options$1;
|
|
6
|
-
}
|
|
7
|
-
interface Options$1 {
|
|
8
|
-
id: string;
|
|
9
|
-
type: string;
|
|
10
|
-
context?: Record<string, unknown>;
|
|
11
|
-
data?: Record<string, unknown>;
|
|
12
|
-
resources: {
|
|
13
|
-
[key: string]: unknown;
|
|
14
|
-
client: {
|
|
15
|
-
[key: string]: unknown;
|
|
16
|
-
url: string;
|
|
17
|
-
};
|
|
18
|
-
contextSpecifier: {
|
|
19
|
-
[key: string]: unknown;
|
|
20
|
-
hook: string;
|
|
21
|
-
};
|
|
22
|
-
editor?: {
|
|
23
|
-
[key: string]: unknown;
|
|
24
|
-
url: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
declare function contextProvider(options: Options$1): ContextProvider;
|
|
29
|
-
|
|
30
|
-
interface FunctionLibrary extends BaseExtension {
|
|
31
|
-
type: 'FunctionLibrary';
|
|
32
|
-
options: Options;
|
|
33
|
-
}
|
|
34
|
-
interface Options {
|
|
35
|
-
id: string;
|
|
36
|
-
type: string;
|
|
37
|
-
functions: Record<string, unknown>;
|
|
38
|
-
resources: {
|
|
39
|
-
[key: string]: unknown;
|
|
40
|
-
client: {
|
|
41
|
-
[key: string]: unknown;
|
|
42
|
-
url: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
declare function functionLibrary(options: Options): FunctionLibrary;
|
|
47
|
-
|
|
48
|
-
declare const extensions: {
|
|
49
|
-
contextProvider: typeof contextProvider;
|
|
50
|
-
functionLibrary: typeof functionLibrary;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export { extensions };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
-
const require = _createRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
contextProvider,
|
|
5
|
-
functionLibrary
|
|
6
|
-
} from "./chunk-MNQWQ2MC.js";
|
|
7
|
-
import {
|
|
8
|
-
init_esm_shims
|
|
9
|
-
} from "./chunk-23MOLCVI.js";
|
|
10
|
-
|
|
11
|
-
// src/builders-experimental.ts
|
|
12
|
-
init_esm_shims();
|
|
13
|
-
var extensions = {
|
|
14
|
-
contextProvider,
|
|
15
|
-
functionLibrary
|
|
16
|
-
};
|
|
17
|
-
export {
|
|
18
|
-
extensions
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=builders-experimental.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/builders-experimental.ts"],"sourcesContent":["import { contextProvider } from '@wix/astro-context-providers-extensions';\nimport { functionLibrary } from '@wix/astro-function-libraries-extensions';\n\nexport const extensions = {\n contextProvider,\n functionLibrary,\n};\n"],"mappings":";;;;;;;;;;;AAAA;AAGO,IAAM,aAAa;AAAA,EACxB;AAAA,EACA;AACF;","names":[]}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { b as bookingsStaffSortingProvider, c as customElement, e as ecomAdditionalFees, a as ecomDiscountTriggers, d as ecomGiftCards, f as ecomPaymentSettings, g as ecomShippingRates, h as ecomValidations, i as embeddedScript, w as webhook, s as siteComponent, j as siteComponentPanel, k as sitePlugin } from './index.d-BUVlSCHa.js';
|
|
2
|
-
import { g as genericExtension } from './index.d-D4c48TR0.js';
|
|
3
|
-
export { a as app } from './index.d-D4c48TR0.js';
|
|
4
|
-
|
|
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
|
-
|
|
35
|
-
interface TrustedBackofficeWidget {
|
|
36
|
-
type: 'TrustedBackofficeWidget';
|
|
37
|
-
options: Options;
|
|
38
|
-
}
|
|
39
|
-
interface Options {
|
|
40
|
-
id: string;
|
|
41
|
-
component: string;
|
|
42
|
-
height?: number;
|
|
43
|
-
requiredPermission?: string;
|
|
44
|
-
slotIds?: string[];
|
|
45
|
-
title: string;
|
|
46
|
-
width?: number;
|
|
47
|
-
}
|
|
48
|
-
declare function trustedBackofficeWidget(options: Options): TrustedBackofficeWidget;
|
|
49
|
-
|
|
50
|
-
declare const extensions: {
|
|
51
|
-
bookingsStaffSortingProvider: typeof bookingsStaffSortingProvider;
|
|
52
|
-
customElement: typeof customElement;
|
|
53
|
-
dashboardExportedComponent: typeof trustedBackofficeWidget;
|
|
54
|
-
dashboardPage: typeof trustedBackofficePage;
|
|
55
|
-
ecomAdditionalFees: typeof ecomAdditionalFees;
|
|
56
|
-
ecomDiscountTriggers: typeof ecomDiscountTriggers;
|
|
57
|
-
ecomGiftCards: typeof ecomGiftCards;
|
|
58
|
-
ecomPaymentSettings: typeof ecomPaymentSettings;
|
|
59
|
-
ecomShippingRates: typeof ecomShippingRates;
|
|
60
|
-
ecomValidations: typeof ecomValidations;
|
|
61
|
-
embeddedScript: typeof embeddedScript;
|
|
62
|
-
event: typeof webhook;
|
|
63
|
-
genericExtension: typeof genericExtension;
|
|
64
|
-
siteComponent: typeof siteComponent;
|
|
65
|
-
siteComponentPanel: typeof siteComponentPanel;
|
|
66
|
-
sitePlugin: typeof sitePlugin;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export { extensions };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
-
const require = _createRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
trustedBackofficePage,
|
|
5
|
-
trustedBackofficeWidget
|
|
6
|
-
} from "./chunk-KCOYXYJL.js";
|
|
7
|
-
import {
|
|
8
|
-
app,
|
|
9
|
-
bookingsStaffSortingProvider,
|
|
10
|
-
customElement,
|
|
11
|
-
ecomAdditionalFees,
|
|
12
|
-
ecomDiscountTriggers,
|
|
13
|
-
ecomGiftCards,
|
|
14
|
-
ecomPaymentSettings,
|
|
15
|
-
ecomShippingRates,
|
|
16
|
-
ecomValidations,
|
|
17
|
-
embeddedScript,
|
|
18
|
-
genericExtension,
|
|
19
|
-
siteComponent,
|
|
20
|
-
siteComponentPanel,
|
|
21
|
-
sitePlugin,
|
|
22
|
-
webhook
|
|
23
|
-
} from "./chunk-E42TF2A2.js";
|
|
24
|
-
import {
|
|
25
|
-
init_esm_shims
|
|
26
|
-
} from "./chunk-23MOLCVI.js";
|
|
27
|
-
|
|
28
|
-
// src/builders-trusted.ts
|
|
29
|
-
init_esm_shims();
|
|
30
|
-
var extensions = {
|
|
31
|
-
bookingsStaffSortingProvider,
|
|
32
|
-
customElement,
|
|
33
|
-
dashboardExportedComponent: trustedBackofficeWidget,
|
|
34
|
-
dashboardPage: trustedBackofficePage,
|
|
35
|
-
ecomAdditionalFees,
|
|
36
|
-
ecomDiscountTriggers,
|
|
37
|
-
ecomGiftCards,
|
|
38
|
-
ecomPaymentSettings,
|
|
39
|
-
ecomShippingRates,
|
|
40
|
-
ecomValidations,
|
|
41
|
-
embeddedScript,
|
|
42
|
-
event: webhook,
|
|
43
|
-
genericExtension,
|
|
44
|
-
siteComponent,
|
|
45
|
-
siteComponentPanel,
|
|
46
|
-
sitePlugin
|
|
47
|
-
};
|
|
48
|
-
export {
|
|
49
|
-
app,
|
|
50
|
-
extensions
|
|
51
|
-
};
|
|
52
|
-
//# sourceMappingURL=builders-trusted.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/builders-trusted.ts"],"sourcesContent":["import {\n bookingsStaffSortingProvider,\n ecomAdditionalFees,\n ecomDiscountTriggers,\n ecomGiftCards,\n ecomPaymentSettings,\n ecomShippingRates,\n ecomValidations,\n webhook as event,\n} from '@wix/astro-backend-extensions';\nimport { genericExtension } from '@wix/astro-core';\nimport {\n customElement,\n sitePlugin,\n} from '@wix/astro-custom-elements-extensions';\nimport { embeddedScript } from '@wix/astro-embedded-scripts-extensions';\nimport { siteComponentPanel } from '@wix/astro-site-component-panels-extensions';\nimport { siteComponent } from '@wix/astro-site-components-extensions';\nimport {\n trustedBackofficeWidget as dashboardExportedComponent,\n trustedBackofficePage as dashboardPage,\n} from '@wix/astro-trusted-backoffice-extensions';\n\nexport { app } from '@wix/astro-core';\n\nexport const extensions = {\n bookingsStaffSortingProvider,\n customElement,\n dashboardExportedComponent,\n dashboardPage,\n ecomAdditionalFees,\n ecomDiscountTriggers,\n ecomGiftCards,\n ecomPaymentSettings,\n ecomShippingRates,\n ecomValidations,\n embeddedScript,\n event,\n genericExtension,\n siteComponent,\n siteComponentPanel,\n sitePlugin,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAyBO,IAAM,aAAa;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","names":[]}
|