@wix/astro 2.11.0 → 2.13.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/CHANGELOG.md +329 -0
- package/build/dependencies/astro-auth/backend-runtime/{chunk-RTCWF7UX.js → chunk-IUZYED2S.js} +2 -2
- package/build/dependencies/astro-auth/backend-runtime/middleware/auth.js +1 -1
- package/build/dependencies/astro-auth/backend-runtime/runtime/backend/setupContextualClient.js +1 -1
- package/build/dependencies/astro-backend-extensions/backend-runtime/{chunk-RHCMPH4V.js → chunk-F7JXR3EK.js} +4 -3
- package/build/dependencies/astro-backend-extensions/backend-runtime/runtime/setupServicePlugin.js +1 -1
- package/build/dependencies/astro-backend-extensions/backend-runtime/runtime/setupWebhook.js +1 -1
- package/build/dependencies/astro-backend-extensions/{index.d.ts → types/index.d.ts} +15 -4
- package/build/dependencies/astro-backoffice-extensions/{index.d.ts → types/index.d.ts} +22 -1
- package/build/dependencies/astro-core/{index.d.ts → types/index.d.ts} +17 -6
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/customElementHmr.d.ts +6 -0
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/{index.js → customElementHmr.js} +3 -32
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/reactHmr.d.ts +1 -0
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/reactHmr.js +26 -0
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/renderSettingsPanel.d.ts +5 -0
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/renderSettingsPanel.js +23 -0
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/wrapCustomElement.d.ts +6 -0
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/wrapCustomElement.js +30 -0
- package/build/dependencies/astro-custom-elements-extensions/types/index.d.ts +27 -0
- package/build/dependencies/astro-embedded-scripts-extensions/{index.d.ts → types/index.d.ts} +2 -2
- package/build/dependencies/astro-site-component-panels-extensions/types/index.d.ts +21 -0
- package/build/dependencies/astro-site-components-extensions/types/index.d.ts +36 -0
- package/build/dependencies/astro-site-plugins-extensions/{index.d.ts → types/index.d.ts} +5 -3
- package/build/integration/builders.d.ts +321 -8
- package/build/integration/builders.js +12 -9
- package/build/integration/builders.js.map +1 -1
- package/build/integration/{chunk-OJIGUJIG.js → chunk-AT5HXBVK.js} +1709 -407
- package/build/integration/chunk-AT5HXBVK.js.map +1 -0
- package/build/integration/index.d.ts +1 -1
- package/build/integration/index.js +16 -28
- package/build/integration/index.js.map +1 -1
- package/package.json +9 -6
- package/build/builders.d.ts +0 -6
- package/build/builders.js +0 -42
- package/build/builders.js.map +0 -1
- package/build/dependencies/astro-auth/index.d.ts +0 -7
- package/build/dependencies/astro-auth/index.js +0 -301
- package/build/dependencies/astro-auth/index.js.map +0 -1
- package/build/dependencies/astro-backend-extensions/index.js +0 -7279
- package/build/dependencies/astro-backend-extensions/index.js.map +0 -1
- package/build/dependencies/astro-backoffice-extensions/index.js +0 -7159
- package/build/dependencies/astro-backoffice-extensions/index.js.map +0 -1
- package/build/dependencies/astro-core/index.js +0 -1055
- package/build/dependencies/astro-core/index.js.map +0 -1
- package/build/dependencies/astro-custom-elements-extensions/browser-runtime/index.d.ts +0 -11
- package/build/dependencies/astro-custom-elements-extensions/index.d.ts +0 -24
- package/build/dependencies/astro-custom-elements-extensions/index.js +0 -10082
- package/build/dependencies/astro-custom-elements-extensions/index.js.map +0 -1
- package/build/dependencies/astro-embedded-scripts-extensions/index.js +0 -8453
- package/build/dependencies/astro-embedded-scripts-extensions/index.js.map +0 -1
- package/build/dependencies/astro-html-embeds/index.d.ts +0 -5
- package/build/dependencies/astro-html-embeds/index.js +0 -25
- package/build/dependencies/astro-html-embeds/index.js.map +0 -1
- package/build/dependencies/astro-payment-links/index.d.ts +0 -5
- package/build/dependencies/astro-payment-links/index.js +0 -42
- package/build/dependencies/astro-payment-links/index.js.map +0 -1
- package/build/dependencies/astro-robots/index.d.ts +0 -5
- package/build/dependencies/astro-robots/index.js +0 -23
- package/build/dependencies/astro-robots/index.js.map +0 -1
- package/build/dependencies/astro-site-plugins-extensions/index.js +0 -49
- package/build/dependencies/astro-site-plugins-extensions/index.js.map +0 -1
- package/build/dependencies/astro-viewer-api/index.d.ts +0 -5
- package/build/dependencies/astro-viewer-api/index.js +0 -22
- package/build/dependencies/astro-viewer-api/index.js.map +0 -1
- package/build/index.d.ts +0 -16
- package/build/index.js +0 -56
- package/build/index.js.map +0 -1
- package/build/integration/chunk-OJIGUJIG.js.map +0 -1
package/build/dependencies/astro-custom-elements-extensions/browser-runtime/renderSettingsPanel.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// src/runtime/renderSettingsPanel.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { createRoot } from "react-dom/client";
|
|
4
|
+
import { editor } from "@wix/editor";
|
|
5
|
+
import { createClient } from "@wix/sdk";
|
|
6
|
+
function renderSettingsPanel(SettingsPanel) {
|
|
7
|
+
const host = editor.host();
|
|
8
|
+
const auth = editor.auth();
|
|
9
|
+
const wixClient = createClient({
|
|
10
|
+
auth,
|
|
11
|
+
host
|
|
12
|
+
});
|
|
13
|
+
wixClient.enableContext("module");
|
|
14
|
+
const container = document.getElementById("root");
|
|
15
|
+
if (container == null) {
|
|
16
|
+
throw new Error("Cannot find root element");
|
|
17
|
+
}
|
|
18
|
+
const root = createRoot(container);
|
|
19
|
+
root.render(/* @__PURE__ */ React.createElement(SettingsPanel, null));
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
renderSettingsPanel
|
|
23
|
+
};
|
package/build/dependencies/astro-custom-elements-extensions/browser-runtime/wrapCustomElement.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// ../astro-browser-runtime/src/sdk/site.ts
|
|
2
|
+
import { createClient } from "@wix/sdk";
|
|
3
|
+
import { site } from "@wix/site";
|
|
4
|
+
var enableClient = (applicationId) => {
|
|
5
|
+
const host = site.host({ applicationId });
|
|
6
|
+
const auth = site.auth();
|
|
7
|
+
const wixClient = createClient({
|
|
8
|
+
auth,
|
|
9
|
+
host
|
|
10
|
+
});
|
|
11
|
+
wixClient.enableContext("module");
|
|
12
|
+
return auth.getAccessTokenInjector();
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
// src/runtime/wrapCustomElement.ts
|
|
16
|
+
function wrapCustomElement({
|
|
17
|
+
customElement,
|
|
18
|
+
tagName
|
|
19
|
+
}) {
|
|
20
|
+
const injectAccessTokenFunction = enableClient(import.meta.env.WIX_CLIENT_ID);
|
|
21
|
+
Object.defineProperty(customElement.prototype, "accessTokenListener", {
|
|
22
|
+
configurable: false,
|
|
23
|
+
value: injectAccessTokenFunction,
|
|
24
|
+
writable: false
|
|
25
|
+
});
|
|
26
|
+
customElements.define(tagName, customElement);
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
wrapCustomElement
|
|
30
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { WixIntegration } from '@wix/astro-core';
|
|
2
|
+
import { DevCenterCustomElementBehaviors, DevCenterCustomElementSize, DevCenterCustomElementPresets } from '@wix/dev-center-schemas';
|
|
3
|
+
|
|
4
|
+
declare const createIntegration: () => WixIntegration;
|
|
5
|
+
|
|
6
|
+
interface CustomElement {
|
|
7
|
+
type: 'CustomElement';
|
|
8
|
+
options: Options;
|
|
9
|
+
}
|
|
10
|
+
interface Options {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
behaviors?: DevCenterCustomElementBehaviors;
|
|
14
|
+
element: string;
|
|
15
|
+
height: DevCenterCustomElementSize['height'];
|
|
16
|
+
installation: {
|
|
17
|
+
autoAdd: boolean;
|
|
18
|
+
essential?: boolean;
|
|
19
|
+
};
|
|
20
|
+
presets?: DevCenterCustomElementPresets;
|
|
21
|
+
settings?: string;
|
|
22
|
+
tagName: string;
|
|
23
|
+
width: DevCenterCustomElementSize['width'];
|
|
24
|
+
}
|
|
25
|
+
declare function customElement(options: Options): CustomElement;
|
|
26
|
+
|
|
27
|
+
export { customElement, createIntegration as default };
|
package/build/dependencies/astro-embedded-scripts-extensions/{index.d.ts → types/index.d.ts}
RENAMED
|
@@ -9,8 +9,8 @@ interface EmbeddedScript extends BaseExtension {
|
|
|
9
9
|
interface Options {
|
|
10
10
|
id: string;
|
|
11
11
|
name: string;
|
|
12
|
-
placement: 'BODY_END' | 'BODY_START' | 'HEAD'
|
|
13
|
-
scriptType: 'ADVERTISING' | 'ANALYTICS' | 'ESSENTIAL' | 'FUNCTIONAL'
|
|
12
|
+
placement: 'BODY_END' | 'BODY_START' | 'HEAD';
|
|
13
|
+
scriptType: 'ADVERTISING' | 'ANALYTICS' | 'ESSENTIAL' | 'FUNCTIONAL';
|
|
14
14
|
source: string;
|
|
15
15
|
}
|
|
16
16
|
declare function embeddedScript(options: Options): EmbeddedScript;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { WixIntegration, BaseExtension } from '@wix/astro-core';
|
|
2
|
+
|
|
3
|
+
declare const createIntegration: () => WixIntegration;
|
|
4
|
+
|
|
5
|
+
interface SiteComponentPanel extends BaseExtension {
|
|
6
|
+
type: 'SiteComponentPanel';
|
|
7
|
+
options: PanelOptions;
|
|
8
|
+
}
|
|
9
|
+
interface PanelOptions {
|
|
10
|
+
id: string;
|
|
11
|
+
component: string;
|
|
12
|
+
displayName: string;
|
|
13
|
+
referenceId?: string;
|
|
14
|
+
size: {
|
|
15
|
+
height: number;
|
|
16
|
+
width: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
declare function siteComponentPanel(options: PanelOptions): SiteComponentPanel;
|
|
20
|
+
|
|
21
|
+
export { createIntegration as default, siteComponentPanel };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { WixIntegration, BaseExtension } from '@wix/astro-core';
|
|
2
|
+
|
|
3
|
+
declare const createIntegration: () => WixIntegration;
|
|
4
|
+
|
|
5
|
+
interface PresetOptions {
|
|
6
|
+
displayName: string;
|
|
7
|
+
source: string;
|
|
8
|
+
thumbnailUrl?: string;
|
|
9
|
+
}
|
|
10
|
+
interface SiteComponent extends BaseExtension {
|
|
11
|
+
type: 'SiteComponent';
|
|
12
|
+
options: Options;
|
|
13
|
+
}
|
|
14
|
+
interface Options {
|
|
15
|
+
id: string;
|
|
16
|
+
type: string;
|
|
17
|
+
description: string;
|
|
18
|
+
editorElement: {
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
displayName: string;
|
|
21
|
+
presets?: Record<string, PresetOptions>;
|
|
22
|
+
selector: string;
|
|
23
|
+
};
|
|
24
|
+
resources: {
|
|
25
|
+
client: {
|
|
26
|
+
component: string;
|
|
27
|
+
};
|
|
28
|
+
editor?: {
|
|
29
|
+
component: string;
|
|
30
|
+
};
|
|
31
|
+
sdk?: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
declare function siteComponent(options: Options): SiteComponent;
|
|
35
|
+
|
|
36
|
+
export { createIntegration as default, siteComponent };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WixIntegration, BaseExtension } from '@wix/astro-core';
|
|
2
|
-
import {
|
|
2
|
+
import { DevCenterSitePluginMarketData, DevCenterSitePluginPlacements } from '@wix/dev-center-schemas';
|
|
3
3
|
|
|
4
4
|
declare const createIntegration: () => WixIntegration;
|
|
5
5
|
|
|
@@ -9,8 +9,10 @@ interface SitePlugin extends BaseExtension {
|
|
|
9
9
|
}
|
|
10
10
|
interface Options {
|
|
11
11
|
id: string;
|
|
12
|
-
name
|
|
13
|
-
installation:
|
|
12
|
+
name: string;
|
|
13
|
+
installation: {
|
|
14
|
+
autoAdd: boolean;
|
|
15
|
+
};
|
|
14
16
|
marketData: DevCenterSitePluginMarketData;
|
|
15
17
|
placements: DevCenterSitePluginPlacements[];
|
|
16
18
|
referenceComponentId: string;
|
|
@@ -1,8 +1,321 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
interface BaseDevCenterComponent {
|
|
2
|
+
compId: string;
|
|
3
|
+
compName?: string;
|
|
4
|
+
compType: string;
|
|
5
|
+
compData: unknown;
|
|
6
|
+
}
|
|
7
|
+
interface DevCenterCustomElementBehaviors {
|
|
8
|
+
dashboard?: {
|
|
9
|
+
dashboardPageComponentId: string;
|
|
10
|
+
};
|
|
11
|
+
settings?: {
|
|
12
|
+
settingsUrl: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
type DevCenterCustomElementPresets = Array<{
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
thumbnailUrl: string;
|
|
19
|
+
}>;
|
|
20
|
+
interface DevCenterCustomElementSize {
|
|
21
|
+
height: {
|
|
22
|
+
defaultHeight: number;
|
|
23
|
+
heightMode?: 'AUTO' | 'FIXED' | 'UNKNOWN';
|
|
24
|
+
};
|
|
25
|
+
width: {
|
|
26
|
+
allowStretch?: boolean;
|
|
27
|
+
defaultWidth: number;
|
|
28
|
+
stretchByDefault?: boolean;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
interface DevCenterSitePluginMarketData {
|
|
32
|
+
name: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
logoUrl?: string;
|
|
35
|
+
}
|
|
36
|
+
interface DevCenterSitePluginPlacements {
|
|
37
|
+
appDefinitionId: string;
|
|
38
|
+
slotId: string;
|
|
39
|
+
widgetId: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface BaseExtension {
|
|
43
|
+
type: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare class App {
|
|
47
|
+
private extensions;
|
|
48
|
+
use(extension: BaseExtension): this;
|
|
49
|
+
}
|
|
50
|
+
declare function app(): App;
|
|
51
|
+
|
|
52
|
+
interface GenericExtension {
|
|
53
|
+
type: 'GenericExtension';
|
|
54
|
+
options: BaseDevCenterComponent;
|
|
55
|
+
}
|
|
56
|
+
declare function genericExtension(options: BaseDevCenterComponent): GenericExtension;
|
|
57
|
+
|
|
58
|
+
interface EcomAdditionalFees {
|
|
59
|
+
type: 'EcomAdditionalFees';
|
|
60
|
+
options: Options$6;
|
|
61
|
+
}
|
|
62
|
+
interface Options$6 {
|
|
63
|
+
id: string;
|
|
64
|
+
name: string;
|
|
65
|
+
source: string;
|
|
66
|
+
}
|
|
67
|
+
declare function ecomAdditionalFees(options: Options$6): EcomAdditionalFees;
|
|
68
|
+
|
|
69
|
+
interface EcomDiscountsTrigger {
|
|
70
|
+
type: 'EcomDiscountsTrigger';
|
|
71
|
+
options: Options$5;
|
|
72
|
+
}
|
|
73
|
+
interface Options$5 {
|
|
74
|
+
id: string;
|
|
75
|
+
name: string;
|
|
76
|
+
source: string;
|
|
77
|
+
}
|
|
78
|
+
declare function ecomDiscountTriggers(options: Options$5): EcomDiscountsTrigger;
|
|
79
|
+
|
|
80
|
+
interface EcomGiftCardsProvider {
|
|
81
|
+
type: 'EcomGiftCardsProvider';
|
|
82
|
+
options: Options$4$1;
|
|
83
|
+
}
|
|
84
|
+
interface Options$4$1 {
|
|
85
|
+
id: string;
|
|
86
|
+
name: string;
|
|
87
|
+
source: string;
|
|
88
|
+
}
|
|
89
|
+
declare function ecomGiftCards(options: Options$4$1): EcomGiftCardsProvider;
|
|
90
|
+
|
|
91
|
+
interface EcomPaymentSettings {
|
|
92
|
+
type: 'EcomPaymentSettings';
|
|
93
|
+
options: Options$3$2;
|
|
94
|
+
}
|
|
95
|
+
interface Options$3$2 {
|
|
96
|
+
id: string;
|
|
97
|
+
name: string;
|
|
98
|
+
fallbackValueForRequires3dSecure?: boolean;
|
|
99
|
+
source: string;
|
|
100
|
+
}
|
|
101
|
+
declare function ecomPaymentSettings(options: Options$3$2): EcomPaymentSettings;
|
|
102
|
+
|
|
103
|
+
interface EcomShippingRates {
|
|
104
|
+
type: 'EcomShippingRates';
|
|
105
|
+
options: Options$2$2;
|
|
106
|
+
}
|
|
107
|
+
interface Options$2$2 {
|
|
108
|
+
id: string;
|
|
109
|
+
name: string;
|
|
110
|
+
dashboardUrl?: string;
|
|
111
|
+
description?: string;
|
|
112
|
+
fallbackDefinitionMandatory?: boolean;
|
|
113
|
+
learnMoreUrl?: string;
|
|
114
|
+
source: string;
|
|
115
|
+
thumbnailUrl?: string;
|
|
116
|
+
}
|
|
117
|
+
declare function ecomShippingRates(options: Options$2$2): EcomShippingRates;
|
|
118
|
+
|
|
119
|
+
interface EcomValidations {
|
|
120
|
+
type: 'EcomValidations';
|
|
121
|
+
options: Options$1$2;
|
|
122
|
+
}
|
|
123
|
+
interface Options$1$2 {
|
|
124
|
+
id: string;
|
|
125
|
+
name: string;
|
|
126
|
+
source: string;
|
|
127
|
+
validateInCart?: boolean;
|
|
128
|
+
}
|
|
129
|
+
declare function ecomValidations(options: Options$1$2): EcomValidations;
|
|
130
|
+
|
|
131
|
+
interface Webhook {
|
|
132
|
+
type: 'Webhook';
|
|
133
|
+
options: Options$7;
|
|
134
|
+
}
|
|
135
|
+
interface Options$7 {
|
|
136
|
+
id: string;
|
|
137
|
+
source: string;
|
|
138
|
+
}
|
|
139
|
+
declare function webhook(options: Options$7): Webhook;
|
|
140
|
+
|
|
141
|
+
interface BackofficeExtensionMenuPlugin {
|
|
142
|
+
type: 'BackofficeExtensionMenuPlugin';
|
|
143
|
+
options: Options$3$1;
|
|
144
|
+
}
|
|
145
|
+
interface Options$3$1 {
|
|
146
|
+
id: string;
|
|
147
|
+
action: {
|
|
148
|
+
navigateToPage: {
|
|
149
|
+
pageId: string;
|
|
150
|
+
};
|
|
151
|
+
} | {
|
|
152
|
+
openModal: {
|
|
153
|
+
componentId: string;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
description?: string;
|
|
157
|
+
extends: string;
|
|
158
|
+
iconKey: string;
|
|
159
|
+
subtitle?: string;
|
|
160
|
+
title: string;
|
|
161
|
+
}
|
|
162
|
+
declare function backofficeExtensionMenuPlugin(options: Options$3$1): BackofficeExtensionMenuPlugin;
|
|
163
|
+
|
|
164
|
+
interface BackofficeExtensionWidget {
|
|
165
|
+
type: 'BackofficeExtensionWidget';
|
|
166
|
+
options: Options$2$1;
|
|
167
|
+
}
|
|
168
|
+
interface Options$2$1 {
|
|
169
|
+
id: string;
|
|
170
|
+
component: string;
|
|
171
|
+
description?: string;
|
|
172
|
+
extends: string;
|
|
173
|
+
height?: number;
|
|
174
|
+
title: string;
|
|
175
|
+
}
|
|
176
|
+
declare function backofficeExtensionWidget(options: Options$2$1): BackofficeExtensionWidget;
|
|
177
|
+
|
|
178
|
+
interface BackofficeModal {
|
|
179
|
+
type: 'BackofficeModal';
|
|
180
|
+
options: Options$1$1;
|
|
181
|
+
}
|
|
182
|
+
interface Options$1$1 {
|
|
183
|
+
id: string;
|
|
184
|
+
component: string;
|
|
185
|
+
height?: number;
|
|
186
|
+
iconKey?: string;
|
|
187
|
+
title: string;
|
|
188
|
+
width?: number;
|
|
189
|
+
}
|
|
190
|
+
declare function backofficeModal(options: Options$1$1): BackofficeModal;
|
|
191
|
+
|
|
192
|
+
interface BackofficePage {
|
|
193
|
+
type: 'BackofficePage';
|
|
194
|
+
options: Options$4;
|
|
195
|
+
}
|
|
196
|
+
interface Options$4 {
|
|
197
|
+
id: string;
|
|
198
|
+
component: string;
|
|
199
|
+
routePath: string;
|
|
200
|
+
title: string;
|
|
201
|
+
}
|
|
202
|
+
declare function backofficePage(options: Options$4): BackofficePage;
|
|
203
|
+
|
|
204
|
+
interface CustomElement {
|
|
205
|
+
type: 'CustomElement';
|
|
206
|
+
options: Options$3;
|
|
207
|
+
}
|
|
208
|
+
interface Options$3 {
|
|
209
|
+
id: string;
|
|
210
|
+
name: string;
|
|
211
|
+
behaviors?: DevCenterCustomElementBehaviors;
|
|
212
|
+
element: string;
|
|
213
|
+
height: DevCenterCustomElementSize['height'];
|
|
214
|
+
installation: {
|
|
215
|
+
autoAdd: boolean;
|
|
216
|
+
essential?: boolean;
|
|
217
|
+
};
|
|
218
|
+
presets?: DevCenterCustomElementPresets;
|
|
219
|
+
settings?: string;
|
|
220
|
+
tagName: string;
|
|
221
|
+
width: DevCenterCustomElementSize['width'];
|
|
222
|
+
}
|
|
223
|
+
declare function customElement(options: Options$3): CustomElement;
|
|
224
|
+
|
|
225
|
+
interface EmbeddedScript extends BaseExtension {
|
|
226
|
+
type: 'EmbeddedScript';
|
|
227
|
+
options: Options$2;
|
|
228
|
+
}
|
|
229
|
+
interface Options$2 {
|
|
230
|
+
id: string;
|
|
231
|
+
name: string;
|
|
232
|
+
placement: 'BODY_END' | 'BODY_START' | 'HEAD';
|
|
233
|
+
scriptType: 'ADVERTISING' | 'ANALYTICS' | 'ESSENTIAL' | 'FUNCTIONAL';
|
|
234
|
+
source: string;
|
|
235
|
+
}
|
|
236
|
+
declare function embeddedScript(options: Options$2): EmbeddedScript;
|
|
237
|
+
|
|
238
|
+
interface SiteComponentPanel extends BaseExtension {
|
|
239
|
+
type: 'SiteComponentPanel';
|
|
240
|
+
options: PanelOptions;
|
|
241
|
+
}
|
|
242
|
+
interface PanelOptions {
|
|
243
|
+
id: string;
|
|
244
|
+
component: string;
|
|
245
|
+
displayName: string;
|
|
246
|
+
referenceId?: string;
|
|
247
|
+
size: {
|
|
248
|
+
height: number;
|
|
249
|
+
width: string;
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
declare function siteComponentPanel(options: PanelOptions): SiteComponentPanel;
|
|
253
|
+
|
|
254
|
+
interface PresetOptions {
|
|
255
|
+
displayName: string;
|
|
256
|
+
source: string;
|
|
257
|
+
thumbnailUrl?: string;
|
|
258
|
+
}
|
|
259
|
+
interface SiteComponent extends BaseExtension {
|
|
260
|
+
type: 'SiteComponent';
|
|
261
|
+
options: Options$1;
|
|
262
|
+
}
|
|
263
|
+
interface Options$1 {
|
|
264
|
+
id: string;
|
|
265
|
+
type: string;
|
|
266
|
+
description: string;
|
|
267
|
+
editorElement: {
|
|
268
|
+
[key: string]: unknown;
|
|
269
|
+
displayName: string;
|
|
270
|
+
presets?: Record<string, PresetOptions>;
|
|
271
|
+
selector: string;
|
|
272
|
+
};
|
|
273
|
+
resources: {
|
|
274
|
+
client: {
|
|
275
|
+
component: string;
|
|
276
|
+
};
|
|
277
|
+
editor?: {
|
|
278
|
+
component: string;
|
|
279
|
+
};
|
|
280
|
+
sdk?: string;
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
declare function siteComponent(options: Options$1): SiteComponent;
|
|
284
|
+
|
|
285
|
+
interface SitePlugin extends BaseExtension {
|
|
286
|
+
type: 'SitePlugin';
|
|
287
|
+
options: Options;
|
|
288
|
+
}
|
|
289
|
+
interface Options {
|
|
290
|
+
id: string;
|
|
291
|
+
name: string;
|
|
292
|
+
installation: {
|
|
293
|
+
autoAdd: boolean;
|
|
294
|
+
};
|
|
295
|
+
marketData: DevCenterSitePluginMarketData;
|
|
296
|
+
placements: DevCenterSitePluginPlacements[];
|
|
297
|
+
referenceComponentId: string;
|
|
298
|
+
}
|
|
299
|
+
declare function sitePlugin(options: Options): SitePlugin;
|
|
300
|
+
|
|
301
|
+
declare const extensions: {
|
|
302
|
+
customElement: typeof customElement;
|
|
303
|
+
dashboardMenuPlugin: typeof backofficeExtensionMenuPlugin;
|
|
304
|
+
dashboardModal: typeof backofficeModal;
|
|
305
|
+
dashboardPage: typeof backofficePage;
|
|
306
|
+
dashboardPlugin: typeof backofficeExtensionWidget;
|
|
307
|
+
ecomAdditionalFees: typeof ecomAdditionalFees;
|
|
308
|
+
ecomDiscountTriggers: typeof ecomDiscountTriggers;
|
|
309
|
+
ecomGiftCards: typeof ecomGiftCards;
|
|
310
|
+
ecomPaymentSettings: typeof ecomPaymentSettings;
|
|
311
|
+
ecomShippingRates: typeof ecomShippingRates;
|
|
312
|
+
ecomValidations: typeof ecomValidations;
|
|
313
|
+
embeddedScript: typeof embeddedScript;
|
|
314
|
+
event: typeof webhook;
|
|
315
|
+
genericExtension: typeof genericExtension;
|
|
316
|
+
siteComponent: typeof siteComponent;
|
|
317
|
+
siteComponentPanel: typeof siteComponentPanel;
|
|
318
|
+
sitePlugin: typeof sitePlugin;
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
export { app, extensions };
|
|
@@ -20,17 +20,16 @@ import {
|
|
|
20
20
|
siteComponentPanel,
|
|
21
21
|
sitePlugin,
|
|
22
22
|
webhook
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-AT5HXBVK.js";
|
|
24
24
|
|
|
25
25
|
// src/builders.ts
|
|
26
26
|
init_esm_shims();
|
|
27
|
-
|
|
28
|
-
app,
|
|
27
|
+
var extensions = {
|
|
29
28
|
customElement,
|
|
30
|
-
backofficeExtensionMenuPlugin
|
|
31
|
-
backofficeModal
|
|
32
|
-
backofficePage
|
|
33
|
-
backofficeExtensionWidget
|
|
29
|
+
dashboardMenuPlugin: backofficeExtensionMenuPlugin,
|
|
30
|
+
dashboardModal: backofficeModal,
|
|
31
|
+
dashboardPage: backofficePage,
|
|
32
|
+
dashboardPlugin: backofficeExtensionWidget,
|
|
34
33
|
ecomAdditionalFees,
|
|
35
34
|
ecomDiscountTriggers,
|
|
36
35
|
ecomGiftCards,
|
|
@@ -38,10 +37,14 @@ export {
|
|
|
38
37
|
ecomShippingRates,
|
|
39
38
|
ecomValidations,
|
|
40
39
|
embeddedScript,
|
|
40
|
+
event: webhook,
|
|
41
41
|
genericExtension,
|
|
42
42
|
siteComponent,
|
|
43
43
|
siteComponentPanel,
|
|
44
|
-
sitePlugin
|
|
45
|
-
|
|
44
|
+
sitePlugin
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
app,
|
|
48
|
+
extensions
|
|
46
49
|
};
|
|
47
50
|
//# sourceMappingURL=builders.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/builders.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../src/builders.ts"],"sourcesContent":["import {\n ecomAdditionalFees,\n ecomDiscountTriggers,\n ecomGiftCards,\n ecomPaymentSettings,\n ecomShippingRates,\n ecomValidations,\n webhook as event,\n} from '@wix/astro-backend-extensions';\nimport {\n backofficeExtensionMenuPlugin as dashboardMenuPlugin,\n backofficeModal as dashboardModal,\n backofficePage as dashboardPage,\n backofficeExtensionWidget as dashboardPlugin,\n} from '@wix/astro-backoffice-extensions';\nimport { genericExtension } from '@wix/astro-core';\nimport { customElement } 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 { sitePlugin } from '@wix/astro-site-plugins-extensions';\n\nexport { app } from '@wix/astro-core';\nexport const extensions = {\n customElement,\n dashboardMenuPlugin,\n dashboardModal,\n dashboardPage,\n dashboardPlugin,\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;AAuBO,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;AAAA,EACA;AACF;","names":[]}
|