@wix/cli-app 1.1.171 → 1.1.173

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.
Files changed (60) hide show
  1. package/build/{AddPermissionCommand-K2ZOG4VU.js → AddPermissionCommand-5FDTBKCR.js} +2 -2
  2. package/build/{DevCommand-CXJP5TJB.js → DevCommand-LL7CQXUK.js} +10 -10
  3. package/build/{GenerateCommand-Q7SU6WVW.js → GenerateCommand-7Q67YDZZ.js} +7 -7
  4. package/build/{LogsCommand-UHIXHKI6.js → LogsCommand-B724DBBD.js} +3 -3
  5. package/build/PreviewCommand-ZQBNL4FI.js +19 -0
  6. package/build/ReleaseCommand-Q6QDFTSG.js +23 -0
  7. package/build/{ServeCommand-ZKQEVKY3.js → ServeCommand-TO27P65W.js} +3 -3
  8. package/build/{build-EJL356II.js → build-S3UUTPEU.js} +6 -6
  9. package/build/{chunk-UO7CLQAM.js → chunk-266QKUFO.js} +4 -4
  10. package/build/{chunk-R63S6SAZ.js → chunk-FINFTVSL.js} +2 -2
  11. package/build/{chunk-C4DZG72Z.js → chunk-G4SZ4YRN.js} +7 -7
  12. package/build/{chunk-YHKBOPAS.js → chunk-HKJUQPIH.js} +456 -333
  13. package/build/{chunk-YHKBOPAS.js.map → chunk-HKJUQPIH.js.map} +1 -1
  14. package/build/{chunk-R77BNZP6.js → chunk-HY2ZVDSE.js} +2 -2
  15. package/build/{chunk-GCBGJALQ.js → chunk-IYUF4GV7.js} +2 -2
  16. package/build/{chunk-NTHHVDP5.js → chunk-K7QTZQ6H.js} +2 -2
  17. package/build/{chunk-36HIJXHW.js → chunk-KPULNUHX.js} +2 -2
  18. package/build/{chunk-UEZ53YCY.js → chunk-LKTK42IV.js} +2 -2
  19. package/build/{chunk-O2TWHUW6.js → chunk-LWZGVJAX.js} +2 -2
  20. package/build/{chunk-5PZJBA4H.js → chunk-RCVBJAYZ.js} +2 -2
  21. package/build/{chunk-D3JE6XVD.js → chunk-RLCIEZTZ.js} +3 -3
  22. package/build/{chunk-IQBH2OH5.js → chunk-SNDRTZ2H.js} +6 -6
  23. package/build/{chunk-TIG36C5E.js → chunk-U4RY757N.js} +3 -3
  24. package/build/{chunk-DPZBXLIE.js → chunk-VOODRJFT.js} +4 -4
  25. package/build/{chunk-FUFQPDU3.js → chunk-YKQFQ3FZ.js} +2 -2
  26. package/build/{chunk-GDMV3LUK.js → chunk-YULS3Z75.js} +6 -6
  27. package/build/index.js +23 -23
  28. package/build/{preview-HSWCDAH6.js → preview-FZSIX4FU.js} +12 -12
  29. package/build/{release-KMLAQDEL.js → release-AVIUEBQ5.js} +14 -14
  30. package/build/{render-command-QWOUZTHF.js → render-command-TURGZ36M.js} +5 -5
  31. package/package.json +2 -2
  32. package/build/PreviewCommand-72BM3JL3.js +0 -19
  33. package/build/ReleaseCommand-KN2N6HK4.js +0 -23
  34. /package/build/{AddPermissionCommand-K2ZOG4VU.js.map → AddPermissionCommand-5FDTBKCR.js.map} +0 -0
  35. /package/build/{DevCommand-CXJP5TJB.js.map → DevCommand-LL7CQXUK.js.map} +0 -0
  36. /package/build/{GenerateCommand-Q7SU6WVW.js.map → GenerateCommand-7Q67YDZZ.js.map} +0 -0
  37. /package/build/{LogsCommand-UHIXHKI6.js.map → LogsCommand-B724DBBD.js.map} +0 -0
  38. /package/build/{PreviewCommand-72BM3JL3.js.map → PreviewCommand-ZQBNL4FI.js.map} +0 -0
  39. /package/build/{ReleaseCommand-KN2N6HK4.js.map → ReleaseCommand-Q6QDFTSG.js.map} +0 -0
  40. /package/build/{ServeCommand-ZKQEVKY3.js.map → ServeCommand-TO27P65W.js.map} +0 -0
  41. /package/build/{build-EJL356II.js.map → build-S3UUTPEU.js.map} +0 -0
  42. /package/build/{chunk-UO7CLQAM.js.map → chunk-266QKUFO.js.map} +0 -0
  43. /package/build/{chunk-R63S6SAZ.js.map → chunk-FINFTVSL.js.map} +0 -0
  44. /package/build/{chunk-C4DZG72Z.js.map → chunk-G4SZ4YRN.js.map} +0 -0
  45. /package/build/{chunk-R77BNZP6.js.map → chunk-HY2ZVDSE.js.map} +0 -0
  46. /package/build/{chunk-GCBGJALQ.js.map → chunk-IYUF4GV7.js.map} +0 -0
  47. /package/build/{chunk-NTHHVDP5.js.map → chunk-K7QTZQ6H.js.map} +0 -0
  48. /package/build/{chunk-36HIJXHW.js.map → chunk-KPULNUHX.js.map} +0 -0
  49. /package/build/{chunk-UEZ53YCY.js.map → chunk-LKTK42IV.js.map} +0 -0
  50. /package/build/{chunk-O2TWHUW6.js.map → chunk-LWZGVJAX.js.map} +0 -0
  51. /package/build/{chunk-5PZJBA4H.js.map → chunk-RCVBJAYZ.js.map} +0 -0
  52. /package/build/{chunk-D3JE6XVD.js.map → chunk-RLCIEZTZ.js.map} +0 -0
  53. /package/build/{chunk-IQBH2OH5.js.map → chunk-SNDRTZ2H.js.map} +0 -0
  54. /package/build/{chunk-TIG36C5E.js.map → chunk-U4RY757N.js.map} +0 -0
  55. /package/build/{chunk-DPZBXLIE.js.map → chunk-VOODRJFT.js.map} +0 -0
  56. /package/build/{chunk-FUFQPDU3.js.map → chunk-YKQFQ3FZ.js.map} +0 -0
  57. /package/build/{chunk-GDMV3LUK.js.map → chunk-YULS3Z75.js.map} +0 -0
  58. /package/build/{preview-HSWCDAH6.js.map → preview-FZSIX4FU.js.map} +0 -0
  59. /package/build/{release-KMLAQDEL.js.map → release-AVIUEBQ5.js.map} +0 -0
  60. /package/build/{render-command-QWOUZTHF.js.map → render-command-TURGZ36M.js.map} +0 -0
@@ -420,14 +420,14 @@ var require_variant = __commonJS({
420
420
  return Object.assign(Object.assign({}, result), { [creator.output.type]: creator });
421
421
  }, {});
422
422
  }
423
- function variant10(template) {
423
+ function variant11(template) {
424
424
  if (Array.isArray(template)) {
425
425
  return variantList(template);
426
426
  } else {
427
427
  return variantModule(template);
428
428
  }
429
429
  }
430
- return { descope, scoped: scope, variant: variant10, variantList, variantModule, variation };
430
+ return { descope, scoped: scope, variant: variant11, variantList, variantModule, variation };
431
431
  }
432
432
  exports.variantImpl = variantImpl;
433
433
  }
