@wix/create-app 0.0.178 → 0.0.180
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/{chunk-WQQ7N27K.js → chunk-4DS5R2FR.js} +3 -1
- package/build/{chunk-WQQ7N27K.js.map → chunk-4DS5R2FR.js.map} +1 -1
- package/build/{generator-BDJKUNKO.js → generator-SZZQROVV.js} +2 -2
- package/build/index.js +454 -330
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- /package/build/{generator-BDJKUNKO.js.map → generator-SZZQROVV.js.map} +0 -0
package/build/index.js
CHANGED
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
setupTestEnv,
|
|
100
100
|
writeJson,
|
|
101
101
|
zod_default
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-4DS5R2FR.js";
|
|
103
103
|
import {
|
|
104
104
|
__commonJS,
|
|
105
105
|
__dirname,
|
|
@@ -7656,206 +7656,6 @@ var require_arr_rotate = __commonJS({
|
|
|
7656
7656
|
}
|
|
7657
7657
|
});
|
|
7658
7658
|
|
|
7659
|
-
// ../../node_modules/has-flag/index.js
|
|
7660
|
-
var require_has_flag = __commonJS({
|
|
7661
|
-
"../../node_modules/has-flag/index.js"(exports, module2) {
|
|
7662
|
-
"use strict";
|
|
7663
|
-
init_esm_shims();
|
|
7664
|
-
module2.exports = (flag, argv = process.argv) => {
|
|
7665
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
7666
|
-
const position = argv.indexOf(prefix + flag);
|
|
7667
|
-
const terminatorPosition = argv.indexOf("--");
|
|
7668
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
7669
|
-
};
|
|
7670
|
-
}
|
|
7671
|
-
});
|
|
7672
|
-
|
|
7673
|
-
// ../../node_modules/supports-color/index.js
|
|
7674
|
-
var require_supports_color = __commonJS({
|
|
7675
|
-
"../../node_modules/supports-color/index.js"(exports, module2) {
|
|
7676
|
-
"use strict";
|
|
7677
|
-
init_esm_shims();
|
|
7678
|
-
var os6 = __require("os");
|
|
7679
|
-
var tty2 = __require("tty");
|
|
7680
|
-
var hasFlag2 = require_has_flag();
|
|
7681
|
-
var { env: env2 } = process;
|
|
7682
|
-
var forceColor;
|
|
7683
|
-
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
|
|
7684
|
-
forceColor = 0;
|
|
7685
|
-
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
7686
|
-
forceColor = 1;
|
|
7687
|
-
}
|
|
7688
|
-
if ("FORCE_COLOR" in env2) {
|
|
7689
|
-
if (env2.FORCE_COLOR === "true") {
|
|
7690
|
-
forceColor = 1;
|
|
7691
|
-
} else if (env2.FORCE_COLOR === "false") {
|
|
7692
|
-
forceColor = 0;
|
|
7693
|
-
} else {
|
|
7694
|
-
forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
|
|
7695
|
-
}
|
|
7696
|
-
}
|
|
7697
|
-
function translateLevel2(level) {
|
|
7698
|
-
if (level === 0) {
|
|
7699
|
-
return false;
|
|
7700
|
-
}
|
|
7701
|
-
return {
|
|
7702
|
-
level,
|
|
7703
|
-
hasBasic: true,
|
|
7704
|
-
has256: level >= 2,
|
|
7705
|
-
has16m: level >= 3
|
|
7706
|
-
};
|
|
7707
|
-
}
|
|
7708
|
-
function supportsColor2(haveStream, streamIsTTY) {
|
|
7709
|
-
if (forceColor === 0) {
|
|
7710
|
-
return 0;
|
|
7711
|
-
}
|
|
7712
|
-
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
7713
|
-
return 3;
|
|
7714
|
-
}
|
|
7715
|
-
if (hasFlag2("color=256")) {
|
|
7716
|
-
return 2;
|
|
7717
|
-
}
|
|
7718
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
7719
|
-
return 0;
|
|
7720
|
-
}
|
|
7721
|
-
const min = forceColor || 0;
|
|
7722
|
-
if (env2.TERM === "dumb") {
|
|
7723
|
-
return min;
|
|
7724
|
-
}
|
|
7725
|
-
if (process.platform === "win32") {
|
|
7726
|
-
const osRelease = os6.release().split(".");
|
|
7727
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
7728
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
7729
|
-
}
|
|
7730
|
-
return 1;
|
|
7731
|
-
}
|
|
7732
|
-
if ("CI" in env2) {
|
|
7733
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
|
|
7734
|
-
return 1;
|
|
7735
|
-
}
|
|
7736
|
-
return min;
|
|
7737
|
-
}
|
|
7738
|
-
if ("TEAMCITY_VERSION" in env2) {
|
|
7739
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
7740
|
-
}
|
|
7741
|
-
if (env2.COLORTERM === "truecolor") {
|
|
7742
|
-
return 3;
|
|
7743
|
-
}
|
|
7744
|
-
if ("TERM_PROGRAM" in env2) {
|
|
7745
|
-
const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
7746
|
-
switch (env2.TERM_PROGRAM) {
|
|
7747
|
-
case "iTerm.app":
|
|
7748
|
-
return version >= 3 ? 3 : 2;
|
|
7749
|
-
case "Apple_Terminal":
|
|
7750
|
-
return 2;
|
|
7751
|
-
}
|
|
7752
|
-
}
|
|
7753
|
-
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
7754
|
-
return 2;
|
|
7755
|
-
}
|
|
7756
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
7757
|
-
return 1;
|
|
7758
|
-
}
|
|
7759
|
-
if ("COLORTERM" in env2) {
|
|
7760
|
-
return 1;
|
|
7761
|
-
}
|
|
7762
|
-
return min;
|
|
7763
|
-
}
|
|
7764
|
-
function getSupportLevel(stream) {
|
|
7765
|
-
const level = supportsColor2(stream, stream && stream.isTTY);
|
|
7766
|
-
return translateLevel2(level);
|
|
7767
|
-
}
|
|
7768
|
-
module2.exports = {
|
|
7769
|
-
supportsColor: getSupportLevel,
|
|
7770
|
-
stdout: translateLevel2(supportsColor2(true, tty2.isatty(1))),
|
|
7771
|
-
stderr: translateLevel2(supportsColor2(true, tty2.isatty(2)))
|
|
7772
|
-
};
|
|
7773
|
-
}
|
|
7774
|
-
});
|
|
7775
|
-
|
|
7776
|
-
// ../../node_modules/supports-hyperlinks/index.js
|
|
7777
|
-
var require_supports_hyperlinks = __commonJS({
|
|
7778
|
-
"../../node_modules/supports-hyperlinks/index.js"(exports, module2) {
|
|
7779
|
-
"use strict";
|
|
7780
|
-
init_esm_shims();
|
|
7781
|
-
var supportsColor2 = require_supports_color();
|
|
7782
|
-
var hasFlag2 = require_has_flag();
|
|
7783
|
-
function parseVersion(versionString) {
|
|
7784
|
-
if (/^\d{3,4}$/.test(versionString)) {
|
|
7785
|
-
const m = /(\d{1,2})(\d{2})/.exec(versionString);
|
|
7786
|
-
return {
|
|
7787
|
-
major: 0,
|
|
7788
|
-
minor: parseInt(m[1], 10),
|
|
7789
|
-
patch: parseInt(m[2], 10)
|
|
7790
|
-
};
|
|
7791
|
-
}
|
|
7792
|
-
const versions = (versionString || "").split(".").map((n2) => parseInt(n2, 10));
|
|
7793
|
-
return {
|
|
7794
|
-
major: versions[0],
|
|
7795
|
-
minor: versions[1],
|
|
7796
|
-
patch: versions[2]
|
|
7797
|
-
};
|
|
7798
|
-
}
|
|
7799
|
-
function supportsHyperlink(stream) {
|
|
7800
|
-
const { env: env2 } = process;
|
|
7801
|
-
if ("FORCE_HYPERLINK" in env2) {
|
|
7802
|
-
return !(env2.FORCE_HYPERLINK.length > 0 && parseInt(env2.FORCE_HYPERLINK, 10) === 0);
|
|
7803
|
-
}
|
|
7804
|
-
if (hasFlag2("no-hyperlink") || hasFlag2("no-hyperlinks") || hasFlag2("hyperlink=false") || hasFlag2("hyperlink=never")) {
|
|
7805
|
-
return false;
|
|
7806
|
-
}
|
|
7807
|
-
if (hasFlag2("hyperlink=true") || hasFlag2("hyperlink=always")) {
|
|
7808
|
-
return true;
|
|
7809
|
-
}
|
|
7810
|
-
if ("NETLIFY" in env2) {
|
|
7811
|
-
return true;
|
|
7812
|
-
}
|
|
7813
|
-
if (!supportsColor2.supportsColor(stream)) {
|
|
7814
|
-
return false;
|
|
7815
|
-
}
|
|
7816
|
-
if (stream && !stream.isTTY) {
|
|
7817
|
-
return false;
|
|
7818
|
-
}
|
|
7819
|
-
if (process.platform === "win32") {
|
|
7820
|
-
return false;
|
|
7821
|
-
}
|
|
7822
|
-
if ("CI" in env2) {
|
|
7823
|
-
return false;
|
|
7824
|
-
}
|
|
7825
|
-
if ("TEAMCITY_VERSION" in env2) {
|
|
7826
|
-
return false;
|
|
7827
|
-
}
|
|
7828
|
-
if ("TERM_PROGRAM" in env2) {
|
|
7829
|
-
const version = parseVersion(env2.TERM_PROGRAM_VERSION);
|
|
7830
|
-
switch (env2.TERM_PROGRAM) {
|
|
7831
|
-
case "iTerm.app":
|
|
7832
|
-
if (version.major === 3) {
|
|
7833
|
-
return version.minor >= 1;
|
|
7834
|
-
}
|
|
7835
|
-
return version.major > 3;
|
|
7836
|
-
case "WezTerm":
|
|
7837
|
-
return version.major >= 20200620;
|
|
7838
|
-
case "vscode":
|
|
7839
|
-
return version.major > 1 || version.major === 1 && version.minor >= 72;
|
|
7840
|
-
}
|
|
7841
|
-
}
|
|
7842
|
-
if ("VTE_VERSION" in env2) {
|
|
7843
|
-
if (env2.VTE_VERSION === "0.50.0") {
|
|
7844
|
-
return false;
|
|
7845
|
-
}
|
|
7846
|
-
const version = parseVersion(env2.VTE_VERSION);
|
|
7847
|
-
return version.major > 0 || version.minor >= 50;
|
|
7848
|
-
}
|
|
7849
|
-
return false;
|
|
7850
|
-
}
|
|
7851
|
-
module2.exports = {
|
|
7852
|
-
supportsHyperlink,
|
|
7853
|
-
stdout: supportsHyperlink(process.stdout),
|
|
7854
|
-
stderr: supportsHyperlink(process.stderr)
|
|
7855
|
-
};
|
|
7856
|
-
}
|
|
7857
|
-
});
|
|
7858
|
-
|
|
7859
7659
|
// ../../node_modules/cli-spinners/spinners.json
|
|
7860
7660
|
var require_spinners = __commonJS({
|
|
7861
7661
|
"../../node_modules/cli-spinners/spinners.json"(exports, module2) {
|
|
@@ -9502,6 +9302,206 @@ var require_cli_spinners = __commonJS({
|
|
|
9502
9302
|
}
|
|
9503
9303
|
});
|
|
9504
9304
|
|
|
9305
|
+
// ../../node_modules/has-flag/index.js
|
|
9306
|
+
var require_has_flag = __commonJS({
|
|
9307
|
+
"../../node_modules/has-flag/index.js"(exports, module2) {
|
|
9308
|
+
"use strict";
|
|
9309
|
+
init_esm_shims();
|
|
9310
|
+
module2.exports = (flag, argv = process.argv) => {
|
|
9311
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
9312
|
+
const position = argv.indexOf(prefix + flag);
|
|
9313
|
+
const terminatorPosition = argv.indexOf("--");
|
|
9314
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
9315
|
+
};
|
|
9316
|
+
}
|
|
9317
|
+
});
|
|
9318
|
+
|
|
9319
|
+
// ../../node_modules/supports-color/index.js
|
|
9320
|
+
var require_supports_color = __commonJS({
|
|
9321
|
+
"../../node_modules/supports-color/index.js"(exports, module2) {
|
|
9322
|
+
"use strict";
|
|
9323
|
+
init_esm_shims();
|
|
9324
|
+
var os6 = __require("os");
|
|
9325
|
+
var tty2 = __require("tty");
|
|
9326
|
+
var hasFlag2 = require_has_flag();
|
|
9327
|
+
var { env: env2 } = process;
|
|
9328
|
+
var forceColor;
|
|
9329
|
+
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
|
|
9330
|
+
forceColor = 0;
|
|
9331
|
+
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
9332
|
+
forceColor = 1;
|
|
9333
|
+
}
|
|
9334
|
+
if ("FORCE_COLOR" in env2) {
|
|
9335
|
+
if (env2.FORCE_COLOR === "true") {
|
|
9336
|
+
forceColor = 1;
|
|
9337
|
+
} else if (env2.FORCE_COLOR === "false") {
|
|
9338
|
+
forceColor = 0;
|
|
9339
|
+
} else {
|
|
9340
|
+
forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
|
|
9341
|
+
}
|
|
9342
|
+
}
|
|
9343
|
+
function translateLevel2(level) {
|
|
9344
|
+
if (level === 0) {
|
|
9345
|
+
return false;
|
|
9346
|
+
}
|
|
9347
|
+
return {
|
|
9348
|
+
level,
|
|
9349
|
+
hasBasic: true,
|
|
9350
|
+
has256: level >= 2,
|
|
9351
|
+
has16m: level >= 3
|
|
9352
|
+
};
|
|
9353
|
+
}
|
|
9354
|
+
function supportsColor2(haveStream, streamIsTTY) {
|
|
9355
|
+
if (forceColor === 0) {
|
|
9356
|
+
return 0;
|
|
9357
|
+
}
|
|
9358
|
+
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
9359
|
+
return 3;
|
|
9360
|
+
}
|
|
9361
|
+
if (hasFlag2("color=256")) {
|
|
9362
|
+
return 2;
|
|
9363
|
+
}
|
|
9364
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
9365
|
+
return 0;
|
|
9366
|
+
}
|
|
9367
|
+
const min = forceColor || 0;
|
|
9368
|
+
if (env2.TERM === "dumb") {
|
|
9369
|
+
return min;
|
|
9370
|
+
}
|
|
9371
|
+
if (process.platform === "win32") {
|
|
9372
|
+
const osRelease = os6.release().split(".");
|
|
9373
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
9374
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
9375
|
+
}
|
|
9376
|
+
return 1;
|
|
9377
|
+
}
|
|
9378
|
+
if ("CI" in env2) {
|
|
9379
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
|
|
9380
|
+
return 1;
|
|
9381
|
+
}
|
|
9382
|
+
return min;
|
|
9383
|
+
}
|
|
9384
|
+
if ("TEAMCITY_VERSION" in env2) {
|
|
9385
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
9386
|
+
}
|
|
9387
|
+
if (env2.COLORTERM === "truecolor") {
|
|
9388
|
+
return 3;
|
|
9389
|
+
}
|
|
9390
|
+
if ("TERM_PROGRAM" in env2) {
|
|
9391
|
+
const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
9392
|
+
switch (env2.TERM_PROGRAM) {
|
|
9393
|
+
case "iTerm.app":
|
|
9394
|
+
return version >= 3 ? 3 : 2;
|
|
9395
|
+
case "Apple_Terminal":
|
|
9396
|
+
return 2;
|
|
9397
|
+
}
|
|
9398
|
+
}
|
|
9399
|
+
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
9400
|
+
return 2;
|
|
9401
|
+
}
|
|
9402
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
9403
|
+
return 1;
|
|
9404
|
+
}
|
|
9405
|
+
if ("COLORTERM" in env2) {
|
|
9406
|
+
return 1;
|
|
9407
|
+
}
|
|
9408
|
+
return min;
|
|
9409
|
+
}
|
|
9410
|
+
function getSupportLevel(stream) {
|
|
9411
|
+
const level = supportsColor2(stream, stream && stream.isTTY);
|
|
9412
|
+
return translateLevel2(level);
|
|
9413
|
+
}
|
|
9414
|
+
module2.exports = {
|
|
9415
|
+
supportsColor: getSupportLevel,
|
|
9416
|
+
stdout: translateLevel2(supportsColor2(true, tty2.isatty(1))),
|
|
9417
|
+
stderr: translateLevel2(supportsColor2(true, tty2.isatty(2)))
|
|
9418
|
+
};
|
|
9419
|
+
}
|
|
9420
|
+
});
|
|
9421
|
+
|
|
9422
|
+
// ../../node_modules/supports-hyperlinks/index.js
|
|
9423
|
+
var require_supports_hyperlinks = __commonJS({
|
|
9424
|
+
"../../node_modules/supports-hyperlinks/index.js"(exports, module2) {
|
|
9425
|
+
"use strict";
|
|
9426
|
+
init_esm_shims();
|
|
9427
|
+
var supportsColor2 = require_supports_color();
|
|
9428
|
+
var hasFlag2 = require_has_flag();
|
|
9429
|
+
function parseVersion(versionString) {
|
|
9430
|
+
if (/^\d{3,4}$/.test(versionString)) {
|
|
9431
|
+
const m = /(\d{1,2})(\d{2})/.exec(versionString);
|
|
9432
|
+
return {
|
|
9433
|
+
major: 0,
|
|
9434
|
+
minor: parseInt(m[1], 10),
|
|
9435
|
+
patch: parseInt(m[2], 10)
|
|
9436
|
+
};
|
|
9437
|
+
}
|
|
9438
|
+
const versions = (versionString || "").split(".").map((n2) => parseInt(n2, 10));
|
|
9439
|
+
return {
|
|
9440
|
+
major: versions[0],
|
|
9441
|
+
minor: versions[1],
|
|
9442
|
+
patch: versions[2]
|
|
9443
|
+
};
|
|
9444
|
+
}
|
|
9445
|
+
function supportsHyperlink(stream) {
|
|
9446
|
+
const { env: env2 } = process;
|
|
9447
|
+
if ("FORCE_HYPERLINK" in env2) {
|
|
9448
|
+
return !(env2.FORCE_HYPERLINK.length > 0 && parseInt(env2.FORCE_HYPERLINK, 10) === 0);
|
|
9449
|
+
}
|
|
9450
|
+
if (hasFlag2("no-hyperlink") || hasFlag2("no-hyperlinks") || hasFlag2("hyperlink=false") || hasFlag2("hyperlink=never")) {
|
|
9451
|
+
return false;
|
|
9452
|
+
}
|
|
9453
|
+
if (hasFlag2("hyperlink=true") || hasFlag2("hyperlink=always")) {
|
|
9454
|
+
return true;
|
|
9455
|
+
}
|
|
9456
|
+
if ("NETLIFY" in env2) {
|
|
9457
|
+
return true;
|
|
9458
|
+
}
|
|
9459
|
+
if (!supportsColor2.supportsColor(stream)) {
|
|
9460
|
+
return false;
|
|
9461
|
+
}
|
|
9462
|
+
if (stream && !stream.isTTY) {
|
|
9463
|
+
return false;
|
|
9464
|
+
}
|
|
9465
|
+
if (process.platform === "win32") {
|
|
9466
|
+
return false;
|
|
9467
|
+
}
|
|
9468
|
+
if ("CI" in env2) {
|
|
9469
|
+
return false;
|
|
9470
|
+
}
|
|
9471
|
+
if ("TEAMCITY_VERSION" in env2) {
|
|
9472
|
+
return false;
|
|
9473
|
+
}
|
|
9474
|
+
if ("TERM_PROGRAM" in env2) {
|
|
9475
|
+
const version = parseVersion(env2.TERM_PROGRAM_VERSION);
|
|
9476
|
+
switch (env2.TERM_PROGRAM) {
|
|
9477
|
+
case "iTerm.app":
|
|
9478
|
+
if (version.major === 3) {
|
|
9479
|
+
return version.minor >= 1;
|
|
9480
|
+
}
|
|
9481
|
+
return version.major > 3;
|
|
9482
|
+
case "WezTerm":
|
|
9483
|
+
return version.major >= 20200620;
|
|
9484
|
+
case "vscode":
|
|
9485
|
+
return version.major > 1 || version.major === 1 && version.minor >= 72;
|
|
9486
|
+
}
|
|
9487
|
+
}
|
|
9488
|
+
if ("VTE_VERSION" in env2) {
|
|
9489
|
+
if (env2.VTE_VERSION === "0.50.0") {
|
|
9490
|
+
return false;
|
|
9491
|
+
}
|
|
9492
|
+
const version = parseVersion(env2.VTE_VERSION);
|
|
9493
|
+
return version.major > 0 || version.minor >= 50;
|
|
9494
|
+
}
|
|
9495
|
+
return false;
|
|
9496
|
+
}
|
|
9497
|
+
module2.exports = {
|
|
9498
|
+
supportsHyperlink,
|
|
9499
|
+
stdout: supportsHyperlink(process.stdout),
|
|
9500
|
+
stderr: supportsHyperlink(process.stderr)
|
|
9501
|
+
};
|
|
9502
|
+
}
|
|
9503
|
+
});
|
|
9504
|
+
|
|
9505
9505
|
// ../../node_modules/p-retry/node_modules/retry/lib/retry_operation.js
|
|
9506
9506
|
var require_retry_operation = __commonJS({
|
|
9507
9507
|
"../../node_modules/p-retry/node_modules/retry/lib/retry_operation.js"(exports, module2) {
|
|
@@ -23248,10 +23248,10 @@ var require_utils6 = __commonJS({
|
|
|
23248
23248
|
if (!type || typeof type.getFields !== "function" || type[symbols_1.OTEL_PATCHED_SYMBOL]) {
|
|
23249
23249
|
return;
|
|
23250
23250
|
}
|
|
23251
|
-
const
|
|
23251
|
+
const fields10 = type.getFields();
|
|
23252
23252
|
type[symbols_1.OTEL_PATCHED_SYMBOL] = true;
|
|
23253
|
-
Object.keys(
|
|
23254
|
-
const field =
|
|
23253
|
+
Object.keys(fields10).forEach((key) => {
|
|
23254
|
+
const field = fields10[key];
|
|
23255
23255
|
if (!field) {
|
|
23256
23256
|
return;
|
|
23257
23257
|
}
|
|
@@ -24952,7 +24952,7 @@ var require_instrumentation5 = __commonJS({
|
|
|
24952
24952
|
}
|
|
24953
24953
|
_patchCallbackQuery(span, parentContext) {
|
|
24954
24954
|
return (originalCallback) => {
|
|
24955
|
-
return function(err, results,
|
|
24955
|
+
return function(err, results, fields10) {
|
|
24956
24956
|
if (err) {
|
|
24957
24957
|
span.setStatus({
|
|
24958
24958
|
code: api_1.SpanStatusCode.ERROR,
|
|
@@ -25265,7 +25265,7 @@ var require_instrumentation6 = __commonJS({
|
|
|
25265
25265
|
}
|
|
25266
25266
|
_patchCallbackQuery(endSpan) {
|
|
25267
25267
|
return (originalCallback) => {
|
|
25268
|
-
return function(err, results,
|
|
25268
|
+
return function(err, results, fields10) {
|
|
25269
25269
|
endSpan(err, results);
|
|
25270
25270
|
return originalCallback(...arguments);
|
|
25271
25271
|
};
|
|
@@ -31789,7 +31789,7 @@ var require_batch_queue = __commonJS({
|
|
|
31789
31789
|
var fieldCounts = {};
|
|
31790
31790
|
var batchLen = batch.e.length;
|
|
31791
31791
|
var events = batch.e.map(function(event) {
|
|
31792
|
-
var
|
|
31792
|
+
var fields10 = Object.keys(event.f).map(function(field) {
|
|
31793
31793
|
var value2 = event.f[field];
|
|
31794
31794
|
var key = field + "|" + value2;
|
|
31795
31795
|
fieldCounts[key] = fieldCounts[key] || 0;
|
|
@@ -31797,12 +31797,12 @@ var require_batch_queue = __commonJS({
|
|
|
31797
31797
|
return [field, value2, key];
|
|
31798
31798
|
});
|
|
31799
31799
|
return _extends2({}, event, {
|
|
31800
|
-
f:
|
|
31800
|
+
f: fields10
|
|
31801
31801
|
});
|
|
31802
31802
|
});
|
|
31803
31803
|
var globalFields = {};
|
|
31804
31804
|
events = events.map(function(event) {
|
|
31805
|
-
var
|
|
31805
|
+
var fields10 = event.f.reduce(function(res, _ref) {
|
|
31806
31806
|
var _ref2 = _slicedToArray(_ref, 3), field = _ref2[0], value2 = _ref2[1], key = _ref2[2];
|
|
31807
31807
|
if (fieldCounts[key] === batchLen) {
|
|
31808
31808
|
globalFields[field] = value2;
|
|
@@ -31812,7 +31812,7 @@ var require_batch_queue = __commonJS({
|
|
|
31812
31812
|
return res;
|
|
31813
31813
|
}, {});
|
|
31814
31814
|
return _extends2({}, event, {
|
|
31815
|
-
f:
|
|
31815
|
+
f: fields10
|
|
31816
31816
|
});
|
|
31817
31817
|
});
|
|
31818
31818
|
return _extends2({}, batch, {
|
|
@@ -41049,6 +41049,7 @@ var Input2 = ({
|
|
|
41049
41049
|
},
|
|
41050
41050
|
onSubmit: () => {
|
|
41051
41051
|
if (!currentValue && placeholder) {
|
|
41052
|
+
setCurrentValue(placeholder);
|
|
41052
41053
|
onSubmit?.(placeholder);
|
|
41053
41054
|
} else {
|
|
41054
41055
|
onSubmit?.(currentValue);
|
|
@@ -41063,8 +41064,45 @@ init_esm_shims();
|
|
|
41063
41064
|
|
|
41064
41065
|
// ../cli-ui-kit/src/components/TextInput/TextInput.tsx
|
|
41065
41066
|
init_esm_shims();
|
|
41066
|
-
var
|
|
41067
|
+
var import_react51 = __toESM(require_react(), 1);
|
|
41067
41068
|
var import_variant8 = __toESM(require_lib(), 1);
|
|
41069
|
+
|
|
41070
|
+
// ../cli-ui-kit/src/components/Spinner.tsx
|
|
41071
|
+
init_esm_shims();
|
|
41072
|
+
var import_react50 = __toESM(require_react(), 1);
|
|
41073
|
+
|
|
41074
|
+
// ../../node_modules/ink-spinner/build/index.js
|
|
41075
|
+
init_esm_shims();
|
|
41076
|
+
var import_react49 = __toESM(require_react(), 1);
|
|
41077
|
+
var import_cli_spinners = __toESM(require_cli_spinners(), 1);
|
|
41078
|
+
function Spinner({ type = "dots" }) {
|
|
41079
|
+
const [frame, setFrame] = (0, import_react49.useState)(0);
|
|
41080
|
+
const spinner = import_cli_spinners.default[type];
|
|
41081
|
+
(0, import_react49.useEffect)(() => {
|
|
41082
|
+
const timer = setInterval(() => {
|
|
41083
|
+
setFrame((previousFrame) => {
|
|
41084
|
+
const isLastFrame = previousFrame === spinner.frames.length - 1;
|
|
41085
|
+
return isLastFrame ? 0 : previousFrame + 1;
|
|
41086
|
+
});
|
|
41087
|
+
}, spinner.interval);
|
|
41088
|
+
return () => {
|
|
41089
|
+
clearInterval(timer);
|
|
41090
|
+
};
|
|
41091
|
+
}, [spinner]);
|
|
41092
|
+
return import_react49.default.createElement(Text, null, spinner.frames[frame]);
|
|
41093
|
+
}
|
|
41094
|
+
var build_default2 = Spinner;
|
|
41095
|
+
|
|
41096
|
+
// ../cli-ui-kit/src/components/Spinner.tsx
|
|
41097
|
+
var Spinner2 = ({ text }) => {
|
|
41098
|
+
const spinnerNode = /* @__PURE__ */ import_react50.default.createElement(Text2, { skin: "info" }, /* @__PURE__ */ import_react50.default.createElement(build_default2, { type: "dots" }));
|
|
41099
|
+
if (text) {
|
|
41100
|
+
return /* @__PURE__ */ import_react50.default.createElement(Box_default, { gap: 1 }, spinnerNode, typeof text === "string" ? /* @__PURE__ */ import_react50.default.createElement(Text2, null, text) : text);
|
|
41101
|
+
}
|
|
41102
|
+
return spinnerNode;
|
|
41103
|
+
};
|
|
41104
|
+
|
|
41105
|
+
// ../cli-ui-kit/src/components/TextInput/TextInput.tsx
|
|
41068
41106
|
var TextInput2 = ({
|
|
41069
41107
|
label,
|
|
41070
41108
|
isActive,
|
|
@@ -41073,38 +41111,48 @@ var TextInput2 = ({
|
|
|
41073
41111
|
validate: validate3 = () => true,
|
|
41074
41112
|
inCreateFlow = false
|
|
41075
41113
|
}) => {
|
|
41076
|
-
const [inputState, setInputState] = (0,
|
|
41114
|
+
const [inputState, setInputState] = (0, import_react51.useState)(
|
|
41077
41115
|
() => InputState.NotSubmitted(placeholder)
|
|
41078
41116
|
);
|
|
41079
|
-
const [isDirty, setIsDirty] = (0,
|
|
41080
|
-
const [
|
|
41081
|
-
const
|
|
41117
|
+
const [isDirty, setIsDirty] = (0, import_react51.useState)(false);
|
|
41118
|
+
const [showSpinner, setShowSpinner] = (0, import_react51.useState)(false);
|
|
41119
|
+
const [validationError, setValidationError] = (0, import_react51.useState)();
|
|
41120
|
+
const handleSubmit = (0, import_react51.useCallback)(
|
|
41082
41121
|
async (value2) => {
|
|
41122
|
+
setValidationError(void 0);
|
|
41083
41123
|
setIsDirty(false);
|
|
41084
|
-
const
|
|
41085
|
-
|
|
41086
|
-
|
|
41087
|
-
|
|
41088
|
-
|
|
41089
|
-
|
|
41090
|
-
|
|
41124
|
+
const validatingTimer = setTimeout(() => {
|
|
41125
|
+
setShowSpinner(true);
|
|
41126
|
+
}, 300);
|
|
41127
|
+
try {
|
|
41128
|
+
const validationResult = await validate3(value2);
|
|
41129
|
+
if (validationResult !== true) {
|
|
41130
|
+
setValidationError(validationResult);
|
|
41131
|
+
} else {
|
|
41132
|
+
setValidationError(void 0);
|
|
41133
|
+
setInputState(InputState.Submitted(value2));
|
|
41134
|
+
onSubmit(value2);
|
|
41135
|
+
}
|
|
41136
|
+
} finally {
|
|
41137
|
+
clearTimeout(validatingTimer);
|
|
41138
|
+
setShowSpinner(false);
|
|
41091
41139
|
}
|
|
41092
41140
|
},
|
|
41093
41141
|
[onSubmit, validate3]
|
|
41094
41142
|
);
|
|
41095
41143
|
const afterValidationError = Boolean(validationError && !isDirty);
|
|
41096
|
-
(0,
|
|
41144
|
+
(0, import_react51.useEffect)(() => {
|
|
41097
41145
|
if (isActive) {
|
|
41098
41146
|
setInputState(InputState.NotSubmitted(inputState.value));
|
|
41099
41147
|
}
|
|
41100
41148
|
}, [isActive]);
|
|
41101
|
-
return /* @__PURE__ */
|
|
41149
|
+
return /* @__PURE__ */ import_react51.default.createElement(import_react51.default.Fragment, null, /* @__PURE__ */ import_react51.default.createElement(Box_default, { marginBottom: 1, marginLeft: inCreateFlow ? -2 : 0 }, /* @__PURE__ */ import_react51.default.createElement(Text2, null, /* @__PURE__ */ import_react51.default.createElement(
|
|
41102
41150
|
InputLabel,
|
|
41103
41151
|
{
|
|
41104
|
-
icon: /* @__PURE__ */
|
|
41152
|
+
icon: /* @__PURE__ */ import_react51.default.createElement(Text2, { skin: "question" }, /* @__PURE__ */ import_react51.default.createElement(PointerIcon, { appearance: "triangle" }))
|
|
41105
41153
|
},
|
|
41106
41154
|
label
|
|
41107
|
-
), (0, import_variant8.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */
|
|
41155
|
+
), (0, import_variant8.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react51.default.createElement(import_react51.default.Fragment, null, " ", /* @__PURE__ */ import_react51.default.createElement(Text2, { skin: afterValidationError ? "error" : "standard" }, /* @__PURE__ */ import_react51.default.createElement(
|
|
41108
41156
|
Input2,
|
|
41109
41157
|
{
|
|
41110
41158
|
placeholder: inputState.value,
|
|
@@ -41112,52 +41160,52 @@ var TextInput2 = ({
|
|
|
41112
41160
|
onChange: () => setIsDirty(true),
|
|
41113
41161
|
showCursor: afterValidationError
|
|
41114
41162
|
}
|
|
41115
|
-
))))), (0, import_variant8.isType)(inputState, InputState.Submitted) && /* @__PURE__ */
|
|
41163
|
+
))))), (0, import_variant8.isType)(inputState, InputState.Submitted) && /* @__PURE__ */ import_react51.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react51.default.createElement(Text2, { skin: "secondary" }, /* @__PURE__ */ import_react51.default.createElement(SuccessIcon, null), " ", inputState.value)), validationError && /* @__PURE__ */ import_react51.default.createElement(Box_default, { columnGap: 1 }, /* @__PURE__ */ import_react51.default.createElement(Text2, { skin: "error" }, /* @__PURE__ */ import_react51.default.createElement(PointerIcon, { appearance: "exclamation" })), /* @__PURE__ */ import_react51.default.createElement(Text2, { skin: "error" }, validationError)), showSpinner && /* @__PURE__ */ import_react51.default.createElement(Box_default, { columnGap: 1 }, /* @__PURE__ */ import_react51.default.createElement(Text2, { skin: "secondary" }, /* @__PURE__ */ import_react51.default.createElement(Spinner2, null), " ", "Validating...")));
|
|
41116
41164
|
};
|
|
41117
41165
|
|
|
41118
41166
|
// ../cli-ui-kit/src/components/Alert.tsx
|
|
41119
41167
|
init_esm_shims();
|
|
41120
|
-
var
|
|
41168
|
+
var import_react52 = __toESM(require_react(), 1);
|
|
41121
41169
|
var import_variant9 = __toESM(require_lib(), 1);
|
|
41122
41170
|
var Alert = ({ type, children }) => {
|
|
41123
41171
|
const icon = (0, import_variant9.match)(type, {
|
|
41124
41172
|
error: (0, import_variant9.constant)(
|
|
41125
|
-
/* @__PURE__ */
|
|
41173
|
+
/* @__PURE__ */ import_react52.default.createElement(Text2, { skin: "error" }, /* @__PURE__ */ import_react52.default.createElement(ErrorIcon, null))
|
|
41126
41174
|
),
|
|
41127
41175
|
warning: (0, import_variant9.constant)(
|
|
41128
|
-
/* @__PURE__ */
|
|
41176
|
+
/* @__PURE__ */ import_react52.default.createElement(Text2, { skin: "warning" }, /* @__PURE__ */ import_react52.default.createElement(WarningIcon, null))
|
|
41129
41177
|
),
|
|
41130
41178
|
success: (0, import_variant9.constant)(
|
|
41131
|
-
/* @__PURE__ */
|
|
41179
|
+
/* @__PURE__ */ import_react52.default.createElement(Text2, { skin: "success" }, /* @__PURE__ */ import_react52.default.createElement(SuccessIcon, null))
|
|
41132
41180
|
),
|
|
41133
|
-
insight: (0, import_variant9.constant)(/* @__PURE__ */
|
|
41181
|
+
insight: (0, import_variant9.constant)(/* @__PURE__ */ import_react52.default.createElement(InsightIcon, null))
|
|
41134
41182
|
});
|
|
41135
|
-
return /* @__PURE__ */
|
|
41183
|
+
return /* @__PURE__ */ import_react52.default.createElement(Text2, null, icon, " ", children);
|
|
41136
41184
|
};
|
|
41137
41185
|
|
|
41138
41186
|
// ../cli-ui-kit/src/components/Badge.tsx
|
|
41139
41187
|
init_esm_shims();
|
|
41140
|
-
var
|
|
41188
|
+
var import_react53 = __toESM(require_react(), 1);
|
|
41141
41189
|
var skins2 = {
|
|
41142
41190
|
success: { backgroundColor: "green" }
|
|
41143
41191
|
};
|
|
41144
41192
|
var Badge = ({ children, skin }) => {
|
|
41145
|
-
return /* @__PURE__ */
|
|
41193
|
+
return /* @__PURE__ */ import_react53.default.createElement(Text, { ...skins2[skin] }, " ", children, " ");
|
|
41146
41194
|
};
|
|
41147
41195
|
|
|
41148
41196
|
// ../cli-ui-kit/src/components/Key.tsx
|
|
41149
41197
|
init_esm_shims();
|
|
41150
|
-
var
|
|
41198
|
+
var import_react54 = __toESM(require_react(), 1);
|
|
41151
41199
|
var Key = ({ value: value2, skin }) => {
|
|
41152
41200
|
if (skin === "secondary") {
|
|
41153
|
-
return /* @__PURE__ */
|
|
41201
|
+
return /* @__PURE__ */ import_react54.default.createElement(Text, null, /* @__PURE__ */ import_react54.default.createElement(Text, { inverse: true }, " ", value2, " "), /* @__PURE__ */ import_react54.default.createElement(Text, null, "\u2591"));
|
|
41154
41202
|
}
|
|
41155
|
-
return /* @__PURE__ */
|
|
41203
|
+
return /* @__PURE__ */ import_react54.default.createElement(Text, null, /* @__PURE__ */ import_react54.default.createElement(Text, { backgroundColor: "blueBright" }, " ", value2, " "), /* @__PURE__ */ import_react54.default.createElement(Text, { color: "blueBright" }, "\u2591"));
|
|
41156
41204
|
};
|
|
41157
41205
|
|
|
41158
41206
|
// ../cli-ui-kit/src/components/Link.tsx
|
|
41159
41207
|
init_esm_shims();
|
|
41160
|
-
var
|
|
41208
|
+
var import_react55 = __toESM(require_react(), 1);
|
|
41161
41209
|
|
|
41162
41210
|
// ../../node_modules/terminal-link/index.js
|
|
41163
41211
|
init_esm_shims();
|
|
@@ -41304,52 +41352,17 @@ terminalLink.stderr.isSupported = import_supports_hyperlinks.default.stderr;
|
|
|
41304
41352
|
var Link = ({ skin, children, url }) => {
|
|
41305
41353
|
if (children) {
|
|
41306
41354
|
if (terminalLink.isSupported) {
|
|
41307
|
-
return /* @__PURE__ */
|
|
41355
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
|
41308
41356
|
Transform,
|
|
41309
41357
|
{
|
|
41310
41358
|
transform: (childrenAsString) => terminalLink(childrenAsString, url, { fallback: false })
|
|
41311
41359
|
},
|
|
41312
|
-
/* @__PURE__ */
|
|
41360
|
+
/* @__PURE__ */ import_react55.default.createElement(Text2, { skin }, children)
|
|
41313
41361
|
);
|
|
41314
41362
|
}
|
|
41315
|
-
return /* @__PURE__ */
|
|
41363
|
+
return /* @__PURE__ */ import_react55.default.createElement(Text2, null, /* @__PURE__ */ import_react55.default.createElement(Text2, { skin }, children), " (", url, ")");
|
|
41316
41364
|
}
|
|
41317
|
-
return /* @__PURE__ */
|
|
41318
|
-
};
|
|
41319
|
-
|
|
41320
|
-
// ../cli-ui-kit/src/components/Spinner.tsx
|
|
41321
|
-
init_esm_shims();
|
|
41322
|
-
var import_react55 = __toESM(require_react(), 1);
|
|
41323
|
-
|
|
41324
|
-
// ../../node_modules/ink-spinner/build/index.js
|
|
41325
|
-
init_esm_shims();
|
|
41326
|
-
var import_react54 = __toESM(require_react(), 1);
|
|
41327
|
-
var import_cli_spinners = __toESM(require_cli_spinners(), 1);
|
|
41328
|
-
function Spinner({ type = "dots" }) {
|
|
41329
|
-
const [frame, setFrame] = (0, import_react54.useState)(0);
|
|
41330
|
-
const spinner = import_cli_spinners.default[type];
|
|
41331
|
-
(0, import_react54.useEffect)(() => {
|
|
41332
|
-
const timer = setInterval(() => {
|
|
41333
|
-
setFrame((previousFrame) => {
|
|
41334
|
-
const isLastFrame = previousFrame === spinner.frames.length - 1;
|
|
41335
|
-
return isLastFrame ? 0 : previousFrame + 1;
|
|
41336
|
-
});
|
|
41337
|
-
}, spinner.interval);
|
|
41338
|
-
return () => {
|
|
41339
|
-
clearInterval(timer);
|
|
41340
|
-
};
|
|
41341
|
-
}, [spinner]);
|
|
41342
|
-
return import_react54.default.createElement(Text, null, spinner.frames[frame]);
|
|
41343
|
-
}
|
|
41344
|
-
var build_default2 = Spinner;
|
|
41345
|
-
|
|
41346
|
-
// ../cli-ui-kit/src/components/Spinner.tsx
|
|
41347
|
-
var Spinner2 = ({ text }) => {
|
|
41348
|
-
const spinnerNode = /* @__PURE__ */ import_react55.default.createElement(Text2, { skin: "info" }, /* @__PURE__ */ import_react55.default.createElement(build_default2, { type: "dots" }));
|
|
41349
|
-
if (text) {
|
|
41350
|
-
return /* @__PURE__ */ import_react55.default.createElement(Box_default, { gap: 1 }, spinnerNode, typeof text === "string" ? /* @__PURE__ */ import_react55.default.createElement(Text2, null, text) : text);
|
|
41351
|
-
}
|
|
41352
|
-
return spinnerNode;
|
|
41365
|
+
return /* @__PURE__ */ import_react55.default.createElement(Text2, { skin: "info" }, url);
|
|
41353
41366
|
};
|
|
41354
41367
|
|
|
41355
41368
|
// ../cli-ui-kit/src/components/ErrorDetails.tsx
|
|
@@ -42757,7 +42770,10 @@ function createHttpClient({
|
|
|
42757
42770
|
"X-XSRF-TOKEN": "nocheck",
|
|
42758
42771
|
Cookie: "XSRF-TOKEN=nocheck",
|
|
42759
42772
|
"User-Agent": "wix-cli"
|
|
42760
|
-
})
|
|
42773
|
+
}),
|
|
42774
|
+
// https://github.com/axios/axios/issues/4263 - fixed in Axios ^1.x.x but currently cannot be bumped in Wix Http Client
|
|
42775
|
+
maxBodyLength: Infinity,
|
|
42776
|
+
maxContentLength: Infinity
|
|
42761
42777
|
});
|
|
42762
42778
|
return {
|
|
42763
42779
|
...client2,
|
|
@@ -52665,6 +52681,12 @@ ${errorMessage2}`
|
|
|
52665
52681
|
message: "The development command failed to execute. Please review the output log above for details."
|
|
52666
52682
|
}
|
|
52667
52683
|
);
|
|
52684
|
+
},
|
|
52685
|
+
FailedToSetCodeIdentifier: () => {
|
|
52686
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { cause, message: "Failed to set code identifier." });
|
|
52687
|
+
},
|
|
52688
|
+
FailedToSetNamespace: () => {
|
|
52689
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { cause, message: "Failed to set namespace." });
|
|
52668
52690
|
}
|
|
52669
52691
|
});
|
|
52670
52692
|
}
|
|
@@ -57464,7 +57486,7 @@ function reportCommandStartEvent({
|
|
|
57464
57486
|
var package_default = {
|
|
57465
57487
|
name: "@wix/create-app",
|
|
57466
57488
|
description: "Create Wix apps",
|
|
57467
|
-
version: "0.0.
|
|
57489
|
+
version: "0.0.180",
|
|
57468
57490
|
author: "Ihor Machuzhak",
|
|
57469
57491
|
bin: "bin/index.cjs",
|
|
57470
57492
|
devDependencies: {
|
|
@@ -57600,7 +57622,7 @@ var createBiLogger2 = async ({
|
|
|
57600
57622
|
// src/components/CreateAppCommand.tsx
|
|
57601
57623
|
init_esm_shims();
|
|
57602
57624
|
var import_react120 = __toESM(require_react(), 1);
|
|
57603
|
-
var
|
|
57625
|
+
var import_variant39 = __toESM(require_lib(), 1);
|
|
57604
57626
|
|
|
57605
57627
|
// src/components/WelcomeMessage.tsx
|
|
57606
57628
|
init_esm_shims();
|
|
@@ -58368,13 +58390,14 @@ var AuthProvider2 = ({ userInfo: userInfo2, children }) => {
|
|
|
58368
58390
|
// src/components/Questions/Questions.tsx
|
|
58369
58391
|
init_esm_shims();
|
|
58370
58392
|
var import_react115 = __toESM(require_react(), 1);
|
|
58371
|
-
var
|
|
58393
|
+
var import_variant36 = __toESM(require_lib(), 1);
|
|
58372
58394
|
|
|
58373
58395
|
// ../dev-center-client/src/index.ts
|
|
58374
58396
|
init_esm_shims();
|
|
58375
58397
|
|
|
58376
58398
|
// ../dev-center-client/src/dev-center-client.ts
|
|
58377
58399
|
init_esm_shims();
|
|
58400
|
+
var import_variant26 = __toESM(require_lib(), 1);
|
|
58378
58401
|
|
|
58379
58402
|
// ../../node_modules/@wix/ambassador-devcenter-apps-v1-app-old/es/build/http.impl.js
|
|
58380
58403
|
init_esm_shims();
|
|
@@ -59080,10 +59103,14 @@ function getAppByVersion(payload6) {
|
|
|
59080
59103
|
return __getAppByVersion;
|
|
59081
59104
|
}
|
|
59082
59105
|
|
|
59083
|
-
// ../../node_modules/@wix/ambassador-devcenter-apps-v1-app/build/
|
|
59106
|
+
// ../../node_modules/@wix/ambassador-devcenter-apps-v1-app/es/build/http.impl.js
|
|
59084
59107
|
init_esm_shims();
|
|
59085
59108
|
var _queryAppRequest = {};
|
|
59086
59109
|
var _queryAppResponse = { apps: "_v1App" };
|
|
59110
|
+
var _setCodeIdentifierRequest = {};
|
|
59111
|
+
var _setCodeIdentifierResponse = {};
|
|
59112
|
+
var _setNamespaceRequest = {};
|
|
59113
|
+
var _setNamespaceResponse = {};
|
|
59087
59114
|
var _v1App = {
|
|
59088
59115
|
createdDate: "google.protobuf.Timestamp",
|
|
59089
59116
|
updatedDate: "google.protobuf.Timestamp"
|
|
@@ -59229,6 +59256,60 @@ function getApp(payload6) {
|
|
|
59229
59256
|
__getApp.__isAmbassador = true;
|
|
59230
59257
|
return __getApp;
|
|
59231
59258
|
}
|
|
59259
|
+
function setNamespace(payload6) {
|
|
59260
|
+
var _a3 = serializer(_setNamespaceRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
59261
|
+
var fromRes = serializer(_setNamespaceResponse, {}).fromJSON;
|
|
59262
|
+
function __setNamespace(_a4) {
|
|
59263
|
+
var host = _a4.host;
|
|
59264
|
+
var serializedData = toReq(payload6);
|
|
59265
|
+
var metadata = {
|
|
59266
|
+
entityFqdn: "wix.devcenter.apps.v1.app",
|
|
59267
|
+
method: "PATCH",
|
|
59268
|
+
methodFqn: "wix.devcenter.apps.v1.AppsService.SetNamespace",
|
|
59269
|
+
migrationOptions: {
|
|
59270
|
+
optInTransformResponse: true
|
|
59271
|
+
},
|
|
59272
|
+
url: resolveWixDevcenterAppsV1AppsServiceUrl({
|
|
59273
|
+
protoPath: "/v1/apps/{appId}/set-namespace",
|
|
59274
|
+
data: serializedData,
|
|
59275
|
+
host
|
|
59276
|
+
}),
|
|
59277
|
+
data: serializedData,
|
|
59278
|
+
transformResponse: fromRes
|
|
59279
|
+
};
|
|
59280
|
+
return metadata;
|
|
59281
|
+
}
|
|
59282
|
+
__setNamespace.fromReq = fromReq;
|
|
59283
|
+
__setNamespace.__isAmbassador = true;
|
|
59284
|
+
return __setNamespace;
|
|
59285
|
+
}
|
|
59286
|
+
function setCodeIdentifier(payload6) {
|
|
59287
|
+
var _a3 = serializer(_setCodeIdentifierRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
59288
|
+
var fromRes = serializer(_setCodeIdentifierResponse, {}).fromJSON;
|
|
59289
|
+
function __setCodeIdentifier(_a4) {
|
|
59290
|
+
var host = _a4.host;
|
|
59291
|
+
var serializedData = toReq(payload6);
|
|
59292
|
+
var metadata = {
|
|
59293
|
+
entityFqdn: "wix.devcenter.apps.v1.app",
|
|
59294
|
+
method: "PATCH",
|
|
59295
|
+
methodFqn: "wix.devcenter.apps.v1.AppsService.SetCodeIdentifier",
|
|
59296
|
+
migrationOptions: {
|
|
59297
|
+
optInTransformResponse: true
|
|
59298
|
+
},
|
|
59299
|
+
url: resolveWixDevcenterAppsV1AppsServiceUrl({
|
|
59300
|
+
protoPath: "/v1/apps/{appId}/set-code-identifier",
|
|
59301
|
+
data: serializedData,
|
|
59302
|
+
host
|
|
59303
|
+
}),
|
|
59304
|
+
data: serializedData,
|
|
59305
|
+
transformResponse: fromRes
|
|
59306
|
+
};
|
|
59307
|
+
return metadata;
|
|
59308
|
+
}
|
|
59309
|
+
__setCodeIdentifier.fromReq = fromReq;
|
|
59310
|
+
__setCodeIdentifier.__isAmbassador = true;
|
|
59311
|
+
return __setCodeIdentifier;
|
|
59312
|
+
}
|
|
59232
59313
|
function queryApp(payload6) {
|
|
59233
59314
|
var _a3 = serializer(_queryAppRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
59234
59315
|
var fromRes = serializer(_queryAppResponse, { _v1App }).fromJSON;
|
|
@@ -66325,6 +66406,14 @@ var listShareUrlsSchema = external_exports.object({
|
|
|
66325
66406
|
|
|
66326
66407
|
// ../dev-center-client/src/dev-center-client.ts
|
|
66327
66408
|
var EMPTY_SITE_TEMPLATE = "24bafe8a-7c80-4b63-8a71-08752062f246";
|
|
66409
|
+
var SetCodeIdentifierResult = (0, import_variant26.variant)({
|
|
66410
|
+
Success: {},
|
|
66411
|
+
ShouldBeUnique: (0, import_variant26.fields)()
|
|
66412
|
+
});
|
|
66413
|
+
var SetNamespaceResult = (0, import_variant26.variant)({
|
|
66414
|
+
Success: {},
|
|
66415
|
+
ShouldBeUnique: (0, import_variant26.fields)()
|
|
66416
|
+
});
|
|
66328
66417
|
var DevCenterClient = class {
|
|
66329
66418
|
constructor(httpClient) {
|
|
66330
66419
|
this.httpClient = httpClient;
|
|
@@ -66376,6 +66465,41 @@ var DevCenterClient = class {
|
|
|
66376
66465
|
});
|
|
66377
66466
|
}
|
|
66378
66467
|
};
|
|
66468
|
+
setNamespace = async ({ appId, namespace }) => {
|
|
66469
|
+
try {
|
|
66470
|
+
await this.httpClient.request(
|
|
66471
|
+
setNamespace({ appId, appName: namespace })
|
|
66472
|
+
);
|
|
66473
|
+
return SetNamespaceResult.Success();
|
|
66474
|
+
} catch (e2) {
|
|
66475
|
+
if (isHttpError(e2) && e2.response?.status === 409 && isHttpApplicationError(e2) && e2.response.data.details.applicationError.code === "ALREADY_EXISTS") {
|
|
66476
|
+
return SetNamespaceResult.ShouldBeUnique({ namespace });
|
|
66477
|
+
}
|
|
66478
|
+
throw new CliError({
|
|
66479
|
+
code: CliErrorCode.FailedToSetNamespace(),
|
|
66480
|
+
cause: e2
|
|
66481
|
+
});
|
|
66482
|
+
}
|
|
66483
|
+
};
|
|
66484
|
+
setCodeIdentifier = async ({
|
|
66485
|
+
appId,
|
|
66486
|
+
codeIdentifier
|
|
66487
|
+
}) => {
|
|
66488
|
+
try {
|
|
66489
|
+
await this.httpClient.request(
|
|
66490
|
+
setCodeIdentifier({ appId, codeIdentifier })
|
|
66491
|
+
);
|
|
66492
|
+
return SetCodeIdentifierResult.Success();
|
|
66493
|
+
} catch (e2) {
|
|
66494
|
+
if (isHttpError(e2) && e2.response?.status === 409 && isHttpApplicationError(e2) && e2.response.data.details.applicationError.code === "ALREADY_EXISTS") {
|
|
66495
|
+
return SetCodeIdentifierResult.ShouldBeUnique({ codeIdentifier });
|
|
66496
|
+
}
|
|
66497
|
+
throw new CliError({
|
|
66498
|
+
code: CliErrorCode.FailedToSetCodeIdentifier(),
|
|
66499
|
+
cause: e2
|
|
66500
|
+
});
|
|
66501
|
+
}
|
|
66502
|
+
};
|
|
66379
66503
|
createOAuthApp = async (oAuthApp) => {
|
|
66380
66504
|
try {
|
|
66381
66505
|
const { data } = await this.httpClient.request(
|
|
@@ -66770,14 +66894,14 @@ function useDevCenterClient({
|
|
|
66770
66894
|
|
|
66771
66895
|
// src/parse-command-options.ts
|
|
66772
66896
|
init_esm_shims();
|
|
66773
|
-
var
|
|
66897
|
+
var import_variant27 = __toESM(require_lib(), 1);
|
|
66774
66898
|
var import_kebabCase2 = __toESM(require_kebabCase(), 1);
|
|
66775
66899
|
import { join as join6, resolve as resolve3 } from "node:path";
|
|
66776
|
-
var TemplateSource = (0,
|
|
66777
|
-
App: (0,
|
|
66778
|
-
GitRepo: (0,
|
|
66779
|
-
Local: (0,
|
|
66780
|
-
Default: (0,
|
|
66900
|
+
var TemplateSource = (0, import_variant27.variant)({
|
|
66901
|
+
App: (0, import_variant27.payload)(),
|
|
66902
|
+
GitRepo: (0, import_variant27.fields)(),
|
|
66903
|
+
Local: (0, import_variant27.fields)(),
|
|
66904
|
+
Default: (0, import_variant27.constant)({ path: resolve3(__dirname, "../templates/app") })
|
|
66781
66905
|
});
|
|
66782
66906
|
async function parseTemplateOptions(options, { devCenterClient }) {
|
|
66783
66907
|
if (options.template) {
|
|
@@ -66810,8 +66934,8 @@ async function parseTemplateOptions(options, { devCenterClient }) {
|
|
|
66810
66934
|
return TemplateSource.Local({ path: options.templatePath });
|
|
66811
66935
|
}
|
|
66812
66936
|
}
|
|
66813
|
-
var AppNameOptions = (0,
|
|
66814
|
-
Provided: (0,
|
|
66937
|
+
var AppNameOptions = (0, import_variant27.variant)({
|
|
66938
|
+
Provided: (0, import_variant27.fields)(),
|
|
66815
66939
|
Missing: {}
|
|
66816
66940
|
});
|
|
66817
66941
|
async function parseAppNameOptions(targetParentFolder2, options) {
|
|
@@ -66827,7 +66951,7 @@ async function parseAppNameOptions(targetParentFolder2, options) {
|
|
|
66827
66951
|
});
|
|
66828
66952
|
}
|
|
66829
66953
|
const npmValidationErrors = await validatePackageName(packageName);
|
|
66830
|
-
if ((0,
|
|
66954
|
+
if ((0, import_variant27.isType)(npmValidationErrors, "Error")) {
|
|
66831
66955
|
throw new CliError({
|
|
66832
66956
|
code: CliErrorCode.AppNameArgumentIsInvalid({
|
|
66833
66957
|
errorMessage: `Invalid package name "${packageName}". Please fix the following issues: ${npmValidationErrors.payload.join(", ")}`
|
|
@@ -66842,7 +66966,7 @@ async function parseAppNameOptions(targetParentFolder2, options) {
|
|
|
66842
66966
|
async function parseCommandOptions(targetParentFolder2, options, clients) {
|
|
66843
66967
|
const template = await parseTemplateOptions(options, clients);
|
|
66844
66968
|
const appNameOptions = await parseAppNameOptions(targetParentFolder2, options);
|
|
66845
|
-
if ((0,
|
|
66969
|
+
if ((0, import_variant27.isType)(appNameOptions, "Provided") && !template) {
|
|
66846
66970
|
throw new CliError({
|
|
66847
66971
|
code: CliErrorCode.AppNameArgumentIsInvalid({
|
|
66848
66972
|
errorMessage: "An application name was provided, but no template was specified. Please specify a template when defining the application name."
|
|
@@ -66855,8 +66979,8 @@ async function parseCommandOptions(targetParentFolder2, options, clients) {
|
|
|
66855
66979
|
|
|
66856
66980
|
// src/types.ts
|
|
66857
66981
|
init_esm_shims();
|
|
66858
|
-
var
|
|
66859
|
-
var DeveloperAppsStatus = (0,
|
|
66982
|
+
var import_variant28 = __toESM(require_lib(), 1);
|
|
66983
|
+
var DeveloperAppsStatus = (0, import_variant28.variant)({
|
|
66860
66984
|
NoApps: {},
|
|
66861
66985
|
FailedLoadingApps: {},
|
|
66862
66986
|
Available: {}
|
|
@@ -66865,16 +66989,16 @@ var DeveloperAppsStatus = (0, import_variant27.variant)({
|
|
|
66865
66989
|
// src/components/CreateAppOrExtendExisting.tsx
|
|
66866
66990
|
init_esm_shims();
|
|
66867
66991
|
var import_react101 = __toESM(require_react(), 1);
|
|
66868
|
-
var
|
|
66992
|
+
var import_variant29 = __toESM(require_lib(), 1);
|
|
66869
66993
|
var CreateAppOrExtendExisting = ({
|
|
66870
66994
|
developerAppsStatus,
|
|
66871
66995
|
onStartCreationFlow
|
|
66872
66996
|
}) => {
|
|
66873
66997
|
const { t: t3 } = useTranslation();
|
|
66874
66998
|
const { cliFlowStepAnswered } = useCreateAppBi();
|
|
66875
|
-
const exisitingAvailabilty = (0,
|
|
66999
|
+
const exisitingAvailabilty = (0, import_variant29.match)(
|
|
66876
67000
|
developerAppsStatus,
|
|
66877
|
-
(0,
|
|
67001
|
+
(0, import_variant29.lookup)({
|
|
66878
67002
|
FailedLoadingApps: SelectOptionAvailability.Disabled({
|
|
66879
67003
|
reason: t3("create_app.create_new_or_extend.failed_fetching_apps")
|
|
66880
67004
|
}),
|
|
@@ -66915,7 +67039,7 @@ var CreateAppOrExtendExisting = ({
|
|
|
66915
67039
|
// src/components/Questions/NewAppFlow.tsx
|
|
66916
67040
|
init_esm_shims();
|
|
66917
67041
|
var import_react111 = __toESM(require_react(), 1);
|
|
66918
|
-
var
|
|
67042
|
+
var import_variant34 = __toESM(require_lib(), 1);
|
|
66919
67043
|
|
|
66920
67044
|
// src/components/ChooseAppName.tsx
|
|
66921
67045
|
init_esm_shims();
|
|
@@ -66945,7 +67069,7 @@ var ChooseAppName = ({ onSubmit }) => {
|
|
|
66945
67069
|
// src/components/ChoosePackageName.tsx
|
|
66946
67070
|
init_esm_shims();
|
|
66947
67071
|
var import_react104 = __toESM(require_react(), 1);
|
|
66948
|
-
var
|
|
67072
|
+
var import_variant30 = __toESM(require_lib(), 1);
|
|
66949
67073
|
import { join as join7, relative } from "node:path";
|
|
66950
67074
|
var import_kebabCase3 = __toESM(require_kebabCase(), 1);
|
|
66951
67075
|
|
|
@@ -66994,13 +67118,13 @@ var ChoosePackageName = ({
|
|
|
66994
67118
|
const defaultPackageName = (0, import_react104.useMemo)(() => {
|
|
66995
67119
|
return (0, import_kebabCase3.default)(appName);
|
|
66996
67120
|
}, [appName]);
|
|
66997
|
-
const isMonorepo = (0,
|
|
67121
|
+
const isMonorepo = (0, import_variant30.isType)(repoType, RepoType.Monorepo);
|
|
66998
67122
|
async function validate3(packageName2) {
|
|
66999
67123
|
if (!await validateDirectory(join7(targetParentFolder2, packageName2))) {
|
|
67000
67124
|
return t3("validation_errors.invalid_directory");
|
|
67001
67125
|
}
|
|
67002
67126
|
const npmValidationErrors = await validatePackageName(packageName2);
|
|
67003
|
-
return (0,
|
|
67127
|
+
return (0, import_variant30.match)(npmValidationErrors, {
|
|
67004
67128
|
Ok: () => true,
|
|
67005
67129
|
Error: ({ payload: payload6 }) => t3("validation_errors.invalid_package_name", {
|
|
67006
67130
|
errors: payload6.join(", ")
|
|
@@ -67098,7 +67222,7 @@ var ChooseAppCreationSource = ({
|
|
|
67098
67222
|
// src/components/ChooseTemplate.tsx
|
|
67099
67223
|
init_esm_shims();
|
|
67100
67224
|
var import_react106 = __toESM(require_react(), 1);
|
|
67101
|
-
var
|
|
67225
|
+
var import_variant31 = __toESM(require_lib(), 1);
|
|
67102
67226
|
var ChooseTemplate = ({ onSelected }) => {
|
|
67103
67227
|
const { t: t3 } = useTranslation();
|
|
67104
67228
|
const { cliFlowStepAnswered } = useCreateAppBi();
|
|
@@ -67117,7 +67241,7 @@ var ChooseTemplate = ({ onSelected }) => {
|
|
|
67117
67241
|
})
|
|
67118
67242
|
};
|
|
67119
67243
|
}, []);
|
|
67120
|
-
return /* @__PURE__ */ import_react106.default.createElement(import_react106.default.Fragment, null, (0,
|
|
67244
|
+
return /* @__PURE__ */ import_react106.default.createElement(import_react106.default.Fragment, null, (0, import_variant31.match)(status, {
|
|
67121
67245
|
Error: () => null,
|
|
67122
67246
|
Loading: () => /* @__PURE__ */ import_react106.default.createElement(Spinner2, null),
|
|
67123
67247
|
Success: ({ result: { appTemplatesOptions } }) => /* @__PURE__ */ import_react106.default.createElement(import_react106.default.Fragment, null, /* @__PURE__ */ import_react106.default.createElement(
|
|
@@ -67198,8 +67322,8 @@ var AppRegistered = ({ appName }) => {
|
|
|
67198
67322
|
// src/components/mcp/ConfigMcp.tsx
|
|
67199
67323
|
init_esm_shims();
|
|
67200
67324
|
var import_react110 = __toESM(require_react(), 1);
|
|
67201
|
-
var
|
|
67202
|
-
var IdeForMcp = (0,
|
|
67325
|
+
var import_variant32 = __toESM(require_lib(), 1);
|
|
67326
|
+
var IdeForMcp = (0, import_variant32.variant)({
|
|
67203
67327
|
VsCode: {},
|
|
67204
67328
|
Cursor: {},
|
|
67205
67329
|
ClaudeCode: {}
|
|
@@ -67256,17 +67380,17 @@ var ConfigMcp = ({ onSelected }) => {
|
|
|
67256
67380
|
|
|
67257
67381
|
// src/components/mcp/getMcpResult.ts
|
|
67258
67382
|
init_esm_shims();
|
|
67259
|
-
var
|
|
67383
|
+
var import_variant33 = __toESM(require_lib(), 1);
|
|
67260
67384
|
import { join as join8 } from "node:path";
|
|
67261
|
-
var McpConfigResult = (0,
|
|
67262
|
-
Created: (0,
|
|
67385
|
+
var McpConfigResult = (0, import_variant33.variant)({
|
|
67386
|
+
Created: (0, import_variant33.fields)(),
|
|
67263
67387
|
Canceled: {}
|
|
67264
67388
|
});
|
|
67265
67389
|
var getMcpData = ({
|
|
67266
67390
|
ideForMcp,
|
|
67267
67391
|
packageFolder
|
|
67268
67392
|
}) => {
|
|
67269
|
-
const mcpPath = (0,
|
|
67393
|
+
const mcpPath = (0, import_variant33.match)(ideForMcp, {
|
|
67270
67394
|
Cursor: () => join8(packageFolder, ".cursor", "mcp.json"),
|
|
67271
67395
|
VsCode: () => join8(packageFolder, ".vscode", "mcp.json"),
|
|
67272
67396
|
ClaudeCode: () => join8(packageFolder, ".mcp.json")
|
|
@@ -67274,9 +67398,9 @@ var getMcpData = ({
|
|
|
67274
67398
|
return McpConfigResult.Created({
|
|
67275
67399
|
mcpPath,
|
|
67276
67400
|
ideForMcp,
|
|
67277
|
-
docsUrl: (0,
|
|
67401
|
+
docsUrl: (0, import_variant33.match)(
|
|
67278
67402
|
ideForMcp,
|
|
67279
|
-
(0,
|
|
67403
|
+
(0, import_variant33.lookup)({
|
|
67280
67404
|
Cursor: "https://cursor.com/docs/context/mcp",
|
|
67281
67405
|
VsCode: "https://code.visualstudio.com/docs/copilot/chat/mcp-servers",
|
|
67282
67406
|
ClaudeCode: "https://docs.anthropic.com/en/docs/claude-code/mcp"
|
|
@@ -67313,9 +67437,9 @@ var NewAppFlow = ({
|
|
|
67313
67437
|
const [packageName, setPackageName] = (0, import_react111.useState)();
|
|
67314
67438
|
const createAppCallback = useAsyncCallback3(
|
|
67315
67439
|
async (_2, { appName: appName2, packageName: packageName2, template, mcpConfigResult }) => {
|
|
67316
|
-
const { id: appId } = await (0,
|
|
67440
|
+
const { id: appId } = await (0, import_variant34.match)(
|
|
67317
67441
|
template,
|
|
67318
|
-
(0,
|
|
67442
|
+
(0, import_variant34.partial)({
|
|
67319
67443
|
App: ({ payload: payload6 }) => devCenterClient.createAppFromTemplate(
|
|
67320
67444
|
{
|
|
67321
67445
|
name: appName2,
|
|
@@ -67341,7 +67465,7 @@ var NewAppFlow = ({
|
|
|
67341
67465
|
};
|
|
67342
67466
|
}
|
|
67343
67467
|
);
|
|
67344
|
-
const autoCreateApp = (0,
|
|
67468
|
+
const autoCreateApp = (0, import_variant34.isType)(appNameFromOptions, "Provided") && !!templateFromOptions;
|
|
67345
67469
|
useAsync2(async () => {
|
|
67346
67470
|
if (autoCreateApp) {
|
|
67347
67471
|
return createAppCallback.execute({
|
|
@@ -67359,7 +67483,7 @@ var NewAppFlow = ({
|
|
|
67359
67483
|
targetParentFolder: targetParentFolder2,
|
|
67360
67484
|
repoType,
|
|
67361
67485
|
onSelected: (userPackageName) => {
|
|
67362
|
-
if ((0,
|
|
67486
|
+
if ((0, import_variant34.isType)(repoType, RepoType.Monorepo)) {
|
|
67363
67487
|
void createAppCallback.execute({
|
|
67364
67488
|
appName,
|
|
67365
67489
|
packageName: userPackageName,
|
|
@@ -67387,7 +67511,7 @@ var NewAppFlow = ({
|
|
|
67387
67511
|
});
|
|
67388
67512
|
}
|
|
67389
67513
|
}
|
|
67390
|
-
)), (0,
|
|
67514
|
+
)), (0, import_variant34.match)(createAppCallback.status, {
|
|
67391
67515
|
Error: () => null,
|
|
67392
67516
|
Loading: () => /* @__PURE__ */ import_react111.default.createElement(RegisteringApp, null),
|
|
67393
67517
|
Success: ({ result }) => /* @__PURE__ */ import_react111.default.createElement(AppRegistered, { ...result }),
|
|
@@ -67476,11 +67600,11 @@ var ExistingAppFlow = ({
|
|
|
67476
67600
|
// src/components/StartFromTemplateMessage.tsx
|
|
67477
67601
|
init_esm_shims();
|
|
67478
67602
|
var import_react114 = __toESM(require_react(), 1);
|
|
67479
|
-
var
|
|
67603
|
+
var import_variant35 = __toESM(require_lib(), 1);
|
|
67480
67604
|
var StartFromTemplateMessage = ({
|
|
67481
67605
|
template
|
|
67482
67606
|
}) => {
|
|
67483
|
-
const messageComponent = (0,
|
|
67607
|
+
const messageComponent = (0, import_variant35.match)(template, {
|
|
67484
67608
|
App: ({ payload: payload6 }) => /* @__PURE__ */ import_react114.default.createElement(
|
|
67485
67609
|
Trans2,
|
|
67486
67610
|
{
|
|
@@ -67558,7 +67682,7 @@ var Questions = ({
|
|
|
67558
67682
|
};
|
|
67559
67683
|
}
|
|
67560
67684
|
}, []);
|
|
67561
|
-
return (0,
|
|
67685
|
+
return (0, import_variant36.match)(status, {
|
|
67562
67686
|
Error: () => null,
|
|
67563
67687
|
Loading: () => /* @__PURE__ */ import_react115.default.createElement(Spinner2, { text: t3("general.loading") }),
|
|
67564
67688
|
Success: ({
|
|
@@ -67576,7 +67700,7 @@ var Questions = ({
|
|
|
67576
67700
|
}
|
|
67577
67701
|
));
|
|
67578
67702
|
}
|
|
67579
|
-
if ((0,
|
|
67703
|
+
if ((0, import_variant36.isType)(developerAppsStatus, "NoApps")) {
|
|
67580
67704
|
return /* @__PURE__ */ import_react115.default.createElement(
|
|
67581
67705
|
NewAppFlow,
|
|
67582
67706
|
{
|
|
@@ -67614,7 +67738,7 @@ var Questions = ({
|
|
|
67614
67738
|
|
|
67615
67739
|
// src/tasks.ts
|
|
67616
67740
|
init_esm_shims();
|
|
67617
|
-
var
|
|
67741
|
+
var import_variant37 = __toESM(require_lib(), 1);
|
|
67618
67742
|
import { mkdir } from "node:fs/promises";
|
|
67619
67743
|
import { join as join9 } from "node:path";
|
|
67620
67744
|
function getTasks({
|
|
@@ -67639,7 +67763,7 @@ function getTasks({
|
|
|
67639
67763
|
cause: e2
|
|
67640
67764
|
});
|
|
67641
67765
|
}
|
|
67642
|
-
const { generateApp } = await import("./generator-
|
|
67766
|
+
const { generateApp } = await import("./generator-SZZQROVV.js");
|
|
67643
67767
|
await generateApp({
|
|
67644
67768
|
packageName,
|
|
67645
67769
|
packageFolder,
|
|
@@ -67648,7 +67772,7 @@ function getTasks({
|
|
|
67648
67772
|
repoType,
|
|
67649
67773
|
template,
|
|
67650
67774
|
templateParams,
|
|
67651
|
-
ideForMcp: (0,
|
|
67775
|
+
ideForMcp: (0, import_variant37.match)(mcpConfigResult, {
|
|
67652
67776
|
Created: ({ ideForMcp }) => ideForMcp,
|
|
67653
67777
|
Canceled: () => {
|
|
67654
67778
|
}
|
|
@@ -67741,7 +67865,7 @@ function getTasks({
|
|
|
67741
67865
|
successText: t3("create_app.generate_project.git_commit.done")
|
|
67742
67866
|
};
|
|
67743
67867
|
const optionalInstallTask = skipInstall ? [] : [installDependenciesTask, addWixSkillsTask];
|
|
67744
|
-
return (0,
|
|
67868
|
+
return (0, import_variant37.match)(repoType, {
|
|
67745
67869
|
None: () => [
|
|
67746
67870
|
generateProjectTask,
|
|
67747
67871
|
...skipGit ? [] : [initializeGitTask],
|
|
@@ -67837,8 +67961,8 @@ var TaskList = ({ tasks, totalTaskCount }) => {
|
|
|
67837
67961
|
// src/task-runner.ts
|
|
67838
67962
|
init_esm_shims();
|
|
67839
67963
|
var import_react118 = __toESM(require_react(), 1);
|
|
67840
|
-
var
|
|
67841
|
-
var TaskRunnerStatus = (0,
|
|
67964
|
+
var import_variant38 = __toESM(require_lib(), 1);
|
|
67965
|
+
var TaskRunnerStatus = (0, import_variant38.variant)({
|
|
67842
67966
|
Idle: {},
|
|
67843
67967
|
Running: (runningTasks, totalTaskCount) => {
|
|
67844
67968
|
const taskStatuses = runningTasks.map((task, index) => {
|
|
@@ -67923,7 +68047,7 @@ var CreateAppCommand = ({ userInfo: userInfo2, targetParentFolder: targetParentF
|
|
|
67923
68047
|
const tasks = getTasks(data, t3);
|
|
67924
68048
|
await executeTaskRunner(tasks);
|
|
67925
68049
|
}
|
|
67926
|
-
return (0,
|
|
68050
|
+
return (0, import_variant39.match)(status, {
|
|
67927
68051
|
Error: () => null,
|
|
67928
68052
|
Loading: () => /* @__PURE__ */ import_react120.default.createElement(Spinner2, { text: t3("general.loading") }),
|
|
67929
68053
|
Success: ({ result: { repoType, packageManager } }) => {
|
|
@@ -67956,10 +68080,10 @@ var CreateAppCommand = ({ userInfo: userInfo2, targetParentFolder: targetParentF
|
|
|
67956
68080
|
})
|
|
67957
68081
|
}
|
|
67958
68082
|
)),
|
|
67959
|
-
generationData && (0,
|
|
68083
|
+
generationData && (0, import_variant39.match)(taskRunnerStatus, {
|
|
67960
68084
|
Idle: () => null,
|
|
67961
68085
|
Running: (status2) => /* @__PURE__ */ import_react120.default.createElement(GenerationProgress, { ...status2 }),
|
|
67962
|
-
Done: (status2) => /* @__PURE__ */ import_react120.default.createElement(import_react120.default.Fragment, null, /* @__PURE__ */ import_react120.default.createElement(GenerationProgress, { ...status2 }), (0,
|
|
68086
|
+
Done: (status2) => /* @__PURE__ */ import_react120.default.createElement(import_react120.default.Fragment, null, /* @__PURE__ */ import_react120.default.createElement(GenerationProgress, { ...status2 }), (0, import_variant39.match)(generationData.mcpConfigResult, {
|
|
67963
68087
|
Created: ({ mcpPath, docsUrl }) => /* @__PURE__ */ import_react120.default.createElement(McpConfigCreated, { mcpPath, docsUrl }),
|
|
67964
68088
|
Canceled: () => null
|
|
67965
68089
|
}), /* @__PURE__ */ import_react120.default.createElement(
|