@wix/cli-app 1.1.62 → 1.1.63
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/{CreateVersionCommand-IEF6U34E.js → CreateVersionCommand-HSZ5KOXI.js} +14 -14
- package/build/{DevCommand-SOODXUEP.js → DevCommand-U5VNLUWE.js} +17 -13
- package/build/DevCommand-U5VNLUWE.js.map +1 -0
- package/build/{GenerateCommand-ARNW73TM.js → GenerateCommand-EAOS2X3X.js} +7 -7
- package/build/{LogsCommand-7TW36YZX.js → LogsCommand-OW2ZNER5.js} +4 -4
- package/build/PreviewCommand-MMMYRI4Z.js +23 -0
- package/build/{ReleaseCommand-SB2WWSVP.js → ReleaseCommand-L4WZJXHC.js} +14 -14
- package/build/{ServeCommand-GZKF6AN3.js → ServeCommand-RR7E4CTH.js} +13 -13
- package/build/{build-LHCSCFBM.js → build-KQLNYCVG.js} +7 -7
- package/build/{chunk-YW2RBPPY.js → chunk-3I7X6TPV.js} +3 -3
- package/build/{chunk-4WKSS3PU.js → chunk-7I5LSGDI.js} +3 -3
- package/build/{chunk-6IX6CDWB.js → chunk-7XQDPLBO.js} +7 -7
- package/build/{chunk-PM4M3SGC.js → chunk-CQUQ6WJV.js} +2 -2
- package/build/chunk-CQUQ6WJV.js.map +1 -0
- package/build/{chunk-LMFNRK6X.js → chunk-DIA3AFPZ.js} +2 -2
- package/build/{chunk-KJR4P55M.js → chunk-EYB7PRAB.js} +2 -2
- package/build/{chunk-HKX5ODUN.js → chunk-FXVMZQC7.js} +3 -3
- package/build/{chunk-A3FHJ4EK.js → chunk-HAPDEIJZ.js} +3 -3
- package/build/{chunk-6US7335E.js → chunk-IB2EYESP.js} +3 -3
- package/build/{chunk-KCNEUOW2.js → chunk-NWRBK74T.js} +8 -8
- package/build/{chunk-UZXKDHQZ.js → chunk-OHPZ74IV.js} +5 -5
- package/build/{chunk-V75TFIXI.js → chunk-OV6Y7VX4.js} +4 -4
- package/build/{chunk-MTEB33GR.js → chunk-SFPBI2MM.js} +3 -3
- package/build/{chunk-KVM6MGID.js → chunk-SK3ICCEA.js} +3 -3
- package/build/{chunk-LULKQBSP.js → chunk-SXIV63HN.js} +425 -312
- package/build/chunk-SXIV63HN.js.map +1 -0
- package/build/{chunk-UE7LDQKD.js → chunk-VSQ4XHEB.js} +2 -2
- package/build/{chunk-5R5H3Y2D.js → chunk-XYNJZDSJ.js} +5 -5
- package/build/cloudflare-runtime/entry.js +1 -1
- package/build/cloudflare-runtime/getRegisteredExtensions.js +1 -1
- package/build/index.js +47 -32
- package/build/index.js.map +1 -1
- package/build/platform-sdk/chunk-7EYXEF6M.js +2 -0
- package/build/platform-sdk/chunk-7EYXEF6M.js.map +1 -0
- package/build/platform-sdk/chunk-BGTZ3RNN.js +2 -0
- package/build/platform-sdk/chunk-BGTZ3RNN.js.map +1 -0
- package/build/platform-sdk/chunk-DGX4CFXG.js +2 -0
- package/build/platform-sdk/chunk-DGX4CFXG.js.map +1 -0
- package/build/platform-sdk/chunk-XYIDODIB.js +2 -0
- package/build/platform-sdk/{chunk-VXQAZIAE.js.map → chunk-XYIDODIB.js.map} +1 -1
- package/build/platform-sdk/dashboard.js +1 -1
- package/build/platform-sdk/dashboard.js.map +1 -1
- package/build/platform-sdk/editor.js +5 -5
- package/build/platform-sdk/editor.js.map +1 -1
- package/build/platform-sdk/sdk-context.js +1 -1
- package/build/platform-sdk/sdk-context.js.map +1 -1
- package/build/platform-sdk/site.js +1 -1
- package/build/platform-sdk/site.js.map +1 -1
- package/build/platform-sdk/web-methods.js +1 -1
- package/build/platform-sdk/web-methods.js.map +1 -1
- package/build/{preview-ZAKEXAJH.js → preview-4UF7QRIS.js} +12 -12
- package/build/{render-command-XMQH723O.js → render-command-5DTSCPVY.js} +5 -5
- package/package.json +3 -3
- package/schemas/site-plugin.json +1 -1
- package/templates/web-method/dependencies.json +1 -1
- package/templates/web-method/files/placeholder.ts.ejs +1 -1
- package/build/DevCommand-SOODXUEP.js.map +0 -1
- package/build/PreviewCommand-ZZKRP2GF.js +0 -23
- package/build/chunk-LULKQBSP.js.map +0 -1
- package/build/chunk-PM4M3SGC.js.map +0 -1
- package/build/platform-sdk/chunk-3U6QUCP3.js +0 -2
- package/build/platform-sdk/chunk-3U6QUCP3.js.map +0 -1
- package/build/platform-sdk/chunk-FLUCZ5U6.js +0 -2
- package/build/platform-sdk/chunk-FLUCZ5U6.js.map +0 -1
- package/build/platform-sdk/chunk-VXQAZIAE.js +0 -2
- package/build/platform-sdk/chunk-ZM5O3GFB.js +0 -2
- package/build/platform-sdk/chunk-ZM5O3GFB.js.map +0 -1
- /package/build/{CreateVersionCommand-IEF6U34E.js.map → CreateVersionCommand-HSZ5KOXI.js.map} +0 -0
- /package/build/{GenerateCommand-ARNW73TM.js.map → GenerateCommand-EAOS2X3X.js.map} +0 -0
- /package/build/{LogsCommand-7TW36YZX.js.map → LogsCommand-OW2ZNER5.js.map} +0 -0
- /package/build/{PreviewCommand-ZZKRP2GF.js.map → PreviewCommand-MMMYRI4Z.js.map} +0 -0
- /package/build/{ReleaseCommand-SB2WWSVP.js.map → ReleaseCommand-L4WZJXHC.js.map} +0 -0
- /package/build/{ServeCommand-GZKF6AN3.js.map → ServeCommand-RR7E4CTH.js.map} +0 -0
- /package/build/{build-LHCSCFBM.js.map → build-KQLNYCVG.js.map} +0 -0
- /package/build/{chunk-YW2RBPPY.js.map → chunk-3I7X6TPV.js.map} +0 -0
- /package/build/{chunk-4WKSS3PU.js.map → chunk-7I5LSGDI.js.map} +0 -0
- /package/build/{chunk-6IX6CDWB.js.map → chunk-7XQDPLBO.js.map} +0 -0
- /package/build/{chunk-LMFNRK6X.js.map → chunk-DIA3AFPZ.js.map} +0 -0
- /package/build/{chunk-KJR4P55M.js.map → chunk-EYB7PRAB.js.map} +0 -0
- /package/build/{chunk-HKX5ODUN.js.map → chunk-FXVMZQC7.js.map} +0 -0
- /package/build/{chunk-A3FHJ4EK.js.map → chunk-HAPDEIJZ.js.map} +0 -0
- /package/build/{chunk-6US7335E.js.map → chunk-IB2EYESP.js.map} +0 -0
- /package/build/{chunk-KCNEUOW2.js.map → chunk-NWRBK74T.js.map} +0 -0
- /package/build/{chunk-UZXKDHQZ.js.map → chunk-OHPZ74IV.js.map} +0 -0
- /package/build/{chunk-V75TFIXI.js.map → chunk-OV6Y7VX4.js.map} +0 -0
- /package/build/{chunk-MTEB33GR.js.map → chunk-SFPBI2MM.js.map} +0 -0
- /package/build/{chunk-KVM6MGID.js.map → chunk-SK3ICCEA.js.map} +0 -0
- /package/build/{chunk-UE7LDQKD.js.map → chunk-VSQ4XHEB.js.map} +0 -0
- /package/build/{chunk-5R5H3Y2D.js.map → chunk-XYNJZDSJ.js.map} +0 -0
- /package/build/{preview-ZAKEXAJH.js.map → preview-4UF7QRIS.js.map} +0 -0
- /package/build/{render-command-XMQH723O.js.map → render-command-5DTSCPVY.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
|
createRendererToString
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CQUQ6WJV.js";
|
|
6
6
|
import {
|
|
7
7
|
init_esm_shims
|
|
8
8
|
} from "./chunk-PYIAC2GK.js";
|
|
@@ -48,4 +48,4 @@ function createLogger({
|
|
|
48
48
|
export {
|
|
49
49
|
createLogger
|
|
50
50
|
};
|
|
51
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-VSQ4XHEB.js.map
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
SiteState,
|
|
6
6
|
resolveConfiguredSite,
|
|
7
7
|
useSiteListClient
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7XQDPLBO.js";
|
|
9
9
|
import {
|
|
10
10
|
useDebugLog
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SK3ICCEA.js";
|
|
12
12
|
import {
|
|
13
13
|
APP_CONFIG_PATH,
|
|
14
14
|
BiProvider,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
useProjectModel,
|
|
23
23
|
wixCliAction,
|
|
24
24
|
wixCliAppFlowStepsAnswers
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SXIV63HN.js";
|
|
26
26
|
import {
|
|
27
27
|
Alert,
|
|
28
28
|
Badge,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
useExit,
|
|
44
44
|
useTranslation,
|
|
45
45
|
use_input_default
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-CQUQ6WJV.js";
|
|
47
47
|
import {
|
|
48
48
|
__toESM,
|
|
49
49
|
init_esm_shims
|
|
@@ -576,4 +576,4 @@ export {
|
|
|
576
576
|
SiteProvider,
|
|
577
577
|
usePlatform
|
|
578
578
|
};
|
|
579
|
-
//# sourceMappingURL=chunk-
|
|
579
|
+
//# sourceMappingURL=chunk-XYNJZDSJ.js.map
|
|
@@ -11603,7 +11603,7 @@ function objectToKeyValue(input) {
|
|
|
11603
11603
|
return Object.entries(input).filter(([_, value]) => Boolean(value)).map(([key, value]) => `${key}=${value}`).join(",");
|
|
11604
11604
|
}
|
|
11605
11605
|
|
|
11606
|
-
// ../../node_modules/@wix/sdk-runtime/build/context.js
|
|
11606
|
+
// ../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/context.js
|
|
11607
11607
|
function runWithoutContext(fn) {
|
|
11608
11608
|
const globalContext = globalThis.__wix_context__;
|
|
11609
11609
|
const moduleContext = {
|
|
@@ -4414,7 +4414,7 @@ function objectToKeyValue(input) {
|
|
|
4414
4414
|
return Object.entries(input).filter(([_, value]) => Boolean(value)).map(([key, value]) => `${key}=${value}`).join(",");
|
|
4415
4415
|
}
|
|
4416
4416
|
|
|
4417
|
-
// ../../node_modules/@wix/sdk-runtime/build/context.js
|
|
4417
|
+
// ../../node_modules/@wix/sdk/node_modules/@wix/sdk-runtime/build/context.js
|
|
4418
4418
|
function runWithoutContext(fn) {
|
|
4419
4419
|
const globalContext = globalThis.__wix_context__;
|
|
4420
4420
|
const moduleContext = {
|
package/build/index.js
CHANGED
|
@@ -2,13 +2,13 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
createI18nT
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EYB7PRAB.js";
|
|
6
6
|
import "./chunk-2DRVDGHR.js";
|
|
7
7
|
import {
|
|
8
8
|
require_react,
|
|
9
9
|
version,
|
|
10
10
|
z
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CQUQ6WJV.js";
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require,
|
|
@@ -1020,20 +1020,35 @@ var require_option = __commonJS({
|
|
|
1020
1020
|
const flagParts = flags.split(/[ |,]+/).concat("guard");
|
|
1021
1021
|
if (shortFlagExp.test(flagParts[0])) shortFlag = flagParts.shift();
|
|
1022
1022
|
if (longFlagExp.test(flagParts[0])) longFlag = flagParts.shift();
|
|
1023
|
-
if (
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1023
|
+
if (!shortFlag && shortFlagExp.test(flagParts[0]))
|
|
1024
|
+
shortFlag = flagParts.shift();
|
|
1025
|
+
if (!shortFlag && longFlagExp.test(flagParts[0])) {
|
|
1026
|
+
shortFlag = longFlag;
|
|
1027
|
+
longFlag = flagParts.shift();
|
|
1028
|
+
}
|
|
1029
|
+
if (flagParts[0].startsWith("-")) {
|
|
1030
|
+
const unsupportedFlag = flagParts[0];
|
|
1031
|
+
const baseError = `option creation failed due to '${unsupportedFlag}' in option flags '${flags}'`;
|
|
1032
|
+
if (/^-[^-][^-]/.test(unsupportedFlag))
|
|
1033
|
+
throw new Error(
|
|
1034
|
+
`${baseError}
|
|
1035
|
+
- a short flag is a single dash and a single character
|
|
1036
|
+
- either use a single dash and a single character (for a short flag)
|
|
1037
|
+
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`
|
|
1038
|
+
);
|
|
1039
|
+
if (shortFlagExp.test(unsupportedFlag))
|
|
1040
|
+
throw new Error(`${baseError}
|
|
1041
|
+
- too many short flags`);
|
|
1042
|
+
if (longFlagExp.test(unsupportedFlag))
|
|
1043
|
+
throw new Error(`${baseError}
|
|
1044
|
+
- too many long flags`);
|
|
1045
|
+
throw new Error(`${baseError}
|
|
1046
|
+
- unrecognised flag format`);
|
|
1047
|
+
}
|
|
1048
|
+
if (shortFlag === void 0 && longFlag === void 0)
|
|
1032
1049
|
throw new Error(
|
|
1033
|
-
`
|
|
1050
|
+
`option creation failed due to no flags found in '${flags}'.`
|
|
1034
1051
|
);
|
|
1035
|
-
if (!(shortFlag || longFlag) || flagParts[0].startsWith("-"))
|
|
1036
|
-
throw new Error(`invalid Option flags: '${flags}'`);
|
|
1037
1052
|
return { shortFlag, longFlag };
|
|
1038
1053
|
}
|
|
1039
1054
|
exports.Option = Option2;
|
|
@@ -1765,7 +1780,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1765
1780
|
* @example
|
|
1766
1781
|
* program
|
|
1767
1782
|
* .option('-p, --pepper', 'add pepper')
|
|
1768
|
-
* .option('
|
|
1783
|
+
* .option('--pt, --pizza-type <TYPE>', 'type of pizza') // required option-argument
|
|
1769
1784
|
* .option('-c, --cheese [CHEESE]', 'add extra cheese', 'mozzarella') // optional option-argument with default
|
|
1770
1785
|
* .option('-t, --tip <VALUE>', 'add tip to purchase cost', parseFloat) // custom parse function
|
|
1771
1786
|
*
|
|
@@ -3356,8 +3371,8 @@ var {
|
|
|
3356
3371
|
// src/commands/build.ts
|
|
3357
3372
|
init_esm_shims();
|
|
3358
3373
|
var buildCommand = (services) => createCommand("build").action(async (_, command) => {
|
|
3359
|
-
const { runCommand } = await import("./render-command-
|
|
3360
|
-
const { build } = await import("./build-
|
|
3374
|
+
const { runCommand } = await import("./render-command-5DTSCPVY.js");
|
|
3375
|
+
const { build } = await import("./build-KQLNYCVG.js");
|
|
3361
3376
|
await runCommand(command, services, build);
|
|
3362
3377
|
});
|
|
3363
3378
|
|
|
@@ -3367,8 +3382,8 @@ var import_react = __toESM(require_react(), 1);
|
|
|
3367
3382
|
var devCommand = (services) => {
|
|
3368
3383
|
const t = createI18nT();
|
|
3369
3384
|
return createCommand("dev").option("-s, --https", t("dev_command_def.option.https")).action(async (options, command) => {
|
|
3370
|
-
const { DevCommand } = await import("./DevCommand-
|
|
3371
|
-
const { renderCommand } = await import("./render-command-
|
|
3385
|
+
const { DevCommand } = await import("./DevCommand-U5VNLUWE.js");
|
|
3386
|
+
const { renderCommand } = await import("./render-command-5DTSCPVY.js");
|
|
3372
3387
|
const { https = false } = options;
|
|
3373
3388
|
await renderCommand(command, services, /* @__PURE__ */ import_react.default.createElement(DevCommand, { https }), {
|
|
3374
3389
|
watchForModelChanges: true
|
|
@@ -3419,10 +3434,10 @@ var previewCommand = (services) => {
|
|
|
3419
3434
|
validateBase
|
|
3420
3435
|
).option("--no-input", t("app_preview_command_def.option.no_input")).action(async (options, command) => {
|
|
3421
3436
|
const { site, baseUrl, input } = options;
|
|
3422
|
-
const { renderCommand, runCommand } = await import("./render-command-
|
|
3437
|
+
const { renderCommand, runCommand } = await import("./render-command-5DTSCPVY.js");
|
|
3423
3438
|
if (!input) {
|
|
3424
3439
|
return runCommand(command, services, async (model) => {
|
|
3425
|
-
const { nonInteractivePreview } = await import("./preview-
|
|
3440
|
+
const { nonInteractivePreview } = await import("./preview-4UF7QRIS.js");
|
|
3426
3441
|
return nonInteractivePreview(
|
|
3427
3442
|
{ siteId: site, baseUrl },
|
|
3428
3443
|
model,
|
|
@@ -3430,7 +3445,7 @@ var previewCommand = (services) => {
|
|
|
3430
3445
|
);
|
|
3431
3446
|
});
|
|
3432
3447
|
}
|
|
3433
|
-
const { PreviewCommand } = await import("./PreviewCommand-
|
|
3448
|
+
const { PreviewCommand } = await import("./PreviewCommand-MMMYRI4Z.js");
|
|
3434
3449
|
await renderCommand(
|
|
3435
3450
|
command,
|
|
3436
3451
|
services,
|
|
@@ -3462,8 +3477,8 @@ var createVersionCommand = (services) => {
|
|
|
3462
3477
|
validateBase
|
|
3463
3478
|
).action(async (options, command) => {
|
|
3464
3479
|
const { VersionType } = await import("./types.impl-CD4WWRUK.js");
|
|
3465
|
-
const { renderCommand } = await import("./render-command-
|
|
3466
|
-
const { CreateVersionCommand } = await import("./CreateVersionCommand-
|
|
3480
|
+
const { renderCommand } = await import("./render-command-5DTSCPVY.js");
|
|
3481
|
+
const { CreateVersionCommand } = await import("./CreateVersionCommand-HSZ5KOXI.js");
|
|
3467
3482
|
const {
|
|
3468
3483
|
approvePreview = false,
|
|
3469
3484
|
versionType: versionTypeString,
|
|
@@ -3495,8 +3510,8 @@ var createVersionCommand = (services) => {
|
|
|
3495
3510
|
init_esm_shims();
|
|
3496
3511
|
var import_react4 = __toESM(require_react(), 1);
|
|
3497
3512
|
var serveCommand = (services) => createCommand("serve").action(async (_, command) => {
|
|
3498
|
-
const { renderCommand } = await import("./render-command-
|
|
3499
|
-
const { ServeCommand } = await import("./ServeCommand-
|
|
3513
|
+
const { renderCommand } = await import("./render-command-5DTSCPVY.js");
|
|
3514
|
+
const { ServeCommand } = await import("./ServeCommand-RR7E4CTH.js");
|
|
3500
3515
|
await renderCommand(command, services, /* @__PURE__ */ import_react4.default.createElement(ServeCommand, null));
|
|
3501
3516
|
});
|
|
3502
3517
|
|
|
@@ -3506,8 +3521,8 @@ var import_react5 = __toESM(require_react(), 1);
|
|
|
3506
3521
|
var generateCommand = (services) => {
|
|
3507
3522
|
const t = createI18nT();
|
|
3508
3523
|
return createCommand("generate").description(t("generate_command.description")).action(async (options, command) => {
|
|
3509
|
-
const { GenerateCommand } = await import("./GenerateCommand-
|
|
3510
|
-
const { renderCommand } = await import("./render-command-
|
|
3524
|
+
const { GenerateCommand } = await import("./GenerateCommand-EAOS2X3X.js");
|
|
3525
|
+
const { renderCommand } = await import("./render-command-5DTSCPVY.js");
|
|
3511
3526
|
await renderCommand(command, services, /* @__PURE__ */ import_react5.default.createElement(GenerateCommand, null), {
|
|
3512
3527
|
skipProjectValidation: true
|
|
3513
3528
|
});
|
|
@@ -3525,8 +3540,8 @@ var logsCommand = (services) => {
|
|
|
3525
3540
|
validateVersion
|
|
3526
3541
|
).action(async (options, command) => {
|
|
3527
3542
|
const { version: version2 } = options;
|
|
3528
|
-
const { renderCommand } = await import("./render-command-
|
|
3529
|
-
const { LogsCommand } = await import("./LogsCommand-
|
|
3543
|
+
const { renderCommand } = await import("./render-command-5DTSCPVY.js");
|
|
3544
|
+
const { LogsCommand } = await import("./LogsCommand-OW2ZNER5.js");
|
|
3530
3545
|
await renderCommand(command, services, /* @__PURE__ */ import_react6.default.createElement(LogsCommand, { version: version2 }));
|
|
3531
3546
|
});
|
|
3532
3547
|
};
|
|
@@ -3545,8 +3560,8 @@ var releaseCommand = (services) => {
|
|
|
3545
3560
|
t("release_command_def.option.base_url"),
|
|
3546
3561
|
validateBase
|
|
3547
3562
|
).action(async (options, command) => {
|
|
3548
|
-
const { renderCommand } = await import("./render-command-
|
|
3549
|
-
const { ReleaseCommand } = await import("./ReleaseCommand-
|
|
3563
|
+
const { renderCommand } = await import("./render-command-5DTSCPVY.js");
|
|
3564
|
+
const { ReleaseCommand } = await import("./ReleaseCommand-L4WZJXHC.js");
|
|
3550
3565
|
const { baseUrl, site } = options;
|
|
3551
3566
|
await renderCommand(
|
|
3552
3567
|
command,
|