@wix/cli-app 1.1.127 → 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-JFRWIRZI.js → AddPermissionCommand-RPRDHKFT.js} +2 -2
- package/build/{DevCommand-3PRNRUFO.js → DevCommand-P65ORV7L.js} +10 -10
- package/build/{GenerateCommand-NKNV35NN.js → GenerateCommand-VL6Y3C5L.js} +7 -7
- package/build/{LogsCommand-BIPYLEUC.js → LogsCommand-6QR5HKHU.js} +3 -3
- package/build/PreviewCommand-4JEZR4WW.js +19 -0
- package/build/ReleaseCommand-422A6W24.js +23 -0
- package/build/{ServeCommand-DUKZODY6.js → ServeCommand-ERWN7H6G.js} +3 -3
- package/build/{build-FG6B7OQH.js → build-337EBBZO.js} +24 -7
- package/build/build-337EBBZO.js.map +1 -0
- package/build/{chunk-T3EBYWJV.js → chunk-6W4JMTTK.js} +44 -2
- package/build/{chunk-T3EBYWJV.js.map → chunk-6W4JMTTK.js.map} +1 -1
- package/build/{chunk-TCBGU4X6.js → chunk-7UOP6QJJ.js} +4 -4
- package/build/{chunk-C75VAILG.js → chunk-DAS4QYL5.js} +2 -2
- package/build/{chunk-C55WMKMJ.js → chunk-DK6F42BS.js} +20 -4
- package/build/{chunk-C55WMKMJ.js.map → chunk-DK6F42BS.js.map} +1 -1
- package/build/{chunk-4SRMFEJA.js → chunk-DTBU65A4.js} +2 -2
- package/build/{chunk-ROHDWZI4.js → chunk-FBO2TLHC.js} +3 -3
- package/build/{chunk-F3FIVJZD.js → chunk-GR477WMA.js} +2 -2
- package/build/{chunk-4EAHNYEH.js → chunk-HJT5ALIX.js} +2 -2
- package/build/{chunk-6EOYAASV.js → chunk-HRFRSOBP.js} +4 -4
- package/build/{chunk-C73XJ57U.js → chunk-JT2I67PF.js} +2 -2
- package/build/{chunk-XPNO6MSO.js → chunk-JWZ2JWEU.js} +7 -7
- package/build/{chunk-XPNO6MSO.js.map → chunk-JWZ2JWEU.js.map} +1 -1
- package/build/{chunk-EXDWGPUM.js → chunk-PUCNUVCG.js} +6 -6
- package/build/{chunk-6OIVUPHF.js → chunk-ROXDRBZW.js} +6 -6
- package/build/{chunk-U5ROEYJA.js → chunk-TWBUWLZT.js} +2 -2
- package/build/{chunk-LC6RJKUL.js → chunk-W27M7FJQ.js} +2 -2
- package/build/{chunk-4KUHW5B7.js → chunk-W4K4O6VW.js} +2 -2
- package/build/{chunk-UNCNFFF6.js → chunk-XROEFK43.js} +148 -57
- package/build/chunk-XROEFK43.js.map +1 -0
- package/build/index.js +23 -23
- package/build/platform-sdk/editor.js +1 -1
- 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-QT6BIZNI.js → preview-Q5JUEKFC.js} +12 -12
- package/build/{release-7ITKDBFT.js → release-G726XERA.js} +14 -14
- package/build/{render-command-XRP2XSWT.js → render-command-74GTA22T.js} +5 -5
- package/package.json +4 -4
- package/build/PreviewCommand-FWV6LIFS.js +0 -19
- package/build/ReleaseCommand-ZG5W6RG4.js +0 -23
- package/build/build-FG6B7OQH.js.map +0 -1
- package/build/chunk-UNCNFFF6.js.map +0 -1
- /package/build/{AddPermissionCommand-JFRWIRZI.js.map → AddPermissionCommand-RPRDHKFT.js.map} +0 -0
- /package/build/{DevCommand-3PRNRUFO.js.map → DevCommand-P65ORV7L.js.map} +0 -0
- /package/build/{GenerateCommand-NKNV35NN.js.map → GenerateCommand-VL6Y3C5L.js.map} +0 -0
- /package/build/{LogsCommand-BIPYLEUC.js.map → LogsCommand-6QR5HKHU.js.map} +0 -0
- /package/build/{PreviewCommand-FWV6LIFS.js.map → PreviewCommand-4JEZR4WW.js.map} +0 -0
- /package/build/{ReleaseCommand-ZG5W6RG4.js.map → ReleaseCommand-422A6W24.js.map} +0 -0
- /package/build/{ServeCommand-DUKZODY6.js.map → ServeCommand-ERWN7H6G.js.map} +0 -0
- /package/build/{chunk-TCBGU4X6.js.map → chunk-7UOP6QJJ.js.map} +0 -0
- /package/build/{chunk-C75VAILG.js.map → chunk-DAS4QYL5.js.map} +0 -0
- /package/build/{chunk-4SRMFEJA.js.map → chunk-DTBU65A4.js.map} +0 -0
- /package/build/{chunk-ROHDWZI4.js.map → chunk-FBO2TLHC.js.map} +0 -0
- /package/build/{chunk-F3FIVJZD.js.map → chunk-GR477WMA.js.map} +0 -0
- /package/build/{chunk-4EAHNYEH.js.map → chunk-HJT5ALIX.js.map} +0 -0
- /package/build/{chunk-6EOYAASV.js.map → chunk-HRFRSOBP.js.map} +0 -0
- /package/build/{chunk-C73XJ57U.js.map → chunk-JT2I67PF.js.map} +0 -0
- /package/build/{chunk-EXDWGPUM.js.map → chunk-PUCNUVCG.js.map} +0 -0
- /package/build/{chunk-6OIVUPHF.js.map → chunk-ROXDRBZW.js.map} +0 -0
- /package/build/{chunk-U5ROEYJA.js.map → chunk-TWBUWLZT.js.map} +0 -0
- /package/build/{chunk-LC6RJKUL.js.map → chunk-W27M7FJQ.js.map} +0 -0
- /package/build/{chunk-4KUHW5B7.js.map → chunk-W4K4O6VW.js.map} +0 -0
- /package/build/{preview-QT6BIZNI.js.map → preview-Q5JUEKFC.js.map} +0 -0
- /package/build/{release-7ITKDBFT.js.map → release-G726XERA.js.map} +0 -0
- /package/build/{render-command-XRP2XSWT.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,
|
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
RELATIVE_ASSET_PATH_REGEX,
|
|
38
38
|
RegionType,
|
|
39
39
|
SERVICE_PLUGINS_PATTERN,
|
|
40
|
+
SITE_COMPONENTS_CLIENT_STATICS_FOLDER,
|
|
40
41
|
SITE_COMPONENTS_PANEL_PATTERN,
|
|
41
42
|
SITE_COMPONENTS_PATTERN,
|
|
42
43
|
SITE_COMPONENTS_PRESETS_PATTERN,
|
|
@@ -92,7 +93,7 @@ import {
|
|
|
92
93
|
virtualSiteComponentPreviewScriptAssets,
|
|
93
94
|
virtualSiteComponentScriptAssets,
|
|
94
95
|
virtualSiteComponentSdkScriptAssets
|
|
95
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-DK6F42BS.js";
|
|
96
97
|
import {
|
|
97
98
|
__commonJS,
|
|
98
99
|
__esm,
|
|
@@ -38841,7 +38842,6 @@ var moduleBundleBuildBrowser = ({
|
|
|
38841
38842
|
const virtualDashboardAssets = virtualDashboardScriptAssets(initialModel);
|
|
38842
38843
|
const virtualCustomElementAssets = virtualCustomElementScriptAssets(initialModel);
|
|
38843
38844
|
const virtualCustomElementPanelAssets = virtualCustomElementPanelScriptAssets(initialModel);
|
|
38844
|
-
const virtualSiteComponentAssets = virtualSiteComponentScriptAssets(initialModel);
|
|
38845
38845
|
const virtualSiteComponentSdkAssets = virtualSiteComponentSdkScriptAssets(initialModel);
|
|
38846
38846
|
const virtualSiteComponentPreviewAssets = virtualSiteComponentPreviewScriptAssets(initialModel);
|
|
38847
38847
|
const virtualSiteComponentPanelAssets = virtualSiteComponentPanelScriptAssets(initialModel);
|
|
@@ -38850,7 +38850,7 @@ var moduleBundleBuildBrowser = ({
|
|
|
38850
38850
|
apply: "build",
|
|
38851
38851
|
resolveId(rawId) {
|
|
38852
38852
|
const id = cleanId(rawId);
|
|
38853
|
-
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)) {
|
|
38854
38854
|
return id;
|
|
38855
38855
|
}
|
|
38856
38856
|
return null;
|
|
@@ -38869,21 +38869,10 @@ var moduleBundleBuildBrowser = ({
|
|
|
38869
38869
|
if (customElementPanelComponent) {
|
|
38870
38870
|
return getCustomElementPanelBuildTemplate(customElementPanelComponent);
|
|
38871
38871
|
}
|
|
38872
|
-
const siteComponent = virtualSiteComponentAssets.get(id);
|
|
38873
|
-
if (siteComponent) {
|
|
38874
|
-
return getSiteComponentBuildTemplate(appId, siteComponent);
|
|
38875
|
-
}
|
|
38876
38872
|
const siteSdkComponent = virtualSiteComponentSdkAssets.get(id);
|
|
38877
38873
|
if (siteSdkComponent) {
|
|
38878
38874
|
return getSiteComponentSdkBuildTemplate(siteSdkComponent);
|
|
38879
38875
|
}
|
|
38880
|
-
const siteComponentPreview = virtualSiteComponentPreviewAssets.get(id);
|
|
38881
|
-
if (siteComponentPreview) {
|
|
38882
|
-
return getSiteComponentPreviewBuildTemplate(
|
|
38883
|
-
appId,
|
|
38884
|
-
siteComponentPreview
|
|
38885
|
-
);
|
|
38886
|
-
}
|
|
38887
38876
|
const siteComponentPanel = virtualSiteComponentPanelAssets.get(id);
|
|
38888
38877
|
if (siteComponentPanel) {
|
|
38889
38878
|
return getSiteComponentPanelBuildTemplate(siteComponentPanel);
|
|
@@ -38892,7 +38881,7 @@ var moduleBundleBuildBrowser = ({
|
|
|
38892
38881
|
}
|
|
38893
38882
|
};
|
|
38894
38883
|
};
|
|
38895
|
-
var
|
|
38884
|
+
var moduleBundleBuildBlocks = ({
|
|
38896
38885
|
initialModel
|
|
38897
38886
|
}) => {
|
|
38898
38887
|
const virtualBlocksWidgetAssets = virtualBlocksWidgetScriptAssets(initialModel);
|
|
@@ -38921,14 +38910,14 @@ var moduleBundleBuildWorker = ({
|
|
|
38921
38910
|
}
|
|
38922
38911
|
};
|
|
38923
38912
|
};
|
|
38924
|
-
var
|
|
38913
|
+
var moduleBundleBuildSiteComponents = ({
|
|
38925
38914
|
initialModel
|
|
38926
38915
|
}) => {
|
|
38927
38916
|
const { appId } = initialModel.config;
|
|
38928
38917
|
const virtualSiteComponentAssets = virtualSiteComponentScriptAssets(initialModel);
|
|
38929
38918
|
const virtualSiteComponentPreviewAssets = virtualSiteComponentPreviewScriptAssets(initialModel);
|
|
38930
38919
|
return {
|
|
38931
|
-
name: "wix:module-bundle-build-
|
|
38920
|
+
name: "wix:module-bundle-build-site-components",
|
|
38932
38921
|
apply: "build",
|
|
38933
38922
|
resolveId(rawId) {
|
|
38934
38923
|
const id = cleanId(rawId);
|
|
@@ -39992,8 +39981,11 @@ var updateBlocksComponents = (manifest, blocksComponents) => {
|
|
|
39992
39981
|
}
|
|
39993
39982
|
return { ...manifest, components: updatedExtensions };
|
|
39994
39983
|
};
|
|
39995
|
-
var BASE_URL_PLACEHOLDER = "https://
|
|
39996
|
-
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
|
+
};
|
|
39997
39989
|
var updateAppManifestComponents = ({
|
|
39998
39990
|
manifest,
|
|
39999
39991
|
backendServerUrl,
|
|
@@ -40025,7 +40017,7 @@ function getEmbeddedScriptEntries(model) {
|
|
|
40025
40017
|
return new Set(entries);
|
|
40026
40018
|
}
|
|
40027
40019
|
function getEmbeddedScriptHtmlUrl(filename) {
|
|
40028
|
-
return
|
|
40020
|
+
return generateUrl(filename);
|
|
40029
40021
|
}
|
|
40030
40022
|
function embeddedScriptSDKSupport(options) {
|
|
40031
40023
|
const { initialModel, type } = options;
|
|
@@ -40322,12 +40314,34 @@ function hashHtmlFiles() {
|
|
|
40322
40314
|
// src/vite/plugins/exports-custodian.ts
|
|
40323
40315
|
init_esm_shims();
|
|
40324
40316
|
var EXPORTS_CUSTODIAN_ENTRY = "virtual:wix-exports-custodian-entry";
|
|
40325
|
-
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
|
+
}) => {
|
|
40326
40341
|
const virtualSiteComponentAssets = virtualSiteComponentScriptAssets(initialModel);
|
|
40327
40342
|
const virtualSiteComponentPreviewAssets = virtualSiteComponentPreviewScriptAssets(initialModel);
|
|
40328
|
-
const virtualSiteComponentPanelAssets = virtualSiteComponentPanelScriptAssets(initialModel);
|
|
40329
40343
|
return {
|
|
40330
|
-
name: "wix:exports-
|
|
40344
|
+
name: "wix:site-components:preserve-exports-components",
|
|
40331
40345
|
apply: "build",
|
|
40332
40346
|
resolveId(id) {
|
|
40333
40347
|
if (id === EXPORTS_CUSTODIAN_ENTRY) {
|
|
@@ -40338,9 +40352,8 @@ var exportsCustodian = ({ initialModel }) => {
|
|
|
40338
40352
|
load(id) {
|
|
40339
40353
|
if (id === EXPORTS_CUSTODIAN_ENTRY) {
|
|
40340
40354
|
return [
|
|
40341
|
-
...virtualSiteComponentAssets.keys(),
|
|
40342
40355
|
...virtualSiteComponentPreviewAssets.keys(),
|
|
40343
|
-
...
|
|
40356
|
+
...virtualSiteComponentAssets.keys()
|
|
40344
40357
|
].map((path9) => `import('${path9}');`).join("\n");
|
|
40345
40358
|
}
|
|
40346
40359
|
return null;
|
|
@@ -40351,6 +40364,7 @@ var exportsCustodian = ({ initialModel }) => {
|
|
|
40351
40364
|
// src/vite/configs/build-command/base.ts
|
|
40352
40365
|
init_esm_shims();
|
|
40353
40366
|
import { join as join6 } from "node:path";
|
|
40367
|
+
import { normalizePath as normalizePath2 } from "vite";
|
|
40354
40368
|
|
|
40355
40369
|
// src/vite/plugins/web-methods-plugin.ts
|
|
40356
40370
|
init_esm_shims();
|
|
@@ -40507,9 +40521,15 @@ function getBaseViteConfig({ model, outputDir, customLogger }) {
|
|
|
40507
40521
|
emptyOutDir: false,
|
|
40508
40522
|
rollupOptions: {
|
|
40509
40523
|
output: {
|
|
40510
|
-
assetFileNames:
|
|
40511
|
-
|
|
40512
|
-
|
|
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
|
+
)
|
|
40513
40533
|
}
|
|
40514
40534
|
}
|
|
40515
40535
|
},
|
|
@@ -40548,21 +40568,12 @@ function getViteConfig2(model, options) {
|
|
|
40548
40568
|
const virtualCustomElementScriptEntries = [
|
|
40549
40569
|
...virtualCustomElementScriptAssets(model)
|
|
40550
40570
|
].map(([assetId, component]) => [`script-asset-${component.id}`, assetId]);
|
|
40551
|
-
const virtualSiteComponentScriptEntries = [
|
|
40552
|
-
...virtualSiteComponentScriptAssets(model)
|
|
40553
|
-
].map(([assetId, component]) => [`script-asset-${component.id}`, assetId]);
|
|
40554
40571
|
const virtualSiteComponentSdkScriptEntries = [
|
|
40555
40572
|
...virtualSiteComponentSdkScriptAssets(model)
|
|
40556
40573
|
].map(([assetId, component]) => [
|
|
40557
40574
|
`script-asset-${component.id}-sdk`,
|
|
40558
40575
|
assetId
|
|
40559
40576
|
]);
|
|
40560
|
-
const virtualSiteComponentPreviewScriptEntries = [
|
|
40561
|
-
...virtualSiteComponentPreviewScriptAssets(model)
|
|
40562
|
-
].map(([assetId, component]) => [
|
|
40563
|
-
`script-asset-${component.id}-preview`,
|
|
40564
|
-
assetId
|
|
40565
|
-
]);
|
|
40566
40577
|
const virtualSiteComponentPanelScriptEntries = [
|
|
40567
40578
|
...virtualSiteComponentPanelScriptAssets(model)
|
|
40568
40579
|
].map(([assetId, component]) => [`script-asset-${component.id}`, assetId]);
|
|
@@ -40577,7 +40588,6 @@ function getViteConfig2(model, options) {
|
|
|
40577
40588
|
const config = {
|
|
40578
40589
|
build: {
|
|
40579
40590
|
rollupOptions: {
|
|
40580
|
-
external: ["@wix/services-manager-react"],
|
|
40581
40591
|
/*
|
|
40582
40592
|
* We need to preserve names of exports from our root modules for convention.
|
|
40583
40593
|
* "strict" or "exports-only" will not work because it will create separated files with exports.
|
|
@@ -40591,13 +40601,11 @@ function getViteConfig2(model, options) {
|
|
|
40591
40601
|
...embeddedScriptEntries,
|
|
40592
40602
|
...virtualCustomElementHTMLEntries,
|
|
40593
40603
|
...virtualCustomElementScriptEntries,
|
|
40594
|
-
...virtualSiteComponentScriptEntries,
|
|
40595
40604
|
...virtualSiteComponentSdkScriptEntries,
|
|
40596
|
-
...virtualSiteComponentPreviewScriptEntries,
|
|
40597
40605
|
...virtualSiteComponentPanelScriptEntries,
|
|
40598
40606
|
...virtualSiteComponentPresetEntries
|
|
40599
40607
|
]),
|
|
40600
|
-
...
|
|
40608
|
+
...virtualSiteComponentPanelScriptEntries.length ? { [EXPORTS_CUSTODIAN_ENTRY]: EXPORTS_CUSTODIAN_ENTRY } : {}
|
|
40601
40609
|
}
|
|
40602
40610
|
}
|
|
40603
40611
|
},
|
|
@@ -40621,7 +40629,7 @@ function getViteConfig2(model, options) {
|
|
|
40621
40629
|
initialModel: model,
|
|
40622
40630
|
...options
|
|
40623
40631
|
}),
|
|
40624
|
-
|
|
40632
|
+
preserveSiteComponentPanelsExports({ initialModel: model }),
|
|
40625
40633
|
configExtensionsFileEmitter(model)
|
|
40626
40634
|
],
|
|
40627
40635
|
experimental: {
|
|
@@ -40688,15 +40696,92 @@ function getViteConfig3(model, options) {
|
|
|
40688
40696
|
}
|
|
40689
40697
|
}
|
|
40690
40698
|
},
|
|
40691
|
-
plugins: [
|
|
40699
|
+
plugins: [moduleBundleBuildBlocks({ initialModel: model })]
|
|
40692
40700
|
};
|
|
40693
40701
|
return mergeConfig2(config, baseConfig);
|
|
40694
40702
|
}
|
|
40695
40703
|
|
|
40696
|
-
// src/vite/configs/build-command/site-components-
|
|
40704
|
+
// src/vite/configs/build-command/site-components-client.ts
|
|
40697
40705
|
init_esm_shims();
|
|
40698
40706
|
import { mergeConfig as mergeConfig3 } from "vite";
|
|
40699
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) {
|
|
40700
40785
|
const virtualSiteComponentScriptEntries = [
|
|
40701
40786
|
...virtualSiteComponentScriptAssets(model)
|
|
40702
40787
|
].map(
|
|
@@ -40735,9 +40820,9 @@ function getViteConfig4(model, options) {
|
|
|
40735
40820
|
}
|
|
40736
40821
|
}
|
|
40737
40822
|
},
|
|
40738
|
-
plugins: [
|
|
40823
|
+
plugins: [moduleBundleBuildSiteComponents({ initialModel: model })]
|
|
40739
40824
|
};
|
|
40740
|
-
return
|
|
40825
|
+
return mergeConfig4(config, baseConfig);
|
|
40741
40826
|
});
|
|
40742
40827
|
}
|
|
40743
40828
|
|
|
@@ -40939,7 +41024,7 @@ function autoOrigin() {
|
|
|
40939
41024
|
}
|
|
40940
41025
|
|
|
40941
41026
|
// src/vite/configs/dev-command/client.ts
|
|
40942
|
-
function
|
|
41027
|
+
function getViteConfig6(model, options) {
|
|
40943
41028
|
const { https, baseBackendUrl, port, origin } = options;
|
|
40944
41029
|
const allowedHosts = origin ? [new URL(origin).hostname] : void 0;
|
|
40945
41030
|
return {
|
|
@@ -41080,7 +41165,7 @@ var m = (n3) => ({
|
|
|
41080
41165
|
|
|
41081
41166
|
// src/vite/configs/dev-command/site-components.ts
|
|
41082
41167
|
var SITE_COMPONENTS_BASE = "/@gateway/site_components";
|
|
41083
|
-
function
|
|
41168
|
+
function getViteConfig7(model, options) {
|
|
41084
41169
|
const { https, baseBackendUrl } = options;
|
|
41085
41170
|
return {
|
|
41086
41171
|
appType: "custom",
|
|
@@ -41728,6 +41813,7 @@ async function createAppManifest({
|
|
|
41728
41813
|
return {
|
|
41729
41814
|
compId: component.id,
|
|
41730
41815
|
compType: ComponentType.EDITOR_REACT_COMPONENT,
|
|
41816
|
+
compName: component.editorElement.displayName || component.id,
|
|
41731
41817
|
compData: {
|
|
41732
41818
|
editorReactComponent: {
|
|
41733
41819
|
type: component.elementType,
|
|
@@ -42204,11 +42290,11 @@ var siteComponentDevBuilder = (component) => {
|
|
|
42204
42290
|
}
|
|
42205
42291
|
};
|
|
42206
42292
|
};
|
|
42207
|
-
var siteComponentBuildBuilder = (component, { browserBuildOutput }, { siteComponentsServerBuildOutput }) => {
|
|
42293
|
+
var siteComponentBuildBuilder = (component, { browserBuildOutput }, { siteComponentsClientBuildOutput }, { siteComponentsServerBuildOutput }) => {
|
|
42208
42294
|
const moduleId = virtualModuleIdForSiteComponentScriptAsset(component.id);
|
|
42209
42295
|
const sdkModuleId = component.relativeSdkPath ? virtualModuleIdForSiteComponentSdkScriptAsset(component.id) : null;
|
|
42210
42296
|
const previewModuleId = component.relativePreviewPath ? virtualModuleIdForSiteComponentPreview(component.id) : null;
|
|
42211
|
-
if (!siteComponentsServerBuildOutput) {
|
|
42297
|
+
if (!siteComponentsClientBuildOutput || !siteComponentsServerBuildOutput) {
|
|
42212
42298
|
throw new Error("Missing build output for site component");
|
|
42213
42299
|
}
|
|
42214
42300
|
const presets = {};
|
|
@@ -42262,7 +42348,7 @@ var siteComponentBuildBuilder = (component, { browserBuildOutput }, { siteCompon
|
|
|
42262
42348
|
client: {
|
|
42263
42349
|
...definedResources.client ?? {},
|
|
42264
42350
|
componentUrl: generateUrl(
|
|
42265
|
-
extractModuleBundleName(
|
|
42351
|
+
extractModuleBundleName(siteComponentsClientBuildOutput, moduleId)
|
|
42266
42352
|
),
|
|
42267
42353
|
cssUrl: cssUrl ? generateUrl(cssUrl) : void 0
|
|
42268
42354
|
},
|
|
@@ -42281,7 +42367,10 @@ var siteComponentBuildBuilder = (component, { browserBuildOutput }, { siteCompon
|
|
|
42281
42367
|
...previewModuleId ? {
|
|
42282
42368
|
editor: {
|
|
42283
42369
|
componentUrl: generateUrl(
|
|
42284
|
-
extractModuleBundleName(
|
|
42370
|
+
extractModuleBundleName(
|
|
42371
|
+
siteComponentsClientBuildOutput,
|
|
42372
|
+
previewModuleId
|
|
42373
|
+
)
|
|
42285
42374
|
),
|
|
42286
42375
|
cssUrl: editorCssUrl ? generateUrl(editorCssUrl) : void 0
|
|
42287
42376
|
}
|
|
@@ -42335,7 +42424,7 @@ function getComponentDevSourceBuilder(model, devSource, backendSource) {
|
|
|
42335
42424
|
return source;
|
|
42336
42425
|
};
|
|
42337
42426
|
}
|
|
42338
|
-
function getComponentBuildSourceBuilder(model, browserBuildSource, workerBuildSource, backendSource, siteComponentsServerBuildSource) {
|
|
42427
|
+
function getComponentBuildSourceBuilder(model, browserBuildSource, workerBuildSource, backendSource, siteComponentsClientBuildSource, siteComponentsServerBuildSource) {
|
|
42339
42428
|
return async (component) => {
|
|
42340
42429
|
const source = (0, import_variant5.match)(component, {
|
|
42341
42430
|
EmbeddedScript: (embeddedScriptComponent) => embeddedScriptBuilder(model, embeddedScriptComponent, {
|
|
@@ -42381,6 +42470,7 @@ function getComponentBuildSourceBuilder(model, browserBuildSource, workerBuildSo
|
|
|
42381
42470
|
SiteComponent: (component2) => siteComponentBuildBuilder(
|
|
42382
42471
|
component2,
|
|
42383
42472
|
browserBuildSource,
|
|
42473
|
+
siteComponentsClientBuildSource,
|
|
42384
42474
|
siteComponentsServerBuildSource
|
|
42385
42475
|
),
|
|
42386
42476
|
SiteComponentPanel: (component2) => siteComponentPanelBuilder(component2, {
|
|
@@ -42399,11 +42489,12 @@ export {
|
|
|
42399
42489
|
updateTopology,
|
|
42400
42490
|
updateAppManifestComponents,
|
|
42401
42491
|
getMonitoringProvider,
|
|
42402
|
-
|
|
42403
|
-
|
|
42492
|
+
getViteConfig6 as getViteConfig2,
|
|
42493
|
+
getViteConfig7 as getViteConfig3,
|
|
42404
42494
|
getViteConfig2 as getViteConfig4,
|
|
42405
42495
|
getViteConfig3 as getViteConfig5,
|
|
42406
42496
|
getViteConfig4 as getViteConfig6,
|
|
42497
|
+
getViteConfig5 as getViteConfig7,
|
|
42407
42498
|
validateComponents,
|
|
42408
42499
|
createCustomElementConfig,
|
|
42409
42500
|
createAppManifest,
|
|
@@ -42415,4 +42506,4 @@ export {
|
|
|
42415
42506
|
he/he.js:
|
|
42416
42507
|
(*! https://mths.be/he v1.2.0 by @mathias | MIT license *)
|
|
42417
42508
|
*/
|
|
42418
|
-
//# sourceMappingURL=chunk-
|
|
42509
|
+
//# sourceMappingURL=chunk-XROEFK43.js.map
|