@wix/cli-app 1.1.103 → 1.1.104
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-47NX5FID.js → AddPermissionCommand-BEOK7PZ4.js} +2 -2
- package/build/{DevCommand-R3ZGOMUJ.js → DevCommand-Z3GQGRQO.js} +10 -10
- package/build/{GenerateCommand-BNSFSYGT.js → GenerateCommand-7DARNLA7.js} +7 -7
- package/build/{LogsCommand-B4XRPZLR.js → LogsCommand-3XYEAMY7.js} +3 -3
- package/build/PreviewCommand-U2UKT324.js +19 -0
- package/build/ReleaseCommand-77PZBKAL.js +23 -0
- package/build/{ServeCommand-CNYCJPJS.js → ServeCommand-D7WDZIOW.js} +3 -3
- package/build/{build-A7OAZ226.js → build-XYLS7AOS.js} +6 -6
- package/build/{chunk-UC4DVE5N.js → chunk-2A7BQL62.js} +4 -4
- package/build/{chunk-HQWWEMUE.js → chunk-4X457QCO.js} +7 -7
- package/build/{chunk-CLGKOJIA.js → chunk-5U6N7S66.js} +4 -4
- package/build/{chunk-LFE6DV2A.js → chunk-7EMCPTOG.js} +3 -3
- package/build/{chunk-2FFNGH2K.js → chunk-7LMKRM53.js} +2 -2
- package/build/{chunk-5HJEX4ZX.js → chunk-B4PE24NJ.js} +111 -48
- package/build/{chunk-5HJEX4ZX.js.map → chunk-B4PE24NJ.js.map} +1 -1
- package/build/{chunk-2PWMAOFK.js → chunk-E5RCLVUI.js} +6 -6
- package/build/{chunk-N5BZMQKX.js → chunk-GKSCRLAY.js} +2 -2
- package/build/{chunk-FQVLZZ37.js → chunk-QR3SSJAV.js} +2 -2
- package/build/{chunk-VDEKITDE.js → chunk-SVYXNRMH.js} +2 -2
- package/build/{chunk-D4HN4JQJ.js → chunk-TIONGKXR.js} +2 -2
- package/build/{chunk-WHR6NSJW.js → chunk-UKJ775WP.js} +2 -2
- package/build/{chunk-EK3FDNFJ.js → chunk-UNKB5G5S.js} +6 -6
- package/build/{chunk-4BN6QXJE.js → chunk-V23BCBX3.js} +3 -3
- package/build/{chunk-RBX7FQKV.js → chunk-VNLE7QSE.js} +2 -2
- package/build/{chunk-ASICDRRU.js → chunk-XA4RPO4T.js} +2 -2
- package/build/{chunk-IJSYFKIP.js → chunk-XJWKNKHT.js} +2 -2
- package/build/index.js +23 -23
- package/build/platform-sdk/site.js +1 -1
- package/build/platform-sdk/site.js.map +1 -1
- package/build/{preview-O4LXNEA2.js → preview-TDYUVTUM.js} +12 -12
- package/build/{release-3FUXB4BT.js → release-CWTR5WKZ.js} +14 -14
- package/build/{render-command-WE3BHL5N.js → render-command-7J2YMXLZ.js} +5 -5
- package/package.json +3 -3
- package/build/PreviewCommand-WY3GWOX4.js +0 -19
- package/build/ReleaseCommand-KDD44AO7.js +0 -23
- /package/build/{AddPermissionCommand-47NX5FID.js.map → AddPermissionCommand-BEOK7PZ4.js.map} +0 -0
- /package/build/{DevCommand-R3ZGOMUJ.js.map → DevCommand-Z3GQGRQO.js.map} +0 -0
- /package/build/{GenerateCommand-BNSFSYGT.js.map → GenerateCommand-7DARNLA7.js.map} +0 -0
- /package/build/{LogsCommand-B4XRPZLR.js.map → LogsCommand-3XYEAMY7.js.map} +0 -0
- /package/build/{PreviewCommand-WY3GWOX4.js.map → PreviewCommand-U2UKT324.js.map} +0 -0
- /package/build/{ReleaseCommand-KDD44AO7.js.map → ReleaseCommand-77PZBKAL.js.map} +0 -0
- /package/build/{ServeCommand-CNYCJPJS.js.map → ServeCommand-D7WDZIOW.js.map} +0 -0
- /package/build/{build-A7OAZ226.js.map → build-XYLS7AOS.js.map} +0 -0
- /package/build/{chunk-UC4DVE5N.js.map → chunk-2A7BQL62.js.map} +0 -0
- /package/build/{chunk-HQWWEMUE.js.map → chunk-4X457QCO.js.map} +0 -0
- /package/build/{chunk-CLGKOJIA.js.map → chunk-5U6N7S66.js.map} +0 -0
- /package/build/{chunk-LFE6DV2A.js.map → chunk-7EMCPTOG.js.map} +0 -0
- /package/build/{chunk-2FFNGH2K.js.map → chunk-7LMKRM53.js.map} +0 -0
- /package/build/{chunk-2PWMAOFK.js.map → chunk-E5RCLVUI.js.map} +0 -0
- /package/build/{chunk-N5BZMQKX.js.map → chunk-GKSCRLAY.js.map} +0 -0
- /package/build/{chunk-FQVLZZ37.js.map → chunk-QR3SSJAV.js.map} +0 -0
- /package/build/{chunk-VDEKITDE.js.map → chunk-SVYXNRMH.js.map} +0 -0
- /package/build/{chunk-D4HN4JQJ.js.map → chunk-TIONGKXR.js.map} +0 -0
- /package/build/{chunk-WHR6NSJW.js.map → chunk-UKJ775WP.js.map} +0 -0
- /package/build/{chunk-EK3FDNFJ.js.map → chunk-UNKB5G5S.js.map} +0 -0
- /package/build/{chunk-4BN6QXJE.js.map → chunk-V23BCBX3.js.map} +0 -0
- /package/build/{chunk-RBX7FQKV.js.map → chunk-VNLE7QSE.js.map} +0 -0
- /package/build/{chunk-ASICDRRU.js.map → chunk-XA4RPO4T.js.map} +0 -0
- /package/build/{chunk-IJSYFKIP.js.map → chunk-XJWKNKHT.js.map} +0 -0
- /package/build/{preview-O4LXNEA2.js.map → preview-TDYUVTUM.js.map} +0 -0
- /package/build/{release-3FUXB4BT.js.map → release-CWTR5WKZ.js.map} +0 -0
- /package/build/{render-command-WE3BHL5N.js.map → render-command-7J2YMXLZ.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-7EMCPTOG.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-4X457QCO.js";
|
|
20
20
|
import {
|
|
21
21
|
useBackendComponents
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QR3SSJAV.js";
|
|
23
23
|
import {
|
|
24
24
|
getMonitoringProvider,
|
|
25
25
|
updateAppManifestComponents,
|
|
26
26
|
updateMonitoring,
|
|
27
27
|
updateTopology
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-V23BCBX3.js";
|
|
29
29
|
import {
|
|
30
30
|
Alert,
|
|
31
31
|
BROWSER_STATICS_FOLDER,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
useHttpClient,
|
|
58
58
|
useProjectModel,
|
|
59
59
|
useTranslation
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-B4PE24NJ.js";
|
|
61
61
|
import {
|
|
62
62
|
__toESM,
|
|
63
63
|
init_esm_shims
|
|
@@ -294,4 +294,4 @@ export {
|
|
|
294
294
|
assertBuildOutputExists,
|
|
295
295
|
PreviewCommand
|
|
296
296
|
};
|
|
297
|
-
//# sourceMappingURL=chunk-
|
|
297
|
+
//# sourceMappingURL=chunk-E5RCLVUI.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
isCliSystemError,
|
|
6
6
|
wixCliCliCommand,
|
|
7
7
|
wixCliCliCommandStatus
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-B4PE24NJ.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-GKSCRLAY.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
useProjectModel,
|
|
16
16
|
writePackageJson,
|
|
17
17
|
z
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-B4PE24NJ.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__require,
|
|
@@ -9385,4 +9385,4 @@ ejs/lib/ejs.js:
|
|
|
9385
9385
|
* @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
|
|
9386
9386
|
*)
|
|
9387
9387
|
*/
|
|
9388
|
-
//# sourceMappingURL=chunk-
|
|
9388
|
+
//# sourceMappingURL=chunk-QR3SSJAV.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
createRendererToString,
|
|
6
6
|
isCliError,
|
|
7
7
|
require_react
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-B4PE24NJ.js";
|
|
9
9
|
import {
|
|
10
10
|
__toESM,
|
|
11
11
|
init_esm_shims
|
|
@@ -58,4 +58,4 @@ function createLogger({
|
|
|
58
58
|
export {
|
|
59
59
|
createLogger
|
|
60
60
|
};
|
|
61
|
-
//# sourceMappingURL=chunk-
|
|
61
|
+
//# sourceMappingURL=chunk-SVYXNRMH.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
require_lib,
|
|
12
12
|
writeJson,
|
|
13
13
|
z
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-B4PE24NJ.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-TIONGKXR.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
require_react,
|
|
5
5
|
useBiLogger,
|
|
6
6
|
wixCliAppBiEvents
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-B4PE24NJ.js";
|
|
8
8
|
import {
|
|
9
9
|
__toESM,
|
|
10
10
|
init_esm_shims
|
|
@@ -24,4 +24,4 @@ init_esm_shims();
|
|
|
24
24
|
export {
|
|
25
25
|
useWixCliAppBi
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=chunk-
|
|
27
|
+
//# sourceMappingURL=chunk-UKJ775WP.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-E5RCLVUI.js";
|
|
7
7
|
import {
|
|
8
8
|
useARMClient
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4X457QCO.js";
|
|
10
10
|
import {
|
|
11
11
|
useWixCliAppBi
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UKJ775WP.js";
|
|
13
13
|
import {
|
|
14
14
|
useBackendComponents
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QR3SSJAV.js";
|
|
16
16
|
import {
|
|
17
17
|
Alert,
|
|
18
18
|
Box_default,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
useDevCenterClient,
|
|
39
39
|
useProjectModel,
|
|
40
40
|
useTranslation
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-B4PE24NJ.js";
|
|
42
42
|
import {
|
|
43
43
|
__toESM,
|
|
44
44
|
init_esm_shims
|
|
@@ -423,4 +423,4 @@ export {
|
|
|
423
423
|
ReleaseVersionType,
|
|
424
424
|
ReleaseCommand
|
|
425
425
|
};
|
|
426
|
-
//# sourceMappingURL=chunk-
|
|
426
|
+
//# sourceMappingURL=chunk-UNKB5G5S.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-XJWKNKHT.js";
|
|
7
7
|
import {
|
|
8
8
|
API_BASEURL_PLACEHOLDER,
|
|
9
9
|
BACKEND_OPTIMIZED_DIR,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
virtualSiteComponentScriptAssets,
|
|
82
82
|
virtualSiteComponentSdkScriptAssets,
|
|
83
83
|
z
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-B4PE24NJ.js";
|
|
85
85
|
import {
|
|
86
86
|
__commonJS,
|
|
87
87
|
__esm,
|
|
@@ -41936,4 +41936,4 @@ export {
|
|
|
41936
41936
|
he/he.js:
|
|
41937
41937
|
(*! https://mths.be/he v1.2.0 by @mathias | MIT license *)
|
|
41938
41938
|
*/
|
|
41939
|
-
//# sourceMappingURL=chunk-
|
|
41939
|
+
//# sourceMappingURL=chunk-V23BCBX3.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
require_react,
|
|
11
11
|
useTranslation,
|
|
12
12
|
z
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-B4PE24NJ.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-VNLE7QSE.js.map
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
useHttpClient,
|
|
18
18
|
wixCliAppsFlowTunnelCreationStatusSrc11Evid5233,
|
|
19
19
|
z
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-B4PE24NJ.js";
|
|
21
21
|
import {
|
|
22
22
|
__commonJS,
|
|
23
23
|
__dirname,
|
|
@@ -892,4 +892,4 @@ init_esm_shims();
|
|
|
892
892
|
export {
|
|
893
893
|
useTunnel
|
|
894
894
|
};
|
|
895
|
-
//# sourceMappingURL=chunk-
|
|
895
|
+
//# sourceMappingURL=chunk-XA4RPO4T.js.map
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
toURLSearchParams,
|
|
15
15
|
useHttpClient,
|
|
16
16
|
z
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-B4PE24NJ.js";
|
|
18
18
|
import {
|
|
19
19
|
__commonJS,
|
|
20
20
|
__toESM,
|
|
@@ -3778,4 +3778,4 @@ export {
|
|
|
3778
3778
|
getBackendEventSlug,
|
|
3779
3779
|
useExtensionDataClient
|
|
3780
3780
|
};
|
|
3781
|
-
//# sourceMappingURL=chunk-
|
|
3781
|
+
//# sourceMappingURL=chunk-XJWKNKHT.js.map
|
package/build/index.js
CHANGED
|
@@ -3,18 +3,18 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
createI18nT,
|
|
5
5
|
docsExtensionTypeSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VNLE7QSE.js";
|
|
7
7
|
import {
|
|
8
8
|
runCommand
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-5U6N7S66.js";
|
|
10
|
+
import "./chunk-GKSCRLAY.js";
|
|
11
11
|
import "./chunk-T5HHDBBR.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-7LMKRM53.js";
|
|
13
13
|
import {
|
|
14
14
|
package_default,
|
|
15
15
|
require_react,
|
|
16
16
|
z
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-B4PE24NJ.js";
|
|
18
18
|
import {
|
|
19
19
|
__commonJS,
|
|
20
20
|
__require,
|
|
@@ -3377,8 +3377,8 @@ var {
|
|
|
3377
3377
|
// src/commands/build.ts
|
|
3378
3378
|
init_esm_shims();
|
|
3379
3379
|
var buildCommand = (services) => createCommand("build").action(async (_, command) => {
|
|
3380
|
-
const { runCommand: runCommand2 } = await import("./render-command-
|
|
3381
|
-
const { build } = await import("./build-
|
|
3380
|
+
const { runCommand: runCommand2 } = await import("./render-command-7J2YMXLZ.js");
|
|
3381
|
+
const { build } = await import("./build-XYLS7AOS.js");
|
|
3382
3382
|
await runCommand2(command, services, build);
|
|
3383
3383
|
});
|
|
3384
3384
|
|
|
@@ -3388,8 +3388,8 @@ var import_react = __toESM(require_react(), 1);
|
|
|
3388
3388
|
var devCommand = (services) => {
|
|
3389
3389
|
const t = createI18nT();
|
|
3390
3390
|
return createCommand("dev").option("-s, --https", t("dev_command_def.option.https")).action(async (options, command) => {
|
|
3391
|
-
const { DevCommand } = await import("./DevCommand-
|
|
3392
|
-
const { renderCommand } = await import("./render-command-
|
|
3391
|
+
const { DevCommand } = await import("./DevCommand-Z3GQGRQO.js");
|
|
3392
|
+
const { renderCommand } = await import("./render-command-7J2YMXLZ.js");
|
|
3393
3393
|
const { https = false } = options;
|
|
3394
3394
|
await renderCommand(command, services, /* @__PURE__ */ import_react.default.createElement(DevCommand, { https }), {
|
|
3395
3395
|
watchForModelChanges: true
|
|
@@ -3465,17 +3465,17 @@ var previewCommand = (services) => {
|
|
|
3465
3465
|
).hideHelp()
|
|
3466
3466
|
).action(async (options, command) => {
|
|
3467
3467
|
const { site, baseUrl, json } = options;
|
|
3468
|
-
const { renderCommand, runCommand: runCommand2 } = await import("./render-command-
|
|
3468
|
+
const { renderCommand, runCommand: runCommand2 } = await import("./render-command-7J2YMXLZ.js");
|
|
3469
3469
|
if (json) {
|
|
3470
3470
|
return runCommand2(command, services, async (model) => {
|
|
3471
|
-
const { nonInteractivePreview } = await import("./preview-
|
|
3471
|
+
const { nonInteractivePreview } = await import("./preview-TDYUVTUM.js");
|
|
3472
3472
|
return nonInteractivePreview(services, model, {
|
|
3473
3473
|
baseUrl,
|
|
3474
3474
|
siteId: site
|
|
3475
3475
|
});
|
|
3476
3476
|
});
|
|
3477
3477
|
}
|
|
3478
|
-
const { PreviewCommand } = await import("./PreviewCommand-
|
|
3478
|
+
const { PreviewCommand } = await import("./PreviewCommand-U2UKT324.js");
|
|
3479
3479
|
await renderCommand(
|
|
3480
3480
|
command,
|
|
3481
3481
|
services,
|
|
@@ -3492,8 +3492,8 @@ var addPermissionCommand = (services) => {
|
|
|
3492
3492
|
return createCommand("add-permission").description("adding a permission to the app").addOption(
|
|
3493
3493
|
new Option("-p, --permission-id <id>", t("the permission id to add"))
|
|
3494
3494
|
).action(async (options, command) => {
|
|
3495
|
-
const { renderCommand } = await import("./render-command-
|
|
3496
|
-
const { AddPermissionCommand } = await import("./AddPermissionCommand-
|
|
3495
|
+
const { renderCommand } = await import("./render-command-7J2YMXLZ.js");
|
|
3496
|
+
const { AddPermissionCommand } = await import("./AddPermissionCommand-BEOK7PZ4.js");
|
|
3497
3497
|
const { permissionId = "" } = options;
|
|
3498
3498
|
await renderCommand(
|
|
3499
3499
|
command,
|
|
@@ -3509,8 +3509,8 @@ var import_react4 = __toESM(require_react(), 1);
|
|
|
3509
3509
|
var serveCommand = (services) => {
|
|
3510
3510
|
const t = createI18nT();
|
|
3511
3511
|
return createCommand("serve").description(t("serve_command_def.description")).action(async (_, command) => {
|
|
3512
|
-
const { renderCommand } = await import("./render-command-
|
|
3513
|
-
const { ServeCommandDeprecated } = await import("./ServeCommand-
|
|
3512
|
+
const { renderCommand } = await import("./render-command-7J2YMXLZ.js");
|
|
3513
|
+
const { ServeCommandDeprecated } = await import("./ServeCommand-D7WDZIOW.js");
|
|
3514
3514
|
await renderCommand(command, services, /* @__PURE__ */ import_react4.default.createElement(ServeCommandDeprecated, null));
|
|
3515
3515
|
});
|
|
3516
3516
|
};
|
|
@@ -3525,8 +3525,8 @@ var generateCommand = (services) => {
|
|
|
3525
3525
|
t("generate_command.type_flag"),
|
|
3526
3526
|
validateDocsExtensionType
|
|
3527
3527
|
).description(t("generate_command.description")).action(async (options, command) => {
|
|
3528
|
-
const { GenerateCommand } = await import("./GenerateCommand-
|
|
3529
|
-
const { renderCommand } = await import("./render-command-
|
|
3528
|
+
const { GenerateCommand } = await import("./GenerateCommand-7DARNLA7.js");
|
|
3529
|
+
const { renderCommand } = await import("./render-command-7J2YMXLZ.js");
|
|
3530
3530
|
const { type } = options;
|
|
3531
3531
|
await renderCommand(
|
|
3532
3532
|
command,
|
|
@@ -3550,8 +3550,8 @@ var logsCommand = (services) => {
|
|
|
3550
3550
|
validateVersion
|
|
3551
3551
|
).action(async (options, command) => {
|
|
3552
3552
|
const { version } = options;
|
|
3553
|
-
const { renderCommand } = await import("./render-command-
|
|
3554
|
-
const { LogsCommand } = await import("./LogsCommand-
|
|
3553
|
+
const { renderCommand } = await import("./render-command-7J2YMXLZ.js");
|
|
3554
|
+
const { LogsCommand } = await import("./LogsCommand-3XYEAMY7.js");
|
|
3555
3555
|
await renderCommand(command, services, /* @__PURE__ */ import_react6.default.createElement(LogsCommand, { version }));
|
|
3556
3556
|
});
|
|
3557
3557
|
};
|
|
@@ -3584,8 +3584,8 @@ var releaseCommand = (services) => {
|
|
|
3584
3584
|
t("app_preview_command_def.option.json")
|
|
3585
3585
|
).hideHelp()
|
|
3586
3586
|
).action(async (options, command) => {
|
|
3587
|
-
const { renderCommand } = await import("./render-command-
|
|
3588
|
-
const { ReleaseCommand, ReleaseVersionType } = await import("./ReleaseCommand-
|
|
3587
|
+
const { renderCommand } = await import("./render-command-7J2YMXLZ.js");
|
|
3588
|
+
const { ReleaseCommand, ReleaseVersionType } = await import("./ReleaseCommand-77PZBKAL.js");
|
|
3589
3589
|
const { baseUrl, site, comment, json } = options;
|
|
3590
3590
|
const versionType = options.versionType ? {
|
|
3591
3591
|
major: ReleaseVersionType.MAJOR,
|
|
@@ -3599,7 +3599,7 @@ var releaseCommand = (services) => {
|
|
|
3599
3599
|
};
|
|
3600
3600
|
if (json) {
|
|
3601
3601
|
return runCommand(command, services, async (model) => {
|
|
3602
|
-
const { nonInteractiveRelease } = await import("./release-
|
|
3602
|
+
const { nonInteractiveRelease } = await import("./release-CWTR5WKZ.js");
|
|
3603
3603
|
return nonInteractiveRelease(services, model, props);
|
|
3604
3604
|
});
|
|
3605
3605
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-MAZR75DI.js";import"./chunk-NHYZDMR5.js";import"./chunk-7EYXEF6M.js";import"./chunk-SBZEOPXX.js";function
|
|
1
|
+
import{a}from"./chunk-MAZR75DI.js";import"./chunk-NHYZDMR5.js";import"./chunk-7EYXEF6M.js";import"./chunk-SBZEOPXX.js";function c(){let t=null,n=null;return{promise:new Promise((o,i)=>{t=o,n=i}),resolve:t,reject:n}}var u=t=>{let{createHost:n}=t;return{__type:"host",create:e=>({}),host:e=>{var o,i;let{applicationId:r}=e??{},s=typeof window<"u"?window.wixEmbedsAPI:void 0,l=n(e),f=p();return{...l,apiBaseUrl:f,getMonitoringClient:s==null||s.getMonitoringClientFunction==null?void 0:s.getMonitoringClientFunction(r),essentials:{language:typeof window<"u"?(o=window.commonConfig)==null?void 0:o.language:void 0,locale:typeof window<"u"?(i=window.commonConfig)==null?void 0:i.locale:void 0}}},auth:e=>{let o=typeof window<"u"?window.wixEmbedsAPI:void 0;e||(e=o==null||o.getAccessTokenFunction==null?void 0:o.getAccessTokenFunction());let i=!1,{resolve:r,promise:s}=c();return{getAuthHeaders:async()=>{if(!e&&i&&(e=await s),!e)throw new Error("Failed to resolve auth token");return{headers:{Authorization:await e()}}},getAccessTokenInjector:()=>(i=!0,l=>{r(l)})}}}};function p(){let t=typeof window<"u"?window.wixEmbedsAPI:void 0,n=t==null||t.getExternalBaseUrl==null?void 0:t.getExternalBaseUrl();if(!n)return;let e=new URL(n);return e!=null&&e.pathname&&e.pathname!=="/"?""+e.hostname+e.pathname:e.hostname}var w=t=>{let{clientSdk:n,applicationId:e}=t;return{invoke:async o=>{let{namespace:i,method:r,args:s}=o;if(!n)throw new Error("Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction");return n.invoke({namespace:i,method:r,args:s,applicationId:e,accessToken:"accessToken"})},getAccessToken:()=>{throw new Error("Not implemented")},observeState:()=>({disconnect:()=>{}})}};var m=function(t){var n,e,o;let i=(n=(e=typeof $wixContext<"u"?$wixContext.clientSdk:void 0)!=null?e:t?.clientSdk)!=null?n:typeof window<"u"?(o=window)==null?void 0:o.clientSdk:void 0,{applicationId:r}=t||{};if(!r)throw new Error('"createHost" was called without a required field "applicationId"');return{channel:w({clientSdk:i,applicationId:r}),close:()=>{}}};var d=u({createHost:m});var P=t=>{let n=d.host({applicationId:t}),e=d.auth(),o=e.getAccessTokenInjector();return a({auth:e,host:n}).enableContext("module"),{injectGetAccessToken:o}},_=({host:t,auth:n})=>{a({host:t,auth:n}).enableContext("module")};export{P as enableClient,_ as enablePanelClient};
|
|
2
2
|
//# sourceMappingURL=site.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/@wix/site/src/utils.ts","../../../node_modules/@wix/site/src/websiteHostModule.ts","../../../node_modules/@wix/site/src/channel.ts","../../../node_modules/@wix/site/src/hostPlatform.ts","../../../node_modules/@wix/site/src/index.ts","../src/site.ts"],"sourcesContent":["export function withResolvers<T>(): {\n resolve: (value: T | PromiseLike<T>) => void;\n reject: (reason?: any) => void;\n promise: Promise<T>;\n} {\n let resolve = null as any;\n let reject = null as any;\n\n const promise = new Promise<T>((resolveFn, rejectFn) => {\n resolve = resolveFn;\n reject = rejectFn;\n });\n\n return { promise, resolve, reject };\n}\n","import type { HostModule } from '@wix/sdk-types';\nimport { withResolvers } from './utils';\nimport {\n AccessTokenFn,\n CreateAuthStrategy,\n CreateWebsiteHost,\n Host,\n SDK,\n SDKOptions,\n WixEmbedsAPI,\n} from './types';\n\ndeclare global {\n interface Window {\n wixEmbedsAPI?: WixEmbedsAPI;\n commonConfig?: {\n language?: string;\n locale?: string;\n };\n }\n}\n\nexport const createWebsiteModule = ({\n createHost,\n}: {\n createHost: CreateWebsiteHost;\n}): HostModule<SDK, Host> & {\n host: CreateWebsiteHost;\n auth: CreateAuthStrategy;\n} => {\n return {\n __type: 'host',\n create: (_host) => {\n // Here we can implement module methods that could be used by the SDK via \"wixClient.use(website)\" api.\n // We don't have any for now, so we just return an empty object.\n return {};\n },\n host: (options?: SDKOptions) => {\n const { applicationId } = options ?? {};\n const wixEmbedsAPI =\n typeof window !== 'undefined' ? window.wixEmbedsAPI : undefined;\n\n const host = createHost(options);\n const apiBaseUrl = getApiBaseUrl();\n\n return {\n ...host,\n apiBaseUrl,\n getMonitoringClient:\n wixEmbedsAPI?.getMonitoringClientFunction?.(applicationId),\n essentials: {\n language:\n typeof window !== 'undefined'\n ? window.commonConfig?.language\n : undefined,\n locale:\n typeof window !== 'undefined'\n ? window.commonConfig?.locale\n : undefined,\n },\n };\n },\n auth: (getAccessTokenFn?: AccessTokenFn) => {\n const wixEmbedsAPI =\n typeof window !== 'undefined' ? window.wixEmbedsAPI : undefined;\n\n if (!getAccessTokenFn) {\n /*\n We must call wixEmbedsAPI.getAccessTokenFunction() in the main frame and not from async callbacks / setTimeout calls\n since it uses document.currentScript API behind the scenes\n https://developer.mozilla.org/en-US/docs/Web/API/Document/currentScript\n * */\n getAccessTokenFn = wixEmbedsAPI?.getAccessTokenFunction?.();\n }\n\n let injectorCreated = false;\n\n const { resolve: resolveAccessTokenFn, promise: accessTokenFnPromise } =\n withResolvers<AccessTokenFn>();\n\n return {\n getAuthHeaders: async () => {\n if (!getAccessTokenFn && injectorCreated) {\n getAccessTokenFn = await accessTokenFnPromise;\n }\n\n if (!getAccessTokenFn) {\n throw new Error('Failed to resolve auth token');\n }\n\n return {\n headers: {\n Authorization: await getAccessTokenFn(),\n },\n };\n },\n getAccessTokenInjector: () => {\n injectorCreated = true;\n\n return (_getAccessTokenFn: AccessTokenFn) => {\n resolveAccessTokenFn(_getAccessTokenFn);\n };\n },\n };\n },\n };\n};\n\nfunction getApiBaseUrl() {\n const wixEmbedsAPI =\n typeof window !== 'undefined' ? window.wixEmbedsAPI : undefined;\n const apiBaseUrl = wixEmbedsAPI?.getExternalBaseUrl?.();\n if (!apiBaseUrl) {\n return;\n }\n\n // clean the protocol from the URL\n const parsedUrlObject = new URL(apiBaseUrl);\n if (parsedUrlObject?.pathname && parsedUrlObject.pathname !== '/') {\n return `${parsedUrlObject.hostname}${parsedUrlObject.pathname}`;\n }\n\n return parsedUrlObject.hostname;\n}\n","import { ClientSDK, WebsiteChannel } from './types';\n\nexport const createWebsiteChannel = ({\n clientSdk,\n applicationId,\n}: {\n clientSdk?: ClientSDK;\n applicationId: string;\n}): WebsiteChannel => {\n return {\n invoke: async ({ namespace, method, args }) => {\n if (!clientSdk) {\n throw new Error(\n 'Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction',\n );\n }\n\n return clientSdk.invoke({\n namespace,\n method,\n args,\n applicationId,\n accessToken: 'accessToken',\n });\n },\n getAccessToken: () => {\n throw new Error('Not implemented');\n },\n observeState: () => ({\n disconnect: () => {},\n }),\n };\n};\n","import { createWebsiteChannel } from './channel';\nimport type { CreateWebsiteHost, ClientSDK } from './types';\n\ndeclare global {\n interface Window {\n clientSdk?: ClientSDK;\n }\n}\n\ndeclare const $wixContext: {\n clientSdk: ClientSDK;\n};\n\nexport const createHost: CreateWebsiteHost = function (config) {\n const clientSdk =\n (typeof $wixContext !== 'undefined' && $wixContext.clientSdk) ||\n config?.clientSdk ||\n window.clientSdk;\n const { applicationId } = config || {};\n\n if (!applicationId) {\n throw new Error(\n '\"createHost\" was called without a required field \"applicationId\"',\n );\n }\n\n return {\n // environment: {},\n channel: createWebsiteChannel({ clientSdk, applicationId }),\n close: () => {},\n };\n};\n","import { createWebsiteModule } from './websiteHostModule';\nimport { createHost } from './hostPlatform';\n\nexport const site = createWebsiteModule({ createHost });\n\nexport * from './types';\n","import { site } from '@wix/site';\nimport { createClient } from '@wix/sdk';\n\nimport type { AuthenticationStrategy, Host } from '@wix/sdk';\n\nexport const enableClient = (applicationId: string) => {\n const host = site.host({ applicationId });\n const auth = site.auth();\n const injectGetAccessToken = auth.getAccessTokenInjector();\n\n const wixClient = createClient({\n auth,\n host,\n });\n wixClient.enableContext('module');\n\n return {\n injectGetAccessToken,\n };\n};\n\nexport const enablePanelClient = ({\n host,\n auth,\n}: {\n host: Host;\n auth?: AuthenticationStrategy;\n}) => {\n const wixClient = createClient({ host, auth });\n wixClient.enableContext('module');\n};\n"],"mappings":"uHAAO,SAASA,GAId,CACA,IAAIC,EAAU,KACVC,EAAS,KAOb,MAAO,CAAEC,QALO,IAAIC,QAAW,CAACC,EAAWC,IAAa,CACtDL,EAAUI,EACVH,EAASI,CACX,CAAC,EAEiBL,QAAAA,EAASC,OAAAA,CAAO,CACpC,CCQO,IAAMK,EAAsBC,GAO9B,CAAA,GAP+B,CAClCC,WAAAA,CAGF,EAACD,EAIC,MAAO,CACLE,OAAQ,OACRC,OAASC,IAGA,CAAC,GAEVC,KAAOC,GAAyB,CAAA,IAAAC,EAAAC,EAC9B,GAAM,CAAEC,cAAAA,CAAc,EAAIH,GAAW,CAAC,EAChCI,EACJ,OAAOC,OAAW,IAAcA,OAAOD,aAAeE,OAElDP,EAAOJ,EAAWK,CAAO,EACzBO,EAAaC,EAAc,EAEjC,MAAO,CACL,GAAGT,EACHQ,WAAAA,EACAE,oBACEL,GAAY,MAAZA,EAAcM,6BAA2B,KAAA,OAAzCN,EAAcM,4BAA8BP,CAAa,EAC3DQ,WAAY,CACVC,SACE,OAAOP,OAAW,KAAWJ,EACzBI,OAAOQ,eAAY,KAAA,OAAnBZ,EAAqBW,SACrBN,OACNQ,OACE,OAAOT,OAAW,KAAWH,EACzBG,OAAOQ,eAAY,KAAA,OAAnBX,EAAqBY,OACrBR,MACR,CACF,CACF,EACAS,KAAOC,GAAqC,CAC1C,IAAMZ,EACJ,OAAOC,OAAW,IAAcA,OAAOD,aAAeE,OAEnDU,IAMHA,EAAmBZ,GAAY,MAAZA,EAAca,wBAAsB,KAAA,OAApCb,EAAca,uBAAyB,GAG5D,IAAIC,EAAkB,GAEhB,CAAEC,QAASC,E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E,OAAOF,UACH,CAAEG,cAAAA,CAAc,EAAIJ,GAAU,CAAC,EAErC,GAAI,CAACI,EACH,MAAM,IAAIC,MACR,kEACF,EAGF,MAAO,CAELC,QAASC,EAAqB,CAAEN,UAAAA,EAAWG,cAAAA,CAAc,CAAC,EAC1DI,MAAOA,IAAM,CAAC,CAChB,CACF,EC5BO,IAAMC,EAAOC,EAAoB,CAAEC,WAAAA,CAAW,CAAC,ECE/C,IAAMC,EAAgBC,GAA0B,CACrD,IAAMC,EAAOC,EAAK,KAAK,CAAE,cAAAF,CAAc,CAAC,EAClCG,EAAOD,EAAK,KAAK,EACjBE,EAAuBD,EAAK,uBAAuB,EAMzD,OAJkBE,EAAa,CAC7B,KAAAF,EACA,KAAAF,CACF,CAAC,EACS,cAAc,QAAQ,EAEzB,CACL,qBAAAG,CACF,CACF,EAEaE,EAAoB,CAAC,CAChC,KAAAL,EACA,KAAAE,CACF,IAGM,CACcE,EAAa,CAAE,KAAAJ,EAAM,KAAAE,CAAK,CAAC,EACnC,cAAc,QAAQ,CAClC","names":["withResolvers","resolve","reject","promise","Promise","resolveFn","rejectFn","createWebsiteModule","_ref","createHost","__type","create","_host","host","options","_window$commonConfig","_window$commonConfig2","applicationId","wixEmbedsAPI","window","undefined","apiBaseUrl","getApiBaseUrl","getMonitoringClient","getMonitoringClientFunction","essentials","language","commonConfig","locale","auth","getAccessTokenFn","getAccessTokenFunction","injectorCreated","resolve","resolveAccessTokenFn","promise","accessTokenFnPromise","withResolvers","getAuthHeaders","Error","headers","Authorization","getAccessTokenInjector","_getAccessTokenFn","getExternalBaseUrl","parsedUrlObject","URL","pathname","hostname","createWebsiteChannel","_ref","clientSdk","applicationId","invoke","_ref2","namespace","method","args","Error","accessToken","getAccessToken","observeState","disconnect","createHost","config","clientSdk","$wixContext","window","applicationId","Error","channel","createWebsiteChannel","close","site","createWebsiteModule","createHost","enableClient","applicationId","host","site","auth","injectGetAccessToken","createClient","enablePanelClient"]}
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/@wix/site/src/utils.ts","../../../node_modules/@wix/site/src/websiteHostModule.ts","../../../node_modules/@wix/site/src/channel.ts","../../../node_modules/@wix/site/src/hostPlatform.ts","../../../node_modules/@wix/site/src/index.ts","../src/site.ts"],"sourcesContent":["export function withResolvers<T>(): {\n resolve: (value: T | PromiseLike<T>) => void;\n reject: (reason?: any) => void;\n promise: Promise<T>;\n} {\n let resolve = null as any;\n let reject = null as any;\n\n const promise = new Promise<T>((resolveFn, rejectFn) => {\n resolve = resolveFn;\n reject = rejectFn;\n });\n\n return { promise, resolve, reject };\n}\n","import type { HostModule } from '@wix/sdk-types';\nimport { withResolvers } from './utils';\nimport {\n AccessTokenFn,\n CreateAuthStrategy,\n CreateWebsiteHost,\n Host,\n SDK,\n SDKOptions,\n WixEmbedsAPI,\n} from './types';\n\ndeclare global {\n interface Window {\n wixEmbedsAPI?: WixEmbedsAPI;\n commonConfig?: {\n language?: string;\n locale?: string;\n };\n }\n}\n\nexport const createWebsiteModule = ({\n createHost,\n}: {\n createHost: CreateWebsiteHost;\n}): HostModule<SDK, Host> & {\n host: CreateWebsiteHost;\n auth: CreateAuthStrategy;\n} => {\n return {\n __type: 'host',\n create: (_host) => {\n // Here we can implement module methods that could be used by the SDK via \"wixClient.use(website)\" api.\n // We don't have any for now, so we just return an empty object.\n return {};\n },\n host: (options?: SDKOptions) => {\n const { applicationId } = options ?? {};\n const wixEmbedsAPI =\n typeof window !== 'undefined' ? window.wixEmbedsAPI : undefined;\n\n const host = createHost(options);\n const apiBaseUrl = getApiBaseUrl();\n\n return {\n ...host,\n apiBaseUrl,\n getMonitoringClient:\n wixEmbedsAPI?.getMonitoringClientFunction?.(applicationId),\n essentials: {\n language:\n typeof window !== 'undefined'\n ? window.commonConfig?.language\n : undefined,\n locale:\n typeof window !== 'undefined'\n ? window.commonConfig?.locale\n : undefined,\n },\n };\n },\n auth: (getAccessTokenFn?: AccessTokenFn) => {\n const wixEmbedsAPI =\n typeof window !== 'undefined' ? window.wixEmbedsAPI : undefined;\n\n if (!getAccessTokenFn) {\n /*\n We must call wixEmbedsAPI.getAccessTokenFunction() in the main frame and not from async callbacks / setTimeout calls\n since it uses document.currentScript API behind the scenes\n https://developer.mozilla.org/en-US/docs/Web/API/Document/currentScript\n * */\n getAccessTokenFn = wixEmbedsAPI?.getAccessTokenFunction?.();\n }\n\n let injectorCreated = false;\n\n const { resolve: resolveAccessTokenFn, promise: accessTokenFnPromise } =\n withResolvers<AccessTokenFn>();\n\n return {\n getAuthHeaders: async () => {\n if (!getAccessTokenFn && injectorCreated) {\n getAccessTokenFn = await accessTokenFnPromise;\n }\n\n if (!getAccessTokenFn) {\n throw new Error('Failed to resolve auth token');\n }\n\n return {\n headers: {\n Authorization: await getAccessTokenFn(),\n },\n };\n },\n getAccessTokenInjector: () => {\n injectorCreated = true;\n\n return (_getAccessTokenFn: AccessTokenFn) => {\n resolveAccessTokenFn(_getAccessTokenFn);\n };\n },\n };\n },\n };\n};\n\nfunction getApiBaseUrl() {\n const wixEmbedsAPI =\n typeof window !== 'undefined' ? window.wixEmbedsAPI : undefined;\n const apiBaseUrl = wixEmbedsAPI?.getExternalBaseUrl?.();\n if (!apiBaseUrl) {\n return;\n }\n\n // clean the protocol from the URL\n const parsedUrlObject = new URL(apiBaseUrl);\n if (parsedUrlObject?.pathname && parsedUrlObject.pathname !== '/') {\n return `${parsedUrlObject.hostname}${parsedUrlObject.pathname}`;\n }\n\n return parsedUrlObject.hostname;\n}\n","import { ClientSDK, WebsiteChannel } from './types';\n\nexport const createWebsiteChannel = ({\n clientSdk,\n applicationId,\n}: {\n clientSdk?: ClientSDK;\n applicationId: string;\n}): WebsiteChannel => {\n return {\n invoke: async ({ namespace, method, args }) => {\n if (!clientSdk) {\n throw new Error(\n 'Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction',\n );\n }\n\n return clientSdk.invoke({\n namespace,\n method,\n args,\n applicationId,\n accessToken: 'accessToken',\n });\n },\n getAccessToken: () => {\n throw new Error('Not implemented');\n },\n observeState: () => ({\n disconnect: () => {},\n }),\n };\n};\n","import { createWebsiteChannel } from './channel';\nimport type { CreateWebsiteHost, ClientSDK } from './types';\n\ndeclare global {\n interface Window {\n clientSdk?: ClientSDK;\n }\n}\n\ndeclare const $wixContext: {\n clientSdk: ClientSDK;\n};\n\nexport const createHost: CreateWebsiteHost = function (config) {\n const clientSdk: ClientSDK | undefined =\n (typeof $wixContext !== 'undefined' ? $wixContext.clientSdk : undefined) ??\n config?.clientSdk ??\n (typeof window !== 'undefined' ? window?.clientSdk : undefined);\n const { applicationId } = config || {};\n\n if (!applicationId) {\n throw new Error(\n '\"createHost\" was called without a required field \"applicationId\"',\n );\n }\n\n return {\n // environment: {},\n channel: createWebsiteChannel({ clientSdk, applicationId }),\n close: () => {},\n };\n};\n","import { createWebsiteModule } from './websiteHostModule';\nimport { createHost } from './hostPlatform';\n\nexport const site = createWebsiteModule({ createHost });\n\nexport * from './types';\n","import { site } from '@wix/site';\nimport { createClient } from '@wix/sdk';\n\nimport type { AuthenticationStrategy, Host } from '@wix/sdk';\n\nexport const enableClient = (applicationId: string) => {\n const host = site.host({ applicationId });\n const auth = site.auth();\n const injectGetAccessToken = auth.getAccessTokenInjector();\n\n const wixClient = createClient({\n auth,\n host,\n });\n wixClient.enableContext('module');\n\n return {\n injectGetAccessToken,\n };\n};\n\nexport const enablePanelClient = ({\n host,\n auth,\n}: {\n host: Host;\n auth?: AuthenticationStrategy;\n}) => {\n const wixClient = createClient({ host, auth });\n wixClient.enableContext('module');\n};\n"],"mappings":"uHAAO,SAASA,GAId,CACA,IAAIC,EAAU,KACVC,EAAS,KAOb,MAAO,CAAEC,QALO,IAAIC,QAAW,CAACC,EAAWC,IAAa,CACtDL,EAAUI,EACVH,EAASI,CACX,CAAC,EAEiBL,QAAAA,EAASC,OAAAA,CAAO,CACpC,CCQO,IAAMK,EAAsBC,GAO9B,CAAA,GAP+B,CAClCC,WAAAA,CAG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AAK,CAAE,cAAAF,CAAc,CAAC,EAClCG,EAAOD,EAAK,KAAK,EACjBE,EAAuBD,EAAK,uBAAuB,EAMzD,OAJkBE,EAAa,CAC7B,KAAAF,EACA,KAAAF,CACF,CAAC,EACS,cAAc,QAAQ,EAEzB,CACL,qBAAAG,CACF,CACF,EAEaE,EAAoB,CAAC,CAChC,KAAAL,EACA,KAAAE,CACF,IAGM,CACcE,EAAa,CAAE,KAAAJ,EAAM,KAAAE,CAAK,CAAC,EACnC,cAAc,QAAQ,CAClC","names":["withResolvers","resolve","reject","promise","Promise","resolveFn","rejectFn","createWebsiteModule","_ref","createHost","__type","create","_host","host","options","_window$commonConfig","_window$commonConfig2","applicationId","wixEmbedsAPI","window","undefined","apiBaseUrl","getApiBaseUrl","getMonitoringClient","getMonitoringClientFunction","essentials","language","commonConfig","locale","auth","getAccessTokenFn","getAccessTokenFunction","injectorCreated","resolve","resolveAccessTokenFn","promise","accessTokenFnPromise","withResolvers","getAuthHeaders","Error","headers","Authorization","getAccessTokenInjector","_getAccessTokenFn","getExternalBaseUrl","parsedUrlObject","URL","pathname","hostname","createWebsiteChannel","_ref","clientSdk","applicationId","invoke","_ref2","namespace","method","args","Error","accessToken","getAccessToken","observeState","disconnect","createHost","config","_ref","_ref2","_window","clientSdk","$wixContext","undefined","window","applicationId","Error","channel","createWebsiteChannel","close","site","createWebsiteModule","createHost","enableClient","applicationId","host","site","auth","injectGetAccessToken","createClient","enablePanelClient"]}
|
|
@@ -3,25 +3,25 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executeCommand,
|
|
5
5
|
log
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2A7BQL62.js";
|
|
7
7
|
import {
|
|
8
8
|
PreviewCommand
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-E5RCLVUI.js";
|
|
10
|
+
import "./chunk-GKSCRLAY.js";
|
|
11
11
|
import "./chunk-T5HHDBBR.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-7EMCPTOG.js";
|
|
13
|
+
import "./chunk-4X457QCO.js";
|
|
14
|
+
import "./chunk-QR3SSJAV.js";
|
|
15
|
+
import "./chunk-XA4RPO4T.js";
|
|
16
16
|
import "./chunk-GWE3BRHX.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-7LMKRM53.js";
|
|
18
|
+
import "./chunk-V23BCBX3.js";
|
|
19
|
+
import "./chunk-XJWKNKHT.js";
|
|
20
20
|
import {
|
|
21
21
|
CliError,
|
|
22
22
|
CliErrorCode,
|
|
23
23
|
require_react
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-B4PE24NJ.js";
|
|
25
25
|
import {
|
|
26
26
|
__toESM,
|
|
27
27
|
init_esm_shims
|
|
@@ -51,4 +51,4 @@ async function nonInteractivePreview(services, model, options) {
|
|
|
51
51
|
export {
|
|
52
52
|
nonInteractivePreview
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=preview-
|
|
54
|
+
//# sourceMappingURL=preview-TDYUVTUM.js.map
|
|
@@ -3,28 +3,28 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executeCommand,
|
|
5
5
|
log
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2A7BQL62.js";
|
|
7
7
|
import {
|
|
8
8
|
ReleaseCommand
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-UNKB5G5S.js";
|
|
10
|
+
import "./chunk-E5RCLVUI.js";
|
|
11
|
+
import "./chunk-GKSCRLAY.js";
|
|
12
12
|
import "./chunk-T5HHDBBR.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-7EMCPTOG.js";
|
|
14
|
+
import "./chunk-4X457QCO.js";
|
|
15
|
+
import "./chunk-UKJ775WP.js";
|
|
16
|
+
import "./chunk-QR3SSJAV.js";
|
|
17
|
+
import "./chunk-XA4RPO4T.js";
|
|
18
18
|
import "./chunk-GWE3BRHX.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-7LMKRM53.js";
|
|
20
|
+
import "./chunk-V23BCBX3.js";
|
|
21
|
+
import "./chunk-XJWKNKHT.js";
|
|
22
22
|
import {
|
|
23
23
|
CliError,
|
|
24
24
|
CliErrorCode,
|
|
25
25
|
require_react,
|
|
26
26
|
toJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-B4PE24NJ.js";
|
|
28
28
|
import {
|
|
29
29
|
__toESM,
|
|
30
30
|
init_esm_shims
|
|
@@ -56,4 +56,4 @@ async function nonInteractiveRelease(services, model, releaseProps) {
|
|
|
56
56
|
export {
|
|
57
57
|
nonInteractiveRelease
|
|
58
58
|
};
|
|
59
|
-
//# sourceMappingURL=release-
|
|
59
|
+
//# sourceMappingURL=release-CWTR5WKZ.js.map
|
|
@@ -3,14 +3,14 @@ const require = _createRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
renderCommand,
|
|
5
5
|
runCommand
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-5U6N7S66.js";
|
|
7
|
+
import "./chunk-GKSCRLAY.js";
|
|
8
8
|
import "./chunk-T5HHDBBR.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-7LMKRM53.js";
|
|
10
|
+
import "./chunk-B4PE24NJ.js";
|
|
11
11
|
import "./chunk-4EFJZ3GQ.js";
|
|
12
12
|
export {
|
|
13
13
|
renderCommand,
|
|
14
14
|
runCommand
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=render-command-
|
|
16
|
+
//# sourceMappingURL=render-command-7J2YMXLZ.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/cli-app",
|
|
3
3
|
"description": "CLI tool for Wix apps",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.104",
|
|
5
5
|
"author": "Amit Dahan",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"esbuild": "^0.25.0",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@wix/ambassador-cli-site-override-service-v1-site-override": "^1.0.10",
|
|
20
20
|
"@wix/ambassador-ctp-app-cloud-backend-service-v1-app-cloud-backend-deployment": "^1.0.12",
|
|
21
21
|
"@wix/ambassador-ctp-gradual-rollout-v1-app-config": "^1.0.79",
|
|
22
|
-
"@wix/ambassador-devcenter-apps-v1-app-old": "^1.0.
|
|
22
|
+
"@wix/ambassador-devcenter-apps-v1-app-old": "^1.0.59",
|
|
23
23
|
"@wix/app-cloud-uploader": "^1.18.0",
|
|
24
24
|
"@wix/arm-client": "0.0.0",
|
|
25
25
|
"@wix/bi-logger-dev-tools-data": "^1.114.0",
|
|
@@ -153,5 +153,5 @@
|
|
|
153
153
|
]
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
|
-
"falconPackageHash": "
|
|
156
|
+
"falconPackageHash": "3626dbf8e6a4bf1021fdb376ae39c60a7fe3d9011afff704a6b6d7b6"
|
|
157
157
|
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
-
const require = _createRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
PreviewCommand
|
|
5
|
-
} from "./chunk-2PWMAOFK.js";
|
|
6
|
-
import "./chunk-LFE6DV2A.js";
|
|
7
|
-
import "./chunk-HQWWEMUE.js";
|
|
8
|
-
import "./chunk-FQVLZZ37.js";
|
|
9
|
-
import "./chunk-ASICDRRU.js";
|
|
10
|
-
import "./chunk-GWE3BRHX.js";
|
|
11
|
-
import "./chunk-2FFNGH2K.js";
|
|
12
|
-
import "./chunk-4BN6QXJE.js";
|
|
13
|
-
import "./chunk-IJSYFKIP.js";
|
|
14
|
-
import "./chunk-5HJEX4ZX.js";
|
|
15
|
-
import "./chunk-4EFJZ3GQ.js";
|
|
16
|
-
export {
|
|
17
|
-
PreviewCommand
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=PreviewCommand-WY3GWOX4.js.map
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
-
const require = _createRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
ReleaseCommand,
|
|
5
|
-
ReleaseVersionType
|
|
6
|
-
} from "./chunk-EK3FDNFJ.js";
|
|
7
|
-
import "./chunk-2PWMAOFK.js";
|
|
8
|
-
import "./chunk-LFE6DV2A.js";
|
|
9
|
-
import "./chunk-HQWWEMUE.js";
|
|
10
|
-
import "./chunk-WHR6NSJW.js";
|
|
11
|
-
import "./chunk-FQVLZZ37.js";
|
|
12
|
-
import "./chunk-ASICDRRU.js";
|
|
13
|
-
import "./chunk-GWE3BRHX.js";
|
|
14
|
-
import "./chunk-2FFNGH2K.js";
|
|
15
|
-
import "./chunk-4BN6QXJE.js";
|
|
16
|
-
import "./chunk-IJSYFKIP.js";
|
|
17
|
-
import "./chunk-5HJEX4ZX.js";
|
|
18
|
-
import "./chunk-4EFJZ3GQ.js";
|
|
19
|
-
export {
|
|
20
|
-
ReleaseCommand,
|
|
21
|
-
ReleaseVersionType
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=ReleaseCommand-KDD44AO7.js.map
|
/package/build/{AddPermissionCommand-47NX5FID.js.map → AddPermissionCommand-BEOK7PZ4.js.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|