@wix/cli-app 1.1.82 → 1.1.83

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 (89) hide show
  1. package/build/{AddPermissionCommand-SXPAYSAF.js → AddPermissionCommand-5X3K4KUG.js} +2 -2
  2. package/build/{CreateVersionCommand-CL7JTSHV.js → CreateVersionCommand-XWWXAFOX.js} +3 -3
  3. package/build/{DevCommand-NKKM4UEH.js → DevCommand-EOEGQX2B.js} +10 -10
  4. package/build/{GenerateCommand-EK35R76L.js → GenerateCommand-IOFKL3RC.js} +8 -8
  5. package/build/{LogsCommand-NCV5AKYF.js → LogsCommand-23QQRT3D.js} +3 -3
  6. package/build/PreviewCommand-FBODGF7Y.js +19 -0
  7. package/build/ReleaseCommand-SNCMQQXK.js +28 -0
  8. package/build/{ReleaseCommand-FJKPKE3Y.js.map → ReleaseCommand-SNCMQQXK.js.map} +1 -1
  9. package/build/ServeCommand-SGREOUDA.js +43 -0
  10. package/build/ServeCommand-SGREOUDA.js.map +1 -0
  11. package/build/{build-VSYNDSED.js → build-PYB5PAZO.js} +6 -6
  12. package/build/{chunk-K4IODCQP.js → chunk-3X2VYRBF.js} +3 -5
  13. package/build/chunk-3X2VYRBF.js.map +1 -0
  14. package/build/{chunk-3GSDI3OJ.js → chunk-4PXJSX4C.js} +2 -2
  15. package/build/{chunk-FGCBIHDS.js → chunk-5TP6T6QK.js} +84 -17
  16. package/build/chunk-5TP6T6QK.js.map +1 -0
  17. package/build/{chunk-HR6CTO67.js → chunk-63VDDLLQ.js} +2 -2
  18. package/build/{chunk-VARU4VGB.js → chunk-AN77SZN2.js} +7 -9
  19. package/build/{chunk-VARU4VGB.js.map → chunk-AN77SZN2.js.map} +1 -1
  20. package/build/{chunk-FTEVVMFS.js → chunk-E4UNGBQY.js} +2 -2
  21. package/build/{chunk-OGO22IKX.js → chunk-GGDJQXOX.js} +3 -3
  22. package/build/{chunk-KU4PN6UU.js → chunk-KLBXSZ6R.js} +3 -3
  23. package/build/{chunk-75BL4FR5.js → chunk-QREADZZF.js} +5 -5
  24. package/build/{chunk-PGKXOCZN.js → chunk-SIJDKP2Q.js} +242 -85
  25. package/build/chunk-SIJDKP2Q.js.map +1 -0
  26. package/build/{chunk-3LJH5WAS.js → chunk-TJFERWU7.js} +5 -5
  27. package/build/{chunk-WBXDIEUS.js → chunk-VB3AXXRP.js} +2 -2
  28. package/build/{chunk-XDWVTYW3.js → chunk-VLQG5SQF.js} +20 -2
  29. package/build/{chunk-XDWVTYW3.js.map → chunk-VLQG5SQF.js.map} +1 -1
  30. package/build/{chunk-5LGI6O3F.js → chunk-WNR36YTI.js} +2 -2
  31. package/build/{chunk-I2PLZT4A.js → chunk-Y4GJ3NS4.js} +2 -2
  32. package/build/{chunk-QSLRE7OK.js → chunk-ZCUJ356B.js} +2 -2
  33. package/build/{chunk-GGQMSU4O.js → chunk-ZLLXHWZF.js} +588 -249
  34. package/build/{chunk-GGQMSU4O.js.map → chunk-ZLLXHWZF.js.map} +1 -1
  35. package/build/{chunk-IB2KM2Q7.js → chunk-ZOZ5LJV7.js} +7 -7
  36. package/build/cloudflare-runtime/entry.js +1 -1
  37. package/build/cloudflare-runtime/getRegisteredExtensions.js +1 -1
  38. package/build/index.js +34 -31
  39. package/build/index.js.map +1 -1
  40. package/build/platform-sdk/chunk-6NLQHDP6.js +2 -0
  41. package/build/platform-sdk/chunk-6NLQHDP6.js.map +1 -0
  42. package/build/platform-sdk/chunk-BGTZ3RNN.js +2 -0
  43. package/build/platform-sdk/chunk-BGTZ3RNN.js.map +1 -0
  44. package/build/platform-sdk/{chunk-3WHQP2RD.js → chunk-MM2KVUBI.js} +2 -2
  45. package/build/platform-sdk/dashboard.js +1 -1
  46. package/build/platform-sdk/editor.js +1 -1
  47. package/build/platform-sdk/sdk-context.js +1 -1
  48. package/build/platform-sdk/sdk-context.js.map +1 -1
  49. package/build/platform-sdk/site.js +1 -1
  50. package/build/{preview-CLBQELU3.js → preview-PIFWQKW3.js} +13 -14
  51. package/build/{preview-CLBQELU3.js.map → preview-PIFWQKW3.js.map} +1 -1
  52. package/build/{release-VZ2GWJE2.js → release-6Z6LMTRW.js} +15 -16
  53. package/build/{release-VZ2GWJE2.js.map → release-6Z6LMTRW.js.map} +1 -1
  54. package/build/{render-command-OT7HQRPA.js → render-command-3G25G5MU.js} +6 -6
  55. package/package.json +6 -6
  56. package/build/PreviewCommand-KCCZ4ECQ.js +0 -20
  57. package/build/ReleaseCommand-FJKPKE3Y.js +0 -29
  58. package/build/ServeCommand-B4GJL65A.js +0 -169
  59. package/build/ServeCommand-B4GJL65A.js.map +0 -1
  60. package/build/chunk-FGCBIHDS.js.map +0 -1
  61. package/build/chunk-K4IODCQP.js.map +0 -1
  62. package/build/chunk-PGKXOCZN.js.map +0 -1
  63. package/build/chunk-PS7R6MWD.js +0 -92
  64. package/build/chunk-PS7R6MWD.js.map +0 -1
  65. package/build/platform-sdk/chunk-42XIZ4MH.js +0 -2
  66. package/build/platform-sdk/chunk-42XIZ4MH.js.map +0 -1
  67. package/build/platform-sdk/chunk-MQEY2AKT.js +0 -2
  68. package/build/platform-sdk/chunk-MQEY2AKT.js.map +0 -1
  69. /package/build/{AddPermissionCommand-SXPAYSAF.js.map → AddPermissionCommand-5X3K4KUG.js.map} +0 -0
  70. /package/build/{CreateVersionCommand-CL7JTSHV.js.map → CreateVersionCommand-XWWXAFOX.js.map} +0 -0
  71. /package/build/{DevCommand-NKKM4UEH.js.map → DevCommand-EOEGQX2B.js.map} +0 -0
  72. /package/build/{GenerateCommand-EK35R76L.js.map → GenerateCommand-IOFKL3RC.js.map} +0 -0
  73. /package/build/{LogsCommand-NCV5AKYF.js.map → LogsCommand-23QQRT3D.js.map} +0 -0
  74. /package/build/{PreviewCommand-KCCZ4ECQ.js.map → PreviewCommand-FBODGF7Y.js.map} +0 -0
  75. /package/build/{build-VSYNDSED.js.map → build-PYB5PAZO.js.map} +0 -0
  76. /package/build/{chunk-3GSDI3OJ.js.map → chunk-4PXJSX4C.js.map} +0 -0
  77. /package/build/{chunk-HR6CTO67.js.map → chunk-63VDDLLQ.js.map} +0 -0
  78. /package/build/{chunk-FTEVVMFS.js.map → chunk-E4UNGBQY.js.map} +0 -0
  79. /package/build/{chunk-OGO22IKX.js.map → chunk-GGDJQXOX.js.map} +0 -0
  80. /package/build/{chunk-KU4PN6UU.js.map → chunk-KLBXSZ6R.js.map} +0 -0
  81. /package/build/{chunk-75BL4FR5.js.map → chunk-QREADZZF.js.map} +0 -0
  82. /package/build/{chunk-3LJH5WAS.js.map → chunk-TJFERWU7.js.map} +0 -0
  83. /package/build/{chunk-WBXDIEUS.js.map → chunk-VB3AXXRP.js.map} +0 -0
  84. /package/build/{chunk-5LGI6O3F.js.map → chunk-WNR36YTI.js.map} +0 -0
  85. /package/build/{chunk-I2PLZT4A.js.map → chunk-Y4GJ3NS4.js.map} +0 -0
  86. /package/build/{chunk-QSLRE7OK.js.map → chunk-ZCUJ356B.js.map} +0 -0
  87. /package/build/{chunk-IB2KM2Q7.js.map → chunk-ZOZ5LJV7.js.map} +0 -0
  88. /package/build/platform-sdk/{chunk-3WHQP2RD.js.map → chunk-MM2KVUBI.js.map} +0 -0
  89. /package/build/{render-command-OT7HQRPA.js.map → render-command-3G25G5MU.js.map} +0 -0
@@ -17317,9 +17317,9 @@ var require_semver2 = __commonJS({
17317
17317
  }
17318
17318
  });
17319
17319
 
