@wix/astro 2.36.0 → 2.37.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-translations/integration/index.d.mts +3 -0
- package/build/integration/{builders-CjRoHEzM.mjs → builders-BfhSDmXU.mjs} +18 -1
- package/build/integration/{builders-n1cW-CFG.mjs → builders-CLzxQGot.mjs} +24 -8
- package/build/integration/{builders-Bh0je8Uz.d.mts → builders-DYLPo6Ug.d.mts} +8 -2
- package/build/integration/builders-experimental.d.mts +3 -1
- package/build/integration/builders-experimental.mjs +4 -2
- package/build/integration/builders-trusted.d.mts +2 -2
- package/build/integration/builders-trusted.mjs +1 -1
- package/build/integration/builders.d.mts +3 -3
- package/build/integration/builders.mjs +2 -2
- package/build/integration/{index-BwfPMCMA.d.mts → index-COP9ajJ2.d.mts} +87 -5
- package/build/integration/{index-DFtv5dHt.d.mts → index-CoKN90t5.d.mts} +8 -1
- package/build/integration/index.d.mts +3 -3
- package/build/integration/index.mjs +60 -35
- package/package.json +2 -2
|
@@ -8,7 +8,10 @@ interface BaseDevCenterComponent {
|
|
|
8
8
|
compName?: string;
|
|
9
9
|
compType: string;
|
|
10
10
|
compData: unknown;
|
|
11
|
+
createdBy?: CreatedBy;
|
|
12
|
+
createdByVersion?: string;
|
|
11
13
|
}
|
|
14
|
+
type CreatedBy = "BLOCKS" | "CLI" | "CODE_GEN" | "ONE_CLI";
|
|
12
15
|
//#endregion
|
|
13
16
|
//#region ../dev-center-schemas/src/app-manifest.d.ts
|
|
14
17
|
interface DevCenterAppManifest {
|
|
@@ -1,5 +1,21 @@
|
|
|
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, p as ecomDiscountTriggers, r as embeddedScript, s as genericExtension, t as siteComponent, u as ecomShippingRates, y as servicePluginBundler } from "./builders-
|
|
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, p as ecomDiscountTriggers, r as embeddedScript, s as genericExtension, t as siteComponent, u as ecomShippingRates, y as servicePluginBundler } from "./builders-CLzxQGot.mjs";
|
|
2
2
|
|
|
3
|
+
//#region ../astro-backend-extensions/src/builders/dataCollections.ts
|
|
4
|
+
function dataCollections(options) {
|
|
5
|
+
return {
|
|
6
|
+
type: "GenericExtension",
|
|
7
|
+
options: {
|
|
8
|
+
compId: options.id,
|
|
9
|
+
compName: options.name,
|
|
10
|
+
compType: "DATA_COMPONENT",
|
|
11
|
+
compData: { collections: options.collections },
|
|
12
|
+
createdBy: options.createdBy?.author,
|
|
13
|
+
createdByVersion: options.createdBy?.version
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
3
19
|
//#region ../astro-backoffice-extensions/src/builders/backofficeExtensionMenuPlugin.ts
|
|
4
20
|
function backofficeExtensionMenuPlugin(options) {
|
|
5
21
|
return {
|
|
@@ -53,6 +69,7 @@ const extensions = {
|
|
|
53
69
|
dashboardModal: backofficeModal,
|
|
54
70
|
dashboardPage: backofficePage,
|
|
55
71
|
dashboardPlugin: backofficeExtensionWidget,
|
|
72
|
+
dataCollections,
|
|
56
73
|
ecomAdditionalFees,
|
|
57
74
|
ecomDiscountTriggers,
|
|
58
75
|
ecomGiftCards,
|
|
@@ -40,7 +40,9 @@ function bookingsStaffSortingProvider(options) {
|
|
|
40
40
|
deploymentUri: { baseUri: servicePluginBundler(options) },
|
|
41
41
|
methodDescription: options.methodDescription,
|
|
42
42
|
methodName: options.methodName
|
|
43
|
-
} }
|
|
43
|
+
} },
|
|
44
|
+
createdBy: options.createdBy?.author,
|
|
45
|
+
createdByVersion: options.createdBy?.version
|
|
44
46
|
}
|
|
45
47
|
};
|
|
46
48
|
}
|
|
@@ -53,7 +55,9 @@ function ecomAdditionalFees(options) {
|
|
|
53
55
|
options: {
|
|
54
56
|
compId: options.id,
|
|
55
57
|
compType: "ECOM_ADDITIONAL_FEES",
|
|
56
|
-
compData: { ecomAdditionalFees: { deploymentUri: servicePluginBundler(options) } }
|
|
58
|
+
compData: { ecomAdditionalFees: { deploymentUri: servicePluginBundler(options) } },
|
|
59
|
+
createdBy: options.createdBy?.author,
|
|
60
|
+
createdByVersion: options.createdBy?.version
|
|
57
61
|
}
|
|
58
62
|
};
|
|
59
63
|
}
|
|
@@ -66,7 +70,9 @@ function ecomDiscountTriggers(options) {
|
|
|
66
70
|
options: {
|
|
67
71
|
compId: options.id,
|
|
68
72
|
compType: "ECOM_DISCOUNTS_TRIGGER",
|
|
69
|
-
compData: { ecomDiscountsTrigger: { deploymentUri: servicePluginBundler(options) } }
|
|
73
|
+
compData: { ecomDiscountsTrigger: { deploymentUri: servicePluginBundler(options) } },
|
|
74
|
+
createdBy: options.createdBy?.author,
|
|
75
|
+
createdByVersion: options.createdBy?.version
|
|
70
76
|
}
|
|
71
77
|
};
|
|
72
78
|
}
|
|
@@ -79,7 +85,9 @@ function ecomGiftCards(options) {
|
|
|
79
85
|
options: {
|
|
80
86
|
compId: options.id,
|
|
81
87
|
compType: "GIFT_CARDS_PROVIDER",
|
|
82
|
-
compData: { giftCardsProvider: { deploymentUri: servicePluginBundler(options) } }
|
|
88
|
+
compData: { giftCardsProvider: { deploymentUri: servicePluginBundler(options) } },
|
|
89
|
+
createdBy: options.createdBy?.author,
|
|
90
|
+
createdByVersion: options.createdBy?.version
|
|
83
91
|
}
|
|
84
92
|
};
|
|
85
93
|
}
|
|
@@ -95,7 +103,9 @@ function ecomPaymentSettings(options) {
|
|
|
95
103
|
compData: { ecomPaymentSettings: {
|
|
96
104
|
deploymentUri: servicePluginBundler(options),
|
|
97
105
|
fallbackValueForRequires3dSecure: options.fallbackValueForRequires3dSecure
|
|
98
|
-
} }
|
|
106
|
+
} },
|
|
107
|
+
createdBy: options.createdBy?.author,
|
|
108
|
+
createdByVersion: options.createdBy?.version
|
|
99
109
|
}
|
|
100
110
|
};
|
|
101
111
|
}
|
|
@@ -116,7 +126,9 @@ function ecomShippingRates(options) {
|
|
|
116
126
|
fallbackDefinitionMandatory: options.fallbackDefinitionMandatory,
|
|
117
127
|
learnMoreUrl: options.learnMoreUrl,
|
|
118
128
|
thumbnailUrl: options.thumbnailUrl
|
|
119
|
-
} }
|
|
129
|
+
} },
|
|
130
|
+
createdBy: options.createdBy?.author,
|
|
131
|
+
createdByVersion: options.createdBy?.version
|
|
120
132
|
}
|
|
121
133
|
};
|
|
122
134
|
}
|
|
@@ -132,7 +144,9 @@ function ecomValidations(options) {
|
|
|
132
144
|
compData: { ecomValidations: {
|
|
133
145
|
deploymentUri: servicePluginBundler(options),
|
|
134
146
|
validateInCart: options.validateInCart
|
|
135
|
-
} }
|
|
147
|
+
} },
|
|
148
|
+
createdBy: options.createdBy?.author,
|
|
149
|
+
createdByVersion: options.createdBy?.version
|
|
136
150
|
}
|
|
137
151
|
};
|
|
138
152
|
}
|
|
@@ -145,7 +159,9 @@ function webhook(options) {
|
|
|
145
159
|
options: {
|
|
146
160
|
compId: options.id,
|
|
147
161
|
compType: "WEBHOOK",
|
|
148
|
-
compData: { webhook: webhookBundler(options) }
|
|
162
|
+
compData: { webhook: webhookBundler(options) },
|
|
163
|
+
createdBy: options.createdBy?.author,
|
|
164
|
+
createdByVersion: options.createdBy?.version
|
|
149
165
|
}
|
|
150
166
|
};
|
|
151
167
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as BaseExtension, n as genericExtension } from "./index-
|
|
2
|
-
import { a as customElement, c as webhook, d as ecomPaymentSettings, f as ecomGiftCards,
|
|
1
|
+
import { a as CreatedByConfig, i as BaseExtension, n as genericExtension } from "./index-CoKN90t5.mjs";
|
|
2
|
+
import { a as customElement, c as webhook, d as ecomPaymentSettings, f as ecomGiftCards, g as bookingsStaffSortingProvider, h as dataCollections, 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-COP9ajJ2.mjs";
|
|
3
3
|
|
|
4
4
|
//#region ../astro-backoffice-extensions/src/builders/backofficeExtensionMenuPlugin.d.ts
|
|
5
5
|
interface BackofficeExtensionMenuPlugin {
|
|
@@ -17,6 +17,7 @@ interface Options$4 {
|
|
|
17
17
|
componentId: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
+
createdBy?: CreatedByConfig;
|
|
20
21
|
description?: string;
|
|
21
22
|
extends: string;
|
|
22
23
|
iconKey: string;
|
|
@@ -33,6 +34,7 @@ interface BackofficeExtensionWidget {
|
|
|
33
34
|
interface Options$3 {
|
|
34
35
|
id: string;
|
|
35
36
|
component: string;
|
|
37
|
+
createdBy?: CreatedByConfig;
|
|
36
38
|
description?: string;
|
|
37
39
|
extends: string;
|
|
38
40
|
height?: number;
|
|
@@ -48,6 +50,7 @@ interface BackofficeModal {
|
|
|
48
50
|
interface Options$2 {
|
|
49
51
|
id: string;
|
|
50
52
|
component: string;
|
|
53
|
+
createdBy?: CreatedByConfig;
|
|
51
54
|
height?: number;
|
|
52
55
|
iconKey?: string;
|
|
53
56
|
title: string;
|
|
@@ -63,6 +66,7 @@ interface BackofficePage {
|
|
|
63
66
|
interface Options$1 {
|
|
64
67
|
id: string;
|
|
65
68
|
component: string;
|
|
69
|
+
createdBy?: CreatedByConfig;
|
|
66
70
|
routePath: string;
|
|
67
71
|
title: string;
|
|
68
72
|
}
|
|
@@ -75,6 +79,7 @@ interface ViewerService extends BaseExtension {
|
|
|
75
79
|
}
|
|
76
80
|
interface Options {
|
|
77
81
|
id: string;
|
|
82
|
+
createdBy?: CreatedByConfig;
|
|
78
83
|
description?: string;
|
|
79
84
|
docLink?: string;
|
|
80
85
|
editor?: {
|
|
@@ -99,6 +104,7 @@ declare const extensions: {
|
|
|
99
104
|
dashboardModal: typeof backofficeModal;
|
|
100
105
|
dashboardPage: typeof backofficePage;
|
|
101
106
|
dashboardPlugin: typeof backofficeExtensionWidget;
|
|
107
|
+
dataCollections: typeof dataCollections;
|
|
102
108
|
ecomAdditionalFees: typeof ecomAdditionalFees;
|
|
103
109
|
ecomDiscountTriggers: typeof ecomDiscountTriggers;
|
|
104
110
|
ecomGiftCards: typeof ecomGiftCards;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as BaseExtension, t as GenericExtension } from "./index-
|
|
1
|
+
import { a as CreatedByConfig, i as BaseExtension, t as GenericExtension } from "./index-CoKN90t5.mjs";
|
|
2
2
|
|
|
3
3
|
//#region ../astro-context-providers-extensions/src/builders.d.ts
|
|
4
4
|
interface Options$3 {
|
|
@@ -6,6 +6,7 @@ interface Options$3 {
|
|
|
6
6
|
type: string;
|
|
7
7
|
[key: string]: unknown;
|
|
8
8
|
context?: Record<string, unknown>;
|
|
9
|
+
createdBy?: CreatedByConfig;
|
|
9
10
|
data?: Record<string, unknown>;
|
|
10
11
|
description?: string;
|
|
11
12
|
displayName?: string;
|
|
@@ -49,6 +50,7 @@ interface FunctionLibrary extends BaseExtension {
|
|
|
49
50
|
interface Options {
|
|
50
51
|
id: string;
|
|
51
52
|
type: string;
|
|
53
|
+
createdBy?: CreatedByConfig;
|
|
52
54
|
functions: Record<string, unknown>;
|
|
53
55
|
resources: {
|
|
54
56
|
[key: string]: unknown;
|
|
@@ -2,7 +2,7 @@ import { i as contextProviderClientBundler, n as contextProviderEditorBundler }
|
|
|
2
2
|
|
|
3
3
|
//#region ../astro-context-providers-extensions/src/builders.ts
|
|
4
4
|
function contextProvider(options) {
|
|
5
|
-
const { id, resources, ...rest } = options;
|
|
5
|
+
const { id, createdBy, resources, ...rest } = options;
|
|
6
6
|
return {
|
|
7
7
|
type: "GenericExtension",
|
|
8
8
|
options: {
|
|
@@ -28,7 +28,9 @@ function contextProvider(options) {
|
|
|
28
28
|
})
|
|
29
29
|
} } : {}
|
|
30
30
|
}
|
|
31
|
-
} }
|
|
31
|
+
} },
|
|
32
|
+
createdBy: createdBy?.author,
|
|
33
|
+
createdByVersion: createdBy?.version
|
|
32
34
|
}
|
|
33
35
|
};
|
|
34
36
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as genericExtension, r as app, t as GenericExtension } from "./index-
|
|
2
|
-
import { a as customElement, c as webhook, d as ecomPaymentSettings, f as ecomGiftCards,
|
|
1
|
+
import { n as genericExtension, r as app, t as GenericExtension } from "./index-CoKN90t5.mjs";
|
|
2
|
+
import { a as customElement, c as webhook, d as ecomPaymentSettings, f as ecomGiftCards, g 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-COP9ajJ2.mjs";
|
|
3
3
|
|
|
4
4
|
//#region ../dev-center-schemas/src/components/backoffice.d.ts
|
|
5
5
|
interface DevCenterBackofficeScriptAsset {
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-CLzxQGot.mjs";
|
|
2
2
|
import { n as trustedBackofficeComponentBundler } from "./trusted-backoffice-component-CCg08AU1.mjs";
|
|
3
3
|
|
|
4
4
|
//#region ../astro-trusted-backoffice-extensions/src/builders/trustedBackofficeExtensionWidget.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as app } from "./index-
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as extensions, t as bundlers } from "./builders-
|
|
1
|
+
import { r as app } from "./index-CoKN90t5.mjs";
|
|
2
|
+
import "./index-COP9ajJ2.mjs";
|
|
3
|
+
import { n as extensions, t as bundlers } from "./builders-DYLPo6Ug.mjs";
|
|
4
4
|
export { app, bundlers, extensions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as app } from "./builders-
|
|
2
|
-
import { n as extensions, t as bundlers } from "./builders-
|
|
1
|
+
import { o as app } from "./builders-CLzxQGot.mjs";
|
|
2
|
+
import { n as extensions, t as bundlers } from "./builders-BfhSDmXU.mjs";
|
|
3
3
|
|
|
4
4
|
export { app, bundlers, extensions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as BaseExtension, t as GenericExtension } from "./index-
|
|
1
|
+
import { a as CreatedByConfig, i as BaseExtension, t as GenericExtension } from "./index-CoKN90t5.mjs";
|
|
2
2
|
|
|
3
3
|
//#region ../dev-center-schemas/src/components/custom-element.d.ts
|
|
4
4
|
interface DevCenterCustomElementBehaviors {
|
|
@@ -26,6 +26,66 @@ interface DevCenterCustomElementSize {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
//#endregion
|
|
29
|
+
//#region ../dev-center-schemas/src/components/data-component.d.ts
|
|
30
|
+
interface DevCenterDataCollection {
|
|
31
|
+
dataPermissions: DevCenterDataCollectionPermissions;
|
|
32
|
+
displayField?: string;
|
|
33
|
+
displayName?: string;
|
|
34
|
+
fields: DevCenterDataCollectionField[];
|
|
35
|
+
idSuffix: string;
|
|
36
|
+
indexes?: DevCenterDataCollectionIndex[];
|
|
37
|
+
initialData?: Array<Record<string, unknown>>;
|
|
38
|
+
}
|
|
39
|
+
type DevCenterDataCollectionAccessLevel = "ANYONE" | "CMS_EDITOR" | "PRIVILEGED" | "SITE_MEMBER" | "SITE_MEMBER_AUTHOR";
|
|
40
|
+
interface DevCenterDataCollectionArrayOptions {
|
|
41
|
+
arrayOptions?: DevCenterDataCollectionArrayOptions;
|
|
42
|
+
elementType: DevCenterDataCollectionFieldType;
|
|
43
|
+
objectOptions?: DevCenterDataCollectionObjectOptions;
|
|
44
|
+
}
|
|
45
|
+
interface DevCenterDataCollectionField {
|
|
46
|
+
type: DevCenterDataCollectionFieldType;
|
|
47
|
+
arrayOptions?: DevCenterDataCollectionArrayOptions;
|
|
48
|
+
description?: string;
|
|
49
|
+
displayName?: string;
|
|
50
|
+
encrypted?: boolean;
|
|
51
|
+
key: string;
|
|
52
|
+
multiReferenceOptions?: DevCenterDataCollectionMultiReferenceOptions;
|
|
53
|
+
objectOptions?: DevCenterDataCollectionObjectOptions;
|
|
54
|
+
referenceOptions?: DevCenterDataCollectionReferenceOptions;
|
|
55
|
+
}
|
|
56
|
+
type DevCenterDataCollectionFieldType = "ADDRESS" | "ANY" | "ARRAY" | "ARRAY_DOCUMENT" | "ARRAY_STRING" | "AUDIO" | "BOOLEAN" | "DATE" | "DATETIME" | "DOCUMENT" | "IMAGE" | "LANGUAGE" | "MEDIA_GALLERY" | "MULTI_REFERENCE" | "NUMBER" | "OBJECT" | "REFERENCE" | "RICH_CONTENT" | "RICH_TEXT" | "TEXT" | "TIME" | "URL" | "VIDEO";
|
|
57
|
+
interface DevCenterDataCollectionIndex {
|
|
58
|
+
fields: DevCenterDataCollectionIndexField[];
|
|
59
|
+
unique?: boolean;
|
|
60
|
+
}
|
|
61
|
+
interface DevCenterDataCollectionIndexField {
|
|
62
|
+
order?: DevCenterDataCollectionIndexOrder;
|
|
63
|
+
path: string;
|
|
64
|
+
}
|
|
65
|
+
type DevCenterDataCollectionIndexOrder = "ASC" | "DESC";
|
|
66
|
+
interface DevCenterDataCollectionMultiReferenceOptions {
|
|
67
|
+
referencedCollectionId: string;
|
|
68
|
+
}
|
|
69
|
+
interface DevCenterDataCollectionObjectField {
|
|
70
|
+
type: DevCenterDataCollectionFieldType;
|
|
71
|
+
arrayOptions?: DevCenterDataCollectionArrayOptions;
|
|
72
|
+
displayName?: string;
|
|
73
|
+
key: string;
|
|
74
|
+
objectOptions?: DevCenterDataCollectionObjectOptions;
|
|
75
|
+
}
|
|
76
|
+
interface DevCenterDataCollectionObjectOptions {
|
|
77
|
+
fields: DevCenterDataCollectionObjectField[];
|
|
78
|
+
}
|
|
79
|
+
interface DevCenterDataCollectionPermissions {
|
|
80
|
+
itemInsert: DevCenterDataCollectionAccessLevel;
|
|
81
|
+
itemRead: DevCenterDataCollectionAccessLevel;
|
|
82
|
+
itemRemove: DevCenterDataCollectionAccessLevel;
|
|
83
|
+
itemUpdate: DevCenterDataCollectionAccessLevel;
|
|
84
|
+
}
|
|
85
|
+
interface DevCenterDataCollectionReferenceOptions {
|
|
86
|
+
referencedCollectionId: string;
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
29
89
|
//#region ../dev-center-schemas/src/components/site-plugin.d.ts
|
|
30
90
|
interface DevCenterSitePluginMarketData {
|
|
31
91
|
name?: string;
|
|
@@ -45,20 +105,31 @@ interface DevCenterWebhookCompData {
|
|
|
45
105
|
}
|
|
46
106
|
//#endregion
|
|
47
107
|
//#region ../astro-backend-extensions/src/builders/bookingsStaffSorting.d.ts
|
|
48
|
-
interface Options$
|
|
108
|
+
interface Options$14 {
|
|
49
109
|
id: string;
|
|
50
110
|
name: string;
|
|
111
|
+
createdBy?: CreatedByConfig;
|
|
51
112
|
dashboardPluginId?: string;
|
|
52
113
|
methodDescription: string;
|
|
53
114
|
methodName: string;
|
|
54
115
|
source: string;
|
|
55
116
|
}
|
|
56
|
-
declare function bookingsStaffSortingProvider(options: Options$
|
|
117
|
+
declare function bookingsStaffSortingProvider(options: Options$14): GenericExtension;
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region ../astro-backend-extensions/src/builders/dataCollections.d.ts
|
|
120
|
+
interface Options$13 {
|
|
121
|
+
id: string;
|
|
122
|
+
name: string;
|
|
123
|
+
collections: DevCenterDataCollection[];
|
|
124
|
+
createdBy?: CreatedByConfig;
|
|
125
|
+
}
|
|
126
|
+
declare function dataCollections(options: Options$13): GenericExtension;
|
|
57
127
|
//#endregion
|
|
58
128
|
//#region ../astro-backend-extensions/src/builders/ecomAdditionalFees.d.ts
|
|
59
129
|
interface Options$12 {
|
|
60
130
|
id: string;
|
|
61
131
|
name: string;
|
|
132
|
+
createdBy?: CreatedByConfig;
|
|
62
133
|
source: string;
|
|
63
134
|
}
|
|
64
135
|
declare function ecomAdditionalFees(options: Options$12): GenericExtension;
|
|
@@ -67,6 +138,7 @@ declare function ecomAdditionalFees(options: Options$12): GenericExtension;
|
|
|
67
138
|
interface Options$11 {
|
|
68
139
|
id: string;
|
|
69
140
|
name: string;
|
|
141
|
+
createdBy?: CreatedByConfig;
|
|
70
142
|
source: string;
|
|
71
143
|
}
|
|
72
144
|
declare function ecomDiscountTriggers(options: Options$11): GenericExtension;
|
|
@@ -75,6 +147,7 @@ declare function ecomDiscountTriggers(options: Options$11): GenericExtension;
|
|
|
75
147
|
interface Options$10 {
|
|
76
148
|
id: string;
|
|
77
149
|
name: string;
|
|
150
|
+
createdBy?: CreatedByConfig;
|
|
78
151
|
source: string;
|
|
79
152
|
}
|
|
80
153
|
declare function ecomGiftCards(options: Options$10): GenericExtension;
|
|
@@ -83,6 +156,7 @@ declare function ecomGiftCards(options: Options$10): GenericExtension;
|
|
|
83
156
|
interface Options$9 {
|
|
84
157
|
id: string;
|
|
85
158
|
name: string;
|
|
159
|
+
createdBy?: CreatedByConfig;
|
|
86
160
|
fallbackValueForRequires3dSecure?: boolean;
|
|
87
161
|
source: string;
|
|
88
162
|
}
|
|
@@ -92,6 +166,7 @@ declare function ecomPaymentSettings(options: Options$9): GenericExtension;
|
|
|
92
166
|
interface Options$8 {
|
|
93
167
|
id: string;
|
|
94
168
|
name: string;
|
|
169
|
+
createdBy?: CreatedByConfig;
|
|
95
170
|
dashboardUrl?: string;
|
|
96
171
|
description?: string;
|
|
97
172
|
fallbackDefinitionMandatory?: boolean;
|
|
@@ -105,6 +180,7 @@ declare function ecomShippingRates(options: Options$8): GenericExtension;
|
|
|
105
180
|
interface Options$7 {
|
|
106
181
|
id: string;
|
|
107
182
|
name: string;
|
|
183
|
+
createdBy?: CreatedByConfig;
|
|
108
184
|
source: string;
|
|
109
185
|
validateInCart?: boolean;
|
|
110
186
|
}
|
|
@@ -113,6 +189,7 @@ declare function ecomValidations(options: Options$7): GenericExtension;
|
|
|
113
189
|
//#region ../astro-backend-extensions/src/builders/webhook.d.ts
|
|
114
190
|
interface Options$6 {
|
|
115
191
|
id: string;
|
|
192
|
+
createdBy?: CreatedByConfig;
|
|
116
193
|
source: string;
|
|
117
194
|
}
|
|
118
195
|
declare function webhook(options: Options$6): GenericExtension;
|
|
@@ -138,6 +215,7 @@ interface Options$3 {
|
|
|
138
215
|
id: string;
|
|
139
216
|
name: string;
|
|
140
217
|
behaviors?: DevCenterCustomElementBehaviors;
|
|
218
|
+
createdBy?: CreatedByConfig;
|
|
141
219
|
element: string;
|
|
142
220
|
height: DevCenterCustomElementSize["height"];
|
|
143
221
|
installation: {
|
|
@@ -159,6 +237,7 @@ interface SitePlugin extends BaseExtension {
|
|
|
159
237
|
interface Options$2 {
|
|
160
238
|
id: string;
|
|
161
239
|
name: string;
|
|
240
|
+
createdBy?: CreatedByConfig;
|
|
162
241
|
element: string;
|
|
163
242
|
installation: {
|
|
164
243
|
autoAdd: boolean;
|
|
@@ -178,6 +257,7 @@ interface EmbeddedScript extends BaseExtension {
|
|
|
178
257
|
interface Options$1 {
|
|
179
258
|
id: string;
|
|
180
259
|
name: string;
|
|
260
|
+
createdBy?: CreatedByConfig;
|
|
181
261
|
placement: "BODY_END" | "BODY_START" | "HEAD";
|
|
182
262
|
scriptType: "ADVERTISING" | "ANALYTICS" | "ESSENTIAL" | "FUNCTIONAL";
|
|
183
263
|
source: string;
|
|
@@ -192,6 +272,7 @@ interface SiteComponentPanel extends BaseExtension {
|
|
|
192
272
|
interface PanelOptions {
|
|
193
273
|
id: string;
|
|
194
274
|
component: string;
|
|
275
|
+
createdBy?: CreatedByConfig;
|
|
195
276
|
displayName: string;
|
|
196
277
|
referenceId?: string;
|
|
197
278
|
size: {
|
|
@@ -205,7 +286,7 @@ declare function siteComponentPanel(options: PanelOptions): SiteComponentPanel;
|
|
|
205
286
|
interface PresetOptions {
|
|
206
287
|
[key: string]: unknown;
|
|
207
288
|
displayName: string;
|
|
208
|
-
presetCssUrl
|
|
289
|
+
presetCssUrl?: string;
|
|
209
290
|
thumbnailUrl?: string;
|
|
210
291
|
}
|
|
211
292
|
interface SiteComponent extends BaseExtension {
|
|
@@ -215,6 +296,7 @@ interface SiteComponent extends BaseExtension {
|
|
|
215
296
|
interface Options {
|
|
216
297
|
id: string;
|
|
217
298
|
type: string;
|
|
299
|
+
createdBy?: CreatedByConfig;
|
|
218
300
|
description: string;
|
|
219
301
|
editorElement: {
|
|
220
302
|
[key: string]: unknown;
|
|
@@ -245,4 +327,4 @@ interface Options {
|
|
|
245
327
|
}
|
|
246
328
|
declare function siteComponent(options: Options): SiteComponent;
|
|
247
329
|
//#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 };
|
|
330
|
+
export { customElement as a, webhook as c, ecomPaymentSettings as d, ecomGiftCards as f, bookingsStaffSortingProvider as g, dataCollections 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 };
|
|
@@ -8,12 +8,19 @@ interface BaseDevCenterComponent {
|
|
|
8
8
|
compName?: string;
|
|
9
9
|
compType: string;
|
|
10
10
|
compData: unknown;
|
|
11
|
+
createdBy?: CreatedBy;
|
|
12
|
+
createdByVersion?: string;
|
|
11
13
|
}
|
|
14
|
+
type CreatedBy = "BLOCKS" | "CLI" | "CODE_GEN" | "ONE_CLI";
|
|
12
15
|
//#endregion
|
|
13
16
|
//#region ../astro-core/src/types.d.ts
|
|
14
17
|
interface BaseExtension {
|
|
15
18
|
type: string;
|
|
16
19
|
}
|
|
20
|
+
interface CreatedByConfig {
|
|
21
|
+
author: CreatedBy;
|
|
22
|
+
version?: string;
|
|
23
|
+
}
|
|
17
24
|
//#endregion
|
|
18
25
|
//#region ../astro-core/src/builders/app.d.ts
|
|
19
26
|
declare class App {
|
|
@@ -29,4 +36,4 @@ interface GenericExtension {
|
|
|
29
36
|
}
|
|
30
37
|
declare function genericExtension(options: BaseDevCenterComponent): GenericExtension;
|
|
31
38
|
//#endregion
|
|
32
|
-
export { BaseExtension as i, genericExtension as n, app as r, GenericExtension as t };
|
|
39
|
+
export { CreatedByConfig as a, BaseExtension as i, genericExtension as n, app as r, GenericExtension as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as extensions } from "./builders-
|
|
1
|
+
import "./index-CoKN90t5.mjs";
|
|
2
|
+
import "./index-COP9ajJ2.mjs";
|
|
3
|
+
import { n as extensions } from "./builders-DYLPo6Ug.mjs";
|
|
4
4
|
import { AstroIntegration } from "astro";
|
|
5
5
|
|
|
6
6
|
//#region src/index.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as WebhookBundlerType, v as ServicePluginBundlerType } from "./builders-
|
|
2
|
-
import { n as extensions } from "./builders-
|
|
1
|
+
import { g as WebhookBundlerType, v as ServicePluginBundlerType } from "./builders-CLzxQGot.mjs";
|
|
2
|
+
import { n as extensions } from "./builders-BfhSDmXU.mjs";
|
|
3
3
|
import { r as ContextProviderClientBundlerType, t as ContextProviderEditorBundlerType } from "./context-provider-editor-BaSPz-u-.mjs";
|
|
4
4
|
import { t as TrustedBackofficeComponentBundlerType } from "./trusted-backoffice-component-CCg08AU1.mjs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
@@ -1210,7 +1210,9 @@ function createExtensionManifest(extension, baseUrl) {
|
|
|
1210
1210
|
iconKey: extension.options.iconKey,
|
|
1211
1211
|
subtitle: extension.options.subtitle,
|
|
1212
1212
|
title: extension.options.title
|
|
1213
|
-
} }
|
|
1213
|
+
} },
|
|
1214
|
+
createdBy: extension.options.createdBy?.author,
|
|
1215
|
+
createdByVersion: extension.options.createdBy?.version
|
|
1214
1216
|
};
|
|
1215
1217
|
case "BackofficeExtensionWidget": return {
|
|
1216
1218
|
compId: extension.options.id,
|
|
@@ -1223,7 +1225,9 @@ function createExtensionManifest(extension, baseUrl) {
|
|
|
1223
1225
|
hostingPlatform: "BUSINESS_MANAGER",
|
|
1224
1226
|
iframeUrl,
|
|
1225
1227
|
title: extension.options.title
|
|
1226
|
-
} }
|
|
1228
|
+
} },
|
|
1229
|
+
createdBy: extension.options.createdBy?.author,
|
|
1230
|
+
createdByVersion: extension.options.createdBy?.version
|
|
1227
1231
|
};
|
|
1228
1232
|
case "BackofficeModal": return {
|
|
1229
1233
|
compId: extension.options.id,
|
|
@@ -1236,7 +1240,9 @@ function createExtensionManifest(extension, baseUrl) {
|
|
|
1236
1240
|
iframeUrl,
|
|
1237
1241
|
title: extension.options.title,
|
|
1238
1242
|
width: extension.options.width
|
|
1239
|
-
} }
|
|
1243
|
+
} },
|
|
1244
|
+
createdBy: extension.options.createdBy?.author,
|
|
1245
|
+
createdByVersion: extension.options.createdBy?.version
|
|
1240
1246
|
};
|
|
1241
1247
|
case "BackofficePage": return {
|
|
1242
1248
|
compId: extension.options.id,
|
|
@@ -1247,7 +1253,9 @@ function createExtensionManifest(extension, baseUrl) {
|
|
|
1247
1253
|
iframeUrl,
|
|
1248
1254
|
routePath: extension.options.routePath,
|
|
1249
1255
|
title: extension.options.title
|
|
1250
|
-
} }
|
|
1256
|
+
} },
|
|
1257
|
+
createdBy: extension.options.createdBy?.author,
|
|
1258
|
+
createdByVersion: extension.options.createdBy?.version
|
|
1251
1259
|
};
|
|
1252
1260
|
}
|
|
1253
1261
|
}
|
|
@@ -8001,6 +8009,10 @@ async function generateAppManifest({ integrations, model }) {
|
|
|
8001
8009
|
if (current != null) appManifest.components[index] = await updater(current);
|
|
8002
8010
|
}
|
|
8003
8011
|
});
|
|
8012
|
+
appManifest.components = appManifest.components.map((component) => ({
|
|
8013
|
+
...component,
|
|
8014
|
+
createdBy: component.createdBy ?? "ONE_CLI"
|
|
8015
|
+
}));
|
|
8004
8016
|
return toJsonString(appManifest).replaceAll("{{BASE_URL}}", staticsUrlPlaceholder);
|
|
8005
8017
|
}
|
|
8006
8018
|
|
|
@@ -19997,7 +20009,9 @@ const createIntegration$13 = () => {
|
|
|
19997
20009
|
height: extension.options.height,
|
|
19998
20010
|
width: extension.options.width
|
|
19999
20011
|
}
|
|
20000
|
-
} }
|
|
20012
|
+
} },
|
|
20013
|
+
createdBy: extension.options.createdBy?.author,
|
|
20014
|
+
createdByVersion: extension.options.createdBy?.version
|
|
20001
20015
|
});
|
|
20002
20016
|
break;
|
|
20003
20017
|
case "SitePlugin": {
|
|
@@ -20024,7 +20038,9 @@ const createIntegration$13 = () => {
|
|
|
20024
20038
|
stretchByDefault: true
|
|
20025
20039
|
}
|
|
20026
20040
|
}
|
|
20027
|
-
} }
|
|
20041
|
+
} },
|
|
20042
|
+
createdBy: extension.options.createdBy?.author,
|
|
20043
|
+
createdByVersion: extension.options.createdBy?.version
|
|
20028
20044
|
});
|
|
20029
20045
|
components.push({
|
|
20030
20046
|
compId: extension.options.id,
|
|
@@ -20042,7 +20058,9 @@ const createIntegration$13 = () => {
|
|
|
20042
20058
|
},
|
|
20043
20059
|
placements: extension.options.placements,
|
|
20044
20060
|
referenceComponentId
|
|
20045
|
-
} }
|
|
20061
|
+
} },
|
|
20062
|
+
createdBy: extension.options.createdBy?.author,
|
|
20063
|
+
createdByVersion: extension.options.createdBy?.version
|
|
20046
20064
|
});
|
|
20047
20065
|
break;
|
|
20048
20066
|
}
|
|
@@ -27212,7 +27230,9 @@ const createIntegration$12 = () => {
|
|
|
27212
27230
|
pages: "NONE_PAGES",
|
|
27213
27231
|
placement: extension.options.placement,
|
|
27214
27232
|
template: serialize(fragment)
|
|
27215
|
-
} }
|
|
27233
|
+
} },
|
|
27234
|
+
createdBy: extension.options.createdBy?.author,
|
|
27235
|
+
createdByVersion: extension.options.createdBy?.version
|
|
27216
27236
|
});
|
|
27217
27237
|
}
|
|
27218
27238
|
updateAppManifest({ components });
|
|
@@ -27650,10 +27670,13 @@ const createIntegration$11 = () => {
|
|
|
27650
27670
|
devServer: customDevServer,
|
|
27651
27671
|
extension
|
|
27652
27672
|
};
|
|
27673
|
+
const { createdBy, ...options } = extension.options;
|
|
27653
27674
|
components.push({
|
|
27654
27675
|
compId: extension.options.id,
|
|
27655
27676
|
compType: "EDITOR_FUNCTION_LIBRARY",
|
|
27656
|
-
compData: { editorFunctionLibrary: merge(cloneDeep(
|
|
27677
|
+
compData: { editorFunctionLibrary: merge(cloneDeep(options), { resources: getResources$2(buildContext) }) },
|
|
27678
|
+
createdBy: createdBy?.author,
|
|
27679
|
+
createdByVersion: createdBy?.version
|
|
27657
27680
|
});
|
|
27658
27681
|
}
|
|
27659
27682
|
updateAppManifest({ components });
|
|
@@ -27941,7 +27964,9 @@ const createIntegration$6 = () => {
|
|
|
27941
27964
|
displayName: extension.options.displayName,
|
|
27942
27965
|
referenceId: extension.options.referenceId,
|
|
27943
27966
|
size: extension.options.size
|
|
27944
|
-
} }
|
|
27967
|
+
} },
|
|
27968
|
+
createdBy: extension.options.createdBy?.author,
|
|
27969
|
+
createdByVersion: extension.options.createdBy?.version
|
|
27945
27970
|
});
|
|
27946
27971
|
}
|
|
27947
27972
|
updateAppManifest({ components });
|
|
@@ -27973,7 +27998,7 @@ function getSupportedExtensions$1({ extensions, srcDir }) {
|
|
|
27973
27998
|
const componentPresets = Object.entries(extension.options.editorElement.presets ?? {}).map(([name, config]) => ({
|
|
27974
27999
|
name,
|
|
27975
28000
|
config,
|
|
27976
|
-
path: join(srcDir, config.presetCssUrl)
|
|
28001
|
+
path: config.presetCssUrl !== void 0 ? join(srcDir, config.presetCssUrl) : void 0
|
|
27977
28002
|
}));
|
|
27978
28003
|
return {
|
|
27979
28004
|
...extension,
|
|
@@ -28126,7 +28151,7 @@ function getEntryNameForPreset(componentId, presetName) {
|
|
|
28126
28151
|
}
|
|
28127
28152
|
const getClientBuildConfig$1 = ({ createExtensionViteConfig, extension: { componentPresets, externals, options: { id } }, model }) => {
|
|
28128
28153
|
const input = { [getEntryNameForClientComponent(id)]: getVirtualModuleIdForClientComponent(id) };
|
|
28129
|
-
for (const { name, path } of componentPresets) input[getEntryNameForPreset(id, name)] = path;
|
|
28154
|
+
for (const { name, path } of componentPresets) if (path !== void 0) input[getEntryNameForPreset(id, name)] = path;
|
|
28130
28155
|
return createExtensionViteConfig({
|
|
28131
28156
|
name: join(extensionName$1, "client"),
|
|
28132
28157
|
config: {
|
|
@@ -28156,32 +28181,26 @@ function getPresets({ baseUrl, buildOutput, devServer, extension }) {
|
|
|
28156
28181
|
throw new Error("Unknown error: no build output or vite dev server");
|
|
28157
28182
|
}
|
|
28158
28183
|
function getPresetsBuild({ baseUrl, buildOutput, extension }) {
|
|
28159
|
-
return extension.componentPresets.reduce((acc, { name, config }) => {
|
|
28160
|
-
|
|
28161
|
-
|
|
28162
|
-
|
|
28163
|
-
|
|
28164
|
-
|
|
28165
|
-
|
|
28166
|
-
|
|
28167
|
-
|
|
28168
|
-
presetCssUrl: cssUrl
|
|
28169
|
-
};
|
|
28184
|
+
return extension.componentPresets.reduce((acc, { name, config, path }) => {
|
|
28185
|
+
acc[name] = { ...config };
|
|
28186
|
+
if (path !== void 0) {
|
|
28187
|
+
const { fileName } = getAssetForName({
|
|
28188
|
+
name: getEntryNameForPreset(extension.options.id, name),
|
|
28189
|
+
buildOutput
|
|
28190
|
+
});
|
|
28191
|
+
acc[name].presetCssUrl = appendToDevServerUrl(baseUrl, fileName);
|
|
28192
|
+
}
|
|
28170
28193
|
return acc;
|
|
28171
28194
|
}, {});
|
|
28172
28195
|
}
|
|
28173
28196
|
function getPresetsDev({ baseUrl, devServer, extension }) {
|
|
28174
28197
|
return extension.componentPresets.reduce((acc, { name, config, path }) => {
|
|
28175
|
-
|
|
28198
|
+
acc[name] = { ...config };
|
|
28199
|
+
if (path !== void 0) acc[name].presetCssUrl = getStyleUrlForFile({
|
|
28176
28200
|
baseUrl,
|
|
28177
28201
|
devServer,
|
|
28178
28202
|
filePath: path
|
|
28179
28203
|
});
|
|
28180
|
-
acc[name] = {
|
|
28181
|
-
...config,
|
|
28182
|
-
cssUrl,
|
|
28183
|
-
presetCssUrl: cssUrl
|
|
28184
|
-
};
|
|
28185
28204
|
return acc;
|
|
28186
28205
|
}, {});
|
|
28187
28206
|
}
|
|
@@ -28483,13 +28502,16 @@ const createIntegration$5 = () => {
|
|
|
28483
28502
|
devServer: customDevServer,
|
|
28484
28503
|
extension
|
|
28485
28504
|
};
|
|
28505
|
+
const { createdBy, ...options } = extension.options;
|
|
28486
28506
|
components.push({
|
|
28487
28507
|
compId: extension.options.id,
|
|
28488
28508
|
compType: "EDITOR_REACT_COMPONENT",
|
|
28489
|
-
compData: { editorReactComponent: merge(cloneDeep(
|
|
28509
|
+
compData: { editorReactComponent: merge(cloneDeep(options), {
|
|
28490
28510
|
editorElement: { presets: getPresets(buildContext) },
|
|
28491
28511
|
resources: getResources(buildContext)
|
|
28492
|
-
}) }
|
|
28512
|
+
}) },
|
|
28513
|
+
createdBy: createdBy?.author,
|
|
28514
|
+
createdByVersion: createdBy?.version
|
|
28493
28515
|
});
|
|
28494
28516
|
}
|
|
28495
28517
|
updateAppManifest({ components });
|
|
@@ -29133,13 +29155,16 @@ const createIntegration$1 = () => {
|
|
|
29133
29155
|
devServer: customDevServer,
|
|
29134
29156
|
extension
|
|
29135
29157
|
};
|
|
29158
|
+
const { createdBy, ...options } = extension.options;
|
|
29136
29159
|
components.push({
|
|
29137
29160
|
compId: extension.options.id,
|
|
29138
29161
|
compType: "VIEWER_SERVICE",
|
|
29139
|
-
compData: { viewerService: merge(cloneDeep(
|
|
29162
|
+
compData: { viewerService: merge(cloneDeep(options), {
|
|
29140
29163
|
editor: getEditorAssets(buildContext),
|
|
29141
29164
|
viewer: getViewerAssets(buildContext)
|
|
29142
|
-
}) }
|
|
29165
|
+
}) },
|
|
29166
|
+
createdBy: createdBy?.author,
|
|
29167
|
+
createdByVersion: createdBy?.version
|
|
29143
29168
|
});
|
|
29144
29169
|
}
|
|
29145
29170
|
updateAppManifest({ components });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/astro",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.37.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@wix/auth-management": "^1.0.71",
|
|
6
6
|
"@wix/dashboard": "^1.3.43",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
]
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
|
-
"falconPackageHash": "
|
|
79
|
+
"falconPackageHash": "a2b2984509339bc6905b1b57bfcbcc6e86ab6a356aa20d8803c0e58e"
|
|
80
80
|
}
|