@@ -557,11 +557,11 @@ var require_isOfVariant = __commonJS({
557
557
  function isOfVariantImpl(key) {
558
558
  function isOfVariant3(...args) {
559
559
  if (args.length === 1) {
560
- const [variant10] = args;
561
- return (instance2) => instance2 != void 0 && Object.values(variant10).some((vc) => vc.output.type === instance2[key]);
560
+ const [variant11] = args;
561
+ return (instance2) => instance2 != void 0 && Object.values(variant11).some((vc) => vc.output.type === instance2[key]);
562
562
  } else if (args.length === 2) {
563
- const [instance2, variant10] = args;
564
- return instance2 != void 0 && Object.values(variant10).some((vc) => vc.output.type === instance2[key]);
563
+ const [instance2, variant11] = args;
564
+ return instance2 != void 0 && Object.values(variant11).some((vc) => vc.output.type === instance2[key]);
565
565
  }
566
566
  return false;
567
567
  }
@@ -998,15 +998,15 @@ var require_typeCatalog = __commonJS({
998
998
  init_esm_shims();
999
999
  Object.defineProperty(exports, "__esModule", { value: true });
1000
1000
  exports.typeMap = exports.typeCatalog = void 0;
1001
- function typeCatalog2(variant10) {
1002
- return Object.values(variant10).reduce((result, vc) => {
1001
+ function typeCatalog2(variant11) {
1002
+ return Object.values(variant11).reduce((result, vc) => {
1003
1003
  return Object.assign(Object.assign({}, result), { [vc.output.type]: vc.output.type });
1004
1004
  }, {});
1005
1005
  }
1006
1006
  exports.typeCatalog = typeCatalog2;
1007
- function typeMap(variant10) {
1008
- return Object.keys(variant10).reduce((result, key) => {
1009
- return Object.assign(Object.assign({}, result), { [key]: variant10[key].output.type });
1007
+ function typeMap(variant11) {
1008
+ return Object.keys(variant11).reduce((result, key) => {
1009
+ return Object.assign(Object.assign({}, result), { [key]: variant11[key].output.type });
1010
1010
  }, {});
1011
1011
  }
1012
1012
  exports.typeMap = typeMap;
@@ -1055,13 +1055,13 @@ var require_variant_tools = __commonJS({
1055
1055
  init_esm_shims();
1056
1056
  Object.defineProperty(exports, "__esModule", { value: true });
1057
1057
  exports.nil = exports.payload = exports.fields = void 0;
1058
- function fields7(defaults2 = {}) {
1058
+ function fields8(defaults2 = {}) {
1059
1059
  return (...args) => {
1060
1060
  const [arg] = args;
1061
1061
  return Object.assign(Object.assign({}, defaults2), arg);
1062
1062
  };
1063
1063
  }
1064
- exports.fields = fields7;
1064
+ exports.fields = fields8;
1065
1065
  function payload4(_example) {
1066
1066
  return (payload5) => ({ payload: payload5 });
1067
1067
  }
@@ -9460,206 +9460,6 @@ var require_arr_rotate = __commonJS({
9460
9460
  }
9461
9461
  });
9462
9462
 
9463
- // ../../node_modules/has-flag/index.js
9464
- var require_has_flag = __commonJS({
9465
- "../../node_modules/has-flag/index.js"(exports, module2) {
9466
- "use strict";
9467
- init_esm_shims();
9468
- module2.exports = (flag, argv = process.argv) => {
9469
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
9470
- const position = argv.indexOf(prefix + flag);
9471
- const terminatorPosition = argv.indexOf("--");
9472
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
9473
- };
9474
- }
9475
- });
9476
-
9477
- // ../../node_modules/supports-color/index.js
9478
- var require_supports_color = __commonJS({
9479
- "../../node_modules/supports-color/index.js"(exports, module2) {
9480
- "use strict";
9481
- init_esm_shims();
9482
- var os3 = __require("os");
9483
- var tty2 = __require("tty");
9484
- var hasFlag2 = require_has_flag();
9485
- var { env: env2 } = process;
9486
- var forceColor;
9487
- if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
9488
- forceColor = 0;
9489
- } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
9490
- forceColor = 1;
9491
- }
9492
- if ("FORCE_COLOR" in env2) {
9493
- if (env2.FORCE_COLOR === "true") {
9494
- forceColor = 1;
9495
- } else if (env2.FORCE_COLOR === "false") {
9496
- forceColor = 0;
9497
- } else {
9498
- forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
9499
- }
9500
- }
9501
- function translateLevel2(level) {
9502
- if (level === 0) {
9503
- return false;
9504
- }
9505
- return {
9506
- level,
9507
- hasBasic: true,
9508
- has256: level >= 2,
9509
- has16m: level >= 3
9510
- };
9511
- }
9512
- function supportsColor2(haveStream, streamIsTTY) {
9513
- if (forceColor === 0) {
9514
- return 0;
9515
- }
9516
- if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
9517
- return 3;
9518
- }
9519
- if (hasFlag2("color=256")) {
9520
- return 2;
9521
- }
9522
- if (haveStream && !streamIsTTY && forceColor === void 0) {
9523
- return 0;
9524
- }
9525
- const min = forceColor || 0;
9526
- if (env2.TERM === "dumb") {
9527
- return min;
9528
- }
9529
- if (process.platform === "win32") {
9530
- const osRelease = os3.release().split(".");
9531
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
9532
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
9533
- }
9534
- return 1;
9535
- }
9536
- if ("CI" in env2) {
9537
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
9538
- return 1;
9539
- }
9540
- return min;
9541
- }
9542
- if ("TEAMCITY_VERSION" in env2) {
9543
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
9544
- }
9545
- if (env2.COLORTERM === "truecolor") {
9546
- return 3;
9547
- }
9548
- if ("TERM_PROGRAM" in env2) {
9549
- const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
9550
- switch (env2.TERM_PROGRAM) {
9551
- case "iTerm.app":
9552
- return version >= 3 ? 3 : 2;
9553
- case "Apple_Terminal":
9554
- return 2;
9555
- }
9556
- }
9557
- if (/-256(color)?$/i.test(env2.TERM)) {
9558
- return 2;
9559
- }
9560
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
9561
- return 1;
9562
- }
9563
- if ("COLORTERM" in env2) {
9564
- return 1;
9565
- }
9566
- return min;
9567
- }
9568
- function getSupportLevel(stream) {
9569
- const level = supportsColor2(stream, stream && stream.isTTY);
9570
- return translateLevel2(level);
9571
- }
9572
- module2.exports = {
9573
- supportsColor: getSupportLevel,
9574
- stdout: translateLevel2(supportsColor2(true, tty2.isatty(1))),
9575
- stderr: translateLevel2(supportsColor2(true, tty2.isatty(2)))
9576
- };
9577
- }
9578
- });
9579
-
9580
- // ../../node_modules/supports-hyperlinks/index.js
9581
- var require_supports_hyperlinks = __commonJS({
9582
- "../../node_modules/supports-hyperlinks/index.js"(exports, module2) {
9583
- "use strict";
9584
- init_esm_shims();
9585
- var supportsColor2 = require_supports_color();
9586
- var hasFlag2 = require_has_flag();
9587
- function parseVersion(versionString) {
9588
- if (/^\d{3,4}$/.test(versionString)) {
9589
- const m = /(\d{1,2})(\d{2})/.exec(versionString);
9590
- return {
9591
- major: 0,
9592
- minor: parseInt(m[1], 10),
9593
- patch: parseInt(m[2], 10)
9594
- };
9595
- }
9596
- const versions = (versionString || "").split(".").map((n2) => parseInt(n2, 10));
9597
- return {
9598
- major: versions[0],
9599
- minor: versions[1],
9600
- patch: versions[2]
9601
- };
9602
- }
9603
- function supportsHyperlink(stream) {
9604
- const { env: env2 } = process;
9605
- if ("FORCE_HYPERLINK" in env2) {
9606
- return !(env2.FORCE_HYPERLINK.length > 0 && parseInt(env2.FORCE_HYPERLINK, 10) === 0);
9607
- }
9608
- if (hasFlag2("no-hyperlink") || hasFlag2("no-hyperlinks") || hasFlag2("hyperlink=false") || hasFlag2("hyperlink=never")) {
9609
- return false;
9610
- }
9611
- if (hasFlag2("hyperlink=true") || hasFlag2("hyperlink=always")) {
9612
- return true;
9613
- }
9614
- if ("NETLIFY" in env2) {
9615
- return true;
9616
- }
9617
- if (!supportsColor2.supportsColor(stream)) {
9618
- return false;
9619
- }
9620
- if (stream && !stream.isTTY) {
9621
- return false;
9622
- }
9623
- if (process.platform === "win32") {
9624
- return false;
9625
- }
9626
- if ("CI" in env2) {
9627
- return false;
9628
- }
9629
- if ("TEAMCITY_VERSION" in env2) {
9630
- return false;
9631
- }
9632
- if ("TERM_PROGRAM" in env2) {
9633
- const version = parseVersion(env2.TERM_PROGRAM_VERSION);
9634
- switch (env2.TERM_PROGRAM) {
9635
- case "iTerm.app":
9636
- if (version.major === 3) {
9637
- return version.minor >= 1;
9638
- }
9639
- return version.major > 3;
9640
- case "WezTerm":
9641
- return version.major >= 20200620;
9642
- case "vscode":
9643
- return version.major > 1 || version.major === 1 && version.minor >= 72;
9644
- }
9645
- }
9646
- if ("VTE_VERSION" in env2) {
9647
- if (env2.VTE_VERSION === "0.50.0") {
9648
- return false;
9649
- }
9650
- const version = parseVersion(env2.VTE_VERSION);
9651
- return version.major > 0 || version.minor >= 50;
9652
- }
9653
- return false;
9654
- }
9655
- module2.exports = {
9656
- supportsHyperlink,
9657
- stdout: supportsHyperlink(process.stdout),
9658
- stderr: supportsHyperlink(process.stderr)
9659
- };
9660
- }
9661
- });
9662
-
9663
9463
  // ../../node_modules/cli-spinners/spinners.json
9664
9464
  var require_spinners = __commonJS({
9665
9465
  "../../node_modules/cli-spinners/spinners.json"(exports, module2) {
@@ -11306,6 +11106,206 @@ var require_cli_spinners = __commonJS({
11306
11106
  }
11307
11107
  });
11308
11108
 
11109
+ // ../../node_modules/has-flag/index.js
11110
+ var require_has_flag = __commonJS({
11111
+ "../../node_modules/has-flag/index.js"(exports, module2) {
11112
+ "use strict";
11113
+ init_esm_shims();
11114
+ module2.exports = (flag, argv = process.argv) => {
11115
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
11116
+ const position = argv.indexOf(prefix + flag);
11117
+ const terminatorPosition = argv.indexOf("--");
11118
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
11119
+ };
11120
+ }
11121
+ });
11122
+
11123
+ // ../../node_modules/supports-color/index.js
11124
+ var require_supports_color = __commonJS({
11125
+ "../../node_modules/supports-color/index.js"(exports, module2) {
11126
+ "use strict";
11127
+ init_esm_shims();
11128
+ var os3 = __require("os");
11129
+ var tty2 = __require("tty");
11130
+ var hasFlag2 = require_has_flag();
11131
+ var { env: env2 } = process;
11132
+ var forceColor;
11133
+ if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
11134
+ forceColor = 0;
11135
+ } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
11136
+ forceColor = 1;
11137
+ }
11138
+ if ("FORCE_COLOR" in env2) {
11139
+ if (env2.FORCE_COLOR === "true") {
11140
+ forceColor = 1;
11141
+ } else if (env2.FORCE_COLOR === "false") {
11142
+ forceColor = 0;
11143
+ } else {
11144
+ forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
11145
+ }
11146
+ }
11147
+ function translateLevel2(level) {
11148
+ if (level === 0) {
11149
+ return false;
11150
+ }
11151
+ return {
11152
+ level,
11153
+ hasBasic: true,
11154
+ has256: level >= 2,
11155
+ has16m: level >= 3
11156
+ };
11157
+ }
11158
+ function supportsColor2(haveStream, streamIsTTY) {
11159
+ if (forceColor === 0) {
11160
+ return 0;
11161
+ }
11162
+ if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
11163
+ return 3;
11164
+ }
11165
+ if (hasFlag2("color=256")) {
11166
+ return 2;
11167
+ }
11168
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
11169
+ return 0;
11170
+ }
11171
+ const min = forceColor || 0;
11172
+ if (env2.TERM === "dumb") {
11173
+ return min;
11174
+ }
11175
+ if (process.platform === "win32") {
11176
+ const osRelease = os3.release().split(".");
11177
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
11178
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
11179
+ }
11180
+ return 1;
11181
+ }
11182
+ if ("CI" in env2) {
11183
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env2) || env2.CI_NAME === "codeship") {
11184
+ return 1;
11185
+ }
11186
+ return min;
11187
+ }
11188
+ if ("TEAMCITY_VERSION" in env2) {
11189
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
11190
+ }
11191
+ if (env2.COLORTERM === "truecolor") {
11192
+ return 3;
11193
+ }
11194
+ if ("TERM_PROGRAM" in env2) {
11195
+ const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
11196
+ switch (env2.TERM_PROGRAM) {
11197
+ case "iTerm.app":
11198
+ return version >= 3 ? 3 : 2;
11199
+ case "Apple_Terminal":
11200
+ return 2;
11201
+ }
11202
+ }
11203
+ if (/-256(color)?$/i.test(env2.TERM)) {
11204
+ return 2;
11205
+ }
11206
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
11207
+ return 1;
11208
+ }
11209
+ if ("COLORTERM" in env2) {
11210
+ return 1;
11211
+ }
11212
+ return min;
11213
+ }
11214
+ function getSupportLevel(stream) {
11215
+ const level = supportsColor2(stream, stream && stream.isTTY);
11216
+ return translateLevel2(level);
11217
+ }
11218
+ module2.exports = {
11219
+ supportsColor: getSupportLevel,
11220
+ stdout: translateLevel2(supportsColor2(true, tty2.isatty(1))),
11221
+ stderr: translateLevel2(supportsColor2(true, tty2.isatty(2)))
11222
+ };
11223
+ }
11224
+ });
11225
+
11226
+ // ../../node_modules/supports-hyperlinks/index.js
11227
+ var require_supports_hyperlinks = __commonJS({
11228
+ "../../node_modules/supports-hyperlinks/index.js"(exports, module2) {
11229
+ "use strict";
11230
+ init_esm_shims();
11231
+ var supportsColor2 = require_supports_color();
11232
+ var hasFlag2 = require_has_flag();
11233
+ function parseVersion(versionString) {
11234
+ if (/^\d{3,4}$/.test(versionString)) {
11235
+ const m = /(\d{1,2})(\d{2})/.exec(versionString);
11236
+ return {
11237
+ major: 0,
11238
+ minor: parseInt(m[1], 10),
11239
+ patch: parseInt(m[2], 10)
11240
+ };
11241
+ }
11242
+ const versions = (versionString || "").split(".").map((n2) => parseInt(n2, 10));
11243
+ return {
11244
+ major: versions[0],
11245
+ minor: versions[1],
11246
+ patch: versions[2]
11247
+ };
11248
+ }
11249
+ function supportsHyperlink(stream) {
11250
+ const { env: env2 } = process;
11251
+ if ("FORCE_HYPERLINK" in env2) {
11252
+ return !(env2.FORCE_HYPERLINK.length > 0 && parseInt(env2.FORCE_HYPERLINK, 10) === 0);
11253
+ }
11254
+ if (hasFlag2("no-hyperlink") || hasFlag2("no-hyperlinks") || hasFlag2("hyperlink=false") || hasFlag2("hyperlink=never")) {
11255
+ return false;
11256
+ }
11257
+ if (hasFlag2("hyperlink=true") || hasFlag2("hyperlink=always")) {
11258
+ return true;
11259
+ }
11260
+ if ("NETLIFY" in env2) {
11261
+ return true;
11262
+ }
11263
+ if (!supportsColor2.supportsColor(stream)) {
11264
+ return false;
11265
+ }
11266
+ if (stream && !stream.isTTY) {
11267
+ return false;
11268
+ }
11269
+ if (process.platform === "win32") {
11270
+ return false;
11271
+ }
11272
+ if ("CI" in env2) {
11273
+ return false;
11274
+ }
11275
+ if ("TEAMCITY_VERSION" in env2) {
11276
+ return false;
11277
+ }
11278
+ if ("TERM_PROGRAM" in env2) {
11279
+ const version = parseVersion(env2.TERM_PROGRAM_VERSION);
11280
+ switch (env2.TERM_PROGRAM) {
11281
+ case "iTerm.app":
11282
+ if (version.major === 3) {
11283
+ return version.minor >= 1;
11284
+ }
11285
+ return version.major > 3;
11286
+ case "WezTerm":
11287
+ return version.major >= 20200620;
11288
+ case "vscode":
11289
+ return version.major > 1 || version.major === 1 && version.minor >= 72;
11290
+ }
11291
+ }
11292
+ if ("VTE_VERSION" in env2) {
11293
+ if (env2.VTE_VERSION === "0.50.0") {
11294
+ return false;
11295
+ }
11296
+ const version = parseVersion(env2.VTE_VERSION);
11297
+ return version.major > 0 || version.minor >= 50;
11298
+ }
11299
+ return false;
11300
+ }
11301
+ module2.exports = {
11302
+ supportsHyperlink,
11303
+ stdout: supportsHyperlink(process.stdout),
11304
+ stderr: supportsHyperlink(process.stderr)
11305
+ };
11306
+ }
11307
+ });
11308
+
11309
11309
  // ../../node_modules/void-elements/index.js
11310
11310
  var require_void_elements = __commonJS({
11311
11311
  "../../node_modules/void-elements/index.js"(exports, module2) {
@@ -22153,9 +22153,9 @@ ${errors.join("\n")}`);
22153
22153
  }
22154
22154
  function defineType(type, opts = {}) {
22155
22155
  const inherits = opts.inherits && store[opts.inherits] || {};
22156
- let fields7 = opts.fields;
22157
- if (!fields7) {
22158
- fields7 = {};
22156
+ let fields8 = opts.fields;
22157
+ if (!fields8) {
22158
+ fields8 = {};
22159
22159
  if (inherits.fields) {
22160
22160
  const keys2 = Object.getOwnPropertyNames(inherits.fields);
22161
22161
  for (const key2 of keys2) {
@@ -22164,7 +22164,7 @@ ${errors.join("\n")}`);
22164
22164
  if (Array.isArray(def) ? def.length > 0 : def && typeof def === "object") {
22165
22165
  throw new Error("field defaults can only be primitives or empty arrays currently");
22166
22166
  }
22167
- fields7[key2] = {
22167
+ fields8[key2] = {
22168
22168
  default: Array.isArray(def) ? [] : def,
22169
22169
  optional: field.optional,
22170
22170
  deprecated: field.deprecated,
@@ -22185,10 +22185,10 @@ ${errors.join("\n")}`);
22185
22185
  DEPRECATED_KEYS[opts.deprecatedAlias] = type;
22186
22186
  }
22187
22187
  for (const key2 of visitor.concat(builder)) {
22188
- fields7[key2] = fields7[key2] || {};
22188
+ fields8[key2] = fields8[key2] || {};
22189
22189
  }
22190
- for (const key2 of Object.keys(fields7)) {
22191
- const field = fields7[key2];
22190
+ for (const key2 of Object.keys(fields8)) {
22191
+ const field = fields8[key2];
22192
22192
  if (field.default !== void 0 && !builder.includes(key2)) {
22193
22193
  field.optional = true;
22194
22194
  }
@@ -22205,7 +22205,7 @@ ${errors.join("\n")}`);
22205
22205
  }
22206
22206
  VISITOR_KEYS[type] = opts.visitor = visitor;
22207
22207
  BUILDER_KEYS[type] = opts.builder = builder;
22208
- NODE_FIELDS[type] = opts.fields = fields7;
22208
+ NODE_FIELDS[type] = opts.fields = fields8;
22209
22209
  ALIAS_KEYS[type] = opts.aliases = aliases;
22210
22210
  aliases.forEach((alias) => {
22211
22211
  FLIPPED_ALIAS_KEYS[alias] = FLIPPED_ALIAS_KEYS[alias] || [];
@@ -25460,9 +25460,9 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
25460
25460
  var _index = require_definitions();
25461
25461
  function validate(node, key2, val) {
25462
25462
  if (!node) return;
25463
- const fields7 = _index.NODE_FIELDS[node.type];
25464
- if (!fields7) return;
25465
- const field = fields7[key2];
25463
+ const fields8 = _index.NODE_FIELDS[node.type];
25464
+ if (!fields8) return;
25465
+ const field = fields8[key2];
25466
25466
  validateField(node, key2, val, field);
25467
25467
  validateChild(node, key2, val);
25468
25468
  }
@@ -31429,9 +31429,9 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
31429
31429
  if (a2.type !== b.type) {
31430
31430
  return false;
31431
31431
  }
31432
- const fields7 = Object.keys(_index.NODE_FIELDS[a2.type] || a2.type);
31432
+ const fields8 = Object.keys(_index.NODE_FIELDS[a2.type] || a2.type);
31433
31433
  const visitorKeys = _index.VISITOR_KEYS[a2.type];
31434
- for (const field of fields7) {
31434
+ for (const field of fields8) {
31435
31435
  const val_a = a2[field];
31436
31436
  const val_b = b[field];
31437
31437
  if (typeof val_a !== typeof val_b) {
@@ -52195,8 +52195,8 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
52195
52195
  continue;
52196
52196
  }
52197
52197
  const kind = decodeInteger(reader, 0);
52198
- const fields7 = decodeInteger(reader, 0);
52199
- const hasName = fields7 & 1;
52198
+ const fields8 = decodeInteger(reader, 0);
52199
+ const hasName = fields8 & 1;
52200
52200
  const scope = hasName ? [line2, column2, 0, 0, kind, decodeInteger(reader, 0)] : [line2, column2, 0, 0, kind];
52201
52201
  let vars = EMPTY;
52202
52202
  if (hasMoreVlq(reader, length)) {
@@ -52226,8 +52226,8 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
52226
52226
  state[0] = encodeInteger(writer, startLine, state[0]);
52227
52227
  encodeInteger(writer, startColumn, 0);
52228
52228
  encodeInteger(writer, kind, 0);
52229
- const fields7 = scope.length === 6 ? 1 : 0;
52230
- encodeInteger(writer, fields7, 0);
52229
+ const fields8 = scope.length === 6 ? 1 : 0;
52230
+ encodeInteger(writer, fields8, 0);
52231
52231
  if (scope.length === 6) encodeInteger(writer, scope[5], 0);
52232
52232
  for (const v of vars) {
52233
52233
  encodeInteger(writer, v, 0);
@@ -52269,10 +52269,10 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
52269
52269
  last[3] = genColumn;
52270
52270
  continue;
52271
52271
  }
52272
- const fields7 = decodeInteger(reader, 0);
52273
- const hasDefinition = fields7 & 1;
52274
- const hasCallsite = fields7 & 2;
52275
- const hasScope = fields7 & 4;
52272
+ const fields8 = decodeInteger(reader, 0);
52273
+ const hasDefinition = fields8 & 1;
52274
+ const hasCallsite = fields8 & 2;
52275
+ const hasScope = fields8 & 4;
52276
52276
  let callsite = null;
52277
52277
  let bindings = EMPTY;
52278
52278
  let range;
@@ -52359,8 +52359,8 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
52359
52359
  writer.write(comma);
52360
52360
  }
52361
52361
  state[1] = encodeInteger(writer, range[1], state[1]);
52362
- const fields7 = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0);
52363
- encodeInteger(writer, fields7, 0);
52362
+ const fields8 = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0);
52363
+ encodeInteger(writer, fields8, 0);
52364
52364
  if (range.length === 6) {
52365
52365
  const { 4: sourcesIndex, 5: scopesIndex } = range;
52366
52366
  if (sourcesIndex !== state[2]) {
@@ -143051,7 +143051,7 @@ var require_chokidar = __commonJS({
143051
143051
  var package_default = {
143052
143052
  name: "@wix/cli-app",
143053
143053
  description: "CLI tool for Wix apps",
143054
- version: "1.1.171",
143054
+ version: "1.1.173",
143055
143055
  author: "Amit Dahan",
143056
143056
  dependencies: {
143057
143057
  esbuild: "^0.25.0",
@@ -143294,6 +143294,8 @@ var CliSystemErrorCode = (0, import_variant.variant)({
143294
143294
  FailedToGetMarketListing: {},
143295
143295
  FailedToAddRequiredApp: {},
143296
143296
  FailedToQuerySites: {},
143297
+ FailedToSetNamespace: {},
143298
+ FailedToSetCodeIdentifier: {},
143297
143299
  FailedToGetSite: {},
143298
143300
  FailedToDeploySite: {},
143299
143301
  FailedToDeploySitePreview: {},
@@ -153560,6 +153562,7 @@ var Input2 = ({
153560
153562
  },
153561
153563
  onSubmit: () => {
153562
153564
  if (!currentValue && placeholder) {
153565
+ setCurrentValue(placeholder);
153563
153566
  onSubmit?.(placeholder);
153564
153567
  } else {
153565
153568
  onSubmit?.(currentValue);
@@ -154038,8 +154041,45 @@ init_esm_shims();
154038
154041
 
154039
154042
  // ../cli-ui-kit/src/components/TextInput/TextInput.tsx
154040
154043
  init_esm_shims();
154041
- var import_react54 = __toESM(require_react(), 1);
154044
+ var import_react56 = __toESM(require_react(), 1);
154042
154045
  var import_variant12 = __toESM(require_lib(), 1);
154046
+
154047
+ // ../cli-ui-kit/src/components/Spinner.tsx
154048
+ init_esm_shims();
154049
+ var import_react55 = __toESM(require_react(), 1);
154050
+
154051
+ // ../../node_modules/ink-spinner/build/index.js
154052
+ init_esm_shims();
154053
+ var import_react54 = __toESM(require_react(), 1);
154054
+ var import_cli_spinners = __toESM(require_cli_spinners(), 1);
154055
+ function Spinner({ type = "dots" }) {
154056
+ const [frame, setFrame] = (0, import_react54.useState)(0);
154057
+ const spinner = import_cli_spinners.default[type];
154058
+ (0, import_react54.useEffect)(() => {
154059
+ const timer = setInterval(() => {
154060
+ setFrame((previousFrame) => {
154061
+ const isLastFrame = previousFrame === spinner.frames.length - 1;
154062
+ return isLastFrame ? 0 : previousFrame + 1;
154063
+ });
154064
+ }, spinner.interval);
154065
+ return () => {
154066
+ clearInterval(timer);
154067
+ };
154068
+ }, [spinner]);
154069
+ return import_react54.default.createElement(Text, null, spinner.frames[frame]);
154070
+ }
154071
+ var build_default2 = Spinner;
154072
+
154073
+ // ../cli-ui-kit/src/components/Spinner.tsx
154074
+ var Spinner2 = ({ text }) => {
154075
+ const spinnerNode = /* @__PURE__ */ import_react55.default.createElement(Text2, { skin: "info" }, /* @__PURE__ */ import_react55.default.createElement(build_default2, { type: "dots" }));
154076
+ if (text) {
154077
+ return /* @__PURE__ */ import_react55.default.createElement(Box_default, { gap: 1 }, spinnerNode, typeof text === "string" ? /* @__PURE__ */ import_react55.default.createElement(Text2, null, text) : text);
154078
+ }
154079
+ return spinnerNode;
154080
+ };
154081
+
154082
+ // ../cli-ui-kit/src/components/TextInput/TextInput.tsx
154043
154083
  var TextInput2 = ({
154044
154084
  label,
154045
154085
  isActive,
@@ -154048,38 +154088,48 @@ var TextInput2 = ({
154048
154088
  validate = () => true,
154049
154089
  inCreateFlow = false
154050
154090
  }) => {
154051
- const [inputState, setInputState] = (0, import_react54.useState)(
154091
+ const [inputState, setInputState] = (0, import_react56.useState)(
154052
154092
  () => InputState.NotSubmitted(placeholder)
154053
154093
  );
154054
- const [isDirty2, setIsDirty] = (0, import_react54.useState)(false);
154055
- const [validationError, setValidationError] = (0, import_react54.useState)();
154056
- const handleSubmit = (0, import_react54.useCallback)(
154094
+ const [isDirty2, setIsDirty] = (0, import_react56.useState)(false);
154095
+ const [showSpinner, setShowSpinner] = (0, import_react56.useState)(false);
154096
+ const [validationError, setValidationError] = (0, import_react56.useState)();
154097
+ const handleSubmit = (0, import_react56.useCallback)(
154057
154098
  async (value2) => {
154099
+ setValidationError(void 0);
154058
154100
  setIsDirty(false);
154059
- const validationResult = await validate(value2);
154060
- if (validationResult !== true) {
154061
- setValidationError(validationResult);
154062
- } else {
154063
- setValidationError(void 0);
154064
- setInputState(InputState.Submitted(value2));
154065
- onSubmit(value2);
154101
+ const validatingTimer = setTimeout(() => {
154102
+ setShowSpinner(true);
154103
+ }, 300);
154104
+ try {
154105
+ const validationResult = await validate(value2);
154106
+ if (validationResult !== true) {
154107
+ setValidationError(validationResult);
154108
+ } else {
154109
+ setValidationError(void 0);
154110
+ setInputState(InputState.Submitted(value2));
154111
+ onSubmit(value2);
154112
+ }
154113
+ } finally {
154114
+ clearTimeout(validatingTimer);
154115
+ setShowSpinner(false);
154066
154116
  }
154067
154117
  },
154068
154118
  [onSubmit, validate]
154069
154119
  );
154070
154120
  const afterValidationError = Boolean(validationError && !isDirty2);
154071
- (0, import_react54.useEffect)(() => {
154121
+ (0, import_react56.useEffect)(() => {
154072
154122
  if (isActive) {
154073
154123
  setInputState(InputState.NotSubmitted(inputState.value));
154074
154124
  }
154075
154125
  }, [isActive]);
154076
- return /* @__PURE__ */ import_react54.default.createElement(import_react54.default.Fragment, null, /* @__PURE__ */ import_react54.default.createElement(Box_default, { marginBottom: 1, marginLeft: inCreateFlow ? -2 : 0 }, /* @__PURE__ */ import_react54.default.createElement(Text2, null, /* @__PURE__ */ import_react54.default.createElement(
154126
+ return /* @__PURE__ */ import_react56.default.createElement(import_react56.default.Fragment, null, /* @__PURE__ */ import_react56.default.createElement(Box_default, { marginBottom: 1, marginLeft: inCreateFlow ? -2 : 0 }, /* @__PURE__ */ import_react56.default.createElement(Text2, null, /* @__PURE__ */ import_react56.default.createElement(
154077
154127
  InputLabel,
154078
154128
  {
154079
- icon: /* @__PURE__ */ import_react54.default.createElement(Text2, { skin: "question" }, /* @__PURE__ */ import_react54.default.createElement(PointerIcon, { appearance: "triangle" }))
154129
+ icon: /* @__PURE__ */ import_react56.default.createElement(Text2, { skin: "question" }, /* @__PURE__ */ import_react56.default.createElement(PointerIcon, { appearance: "triangle" }))
154080
154130
  },
154081
154131
  label
154082
- ), (0, import_variant12.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react54.default.createElement(import_react54.default.Fragment, null, " ", /* @__PURE__ */ import_react54.default.createElement(Text2, { skin: afterValidationError ? "error" : "standard" }, /* @__PURE__ */ import_react54.default.createElement(
154132
+ ), (0, import_variant12.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react56.default.createElement(import_react56.default.Fragment, null, " ", /* @__PURE__ */ import_react56.default.createElement(Text2, { skin: afterValidationError ? "error" : "standard" }, /* @__PURE__ */ import_react56.default.createElement(
154083
154133
  Input2,
154084
154134
  {
154085
154135
  placeholder: inputState.value,
@@ -154087,52 +154137,52 @@ var TextInput2 = ({
154087
154137
  onChange: () => setIsDirty(true),
154088
154138
  showCursor: afterValidationError
154089
154139
  }
154090
- ))))), (0, import_variant12.isType)(inputState, InputState.Submitted) && /* @__PURE__ */ import_react54.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react54.default.createElement(Text2, { skin: "secondary" }, /* @__PURE__ */ import_react54.default.createElement(SuccessIcon, null), " ", inputState.value)), validationError && /* @__PURE__ */ import_react54.default.createElement(Box_default, { columnGap: 1 }, /* @__PURE__ */ import_react54.default.createElement(Text2, { skin: "error" }, /* @__PURE__ */ import_react54.default.createElement(PointerIcon, { appearance: "exclamation" })), /* @__PURE__ */ import_react54.default.createElement(Text2, { skin: "error" }, validationError)));
154140
+ ))))), (0, import_variant12.isType)(inputState, InputState.Submitted) && /* @__PURE__ */ import_react56.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react56.default.createElement(Text2, { skin: "secondary" }, /* @__PURE__ */ import_react56.default.createElement(SuccessIcon, null), " ", inputState.value)), validationError && /* @__PURE__ */ import_react56.default.createElement(Box_default, { columnGap: 1 }, /* @__PURE__ */ import_react56.default.createElement(Text2, { skin: "error" }, /* @__PURE__ */ import_react56.default.createElement(PointerIcon, { appearance: "exclamation" })), /* @__PURE__ */ import_react56.default.createElement(Text2, { skin: "error" }, validationError)), showSpinner && /* @__PURE__ */ import_react56.default.createElement(Box_default, { columnGap: 1 }, /* @__PURE__ */ import_react56.default.createElement(Text2, { skin: "secondary" }, /* @__PURE__ */ import_react56.default.createElement(Spinner2, null), " ", "Validating...")));
154091
154141
  };
154092
154142
 
154093
154143
  // ../cli-ui-kit/src/components/Alert.tsx
154094
154144
  init_esm_shims();
154095
- var import_react55 = __toESM(require_react(), 1);
154145
+ var import_react57 = __toESM(require_react(), 1);
154096
154146
  var import_variant13 = __toESM(require_lib(), 1);
154097
154147
  var Alert = ({ type, children }) => {
154098
154148
  const icon = (0, import_variant13.match)(type, {
154099
154149
  error: (0, import_variant13.constant)(
154100
- /* @__PURE__ */ import_react55.default.createElement(Text2, { skin: "error" }, /* @__PURE__ */ import_react55.default.createElement(ErrorIcon, null))
154150
+ /* @__PURE__ */ import_react57.default.createElement(Text2, { skin: "error" }, /* @__PURE__ */ import_react57.default.createElement(ErrorIcon, null))
154101
154151
  ),
154102
154152
  warning: (0, import_variant13.constant)(
154103
- /* @__PURE__ */ import_react55.default.createElement(Text2, { skin: "warning" }, /* @__PURE__ */ import_react55.default.createElement(WarningIcon, null))
154153
+ /* @__PURE__ */ import_react57.default.createElement(Text2, { skin: "warning" }, /* @__PURE__ */ import_react57.default.createElement(WarningIcon, null))
154104
154154
  ),
154105
154155
  success: (0, import_variant13.constant)(
154106
- /* @__PURE__ */ import_react55.default.createElement(Text2, { skin: "success" }, /* @__PURE__ */ import_react55.default.createElement(SuccessIcon, null))
154156
+ /* @__PURE__ */ import_react57.default.createElement(Text2, { skin: "success" }, /* @__PURE__ */ import_react57.default.createElement(SuccessIcon, null))
154107
154157
  ),
154108
- insight: (0, import_variant13.constant)(/* @__PURE__ */ import_react55.default.createElement(InsightIcon, null))
154158
+ insight: (0, import_variant13.constant)(/* @__PURE__ */ import_react57.default.createElement(InsightIcon, null))
154109
154159
  });
154110
- return /* @__PURE__ */ import_react55.default.createElement(Text2, null, icon, " ", children);
154160
+ return /* @__PURE__ */ import_react57.default.createElement(Text2, null, icon, " ", children);
154111
154161
  };
154112
154162
 
154113
154163
  // ../cli-ui-kit/src/components/Badge.tsx
154114
154164
  init_esm_shims();
154115
- var import_react56 = __toESM(require_react(), 1);
154165
+ var import_react58 = __toESM(require_react(), 1);
154116
154166
  var skins2 = {
154117
154167
  success: { backgroundColor: "green" }
154118
154168
  };
154119
154169
  var Badge = ({ children, skin }) => {
154120
- return /* @__PURE__ */ import_react56.default.createElement(Text, { ...skins2[skin] }, " ", children, " ");
154170
+ return /* @__PURE__ */ import_react58.default.createElement(Text, { ...skins2[skin] }, " ", children, " ");
154121
154171
  };
154122
154172
 
154123
154173
  // ../cli-ui-kit/src/components/Key.tsx
154124
154174
  init_esm_shims();
154125
- var import_react57 = __toESM(require_react(), 1);
154175
+ var import_react59 = __toESM(require_react(), 1);
154126
154176
  var Key = ({ value: value2, skin }) => {
154127
154177
  if (skin === "secondary") {
154128
- return /* @__PURE__ */ import_react57.default.createElement(Text, null, /* @__PURE__ */ import_react57.default.createElement(Text, { inverse: true }, " ", value2, " "), /* @__PURE__ */ import_react57.default.createElement(Text, null, "\u2591"));
154178
+ return /* @__PURE__ */ import_react59.default.createElement(Text, null, /* @__PURE__ */ import_react59.default.createElement(Text, { inverse: true }, " ", value2, " "), /* @__PURE__ */ import_react59.default.createElement(Text, null, "\u2591"));
154129
154179
  }
154130
- return /* @__PURE__ */ import_react57.default.createElement(Text, null, /* @__PURE__ */ import_react57.default.createElement(Text, { backgroundColor: "blueBright" }, " ", value2, " "), /* @__PURE__ */ import_react57.default.createElement(Text, { color: "blueBright" }, "\u2591"));
154180
+ return /* @__PURE__ */ import_react59.default.createElement(Text, null, /* @__PURE__ */ import_react59.default.createElement(Text, { backgroundColor: "blueBright" }, " ", value2, " "), /* @__PURE__ */ import_react59.default.createElement(Text, { color: "blueBright" }, "\u2591"));
154131
154181
  };
154132
154182
 
154133
154183
  // ../cli-ui-kit/src/components/Link.tsx
154134
154184
  init_esm_shims();
154135
- var import_react58 = __toESM(require_react(), 1);
154185
+ var import_react60 = __toESM(require_react(), 1);
154136
154186
 
154137
154187
  // ../../node_modules/terminal-link/index.js
154138
154188
  init_esm_shims();
@@ -154279,52 +154329,17 @@ terminalLink.stderr.isSupported = import_supports_hyperlinks.default.stderr;
154279
154329
  var Link = ({ skin, children, url }) => {
154280
154330
  if (children) {
154281
154331
  if (terminalLink.isSupported) {
154282
- return /* @__PURE__ */ import_react58.default.createElement(
154332
+ return /* @__PURE__ */ import_react60.default.createElement(
154283
154333
  Transform,
154284
154334
  {
154285
154335
  transform: (childrenAsString) => terminalLink(childrenAsString, url, { fallback: false })
154286
154336
  },
154287
- /* @__PURE__ */ import_react58.default.createElement(Text2, { skin }, children)
154337
+ /* @__PURE__ */ import_react60.default.createElement(Text2, { skin }, children)
154288
154338
  );
154289
154339
  }
154290
- return /* @__PURE__ */ import_react58.default.createElement(Text2, null, /* @__PURE__ */ import_react58.default.createElement(Text2, { skin }, children), " (", url, ")");
154291
- }
154292
- return /* @__PURE__ */ import_react58.default.createElement(Text2, { skin: "info" }, url);
154293
- };
154294
-
154295
- // ../cli-ui-kit/src/components/Spinner.tsx
154296
- init_esm_shims();
154297
- var import_react60 = __toESM(require_react(), 1);
154298
-
154299
- // ../../node_modules/ink-spinner/build/index.js
154300
- init_esm_shims();
154301
- var import_react59 = __toESM(require_react(), 1);
154302
- var import_cli_spinners = __toESM(require_cli_spinners(), 1);
154303
- function Spinner({ type = "dots" }) {
154304
- const [frame, setFrame] = (0, import_react59.useState)(0);
154305
- const spinner = import_cli_spinners.default[type];
154306
- (0, import_react59.useEffect)(() => {
154307
- const timer = setInterval(() => {
154308
- setFrame((previousFrame) => {
154309
- const isLastFrame = previousFrame === spinner.frames.length - 1;
154310
- return isLastFrame ? 0 : previousFrame + 1;
154311
- });
154312
- }, spinner.interval);
154313
- return () => {
154314
- clearInterval(timer);
154315
- };
154316
- }, [spinner]);
154317
- return import_react59.default.createElement(Text, null, spinner.frames[frame]);
154318
- }
154319
- var build_default2 = Spinner;
154320
-
154321
- // ../cli-ui-kit/src/components/Spinner.tsx
154322
- var Spinner2 = ({ text }) => {
154323
- const spinnerNode = /* @__PURE__ */ import_react60.default.createElement(Text2, { skin: "info" }, /* @__PURE__ */ import_react60.default.createElement(build_default2, { type: "dots" }));
154324
- if (text) {
154325
- return /* @__PURE__ */ import_react60.default.createElement(Box_default, { gap: 1 }, spinnerNode, typeof text === "string" ? /* @__PURE__ */ import_react60.default.createElement(Text2, null, text) : text);
154340
+ return /* @__PURE__ */ import_react60.default.createElement(Text2, null, /* @__PURE__ */ import_react60.default.createElement(Text2, { skin }, children), " (", url, ")");
154326
154341
  }
154327
- return spinnerNode;
154342
+ return /* @__PURE__ */ import_react60.default.createElement(Text2, { skin: "info" }, url);
154328
154343
  };
154329
154344
 
154330
154345
  // ../cli-ui-kit/src/components/ErrorDetails.tsx
@@ -163139,6 +163154,12 @@ ${errorMessage}`
163139
163154
  message: "The development command failed to execute. Please review the output log above for details."
163140
163155
  }
163141
163156
  );
163157
+ },
163158
+ FailedToSetCodeIdentifier: () => {
163159
+ return () => /* @__PURE__ */ import_react79.default.createElement(ErrorMessage, { cause, message: "Failed to set code identifier." });
163160
+ },
163161
+ FailedToSetNamespace: () => {
163162
+ return () => /* @__PURE__ */ import_react79.default.createElement(ErrorMessage, { cause, message: "Failed to set namespace." });
163142
163163
  }
163143
163164
  });
163144
163165
  }
@@ -165834,17 +165855,17 @@ var PanoramaProvider = (props) => {
165834
165855
  init_esm_shims();
165835
165856
  var import_kebabCase = __toESM(require_kebabCase(), 1);
165836
165857
  function createCommandTransaction(panorama, command) {
165837
- const commandFullName = getFullCommandName(command);
165858
+ const commandFullName = (0, import_kebabCase.default)(getFullCommandName(command));
165859
+ panorama.setDefaultClientData({
165860
+ commandName: command.name(),
165861
+ commandFullName
165862
+ });
165838
165863
  const client2 = panorama.client({
165839
165864
  baseParams: {
165840
165865
  componentId: "command"
165841
- },
165842
- data: {
165843
- commandName: command.name(),
165844
- commandFullName
165845
165866
  }
165846
165867
  });
165847
- return client2.transaction((0, import_kebabCase.default)(commandFullName));
165868
+ return client2.transaction(commandFullName);
165848
165869
  }
165849
165870
  function getFullCommandName(command) {
165850
165871
  if (command.parent) {
@@ -170807,6 +170828,7 @@ init_esm_shims();
170807
170828
 
170808
170829
  // ../dev-center-client/src/dev-center-client.ts
170809
170830
  init_esm_shims();
170831
+ var import_variant29 = __toESM(require_lib(), 1);
170810
170832
 
170811
170833
  // ../../node_modules/@wix/ambassador-devcenter-apps-v1-app-old/es/build/http.impl.js
170812
170834
  init_esm_shims();
@@ -171512,10 +171534,14 @@ function getAppByVersion(payload4) {
171512
171534
  return __getAppByVersion;
171513
171535
  }
171514
171536
 
171515
- // ../../node_modules/@wix/ambassador-devcenter-apps-v1-app/build/es/http.impl.js
171537
+ // ../../node_modules/@wix/ambassador-devcenter-apps-v1-app/es/build/http.impl.js
171516
171538
  init_esm_shims();
171517
171539
  var _queryAppRequest = {};
171518
171540
  var _queryAppResponse = { apps: "_v1App" };
171541
+ var _setCodeIdentifierRequest = {};
171542
+ var _setCodeIdentifierResponse = {};
171543
+ var _setNamespaceRequest = {};
171544
+ var _setNamespaceResponse = {};
171519
171545
  var _v1App = {
171520
171546
  createdDate: "google.protobuf.Timestamp",
171521
171547
  updatedDate: "google.protobuf.Timestamp"
@@ -171661,6 +171687,60 @@ function getApp(payload4) {
171661
171687
  __getApp.__isAmbassador = true;
171662
171688
  return __getApp;
171663
171689
  }
171690
+ function setNamespace(payload4) {
171691
+ var _a2 = serializer(_setNamespaceRequest, {}), toReq = _a2.toJSON, fromReq = _a2.fromJSON;
171692
+ var fromRes = serializer(_setNamespaceResponse, {}).fromJSON;
171693
+ function __setNamespace(_a3) {
171694
+ var host = _a3.host;
171695
+ var serializedData = toReq(payload4);
171696
+ var metadata = {
171697
+ entityFqdn: "wix.devcenter.apps.v1.app",
171698
+ method: "PATCH",
171699
+ methodFqn: "wix.devcenter.apps.v1.AppsService.SetNamespace",
171700
+ migrationOptions: {
171701
+ optInTransformResponse: true
171702
+ },
171703
+ url: resolveWixDevcenterAppsV1AppsServiceUrl({
171704
+ protoPath: "/v1/apps/{appId}/set-namespace",
171705
+ data: serializedData,
171706
+ host
171707
+ }),
171708
+ data: serializedData,
171709
+ transformResponse: fromRes
171710
+ };
171711
+ return metadata;
171712
+ }
171713
+ __setNamespace.fromReq = fromReq;
171714
+ __setNamespace.__isAmbassador = true;
171715
+ return __setNamespace;
171716
+ }
171717
+ function setCodeIdentifier(payload4) {
171718
+ var _a2 = serializer(_setCodeIdentifierRequest, {}), toReq = _a2.toJSON, fromReq = _a2.fromJSON;
171719
+ var fromRes = serializer(_setCodeIdentifierResponse, {}).fromJSON;
171720
+ function __setCodeIdentifier(_a3) {
171721
+ var host = _a3.host;
171722
+ var serializedData = toReq(payload4);
171723
+ var metadata = {
171724
+ entityFqdn: "wix.devcenter.apps.v1.app",
171725
+ method: "PATCH",
171726
+ methodFqn: "wix.devcenter.apps.v1.AppsService.SetCodeIdentifier",
171727
+ migrationOptions: {
171728
+ optInTransformResponse: true
171729
+ },
171730
+ url: resolveWixDevcenterAppsV1AppsServiceUrl({
171731
+ protoPath: "/v1/apps/{appId}/set-code-identifier",
171732
+ data: serializedData,
171733
+ host
171734
+ }),
171735
+ data: serializedData,
171736
+ transformResponse: fromRes
171737
+ };
171738
+ return metadata;
171739
+ }
171740
+ __setCodeIdentifier.fromReq = fromReq;
171741
+ __setCodeIdentifier.__isAmbassador = true;
171742
+ return __setCodeIdentifier;
171743
+ }
171664
171744
  function queryApp(payload4) {
171665
171745
  var _a2 = serializer(_queryAppRequest, {}), toReq = _a2.toJSON, fromReq = _a2.fromJSON;
171666
171746
  var fromRes = serializer(_queryAppResponse, { _v1App }).fromJSON;
@@ -176005,6 +176085,14 @@ var listShareUrlsSchema = external_exports.object({
176005
176085
 
176006
176086
  // ../dev-center-client/src/dev-center-client.ts
176007
176087
  var EMPTY_SITE_TEMPLATE = "24bafe8a-7c80-4b63-8a71-08752062f246";
176088
+ var SetCodeIdentifierResult = (0, import_variant29.variant)({
176089
+ Success: {},
176090
+ ShouldBeUnique: (0, import_variant29.fields)()
176091
+ });
176092
+ var SetNamespaceResult = (0, import_variant29.variant)({
176093
+ Success: {},
176094
+ ShouldBeUnique: (0, import_variant29.fields)()
176095
+ });
176008
176096
  var DevCenterClient = class {
176009
176097
  constructor(httpClient) {
176010
176098
  this.httpClient = httpClient;
@@ -176056,6 +176144,41 @@ var DevCenterClient = class {
176056
176144
  });
176057
176145
  }
176058
176146
  };
176147
+ setNamespace = async ({ appId, namespace }) => {
176148
+ try {
176149
+ await this.httpClient.request(
176150
+ setNamespace({ appId, appName: namespace })
176151
+ );
176152
+ return SetNamespaceResult.Success();
176153
+ } catch (e2) {
176154
+ if (isHttpError(e2) && e2.response?.status === 409 && isHttpApplicationError(e2) && e2.response.data.details.applicationError.code === "ALREADY_EXISTS") {
176155
+ return SetNamespaceResult.ShouldBeUnique({ namespace });
176156
+ }
176157
+ throw new CliError({
176158
+ code: CliErrorCode.FailedToSetNamespace(),
176159
+ cause: e2
176160
+ });
176161
+ }
176162
+ };
176163
+ setCodeIdentifier = async ({
176164
+ appId,
176165
+ codeIdentifier
176166
+ }) => {
176167
+ try {
176168
+ await this.httpClient.request(
176169
+ setCodeIdentifier({ appId, codeIdentifier })
176170
+ );
176171
+ return SetCodeIdentifierResult.Success();
176172
+ } catch (e2) {
176173
+ if (isHttpError(e2) && e2.response?.status === 409 && isHttpApplicationError(e2) && e2.response.data.details.applicationError.code === "ALREADY_EXISTS") {
176174
+ return SetCodeIdentifierResult.ShouldBeUnique({ codeIdentifier });
176175
+ }
176176
+ throw new CliError({
176177
+ code: CliErrorCode.FailedToSetCodeIdentifier(),
176178
+ cause: e2
176179
+ });
176180
+ }
176181
+ };
176059
176182
  createOAuthApp = async (oAuthApp) => {
176060
176183
  try {
176061
176184
  const { data } = await this.httpClient.request(
@@ -176922,7 +177045,7 @@ var Uploader = class {
176922
177045
  );
176923
177046
  const promises = [];
176924
177047
  for (const filePresignedUrl of filePresignedUrls) {
176925
- const { uploadUrl, fields: fields7, fileName } = filePresignedUrl;
177048
+ const { uploadUrl, fields: fields8, fileName } = filePresignedUrl;
176926
177049
  this.eventListeners?.onStart?.(fileName);
176927
177050
  const filePathToUpload = filesRelativeToAbsolutePathMap[fileName];
176928
177051
  const fileStream = createReadStream(filePathToUpload, {
@@ -176930,7 +177053,7 @@ var Uploader = class {
176930
177053
  highWaterMark: 16 * 1024
176931
177054
  });
176932
177055
  promises.push(
176933
- this.uploadFile(fileName, uploadUrl, fields7, fileStream).catch(
177056
+ this.uploadFile(fileName, uploadUrl, fields8, fileStream).catch(
176934
177057
  (err) => {
176935
177058
  this.eventListeners?.onFailed?.(fileName, err);
176936
177059
  throw err;
@@ -176993,8 +177116,8 @@ var Uploader = class {
176993
177116
  );
176994
177117
  return data;
176995
177118
  }
176996
- async uploadFile(fileName, url, fields7, fileStream) {
176997
- const formData = this.buildFormData(fields7, fileName, fileStream);
177119
+ async uploadFile(fileName, url, fields8, fileStream) {
177120
+ const formData = this.buildFormData(fields8, fileName, fileStream);
176998
177121
  await pRetry2(
176999
177122
  async () => {
177000
177123
  await this.submitForm(url, formData);
@@ -177003,9 +177126,9 @@ var Uploader = class {
177003
177126
  );
177004
177127
  this.eventListeners?.onUploaded?.(fileName);
177005
177128
  }
177006
- buildFormData(fields7, filename, fileStream) {
177129
+ buildFormData(fields8, filename, fileStream) {
177007
177130
  const formData = new import_form_data.default();
177008
- Object.entries(fields7).forEach(([key, value2]) => {
177131
+ Object.entries(fields8).forEach(([key, value2]) => {
177009
177132
  formData.append(key, value2);
177010
177133
  });
177011
177134
  formData.append("file", fileStream, {
@@ -177756,7 +177879,7 @@ import { randomUUID as randomUUID2 } from "node:crypto";
177756
177879
  // src/dev-center/components/site/config.ts
177757
177880
  init_esm_shims();
177758
177881
  import { join as join9, dirname as dirname3, resolve as resolve3 } from "node:path";
177759
- var import_variant29 = __toESM(require_lib(), 1);
177882
+ var import_variant30 = __toESM(require_lib(), 1);
177760
177883
  async function loadEmbeddedScriptComponentConfig(embeddedScriptPath) {
177761
177884
  const configPath = replaceExtension(embeddedScriptPath, "json");
177762
177885
  const isConfigExist = await pathExists(configPath);
@@ -177879,14 +178002,14 @@ function virtualModuleIdForCustomElementScriptAsset(componentId) {
177879
178002
  function virtualCustomElementPanelHTMLAssets(model) {
177880
178003
  return new Map(
177881
178004
  model.components.filter(
177882
- (component) => ((0, import_variant29.isType)(component, DevCenterComponent.CustomElement) || (0, import_variant29.isType)(component, DevCenterComponent.SitePlugin)) && Boolean(component.relativePanelPath)
178005
+ (component) => ((0, import_variant30.isType)(component, DevCenterComponent.CustomElement) || (0, import_variant30.isType)(component, DevCenterComponent.SitePlugin)) && Boolean(component.relativePanelPath)
177883
178006
  ).map((comp) => [virtualPathForCustomElementPanelHTMLAsset(comp.id), comp])
177884
178007
  );
177885
178008
  }
177886
178009
  function virtualCustomElementScriptAssets(model) {
177887
178010
  return new Map(
177888
178011
  model.components.filter(
177889
- (component) => (0, import_variant29.isType)(component, DevCenterComponent.CustomElement) || (0, import_variant29.isType)(component, DevCenterComponent.SitePlugin)
178012
+ (component) => (0, import_variant30.isType)(component, DevCenterComponent.CustomElement) || (0, import_variant30.isType)(component, DevCenterComponent.SitePlugin)
177890
178013
  ).map((comp) => [
177891
178014
  virtualModuleIdForCustomElementScriptAsset(comp.id),
177892
178015
  comp
@@ -177896,7 +178019,7 @@ function virtualCustomElementScriptAssets(model) {
177896
178019
  function virtualCustomElementPanelScriptAssets(model) {
177897
178020
  return new Map(
177898
178021
  model.components.filter(
177899
- (component) => ((0, import_variant29.isType)(component, DevCenterComponent.CustomElement) || (0, import_variant29.isType)(component, DevCenterComponent.SitePlugin)) && Boolean(component.relativePanelPath)
178022
+ (component) => ((0, import_variant30.isType)(component, DevCenterComponent.CustomElement) || (0, import_variant30.isType)(component, DevCenterComponent.SitePlugin)) && Boolean(component.relativePanelPath)
177900
178023
  ).map((comp) => [
177901
178024
  virtualModuleIdForCustomElementPanelScriptAsset(comp.id),
177902
178025
  comp
@@ -177908,7 +178031,7 @@ function virtualModuleIdForBlocksComponentScriptAsset(componentId) {
177908
178031
  }
177909
178032
  function virtualBlocksWidgetPanelScriptAssets(model) {
177910
178033
  return new Map(
177911
- model.components.filter((0, import_variant29.isType)(DevCenterComponent.BlocksWidgetPanel)).map((comp) => [
178034
+ model.components.filter((0, import_variant30.isType)(DevCenterComponent.BlocksWidgetPanel)).map((comp) => [
177912
178035
  virtualModuleIdForBlocksComponentScriptAsset(comp.id),
177913
178036
  comp
177914
178037
  ])
@@ -177916,7 +178039,7 @@ function virtualBlocksWidgetPanelScriptAssets(model) {
177916
178039
  }
177917
178040
  function virtualBlocksWidgetScriptAssets(model) {
177918
178041
  return new Map(
177919
- model.components.filter((0, import_variant29.isType)(DevCenterComponent.BlocksWidget)).map((comp) => [
178042
+ model.components.filter((0, import_variant30.isType)(DevCenterComponent.BlocksWidget)).map((comp) => [
177920
178043
  virtualModuleIdForBlocksComponentScriptAsset(comp.id),
177921
178044
  comp
177922
178045
  ])
@@ -177927,7 +178050,7 @@ function virtualModuleIdForSiteComponentScriptAsset(componentId) {
177927
178050
  }
177928
178051
  function virtualSiteComponentScriptAssets(model) {
177929
178052
  return new Map(
177930
- model.components.filter((0, import_variant29.isType)(DevCenterComponent.SiteComponent)).map((comp) => [
178053
+ model.components.filter((0, import_variant30.isType)(DevCenterComponent.SiteComponent)).map((comp) => [
177931
178054
  virtualModuleIdForSiteComponentScriptAsset(comp.id),
177932
178055
  comp
177933
178056
  ])
@@ -177938,7 +178061,7 @@ function virtualModuleIdForSiteComponentPanelScriptAsset(componentId) {
177938
178061
  }
177939
178062
  function virtualSiteComponentPanelScriptAssets(model) {
177940
178063
  return new Map(
177941
- model.components.filter((0, import_variant29.isType)(DevCenterComponent.SiteComponentPanel)).map((comp) => [
178064
+ model.components.filter((0, import_variant30.isType)(DevCenterComponent.SiteComponentPanel)).map((comp) => [
177942
178065
  virtualModuleIdForSiteComponentPanelScriptAsset(comp.id),
177943
178066
  comp
177944
178067
  ])
@@ -177950,7 +178073,7 @@ function virtualModuleIdForSiteComponentPreview(componentId) {
177950
178073
  function virtualSiteComponentPreviewScriptAssets(model) {
177951
178074
  const assets = /* @__PURE__ */ new Map();
177952
178075
  for (const comp of model.components) {
177953
- if ((0, import_variant29.isType)(comp, DevCenterComponent.SiteComponent) && comp.relativePreviewPath) {
178076
+ if ((0, import_variant30.isType)(comp, DevCenterComponent.SiteComponent) && comp.relativePreviewPath) {
177954
178077
  assets.set(virtualModuleIdForSiteComponentPreview(comp.id), {
177955
178078
  ...comp,
177956
178079
  relativePreviewPath: comp.relativePreviewPath
@@ -178042,7 +178165,7 @@ function getElementsPresetEntries(componentId, componentDir, projectFolder, elem
178042
178165
  function virtualSiteComponentPresetAssets(model) {
178043
178166
  const entries = [];
178044
178167
  const siteComponents = model.components.filter(
178045
- (0, import_variant29.isType)(DevCenterComponent.SiteComponent)
178168
+ (0, import_variant30.isType)(DevCenterComponent.SiteComponent)
178046
178169
  );
178047
178170
  for (const component of siteComponents) {
178048
178171
  if (component.presets) {
@@ -178078,7 +178201,7 @@ function virtualModuleIdForSiteComponentSdkScriptAsset(componentId) {
178078
178201
  function virtualSiteComponentSdkScriptAssets(model) {
178079
178202
  const assets = /* @__PURE__ */ new Map();
178080
178203
  for (const comp of model.components) {
178081
- if ((0, import_variant29.isType)(comp, DevCenterComponent.SiteComponent) && comp.relativeSdkPath) {
178204
+ if ((0, import_variant30.isType)(comp, DevCenterComponent.SiteComponent) && comp.relativeSdkPath) {
178082
178205
  assets.set(virtualModuleIdForSiteComponentSdkScriptAsset(comp.id), {
178083
178206
  ...comp,
178084
178207
  relativeSdkPath: comp.relativeSdkPath
@@ -178695,7 +178818,7 @@ var getMajorVersionFromRange = (packageName, versionRange) => {
178695
178818
  // src/dev-center/components/backend/components.ts
178696
178819
  init_esm_shims();
178697
178820
  import { join as join11 } from "node:path";
178698
- var import_variant30 = __toESM(require_lib(), 1);
178821
+ var import_variant31 = __toESM(require_lib(), 1);
178699
178822
  var API_PATTERN = join11(API_DIR, "*", "api.{ts,tsx,js,jsx}");
178700
178823
  var WEB_METHOD_PATTERN = join11(WEB_METHOD_DIR, "**", "*.web.ts");
178701
178824
  var EVENTS_PATTERN = join11(EVENTS_DIR, "*", "event.{ts,tsx,js,jsx}");
@@ -178772,7 +178895,7 @@ async function loadServicePlugin(pluginPath) {
178772
178895
  PlatformType.Dashboard()
178773
178896
  ],
178774
178897
  relativePath: pluginPath,
178775
- servicePlugin: await (0, import_variant30.match)(servicePluginType, {
178898
+ servicePlugin: await (0, import_variant31.match)(servicePluginType, {
178776
178899
  STAFF_SORTING_PROVIDER: async () => ServicePlugin.StaffSortingProvider(
178777
178900
  await loadServicePluginConfig(
178778
178901
  pluginPath,
@@ -179568,12 +179691,12 @@ export {
179568
179691
  SelectOptionAvailability,
179569
179692
  SelectInput2 as SelectInput,
179570
179693
  SelectGroupsInput,
179694
+ Spinner2 as Spinner,
179571
179695
  TextInput2 as TextInput,
179572
179696
  Alert,
179573
179697
  Badge,
179574
179698
  Key,
179575
179699
  Link,
179576
- Spinner2 as Spinner,
179577
179700
  ErrorDetails,
179578
179701
  Notification,
179579
179702
  useExit,
@@ -179921,4 +180044,4 @@ mustache/mustache.mjs:
179921
180044
  * http://github.com/janl/mustache.js
179922
180045
  *)
179923
180046
  */
179924
- //# sourceMappingURL=chunk-YHKBOPAS.js.map
180047
+ //# sourceMappingURL=chunk-HKJUQPIH.js.map