@wix/cli-app 1.1.126 → 1.1.128
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/{AddPermissionCommand-4KBT3UEO.js → AddPermissionCommand-RPRDHKFT.js} +2 -2
- package/build/{DevCommand-XHPQCRLQ.js → DevCommand-P65ORV7L.js} +10 -10
- package/build/{GenerateCommand-SWNFGTMF.js → GenerateCommand-VL6Y3C5L.js} +7 -7
- package/build/{LogsCommand-KB6RLF4U.js → LogsCommand-6QR5HKHU.js} +3 -3
- package/build/PreviewCommand-4JEZR4WW.js +19 -0
- package/build/ReleaseCommand-422A6W24.js +23 -0
- package/build/{ServeCommand-LTEYN4BP.js → ServeCommand-ERWN7H6G.js} +3 -3
- package/build/{build-45REWBBU.js → build-337EBBZO.js} +34 -12
- package/build/build-337EBBZO.js.map +1 -0
- package/build/{chunk-IZHIX2TH.js → chunk-6W4JMTTK.js} +46 -2
- package/build/chunk-6W4JMTTK.js.map +1 -0
- package/build/{chunk-JYBUXFM2.js → chunk-7UOP6QJJ.js} +4 -4
- package/build/{chunk-4NJK2T2E.js → chunk-DAS4QYL5.js} +2 -2
- package/build/{chunk-2NL5XLAV.js → chunk-DK6F42BS.js} +147 -10
- package/build/{chunk-2NL5XLAV.js.map → chunk-DK6F42BS.js.map} +1 -1
- package/build/{chunk-F7VDDMJ2.js → chunk-DTBU65A4.js} +2 -2
- package/build/{chunk-NOFDNNIP.js → chunk-FBO2TLHC.js} +3 -3
- package/build/{chunk-6B55IRBV.js → chunk-GR477WMA.js} +2 -2
- package/build/{chunk-XBM2N7YZ.js → chunk-HJT5ALIX.js} +2 -2
- package/build/{chunk-TDRWEF2B.js → chunk-HRFRSOBP.js} +4 -4
- package/build/{chunk-A6VMLDIX.js → chunk-JT2I67PF.js} +2 -2
- package/build/{chunk-3ZWZQAA3.js → chunk-JWZ2JWEU.js} +7 -7
- package/build/{chunk-3ZWZQAA3.js.map → chunk-JWZ2JWEU.js.map} +1 -1
- package/build/{chunk-62ODBQND.js → chunk-PUCNUVCG.js} +6 -6
- package/build/{chunk-TMUISA2Z.js → chunk-ROXDRBZW.js} +6 -6
- package/build/{chunk-YXMQAR4L.js → chunk-TWBUWLZT.js} +2 -2
- package/build/{chunk-RU6JT53E.js → chunk-W27M7FJQ.js} +2 -2
- package/build/{chunk-CMBNHN5R.js → chunk-W4K4O6VW.js} +2 -2
- package/build/{chunk-2DDAFTMT.js → chunk-XROEFK43.js} +168 -65
- package/build/chunk-XROEFK43.js.map +1 -0
- package/build/index.js +23 -23
- package/build/platform-sdk/editor.js +2 -2
- package/build/platform-sdk/editor.js.map +1 -1
- package/build/platform-sdk/site.js +1 -1
- package/build/platform-sdk/site.js.map +1 -1
- package/build/{preview-UEVMLVY4.js → preview-Q5JUEKFC.js} +12 -12
- package/build/{release-2R6C5TVB.js → release-G726XERA.js} +14 -14
- package/build/{render-command-WTRCTYH3.js → render-command-74GTA22T.js} +5 -5
- package/package.json +4 -4
- package/build/PreviewCommand-JAYWK572.js +0 -19
- package/build/ReleaseCommand-L5EVCMGK.js +0 -23
- package/build/build-45REWBBU.js.map +0 -1
- package/build/chunk-2DDAFTMT.js.map +0 -1
- package/build/chunk-IZHIX2TH.js.map +0 -1
- /package/build/{AddPermissionCommand-4KBT3UEO.js.map → AddPermissionCommand-RPRDHKFT.js.map} +0 -0
- /package/build/{DevCommand-XHPQCRLQ.js.map → DevCommand-P65ORV7L.js.map} +0 -0
- /package/build/{GenerateCommand-SWNFGTMF.js.map → GenerateCommand-VL6Y3C5L.js.map} +0 -0
- /package/build/{LogsCommand-KB6RLF4U.js.map → LogsCommand-6QR5HKHU.js.map} +0 -0
- /package/build/{PreviewCommand-JAYWK572.js.map → PreviewCommand-4JEZR4WW.js.map} +0 -0
- /package/build/{ReleaseCommand-L5EVCMGK.js.map → ReleaseCommand-422A6W24.js.map} +0 -0
- /package/build/{ServeCommand-LTEYN4BP.js.map → ServeCommand-ERWN7H6G.js.map} +0 -0
- /package/build/{chunk-JYBUXFM2.js.map → chunk-7UOP6QJJ.js.map} +0 -0
- /package/build/{chunk-4NJK2T2E.js.map → chunk-DAS4QYL5.js.map} +0 -0
- /package/build/{chunk-F7VDDMJ2.js.map → chunk-DTBU65A4.js.map} +0 -0
- /package/build/{chunk-NOFDNNIP.js.map → chunk-FBO2TLHC.js.map} +0 -0
- /package/build/{chunk-6B55IRBV.js.map → chunk-GR477WMA.js.map} +0 -0
- /package/build/{chunk-XBM2N7YZ.js.map → chunk-HJT5ALIX.js.map} +0 -0
- /package/build/{chunk-TDRWEF2B.js.map → chunk-HRFRSOBP.js.map} +0 -0
- /package/build/{chunk-A6VMLDIX.js.map → chunk-JT2I67PF.js.map} +0 -0
- /package/build/{chunk-62ODBQND.js.map → chunk-PUCNUVCG.js.map} +0 -0
- /package/build/{chunk-TMUISA2Z.js.map → chunk-ROXDRBZW.js.map} +0 -0
- /package/build/{chunk-YXMQAR4L.js.map → chunk-TWBUWLZT.js.map} +0 -0
- /package/build/{chunk-RU6JT53E.js.map → chunk-W27M7FJQ.js.map} +0 -0
- /package/build/{chunk-CMBNHN5R.js.map → chunk-W4K4O6VW.js.map} +0 -0
- /package/build/{preview-UEVMLVY4.js.map → preview-Q5JUEKFC.js.map} +0 -0
- /package/build/{release-2R6C5TVB.js.map → release-G726XERA.js.map} +0 -0
- /package/build/{render-command-WTRCTYH3.js.map → render-command-74GTA22T.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
readAppManifestFile
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FBO2TLHC.js";
|
|
6
6
|
import {
|
|
7
7
|
ArmTagProvider,
|
|
8
8
|
ExtensionDataProvider,
|
|
@@ -16,16 +16,16 @@ import {
|
|
|
16
16
|
useResolvePlatformUrl,
|
|
17
17
|
useSite,
|
|
18
18
|
useSiteOverrideClient
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JWZ2JWEU.js";
|
|
20
20
|
import {
|
|
21
21
|
useBackendComponents
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DAS4QYL5.js";
|
|
23
23
|
import {
|
|
24
24
|
getMonitoringProvider,
|
|
25
25
|
updateAppManifestComponents,
|
|
26
26
|
updateMonitoring,
|
|
27
27
|
updateTopology
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-XROEFK43.js";
|
|
29
29
|
import {
|
|
30
30
|
Alert,
|
|
31
31
|
Box_default,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
useHttpClient,
|
|
55
55
|
useProjectModel,
|
|
56
56
|
useTranslation
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-DK6F42BS.js";
|
|
58
58
|
import {
|
|
59
59
|
__toESM,
|
|
60
60
|
init_esm_shims
|
|
@@ -282,4 +282,4 @@ export {
|
|
|
282
282
|
assertBuildOutputExists,
|
|
283
283
|
PreviewCommand
|
|
284
284
|
};
|
|
285
|
-
//# sourceMappingURL=chunk-
|
|
285
|
+
//# sourceMappingURL=chunk-PUCNUVCG.js.map
|
|
@@ -3,16 +3,16 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PreviewCommand,
|
|
5
5
|
assertBuildOutputExists
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PUCNUVCG.js";
|
|
7
7
|
import {
|
|
8
8
|
useARMClient
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JWZ2JWEU.js";
|
|
10
10
|
import {
|
|
11
11
|
useWixCliAppBi
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GR477WMA.js";
|
|
13
13
|
import {
|
|
14
14
|
useBackendComponents
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DAS4QYL5.js";
|
|
16
16
|
import {
|
|
17
17
|
Alert,
|
|
18
18
|
Box_default,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
useAsyncCallback,
|
|
37
37
|
useProjectModel,
|
|
38
38
|
useTranslation
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-DK6F42BS.js";
|
|
40
40
|
import {
|
|
41
41
|
__toESM,
|
|
42
42
|
init_esm_shims
|
|
@@ -399,4 +399,4 @@ export {
|
|
|
399
399
|
ReleaseVersionType,
|
|
400
400
|
ReleaseCommand
|
|
401
401
|
};
|
|
402
|
-
//# sourceMappingURL=chunk-
|
|
402
|
+
//# sourceMappingURL=chunk-ROXDRBZW.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
require_lib,
|
|
11
11
|
require_react,
|
|
12
12
|
useTranslation
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DK6F42BS.js";
|
|
14
14
|
import {
|
|
15
15
|
__toESM,
|
|
16
16
|
init_esm_shims
|
|
@@ -179,4 +179,4 @@ export {
|
|
|
179
179
|
docsExtensionTypeSchema,
|
|
180
180
|
getGenerateFlowByDocsExtensionType
|
|
181
181
|
};
|
|
182
|
-
//# sourceMappingURL=chunk-
|
|
182
|
+
//# sourceMappingURL=chunk-TWBUWLZT.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
isCliSystemError,
|
|
6
6
|
wixCliCliCommand,
|
|
7
7
|
wixCliCliCommandStatus
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DK6F42BS.js";
|
|
9
9
|
import {
|
|
10
10
|
__commonJS,
|
|
11
11
|
__toESM,
|
|
@@ -594,4 +594,4 @@ export {
|
|
|
594
594
|
addUserFields,
|
|
595
595
|
reportCommandStartEvent
|
|
596
596
|
};
|
|
597
|
-
//# sourceMappingURL=chunk-
|
|
597
|
+
//# sourceMappingURL=chunk-W27M7FJQ.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
readJson,
|
|
12
12
|
require_lib,
|
|
13
13
|
writeJson
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DK6F42BS.js";
|
|
15
15
|
import {
|
|
16
16
|
__toESM,
|
|
17
17
|
init_esm_shims
|
|
@@ -351,4 +351,4 @@ export {
|
|
|
351
351
|
getRepoType,
|
|
352
352
|
createPackageManager
|
|
353
353
|
};
|
|
354
|
-
//# sourceMappingURL=chunk-
|
|
354
|
+
//# sourceMappingURL=chunk-W4K4O6VW.js.map
|
|
@@ -3,7 +3,7 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getBackendEventSlug,
|
|
5
5
|
require_baseUniq
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6W4JMTTK.js";
|
|
7
7
|
import {
|
|
8
8
|
API_BASEURL_PLACEHOLDER,
|
|
9
9
|
AlgorithmType,
|
|
@@ -33,20 +33,22 @@ import {
|
|
|
33
33
|
MonitoringType,
|
|
34
34
|
PRESETS_DIR,
|
|
35
35
|
PanelContentType,
|
|
36
|
+
PanelMode,
|
|
36
37
|
RELATIVE_ASSET_PATH_REGEX,
|
|
37
38
|
RegionType,
|
|
38
39
|
SERVICE_PLUGINS_PATTERN,
|
|
40
|
+
SITE_COMPONENTS_CLIENT_STATICS_FOLDER,
|
|
39
41
|
SITE_COMPONENTS_PANEL_PATTERN,
|
|
40
42
|
SITE_COMPONENTS_PATTERN,
|
|
41
43
|
SITE_COMPONENTS_PRESETS_PATTERN,
|
|
42
44
|
SITE_COMPONENTS_PREVIEW_PATTERN,
|
|
43
45
|
SITE_COMPONENTS_SDK_PATTERN,
|
|
46
|
+
SITE_COMPONENTS_SERVER_STATICS_FOLDER,
|
|
44
47
|
SITE_COMPONENTS_VITE_CACHE_DIR,
|
|
45
48
|
SITE_PLUGINS_PANEL_PATTERN,
|
|
46
49
|
SITE_PLUGINS_PLUGIN_PATTERN,
|
|
47
50
|
SITE_WIDGETS_ELEMENT_PATTERN,
|
|
48
51
|
SITE_WIDGETS_PANEL_PATTERN,
|
|
49
|
-
SSR_STATICS_FOLDER,
|
|
50
52
|
WEB_METHOD_PATTERN,
|
|
51
53
|
WIX_CONFIG_FILENAME,
|
|
52
54
|
WORKER_STATICS_FOLDER,
|
|
@@ -91,7 +93,7 @@ import {
|
|
|
91
93
|
virtualSiteComponentPreviewScriptAssets,
|
|
92
94
|
virtualSiteComponentScriptAssets,
|
|
93
95
|
virtualSiteComponentSdkScriptAssets
|
|
94
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-DK6F42BS.js";
|
|
95
97
|
import {
|
|
96
98
|
__commonJS,
|
|
97
99
|
__esm,
|
|
@@ -38840,7 +38842,6 @@ var moduleBundleBuildBrowser = ({
|
|
|
38840
38842
|
const virtualDashboardAssets = virtualDashboardScriptAssets(initialModel);
|
|
38841
38843
|
const virtualCustomElementAssets = virtualCustomElementScriptAssets(initialModel);
|
|
38842
38844
|
const virtualCustomElementPanelAssets = virtualCustomElementPanelScriptAssets(initialModel);
|
|
38843
|
-
const virtualSiteComponentAssets = virtualSiteComponentScriptAssets(initialModel);
|
|
38844
38845
|
const virtualSiteComponentSdkAssets = virtualSiteComponentSdkScriptAssets(initialModel);
|
|
38845
38846
|
const virtualSiteComponentPreviewAssets = virtualSiteComponentPreviewScriptAssets(initialModel);
|
|
38846
38847
|
const virtualSiteComponentPanelAssets = virtualSiteComponentPanelScriptAssets(initialModel);
|
|
@@ -38849,7 +38850,7 @@ var moduleBundleBuildBrowser = ({
|
|
|
38849
38850
|
apply: "build",
|
|
38850
38851
|
resolveId(rawId) {
|
|
38851
38852
|
const id = cleanId(rawId);
|
|
38852
|
-
if (virtualDashboardAssets.has(id) || virtualCustomElementAssets.has(id) || virtualCustomElementPanelAssets.has(id) ||
|
|
38853
|
+
if (virtualDashboardAssets.has(id) || virtualCustomElementAssets.has(id) || virtualCustomElementPanelAssets.has(id) || virtualSiteComponentSdkAssets.has(id) || virtualSiteComponentPreviewAssets.has(id) || virtualSiteComponentPanelAssets.has(id)) {
|
|
38853
38854
|
return id;
|
|
38854
38855
|
}
|
|
38855
38856
|
return null;
|
|
@@ -38868,21 +38869,10 @@ var moduleBundleBuildBrowser = ({
|
|
|
38868
38869
|
if (customElementPanelComponent) {
|
|
38869
38870
|
return getCustomElementPanelBuildTemplate(customElementPanelComponent);
|
|
38870
38871
|
}
|
|
38871
|
-
const siteComponent = virtualSiteComponentAssets.get(id);
|
|
38872
|
-
if (siteComponent) {
|
|
38873
|
-
return getSiteComponentBuildTemplate(appId, siteComponent);
|
|
38874
|
-
}
|
|
38875
38872
|
const siteSdkComponent = virtualSiteComponentSdkAssets.get(id);
|
|
38876
38873
|
if (siteSdkComponent) {
|
|
38877
38874
|
return getSiteComponentSdkBuildTemplate(siteSdkComponent);
|
|
38878
38875
|
}
|
|
38879
|
-
const siteComponentPreview = virtualSiteComponentPreviewAssets.get(id);
|
|
38880
|
-
if (siteComponentPreview) {
|
|
38881
|
-
return getSiteComponentPreviewBuildTemplate(
|
|
38882
|
-
appId,
|
|
38883
|
-
siteComponentPreview
|
|
38884
|
-
);
|
|
38885
|
-
}
|
|
38886
38876
|
const siteComponentPanel = virtualSiteComponentPanelAssets.get(id);
|
|
38887
38877
|
if (siteComponentPanel) {
|
|
38888
38878
|
return getSiteComponentPanelBuildTemplate(siteComponentPanel);
|
|
@@ -38891,7 +38881,7 @@ var moduleBundleBuildBrowser = ({
|
|
|
38891
38881
|
}
|
|
38892
38882
|
};
|
|
38893
38883
|
};
|
|
38894
|
-
var
|
|
38884
|
+
var moduleBundleBuildBlocks = ({
|
|
38895
38885
|
initialModel
|
|
38896
38886
|
}) => {
|
|
38897
38887
|
const virtualBlocksWidgetAssets = virtualBlocksWidgetScriptAssets(initialModel);
|
|
@@ -38920,14 +38910,14 @@ var moduleBundleBuildWorker = ({
|
|
|
38920
38910
|
}
|
|
38921
38911
|
};
|
|
38922
38912
|
};
|
|
38923
|
-
var
|
|
38913
|
+
var moduleBundleBuildSiteComponents = ({
|
|
38924
38914
|
initialModel
|
|
38925
38915
|
}) => {
|
|
38926
38916
|
const { appId } = initialModel.config;
|
|
38927
38917
|
const virtualSiteComponentAssets = virtualSiteComponentScriptAssets(initialModel);
|
|
38928
38918
|
const virtualSiteComponentPreviewAssets = virtualSiteComponentPreviewScriptAssets(initialModel);
|
|
38929
38919
|
return {
|
|
38930
|
-
name: "wix:module-bundle-build-
|
|
38920
|
+
name: "wix:module-bundle-build-site-components",
|
|
38931
38921
|
apply: "build",
|
|
38932
38922
|
resolveId(rawId) {
|
|
38933
38923
|
const id = cleanId(rawId);
|
|
@@ -39349,7 +39339,8 @@ var panelComponentDataSchema = external_exports.object({
|
|
|
39349
39339
|
Width.UNKNOWN_WIDTH
|
|
39350
39340
|
]),
|
|
39351
39341
|
height: external_exports.number().min(150)
|
|
39352
|
-
}).optional()
|
|
39342
|
+
}).optional(),
|
|
39343
|
+
panelMode: external_exports.enum([PanelMode.overlay]).optional()
|
|
39353
39344
|
}).and(panelContentSchema);
|
|
39354
39345
|
var panelSchema = external_exports.object({
|
|
39355
39346
|
compId: external_exports.string(),
|
|
@@ -39990,8 +39981,11 @@ var updateBlocksComponents = (manifest, blocksComponents) => {
|
|
|
39990
39981
|
}
|
|
39991
39982
|
return { ...manifest, components: updatedExtensions };
|
|
39992
39983
|
};
|
|
39993
|
-
var BASE_URL_PLACEHOLDER = "https://
|
|
39994
|
-
var generateUrl = (path9) =>
|
|
39984
|
+
var BASE_URL_PLACEHOLDER = "https://__base_url_placeholder__/";
|
|
39985
|
+
var generateUrl = (path9) => {
|
|
39986
|
+
const url = new URL(path9, BASE_URL_PLACEHOLDER);
|
|
39987
|
+
return url.toString();
|
|
39988
|
+
};
|
|
39995
39989
|
var updateAppManifestComponents = ({
|
|
39996
39990
|
manifest,
|
|
39997
39991
|
backendServerUrl,
|
|
@@ -40023,7 +40017,7 @@ function getEmbeddedScriptEntries(model) {
|
|
|
40023
40017
|
return new Set(entries);
|
|
40024
40018
|
}
|
|
40025
40019
|
function getEmbeddedScriptHtmlUrl(filename) {
|
|
40026
|
-
return
|
|
40020
|
+
return generateUrl(filename);
|
|
40027
40021
|
}
|
|
40028
40022
|
function embeddedScriptSDKSupport(options) {
|
|
40029
40023
|
const { initialModel, type } = options;
|
|
@@ -40320,12 +40314,34 @@ function hashHtmlFiles() {
|
|
|
40320
40314
|
// src/vite/plugins/exports-custodian.ts
|
|
40321
40315
|
init_esm_shims();
|
|
40322
40316
|
var EXPORTS_CUSTODIAN_ENTRY = "virtual:wix-exports-custodian-entry";
|
|
40323
|
-
var
|
|
40317
|
+
var preserveSiteComponentPanelsExports = ({
|
|
40318
|
+
initialModel
|
|
40319
|
+
}) => {
|
|
40320
|
+
const virtualSiteComponentPanelAssets = virtualSiteComponentPanelScriptAssets(initialModel);
|
|
40321
|
+
return {
|
|
40322
|
+
name: "wix:site-components:preserve-exports-panels",
|
|
40323
|
+
apply: "build",
|
|
40324
|
+
resolveId(id) {
|
|
40325
|
+
if (id === EXPORTS_CUSTODIAN_ENTRY) {
|
|
40326
|
+
return id;
|
|
40327
|
+
}
|
|
40328
|
+
return null;
|
|
40329
|
+
},
|
|
40330
|
+
load(id) {
|
|
40331
|
+
if (id === EXPORTS_CUSTODIAN_ENTRY) {
|
|
40332
|
+
return [...virtualSiteComponentPanelAssets.keys()].map((path9) => `import('${path9}');`).join("\n");
|
|
40333
|
+
}
|
|
40334
|
+
return null;
|
|
40335
|
+
}
|
|
40336
|
+
};
|
|
40337
|
+
};
|
|
40338
|
+
var preserveSiteComponentComponentsExports = ({
|
|
40339
|
+
initialModel
|
|
40340
|
+
}) => {
|
|
40324
40341
|
const virtualSiteComponentAssets = virtualSiteComponentScriptAssets(initialModel);
|
|
40325
40342
|
const virtualSiteComponentPreviewAssets = virtualSiteComponentPreviewScriptAssets(initialModel);
|
|
40326
|
-
const virtualSiteComponentPanelAssets = virtualSiteComponentPanelScriptAssets(initialModel);
|
|
40327
40343
|
return {
|
|
40328
|
-
name: "wix:exports-
|
|
40344
|
+
name: "wix:site-components:preserve-exports-components",
|
|
40329
40345
|
apply: "build",
|
|
40330
40346
|
resolveId(id) {
|
|
40331
40347
|
if (id === EXPORTS_CUSTODIAN_ENTRY) {
|
|
@@ -40336,9 +40352,8 @@ var exportsCustodian = ({ initialModel }) => {
|
|
|
40336
40352
|
load(id) {
|
|
40337
40353
|
if (id === EXPORTS_CUSTODIAN_ENTRY) {
|
|
40338
40354
|
return [
|
|
40339
|
-
...virtualSiteComponentAssets.keys(),
|
|
40340
40355
|
...virtualSiteComponentPreviewAssets.keys(),
|
|
40341
|
-
...
|
|
40356
|
+
...virtualSiteComponentAssets.keys()
|
|
40342
40357
|
].map((path9) => `import('${path9}');`).join("\n");
|
|
40343
40358
|
}
|
|
40344
40359
|
return null;
|
|
@@ -40349,6 +40364,7 @@ var exportsCustodian = ({ initialModel }) => {
|
|
|
40349
40364
|
// src/vite/configs/build-command/base.ts
|
|
40350
40365
|
init_esm_shims();
|
|
40351
40366
|
import { join as join6 } from "node:path";
|
|
40367
|
+
import { normalizePath as normalizePath2 } from "vite";
|
|
40352
40368
|
|
|
40353
40369
|
// src/vite/plugins/web-methods-plugin.ts
|
|
40354
40370
|
init_esm_shims();
|
|
@@ -40505,9 +40521,15 @@ function getBaseViteConfig({ model, outputDir, customLogger }) {
|
|
|
40505
40521
|
emptyOutDir: false,
|
|
40506
40522
|
rollupOptions: {
|
|
40507
40523
|
output: {
|
|
40508
|
-
assetFileNames:
|
|
40509
|
-
|
|
40510
|
-
|
|
40524
|
+
assetFileNames: normalizePath2(
|
|
40525
|
+
join6(outputDir, "assets/[name].ch.[hash][extname]")
|
|
40526
|
+
),
|
|
40527
|
+
chunkFileNames: normalizePath2(
|
|
40528
|
+
join6(outputDir, "assets/[name].ch.[hash].js")
|
|
40529
|
+
),
|
|
40530
|
+
entryFileNames: normalizePath2(
|
|
40531
|
+
join6(outputDir, "assets/[name].ch.[hash].js")
|
|
40532
|
+
)
|
|
40511
40533
|
}
|
|
40512
40534
|
}
|
|
40513
40535
|
},
|
|
@@ -40546,21 +40568,12 @@ function getViteConfig2(model, options) {
|
|
|
40546
40568
|
const virtualCustomElementScriptEntries = [
|
|
40547
40569
|
...virtualCustomElementScriptAssets(model)
|
|
40548
40570
|
].map(([assetId, component]) => [`script-asset-${component.id}`, assetId]);
|
|
40549
|
-
const virtualSiteComponentScriptEntries = [
|
|
40550
|
-
...virtualSiteComponentScriptAssets(model)
|
|
40551
|
-
].map(([assetId, component]) => [`script-asset-${component.id}`, assetId]);
|
|
40552
40571
|
const virtualSiteComponentSdkScriptEntries = [
|
|
40553
40572
|
...virtualSiteComponentSdkScriptAssets(model)
|
|
40554
40573
|
].map(([assetId, component]) => [
|
|
40555
40574
|
`script-asset-${component.id}-sdk`,
|
|
40556
40575
|
assetId
|
|
40557
40576
|
]);
|
|
40558
|
-
const virtualSiteComponentPreviewScriptEntries = [
|
|
40559
|
-
...virtualSiteComponentPreviewScriptAssets(model)
|
|
40560
|
-
].map(([assetId, component]) => [
|
|
40561
|
-
`script-asset-${component.id}-preview`,
|
|
40562
|
-
assetId
|
|
40563
|
-
]);
|
|
40564
40577
|
const virtualSiteComponentPanelScriptEntries = [
|
|
40565
40578
|
...virtualSiteComponentPanelScriptAssets(model)
|
|
40566
40579
|
].map(([assetId, component]) => [`script-asset-${component.id}`, assetId]);
|
|
@@ -40575,7 +40588,6 @@ function getViteConfig2(model, options) {
|
|
|
40575
40588
|
const config = {
|
|
40576
40589
|
build: {
|
|
40577
40590
|
rollupOptions: {
|
|
40578
|
-
external: ["@wix/services-manager-react"],
|
|
40579
40591
|
/*
|
|
40580
40592
|
* We need to preserve names of exports from our root modules for convention.
|
|
40581
40593
|
* "strict" or "exports-only" will not work because it will create separated files with exports.
|
|
@@ -40589,13 +40601,11 @@ function getViteConfig2(model, options) {
|
|
|
40589
40601
|
...embeddedScriptEntries,
|
|
40590
40602
|
...virtualCustomElementHTMLEntries,
|
|
40591
40603
|
...virtualCustomElementScriptEntries,
|
|
40592
|
-
...virtualSiteComponentScriptEntries,
|
|
40593
40604
|
...virtualSiteComponentSdkScriptEntries,
|
|
40594
|
-
...virtualSiteComponentPreviewScriptEntries,
|
|
40595
40605
|
...virtualSiteComponentPanelScriptEntries,
|
|
40596
40606
|
...virtualSiteComponentPresetEntries
|
|
40597
40607
|
]),
|
|
40598
|
-
...
|
|
40608
|
+
...virtualSiteComponentPanelScriptEntries.length ? { [EXPORTS_CUSTODIAN_ENTRY]: EXPORTS_CUSTODIAN_ENTRY } : {}
|
|
40599
40609
|
}
|
|
40600
40610
|
}
|
|
40601
40611
|
},
|
|
@@ -40619,7 +40629,7 @@ function getViteConfig2(model, options) {
|
|
|
40619
40629
|
initialModel: model,
|
|
40620
40630
|
...options
|
|
40621
40631
|
}),
|
|
40622
|
-
|
|
40632
|
+
preserveSiteComponentPanelsExports({ initialModel: model }),
|
|
40623
40633
|
configExtensionsFileEmitter(model)
|
|
40624
40634
|
],
|
|
40625
40635
|
experimental: {
|
|
@@ -40686,15 +40696,92 @@ function getViteConfig3(model, options) {
|
|
|
40686
40696
|
}
|
|
40687
40697
|
}
|
|
40688
40698
|
},
|
|
40689
|
-
plugins: [
|
|
40699
|
+
plugins: [moduleBundleBuildBlocks({ initialModel: model })]
|
|
40690
40700
|
};
|
|
40691
40701
|
return mergeConfig2(config, baseConfig);
|
|
40692
40702
|
}
|
|
40693
40703
|
|
|
40694
|
-
// src/vite/configs/build-command/
|
|
40704
|
+
// src/vite/configs/build-command/site-components-client.ts
|
|
40695
40705
|
init_esm_shims();
|
|
40696
40706
|
import { mergeConfig as mergeConfig3 } from "vite";
|
|
40697
40707
|
function getViteConfig4(model, options) {
|
|
40708
|
+
const virtualSiteComponentScriptEntries = [
|
|
40709
|
+
...virtualSiteComponentScriptAssets(model)
|
|
40710
|
+
].map(([assetId, component]) => [`script-asset-${component.id}`, assetId]);
|
|
40711
|
+
const virtualSiteComponentPreviewScriptEntries = [
|
|
40712
|
+
...virtualSiteComponentPreviewScriptAssets(model)
|
|
40713
|
+
].map(([assetId, component]) => [
|
|
40714
|
+
`script-asset-${component.id}-preview`,
|
|
40715
|
+
assetId
|
|
40716
|
+
]);
|
|
40717
|
+
const baseConfig = getBaseViteConfig({
|
|
40718
|
+
...options,
|
|
40719
|
+
model,
|
|
40720
|
+
outputDir: SITE_COMPONENTS_CLIENT_STATICS_FOLDER
|
|
40721
|
+
});
|
|
40722
|
+
const config = {
|
|
40723
|
+
build: {
|
|
40724
|
+
rollupOptions: {
|
|
40725
|
+
external: ["@wix/services-manager-react"],
|
|
40726
|
+
/*
|
|
40727
|
+
* We need to preserve names of exports from our root modules for convention.
|
|
40728
|
+
* "strict" or "exports-only" will not work because it will create separated files with exports.
|
|
40729
|
+
* It will break our naive flow of extracting css, since we trying to take css from "root" module.
|
|
40730
|
+
*/
|
|
40731
|
+
preserveEntrySignatures: "allow-extension",
|
|
40732
|
+
input: {
|
|
40733
|
+
...Object.fromEntries([
|
|
40734
|
+
...virtualSiteComponentScriptEntries,
|
|
40735
|
+
...virtualSiteComponentPreviewScriptEntries
|
|
40736
|
+
]),
|
|
40737
|
+
[EXPORTS_CUSTODIAN_ENTRY]: EXPORTS_CUSTODIAN_ENTRY
|
|
40738
|
+
}
|
|
40739
|
+
}
|
|
40740
|
+
},
|
|
40741
|
+
plugins: [
|
|
40742
|
+
moduleBundleBuildSiteComponents({ initialModel: model }),
|
|
40743
|
+
viteExternalsPlugin({
|
|
40744
|
+
react: "React",
|
|
40745
|
+
"react-dom": "ReactDOM"
|
|
40746
|
+
}),
|
|
40747
|
+
draftJs(),
|
|
40748
|
+
preserveSiteComponentComponentsExports({ initialModel: model })
|
|
40749
|
+
],
|
|
40750
|
+
experimental: {
|
|
40751
|
+
/*
|
|
40752
|
+
When a js chunk loads any other async js chunk,
|
|
40753
|
+
Vite also preloads the async chunk's dependencies.
|
|
40754
|
+
|
|
40755
|
+
For example:
|
|
40756
|
+
in some source code: `import('./some-other-file.js');`
|
|
40757
|
+
in `some-other-file.js`: `import './some-stylesheet.css';`
|
|
40758
|
+
|
|
40759
|
+
When Vite builds the above, the emitted dynamic import
|
|
40760
|
+
would also append a preload tag for the emitted css file
|
|
40761
|
+
|
|
40762
|
+
Using `experimental.renderBuiltUrl` appends a JS expression as the baseUrl for this,
|
|
40763
|
+
Otherwise:
|
|
40764
|
+
- it would default to being relative to the page's origin
|
|
40765
|
+
- or we'd have to hardcode the `baseUrl` at build-time
|
|
40766
|
+
*/
|
|
40767
|
+
renderBuiltUrl(filename, { hostType, hostId }) {
|
|
40768
|
+
if (hostType !== "js") {
|
|
40769
|
+
return { relative: true };
|
|
40770
|
+
}
|
|
40771
|
+
return {
|
|
40772
|
+
// https://github.com/wix-private/wix-cli/pull/900#discussion_r1201541691
|
|
40773
|
+
runtime: `import.meta.url.replace("${hostId}", "${filename}")`
|
|
40774
|
+
};
|
|
40775
|
+
}
|
|
40776
|
+
}
|
|
40777
|
+
};
|
|
40778
|
+
return mergeConfig3(config, baseConfig);
|
|
40779
|
+
}
|
|
40780
|
+
|
|
40781
|
+
// src/vite/configs/build-command/site-components-server.ts
|
|
40782
|
+
init_esm_shims();
|
|
40783
|
+
import { mergeConfig as mergeConfig4 } from "vite";
|
|
40784
|
+
function getViteConfig5(model, options) {
|
|
40698
40785
|
const virtualSiteComponentScriptEntries = [
|
|
40699
40786
|
...virtualSiteComponentScriptAssets(model)
|
|
40700
40787
|
].map(
|
|
@@ -40713,7 +40800,7 @@ function getViteConfig4(model, options) {
|
|
|
40713
40800
|
const baseConfig = getBaseViteConfig({
|
|
40714
40801
|
...options,
|
|
40715
40802
|
model,
|
|
40716
|
-
outputDir:
|
|
40803
|
+
outputDir: SITE_COMPONENTS_SERVER_STATICS_FOLDER
|
|
40717
40804
|
});
|
|
40718
40805
|
const config = {
|
|
40719
40806
|
ssr: {
|
|
@@ -40733,9 +40820,9 @@ function getViteConfig4(model, options) {
|
|
|
40733
40820
|
}
|
|
40734
40821
|
}
|
|
40735
40822
|
},
|
|
40736
|
-
plugins: [
|
|
40823
|
+
plugins: [moduleBundleBuildSiteComponents({ initialModel: model })]
|
|
40737
40824
|
};
|
|
40738
|
-
return
|
|
40825
|
+
return mergeConfig4(config, baseConfig);
|
|
40739
40826
|
});
|
|
40740
40827
|
}
|
|
40741
40828
|
|
|
@@ -40937,7 +41024,7 @@ function autoOrigin() {
|
|
|
40937
41024
|
}
|
|
40938
41025
|
|
|
40939
41026
|
// src/vite/configs/dev-command/client.ts
|
|
40940
|
-
function
|
|
41027
|
+
function getViteConfig6(model, options) {
|
|
40941
41028
|
const { https, baseBackendUrl, port, origin } = options;
|
|
40942
41029
|
const allowedHosts = origin ? [new URL(origin).hostname] : void 0;
|
|
40943
41030
|
return {
|
|
@@ -41078,7 +41165,7 @@ var m = (n3) => ({
|
|
|
41078
41165
|
|
|
41079
41166
|
// src/vite/configs/dev-command/site-components.ts
|
|
41080
41167
|
var SITE_COMPONENTS_BASE = "/@gateway/site_components";
|
|
41081
|
-
function
|
|
41168
|
+
function getViteConfig7(model, options) {
|
|
41082
41169
|
const { https, baseBackendUrl } = options;
|
|
41083
41170
|
return {
|
|
41084
41171
|
appType: "custom",
|
|
@@ -41726,6 +41813,7 @@ async function createAppManifest({
|
|
|
41726
41813
|
return {
|
|
41727
41814
|
compId: component.id,
|
|
41728
41815
|
compType: ComponentType.EDITOR_REACT_COMPONENT,
|
|
41816
|
+
compName: component.editorElement.displayName || component.id,
|
|
41729
41817
|
compData: {
|
|
41730
41818
|
editorReactComponent: {
|
|
41731
41819
|
type: component.elementType,
|
|
@@ -41762,7 +41850,8 @@ async function createAppManifest({
|
|
|
41762
41850
|
height: component.height ?? 150,
|
|
41763
41851
|
width: component.width ?? Width.UNKNOWN_WIDTH
|
|
41764
41852
|
},
|
|
41765
|
-
contentType: PanelContentType.code
|
|
41853
|
+
contentType: PanelContentType.code,
|
|
41854
|
+
panelMode: component.panelMode
|
|
41766
41855
|
}
|
|
41767
41856
|
}
|
|
41768
41857
|
};
|
|
@@ -42201,11 +42290,11 @@ var siteComponentDevBuilder = (component) => {
|
|
|
42201
42290
|
}
|
|
42202
42291
|
};
|
|
42203
42292
|
};
|
|
42204
|
-
var siteComponentBuildBuilder = (component, { browserBuildOutput }, {
|
|
42293
|
+
var siteComponentBuildBuilder = (component, { browserBuildOutput }, { siteComponentsClientBuildOutput }, { siteComponentsServerBuildOutput }) => {
|
|
42205
42294
|
const moduleId = virtualModuleIdForSiteComponentScriptAsset(component.id);
|
|
42206
42295
|
const sdkModuleId = component.relativeSdkPath ? virtualModuleIdForSiteComponentSdkScriptAsset(component.id) : null;
|
|
42207
42296
|
const previewModuleId = component.relativePreviewPath ? virtualModuleIdForSiteComponentPreview(component.id) : null;
|
|
42208
|
-
if (!
|
|
42297
|
+
if (!siteComponentsClientBuildOutput || !siteComponentsServerBuildOutput) {
|
|
42209
42298
|
throw new Error("Missing build output for site component");
|
|
42210
42299
|
}
|
|
42211
42300
|
const presets = {};
|
|
@@ -42246,8 +42335,11 @@ var siteComponentBuildBuilder = (component, { browserBuildOutput }, { ssrBuildOu
|
|
|
42246
42335
|
}
|
|
42247
42336
|
);
|
|
42248
42337
|
const definedResources = component.resources ?? {};
|
|
42249
|
-
const cssUrl = extractModuleBundleCss(
|
|
42250
|
-
|
|
42338
|
+
const cssUrl = extractModuleBundleCss(
|
|
42339
|
+
siteComponentsServerBuildOutput,
|
|
42340
|
+
moduleId
|
|
42341
|
+
);
|
|
42342
|
+
const editorCssUrl = previewModuleId ? extractModuleBundleCss(siteComponentsServerBuildOutput, previewModuleId) : void 0;
|
|
42251
42343
|
return {
|
|
42252
42344
|
presets,
|
|
42253
42345
|
elements,
|
|
@@ -42256,13 +42348,15 @@ var siteComponentBuildBuilder = (component, { browserBuildOutput }, { ssrBuildOu
|
|
|
42256
42348
|
client: {
|
|
42257
42349
|
...definedResources.client ?? {},
|
|
42258
42350
|
componentUrl: generateUrl(
|
|
42259
|
-
extractModuleBundleName(
|
|
42351
|
+
extractModuleBundleName(siteComponentsClientBuildOutput, moduleId)
|
|
42260
42352
|
),
|
|
42261
42353
|
cssUrl: cssUrl ? generateUrl(cssUrl) : void 0
|
|
42262
42354
|
},
|
|
42263
42355
|
server: {
|
|
42264
42356
|
...definedResources.server ?? {},
|
|
42265
|
-
url: generateUrl(
|
|
42357
|
+
url: generateUrl(
|
|
42358
|
+
extractModuleBundleName(siteComponentsServerBuildOutput, moduleId)
|
|
42359
|
+
)
|
|
42266
42360
|
},
|
|
42267
42361
|
sdk: sdkModuleId ? {
|
|
42268
42362
|
...definedResources.sdk ?? {},
|
|
@@ -42273,7 +42367,10 @@ var siteComponentBuildBuilder = (component, { browserBuildOutput }, { ssrBuildOu
|
|
|
42273
42367
|
...previewModuleId ? {
|
|
42274
42368
|
editor: {
|
|
42275
42369
|
componentUrl: generateUrl(
|
|
42276
|
-
extractModuleBundleName(
|
|
42370
|
+
extractModuleBundleName(
|
|
42371
|
+
siteComponentsClientBuildOutput,
|
|
42372
|
+
previewModuleId
|
|
42373
|
+
)
|
|
42277
42374
|
),
|
|
42278
42375
|
cssUrl: editorCssUrl ? generateUrl(editorCssUrl) : void 0
|
|
42279
42376
|
}
|
|
@@ -42327,7 +42424,7 @@ function getComponentDevSourceBuilder(model, devSource, backendSource) {
|
|
|
42327
42424
|
return source;
|
|
42328
42425
|
};
|
|
42329
42426
|
}
|
|
42330
|
-
function getComponentBuildSourceBuilder(model, browserBuildSource, workerBuildSource, backendSource,
|
|
42427
|
+
function getComponentBuildSourceBuilder(model, browserBuildSource, workerBuildSource, backendSource, siteComponentsClientBuildSource, siteComponentsServerBuildSource) {
|
|
42331
42428
|
return async (component) => {
|
|
42332
42429
|
const source = (0, import_variant5.match)(component, {
|
|
42333
42430
|
EmbeddedScript: (embeddedScriptComponent) => embeddedScriptBuilder(model, embeddedScriptComponent, {
|
|
@@ -42370,7 +42467,12 @@ function getComponentBuildSourceBuilder(model, browserBuildSource, workerBuildSo
|
|
|
42370
42467
|
ServicePlugin: (component2) => servicePluginSourceBuilder(component2, model, backendSource),
|
|
42371
42468
|
Monitoring: () => {
|
|
42372
42469
|
},
|
|
42373
|
-
SiteComponent: (component2) => siteComponentBuildBuilder(
|
|
42470
|
+
SiteComponent: (component2) => siteComponentBuildBuilder(
|
|
42471
|
+
component2,
|
|
42472
|
+
browserBuildSource,
|
|
42473
|
+
siteComponentsClientBuildSource,
|
|
42474
|
+
siteComponentsServerBuildSource
|
|
42475
|
+
),
|
|
42374
42476
|
SiteComponentPanel: (component2) => siteComponentPanelBuilder(component2, {
|
|
42375
42477
|
buildSource: browserBuildSource
|
|
42376
42478
|
})
|
|
@@ -42387,11 +42489,12 @@ export {
|
|
|
42387
42489
|
updateTopology,
|
|
42388
42490
|
updateAppManifestComponents,
|
|
42389
42491
|
getMonitoringProvider,
|
|
42390
|
-
|
|
42391
|
-
|
|
42492
|
+
getViteConfig6 as getViteConfig2,
|
|
42493
|
+
getViteConfig7 as getViteConfig3,
|
|
42392
42494
|
getViteConfig2 as getViteConfig4,
|
|
42393
42495
|
getViteConfig3 as getViteConfig5,
|
|
42394
42496
|
getViteConfig4 as getViteConfig6,
|
|
42497
|
+
getViteConfig5 as getViteConfig7,
|
|
42395
42498
|
validateComponents,
|
|
42396
42499
|
createCustomElementConfig,
|
|
42397
42500
|
createAppManifest,
|
|
@@ -42403,4 +42506,4 @@ export {
|
|
|
42403
42506
|
he/he.js:
|
|
42404
42507
|
(*! https://mths.be/he v1.2.0 by @mathias | MIT license *)
|
|
42405
42508
|
*/
|
|
42406
|
-
//# sourceMappingURL=chunk-
|
|
42509
|
+
//# sourceMappingURL=chunk-XROEFK43.js.map
|