17320
- // ../../node_modules/retry/lib/retry_operation.js
17320
+ // ../../node_modules/p-retry/node_modules/retry/lib/retry_operation.js
17321
17321
  var require_retry_operation = __commonJS({
17322
- "../../node_modules/retry/lib/retry_operation.js"(exports, module2) {
17322
+ "../../node_modules/p-retry/node_modules/retry/lib/retry_operation.js"(exports, module2) {
17323
17323
  "use strict";
17324
17324
  init_esm_shims();
17325
17325
  function RetryOperation(timeouts, options) {
@@ -17454,9 +17454,9 @@ var require_retry_operation = __commonJS({
17454
17454
  }
17455
17455
  });
17456
17456
 
17457
- // ../../node_modules/retry/lib/retry.js
17457
+ // ../../node_modules/p-retry/node_modules/retry/lib/retry.js
17458
17458
  var require_retry = __commonJS({
17459
- "../../node_modules/retry/lib/retry.js"(exports) {
17459
+ "../../node_modules/p-retry/node_modules/retry/lib/retry.js"(exports) {
17460
17460
  "use strict";
17461
17461
  init_esm_shims();
17462
17462
  var RetryOperation = require_retry_operation();
@@ -17542,9 +17542,9 @@ var require_retry = __commonJS({
17542
17542
  }
17543
17543
  });
17544
17544
 
17545
- // ../../node_modules/retry/index.js
17545
+ // ../../node_modules/p-retry/node_modules/retry/index.js
17546
17546
  var require_retry2 = __commonJS({
17547
- "../../node_modules/retry/index.js"(exports, module2) {
17547
+ "../../node_modules/p-retry/node_modules/retry/index.js"(exports, module2) {
17548
17548
  "use strict";
17549
17549
  init_esm_shims();
17550
17550
  module2.exports = require_retry();
@@ -120536,6 +120536,240 @@ window.sentryOnLoad = function () {
120536
120536
  }
120537
120537
  });
120538
120538
 
120539
+ // ../../node_modules/@wix/app-cloud-uploader/node_modules/retry/lib/retry_operation.js
120540
+ var require_retry_operation2 = __commonJS({
120541
+ "../../node_modules/@wix/app-cloud-uploader/node_modules/retry/lib/retry_operation.js"(exports, module2) {
120542
+ "use strict";
120543
+ init_esm_shims();
120544
+ function RetryOperation(timeouts, options) {
120545
+ if (typeof options === "boolean") {
120546
+ options = { forever: options };
120547
+ }
120548
+ this._originalTimeouts = JSON.parse(JSON.stringify(timeouts));
120549
+ this._timeouts = timeouts;
120550
+ this._options = options || {};
120551
+ this._maxRetryTime = options && options.maxRetryTime || Infinity;
120552
+ this._fn = null;
120553
+ this._errors = [];
120554
+ this._attempts = 1;
120555
+ this._operationTimeout = null;
120556
+ this._operationTimeoutCb = null;
120557
+ this._timeout = null;
120558
+ this._operationStart = null;
120559
+ this._timer = null;
120560
+ if (this._options.forever) {
120561
+ this._cachedTimeouts = this._timeouts.slice(0);
120562
+ }
120563
+ }
120564
+ module2.exports = RetryOperation;
120565
+ RetryOperation.prototype.reset = function() {
120566
+ this._attempts = 1;
120567
+ this._timeouts = this._originalTimeouts.slice(0);
120568
+ };
120569
+ RetryOperation.prototype.stop = function() {
120570
+ if (this._timeout) {
120571
+ clearTimeout(this._timeout);
120572
+ }
120573
+ if (this._timer) {
120574
+ clearTimeout(this._timer);
120575
+ }
120576
+ this._timeouts = [];
120577
+ this._cachedTimeouts = null;
120578
+ };
120579
+ RetryOperation.prototype.retry = function(err) {
120580
+ if (this._timeout) {
120581
+ clearTimeout(this._timeout);
120582
+ }
120583
+ if (!err) {
120584
+ return false;
120585
+ }
120586
+ var currentTime = (/* @__PURE__ */ new Date()).getTime();
120587
+ if (err && currentTime - this._operationStart >= this._maxRetryTime) {
120588
+ this._errors.push(err);
120589
+ this._errors.unshift(new Error("RetryOperation timeout occurred"));
120590
+ return false;
120591
+ }
120592
+ this._errors.push(err);
120593
+ var timeout = this._timeouts.shift();
120594
+ if (timeout === void 0) {
120595
+ if (this._cachedTimeouts) {
120596
+ this._errors.splice(0, this._errors.length - 1);
120597
+ timeout = this._cachedTimeouts.slice(-1);
120598
+ } else {
120599
+ return false;
120600
+ }
120601
+ }
120602
+ var self2 = this;
120603
+ this._timer = setTimeout(function() {
120604
+ self2._attempts++;
120605
+ if (self2._operationTimeoutCb) {
120606
+ self2._timeout = setTimeout(function() {
120607
+ self2._operationTimeoutCb(self2._attempts);
120608
+ }, self2._operationTimeout);
120609
+ if (self2._options.unref) {
120610
+ self2._timeout.unref();
120611
+ }
120612
+ }
120613
+ self2._fn(self2._attempts);
120614
+ }, timeout);
120615
+ if (this._options.unref) {
120616
+ this._timer.unref();
120617
+ }
120618
+ return true;
120619
+ };
120620
+ RetryOperation.prototype.attempt = function(fn, timeoutOps) {
120621
+ this._fn = fn;
120622
+ if (timeoutOps) {
120623
+ if (timeoutOps.timeout) {
120624
+ this._operationTimeout = timeoutOps.timeout;
120625
+ }
120626
+ if (timeoutOps.cb) {
120627
+ this._operationTimeoutCb = timeoutOps.cb;
120628
+ }
120629
+ }
120630
+ var self2 = this;
120631
+ if (this._operationTimeoutCb) {
120632
+ this._timeout = setTimeout(function() {
120633
+ self2._operationTimeoutCb();
120634
+ }, self2._operationTimeout);
120635
+ }
120636
+ this._operationStart = (/* @__PURE__ */ new Date()).getTime();
120637
+ this._fn(this._attempts);
120638
+ };
120639
+ RetryOperation.prototype.try = function(fn) {
120640
+ console.log("Using RetryOperation.try() is deprecated");
120641
+ this.attempt(fn);
120642
+ };
120643
+ RetryOperation.prototype.start = function(fn) {
120644
+ console.log("Using RetryOperation.start() is deprecated");
120645
+ this.attempt(fn);
120646
+ };
120647
+ RetryOperation.prototype.start = RetryOperation.prototype.try;
120648
+ RetryOperation.prototype.errors = function() {
120649
+ return this._errors;
120650
+ };
120651
+ RetryOperation.prototype.attempts = function() {
120652
+ return this._attempts;
120653
+ };
120654
+ RetryOperation.prototype.mainError = function() {
120655
+ if (this._errors.length === 0) {
120656
+ return null;
120657
+ }
120658
+ var counts = {};
120659
+ var mainError = null;
120660
+ var mainErrorCount = 0;
120661
+ for (var i2 = 0; i2 < this._errors.length; i2++) {
120662
+ var error = this._errors[i2];
120663
+ var message = error.message;
120664
+ var count = (counts[message] || 0) + 1;
120665
+ counts[message] = count;
120666
+ if (count >= mainErrorCount) {
120667
+ mainError = error;
120668
+ mainErrorCount = count;
120669
+ }
120670
+ }
120671
+ return mainError;
120672
+ };
120673
+ }
120674
+ });
120675
+
120676
+ // ../../node_modules/@wix/app-cloud-uploader/node_modules/retry/lib/retry.js
120677
+ var require_retry3 = __commonJS({
120678
+ "../../node_modules/@wix/app-cloud-uploader/node_modules/retry/lib/retry.js"(exports) {
120679
+ "use strict";
120680
+ init_esm_shims();
120681
+ var RetryOperation = require_retry_operation2();
120682
+ exports.operation = function(options) {
120683
+ var timeouts = exports.timeouts(options);
120684
+ return new RetryOperation(timeouts, {
120685
+ forever: options && (options.forever || options.retries === Infinity),
120686
+ unref: options && options.unref,
120687
+ maxRetryTime: options && options.maxRetryTime
120688
+ });
120689
+ };
120690
+ exports.timeouts = function(options) {
120691
+ if (options instanceof Array) {
120692
+ return [].concat(options);
120693
+ }
120694
+ var opts = {
120695
+ retries: 10,
120696
+ factor: 2,
120697
+ minTimeout: 1 * 1e3,
120698
+ maxTimeout: Infinity,
120699
+ randomize: false
120700
+ };
120701
+ for (var key in options) {
120702
+ opts[key] = options[key];
120703
+ }
120704
+ if (opts.minTimeout > opts.maxTimeout) {
120705
+ throw new Error("minTimeout is greater than maxTimeout");
120706
+ }
120707
+ var timeouts = [];
120708
+ for (var i2 = 0; i2 < opts.retries; i2++) {
120709
+ timeouts.push(this.createTimeout(i2, opts));
120710
+ }
120711
+ if (options && options.forever && !timeouts.length) {
120712
+ timeouts.push(this.createTimeout(i2, opts));
120713
+ }
120714
+ timeouts.sort(function(a2, b) {
120715
+ return a2 - b;
120716
+ });
120717
+ return timeouts;
120718
+ };
120719
+ exports.createTimeout = function(attempt, opts) {
120720
+ var random = opts.randomize ? Math.random() + 1 : 1;
120721
+ var timeout = Math.round(random * Math.max(opts.minTimeout, 1) * Math.pow(opts.factor, attempt));
120722
+ timeout = Math.min(timeout, opts.maxTimeout);
120723
+ return timeout;
120724
+ };
120725
+ exports.wrap = function(obj, options, methods) {
120726
+ if (options instanceof Array) {
120727
+ methods = options;
120728
+ options = null;
120729
+ }
120730
+ if (!methods) {
120731
+ methods = [];
120732
+ for (var key in obj) {
120733
+ if (typeof obj[key] === "function") {
120734
+ methods.push(key);
120735
+ }
120736
+ }
120737
+ }
120738
+ for (var i2 = 0; i2 < methods.length; i2++) {
120739
+ var method = methods[i2];
120740
+ var original = obj[method];
120741
+ obj[method] = function retryWrapper(original2) {
120742
+ var op = exports.operation(options);
120743
+ var args = Array.prototype.slice.call(arguments, 1);
120744
+ var callback = args.pop();
120745
+ args.push(function(err) {
120746
+ if (op.retry(err)) {
120747
+ return;
120748
+ }
120749
+ if (err) {
120750
+ arguments[0] = op.mainError();
120751
+ }
120752
+ callback.apply(this, arguments);
120753
+ });
120754
+ op.attempt(function() {
120755
+ original2.apply(obj, args);
120756
+ });
120757
+ }.bind(obj, original);
120758
+ obj[method].options = options;
120759
+ }
120760
+ };
120761
+ }
120762
+ });
120763
+
120764
+ // ../../node_modules/@wix/app-cloud-uploader/node_modules/retry/index.js
120765
+ var require_retry4 = __commonJS({
120766
+ "../../node_modules/@wix/app-cloud-uploader/node_modules/retry/index.js"(exports, module2) {
120767
+ "use strict";
120768
+ init_esm_shims();
120769
+ module2.exports = require_retry3();
120770
+ }
120771
+ });
120772
+
120539
120773
  // ../../node_modules/delayed-stream/lib/delayed_stream.js
120540
120774
  var require_delayed_stream = __commonJS({
120541
120775
  "../../node_modules/delayed-stream/lib/delayed_stream.js"(exports, module2) {
@@ -138820,7 +139054,7 @@ var require_chokidar = __commonJS({
138820
139054
  var package_default = {
138821
139055
  name: "@wix/cli-app",
138822
139056
  description: "CLI tool for Wix apps",
138823
- version: "1.1.82",
139057
+ version: "1.1.83",
138824
139058
  author: "Amit Dahan",
138825
139059
  dependencies: {
138826
139060
  esbuild: "^0.21.3",
@@ -138834,15 +139068,15 @@ var package_default = {
138834
139068
  "@types/react": "^18.3.3",
138835
139069
  "@types/semver": "^7.5.8",
138836
139070
  "@wix/ambassador-blocks-v1-application-structure": "^1.0.3",
138837
- "@wix/ambassador-blocks-v1-blocks-app": "^1.0.57",
139071
+ "@wix/ambassador-blocks-v1-blocks-app": "^1.0.58",
138838
139072
  "@wix/ambassador-cli-site-override-service-v1-site-override": "^1.0.7",
138839
139073
  "@wix/ambassador-ctp-app-cloud-backend-service-v1-app-cloud-backend-deployment": "^1.0.8",
138840
139074
  "@wix/ambassador-ctp-gradual-rollout-v1-app-config": "^1.0.73",
138841
- "@wix/ambassador-devcenter-apps-v1-app": "^1.0.594",
138842
- "@wix/ambassador-devcenter-components-v1-component": "^1.0.455",
139075
+ "@wix/ambassador-devcenter-apps-v1-app": "^1.0.595",
139076
+ "@wix/ambassador-devcenter-components-v1-component": "^1.0.457",
138843
139077
  "@wix/app-cloud-uploader": "^1.18.0",
138844
139078
  "@wix/arm-client": "workspace:*",
138845
- "@wix/bi-logger-dev-tools-data": "^1.106.0",
139079
+ "@wix/bi-logger-dev-tools-data": "^1.111.0",
138846
139080
  "@wix/cli-app-definitions": "workspace:*",
138847
139081
  "@wix/cli-app-manifest": "workspace:*",
138848
139082
  "@wix/cli-app-platform-sdk": "workspace:*",
@@ -139198,6 +139432,7 @@ var CliUserErrorCode = (0, import_variant.variant)({
139198
139432
  FailedToApplySiteFsManagerFsUpdates: {},
139199
139433
  FailedToApplySiteFsManagerExternalUpdates: {},
139200
139434
  CreateVersionDeprecated: (0, import_variant.fields)(),
139435
+ ServeDeprecated: (0, import_variant.fields)(),
139201
139436
  CannotFindConfigReferencedAsset: (0, import_variant.fields)(),
139202
139437
  CannotReleaseApplicationInReview: {},
139203
139438
  FailedToCreateIntellisenseAdapter: {},
@@ -139208,7 +139443,8 @@ var CliUserErrorCode = (0, import_variant.variant)({
139208
139443
  DeploymentPipelineFailed: (0, import_variant.fields)(),
139209
139444
  InsufficientNonInterractiveReleaseParameters: {},
139210
139445
  AppNameArgumentIsInvalid: (0, import_variant.fields)(),
139211
- CannotReleaseMinorInNoninteractive: {}
139446
+ CannotReleaseMinorInNoninteractive: {},
139447
+ SiteComponentConfigNotFound: (0, import_variant.fields)()
139212
139448
  });
139213
139449
  var CliErrorCode = (0, import_variant.variant)({
139214
139450
  ...CliSystemErrorCode,
@@ -148475,7 +148711,7 @@ init_esm_shims();
148475
148711
 
148476
148712
  // ../cli-ui-kit/src/components/ConfirmInput/ConfirmInput.tsx
148477
148713
  init_esm_shims();
148478
- var import_react46 = __toESM(require_react(), 1);
148714
+ var import_react45 = __toESM(require_react(), 1);
148479
148715
  var import_variant6 = __toESM(require_lib(), 1);
148480
148716
 
148481
148717
  // ../cli-ui-kit/src/components/Text.tsx
@@ -148522,7 +148758,7 @@ var InputState = (0, import_variant4.variant)(
148522
148758
 
148523
148759
  // ../cli-ui-kit/src/components/InputLabel.tsx
148524
148760
  init_esm_shims();
148525
- var import_react42 = __toESM(require_react(), 1);
148761
+ var import_react41 = __toESM(require_react(), 1);
148526
148762
 
148527
148763
  // ../cli-ui-kit/src/icons/index.ts
148528
148764
  init_esm_shims();
@@ -148534,131 +148770,124 @@ var ErrorIcon = () => {
148534
148770
  return /* @__PURE__ */ import_react29.default.createElement(Text2, null, isUnicodeSupported() ? "\u2716" : "\xD7");
148535
148771
  };
148536
148772
 
148537
- // ../cli-ui-kit/src/icons/Info.tsx
148538
- init_esm_shims();
148539
- var import_react30 = __toESM(require_react(), 1);
148540
- var InfoIcon = () => {
148541
- return /* @__PURE__ */ import_react30.default.createElement(Text2, null, isUnicodeSupported() ? "\u2139" : "i");
148542
- };
148543
-
148544
148773
  // ../cli-ui-kit/src/icons/Pointer.tsx
148545
148774
  init_esm_shims();
148546
- var import_react31 = __toESM(require_react(), 1);
148775
+ var import_react30 = __toESM(require_react(), 1);
148547
148776
  var PointerIcon = ({ appearance }) => {
148548
148777
  switch (appearance) {
148549
148778
  case "exclamation":
148550
- return /* @__PURE__ */ import_react31.default.createElement(Text2, null, "!");
148779
+ return /* @__PURE__ */ import_react30.default.createElement(Text2, null, "!");
148551
148780
  case "triangle":
148552
- return /* @__PURE__ */ import_react31.default.createElement(Text2, null, isUnicodeSupported() ? "\u25B6" : ">");
148781
+ return /* @__PURE__ */ import_react30.default.createElement(Text2, null, isUnicodeSupported() ? "\u25B6" : ">");
148553
148782
  default:
148554
- return /* @__PURE__ */ import_react31.default.createElement(Text2, null, isUnicodeSupported() ? "\u276F" : ">");
148783
+ return /* @__PURE__ */ import_react30.default.createElement(Text2, null, isUnicodeSupported() ? "\u276F" : ">");
148555
148784
  }
148556
148785
  };
148557
148786
 
148558
148787
  // ../cli-ui-kit/src/icons/PointerSmall.tsx
148559
148788
  init_esm_shims();
148560
- var import_react32 = __toESM(require_react(), 1);
148789
+ var import_react31 = __toESM(require_react(), 1);
148561
148790
  var PointerSmallIcon = () => {
148562
- return /* @__PURE__ */ import_react32.default.createElement(Text2, null, isUnicodeSupported() ? "\u203A" : "\xBB");
148791
+ return /* @__PURE__ */ import_react31.default.createElement(Text2, null, isUnicodeSupported() ? "\u203A" : "\xBB");
148563
148792
  };
148564
148793
 
148565
148794
  // ../cli-ui-kit/src/icons/QuestionMark.tsx
148566
148795
  init_esm_shims();
148567
- var import_react33 = __toESM(require_react(), 1);
148796
+ var import_react32 = __toESM(require_react(), 1);
148568
148797
  var QuestionMarkIcon = () => {
148569
- return /* @__PURE__ */ import_react33.default.createElement(Text2, null, "?");
148798
+ return /* @__PURE__ */ import_react32.default.createElement(Text2, null, "?");
148570
148799
  };
148571
148800
 
148572
148801
  // ../cli-ui-kit/src/icons/Radio.tsx
148573
148802
  init_esm_shims();
148574
- var import_react34 = __toESM(require_react(), 1);
148803
+ var import_react33 = __toESM(require_react(), 1);
148575
148804
  var RadioIcon = ({ selected }) => {
148576
148805
  let content = isUnicodeSupported() ? "\u25CB" : "o";
148577
148806
  if (selected) {
148578
148807
  content = isUnicodeSupported() ? "\u25CF" : "\u2022";
148579
148808
  }
148580
- return /* @__PURE__ */ import_react34.default.createElement(Text2, null, content);
148809
+ return /* @__PURE__ */ import_react33.default.createElement(Text2, null, content);
148581
148810
  };
148582
148811
 
148583
148812
  // ../cli-ui-kit/src/icons/Success.tsx
148584
148813
  init_esm_shims();
148585
- var import_react35 = __toESM(require_react(), 1);
148814
+ var import_react34 = __toESM(require_react(), 1);
148586
148815
  var SuccessIcon = () => {
148587
- return /* @__PURE__ */ import_react35.default.createElement(Text2, null, isUnicodeSupported() ? "\u2714" : "\u221A");
148816
+ return /* @__PURE__ */ import_react34.default.createElement(Text2, null, isUnicodeSupported() ? "\u2714" : "\u221A");
148588
148817
  };
148589
148818
 
148590
148819
  // ../cli-ui-kit/src/icons/Warning.tsx
148591
148820
  init_esm_shims();
148592
- var import_react36 = __toESM(require_react(), 1);
148821
+ var import_react35 = __toESM(require_react(), 1);
148593
148822
  var WarningIcon = () => {
148594
- return /* @__PURE__ */ import_react36.default.createElement(Text2, null, isUnicodeSupported() ? "\u26A0" : "\u203C");
148823
+ return /* @__PURE__ */ import_react35.default.createElement(Text2, null, isUnicodeSupported() ? "\u26A0" : "\u203C");
148595
148824
  };
148596
148825
 
148597
148826
  // ../cli-ui-kit/src/icons/Insight.tsx
148598
148827
  init_esm_shims();
148599
- var import_react37 = __toESM(require_react(), 1);
148828
+ var import_react36 = __toESM(require_react(), 1);
148600
148829
  var InsightIcon = () => {
148601
- return /* @__PURE__ */ import_react37.default.createElement(Text2, null, isUnicodeSupported() ? "\u{1F4A1}" : "!");
148830
+ return /* @__PURE__ */ import_react36.default.createElement(Text2, null, isUnicodeSupported() ? "\u{1F4A1}" : "!");
148602
148831
  };
148603
148832
 
148604
148833
  // ../cli-ui-kit/src/icons/Learn.tsx
148605
148834
  init_esm_shims();
148606
- var import_react38 = __toESM(require_react(), 1);
148835
+ var import_react37 = __toESM(require_react(), 1);
148607
148836
  var Learn = () => {
148608
- return /* @__PURE__ */ import_react38.default.createElement(Text2, null, isUnicodeSupported() ? "\u{1F4DA}" : ">");
148837
+ return /* @__PURE__ */ import_react37.default.createElement(Text2, null, isUnicodeSupported() ? "\u{1F4DA}" : ">");
148609
148838
  };
148610
148839
 
148611
148840
  // ../cli-ui-kit/src/icons/Cart.tsx
148612
148841
  init_esm_shims();
148613
- var import_react39 = __toESM(require_react(), 1);
148842
+ var import_react38 = __toESM(require_react(), 1);
148614
148843
  var Cart = () => {
148615
- return /* @__PURE__ */ import_react39.default.createElement(Text2, null, isUnicodeSupported() ? "\u{1F6D2}" : ">");
148844
+ return /* @__PURE__ */ import_react38.default.createElement(Text2, null, isUnicodeSupported() ? "\u{1F6D2}" : ">");
148616
148845
  };
148617
148846
 
148618
148847
  // ../cli-ui-kit/src/icons/Statistics.tsx
148619
148848
  init_esm_shims();
148620
- var import_react40 = __toESM(require_react(), 1);
148849
+ var import_react39 = __toESM(require_react(), 1);
148621
148850
  var Statistics = () => {
148622
- return /* @__PURE__ */ import_react40.default.createElement(Text2, null, isUnicodeSupported() ? "\u{1F4CA}" : ">");
148851
+ return /* @__PURE__ */ import_react39.default.createElement(Text2, null, isUnicodeSupported() ? "\u{1F4CA}" : ">");
148623
148852
  };
148624
148853
 
148625
148854
  // ../cli-ui-kit/src/icons/Rocket.tsx
148626
148855
  init_esm_shims();
148627
- var import_react41 = __toESM(require_react(), 1);
148856
+ var import_react40 = __toESM(require_react(), 1);
148628
148857
  var Rocket = () => {
148629
- return /* @__PURE__ */ import_react41.default.createElement(Text2, null, isUnicodeSupported() ? "\u{1F680}" : ">");
148858
+ return /* @__PURE__ */ import_react40.default.createElement(Text2, null, isUnicodeSupported() ? "\u{1F680}" : ">");
148630
148859
  };
148631
148860
 
148632
148861
  // ../cli-ui-kit/src/components/InputLabel.tsx
148633
148862
  var InputLabel = ({ children, icon }) => {
148634
- return /* @__PURE__ */ import_react42.default.createElement(Text2, null, icon ?? /* @__PURE__ */ import_react42.default.createElement(Text2, { skin: "question", bold: true }, /* @__PURE__ */ import_react42.default.createElement(QuestionMarkIcon, null)), " ", /* @__PURE__ */ import_react42.default.createElement(Text2, { skin: "question", bold: true }, children));
148863
+ return /* @__PURE__ */ import_react41.default.createElement(Text2, null, icon ?? /* @__PURE__ */ import_react41.default.createElement(Text2, { skin: "question", bold: true }, /* @__PURE__ */ import_react41.default.createElement(QuestionMarkIcon, null)), " ", /* @__PURE__ */ import_react41.default.createElement(Text2, { skin: "question", bold: true }, children));
148635
148864
  };
148636
148865
 
148637
148866
  // ../cli-ui-kit/src/components/ConfirmInput/Placeholder.tsx
148638
148867
  init_esm_shims();
148639
- var import_react43 = __toESM(require_react(), 1);
148868
+ var import_react42 = __toESM(require_react(), 1);
148640
148869
  var import_variant5 = __toESM(require_lib(), 1);
148641
148870
  var Placeholder = ({ inputState }) => {
148642
148871
  return (0, import_variant5.match)(inputState, {
148643
- NotSubmitted: ({ value: value2 }) => /* @__PURE__ */ import_react43.default.createElement(Text2, { skin: "secondary" }, "(", value2 ? "Y/n" : "y/N", ")"),
148644
- Submitted: ({ value: value2 }) => /* @__PURE__ */ import_react43.default.createElement(Text2, null, value2 ? "Yes" : "No")
148872
+ NotSubmitted: ({ value: value2 }) => /* @__PURE__ */ import_react42.default.createElement(Text2, { skin: "secondary" }, "(", value2 ? "Y/n" : "y/N", ")"),
148873
+ Submitted: ({ value: value2 }) => /* @__PURE__ */ import_react42.default.createElement(Text2, null, value2 ? "Yes" : "No")
148645
148874
  });
148646
148875
  };
148647
148876
 
148648
148877
  // ../cli-ui-kit/src/components/ConfirmInput/Input.tsx
148649
148878
  init_esm_shims();
148650
- var import_react45 = __toESM(require_react(), 1);
148879
+ var import_react44 = __toESM(require_react(), 1);
148651
148880
 
148652
148881
  // ../../node_modules/ink-text-input/build/index.js
148653
148882
  init_esm_shims();
148654
- var import_react44 = __toESM(require_react(), 1);
148883
+ var import_react43 = __toESM(require_react(), 1);
148655
148884
  function TextInput({ value: originalValue, placeholder = "", focus = true, mask, highlightPastedText = false, showCursor = true, onChange, onSubmit }) {
148656
- const [state, setState] = (0, import_react44.useState)({
148885
+ const [state, setState] = (0, import_react43.useState)({
148657
148886
  cursorOffset: (originalValue || "").length,
148658
148887
  cursorWidth: 0
148659
148888
  });
148660
148889
  const { cursorOffset, cursorWidth } = state;
148661
- (0, import_react44.useEffect)(() => {
148890
+ (0, import_react43.useEffect)(() => {
148662
148891
  setState((previousState) => {
148663
148892
  if (!focus || !showCursor) {
148664
148893
  return previousState;
@@ -148736,13 +148965,13 @@ function TextInput({ value: originalValue, placeholder = "", focus = true, mask,
148736
148965
  onChange(nextValue);
148737
148966
  }
148738
148967
  }, { isActive: focus });
148739
- return import_react44.default.createElement(Text, null, placeholder ? value2.length > 0 ? renderedValue : renderedPlaceholder : renderedValue);
148968
+ return import_react43.default.createElement(Text, null, placeholder ? value2.length > 0 ? renderedValue : renderedPlaceholder : renderedValue);
148740
148969
  }
148741
148970
  var build_default = TextInput;
148742
148971
 
148743
148972
  // ../cli-ui-kit/src/components/ConfirmInput/Input.tsx
148744
148973
  var Input = ({ initialValue, onSubmit }) => {
148745
- const handleChange = (0, import_react45.useCallback)(
148974
+ const handleChange = (0, import_react44.useCallback)(
148746
148975
  (rawKey) => {
148747
148976
  const key = rawKey.toLowerCase();
148748
148977
  if (["y", "n"].includes(key)) {
@@ -148751,7 +148980,7 @@ var Input = ({ initialValue, onSubmit }) => {
148751
148980
  },
148752
148981
  [onSubmit]
148753
148982
  );
148754
- return /* @__PURE__ */ import_react45.default.createElement(
148983
+ return /* @__PURE__ */ import_react44.default.createElement(
148755
148984
  build_default,
148756
148985
  {
148757
148986
  value: "",
@@ -148770,22 +148999,22 @@ var ConfirmInput = ({
148770
148999
  isActive,
148771
149000
  onSubmit
148772
149001
  }) => {
148773
- const [inputState, setInputState] = (0, import_react46.useState)(
149002
+ const [inputState, setInputState] = (0, import_react45.useState)(
148774
149003
  () => InputState.NotSubmitted(initialValue)
148775
149004
  );
148776
- const handleSubmit = (0, import_react46.useCallback)(
149005
+ const handleSubmit = (0, import_react45.useCallback)(
148777
149006
  (value2) => {
148778
149007
  setInputState(InputState.Submitted(value2));
148779
149008
  onSubmit(value2);
148780
149009
  },
148781
149010
  [onSubmit]
148782
149011
  );
148783
- (0, import_react46.useEffect)(() => {
149012
+ (0, import_react45.useEffect)(() => {
148784
149013
  if (isActive) {
148785
149014
  setInputState(InputState.NotSubmitted(inputState.value));
148786
149015
  }
148787
149016
  }, [isActive]);
148788
- return /* @__PURE__ */ import_react46.default.createElement(Text2, null, /* @__PURE__ */ import_react46.default.createElement(InputLabel, null, label), " ", info && (0, import_variant6.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react46.default.createElement(Text2, { skin: "secondary" }, info, " "), /* @__PURE__ */ import_react46.default.createElement(Placeholder, { inputState }), (0, import_variant6.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react46.default.createElement(Input, { initialValue, onSubmit: handleSubmit }));
149017
+ return /* @__PURE__ */ import_react45.default.createElement(Text2, null, /* @__PURE__ */ import_react45.default.createElement(InputLabel, null, label), " ", info && (0, import_variant6.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react45.default.createElement(Text2, { skin: "secondary" }, info, " "), /* @__PURE__ */ import_react45.default.createElement(Placeholder, { inputState }), (0, import_variant6.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react45.default.createElement(Input, { initialValue, onSubmit: handleSubmit }));
148789
149018
  };
148790
149019
 
148791
149020
  // ../cli-ui-kit/src/components/SelectInput/index.ts
@@ -148793,7 +149022,7 @@ init_esm_shims();
148793
149022
 
148794
149023
  // ../cli-ui-kit/src/components/SelectInput/SelectInput.tsx
148795
149024
  init_esm_shims();
148796
- var import_react53 = __toESM(require_react(), 1);
149025
+ var import_react52 = __toESM(require_react(), 1);
148797
149026
  var import_variant10 = __toESM(require_lib(), 1);
148798
149027
 
148799
149028
  // ../../node_modules/ink-select-input/build/index.js
@@ -148801,7 +149030,7 @@ init_esm_shims();
148801
149030
 
148802
149031
  // ../../node_modules/ink-select-input/build/Indicator.js
148803
149032
  init_esm_shims();
148804
- var import_react47 = __toESM(require_react(), 1);
149033
+ var import_react46 = __toESM(require_react(), 1);
148805
149034
 
148806
149035
  // ../../node_modules/figures/index.js
148807
149036
  init_esm_shims();
@@ -149106,39 +149335,39 @@ var figures_default = figures;
149106
149335
 
149107
149336
  // ../../node_modules/ink-select-input/build/Indicator.js
149108
149337
  function Indicator({ isSelected = false }) {
149109
- return import_react47.default.createElement(Box_default, { marginRight: 1 }, isSelected ? import_react47.default.createElement(Text, { color: "blue" }, figures_default.pointer) : import_react47.default.createElement(Text, null, " "));
149338
+ return import_react46.default.createElement(Box_default, { marginRight: 1 }, isSelected ? import_react46.default.createElement(Text, { color: "blue" }, figures_default.pointer) : import_react46.default.createElement(Text, null, " "));
149110
149339
  }
149111
149340
  var Indicator_default = Indicator;
149112
149341
 
149113
149342
  // ../../node_modules/ink-select-input/build/Item.js
149114
149343
  init_esm_shims();
149115
- var React33 = __toESM(require_react(), 1);
149344
+ var React32 = __toESM(require_react(), 1);
149116
149345
  function Item({ isSelected = false, label }) {
149117
- return React33.createElement(Text, { color: isSelected ? "blue" : void 0 }, label);
149346
+ return React32.createElement(Text, { color: isSelected ? "blue" : void 0 }, label);
149118
149347
  }
149119
149348
  var Item_default = Item;
149120
149349
 
149121
149350
  // ../../node_modules/ink-select-input/build/SelectInput.js
149122
149351
  init_esm_shims();
149352
+ var import_react47 = __toESM(require_react(), 1);
149123
149353
  var import_react48 = __toESM(require_react(), 1);
149124
- var import_react49 = __toESM(require_react(), 1);
149125
149354
  var import_lodash = __toESM(require_lodash(), 1);
149126
149355
  var import_arr_rotate = __toESM(require_arr_rotate(), 1);
149127
149356
  function SelectInput({ items = [], isFocused = true, initialIndex = 0, indicatorComponent = Indicator_default, itemComponent = Item_default, limit: customLimit, onSelect, onHighlight }) {
149128
149357
  const hasLimit = typeof customLimit === "number" && items.length > customLimit;
149129
149358
  const limit = hasLimit ? Math.min(customLimit, items.length) : items.length;
149130
149359
  const lastIndex = limit - 1;
149131
- const [rotateIndex, setRotateIndex] = (0, import_react49.useState)(initialIndex > lastIndex ? lastIndex - initialIndex : 0);
149132
- const [selectedIndex, setSelectedIndex] = (0, import_react49.useState)(initialIndex ? initialIndex > lastIndex ? lastIndex : initialIndex : 0);
149133
- const previousItems = (0, import_react49.useRef)(items);
149134
- (0, import_react49.useEffect)(() => {
149360
+ const [rotateIndex, setRotateIndex] = (0, import_react48.useState)(initialIndex > lastIndex ? lastIndex - initialIndex : 0);
149361
+ const [selectedIndex, setSelectedIndex] = (0, import_react48.useState)(initialIndex ? initialIndex > lastIndex ? lastIndex : initialIndex : 0);
149362
+ const previousItems = (0, import_react48.useRef)(items);
149363
+ (0, import_react48.useEffect)(() => {
149135
149364
  if (!(0, import_lodash.default)(previousItems.current.map((item) => item.value), items.map((item) => item.value))) {
149136
149365
  setRotateIndex(0);
149137
149366
  setSelectedIndex(0);
149138
149367
  }
149139
149368
  previousItems.current = items;
149140
149369
  }, [items]);
149141
- use_input_default((0, import_react49.useCallback)((input, key) => {
149370
+ use_input_default((0, import_react48.useCallback)((input, key) => {
149142
149371
  if (input === "k" || key.upArrow) {
149143
149372
  const lastIndex2 = (hasLimit ? limit : items.length) - 1;
149144
149373
  const atFirstIndex = selectedIndex === 0;
@@ -149180,15 +149409,15 @@ function SelectInput({ items = [], isFocused = true, initialIndex = 0, indicator
149180
149409
  onHighlight
149181
149410
  ]), { isActive: isFocused });
149182
149411
  const slicedItems = hasLimit ? (0, import_arr_rotate.default)(items, rotateIndex).slice(0, limit) : items;
149183
- return import_react48.default.createElement(Box_default, { flexDirection: "column" }, slicedItems.map((item, index) => {
149412
+ return import_react47.default.createElement(Box_default, { flexDirection: "column" }, slicedItems.map((item, index) => {
149184
149413
  const isSelected = index === selectedIndex;
149185
149414
  return (
149186
149415
  // @ts-expect-error - `key` can't be optional but `item.value` is generic T
149187
- import_react48.default.createElement(
149416
+ import_react47.default.createElement(
149188
149417
  Box_default,
149189
149418
  { key: item.key ?? item.value },
149190
- import_react48.default.createElement(indicatorComponent, { isSelected }),
149191
- import_react48.default.createElement(itemComponent, { ...item, isSelected })
149419
+ import_react47.default.createElement(indicatorComponent, { isSelected }),
149420
+ import_react47.default.createElement(itemComponent, { ...item, isSelected })
149192
149421
  )
149193
149422
  );
149194
149423
  }));
@@ -149197,14 +149426,14 @@ var SelectInput_default = SelectInput;
149197
149426
 
149198
149427
  // ../cli-ui-kit/src/components/SelectInput/Indicator.tsx
149199
149428
  init_esm_shims();
149200
- var import_react50 = __toESM(require_react(), 1);
149429
+ var import_react49 = __toESM(require_react(), 1);
149201
149430
  var Indicator2 = ({ isSelected }) => {
149202
- return /* @__PURE__ */ import_react50.default.createElement(Box_default, { width: 2 }, /* @__PURE__ */ import_react50.default.createElement(Text2, { skin: "info" }, /* @__PURE__ */ import_react50.default.createElement(RadioIcon, { selected: isSelected })));
149431
+ return /* @__PURE__ */ import_react49.default.createElement(Box_default, { width: 2 }, /* @__PURE__ */ import_react49.default.createElement(Text2, { skin: "info" }, /* @__PURE__ */ import_react49.default.createElement(RadioIcon, { selected: isSelected })));
149203
149432
  };
149204
149433
 
149205
149434
  // ../cli-ui-kit/src/components/SelectInput/Item.tsx
149206
149435
  init_esm_shims();
149207
- var import_react51 = __toESM(require_react(), 1);
149436
+ var import_react50 = __toESM(require_react(), 1);
149208
149437
  var import_variant8 = __toESM(require_lib(), 1);
149209
149438
 
149210
149439
  // ../cli-ui-kit/src/components/SelectInput/types.ts
@@ -149222,7 +149451,7 @@ function Item2({
149222
149451
  value: { description, availability = SelectOptionAvailability.Enabled() }
149223
149452
  }) {
149224
149453
  const isDisabled = (0, import_variant8.isType)(availability, SelectOptionAvailability.Disabled);
149225
- return /* @__PURE__ */ import_react51.default.createElement(Box_default, null, /* @__PURE__ */ import_react51.default.createElement(
149454
+ return /* @__PURE__ */ import_react50.default.createElement(Box_default, null, /* @__PURE__ */ import_react50.default.createElement(
149226
149455
  Text2,
149227
149456
  {
149228
149457
  skin: isDisabled ? "secondary" : isSelected ? "info" : "standard",
@@ -149230,19 +149459,19 @@ function Item2({
149230
149459
  },
149231
149460
  label
149232
149461
  ), isSelected && (0, import_variant8.match)(availability, {
149233
- Disabled: ({ reason }) => /* @__PURE__ */ import_react51.default.createElement(Box_default, { marginLeft: 1 }, reason ? /* @__PURE__ */ import_react51.default.createElement(Text2, { skin: "warning" }, "- disabled (", reason, ")") : /* @__PURE__ */ import_react51.default.createElement(Text2, { skin: "warning" }, "- disabled")),
149234
- Enabled: () => description && /* @__PURE__ */ import_react51.default.createElement(Box_default, { marginLeft: 1 }, /* @__PURE__ */ import_react51.default.createElement(Text2, { skin: "secondary" }, "- ", description))
149462
+ Disabled: ({ reason }) => /* @__PURE__ */ import_react50.default.createElement(Box_default, { marginLeft: 1 }, reason ? /* @__PURE__ */ import_react50.default.createElement(Text2, { skin: "warning" }, "- disabled (", reason, ")") : /* @__PURE__ */ import_react50.default.createElement(Text2, { skin: "warning" }, "- disabled")),
149463
+ Enabled: () => description && /* @__PURE__ */ import_react50.default.createElement(Box_default, { marginLeft: 1 }, /* @__PURE__ */ import_react50.default.createElement(Text2, { skin: "secondary" }, "- ", description))
149235
149464
  }));
149236
149465
  }
149237
149466
 
149238
149467
  // ../cli-ui-kit/src/components/SelectInput/Placeholder.tsx
149239
149468
  init_esm_shims();
149240
- var import_react52 = __toESM(require_react(), 1);
149469
+ var import_react51 = __toESM(require_react(), 1);
149241
149470
  var import_variant9 = __toESM(require_lib(), 1);
149242
149471
  function Placeholder2({ inputState }) {
149243
149472
  return (0, import_variant9.match)(inputState, {
149244
149473
  NotSubmitted: () => null,
149245
- Submitted: ({ value: value2 }) => /* @__PURE__ */ import_react52.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react52.default.createElement(Text2, { skin: "secondary" }, /* @__PURE__ */ import_react52.default.createElement(SuccessIcon, null), " ", value2.title))
149474
+ Submitted: ({ value: value2 }) => /* @__PURE__ */ import_react51.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react51.default.createElement(Text2, { skin: "secondary" }, /* @__PURE__ */ import_react51.default.createElement(SuccessIcon, null), " ", value2.title))
149246
149475
  });
149247
149476
  }
149248
149477
 
@@ -149259,16 +149488,16 @@ function SelectInput2({
149259
149488
  if (!options.length) {
149260
149489
  throw new Error("SelectInput: options cannot be empty");
149261
149490
  }
149262
- const [inputState, setInputState] = (0, import_react53.useState)(
149491
+ const [inputState, setInputState] = (0, import_react52.useState)(
149263
149492
  () => InputState.NotSubmitted()
149264
149493
  );
149265
- const handleHighlight = (0, import_react53.useCallback)(
149494
+ const handleHighlight = (0, import_react52.useCallback)(
149266
149495
  ({ value: value2 }) => {
149267
149496
  setInputState(InputState.NotSubmitted(value2));
149268
149497
  },
149269
149498
  []
149270
149499
  );
149271
- const handleSelect = (0, import_react53.useCallback)(
149500
+ const handleSelect = (0, import_react52.useCallback)(
149272
149501
  ({ value: value2 }) => {
149273
149502
  if (!(0, import_variant10.isType)(value2.availability, SelectOptionAvailability.Disabled)) {
149274
149503
  setInputState(InputState.Submitted(value2));
@@ -149277,7 +149506,7 @@ function SelectInput2({
149277
149506
  },
149278
149507
  [onSubmit]
149279
149508
  );
149280
- const items = (0, import_react53.useMemo)(
149509
+ const items = (0, import_react52.useMemo)(
149281
149510
  () => options.map((option) => ({
149282
149511
  key: typeof option.value === "string" ? option.value : option.key,
149283
149512
  label: option.title,
@@ -149285,12 +149514,12 @@ function SelectInput2({
149285
149514
  })),
149286
149515
  [options]
149287
149516
  );
149288
- (0, import_react53.useEffect)(() => {
149517
+ (0, import_react52.useEffect)(() => {
149289
149518
  if (isActive) {
149290
149519
  setInputState(InputState.NotSubmitted(inputState.value));
149291
149520
  }
149292
149521
  }, [isActive]);
149293
- return /* @__PURE__ */ import_react53.default.createElement(import_react53.default.Fragment, null, /* @__PURE__ */ import_react53.default.createElement(Box_default, { marginLeft: -2, marginBottom: 1 }, /* @__PURE__ */ import_react53.default.createElement(Text2, null, /* @__PURE__ */ import_react53.default.createElement(InputLabel, null, label), " ", info && (0, import_variant10.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react53.default.createElement(Text2, { skin: "secondary" }, info))), /* @__PURE__ */ import_react53.default.createElement(Placeholder2, { inputState }), (0, import_variant10.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react53.default.createElement(Box_default, null, /* @__PURE__ */ import_react53.default.createElement(
149522
+ return /* @__PURE__ */ import_react52.default.createElement(import_react52.default.Fragment, null, /* @__PURE__ */ import_react52.default.createElement(Box_default, { marginLeft: -2, marginBottom: 1 }, /* @__PURE__ */ import_react52.default.createElement(Text2, null, /* @__PURE__ */ import_react52.default.createElement(InputLabel, null, label), " ", info && (0, import_variant10.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react52.default.createElement(Text2, { skin: "secondary" }, info))), /* @__PURE__ */ import_react52.default.createElement(Placeholder2, { inputState }), (0, import_variant10.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react52.default.createElement(Box_default, null, /* @__PURE__ */ import_react52.default.createElement(
149294
149523
  SelectInput_default,
149295
149524
  {
149296
149525
  items,
@@ -149306,20 +149535,20 @@ function SelectInput2({
149306
149535
 
149307
149536
  // ../cli-ui-kit/src/components/SelectInput/SelectGroupsInput.tsx
149308
149537
  init_esm_shims();
149309
- var import_react58 = __toESM(require_react(), 1);
149538
+ var import_react57 = __toESM(require_react(), 1);
149310
149539
  var import_variant11 = __toESM(require_lib(), 1);
149311
149540
 
149312
149541
  // ../cli-ui-kit/src/components/TextInput/Input.tsx
149313
149542
  init_esm_shims();
149314
- var import_react54 = __toESM(require_react(), 1);
149543
+ var import_react53 = __toESM(require_react(), 1);
149315
149544
  var Input2 = ({
149316
149545
  onSubmit,
149317
149546
  onChange,
149318
149547
  placeholder,
149319
149548
  showCursor
149320
149549
  }) => {
149321
- const [currentValue, setCurrentValue] = (0, import_react54.useState)("");
149322
- return /* @__PURE__ */ import_react54.default.createElement(
149550
+ const [currentValue, setCurrentValue] = (0, import_react53.useState)("");
149551
+ return /* @__PURE__ */ import_react53.default.createElement(
149323
149552
  build_default,
149324
149553
  {
149325
149554
  showCursor,
@@ -149342,7 +149571,7 @@ var Input2 = ({
149342
149571
 
149343
149572
  // ../cli-ui-kit/src/components/SelectInput/GroupsList.tsx
149344
149573
  init_esm_shims();
149345
- var import_react57 = __toESM(require_react(), 1);
149574
+ var import_react56 = __toESM(require_react(), 1);
149346
149575
 
149347
149576
  // ../cli-ui-kit/src/components/SelectInput/helpers.tsx
149348
149577
  init_esm_shims();
@@ -149465,7 +149694,7 @@ function getVisibleListItems(staringIndex, listItems, limit, reverse) {
149465
149694
 
149466
149695
  // ../cli-ui-kit/src/components/Scroll.tsx
149467
149696
  init_esm_shims();
149468
- var import_react55 = __toESM(require_react(), 1);
149697
+ var import_react54 = __toESM(require_react(), 1);
149469
149698
  var SCROLL_SYMBOL = "\u2588";
149470
149699
  var Scroll = ({
149471
149700
  height,
@@ -149483,7 +149712,7 @@ var Scroll = ({
149483
149712
  const filledEndIndex = filledStartIndex + filledAmount - 1;
149484
149713
  for (let i2 = 0; i2 < height; i2++) {
149485
149714
  scroll.push(
149486
- /* @__PURE__ */ import_react55.default.createElement(
149715
+ /* @__PURE__ */ import_react54.default.createElement(
149487
149716
  Text,
149488
149717
  {
149489
149718
  color: i2 >= filledStartIndex && i2 <= filledEndIndex ? "white" : "gray",
@@ -149498,7 +149727,7 @@ var Scroll = ({
149498
149727
 
149499
149728
  // ../cli-ui-kit/src/components/SelectInput/Highlighter.tsx
149500
149729
  init_esm_shims();
149501
- var import_react56 = __toESM(require_react(), 1);
149730
+ var import_react55 = __toESM(require_react(), 1);
149502
149731
  var Highlighter = ({ pattern, text }) => {
149503
149732
  if (!pattern) {
149504
149733
  return text;
@@ -149512,7 +149741,7 @@ var Highlighter = ({ pattern, text }) => {
149512
149741
  hightlightMap[i2] = 1;
149513
149742
  }
149514
149743
  }
149515
- return hightlightMap.map((flag, index) => /* @__PURE__ */ import_react56.default.createElement(Text2, { key: index, skin: flag ? "secondary" : "standard" }, text[index]));
149744
+ return hightlightMap.map((flag, index) => /* @__PURE__ */ import_react55.default.createElement(Text2, { key: index, skin: flag ? "secondary" : "standard" }, text[index]));
149516
149745
  };
149517
149746
 
149518
149747
  // ../cli-ui-kit/src/components/SelectInput/GroupsList.tsx
@@ -149600,7 +149829,7 @@ function GroupsList({
149600
149829
  width,
149601
149830
  maxHeight: maxHeightProp
149602
149831
  }) {
149603
- const [state, dispatch] = (0, import_react57.useReducer)(reducer, {
149832
+ const [state, dispatch] = (0, import_react56.useReducer)(reducer, {
149604
149833
  listItems: [],
149605
149834
  visibleItems: [],
149606
149835
  currentIndex: 0,
@@ -149608,20 +149837,20 @@ function GroupsList({
149608
149837
  maxHeight: maxHeightProp
149609
149838
  });
149610
149839
  const { listItems, visibleItems, currentIndex, maxHeight, totalRowCounts } = state;
149611
- (0, import_react57.useEffect)(() => {
149840
+ (0, import_react56.useEffect)(() => {
149612
149841
  dispatch({
149613
149842
  type: "REFRESH" /* REFRESH */,
149614
149843
  payload: listItemsProp
149615
149844
  });
149616
149845
  }, [listItemsProp]);
149617
- (0, import_react57.useEffect)(() => {
149846
+ (0, import_react56.useEffect)(() => {
149618
149847
  dispatch({
149619
149848
  type: "CHANGE_MAX_HEIGHT" /* CHANGE_MAX_HEIGHT */,
149620
149849
  payload: maxHeightProp
149621
149850
  });
149622
149851
  }, [maxHeightProp]);
149623
149852
  use_input_default(
149624
- (0, import_react57.useCallback)(
149853
+ (0, import_react56.useCallback)(
149625
149854
  (input, key) => {
149626
149855
  if (key.upArrow) {
149627
149856
  if (currentIndex > 0) {
@@ -149662,7 +149891,7 @@ function GroupsList({
149662
149891
  );
149663
149892
  const shouldShowScroll = !hideScroll && totalRowCounts > maxHeight && visibleItems.length;
149664
149893
  const viewHeight = Math.min(totalRowCounts, maxHeight);
149665
- return /* @__PURE__ */ import_react57.default.createElement(
149894
+ return /* @__PURE__ */ import_react56.default.createElement(
149666
149895
  Box_default,
149667
149896
  {
149668
149897
  height: viewHeight,
@@ -149670,33 +149899,33 @@ function GroupsList({
149670
149899
  justifyContent: "space-between",
149671
149900
  width: width ?? "100%"
149672
149901
  },
149673
- /* @__PURE__ */ import_react57.default.createElement(Box_default, { flexDirection: "column", height: viewHeight }, visibleItems.reduce(
149902
+ /* @__PURE__ */ import_react56.default.createElement(Box_default, { flexDirection: "column", height: viewHeight }, visibleItems.reduce(
149674
149903
  (acc, { group, groupIndex, item, itemIndex }, index) => {
149675
149904
  const shouldShowGroupLabel = index === 0 || groupIndex !== visibleItems.at(index - 1)?.groupIndex;
149676
149905
  if (shouldShowGroupLabel) {
149677
149906
  acc.push(
149678
- /* @__PURE__ */ import_react57.default.createElement(
149907
+ /* @__PURE__ */ import_react56.default.createElement(
149679
149908
  Box_default,
149680
149909
  {
149681
149910
  key: `group-${groupIndex}`,
149682
149911
  paddingTop: index === 0 ? 0 : GROUP_PADDING
149683
149912
  },
149684
- /* @__PURE__ */ import_react57.default.createElement(Text2, { bold: true, underline: true }, /* @__PURE__ */ import_react57.default.createElement(
149913
+ /* @__PURE__ */ import_react56.default.createElement(Text2, { bold: true, underline: true }, /* @__PURE__ */ import_react56.default.createElement(
149685
149914
  Highlighter,
149686
149915
  {
149687
149916
  pattern: highlightPattern,
149688
149917
  text: group.title
149689
149918
  }
149690
149919
  )),
149691
- group.description && /* @__PURE__ */ import_react57.default.createElement(Box_default, { marginLeft: 1 }, group.description)
149920
+ group.description && /* @__PURE__ */ import_react56.default.createElement(Box_default, { marginLeft: 1 }, group.description)
149692
149921
  )
149693
149922
  );
149694
149923
  }
149695
149924
  acc.push(
149696
- /* @__PURE__ */ import_react57.default.createElement(Box_default, { key: `item-${itemIndex}`, marginLeft: 1 }, /* @__PURE__ */ import_react57.default.createElement(Indicator2, { isSelected: itemIndex === currentIndex }), /* @__PURE__ */ import_react57.default.createElement(
149925
+ /* @__PURE__ */ import_react56.default.createElement(Box_default, { key: `item-${itemIndex}`, marginLeft: 1 }, /* @__PURE__ */ import_react56.default.createElement(Indicator2, { isSelected: itemIndex === currentIndex }), /* @__PURE__ */ import_react56.default.createElement(
149697
149926
  Item2,
149698
149927
  {
149699
- label: /* @__PURE__ */ import_react57.default.createElement(Highlighter, { pattern: highlightPattern, text: item.title }),
149928
+ label: /* @__PURE__ */ import_react56.default.createElement(Highlighter, { pattern: highlightPattern, text: item.title }),
149700
149929
  isSelected: itemIndex === currentIndex,
149701
149930
  value: item
149702
149931
  }
@@ -149706,7 +149935,7 @@ function GroupsList({
149706
149935
  },
149707
149936
  []
149708
149937
  )),
149709
- shouldShowScroll ? /* @__PURE__ */ import_react57.default.createElement(Box_default, { flexDirection: "column", height: viewHeight }, /* @__PURE__ */ import_react57.default.createElement(
149938
+ shouldShowScroll ? /* @__PURE__ */ import_react56.default.createElement(Box_default, { flexDirection: "column", height: viewHeight }, /* @__PURE__ */ import_react56.default.createElement(
149710
149939
  Scroll,
149711
149940
  {
149712
149941
  height: viewHeight,
@@ -149718,7 +149947,7 @@ function GroupsList({
149718
149947
  }
149719
149948
 
149720
149949
  // ../cli-ui-kit/src/components/SelectInput/SelectGroupsInput.tsx
149721
- var DEFAULT_MAX_HEIGHT = 10;
149950
+ var DEFAULT_MAX_HEIGHT = 20;
149722
149951
  function SelectGroupsInput({
149723
149952
  label,
149724
149953
  info,
@@ -149733,11 +149962,11 @@ function SelectGroupsInput({
149733
149962
  if (!groups.length) {
149734
149963
  throw new Error("SelectGroupsInput: groups cannot be empty");
149735
149964
  }
149736
- const [inputState, setInputState] = (0, import_react58.useState)(
149965
+ const [inputState, setInputState] = (0, import_react57.useState)(
149737
149966
  () => value2 ?? InputState.NotSubmitted(placeholder)
149738
149967
  );
149739
- const [searchRegExp, setSearchRegExp] = (0, import_react58.useState)();
149740
- const filteredGroups = (0, import_react58.useMemo)(() => {
149968
+ const [searchRegExp, setSearchRegExp] = (0, import_react57.useState)();
149969
+ const filteredGroups = (0, import_react57.useMemo)(() => {
149741
149970
  if (!searchRegExp) {
149742
149971
  return groups;
149743
149972
  }
@@ -149755,11 +149984,11 @@ function SelectGroupsInput({
149755
149984
  return acc;
149756
149985
  }, []);
149757
149986
  }, [groups, searchRegExp]);
149758
- const listItems = (0, import_react58.useMemo)(
149987
+ const listItems = (0, import_react57.useMemo)(
149759
149988
  () => getListItems(filteredGroups),
149760
149989
  [filteredGroups]
149761
149990
  );
149762
- const handleItemSelection = (0, import_react58.useCallback)(
149991
+ const handleItemSelection = (0, import_react57.useCallback)(
149763
149992
  (selectedItem) => {
149764
149993
  if (!(0, import_variant11.isType)(selectedItem.availability, SelectOptionAvailability.Disabled)) {
149765
149994
  setInputState(InputState.Submitted(selectedItem));
@@ -149768,12 +149997,12 @@ function SelectGroupsInput({
149768
149997
  },
149769
149998
  [onSubmit]
149770
149999
  );
149771
- (0, import_react58.useEffect)(() => {
150000
+ (0, import_react57.useEffect)(() => {
149772
150001
  if (value2) {
149773
150002
  setInputState(value2);
149774
150003
  }
149775
150004
  }, [value2, setInputState]);
149776
- const handleSearchPhraseChange = (0, import_react58.useCallback)((searchPhrase) => {
150005
+ const handleSearchPhraseChange = (0, import_react57.useCallback)((searchPhrase) => {
149777
150006
  const escapedSearchPhrase = searchPhrase.replaceAll(
149778
150007
  /([.?*+^$[\]\\(){}|-])/g,
149779
150008
  "\\$1"
@@ -149784,14 +150013,14 @@ function SelectGroupsInput({
149784
150013
  }, []);
149785
150014
  const lastItem = listItems.at(-1);
149786
150015
  const shouldShowSearchInput = searchRegExp ? true : lastItem && lastItem.rowIndex > maxHeight;
149787
- return /* @__PURE__ */ import_react58.default.createElement(import_react58.default.Fragment, null, /* @__PURE__ */ import_react58.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react58.default.createElement(Text2, null, /* @__PURE__ */ import_react58.default.createElement(InputLabel, null, label), " ", info && (0, import_variant11.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react58.default.createElement(Text2, { skin: "secondary" }, info)), (0, import_variant11.isType)(inputState, InputState.NotSubmitted) && shouldShowSearchInput && /* @__PURE__ */ import_react58.default.createElement(Text2, { skin: "secondary" }, /* @__PURE__ */ import_react58.default.createElement(
150016
+ return /* @__PURE__ */ import_react57.default.createElement(import_react57.default.Fragment, null, /* @__PURE__ */ import_react57.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react57.default.createElement(Text2, null, /* @__PURE__ */ import_react57.default.createElement(InputLabel, null, label), " ", info && (0, import_variant11.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react57.default.createElement(Text2, { skin: "secondary" }, info)), (0, import_variant11.isType)(inputState, InputState.NotSubmitted) && shouldShowSearchInput && /* @__PURE__ */ import_react57.default.createElement(Text2, { skin: "secondary" }, /* @__PURE__ */ import_react57.default.createElement(
149788
150017
  Input2,
149789
150018
  {
149790
150019
  onChange: handleSearchPhraseChange,
149791
150020
  showCursor: true,
149792
150021
  placeholder: "Type to search..."
149793
150022
  }
149794
- ))), /* @__PURE__ */ import_react58.default.createElement(Placeholder2, { inputState }), (0, import_variant11.isType)(inputState, InputState.NotSubmitted) && (listItems.length ? /* @__PURE__ */ import_react58.default.createElement(
150023
+ ))), /* @__PURE__ */ import_react57.default.createElement(Placeholder2, { inputState }), (0, import_variant11.isType)(inputState, InputState.NotSubmitted) && (listItems.length ? /* @__PURE__ */ import_react57.default.createElement(
149795
150024
  GroupsList,
149796
150025
  {
149797
150026
  listItems,
@@ -149801,7 +150030,7 @@ function SelectGroupsInput({
149801
150030
  hideScroll,
149802
150031
  onItemSelect: handleItemSelection
149803
150032
  }
149804
- ) : /* @__PURE__ */ import_react58.default.createElement(Box_default, { paddingBottom: 1, paddingX: 2 }, /* @__PURE__ */ import_react58.default.createElement(Text2, { skin: "secondary" }, "No results found."))));
150033
+ ) : /* @__PURE__ */ import_react57.default.createElement(Box_default, { paddingBottom: 1, paddingX: 2 }, /* @__PURE__ */ import_react57.default.createElement(Text2, { skin: "secondary" }, "No results found."))));
149805
150034
  }
149806
150035
 
149807
150036
  // ../cli-ui-kit/src/components/TextInput/index.ts
@@ -149809,7 +150038,7 @@ init_esm_shims();
149809
150038
 
149810
150039
  // ../cli-ui-kit/src/components/TextInput/TextInput.tsx
149811
150040
  init_esm_shims();
149812
- var import_react59 = __toESM(require_react(), 1);
150041
+ var import_react58 = __toESM(require_react(), 1);
149813
150042
  var import_variant12 = __toESM(require_lib(), 1);
149814
150043
  var TextInput2 = ({
149815
150044
  label,
@@ -149819,12 +150048,12 @@ var TextInput2 = ({
149819
150048
  validate = () => true,
149820
150049
  inCreateFlow = false
149821
150050
  }) => {
149822
- const [inputState, setInputState] = (0, import_react59.useState)(
150051
+ const [inputState, setInputState] = (0, import_react58.useState)(
149823
150052
  () => InputState.NotSubmitted(placeholder)
149824
150053
  );
149825
- const [isDirty2, setIsDirty] = (0, import_react59.useState)(false);
149826
- const [validationError, setValidationError] = (0, import_react59.useState)();
149827
- const handleSubmit = (0, import_react59.useCallback)(
150054
+ const [isDirty2, setIsDirty] = (0, import_react58.useState)(false);
150055
+ const [validationError, setValidationError] = (0, import_react58.useState)();
150056
+ const handleSubmit = (0, import_react58.useCallback)(
149828
150057
  async (value2) => {
149829
150058
  setIsDirty(false);
149830
150059
  const validationResult = await validate(value2);
@@ -149839,18 +150068,18 @@ var TextInput2 = ({
149839
150068
  [onSubmit, validate]
149840
150069
  );
149841
150070
  const afterValidationError = Boolean(validationError && !isDirty2);
149842
- (0, import_react59.useEffect)(() => {
150071
+ (0, import_react58.useEffect)(() => {
149843
150072
  if (isActive) {
149844
150073
  setInputState(InputState.NotSubmitted(inputState.value));
149845
150074
  }
149846
150075
  }, [isActive]);
149847
- return /* @__PURE__ */ import_react59.default.createElement(import_react59.default.Fragment, null, /* @__PURE__ */ import_react59.default.createElement(Box_default, { marginBottom: 1, marginLeft: inCreateFlow ? -2 : 0 }, /* @__PURE__ */ import_react59.default.createElement(Text2, null, /* @__PURE__ */ import_react59.default.createElement(
150076
+ return /* @__PURE__ */ import_react58.default.createElement(import_react58.default.Fragment, null, /* @__PURE__ */ import_react58.default.createElement(Box_default, { marginBottom: 1, marginLeft: inCreateFlow ? -2 : 0 }, /* @__PURE__ */ import_react58.default.createElement(Text2, null, /* @__PURE__ */ import_react58.default.createElement(
149848
150077
  InputLabel,
149849
150078
  {
149850
- icon: /* @__PURE__ */ import_react59.default.createElement(Text2, { skin: "question" }, /* @__PURE__ */ import_react59.default.createElement(PointerIcon, { appearance: "triangle" }))
150079
+ icon: /* @__PURE__ */ import_react58.default.createElement(Text2, { skin: "question" }, /* @__PURE__ */ import_react58.default.createElement(PointerIcon, { appearance: "triangle" }))
149851
150080
  },
149852
150081
  label
149853
- ), (0, import_variant12.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react59.default.createElement(import_react59.default.Fragment, null, " ", /* @__PURE__ */ import_react59.default.createElement(Text2, { skin: afterValidationError ? "error" : "standard" }, /* @__PURE__ */ import_react59.default.createElement(
150082
+ ), (0, import_variant12.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react58.default.createElement(import_react58.default.Fragment, null, " ", /* @__PURE__ */ import_react58.default.createElement(Text2, { skin: afterValidationError ? "error" : "standard" }, /* @__PURE__ */ import_react58.default.createElement(
149854
150083
  Input2,
149855
150084
  {
149856
150085
  placeholder: inputState.value,
@@ -149858,52 +150087,52 @@ var TextInput2 = ({
149858
150087
  onChange: () => setIsDirty(true),
149859
150088
  showCursor: afterValidationError
149860
150089
  }
149861
- ))))), (0, import_variant12.isType)(inputState, InputState.Submitted) && /* @__PURE__ */ import_react59.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react59.default.createElement(Text2, { skin: "secondary" }, /* @__PURE__ */ import_react59.default.createElement(SuccessIcon, null), " ", inputState.value)), validationError && /* @__PURE__ */ import_react59.default.createElement(Box_default, { columnGap: 1 }, /* @__PURE__ */ import_react59.default.createElement(Text2, { skin: "error" }, /* @__PURE__ */ import_react59.default.createElement(PointerIcon, { appearance: "exclamation" })), /* @__PURE__ */ import_react59.default.createElement(Text2, { skin: "error" }, validationError)));
150090
+ ))))), (0, import_variant12.isType)(inputState, InputState.Submitted) && /* @__PURE__ */ import_react58.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react58.default.createElement(Text2, { skin: "secondary" }, /* @__PURE__ */ import_react58.default.createElement(SuccessIcon, null), " ", inputState.value)), validationError && /* @__PURE__ */ import_react58.default.createElement(Box_default, { columnGap: 1 }, /* @__PURE__ */ import_react58.default.createElement(Text2, { skin: "error" }, /* @__PURE__ */ import_react58.default.createElement(PointerIcon, { appearance: "exclamation" })), /* @__PURE__ */ import_react58.default.createElement(Text2, { skin: "error" }, validationError)));
149862
150091
  };
149863
150092
 
149864
150093
  // ../cli-ui-kit/src/components/Alert.tsx
149865
150094
  init_esm_shims();
149866
- var import_react60 = __toESM(require_react(), 1);
150095
+ var import_react59 = __toESM(require_react(), 1);
149867
150096
  var import_variant13 = __toESM(require_lib(), 1);
149868
150097
  var Alert = ({ type, children }) => {
149869
150098
  const icon = (0, import_variant13.match)(type, {
149870
150099
  error: (0, import_variant13.constant)(
149871
- /* @__PURE__ */ import_react60.default.createElement(Text2, { skin: "error" }, /* @__PURE__ */ import_react60.default.createElement(ErrorIcon, null))
150100
+ /* @__PURE__ */ import_react59.default.createElement(Text2, { skin: "error" }, /* @__PURE__ */ import_react59.default.createElement(ErrorIcon, null))
149872
150101
  ),
149873
150102
  warning: (0, import_variant13.constant)(
149874
- /* @__PURE__ */ import_react60.default.createElement(Text2, { skin: "warning" }, /* @__PURE__ */ import_react60.default.createElement(WarningIcon, null))
150103
+ /* @__PURE__ */ import_react59.default.createElement(Text2, { skin: "warning" }, /* @__PURE__ */ import_react59.default.createElement(WarningIcon, null))
149875
150104
  ),
149876
150105
  success: (0, import_variant13.constant)(
149877
- /* @__PURE__ */ import_react60.default.createElement(Text2, { skin: "success" }, /* @__PURE__ */ import_react60.default.createElement(SuccessIcon, null))
150106
+ /* @__PURE__ */ import_react59.default.createElement(Text2, { skin: "success" }, /* @__PURE__ */ import_react59.default.createElement(SuccessIcon, null))
149878
150107
  ),
149879
- insight: (0, import_variant13.constant)(/* @__PURE__ */ import_react60.default.createElement(InsightIcon, null))
150108
+ insight: (0, import_variant13.constant)(/* @__PURE__ */ import_react59.default.createElement(InsightIcon, null))
149880
150109
  });
149881
- return /* @__PURE__ */ import_react60.default.createElement(Text2, null, icon, " ", children);
150110
+ return /* @__PURE__ */ import_react59.default.createElement(Text2, null, icon, " ", children);
149882
150111
  };
149883
150112
 
149884
150113
  // ../cli-ui-kit/src/components/Badge.tsx
149885
150114
  init_esm_shims();
149886
- var import_react61 = __toESM(require_react(), 1);
150115
+ var import_react60 = __toESM(require_react(), 1);
149887
150116
  var skins2 = {
149888
150117
  success: { backgroundColor: "green" }
149889
150118
  };
149890
150119
  var Badge = ({ children, skin }) => {
149891
- return /* @__PURE__ */ import_react61.default.createElement(Text, { ...skins2[skin] }, " ", children, " ");
150120
+ return /* @__PURE__ */ import_react60.default.createElement(Text, { ...skins2[skin] }, " ", children, " ");
149892
150121
  };
149893
150122
 
149894
150123
  // ../cli-ui-kit/src/components/Key.tsx
149895
150124
  init_esm_shims();
149896
- var import_react62 = __toESM(require_react(), 1);
150125
+ var import_react61 = __toESM(require_react(), 1);
149897
150126
  var Key = ({ value: value2, skin }) => {
149898
150127
  if (skin === "secondary") {
149899
- return /* @__PURE__ */ import_react62.default.createElement(Text, null, /* @__PURE__ */ import_react62.default.createElement(Text, { inverse: true }, " ", value2, " "), /* @__PURE__ */ import_react62.default.createElement(Text, null, "\u2591"));
150128
+ return /* @__PURE__ */ import_react61.default.createElement(Text, null, /* @__PURE__ */ import_react61.default.createElement(Text, { inverse: true }, " ", value2, " "), /* @__PURE__ */ import_react61.default.createElement(Text, null, "\u2591"));
149900
150129
  }
149901
- return /* @__PURE__ */ import_react62.default.createElement(Text, null, /* @__PURE__ */ import_react62.default.createElement(Text, { backgroundColor: "blueBright" }, " ", value2, " "), /* @__PURE__ */ import_react62.default.createElement(Text, { color: "blueBright" }, "\u2591"));
150130
+ return /* @__PURE__ */ import_react61.default.createElement(Text, null, /* @__PURE__ */ import_react61.default.createElement(Text, { backgroundColor: "blueBright" }, " ", value2, " "), /* @__PURE__ */ import_react61.default.createElement(Text, { color: "blueBright" }, "\u2591"));
149902
150131
  };
149903
150132
 
149904
150133
  // ../cli-ui-kit/src/components/Link.tsx
149905
150134
  init_esm_shims();
149906
- var import_react63 = __toESM(require_react(), 1);
150135
+ var import_react62 = __toESM(require_react(), 1);
149907
150136
 
149908
150137
  // ../../node_modules/terminal-link/index.js
149909
150138
  init_esm_shims();
@@ -150050,31 +150279,31 @@ terminalLink.stderr.isSupported = import_supports_hyperlinks.default.stderr;
150050
150279
  var Link = ({ skin, children, url }) => {
150051
150280
  if (children) {
150052
150281
  if (terminalLink.isSupported) {
150053
- return /* @__PURE__ */ import_react63.default.createElement(
150282
+ return /* @__PURE__ */ import_react62.default.createElement(
150054
150283
  Transform,
150055
150284
  {
150056
150285
  transform: (childrenAsString) => terminalLink(childrenAsString, url, { fallback: false })
150057
150286
  },
150058
- /* @__PURE__ */ import_react63.default.createElement(Text2, { skin }, children)
150287
+ /* @__PURE__ */ import_react62.default.createElement(Text2, { skin }, children)
150059
150288
  );
150060
150289
  }
150061
- return /* @__PURE__ */ import_react63.default.createElement(Text2, null, /* @__PURE__ */ import_react63.default.createElement(Text2, { skin }, children), " (", url, ")");
150290
+ return /* @__PURE__ */ import_react62.default.createElement(Text2, null, /* @__PURE__ */ import_react62.default.createElement(Text2, { skin }, children), " (", url, ")");
150062
150291
  }
150063
- return /* @__PURE__ */ import_react63.default.createElement(Text2, { skin: "info" }, url);
150292
+ return /* @__PURE__ */ import_react62.default.createElement(Text2, { skin: "info" }, url);
150064
150293
  };
150065
150294
 
150066
150295
  // ../cli-ui-kit/src/components/Spinner.tsx
150067
150296
  init_esm_shims();
150068
- var import_react65 = __toESM(require_react(), 1);
150297
+ var import_react64 = __toESM(require_react(), 1);
150069
150298
 
150070
150299
  // ../../node_modules/ink-spinner/build/index.js
150071
150300
  init_esm_shims();
150072
- var import_react64 = __toESM(require_react(), 1);
150301
+ var import_react63 = __toESM(require_react(), 1);
150073
150302
  var import_cli_spinners = __toESM(require_cli_spinners(), 1);
150074
150303
  function Spinner({ type = "dots" }) {
150075
- const [frame, setFrame] = (0, import_react64.useState)(0);
150304
+ const [frame, setFrame] = (0, import_react63.useState)(0);
150076
150305
  const spinner = import_cli_spinners.default[type];
150077
- (0, import_react64.useEffect)(() => {
150306
+ (0, import_react63.useEffect)(() => {
150078
150307
  const timer = setInterval(() => {
150079
150308
  setFrame((previousFrame) => {
150080
150309
  const isLastFrame = previousFrame === spinner.frames.length - 1;
@@ -150085,33 +150314,33 @@ function Spinner({ type = "dots" }) {
150085
150314
  clearInterval(timer);
150086
150315
  };
150087
150316
  }, [spinner]);
150088
- return import_react64.default.createElement(Text, null, spinner.frames[frame]);
150317
+ return import_react63.default.createElement(Text, null, spinner.frames[frame]);
150089
150318
  }
150090
150319
  var build_default2 = Spinner;
150091
150320
 
150092
150321
  // ../cli-ui-kit/src/components/Spinner.tsx
150093
150322
  var Spinner2 = ({ text }) => {
150094
- const spinnerNode = /* @__PURE__ */ import_react65.default.createElement(Text2, { skin: "info" }, /* @__PURE__ */ import_react65.default.createElement(build_default2, { type: "dots" }));
150323
+ const spinnerNode = /* @__PURE__ */ import_react64.default.createElement(Text2, { skin: "info" }, /* @__PURE__ */ import_react64.default.createElement(build_default2, { type: "dots" }));
150095
150324
  if (text) {
150096
- return /* @__PURE__ */ import_react65.default.createElement(Box_default, { gap: 1 }, spinnerNode, typeof text === "string" ? /* @__PURE__ */ import_react65.default.createElement(Text2, null, text) : text);
150325
+ return /* @__PURE__ */ import_react64.default.createElement(Box_default, { gap: 1 }, spinnerNode, typeof text === "string" ? /* @__PURE__ */ import_react64.default.createElement(Text2, null, text) : text);
150097
150326
  }
150098
150327
  return spinnerNode;
150099
150328
  };
150100
150329
 
150101
150330
  // ../cli-ui-kit/src/components/ErrorDetails.tsx
150102
150331
  init_esm_shims();
150103
- var import_react66 = __toESM(require_react(), 1);
150332
+ var import_react65 = __toESM(require_react(), 1);
150104
150333
  var ErrorDetails = ({
150105
150334
  message,
150106
150335
  explanation,
150107
150336
  hint
150108
- }) => /* @__PURE__ */ import_react66.default.createElement(Box_default, { flexDirection: "column" }, /* @__PURE__ */ import_react66.default.createElement(Alert, { type: "error" }, message), explanation && /* @__PURE__ */ import_react66.default.createElement(Alert, { type: "warning" }, explanation), hint && /* @__PURE__ */ import_react66.default.createElement(Box_default, { paddingTop: 1 }, /* @__PURE__ */ import_react66.default.createElement(Alert, { type: "insight" }, hint)));
150337
+ }) => /* @__PURE__ */ import_react65.default.createElement(Box_default, { flexDirection: "column" }, /* @__PURE__ */ import_react65.default.createElement(Alert, { type: "error" }, message), explanation && /* @__PURE__ */ import_react65.default.createElement(Alert, { type: "warning" }, explanation), hint && /* @__PURE__ */ import_react65.default.createElement(Box_default, { paddingTop: 1 }, /* @__PURE__ */ import_react65.default.createElement(Alert, { type: "insight" }, hint)));
150109
150338
 
150110
150339
  // ../cli-ui-kit/src/components/Notification.tsx
150111
150340
  init_esm_shims();
150112
- var import_react67 = __toESM(require_react(), 1);
150341
+ var import_react66 = __toESM(require_react(), 1);
150113
150342
  var Notification = ({ children }) => {
150114
- return /* @__PURE__ */ import_react67.default.createElement(Box_default, null, /* @__PURE__ */ import_react67.default.createElement(
150343
+ return /* @__PURE__ */ import_react66.default.createElement(Box_default, null, /* @__PURE__ */ import_react66.default.createElement(
150115
150344
  Box_default,
150116
150345
  {
150117
150346
  padding: 1,
@@ -150130,7 +150359,7 @@ var import_variant14 = __toESM(require_lib(), 1);
150130
150359
 
150131
150360
  // ../../node_modules/react-async-hook/dist/react-async-hook.esm.js
150132
150361
  init_esm_shims();
150133
- var import_react68 = __toESM(require_react());
150362
+ var import_react67 = __toESM(require_react());
150134
150363
  function _extends() {
150135
150364
  _extends = Object.assign || function(target) {
150136
150365
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -150147,13 +150376,13 @@ function _extends() {
150147
150376
  }
150148
150377
  var _iteratorSymbol = typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
150149
150378
  var _asyncIteratorSymbol = typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
150150
- var useIsomorphicLayoutEffect = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined" ? import_react68.useLayoutEffect : import_react68.useEffect;
150379
+ var useIsomorphicLayoutEffect = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined" ? import_react67.useLayoutEffect : import_react67.useEffect;
150151
150380
  var useGetter = function useGetter2(t3) {
150152
- var ref = (0, import_react68.useRef)(t3);
150381
+ var ref = (0, import_react67.useRef)(t3);
150153
150382
  useIsomorphicLayoutEffect(function() {
150154
150383
  ref.current = t3;
150155
150384
  });
150156
- return (0, import_react68.useCallback)(function() {
150385
+ return (0, import_react67.useCallback)(function() {
150157
150386
  return ref.current;
150158
150387
  }, [ref]);
150159
150388
  };
@@ -150206,22 +150435,22 @@ var normalizeOptions = function normalizeOptions2(options) {
150206
150435
  return _extends({}, DefaultOptions, {}, options);
150207
150436
  };
150208
150437
  var useAsyncState = function useAsyncState2(options) {
150209
- var _useState = (0, import_react68.useState)(function() {
150438
+ var _useState = (0, import_react67.useState)(function() {
150210
150439
  return options.initialState(options);
150211
150440
  }), value2 = _useState[0], setValue = _useState[1];
150212
- var reset = (0, import_react68.useCallback)(function() {
150441
+ var reset = (0, import_react67.useCallback)(function() {
150213
150442
  return setValue(options.initialState(options));
150214
150443
  }, [setValue, options]);
150215
- var setLoading = (0, import_react68.useCallback)(function() {
150444
+ var setLoading = (0, import_react67.useCallback)(function() {
150216
150445
  return setValue(options.setLoading(value2));
150217
150446
  }, [value2, setValue]);
150218
- var setResult = (0, import_react68.useCallback)(function(result) {
150447
+ var setResult = (0, import_react67.useCallback)(function(result) {
150219
150448
  return setValue(options.setResult(result, value2));
150220
150449
  }, [value2, setValue]);
150221
- var setError = (0, import_react68.useCallback)(function(error) {
150450
+ var setError = (0, import_react67.useCallback)(function(error) {
150222
150451
  return setValue(options.setError(error, value2));
150223
150452
  }, [value2, setValue]);
150224
- var merge = (0, import_react68.useCallback)(function(state) {
150453
+ var merge = (0, import_react67.useCallback)(function(state) {
150225
150454
  return setValue(_extends({}, value2, {}, state));
150226
150455
  }, [value2, setValue]);
150227
150456
  return {
@@ -150235,8 +150464,8 @@ var useAsyncState = function useAsyncState2(options) {
150235
150464
  };
150236
150465
  };
150237
150466
  var useIsMounted = function useIsMounted2() {
150238
- var ref = (0, import_react68.useRef)(false);
150239
- (0, import_react68.useEffect)(function() {
150467
+ var ref = (0, import_react67.useRef)(false);
150468
+ (0, import_react67.useEffect)(function() {
150240
150469
  ref.current = true;
150241
150470
  return function() {
150242
150471
  ref.current = false;
@@ -150247,7 +150476,7 @@ var useIsMounted = function useIsMounted2() {
150247
150476
  };
150248
150477
  };
150249
150478
  var useCurrentPromise = function useCurrentPromise2() {
150250
- var ref = (0, import_react68.useRef)(null);
150479
+ var ref = (0, import_react67.useRef)(null);
150251
150480
  return {
150252
150481
  set: function set(promise) {
150253
150482
  return ref.current = promise;
@@ -150263,7 +150492,7 @@ var useCurrentPromise = function useCurrentPromise2() {
150263
150492
  var useAsyncInternal = function useAsyncInternal2(asyncFunction, params, options) {
150264
150493
  !params && (params = []);
150265
150494
  var normalizedOptions = normalizeOptions(options);
150266
- var _useState2 = (0, import_react68.useState)(null), currentParams = _useState2[0], setCurrentParams = _useState2[1];
150495
+ var _useState2 = (0, import_react67.useState)(null), currentParams = _useState2[0], setCurrentParams = _useState2[1];
150267
150496
  var AsyncState = useAsyncState(normalizedOptions);
150268
150497
  var isMounted = useIsMounted();
150269
150498
  var CurrentPromise = useCurrentPromise();
@@ -150306,11 +150535,11 @@ var useAsyncInternal = function useAsyncInternal2(asyncFunction, params, options
150306
150535
  return promise;
150307
150536
  };
150308
150537
  var getLatestExecuteAsyncOperation = useGetter(executeAsyncOperation);
150309
- var executeAsyncOperationMemo = (0, import_react68.useCallback)(function() {
150538
+ var executeAsyncOperationMemo = (0, import_react67.useCallback)(function() {
150310
150539
  return getLatestExecuteAsyncOperation().apply(void 0, arguments);
150311
150540
  }, [getLatestExecuteAsyncOperation]);
150312
150541
  var isMounting = !isMounted();
150313
- (0, import_react68.useEffect)(function() {
150542
+ (0, import_react67.useEffect)(function() {
150314
150543
  var execute = function execute2() {
150315
150544
  return getLatestExecuteAsyncOperation().apply(void 0, params);
150316
150545
  };
@@ -150343,7 +150572,7 @@ var useAsyncCallback = function useAsyncCallback2(asyncFunction, options) {
150343
150572
  };
150344
150573
 
150345
150574
  // ../cli-ui-kit/src/hooks/use-async.ts
150346
- var import_react69 = __toESM(require_react(), 1);
150575
+ var import_react68 = __toESM(require_react(), 1);
150347
150576
  var AsyncStatus = (0, import_variant14.variant)(
150348
150577
  (0, import_variant14.onTerms)(({ T: _T }) => ({
150349
150578
  Error: (error) => ({ error }),
@@ -150361,7 +150590,7 @@ var AsyncCallbackStatus = (0, import_variant14.variant)(
150361
150590
  );
150362
150591
  var useAsync2 = (fn, args, options) => {
150363
150592
  const exit = useExit();
150364
- const abortController = (0, import_react69.useMemo)(() => new AbortController(), []);
150593
+ const abortController = (0, import_react68.useMemo)(() => new AbortController(), []);
150365
150594
  const { result, error, status, merge } = useAsync(
150366
150595
  fn.bind(null, { signal: abortController.signal }),
150367
150596
  args,
@@ -150370,7 +150599,7 @@ var useAsync2 = (fn, args, options) => {
150370
150599
  ...options ?? {}
150371
150600
  }
150372
150601
  );
150373
- (0, import_react69.useEffect)(() => {
150602
+ (0, import_react68.useEffect)(() => {
150374
150603
  return () => {
150375
150604
  abortController.abort();
150376
150605
  };
@@ -150390,7 +150619,7 @@ var useAsync2 = (fn, args, options) => {
150390
150619
  };
150391
150620
  var useAsyncCallback3 = (fn, options) => {
150392
150621
  const exit = useExit();
150393
- const abortController = (0, import_react69.useMemo)(() => new AbortController(), []);
150622
+ const abortController = (0, import_react68.useMemo)(() => new AbortController(), []);
150394
150623
  const { result, error, status, merge, execute } = useAsyncCallback(
150395
150624
  fn.bind(null, { signal: abortController.signal }),
150396
150625
  {
@@ -150398,7 +150627,7 @@ var useAsyncCallback3 = (fn, options) => {
150398
150627
  ...options ?? {}
150399
150628
  }
150400
150629
  );
150401
- (0, import_react69.useEffect)(() => {
150630
+ (0, import_react68.useEffect)(() => {
150402
150631
  return () => {
150403
150632
  abortController.abort();
150404
150633
  };
@@ -150428,16 +150657,16 @@ var useAsyncCallback3 = (fn, options) => {
150428
150657
 
150429
150658
  // ../cli-telemetry-react/src/useBi.tsx
150430
150659
  init_esm_shims();
150431
- var import_react70 = __toESM(require_react(), 1);
150432
- var BiContext = (0, import_react70.createContext)(null);
150660
+ var import_react69 = __toESM(require_react(), 1);
150661
+ var BiContext = (0, import_react69.createContext)(null);
150433
150662
  var BiProvider = function({
150434
150663
  children,
150435
150664
  value: biLogger
150436
150665
  }) {
150437
- return /* @__PURE__ */ import_react70.default.createElement(BiContext.Provider, { value: biLogger }, children);
150666
+ return /* @__PURE__ */ import_react69.default.createElement(BiContext.Provider, { value: biLogger }, children);
150438
150667
  };
150439
150668
  var useBiLogger = () => {
150440
- const context = (0, import_react70.useContext)(BiContext);
150669
+ const context = (0, import_react69.useContext)(BiContext);
150441
150670
  if (context == null) {
150442
150671
  throw new Error("useBiLogger() cannot be used without an <BiProvider>");
150443
150672
  }
@@ -150449,18 +150678,18 @@ init_esm_shims();
150449
150678
 
150450
150679
  // ../cli-i18n/src/I18nProvider.tsx
150451
150680
  init_esm_shims();
150452
- var import_react79 = __toESM(require_react(), 1);
150681
+ var import_react78 = __toESM(require_react(), 1);
150453
150682
 
150454
150683
  // ../../node_modules/react-i18next/dist/es/index.js
150455
150684
  init_esm_shims();
150456
150685
 
150457
150686
  // ../../node_modules/react-i18next/dist/es/Trans.js
150458
150687
  init_esm_shims();
150459
- var import_react73 = __toESM(require_react(), 1);
150688
+ var import_react72 = __toESM(require_react(), 1);
150460
150689
 
150461
150690
  // ../../node_modules/react-i18next/dist/es/TransWithoutContext.js
150462
150691
  init_esm_shims();
150463
- var import_react71 = __toESM(require_react(), 1);
150692
+ var import_react70 = __toESM(require_react(), 1);
150464
150693
 
150465
150694
  // ../../node_modules/html-parse-stringify/dist/html-parse-stringify.module.js
150466
150695
  init_esm_shims();
@@ -150659,7 +150888,7 @@ var getChildren = (node) => {
150659
150888
  const children = node.props?.children ?? node.children;
150660
150889
  return node.props?.i18nIsDynamicList ? getAsArray(children) : children;
150661
150890
  };
150662
- var hasValidReactChildren = (children) => Array.isArray(children) && children.every(import_react71.isValidElement);
150891
+ var hasValidReactChildren = (children) => Array.isArray(children) && children.every(import_react70.isValidElement);
150663
150892
  var getAsArray = (data) => Array.isArray(data) ? data : [data];
150664
150893
  var mergeProps = (source, target) => {
150665
150894
  const newTarget = {
@@ -150678,7 +150907,7 @@ var nodesToString = (children, i18nOptions, i18n, i18nKey) => {
150678
150907
  stringNode += `${child}`;
150679
150908
  return;
150680
150909
  }
150681
- if ((0, import_react71.isValidElement)(child)) {
150910
+ if ((0, import_react70.isValidElement)(child)) {
150682
150911
  const {
150683
150912
  props,
150684
150913
  type
@@ -150743,7 +150972,7 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
150743
150972
  childrenArray.forEach((child) => {
150744
150973
  if (isString(child)) return;
150745
150974
  if (hasChildren(child)) getData(getChildren(child));
150746
- else if (isObject(child) && !(0, import_react71.isValidElement)(child)) Object.assign(data, child);
150975
+ else if (isObject(child) && !(0, import_react70.isValidElement)(child)) Object.assign(data, child);
150747
150976
  });
150748
150977
  };
150749
150978
  getData(children);
@@ -150760,16 +150989,16 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
150760
150989
  const pushTranslatedJSX = (child, inner, mem, i2, isVoid) => {
150761
150990
  if (child.dummy) {
150762
150991
  child.children = inner;
150763
- mem.push((0, import_react71.cloneElement)(child, {
150992
+ mem.push((0, import_react70.cloneElement)(child, {
150764
150993
  key: i2
150765
150994
  }, isVoid ? void 0 : inner));
150766
150995
  } else {
150767
- mem.push(...import_react71.Children.map([child], (c2) => {
150996
+ mem.push(...import_react70.Children.map([child], (c2) => {
150768
150997
  const props = {
150769
150998
  ...c2.props
150770
150999
  };
150771
151000
  delete props.i18nIsDynamicList;
150772
- return (0, import_react71.createElement)(c2.type, {
151001
+ return (0, import_react70.createElement)(c2.type, {
150773
151002
  ...props,
150774
151003
  key: i2,
150775
151004
  ref: c2.ref
@@ -150789,7 +151018,7 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
150789
151018
  const child = Object.keys(node.attrs).length !== 0 ? mergeProps({
150790
151019
  props: node.attrs
150791
151020
  }, tmp) : tmp;
150792
- const isElement = (0, import_react71.isValidElement)(child);
151021
+ const isElement = (0, import_react70.isValidElement)(child);
150793
151022
  const isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;
150794
151023
  const isEmptyTransWithHTML = emptyChildrenButNeedsHandling && isObject(child) && child.dummy && !isElement;
150795
151024
  const isKnownComponent = isObject(children) && Object.hasOwnProperty.call(children, node.name);
@@ -150808,12 +151037,12 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
150808
151037
  pushTranslatedJSX(child, inner, mem, i2, node.voidElement);
150809
151038
  } else if (i18nOptions.transSupportBasicHtmlNodes && keepArray.indexOf(node.name) > -1) {
150810
151039
  if (node.voidElement) {
150811
- mem.push((0, import_react71.createElement)(node.name, {
151040
+ mem.push((0, import_react70.createElement)(node.name, {
150812
151041
  key: `${node.name}-${i2}`
150813
151042
  }));
150814
151043
  } else {
150815
151044
  const inner = mapAST(reactNodes, node.children, rootReactNode);
150816
- mem.push((0, import_react71.createElement)(node.name, {
151045
+ mem.push((0, import_react70.createElement)(node.name, {
150817
151046
  key: `${node.name}-${i2}`
150818
151047
  }, inner));
150819
151048
  }
@@ -150833,7 +151062,7 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
150833
151062
  const wrapTextNodes = i18nOptions.transWrapTextNodes;
150834
151063
  const content = shouldUnescape ? i18nOptions.unescape(i18n.services.interpolator.interpolate(node.content, opts, i18n.language)) : i18n.services.interpolator.interpolate(node.content, opts, i18n.language);
150835
151064
  if (wrapTextNodes) {
150836
- mem.push((0, import_react71.createElement)(wrapTextNodes, {
151065
+ mem.push((0, import_react70.createElement)(wrapTextNodes, {
150837
151066
  key: `${node.name}-${i2}`
150838
151067
  }, content));
150839
151068
  } else {
@@ -150851,16 +151080,16 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
150851
151080
  };
150852
151081
  var fixComponentProps = (component, index, translation) => {
150853
151082
  const componentKey = component.key || index;
150854
- const comp = (0, import_react71.cloneElement)(component, {
151083
+ const comp = (0, import_react70.cloneElement)(component, {
150855
151084
  key: componentKey
150856
151085
  });
150857
151086
  if (!comp.props || !comp.props.children || translation.indexOf(`${index}/>`) < 0 && translation.indexOf(`${index} />`) < 0) {
150858
151087
  return comp;
150859
151088
  }
150860
151089
  function Componentized() {
150861
- return (0, import_react71.createElement)(import_react71.Fragment, null, comp);
151090
+ return (0, import_react70.createElement)(import_react70.Fragment, null, comp);
150862
151091
  }
150863
- return (0, import_react71.createElement)(Componentized, {
151092
+ return (0, import_react70.createElement)(Componentized, {
150864
151093
  key: componentKey
150865
151094
  });
150866
151095
  };
@@ -150951,12 +151180,12 @@ function Trans({
150951
151180
  const generatedComponents = generateComponents(components, translation, i18n, i18nKey);
150952
151181
  const content = renderNodes(generatedComponents || children, translation, i18n, reactI18nextOptions, combinedTOpts, shouldUnescape);
150953
151182
  const useAsParent = parent ?? reactI18nextOptions.defaultTransParent;
150954
- return useAsParent ? (0, import_react71.createElement)(useAsParent, additionalProps, content) : content;
151183
+ return useAsParent ? (0, import_react70.createElement)(useAsParent, additionalProps, content) : content;
150955
151184
  }
150956
151185
 
150957
151186
  // ../../node_modules/react-i18next/dist/es/context.js
150958
151187
  init_esm_shims();
150959
- var import_react72 = __toESM(require_react(), 1);
151188
+ var import_react71 = __toESM(require_react(), 1);
150960
151189
 
150961
151190
  // ../../node_modules/react-i18next/dist/es/initReactI18next.js
150962
151191
  init_esm_shims();
@@ -150969,7 +151198,7 @@ var initReactI18next = {
150969
151198
  };
150970
151199
 
150971
151200
  // ../../node_modules/react-i18next/dist/es/context.js
150972
- var I18nContext = (0, import_react72.createContext)();
151201
+ var I18nContext = (0, import_react71.createContext)();
150973
151202
  var ReportNamespaces = class {
150974
151203
  constructor() {
150975
151204
  this.usedNamespaces = {};
@@ -151004,7 +151233,7 @@ function Trans2({
151004
151233
  const {
151005
151234
  i18n: i18nFromContext,
151006
151235
  defaultNS: defaultNSFromContext
151007
- } = (0, import_react73.useContext)(I18nContext) || {};
151236
+ } = (0, import_react72.useContext)(I18nContext) || {};
151008
151237
  const i18n = i18nFromProps || i18nFromContext || getI18n();
151009
151238
  const t3 = tFromProps || i18n?.t.bind(i18n);
151010
151239
  return Trans({
@@ -151027,16 +151256,16 @@ function Trans2({
151027
151256
 
151028
151257
  // ../../node_modules/react-i18next/dist/es/useTranslation.js
151029
151258
  init_esm_shims();
151030
- var import_react74 = __toESM(require_react(), 1);
151259
+ var import_react73 = __toESM(require_react(), 1);
151031
151260
  var usePrevious = (value2, ignore) => {
151032
- const ref = (0, import_react74.useRef)();
151033
- (0, import_react74.useEffect)(() => {
151261
+ const ref = (0, import_react73.useRef)();
151262
+ (0, import_react73.useEffect)(() => {
151034
151263
  ref.current = ignore ? ref.current : value2;
151035
151264
  }, [value2, ignore]);
151036
151265
  return ref.current;
151037
151266
  };
151038
151267
  var alwaysNewT = (i18n, language, namespace, keyPrefix) => i18n.getFixedT(language, namespace, keyPrefix);
151039
- var useMemoizedT = (i18n, language, namespace, keyPrefix) => (0, import_react74.useCallback)(alwaysNewT(i18n, language, namespace, keyPrefix), [i18n, language, namespace, keyPrefix]);
151268
+ var useMemoizedT = (i18n, language, namespace, keyPrefix) => (0, import_react73.useCallback)(alwaysNewT(i18n, language, namespace, keyPrefix), [i18n, language, namespace, keyPrefix]);
151040
151269
  var useTranslation = (ns, props = {}) => {
151041
151270
  const {
151042
151271
  i18n: i18nFromProps
@@ -151044,7 +151273,7 @@ var useTranslation = (ns, props = {}) => {
151044
151273
  const {
151045
151274
  i18n: i18nFromContext,
151046
151275
  defaultNS: defaultNSFromContext
151047
- } = (0, import_react74.useContext)(I18nContext) || {};
151276
+ } = (0, import_react73.useContext)(I18nContext) || {};
151048
151277
  const i18n = i18nFromProps || i18nFromContext || getI18n();
151049
151278
  if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();
151050
151279
  if (!i18n) {
@@ -151077,12 +151306,12 @@ var useTranslation = (ns, props = {}) => {
151077
151306
  const memoGetT = useMemoizedT(i18n, props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
151078
151307
  const getT = () => memoGetT;
151079
151308
  const getNewT = () => alwaysNewT(i18n, props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
151080
- const [t3, setT] = (0, import_react74.useState)(getT);
151309
+ const [t3, setT] = (0, import_react73.useState)(getT);
151081
151310
  let joinedNS = namespaces.join();
151082
151311
  if (props.lng) joinedNS = `${props.lng}${joinedNS}`;
151083
151312
  const previousJoinedNS = usePrevious(joinedNS);
151084
- const isMounted = (0, import_react74.useRef)(true);
151085
- (0, import_react74.useEffect)(() => {
151313
+ const isMounted = (0, import_react73.useRef)(true);
151314
+ (0, import_react73.useEffect)(() => {
151086
151315
  const {
151087
151316
  bindI18n,
151088
151317
  bindI18nStore
@@ -151113,7 +151342,7 @@ var useTranslation = (ns, props = {}) => {
151113
151342
  if (bindI18nStore && i18n) bindI18nStore.split(" ").forEach((e2) => i18n.store.off(e2, boundReset));
151114
151343
  };
151115
151344
  }, [i18n, joinedNS]);
151116
- (0, import_react74.useEffect)(() => {
151345
+ (0, import_react73.useEffect)(() => {
151117
151346
  if (isMounted.current && ready) {
151118
151347
  setT(getT);
151119
151348
  }
@@ -151135,35 +151364,35 @@ var useTranslation = (ns, props = {}) => {
151135
151364
 
151136
151365
  // ../../node_modules/react-i18next/dist/es/withTranslation.js
151137
151366
  init_esm_shims();
151138
- var import_react75 = __toESM(require_react(), 1);
151367
+ var import_react74 = __toESM(require_react(), 1);
151139
151368
 
151140
151369
  // ../../node_modules/react-i18next/dist/es/Translation.js
151141
151370
  init_esm_shims();
151142
151371
 
151143
151372
  // ../../node_modules/react-i18next/dist/es/I18nextProvider.js
151144
151373
  init_esm_shims();
151145
- var import_react76 = __toESM(require_react(), 1);
151374
+ var import_react75 = __toESM(require_react(), 1);
151146
151375
  function I18nextProvider({
151147
151376
  i18n,
151148
151377
  defaultNS,
151149
151378
  children
151150
151379
  }) {
151151
- const value2 = (0, import_react76.useMemo)(() => ({
151380
+ const value2 = (0, import_react75.useMemo)(() => ({
151152
151381
  i18n,
151153
151382
  defaultNS
151154
151383
  }), [i18n, defaultNS]);
151155
- return (0, import_react76.createElement)(I18nContext.Provider, {
151384
+ return (0, import_react75.createElement)(I18nContext.Provider, {
151156
151385
  value: value2
151157
151386
  }, children);
151158
151387
  }
151159
151388
 
151160
151389
  // ../../node_modules/react-i18next/dist/es/withSSR.js
151161
151390
  init_esm_shims();
151162
- var import_react78 = __toESM(require_react(), 1);
151391
+ var import_react77 = __toESM(require_react(), 1);
151163
151392
 
151164
151393
  // ../../node_modules/react-i18next/dist/es/useSSR.js
151165
151394
  init_esm_shims();
151166
- var import_react77 = __toESM(require_react(), 1);
151395
+ var import_react76 = __toESM(require_react(), 1);
151167
151396
 
151168
151397
  // ../cli-i18n/src/create-i18n.ts
151169
151398
  init_esm_shims();
@@ -156936,8 +157165,8 @@ var I18nProvider = ({
156936
157165
  messages,
156937
157166
  i18n: initialI18n
156938
157167
  }) => {
156939
- const [i18n] = (0, import_react79.useState)(() => initialI18n ?? createI18n(messages));
156940
- return /* @__PURE__ */ import_react79.default.createElement(I18nextProvider, { i18n }, children);
157168
+ const [i18n] = (0, import_react78.useState)(() => initialI18n ?? createI18n(messages));
157169
+ return /* @__PURE__ */ import_react78.default.createElement(I18nextProvider, { i18n }, children);
156941
157170
  };
156942
157171
 
156943
157172
  // ../cli-i18n/src/index.ts
@@ -156945,11 +157174,11 @@ init_esm_shims();
156945
157174
 
156946
157175
  // ../cli-error-reporting/src/error-reporter-context.tsx
156947
157176
  init_esm_shims();
156948
- var import_react80 = __toESM(require_react(), 1);
156949
- var ErrorReporterContext = (0, import_react80.createContext)(null);
156950
- var ErrorReporterProvider = (props) => /* @__PURE__ */ import_react80.default.createElement(ErrorReporterContext.Provider, { ...props });
157177
+ var import_react79 = __toESM(require_react(), 1);
157178
+ var ErrorReporterContext = (0, import_react79.createContext)(null);
157179
+ var ErrorReporterProvider = (props) => /* @__PURE__ */ import_react79.default.createElement(ErrorReporterContext.Provider, { ...props });
156951
157180
  var useErrorReporter = () => {
156952
- const context = (0, import_react80.useContext)(ErrorReporterContext);
157181
+ const context = (0, import_react79.useContext)(ErrorReporterContext);
156953
157182
  if (context == null) {
156954
157183
  throw new Error(
156955
157184
  "useErrorReporter() cannot be used without an <ErrorReporterProvider>"
@@ -157169,7 +157398,7 @@ if (typeof module !== "undefined") {
157169
157398
 
157170
157399
  // ../cli-error-reporting/src/components/ErrorMessage.tsx
157171
157400
  init_esm_shims();
157172
- var import_react81 = __toESM(require_react(), 1);
157401
+ var import_react80 = __toESM(require_react(), 1);
157173
157402
  function getOriginalCause(error) {
157174
157403
  if (isCliError(error)) {
157175
157404
  return getOriginalCause(error.cause());
@@ -157178,16 +157407,16 @@ function getOriginalCause(error) {
157178
157407
  }
157179
157408
  var ErrorMessage = ({ message, cause, explanation, hint }) => {
157180
157409
  const originalCause = getOriginalCause(cause);
157181
- return /* @__PURE__ */ import_react81.default.createElement(
157410
+ return /* @__PURE__ */ import_react80.default.createElement(
157182
157411
  ErrorDetails,
157183
157412
  {
157184
- message: originalCause ? /* @__PURE__ */ import_react81.default.createElement(import_react81.default.Fragment, null, message, " Cause: ", originalCause.message) : message,
157413
+ message: originalCause ? /* @__PURE__ */ import_react80.default.createElement(import_react80.default.Fragment, null, message, " Cause: ", originalCause.message) : message,
157185
157414
  hint,
157186
157415
  explanation
157187
157416
  }
157188
157417
  );
157189
157418
  };
157190
- var SystemErrorMessage = ({ message, explanation, hint }) => /* @__PURE__ */ import_react81.default.createElement(
157419
+ var SystemErrorMessage = ({ message, explanation, hint }) => /* @__PURE__ */ import_react80.default.createElement(
157191
157420
  ErrorDetails,
157192
157421
  {
157193
157422
  message,
@@ -157198,7 +157427,7 @@ var SystemErrorMessage = ({ message, explanation, hint }) => /* @__PURE__ */ imp
157198
157427
 
157199
157428
  // ../cli-error-reporting/src/components/OutdatedVersionMessage.tsx
157200
157429
  init_esm_shims();
157201
- var import_react82 = __toESM(require_react(), 1);
157430
+ var import_react81 = __toESM(require_react(), 1);
157202
157431
 
157203
157432
  // ../cli-error-reporting/src/messages.json
157204
157433
  var messages_default = {
@@ -157221,30 +157450,30 @@ var OutdatedVersionMessage = ({
157221
157450
  deprecated,
157222
157451
  hasCliAppInstalled
157223
157452
  }) => {
157224
- return /* @__PURE__ */ import_react82.default.createElement(I18nProvider, { messages: messages_default }, /* @__PURE__ */ import_react82.default.createElement(Notification, null, deprecated && /* @__PURE__ */ import_react82.default.createElement(
157453
+ return /* @__PURE__ */ import_react81.default.createElement(I18nProvider, { messages: messages_default }, /* @__PURE__ */ import_react81.default.createElement(Notification, null, deprecated && /* @__PURE__ */ import_react81.default.createElement(
157225
157454
  Trans2,
157226
157455
  {
157227
157456
  i18nKey: "version_notifier.deprecated.message",
157228
- components: [/* @__PURE__ */ import_react82.default.createElement(Text2, { skin: "secondary" }), /* @__PURE__ */ import_react82.default.createElement(Text2, { bold: true })],
157457
+ components: [/* @__PURE__ */ import_react81.default.createElement(Text2, { skin: "secondary" }), /* @__PURE__ */ import_react81.default.createElement(Text2, { bold: true })],
157229
157458
  values: {
157230
157459
  currentVersion
157231
157460
  }
157232
157461
  }
157233
- ), /* @__PURE__ */ import_react82.default.createElement(
157462
+ ), /* @__PURE__ */ import_react81.default.createElement(
157234
157463
  Trans2,
157235
157464
  {
157236
157465
  i18nKey: "version_notifier.update.message",
157237
- components: [/* @__PURE__ */ import_react82.default.createElement(Text2, { skin: "secondary" }), /* @__PURE__ */ import_react82.default.createElement(Text2, { skin: "success" })],
157466
+ components: [/* @__PURE__ */ import_react81.default.createElement(Text2, { skin: "secondary" }), /* @__PURE__ */ import_react81.default.createElement(Text2, { skin: "success" })],
157238
157467
  values: {
157239
157468
  currentVersion,
157240
157469
  latestVersion
157241
157470
  }
157242
157471
  }
157243
- ), /* @__PURE__ */ import_react82.default.createElement(
157472
+ ), /* @__PURE__ */ import_react81.default.createElement(
157244
157473
  Trans2,
157245
157474
  {
157246
157475
  i18nKey: "version_notifier.update.instructions",
157247
- components: [/* @__PURE__ */ import_react82.default.createElement(Text2, { skin: "info" })],
157476
+ components: [/* @__PURE__ */ import_react81.default.createElement(Text2, { skin: "info" })],
157248
157477
  values: {
157249
157478
  packages: hasCliAppInstalled ? "npm i @wix/cli@latest @wix/cli-app@latest" : "npm i -g @wix/cli@latest"
157250
157479
  }
@@ -157252,6 +157481,15 @@ var OutdatedVersionMessage = ({
157252
157481
  )));
157253
157482
  };
157254
157483
 
157484
+ // ../cli-error-reporting/src/components/ServeDeprecationMessage.tsx
157485
+ init_esm_shims();
157486
+ var import_react82 = __toESM(require_react(), 1);
157487
+ var ServeDeprecationMessage = ({
157488
+ packageManagerRunCmd
157489
+ }) => {
157490
+ return /* @__PURE__ */ import_react82.default.createElement(Box_default, { rowGap: 1, paddingBottom: 1, flexDirection: "column" }, /* @__PURE__ */ import_react82.default.createElement(Alert, { type: "error" }, "Deprecation Notice"), /* @__PURE__ */ import_react82.default.createElement(Text2, null, /* @__PURE__ */ import_react82.default.createElement(Text2, { skin: "info" }, "serve"), " command is being replaced by", " ", /* @__PURE__ */ import_react82.default.createElement(Text2, { skin: "info" }, "preview"), " command."), /* @__PURE__ */ import_react82.default.createElement(Text2, null, "Please run", " ", /* @__PURE__ */ import_react82.default.createElement(Text2, { skin: "info" }, packageManagerRunCmd ? `${packageManagerRunCmd} wix app preview` : "wix app preview"), " ", "instead."));
157491
+ };
157492
+
157255
157493
  // ../cli-error-reporting/src/components/CreateVersionDeprecationMessage.tsx
157256
157494
  init_esm_shims();
157257
157495
  var import_react83 = __toESM(require_react(), 1);
@@ -157728,7 +157966,8 @@ function getErrorComponent(code, cause) {
157728
157966
  modal: () => "modal",
157729
157967
  topology: () => "topology",
157730
157968
  "site-plugin": () => "site plugin",
157731
- monitoring: () => "monitoring"
157969
+ monitoring: () => "monitoring",
157970
+ "site-component": () => "site component"
157732
157971
  });
157733
157972
  return /* @__PURE__ */ import_react84.default.createElement(Box_default, { flexDirection: "column" }, /* @__PURE__ */ import_react84.default.createElement(Text2, null, /* @__PURE__ */ import_react84.default.createElement(Text2, { bold: true }, "Duplicate ID: "), issue.id), /* @__PURE__ */ import_react84.default.createElement(Text2, { bold: true }, "Extensions:"), issue.components.map(({ name, path: path5, type }) => /* @__PURE__ */ import_react84.default.createElement(Text2, { key: path5 }, "[", typeToName(type), "] ", name, " (", path5, ")")), /* @__PURE__ */ import_react84.default.createElement(Text2, null, /* @__PURE__ */ import_react84.default.createElement(Text2, { bold: true }, "Possible GUID: "), issue.suggestedId));
157734
157973
  };
@@ -158305,6 +158544,9 @@ function getErrorComponent(code, cause) {
158305
158544
  }
158306
158545
  );
158307
158546
  },
158547
+ ServeDeprecated: ({ packageManagerRunCmd }) => {
158548
+ return () => /* @__PURE__ */ import_react84.default.createElement(ServeDeprecationMessage, { packageManagerRunCmd });
158549
+ },
158308
158550
  CannotFindConfigReferencedAsset: ({ asset, configPath, field }) => {
158309
158551
  return () => /* @__PURE__ */ import_react84.default.createElement(
158310
158552
  ErrorMessage,
@@ -158476,6 +158718,14 @@ ${errorMessage}`
158476
158718
  hint: `Please release major version.`
158477
158719
  }
158478
158720
  );
158721
+ },
158722
+ SiteComponentConfigNotFound: ({ configPath }) => {
158723
+ return () => /* @__PURE__ */ import_react84.default.createElement(
158724
+ ErrorMessage,
158725
+ {
158726
+ message: `Site component config not found at ${configPath}`
158727
+ }
158728
+ );
158479
158729
  }
158480
158730
  });
158481
158731
  }
@@ -161059,7 +161309,8 @@ var DevCenterComponent = (0, import_variant24.variant)({
161059
161309
  WebMethod: (0, import_variant24.fields)(),
161060
161310
  Event: (0, import_variant24.fields)(),
161061
161311
  ServicePlugin: (0, import_variant24.fields)(),
161062
- Monitoring: (0, import_variant24.fields)()
161312
+ Monitoring: (0, import_variant24.fields)(),
161313
+ SiteComponent: (0, import_variant24.fields)()
161063
161314
  });
161064
161315
 
161065
161316
  // src/hosting/upload-application.ts
@@ -161550,6 +161801,7 @@ var BackOfficeHostingPlatforms;
161550
161801
  BackOfficeHostingPlatforms4["GETTING_PAID"] = "GETTING_PAID";
161551
161802
  BackOfficeHostingPlatforms4["DATA"] = "DATA";
161552
161803
  BackOfficeHostingPlatforms4["LITE_DASHBOARD"] = "LITE_DASHBOARD";
161804
+ BackOfficeHostingPlatforms4["PICASSO_EDITOR"] = "PICASSO_EDITOR";
161553
161805
  })(BackOfficeHostingPlatforms || (BackOfficeHostingPlatforms = {}));
161554
161806
  var DtsDefinitionType;
161555
161807
  (function(DtsDefinitionType4) {
@@ -162462,6 +162714,7 @@ var Escalation;
162462
162714
  Escalation4["BLOCK_ROLLOUT"] = "BLOCK_ROLLOUT";
162463
162715
  Escalation4["BLOCK_FUTURE_ROLLOUT"] = "BLOCK_FUTURE_ROLLOUT";
162464
162716
  Escalation4["OPEN_BUG_SLA"] = "OPEN_BUG_SLA";
162717
+ Escalation4["VISIBILITY"] = "VISIBILITY";
162465
162718
  })(Escalation || (Escalation = {}));
162466
162719
  var ImportanceLevel;
162467
162720
  (function(ImportanceLevel4) {
@@ -162835,6 +163088,7 @@ var EVENTS_DIR = join4(BACKEND_DIR, "events");
162835
163088
  var SERVICE_PLUGINS_DIR = join4(BACKEND_DIR, "service-plugins");
162836
163089
  var SITE_DIR = join4(SRC_DIR, "site");
162837
163090
  var EMBEDDED_SCRIPTS_DIR = join4(SITE_DIR, "embedded-scripts");
163091
+ var SITE_COMPONENTS_DIR = join4(SITE_DIR, "components");
162838
163092
  var SITE_WIDGETS_DIR = join4(SITE_DIR, "widgets", CUSTOM_ELEMENTS_DIR);
162839
163093
  var SITE_PLUGINS_DIR = join4(SITE_DIR, "plugins", CUSTOM_ELEMENTS_DIR);
162840
163094
  var BLOCKS_WIDGETS_DIR = join4(SITE_DIR, "widgets", "blocks");
@@ -163233,6 +163487,14 @@ var supportedServicePlugin = z.union([
163233
163487
  z.literal(ComponentType.ECOM_PAYMENT_SETTINGS),
163234
163488
  z.literal(ComponentType.GIFT_CARDS_PROVIDER)
163235
163489
  ]);
163490
+ var siteComponentConfigSchema = z.object({
163491
+ ...baseConfig,
163492
+ id: z.string().uuid().describe(
163493
+ "The ID (GUID) is used to register the component in Wix Developers Center. The ID must be unique across all extensions in the app."
163494
+ ),
163495
+ description: z.string(),
163496
+ editorElement: z.unknown()
163497
+ }).strict();
163236
163498
 
163237
163499
  // ../dev-center-client/src/index.ts
163238
163500
  init_esm_shims();
@@ -163344,7 +163606,10 @@ var _editorElement = {
163344
163606
  var _editorPresence = { presetsEditorPresence: "_presetEditorPresence" };
163345
163607
  var _editorReactComponent = { editorElement: "_editorElement" };
163346
163608
  var _elementDefaults = { elementsDefaults: "Map#_elementDefaults" };
163347
- var _elementItem = { inlineElement: "_inlineElement" };
163609
+ var _elementItem = {
163610
+ inlineElement: "_inlineElement",
163611
+ refElement: "_refElement"
163612
+ };
163348
163613
  var _elementStyleDefaults = {
163349
163614
  elementsStyleDefaults: "Map#_elementStyleDefaults"
163350
163615
  };
@@ -163476,6 +163741,7 @@ var _queryAppRequest = {};
163476
163741
  var _queryAppResponse = { apps: "_v1App" };
163477
163742
  var _radioGroup = { description: "_richContent" };
163478
163743
  var _ratingInput = { description: "_richContent" };
163744
+ var _refElement = { resolvedElement: "_inlineElement" };
163479
163745
  var _richContent = { nodes: "_node", metadata: "_v1Metadata" };
163480
163746
  var _richContentOptions = { richContent: "_richContent" };
163481
163747
  var _schema = {
@@ -163882,6 +164148,7 @@ function getAppByVersion(payload4) {
163882
164148
  _propertiesType,
163883
164149
  _radioGroup,
163884
164150
  _ratingInput,
164151
+ _refElement,
163885
164152
  _richContent,
163886
164153
  _richContentOptions,
163887
164154
  _schema,
@@ -164516,7 +164783,10 @@ var _editorElement2 = {
164516
164783
  var _editorPresence2 = { presetsEditorPresence: "_presetEditorPresence" };
164517
164784
  var _editorReactComponent2 = { editorElement: "_editorElement" };
164518
164785
  var _elementDefaults2 = { elementsDefaults: "Map#_elementDefaults" };
164519
- var _elementItem2 = { inlineElement: "_inlineElement" };
164786
+ var _elementItem2 = {
164787
+ inlineElement: "_inlineElement",
164788
+ refElement: "_refElement"
164789
+ };
164520
164790
  var _elementStyleDefaults2 = {
164521
164791
  elementsStyleDefaults: "Map#_elementStyleDefaults"
164522
164792
  };
@@ -164645,6 +164915,7 @@ var _propertiesType2 = {
164645
164915
  };
164646
164916
  var _radioGroup2 = { description: "_richContent" };
164647
164917
  var _ratingInput2 = { description: "_richContent" };
164918
+ var _refElement2 = { resolvedElement: "_inlineElement" };
164648
164919
  var _richContent2 = { nodes: "_node", metadata: "_v1Metadata" };
164649
164920
  var _richContentOptions2 = { richContent: "_richContent" };
164650
164921
  var _saleInfo = {
@@ -164850,6 +165121,7 @@ function managedApps(payload4) {
164850
165121
  _propertiesType: _propertiesType2,
164851
165122
  _radioGroup: _radioGroup2,
164852
165123
  _ratingInput: _ratingInput2,
165124
+ _refElement: _refElement2,
164853
165125
  _richContent: _richContent2,
164854
165126
  _richContentOptions: _richContentOptions2,
164855
165127
  _saleInfo,
@@ -165119,6 +165391,7 @@ var ComponentType2;
165119
165391
  ComponentType4["STORES_PRODUCT_RESTRICTIONS"] = "STORES_PRODUCT_RESTRICTIONS";
165120
165392
  ComponentType4["FORM_SUBMISSION_MODERATION"] = "FORM_SUBMISSION_MODERATION";
165121
165393
  ComponentType4["EVENTS_EVENT_BADGES"] = "EVENTS_EVENT_BADGES";
165394
+ ComponentType4["BILLING_OPERATION"] = "BILLING_OPERATION";
165122
165395
  })(ComponentType2 || (ComponentType2 = {}));
165123
165396
  var WidgetVertical2;
165124
165397
  (function(WidgetVertical4) {
@@ -165417,6 +165690,7 @@ var BackOfficeHostingPlatforms2;
165417
165690
  BackOfficeHostingPlatforms4["GETTING_PAID"] = "GETTING_PAID";
165418
165691
  BackOfficeHostingPlatforms4["DATA"] = "DATA";
165419
165692
  BackOfficeHostingPlatforms4["LITE_DASHBOARD"] = "LITE_DASHBOARD";
165693
+ BackOfficeHostingPlatforms4["PICASSO_EDITOR"] = "PICASSO_EDITOR";
165420
165694
  })(BackOfficeHostingPlatforms2 || (BackOfficeHostingPlatforms2 = {}));
165421
165695
  var DtsDefinitionType2;
165422
165696
  (function(DtsDefinitionType4) {
@@ -166329,6 +166603,7 @@ var Escalation2;
166329
166603
  Escalation4["BLOCK_ROLLOUT"] = "BLOCK_ROLLOUT";
166330
166604
  Escalation4["BLOCK_FUTURE_ROLLOUT"] = "BLOCK_FUTURE_ROLLOUT";
166331
166605
  Escalation4["OPEN_BUG_SLA"] = "OPEN_BUG_SLA";
166606
+ Escalation4["VISIBILITY"] = "VISIBILITY";
166332
166607
  })(Escalation2 || (Escalation2 = {}));
166333
166608
  var ImportanceLevel2;
166334
166609
  (function(ImportanceLevel4) {
@@ -167314,6 +167589,7 @@ var BackOfficeHostingPlatforms3;
167314
167589
  BackOfficeHostingPlatforms4["GETTING_PAID"] = "GETTING_PAID";
167315
167590
  BackOfficeHostingPlatforms4["DATA"] = "DATA";
167316
167591
  BackOfficeHostingPlatforms4["LITE_DASHBOARD"] = "LITE_DASHBOARD";
167592
+ BackOfficeHostingPlatforms4["PICASSO_EDITOR"] = "PICASSO_EDITOR";
167317
167593
  })(BackOfficeHostingPlatforms3 || (BackOfficeHostingPlatforms3 = {}));
167318
167594
  var DtsDefinitionType3;
167319
167595
  (function(DtsDefinitionType4) {
@@ -168226,6 +168502,7 @@ var Escalation3;
168226
168502
  Escalation4["BLOCK_ROLLOUT"] = "BLOCK_ROLLOUT";
168227
168503
  Escalation4["BLOCK_FUTURE_ROLLOUT"] = "BLOCK_FUTURE_ROLLOUT";
168228
168504
  Escalation4["OPEN_BUG_SLA"] = "OPEN_BUG_SLA";
168505
+ Escalation4["VISIBILITY"] = "VISIBILITY";
168229
168506
  })(Escalation3 || (Escalation3 = {}));
168230
168507
  var ImportanceLevel3;
168231
168508
  (function(ImportanceLevel4) {
@@ -169269,7 +169546,7 @@ import { createReadStream, statSync } from "fs";
169269
169546
 
169270
169547
  // ../../node_modules/@wix/app-cloud-uploader/node_modules/p-retry/index.js
169271
169548
  init_esm_shims();
169272
- var import_retry2 = __toESM(require_retry2(), 1);
169549
+ var import_retry2 = __toESM(require_retry4(), 1);
169273
169550
  var networkErrorMsgs = /* @__PURE__ */ new Set([
169274
169551
  "Failed to fetch",
169275
169552
  // Chrome
@@ -171624,7 +171901,8 @@ function useExtensions() {
171624
171901
  Event: [],
171625
171902
  ServicePlugin: [],
171626
171903
  SitePlugin: [],
171627
- Monitoring: []
171904
+ Monitoring: [],
171905
+ SiteComponent: []
171628
171906
  }
171629
171907
  );
171630
171908
  extensionsMap.DashboardPage = extensionsMap.DashboardPage.sort(
@@ -172151,6 +172429,42 @@ function virtualBlocksWidgetScriptAssets(model) {
172151
172429
  ])
172152
172430
  );
172153
172431
  }
172432
+ function virtualModuleIdForSiteComponentScriptAsset(componentId) {
172433
+ return `wix/scripts/site-components/${componentId}/index.js`;
172434
+ }
172435
+ function virtualSiteComponentScriptAssets(model) {
172436
+ return new Map(
172437
+ model.components.filter((0, import_variant28.isType)(DevCenterComponent.SiteComponent)).map((comp) => [
172438
+ virtualModuleIdForSiteComponentScriptAsset(comp.id),
172439
+ comp
172440
+ ])
172441
+ );
172442
+ }
172443
+ async function loadSiteComponentConfig(projectFolder, relativePath) {
172444
+ const configRelativePath = replaceExtension(relativePath, "json");
172445
+ const configPath = join9(projectFolder, configRelativePath);
172446
+ const isConfigExist = await pathExists(configPath);
172447
+ if (!isConfigExist) {
172448
+ throw new CliError({
172449
+ code: CliErrorCode.SiteComponentConfigNotFound({
172450
+ configPath: configRelativePath
172451
+ }),
172452
+ cause: null
172453
+ });
172454
+ }
172455
+ const config = await readJson(configPath);
172456
+ const parsedConfig = siteComponentConfigSchema.safeParse(config);
172457
+ if (parsedConfig.success) {
172458
+ return parsedConfig.data;
172459
+ }
172460
+ throw new CliError({
172461
+ code: CliErrorCode.InvalidConfigSchemaError({
172462
+ configPath: configRelativePath,
172463
+ zodError: parsedConfig.error
172464
+ }),
172465
+ cause: parsedConfig.error
172466
+ });
172467
+ }
172154
172468
  async function loadEmbeddedScriptParamsOverride(embeddedScriptPath) {
172155
172469
  const paramsOverridePath = join9(
172156
172470
  dirname3(embeddedScriptPath),
@@ -172180,6 +172494,11 @@ var EMBEDDED_SCRIPTS_PATTERN = join10(
172180
172494
  "**",
172181
172495
  "embedded.html"
172182
172496
  );
172497
+ var SITE_COMPONENTS_PATTERN = join10(
172498
+ SITE_COMPONENTS_DIR,
172499
+ "**",
172500
+ "component.{ts,tsx,js,jsx}"
172501
+ );
172183
172502
  var SITE_WIDGETS_ELEMENT_PATTERN = join10(
172184
172503
  SITE_WIDGETS_DIR,
172185
172504
  "**",
@@ -172287,11 +172606,11 @@ var BLOCKS_WIDGETS_PANELS_PATTERN = join10(
172287
172606
  "**",
172288
172607
  BLOCKS_WIDGETS_PANEL_PATTERN
172289
172608
  );
172290
- var BLOCKS_WIDGET_API_PATERN = "api.{ts,js}";
172609
+ var BLOCKS_WIDGET_API_PATTERN = "api.{ts,js}";
172291
172610
  async function loadBlocksWidgetAndPanels(blocksWidgetPath) {
172292
172611
  const { dir: blocksWidgetFolderPath } = parse5(blocksWidgetPath);
172293
172612
  const blocksWidgetConfig = await loadBlocksWidgetComponentConfig(blocksWidgetPath);
172294
- const blocksWidgetAPIPath = (await globby2(normalizeGlobbyPattern(BLOCKS_WIDGET_API_PATERN), {
172613
+ const blocksWidgetAPIPath = (await globby2(normalizeGlobbyPattern(BLOCKS_WIDGET_API_PATTERN), {
172295
172614
  cwd: blocksWidgetFolderPath
172296
172615
  }))[0];
172297
172616
  if (!blocksWidgetAPIPath) {
@@ -172481,6 +172800,22 @@ async function loadSitePluginComponents(projectFolder, wixDependencies) {
172481
172800
  }
172482
172801
  return sitePlugins;
172483
172802
  }
172803
+ async function loadSiteComponent(projectFolder, relativePath) {
172804
+ const config = await loadSiteComponentConfig(projectFolder, relativePath);
172805
+ return DevCenterComponent.SiteComponent({
172806
+ ...config,
172807
+ relativePath,
172808
+ platforms: [PlatformType.Editor(), PlatformType.Site()]
172809
+ });
172810
+ }
172811
+ async function loadSiteComponents(projectFolder) {
172812
+ const paths = await globby2(normalizeGlobbyPattern(SITE_COMPONENTS_PATTERN), {
172813
+ cwd: projectFolder
172814
+ });
172815
+ return await Promise.all(
172816
+ paths.map((pagePath) => loadSiteComponent(projectFolder, pagePath))
172817
+ );
172818
+ }
172484
172819
 
172485
172820
  // src/dev-center/components/site/frontend-dependencies.ts
172486
172821
  init_esm_shims();
@@ -172676,7 +173011,8 @@ async function loadDevCenterComponents({
172676
173011
  webMethod,
172677
173012
  servicePlugins,
172678
173013
  events,
172679
- monitoringComponent
173014
+ monitoringComponent,
173015
+ siteComponents
172680
173016
  ] = await Promise.all([
172681
173017
  loadDashboardPageComponents(projectFolder),
172682
173018
  loadDashboardPluginComponents(projectFolder),
@@ -172690,7 +173026,8 @@ async function loadDevCenterComponents({
172690
173026
  loadBackendWebMethods(projectFolder),
172691
173027
  loadServicePlugins(projectFolder),
172692
173028
  loadBackendEvents(projectFolder),
172693
- loadMonitoringComponent(projectFolder, config)
173029
+ loadMonitoringComponent(projectFolder, config),
173030
+ loadSiteComponents(projectFolder)
172694
173031
  ]);
172695
173032
  const dashboardSidebarCategories = loadDashboardSidebarCategoryComponent(config);
172696
173033
  const hasBackendComponents = apis.length + servicePlugins.length + events.length > 0;
@@ -172710,7 +173047,8 @@ async function loadDevCenterComponents({
172710
173047
  ...topologyComponent,
172711
173048
  ...sitePlugins,
172712
173049
  ...monitoringComponent,
172713
- ...blocksComponents
173050
+ ...blocksComponents,
173051
+ ...siteComponents
172714
173052
  ];
172715
173053
  }
172716
173054
 
@@ -173322,10 +173660,8 @@ export {
173322
173660
  use_input_default,
173323
173661
  Text2 as Text,
173324
173662
  InputState,
173325
- InfoIcon,
173326
173663
  PointerIcon,
173327
173664
  PointerSmallIcon,
173328
- SuccessIcon,
173329
173665
  Learn,
173330
173666
  Cart,
173331
173667
  Statistics,
@@ -173465,6 +173801,9 @@ export {
173465
173801
  virtualModuleIdForBlocksComponentScriptAsset,
173466
173802
  virtualBlocksWidgetPanelScriptAssets,
173467
173803
  virtualBlocksWidgetScriptAssets,
173804
+ virtualModuleIdForSiteComponentScriptAsset,
173805
+ virtualSiteComponentScriptAssets,
173806
+ SITE_COMPONENTS_PATTERN,
173468
173807
  SITE_WIDGETS_ELEMENT_PATTERN,
173469
173808
  SITE_WIDGETS_PANEL_PATTERN,
173470
173809
  SITE_PLUGINS_PLUGIN_PATTERN,
@@ -173656,4 +173995,4 @@ mustache/mustache.mjs:
173656
173995
  * http://github.com/janl/mustache.js
173657
173996
  *)
173658
173997
  */
173659
- //# sourceMappingURL=chunk-GGQMSU4O.js.map
173998
+ //# sourceMappingURL=chunk-ZLLXHWZF.js.map