@wix/cli-app 1.1.82 → 1.1.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{AddPermissionCommand-SXPAYSAF.js → AddPermissionCommand-7NHTU6UK.js} +2 -2
- package/build/{CreateVersionCommand-CL7JTSHV.js → CreateVersionCommand-TMOTI3L2.js} +3 -3
- package/build/{DevCommand-NKKM4UEH.js → DevCommand-GI7FE4YH.js} +10 -10
- package/build/{GenerateCommand-EK35R76L.js → GenerateCommand-2WWALPNK.js} +8 -8
- package/build/{LogsCommand-NCV5AKYF.js → LogsCommand-DA7V6ZFA.js} +3 -3
- package/build/PreviewCommand-QNRNYIWF.js +19 -0
- package/build/ReleaseCommand-PTADV5RU.js +28 -0
- package/build/{ReleaseCommand-FJKPKE3Y.js.map → ReleaseCommand-PTADV5RU.js.map} +1 -1
- package/build/ServeCommand-APSJZ6O2.js +43 -0
- package/build/ServeCommand-APSJZ6O2.js.map +1 -0
- package/build/{build-VSYNDSED.js → build-IGJFWIV4.js} +26 -9
- package/build/build-IGJFWIV4.js.map +1 -0
- package/build/{chunk-WBXDIEUS.js → chunk-2XND6NQC.js} +2 -2
- package/build/{chunk-K4IODCQP.js → chunk-3X2VYRBF.js} +3 -5
- package/build/chunk-3X2VYRBF.js.map +1 -0
- package/build/{chunk-FGCBIHDS.js → chunk-4CJ4YXNM.js} +84 -17
- package/build/chunk-4CJ4YXNM.js.map +1 -0
- package/build/{chunk-5LGI6O3F.js → chunk-5LR3QCQE.js} +2 -2
- package/build/{chunk-QSLRE7OK.js → chunk-7TK2EJEL.js} +2 -2
- package/build/{chunk-HR6CTO67.js → chunk-7VPJQENX.js} +2 -2
- package/build/{chunk-XDWVTYW3.js → chunk-AA4VTHKI.js} +20 -2
- package/build/{chunk-XDWVTYW3.js.map → chunk-AA4VTHKI.js.map} +1 -1
- package/build/{chunk-I2PLZT4A.js → chunk-DBB3BUZK.js} +2 -2
- package/build/{chunk-75BL4FR5.js → chunk-ETXWRJRS.js} +5 -5
- package/build/{chunk-FTEVVMFS.js → chunk-FZVW2ZKM.js} +2 -2
- package/build/{chunk-IB2KM2Q7.js → chunk-HFK5BPUE.js} +7 -7
- package/build/{chunk-3LJH5WAS.js → chunk-IBZYUQSD.js} +5 -5
- package/build/{chunk-GGQMSU4O.js → chunk-JCCY3Z4D.js} +736 -294
- package/build/{chunk-GGQMSU4O.js.map → chunk-JCCY3Z4D.js.map} +1 -1
- package/build/{chunk-PGKXOCZN.js → chunk-LAUNVDO3.js} +273 -118
- package/build/chunk-LAUNVDO3.js.map +1 -0
- package/build/{chunk-3GSDI3OJ.js → chunk-PPW6CJVK.js} +2 -2
- package/build/{chunk-KU4PN6UU.js → chunk-SC46ZFM3.js} +3 -3
- package/build/{chunk-OGO22IKX.js → chunk-UTLT7RZ6.js} +3 -3
- package/build/{chunk-VARU4VGB.js → chunk-YXZEWHQ3.js} +7 -9
- package/build/{chunk-VARU4VGB.js.map → chunk-YXZEWHQ3.js.map} +1 -1
- package/build/cloudflare-runtime/entry.js +2 -2
- package/build/cloudflare-runtime/getRegisteredExtensions.js +1 -1
- package/build/index.js +34 -31
- package/build/index.js.map +1 -1
- package/build/platform-sdk/chunk-6NLQHDP6.js +2 -0
- package/build/platform-sdk/chunk-6NLQHDP6.js.map +1 -0
- package/build/platform-sdk/chunk-BGTZ3RNN.js +2 -0
- package/build/platform-sdk/chunk-BGTZ3RNN.js.map +1 -0
- package/build/platform-sdk/{chunk-3WHQP2RD.js → chunk-MM2KVUBI.js} +2 -2
- package/build/platform-sdk/dashboard.js +1 -1
- package/build/platform-sdk/editor.js +1 -1
- package/build/platform-sdk/sdk-context.js +1 -1
- package/build/platform-sdk/sdk-context.js.map +1 -1
- package/build/platform-sdk/site.js +1 -1
- package/build/{preview-CLBQELU3.js → preview-RO62F34N.js} +13 -14
- package/build/{preview-CLBQELU3.js.map → preview-RO62F34N.js.map} +1 -1
- package/build/{release-VZ2GWJE2.js → release-BC2WPQAP.js} +15 -16
- package/build/{release-VZ2GWJE2.js.map → release-BC2WPQAP.js.map} +1 -1
- package/build/{render-command-OT7HQRPA.js → render-command-DDRNTE6L.js} +6 -6
- package/package.json +11 -11
- package/build/PreviewCommand-KCCZ4ECQ.js +0 -20
- package/build/ReleaseCommand-FJKPKE3Y.js +0 -29
- package/build/ServeCommand-B4GJL65A.js +0 -169
- package/build/ServeCommand-B4GJL65A.js.map +0 -1
- package/build/build-VSYNDSED.js.map +0 -1
- package/build/chunk-FGCBIHDS.js.map +0 -1
- package/build/chunk-K4IODCQP.js.map +0 -1
- package/build/chunk-PGKXOCZN.js.map +0 -1
- package/build/chunk-PS7R6MWD.js +0 -92
- package/build/chunk-PS7R6MWD.js.map +0 -1
- package/build/platform-sdk/chunk-42XIZ4MH.js +0 -2
- package/build/platform-sdk/chunk-42XIZ4MH.js.map +0 -1
- package/build/platform-sdk/chunk-MQEY2AKT.js +0 -2
- package/build/platform-sdk/chunk-MQEY2AKT.js.map +0 -1
- /package/build/{AddPermissionCommand-SXPAYSAF.js.map → AddPermissionCommand-7NHTU6UK.js.map} +0 -0
- /package/build/{CreateVersionCommand-CL7JTSHV.js.map → CreateVersionCommand-TMOTI3L2.js.map} +0 -0
- /package/build/{DevCommand-NKKM4UEH.js.map → DevCommand-GI7FE4YH.js.map} +0 -0
- /package/build/{GenerateCommand-EK35R76L.js.map → GenerateCommand-2WWALPNK.js.map} +0 -0
- /package/build/{LogsCommand-NCV5AKYF.js.map → LogsCommand-DA7V6ZFA.js.map} +0 -0
- /package/build/{PreviewCommand-KCCZ4ECQ.js.map → PreviewCommand-QNRNYIWF.js.map} +0 -0
- /package/build/{chunk-WBXDIEUS.js.map → chunk-2XND6NQC.js.map} +0 -0
- /package/build/{chunk-5LGI6O3F.js.map → chunk-5LR3QCQE.js.map} +0 -0
- /package/build/{chunk-QSLRE7OK.js.map → chunk-7TK2EJEL.js.map} +0 -0
- /package/build/{chunk-HR6CTO67.js.map → chunk-7VPJQENX.js.map} +0 -0
- /package/build/{chunk-I2PLZT4A.js.map → chunk-DBB3BUZK.js.map} +0 -0
- /package/build/{chunk-75BL4FR5.js.map → chunk-ETXWRJRS.js.map} +0 -0
- /package/build/{chunk-FTEVVMFS.js.map → chunk-FZVW2ZKM.js.map} +0 -0
- /package/build/{chunk-IB2KM2Q7.js.map → chunk-HFK5BPUE.js.map} +0 -0
- /package/build/{chunk-3LJH5WAS.js.map → chunk-IBZYUQSD.js.map} +0 -0
- /package/build/{chunk-3GSDI3OJ.js.map → chunk-PPW6CJVK.js.map} +0 -0
- /package/build/{chunk-KU4PN6UU.js.map → chunk-SC46ZFM3.js.map} +0 -0
- /package/build/{chunk-OGO22IKX.js.map → chunk-UTLT7RZ6.js.map} +0 -0
- /package/build/platform-sdk/{chunk-3WHQP2RD.js.map → chunk-MM2KVUBI.js.map} +0 -0
- /package/build/{render-command-OT7HQRPA.js.map → render-command-DDRNTE6L.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.
|
|
139057
|
+
version: "1.1.84",
|
|
138824
139058
|
author: "Amit Dahan",
|
|
138825
139059
|
dependencies: {
|
|
138826
139060
|
esbuild: "^0.21.3",
|
|
@@ -138833,16 +139067,16 @@ var package_default = {
|
|
|
138833
139067
|
"@types/mustache": "^4.2.5",
|
|
138834
139068
|
"@types/react": "^18.3.3",
|
|
138835
139069
|
"@types/semver": "^7.5.8",
|
|
138836
|
-
"@wix/ambassador-blocks-v1-application-structure": "^1.0.
|
|
138837
|
-
"@wix/ambassador-blocks-v1-blocks-app": "^1.0.
|
|
138838
|
-
"@wix/ambassador-cli-site-override-service-v1-site-override": "^1.0.
|
|
138839
|
-
"@wix/ambassador-ctp-app-cloud-backend-service-v1-app-cloud-backend-deployment": "^1.0.
|
|
138840
|
-
"@wix/ambassador-ctp-gradual-rollout-v1-app-config": "^1.0.
|
|
138841
|
-
"@wix/ambassador-devcenter-apps-v1-app": "^1.0.
|
|
138842
|
-
"@wix/ambassador-devcenter-components-v1-component": "^1.0.
|
|
139070
|
+
"@wix/ambassador-blocks-v1-application-structure": "^1.0.4",
|
|
139071
|
+
"@wix/ambassador-blocks-v1-blocks-app": "^1.0.59",
|
|
139072
|
+
"@wix/ambassador-cli-site-override-service-v1-site-override": "^1.0.8",
|
|
139073
|
+
"@wix/ambassador-ctp-app-cloud-backend-service-v1-app-cloud-backend-deployment": "^1.0.9",
|
|
139074
|
+
"@wix/ambassador-ctp-gradual-rollout-v1-app-config": "^1.0.74",
|
|
139075
|
+
"@wix/ambassador-devcenter-apps-v1-app": "^1.0.597",
|
|
139076
|
+
"@wix/ambassador-devcenter-components-v1-component": "^1.0.459",
|
|
138843
139077
|
"@wix/app-cloud-uploader": "^1.18.0",
|
|
138844
139078
|
"@wix/arm-client": "workspace:*",
|
|
138845
|
-
"@wix/bi-logger-dev-tools-data": "^1.
|
|
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:*",
|
|
@@ -138901,7 +139135,7 @@ var package_default = {
|
|
|
138901
139135
|
"zod-to-json-schema": "^3.24.3"
|
|
138902
139136
|
},
|
|
138903
139137
|
engines: {
|
|
138904
|
-
node: ">=
|
|
139138
|
+
node: ">= 20.9.0"
|
|
138905
139139
|
},
|
|
138906
139140
|
exports: {
|
|
138907
139141
|
".": "./build/index.js",
|
|
@@ -139108,7 +139342,8 @@ var CliSystemErrorCode = (0, import_variant.variant)({
|
|
|
139108
139342
|
FailedToGetSdkSlotData: {},
|
|
139109
139343
|
FailedToListComponentByComponentType: {},
|
|
139110
139344
|
FailedToParseBackofficeExtensionContainer: {},
|
|
139111
|
-
FailedToParseBackofficePages: {}
|
|
139345
|
+
FailedToParseBackofficePages: {},
|
|
139346
|
+
FailedToCleanDistFolder: {}
|
|
139112
139347
|
});
|
|
139113
139348
|
var CliUserErrorCode = (0, import_variant.variant)({
|
|
139114
139349
|
LatestVersionOfCreateAppRequired: (0, import_variant.fields)(),
|
|
@@ -139198,6 +139433,7 @@ var CliUserErrorCode = (0, import_variant.variant)({
|
|
|
139198
139433
|
FailedToApplySiteFsManagerFsUpdates: {},
|
|
139199
139434
|
FailedToApplySiteFsManagerExternalUpdates: {},
|
|
139200
139435
|
CreateVersionDeprecated: (0, import_variant.fields)(),
|
|
139436
|
+
ServeDeprecated: (0, import_variant.fields)(),
|
|
139201
139437
|
CannotFindConfigReferencedAsset: (0, import_variant.fields)(),
|
|
139202
139438
|
CannotReleaseApplicationInReview: {},
|
|
139203
139439
|
FailedToCreateIntellisenseAdapter: {},
|
|
@@ -139208,7 +139444,9 @@ var CliUserErrorCode = (0, import_variant.variant)({
|
|
|
139208
139444
|
DeploymentPipelineFailed: (0, import_variant.fields)(),
|
|
139209
139445
|
InsufficientNonInterractiveReleaseParameters: {},
|
|
139210
139446
|
AppNameArgumentIsInvalid: (0, import_variant.fields)(),
|
|
139211
|
-
CannotReleaseMinorInNoninteractive: {}
|
|
139447
|
+
CannotReleaseMinorInNoninteractive: {},
|
|
139448
|
+
SiteComponentConfigNotFound: (0, import_variant.fields)(),
|
|
139449
|
+
FailedToImportCliApp: {}
|
|
139212
139450
|
});
|
|
139213
139451
|
var CliErrorCode = (0, import_variant.variant)({
|
|
139214
139452
|
...CliSystemErrorCode,
|
|
@@ -148475,7 +148713,7 @@ init_esm_shims();
|
|
|
148475
148713
|
|
|
148476
148714
|
// ../cli-ui-kit/src/components/ConfirmInput/ConfirmInput.tsx
|
|
148477
148715
|
init_esm_shims();
|
|
148478
|
-
var
|
|
148716
|
+
var import_react45 = __toESM(require_react(), 1);
|
|
148479
148717
|
var import_variant6 = __toESM(require_lib(), 1);
|
|
148480
148718
|
|
|
148481
148719
|
// ../cli-ui-kit/src/components/Text.tsx
|
|
@@ -148522,7 +148760,7 @@ var InputState = (0, import_variant4.variant)(
|
|
|
148522
148760
|
|
|
148523
148761
|
// ../cli-ui-kit/src/components/InputLabel.tsx
|
|
148524
148762
|
init_esm_shims();
|
|
148525
|
-
var
|
|
148763
|
+
var import_react41 = __toESM(require_react(), 1);
|
|
148526
148764
|
|
|
148527
148765
|
// ../cli-ui-kit/src/icons/index.ts
|
|
148528
148766
|
init_esm_shims();
|
|
@@ -148534,131 +148772,124 @@ var ErrorIcon = () => {
|
|
|
148534
148772
|
return /* @__PURE__ */ import_react29.default.createElement(Text2, null, isUnicodeSupported() ? "\u2716" : "\xD7");
|
|
148535
148773
|
};
|
|
148536
148774
|
|
|
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
148775
|
// ../cli-ui-kit/src/icons/Pointer.tsx
|
|
148545
148776
|
init_esm_shims();
|
|
148546
|
-
var
|
|
148777
|
+
var import_react30 = __toESM(require_react(), 1);
|
|
148547
148778
|
var PointerIcon = ({ appearance }) => {
|
|
148548
148779
|
switch (appearance) {
|
|
148549
148780
|
case "exclamation":
|
|
148550
|
-
return /* @__PURE__ */
|
|
148781
|
+
return /* @__PURE__ */ import_react30.default.createElement(Text2, null, "!");
|
|
148551
148782
|
case "triangle":
|
|
148552
|
-
return /* @__PURE__ */
|
|
148783
|
+
return /* @__PURE__ */ import_react30.default.createElement(Text2, null, isUnicodeSupported() ? "\u25B6" : ">");
|
|
148553
148784
|
default:
|
|
148554
|
-
return /* @__PURE__ */
|
|
148785
|
+
return /* @__PURE__ */ import_react30.default.createElement(Text2, null, isUnicodeSupported() ? "\u276F" : ">");
|
|
148555
148786
|
}
|
|
148556
148787
|
};
|
|
148557
148788
|
|
|
148558
148789
|
// ../cli-ui-kit/src/icons/PointerSmall.tsx
|
|
148559
148790
|
init_esm_shims();
|
|
148560
|
-
var
|
|
148791
|
+
var import_react31 = __toESM(require_react(), 1);
|
|
148561
148792
|
var PointerSmallIcon = () => {
|
|
148562
|
-
return /* @__PURE__ */
|
|
148793
|
+
return /* @__PURE__ */ import_react31.default.createElement(Text2, null, isUnicodeSupported() ? "\u203A" : "\xBB");
|
|
148563
148794
|
};
|
|
148564
148795
|
|
|
148565
148796
|
// ../cli-ui-kit/src/icons/QuestionMark.tsx
|
|
148566
148797
|
init_esm_shims();
|
|
148567
|
-
var
|
|
148798
|
+
var import_react32 = __toESM(require_react(), 1);
|
|
148568
148799
|
var QuestionMarkIcon = () => {
|
|
148569
|
-
return /* @__PURE__ */
|
|
148800
|
+
return /* @__PURE__ */ import_react32.default.createElement(Text2, null, "?");
|
|
148570
148801
|
};
|
|
148571
148802
|
|
|
148572
148803
|
// ../cli-ui-kit/src/icons/Radio.tsx
|
|
148573
148804
|
init_esm_shims();
|
|
148574
|
-
var
|
|
148805
|
+
var import_react33 = __toESM(require_react(), 1);
|
|
148575
148806
|
var RadioIcon = ({ selected }) => {
|
|
148576
148807
|
let content = isUnicodeSupported() ? "\u25CB" : "o";
|
|
148577
148808
|
if (selected) {
|
|
148578
148809
|
content = isUnicodeSupported() ? "\u25CF" : "\u2022";
|
|
148579
148810
|
}
|
|
148580
|
-
return /* @__PURE__ */
|
|
148811
|
+
return /* @__PURE__ */ import_react33.default.createElement(Text2, null, content);
|
|
148581
148812
|
};
|
|
148582
148813
|
|
|
148583
148814
|
// ../cli-ui-kit/src/icons/Success.tsx
|
|
148584
148815
|
init_esm_shims();
|
|
148585
|
-
var
|
|
148816
|
+
var import_react34 = __toESM(require_react(), 1);
|
|
148586
148817
|
var SuccessIcon = () => {
|
|
148587
|
-
return /* @__PURE__ */
|
|
148818
|
+
return /* @__PURE__ */ import_react34.default.createElement(Text2, null, isUnicodeSupported() ? "\u2714" : "\u221A");
|
|
148588
148819
|
};
|
|
148589
148820
|
|
|
148590
148821
|
// ../cli-ui-kit/src/icons/Warning.tsx
|
|
148591
148822
|
init_esm_shims();
|
|
148592
|
-
var
|
|
148823
|
+
var import_react35 = __toESM(require_react(), 1);
|
|
148593
148824
|
var WarningIcon = () => {
|
|
148594
|
-
return /* @__PURE__ */
|
|
148825
|
+
return /* @__PURE__ */ import_react35.default.createElement(Text2, null, isUnicodeSupported() ? "\u26A0" : "\u203C");
|
|
148595
148826
|
};
|
|
148596
148827
|
|
|
148597
148828
|
// ../cli-ui-kit/src/icons/Insight.tsx
|
|
148598
148829
|
init_esm_shims();
|
|
148599
|
-
var
|
|
148830
|
+
var import_react36 = __toESM(require_react(), 1);
|
|
148600
148831
|
var InsightIcon = () => {
|
|
148601
|
-
return /* @__PURE__ */
|
|
148832
|
+
return /* @__PURE__ */ import_react36.default.createElement(Text2, null, isUnicodeSupported() ? "\u{1F4A1}" : "!");
|
|
148602
148833
|
};
|
|
148603
148834
|
|
|
148604
148835
|
// ../cli-ui-kit/src/icons/Learn.tsx
|
|
148605
148836
|
init_esm_shims();
|
|
148606
|
-
var
|
|
148837
|
+
var import_react37 = __toESM(require_react(), 1);
|
|
148607
148838
|
var Learn = () => {
|
|
148608
|
-
return /* @__PURE__ */
|
|
148839
|
+
return /* @__PURE__ */ import_react37.default.createElement(Text2, null, isUnicodeSupported() ? "\u{1F4DA}" : ">");
|
|
148609
148840
|
};
|
|
148610
148841
|
|
|
148611
148842
|
// ../cli-ui-kit/src/icons/Cart.tsx
|
|
148612
148843
|
init_esm_shims();
|
|
148613
|
-
var
|
|
148844
|
+
var import_react38 = __toESM(require_react(), 1);
|
|
148614
148845
|
var Cart = () => {
|
|
148615
|
-
return /* @__PURE__ */
|
|
148846
|
+
return /* @__PURE__ */ import_react38.default.createElement(Text2, null, isUnicodeSupported() ? "\u{1F6D2}" : ">");
|
|
148616
148847
|
};
|
|
148617
148848
|
|
|
148618
148849
|
// ../cli-ui-kit/src/icons/Statistics.tsx
|
|
148619
148850
|
init_esm_shims();
|
|
148620
|
-
var
|
|
148851
|
+
var import_react39 = __toESM(require_react(), 1);
|
|
148621
148852
|
var Statistics = () => {
|
|
148622
|
-
return /* @__PURE__ */
|
|
148853
|
+
return /* @__PURE__ */ import_react39.default.createElement(Text2, null, isUnicodeSupported() ? "\u{1F4CA}" : ">");
|
|
148623
148854
|
};
|
|
148624
148855
|
|
|
148625
148856
|
// ../cli-ui-kit/src/icons/Rocket.tsx
|
|
148626
148857
|
init_esm_shims();
|
|
148627
|
-
var
|
|
148858
|
+
var import_react40 = __toESM(require_react(), 1);
|
|
148628
148859
|
var Rocket = () => {
|
|
148629
|
-
return /* @__PURE__ */
|
|
148860
|
+
return /* @__PURE__ */ import_react40.default.createElement(Text2, null, isUnicodeSupported() ? "\u{1F680}" : ">");
|
|
148630
148861
|
};
|
|
148631
148862
|
|
|
148632
148863
|
// ../cli-ui-kit/src/components/InputLabel.tsx
|
|
148633
148864
|
var InputLabel = ({ children, icon }) => {
|
|
148634
|
-
return /* @__PURE__ */
|
|
148865
|
+
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
148866
|
};
|
|
148636
148867
|
|
|
148637
148868
|
// ../cli-ui-kit/src/components/ConfirmInput/Placeholder.tsx
|
|
148638
148869
|
init_esm_shims();
|
|
148639
|
-
var
|
|
148870
|
+
var import_react42 = __toESM(require_react(), 1);
|
|
148640
148871
|
var import_variant5 = __toESM(require_lib(), 1);
|
|
148641
148872
|
var Placeholder = ({ inputState }) => {
|
|
148642
148873
|
return (0, import_variant5.match)(inputState, {
|
|
148643
|
-
NotSubmitted: ({ value: value2 }) => /* @__PURE__ */
|
|
148644
|
-
Submitted: ({ value: value2 }) => /* @__PURE__ */
|
|
148874
|
+
NotSubmitted: ({ value: value2 }) => /* @__PURE__ */ import_react42.default.createElement(Text2, { skin: "secondary" }, "(", value2 ? "Y/n" : "y/N", ")"),
|
|
148875
|
+
Submitted: ({ value: value2 }) => /* @__PURE__ */ import_react42.default.createElement(Text2, null, value2 ? "Yes" : "No")
|
|
148645
148876
|
});
|
|
148646
148877
|
};
|
|
148647
148878
|
|
|
148648
148879
|
// ../cli-ui-kit/src/components/ConfirmInput/Input.tsx
|
|
148649
148880
|
init_esm_shims();
|
|
148650
|
-
var
|
|
148881
|
+
var import_react44 = __toESM(require_react(), 1);
|
|
148651
148882
|
|
|
148652
148883
|
// ../../node_modules/ink-text-input/build/index.js
|
|
148653
148884
|
init_esm_shims();
|
|
148654
|
-
var
|
|
148885
|
+
var import_react43 = __toESM(require_react(), 1);
|
|
148655
148886
|
function TextInput({ value: originalValue, placeholder = "", focus = true, mask, highlightPastedText = false, showCursor = true, onChange, onSubmit }) {
|
|
148656
|
-
const [state, setState] = (0,
|
|
148887
|
+
const [state, setState] = (0, import_react43.useState)({
|
|
148657
148888
|
cursorOffset: (originalValue || "").length,
|
|
148658
148889
|
cursorWidth: 0
|
|
148659
148890
|
});
|
|
148660
148891
|
const { cursorOffset, cursorWidth } = state;
|
|
148661
|
-
(0,
|
|
148892
|
+
(0, import_react43.useEffect)(() => {
|
|
148662
148893
|
setState((previousState) => {
|
|
148663
148894
|
if (!focus || !showCursor) {
|
|
148664
148895
|
return previousState;
|
|
@@ -148736,13 +148967,13 @@ function TextInput({ value: originalValue, placeholder = "", focus = true, mask,
|
|
|
148736
148967
|
onChange(nextValue);
|
|
148737
148968
|
}
|
|
148738
148969
|
}, { isActive: focus });
|
|
148739
|
-
return
|
|
148970
|
+
return import_react43.default.createElement(Text, null, placeholder ? value2.length > 0 ? renderedValue : renderedPlaceholder : renderedValue);
|
|
148740
148971
|
}
|
|
148741
148972
|
var build_default = TextInput;
|
|
148742
148973
|
|
|
148743
148974
|
// ../cli-ui-kit/src/components/ConfirmInput/Input.tsx
|
|
148744
148975
|
var Input = ({ initialValue, onSubmit }) => {
|
|
148745
|
-
const handleChange = (0,
|
|
148976
|
+
const handleChange = (0, import_react44.useCallback)(
|
|
148746
148977
|
(rawKey) => {
|
|
148747
148978
|
const key = rawKey.toLowerCase();
|
|
148748
148979
|
if (["y", "n"].includes(key)) {
|
|
@@ -148751,7 +148982,7 @@ var Input = ({ initialValue, onSubmit }) => {
|
|
|
148751
148982
|
},
|
|
148752
148983
|
[onSubmit]
|
|
148753
148984
|
);
|
|
148754
|
-
return /* @__PURE__ */
|
|
148985
|
+
return /* @__PURE__ */ import_react44.default.createElement(
|
|
148755
148986
|
build_default,
|
|
148756
148987
|
{
|
|
148757
148988
|
value: "",
|
|
@@ -148770,22 +149001,22 @@ var ConfirmInput = ({
|
|
|
148770
149001
|
isActive,
|
|
148771
149002
|
onSubmit
|
|
148772
149003
|
}) => {
|
|
148773
|
-
const [inputState, setInputState] = (0,
|
|
149004
|
+
const [inputState, setInputState] = (0, import_react45.useState)(
|
|
148774
149005
|
() => InputState.NotSubmitted(initialValue)
|
|
148775
149006
|
);
|
|
148776
|
-
const handleSubmit = (0,
|
|
149007
|
+
const handleSubmit = (0, import_react45.useCallback)(
|
|
148777
149008
|
(value2) => {
|
|
148778
149009
|
setInputState(InputState.Submitted(value2));
|
|
148779
149010
|
onSubmit(value2);
|
|
148780
149011
|
},
|
|
148781
149012
|
[onSubmit]
|
|
148782
149013
|
);
|
|
148783
|
-
(0,
|
|
149014
|
+
(0, import_react45.useEffect)(() => {
|
|
148784
149015
|
if (isActive) {
|
|
148785
149016
|
setInputState(InputState.NotSubmitted(inputState.value));
|
|
148786
149017
|
}
|
|
148787
149018
|
}, [isActive]);
|
|
148788
|
-
return /* @__PURE__ */
|
|
149019
|
+
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
149020
|
};
|
|
148790
149021
|
|
|
148791
149022
|
// ../cli-ui-kit/src/components/SelectInput/index.ts
|
|
@@ -148793,7 +149024,7 @@ init_esm_shims();
|
|
|
148793
149024
|
|
|
148794
149025
|
// ../cli-ui-kit/src/components/SelectInput/SelectInput.tsx
|
|
148795
149026
|
init_esm_shims();
|
|
148796
|
-
var
|
|
149027
|
+
var import_react52 = __toESM(require_react(), 1);
|
|
148797
149028
|
var import_variant10 = __toESM(require_lib(), 1);
|
|
148798
149029
|
|
|
148799
149030
|
// ../../node_modules/ink-select-input/build/index.js
|
|
@@ -148801,7 +149032,7 @@ init_esm_shims();
|
|
|
148801
149032
|
|
|
148802
149033
|
// ../../node_modules/ink-select-input/build/Indicator.js
|
|
148803
149034
|
init_esm_shims();
|
|
148804
|
-
var
|
|
149035
|
+
var import_react46 = __toESM(require_react(), 1);
|
|
148805
149036
|
|
|
148806
149037
|
// ../../node_modules/figures/index.js
|
|
148807
149038
|
init_esm_shims();
|
|
@@ -149106,39 +149337,39 @@ var figures_default = figures;
|
|
|
149106
149337
|
|
|
149107
149338
|
// ../../node_modules/ink-select-input/build/Indicator.js
|
|
149108
149339
|
function Indicator({ isSelected = false }) {
|
|
149109
|
-
return
|
|
149340
|
+
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
149341
|
}
|
|
149111
149342
|
var Indicator_default = Indicator;
|
|
149112
149343
|
|
|
149113
149344
|
// ../../node_modules/ink-select-input/build/Item.js
|
|
149114
149345
|
init_esm_shims();
|
|
149115
|
-
var
|
|
149346
|
+
var React32 = __toESM(require_react(), 1);
|
|
149116
149347
|
function Item({ isSelected = false, label }) {
|
|
149117
|
-
return
|
|
149348
|
+
return React32.createElement(Text, { color: isSelected ? "blue" : void 0 }, label);
|
|
149118
149349
|
}
|
|
149119
149350
|
var Item_default = Item;
|
|
149120
149351
|
|
|
149121
149352
|
// ../../node_modules/ink-select-input/build/SelectInput.js
|
|
149122
149353
|
init_esm_shims();
|
|
149354
|
+
var import_react47 = __toESM(require_react(), 1);
|
|
149123
149355
|
var import_react48 = __toESM(require_react(), 1);
|
|
149124
|
-
var import_react49 = __toESM(require_react(), 1);
|
|
149125
149356
|
var import_lodash = __toESM(require_lodash(), 1);
|
|
149126
149357
|
var import_arr_rotate = __toESM(require_arr_rotate(), 1);
|
|
149127
149358
|
function SelectInput({ items = [], isFocused = true, initialIndex = 0, indicatorComponent = Indicator_default, itemComponent = Item_default, limit: customLimit, onSelect, onHighlight }) {
|
|
149128
149359
|
const hasLimit = typeof customLimit === "number" && items.length > customLimit;
|
|
149129
149360
|
const limit = hasLimit ? Math.min(customLimit, items.length) : items.length;
|
|
149130
149361
|
const lastIndex = limit - 1;
|
|
149131
|
-
const [rotateIndex, setRotateIndex] = (0,
|
|
149132
|
-
const [selectedIndex, setSelectedIndex] = (0,
|
|
149133
|
-
const previousItems = (0,
|
|
149134
|
-
(0,
|
|
149362
|
+
const [rotateIndex, setRotateIndex] = (0, import_react48.useState)(initialIndex > lastIndex ? lastIndex - initialIndex : 0);
|
|
149363
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react48.useState)(initialIndex ? initialIndex > lastIndex ? lastIndex : initialIndex : 0);
|
|
149364
|
+
const previousItems = (0, import_react48.useRef)(items);
|
|
149365
|
+
(0, import_react48.useEffect)(() => {
|
|
149135
149366
|
if (!(0, import_lodash.default)(previousItems.current.map((item) => item.value), items.map((item) => item.value))) {
|
|
149136
149367
|
setRotateIndex(0);
|
|
149137
149368
|
setSelectedIndex(0);
|
|
149138
149369
|
}
|
|
149139
149370
|
previousItems.current = items;
|
|
149140
149371
|
}, [items]);
|
|
149141
|
-
use_input_default((0,
|
|
149372
|
+
use_input_default((0, import_react48.useCallback)((input, key) => {
|
|
149142
149373
|
if (input === "k" || key.upArrow) {
|
|
149143
149374
|
const lastIndex2 = (hasLimit ? limit : items.length) - 1;
|
|
149144
149375
|
const atFirstIndex = selectedIndex === 0;
|
|
@@ -149180,15 +149411,15 @@ function SelectInput({ items = [], isFocused = true, initialIndex = 0, indicator
|
|
|
149180
149411
|
onHighlight
|
|
149181
149412
|
]), { isActive: isFocused });
|
|
149182
149413
|
const slicedItems = hasLimit ? (0, import_arr_rotate.default)(items, rotateIndex).slice(0, limit) : items;
|
|
149183
|
-
return
|
|
149414
|
+
return import_react47.default.createElement(Box_default, { flexDirection: "column" }, slicedItems.map((item, index) => {
|
|
149184
149415
|
const isSelected = index === selectedIndex;
|
|
149185
149416
|
return (
|
|
149186
149417
|
// @ts-expect-error - `key` can't be optional but `item.value` is generic T
|
|
149187
|
-
|
|
149418
|
+
import_react47.default.createElement(
|
|
149188
149419
|
Box_default,
|
|
149189
149420
|
{ key: item.key ?? item.value },
|
|
149190
|
-
|
|
149191
|
-
|
|
149421
|
+
import_react47.default.createElement(indicatorComponent, { isSelected }),
|
|
149422
|
+
import_react47.default.createElement(itemComponent, { ...item, isSelected })
|
|
149192
149423
|
)
|
|
149193
149424
|
);
|
|
149194
149425
|
}));
|
|
@@ -149197,14 +149428,14 @@ var SelectInput_default = SelectInput;
|
|
|
149197
149428
|
|
|
149198
149429
|
// ../cli-ui-kit/src/components/SelectInput/Indicator.tsx
|
|
149199
149430
|
init_esm_shims();
|
|
149200
|
-
var
|
|
149431
|
+
var import_react49 = __toESM(require_react(), 1);
|
|
149201
149432
|
var Indicator2 = ({ isSelected }) => {
|
|
149202
|
-
return /* @__PURE__ */
|
|
149433
|
+
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
149434
|
};
|
|
149204
149435
|
|
|
149205
149436
|
// ../cli-ui-kit/src/components/SelectInput/Item.tsx
|
|
149206
149437
|
init_esm_shims();
|
|
149207
|
-
var
|
|
149438
|
+
var import_react50 = __toESM(require_react(), 1);
|
|
149208
149439
|
var import_variant8 = __toESM(require_lib(), 1);
|
|
149209
149440
|
|
|
149210
149441
|
// ../cli-ui-kit/src/components/SelectInput/types.ts
|
|
@@ -149222,7 +149453,7 @@ function Item2({
|
|
|
149222
149453
|
value: { description, availability = SelectOptionAvailability.Enabled() }
|
|
149223
149454
|
}) {
|
|
149224
149455
|
const isDisabled = (0, import_variant8.isType)(availability, SelectOptionAvailability.Disabled);
|
|
149225
|
-
return /* @__PURE__ */
|
|
149456
|
+
return /* @__PURE__ */ import_react50.default.createElement(Box_default, null, /* @__PURE__ */ import_react50.default.createElement(
|
|
149226
149457
|
Text2,
|
|
149227
149458
|
{
|
|
149228
149459
|
skin: isDisabled ? "secondary" : isSelected ? "info" : "standard",
|
|
@@ -149230,19 +149461,19 @@ function Item2({
|
|
|
149230
149461
|
},
|
|
149231
149462
|
label
|
|
149232
149463
|
), isSelected && (0, import_variant8.match)(availability, {
|
|
149233
|
-
Disabled: ({ reason }) => /* @__PURE__ */
|
|
149234
|
-
Enabled: () => description && /* @__PURE__ */
|
|
149464
|
+
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")),
|
|
149465
|
+
Enabled: () => description && /* @__PURE__ */ import_react50.default.createElement(Box_default, { marginLeft: 1 }, /* @__PURE__ */ import_react50.default.createElement(Text2, { skin: "secondary" }, "- ", description))
|
|
149235
149466
|
}));
|
|
149236
149467
|
}
|
|
149237
149468
|
|
|
149238
149469
|
// ../cli-ui-kit/src/components/SelectInput/Placeholder.tsx
|
|
149239
149470
|
init_esm_shims();
|
|
149240
|
-
var
|
|
149471
|
+
var import_react51 = __toESM(require_react(), 1);
|
|
149241
149472
|
var import_variant9 = __toESM(require_lib(), 1);
|
|
149242
149473
|
function Placeholder2({ inputState }) {
|
|
149243
149474
|
return (0, import_variant9.match)(inputState, {
|
|
149244
149475
|
NotSubmitted: () => null,
|
|
149245
|
-
Submitted: ({ value: value2 }) => /* @__PURE__ */
|
|
149476
|
+
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
149477
|
});
|
|
149247
149478
|
}
|
|
149248
149479
|
|
|
@@ -149259,16 +149490,16 @@ function SelectInput2({
|
|
|
149259
149490
|
if (!options.length) {
|
|
149260
149491
|
throw new Error("SelectInput: options cannot be empty");
|
|
149261
149492
|
}
|
|
149262
|
-
const [inputState, setInputState] = (0,
|
|
149493
|
+
const [inputState, setInputState] = (0, import_react52.useState)(
|
|
149263
149494
|
() => InputState.NotSubmitted()
|
|
149264
149495
|
);
|
|
149265
|
-
const handleHighlight = (0,
|
|
149496
|
+
const handleHighlight = (0, import_react52.useCallback)(
|
|
149266
149497
|
({ value: value2 }) => {
|
|
149267
149498
|
setInputState(InputState.NotSubmitted(value2));
|
|
149268
149499
|
},
|
|
149269
149500
|
[]
|
|
149270
149501
|
);
|
|
149271
|
-
const handleSelect = (0,
|
|
149502
|
+
const handleSelect = (0, import_react52.useCallback)(
|
|
149272
149503
|
({ value: value2 }) => {
|
|
149273
149504
|
if (!(0, import_variant10.isType)(value2.availability, SelectOptionAvailability.Disabled)) {
|
|
149274
149505
|
setInputState(InputState.Submitted(value2));
|
|
@@ -149277,7 +149508,7 @@ function SelectInput2({
|
|
|
149277
149508
|
},
|
|
149278
149509
|
[onSubmit]
|
|
149279
149510
|
);
|
|
149280
|
-
const items = (0,
|
|
149511
|
+
const items = (0, import_react52.useMemo)(
|
|
149281
149512
|
() => options.map((option) => ({
|
|
149282
149513
|
key: typeof option.value === "string" ? option.value : option.key,
|
|
149283
149514
|
label: option.title,
|
|
@@ -149285,12 +149516,12 @@ function SelectInput2({
|
|
|
149285
149516
|
})),
|
|
149286
149517
|
[options]
|
|
149287
149518
|
);
|
|
149288
|
-
(0,
|
|
149519
|
+
(0, import_react52.useEffect)(() => {
|
|
149289
149520
|
if (isActive) {
|
|
149290
149521
|
setInputState(InputState.NotSubmitted(inputState.value));
|
|
149291
149522
|
}
|
|
149292
149523
|
}, [isActive]);
|
|
149293
|
-
return /* @__PURE__ */
|
|
149524
|
+
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
149525
|
SelectInput_default,
|
|
149295
149526
|
{
|
|
149296
149527
|
items,
|
|
@@ -149306,20 +149537,20 @@ function SelectInput2({
|
|
|
149306
149537
|
|
|
149307
149538
|
// ../cli-ui-kit/src/components/SelectInput/SelectGroupsInput.tsx
|
|
149308
149539
|
init_esm_shims();
|
|
149309
|
-
var
|
|
149540
|
+
var import_react57 = __toESM(require_react(), 1);
|
|
149310
149541
|
var import_variant11 = __toESM(require_lib(), 1);
|
|
149311
149542
|
|
|
149312
149543
|
// ../cli-ui-kit/src/components/TextInput/Input.tsx
|
|
149313
149544
|
init_esm_shims();
|
|
149314
|
-
var
|
|
149545
|
+
var import_react53 = __toESM(require_react(), 1);
|
|
149315
149546
|
var Input2 = ({
|
|
149316
149547
|
onSubmit,
|
|
149317
149548
|
onChange,
|
|
149318
149549
|
placeholder,
|
|
149319
149550
|
showCursor
|
|
149320
149551
|
}) => {
|
|
149321
|
-
const [currentValue, setCurrentValue] = (0,
|
|
149322
|
-
return /* @__PURE__ */
|
|
149552
|
+
const [currentValue, setCurrentValue] = (0, import_react53.useState)("");
|
|
149553
|
+
return /* @__PURE__ */ import_react53.default.createElement(
|
|
149323
149554
|
build_default,
|
|
149324
149555
|
{
|
|
149325
149556
|
showCursor,
|
|
@@ -149342,7 +149573,7 @@ var Input2 = ({
|
|
|
149342
149573
|
|
|
149343
149574
|
// ../cli-ui-kit/src/components/SelectInput/GroupsList.tsx
|
|
149344
149575
|
init_esm_shims();
|
|
149345
|
-
var
|
|
149576
|
+
var import_react56 = __toESM(require_react(), 1);
|
|
149346
149577
|
|
|
149347
149578
|
// ../cli-ui-kit/src/components/SelectInput/helpers.tsx
|
|
149348
149579
|
init_esm_shims();
|
|
@@ -149465,7 +149696,7 @@ function getVisibleListItems(staringIndex, listItems, limit, reverse) {
|
|
|
149465
149696
|
|
|
149466
149697
|
// ../cli-ui-kit/src/components/Scroll.tsx
|
|
149467
149698
|
init_esm_shims();
|
|
149468
|
-
var
|
|
149699
|
+
var import_react54 = __toESM(require_react(), 1);
|
|
149469
149700
|
var SCROLL_SYMBOL = "\u2588";
|
|
149470
149701
|
var Scroll = ({
|
|
149471
149702
|
height,
|
|
@@ -149483,7 +149714,7 @@ var Scroll = ({
|
|
|
149483
149714
|
const filledEndIndex = filledStartIndex + filledAmount - 1;
|
|
149484
149715
|
for (let i2 = 0; i2 < height; i2++) {
|
|
149485
149716
|
scroll.push(
|
|
149486
|
-
/* @__PURE__ */
|
|
149717
|
+
/* @__PURE__ */ import_react54.default.createElement(
|
|
149487
149718
|
Text,
|
|
149488
149719
|
{
|
|
149489
149720
|
color: i2 >= filledStartIndex && i2 <= filledEndIndex ? "white" : "gray",
|
|
@@ -149498,7 +149729,7 @@ var Scroll = ({
|
|
|
149498
149729
|
|
|
149499
149730
|
// ../cli-ui-kit/src/components/SelectInput/Highlighter.tsx
|
|
149500
149731
|
init_esm_shims();
|
|
149501
|
-
var
|
|
149732
|
+
var import_react55 = __toESM(require_react(), 1);
|
|
149502
149733
|
var Highlighter = ({ pattern, text }) => {
|
|
149503
149734
|
if (!pattern) {
|
|
149504
149735
|
return text;
|
|
@@ -149512,7 +149743,7 @@ var Highlighter = ({ pattern, text }) => {
|
|
|
149512
149743
|
hightlightMap[i2] = 1;
|
|
149513
149744
|
}
|
|
149514
149745
|
}
|
|
149515
|
-
return hightlightMap.map((flag, index) => /* @__PURE__ */
|
|
149746
|
+
return hightlightMap.map((flag, index) => /* @__PURE__ */ import_react55.default.createElement(Text2, { key: index, skin: flag ? "secondary" : "standard" }, text[index]));
|
|
149516
149747
|
};
|
|
149517
149748
|
|
|
149518
149749
|
// ../cli-ui-kit/src/components/SelectInput/GroupsList.tsx
|
|
@@ -149600,7 +149831,7 @@ function GroupsList({
|
|
|
149600
149831
|
width,
|
|
149601
149832
|
maxHeight: maxHeightProp
|
|
149602
149833
|
}) {
|
|
149603
|
-
const [state, dispatch] = (0,
|
|
149834
|
+
const [state, dispatch] = (0, import_react56.useReducer)(reducer, {
|
|
149604
149835
|
listItems: [],
|
|
149605
149836
|
visibleItems: [],
|
|
149606
149837
|
currentIndex: 0,
|
|
@@ -149608,20 +149839,20 @@ function GroupsList({
|
|
|
149608
149839
|
maxHeight: maxHeightProp
|
|
149609
149840
|
});
|
|
149610
149841
|
const { listItems, visibleItems, currentIndex, maxHeight, totalRowCounts } = state;
|
|
149611
|
-
(0,
|
|
149842
|
+
(0, import_react56.useEffect)(() => {
|
|
149612
149843
|
dispatch({
|
|
149613
149844
|
type: "REFRESH" /* REFRESH */,
|
|
149614
149845
|
payload: listItemsProp
|
|
149615
149846
|
});
|
|
149616
149847
|
}, [listItemsProp]);
|
|
149617
|
-
(0,
|
|
149848
|
+
(0, import_react56.useEffect)(() => {
|
|
149618
149849
|
dispatch({
|
|
149619
149850
|
type: "CHANGE_MAX_HEIGHT" /* CHANGE_MAX_HEIGHT */,
|
|
149620
149851
|
payload: maxHeightProp
|
|
149621
149852
|
});
|
|
149622
149853
|
}, [maxHeightProp]);
|
|
149623
149854
|
use_input_default(
|
|
149624
|
-
(0,
|
|
149855
|
+
(0, import_react56.useCallback)(
|
|
149625
149856
|
(input, key) => {
|
|
149626
149857
|
if (key.upArrow) {
|
|
149627
149858
|
if (currentIndex > 0) {
|
|
@@ -149662,7 +149893,7 @@ function GroupsList({
|
|
|
149662
149893
|
);
|
|
149663
149894
|
const shouldShowScroll = !hideScroll && totalRowCounts > maxHeight && visibleItems.length;
|
|
149664
149895
|
const viewHeight = Math.min(totalRowCounts, maxHeight);
|
|
149665
|
-
return /* @__PURE__ */
|
|
149896
|
+
return /* @__PURE__ */ import_react56.default.createElement(
|
|
149666
149897
|
Box_default,
|
|
149667
149898
|
{
|
|
149668
149899
|
height: viewHeight,
|
|
@@ -149670,33 +149901,33 @@ function GroupsList({
|
|
|
149670
149901
|
justifyContent: "space-between",
|
|
149671
149902
|
width: width ?? "100%"
|
|
149672
149903
|
},
|
|
149673
|
-
/* @__PURE__ */
|
|
149904
|
+
/* @__PURE__ */ import_react56.default.createElement(Box_default, { flexDirection: "column", height: viewHeight }, visibleItems.reduce(
|
|
149674
149905
|
(acc, { group, groupIndex, item, itemIndex }, index) => {
|
|
149675
149906
|
const shouldShowGroupLabel = index === 0 || groupIndex !== visibleItems.at(index - 1)?.groupIndex;
|
|
149676
149907
|
if (shouldShowGroupLabel) {
|
|
149677
149908
|
acc.push(
|
|
149678
|
-
/* @__PURE__ */
|
|
149909
|
+
/* @__PURE__ */ import_react56.default.createElement(
|
|
149679
149910
|
Box_default,
|
|
149680
149911
|
{
|
|
149681
149912
|
key: `group-${groupIndex}`,
|
|
149682
149913
|
paddingTop: index === 0 ? 0 : GROUP_PADDING
|
|
149683
149914
|
},
|
|
149684
|
-
/* @__PURE__ */
|
|
149915
|
+
/* @__PURE__ */ import_react56.default.createElement(Text2, { bold: true, underline: true }, /* @__PURE__ */ import_react56.default.createElement(
|
|
149685
149916
|
Highlighter,
|
|
149686
149917
|
{
|
|
149687
149918
|
pattern: highlightPattern,
|
|
149688
149919
|
text: group.title
|
|
149689
149920
|
}
|
|
149690
149921
|
)),
|
|
149691
|
-
group.description && /* @__PURE__ */
|
|
149922
|
+
group.description && /* @__PURE__ */ import_react56.default.createElement(Box_default, { marginLeft: 1 }, group.description)
|
|
149692
149923
|
)
|
|
149693
149924
|
);
|
|
149694
149925
|
}
|
|
149695
149926
|
acc.push(
|
|
149696
|
-
/* @__PURE__ */
|
|
149927
|
+
/* @__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
149928
|
Item2,
|
|
149698
149929
|
{
|
|
149699
|
-
label: /* @__PURE__ */
|
|
149930
|
+
label: /* @__PURE__ */ import_react56.default.createElement(Highlighter, { pattern: highlightPattern, text: item.title }),
|
|
149700
149931
|
isSelected: itemIndex === currentIndex,
|
|
149701
149932
|
value: item
|
|
149702
149933
|
}
|
|
@@ -149706,7 +149937,7 @@ function GroupsList({
|
|
|
149706
149937
|
},
|
|
149707
149938
|
[]
|
|
149708
149939
|
)),
|
|
149709
|
-
shouldShowScroll ? /* @__PURE__ */
|
|
149940
|
+
shouldShowScroll ? /* @__PURE__ */ import_react56.default.createElement(Box_default, { flexDirection: "column", height: viewHeight }, /* @__PURE__ */ import_react56.default.createElement(
|
|
149710
149941
|
Scroll,
|
|
149711
149942
|
{
|
|
149712
149943
|
height: viewHeight,
|
|
@@ -149718,7 +149949,7 @@ function GroupsList({
|
|
|
149718
149949
|
}
|
|
149719
149950
|
|
|
149720
149951
|
// ../cli-ui-kit/src/components/SelectInput/SelectGroupsInput.tsx
|
|
149721
|
-
var DEFAULT_MAX_HEIGHT =
|
|
149952
|
+
var DEFAULT_MAX_HEIGHT = 20;
|
|
149722
149953
|
function SelectGroupsInput({
|
|
149723
149954
|
label,
|
|
149724
149955
|
info,
|
|
@@ -149733,11 +149964,11 @@ function SelectGroupsInput({
|
|
|
149733
149964
|
if (!groups.length) {
|
|
149734
149965
|
throw new Error("SelectGroupsInput: groups cannot be empty");
|
|
149735
149966
|
}
|
|
149736
|
-
const [inputState, setInputState] = (0,
|
|
149967
|
+
const [inputState, setInputState] = (0, import_react57.useState)(
|
|
149737
149968
|
() => value2 ?? InputState.NotSubmitted(placeholder)
|
|
149738
149969
|
);
|
|
149739
|
-
const [searchRegExp, setSearchRegExp] = (0,
|
|
149740
|
-
const filteredGroups = (0,
|
|
149970
|
+
const [searchRegExp, setSearchRegExp] = (0, import_react57.useState)();
|
|
149971
|
+
const filteredGroups = (0, import_react57.useMemo)(() => {
|
|
149741
149972
|
if (!searchRegExp) {
|
|
149742
149973
|
return groups;
|
|
149743
149974
|
}
|
|
@@ -149755,11 +149986,11 @@ function SelectGroupsInput({
|
|
|
149755
149986
|
return acc;
|
|
149756
149987
|
}, []);
|
|
149757
149988
|
}, [groups, searchRegExp]);
|
|
149758
|
-
const listItems = (0,
|
|
149989
|
+
const listItems = (0, import_react57.useMemo)(
|
|
149759
149990
|
() => getListItems(filteredGroups),
|
|
149760
149991
|
[filteredGroups]
|
|
149761
149992
|
);
|
|
149762
|
-
const handleItemSelection = (0,
|
|
149993
|
+
const handleItemSelection = (0, import_react57.useCallback)(
|
|
149763
149994
|
(selectedItem) => {
|
|
149764
149995
|
if (!(0, import_variant11.isType)(selectedItem.availability, SelectOptionAvailability.Disabled)) {
|
|
149765
149996
|
setInputState(InputState.Submitted(selectedItem));
|
|
@@ -149768,12 +149999,12 @@ function SelectGroupsInput({
|
|
|
149768
149999
|
},
|
|
149769
150000
|
[onSubmit]
|
|
149770
150001
|
);
|
|
149771
|
-
(0,
|
|
150002
|
+
(0, import_react57.useEffect)(() => {
|
|
149772
150003
|
if (value2) {
|
|
149773
150004
|
setInputState(value2);
|
|
149774
150005
|
}
|
|
149775
150006
|
}, [value2, setInputState]);
|
|
149776
|
-
const handleSearchPhraseChange = (0,
|
|
150007
|
+
const handleSearchPhraseChange = (0, import_react57.useCallback)((searchPhrase) => {
|
|
149777
150008
|
const escapedSearchPhrase = searchPhrase.replaceAll(
|
|
149778
150009
|
/([.?*+^$[\]\\(){}|-])/g,
|
|
149779
150010
|
"\\$1"
|
|
@@ -149784,14 +150015,14 @@ function SelectGroupsInput({
|
|
|
149784
150015
|
}, []);
|
|
149785
150016
|
const lastItem = listItems.at(-1);
|
|
149786
150017
|
const shouldShowSearchInput = searchRegExp ? true : lastItem && lastItem.rowIndex > maxHeight;
|
|
149787
|
-
return /* @__PURE__ */
|
|
150018
|
+
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
150019
|
Input2,
|
|
149789
150020
|
{
|
|
149790
150021
|
onChange: handleSearchPhraseChange,
|
|
149791
150022
|
showCursor: true,
|
|
149792
150023
|
placeholder: "Type to search..."
|
|
149793
150024
|
}
|
|
149794
|
-
))), /* @__PURE__ */
|
|
150025
|
+
))), /* @__PURE__ */ import_react57.default.createElement(Placeholder2, { inputState }), (0, import_variant11.isType)(inputState, InputState.NotSubmitted) && (listItems.length ? /* @__PURE__ */ import_react57.default.createElement(
|
|
149795
150026
|
GroupsList,
|
|
149796
150027
|
{
|
|
149797
150028
|
listItems,
|
|
@@ -149801,7 +150032,7 @@ function SelectGroupsInput({
|
|
|
149801
150032
|
hideScroll,
|
|
149802
150033
|
onItemSelect: handleItemSelection
|
|
149803
150034
|
}
|
|
149804
|
-
) : /* @__PURE__ */
|
|
150035
|
+
) : /* @__PURE__ */ import_react57.default.createElement(Box_default, { paddingBottom: 1, paddingX: 2 }, /* @__PURE__ */ import_react57.default.createElement(Text2, { skin: "secondary" }, "No results found."))));
|
|
149805
150036
|
}
|
|
149806
150037
|
|
|
149807
150038
|
// ../cli-ui-kit/src/components/TextInput/index.ts
|
|
@@ -149809,7 +150040,7 @@ init_esm_shims();
|
|
|
149809
150040
|
|
|
149810
150041
|
// ../cli-ui-kit/src/components/TextInput/TextInput.tsx
|
|
149811
150042
|
init_esm_shims();
|
|
149812
|
-
var
|
|
150043
|
+
var import_react58 = __toESM(require_react(), 1);
|
|
149813
150044
|
var import_variant12 = __toESM(require_lib(), 1);
|
|
149814
150045
|
var TextInput2 = ({
|
|
149815
150046
|
label,
|
|
@@ -149819,12 +150050,12 @@ var TextInput2 = ({
|
|
|
149819
150050
|
validate = () => true,
|
|
149820
150051
|
inCreateFlow = false
|
|
149821
150052
|
}) => {
|
|
149822
|
-
const [inputState, setInputState] = (0,
|
|
150053
|
+
const [inputState, setInputState] = (0, import_react58.useState)(
|
|
149823
150054
|
() => InputState.NotSubmitted(placeholder)
|
|
149824
150055
|
);
|
|
149825
|
-
const [isDirty2, setIsDirty] = (0,
|
|
149826
|
-
const [validationError, setValidationError] = (0,
|
|
149827
|
-
const handleSubmit = (0,
|
|
150056
|
+
const [isDirty2, setIsDirty] = (0, import_react58.useState)(false);
|
|
150057
|
+
const [validationError, setValidationError] = (0, import_react58.useState)();
|
|
150058
|
+
const handleSubmit = (0, import_react58.useCallback)(
|
|
149828
150059
|
async (value2) => {
|
|
149829
150060
|
setIsDirty(false);
|
|
149830
150061
|
const validationResult = await validate(value2);
|
|
@@ -149839,18 +150070,18 @@ var TextInput2 = ({
|
|
|
149839
150070
|
[onSubmit, validate]
|
|
149840
150071
|
);
|
|
149841
150072
|
const afterValidationError = Boolean(validationError && !isDirty2);
|
|
149842
|
-
(0,
|
|
150073
|
+
(0, import_react58.useEffect)(() => {
|
|
149843
150074
|
if (isActive) {
|
|
149844
150075
|
setInputState(InputState.NotSubmitted(inputState.value));
|
|
149845
150076
|
}
|
|
149846
150077
|
}, [isActive]);
|
|
149847
|
-
return /* @__PURE__ */
|
|
150078
|
+
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
150079
|
InputLabel,
|
|
149849
150080
|
{
|
|
149850
|
-
icon: /* @__PURE__ */
|
|
150081
|
+
icon: /* @__PURE__ */ import_react58.default.createElement(Text2, { skin: "question" }, /* @__PURE__ */ import_react58.default.createElement(PointerIcon, { appearance: "triangle" }))
|
|
149851
150082
|
},
|
|
149852
150083
|
label
|
|
149853
|
-
), (0, import_variant12.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */
|
|
150084
|
+
), (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
150085
|
Input2,
|
|
149855
150086
|
{
|
|
149856
150087
|
placeholder: inputState.value,
|
|
@@ -149858,52 +150089,52 @@ var TextInput2 = ({
|
|
|
149858
150089
|
onChange: () => setIsDirty(true),
|
|
149859
150090
|
showCursor: afterValidationError
|
|
149860
150091
|
}
|
|
149861
|
-
))))), (0, import_variant12.isType)(inputState, InputState.Submitted) && /* @__PURE__ */
|
|
150092
|
+
))))), (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
150093
|
};
|
|
149863
150094
|
|
|
149864
150095
|
// ../cli-ui-kit/src/components/Alert.tsx
|
|
149865
150096
|
init_esm_shims();
|
|
149866
|
-
var
|
|
150097
|
+
var import_react59 = __toESM(require_react(), 1);
|
|
149867
150098
|
var import_variant13 = __toESM(require_lib(), 1);
|
|
149868
150099
|
var Alert = ({ type, children }) => {
|
|
149869
150100
|
const icon = (0, import_variant13.match)(type, {
|
|
149870
150101
|
error: (0, import_variant13.constant)(
|
|
149871
|
-
/* @__PURE__ */
|
|
150102
|
+
/* @__PURE__ */ import_react59.default.createElement(Text2, { skin: "error" }, /* @__PURE__ */ import_react59.default.createElement(ErrorIcon, null))
|
|
149872
150103
|
),
|
|
149873
150104
|
warning: (0, import_variant13.constant)(
|
|
149874
|
-
/* @__PURE__ */
|
|
150105
|
+
/* @__PURE__ */ import_react59.default.createElement(Text2, { skin: "warning" }, /* @__PURE__ */ import_react59.default.createElement(WarningIcon, null))
|
|
149875
150106
|
),
|
|
149876
150107
|
success: (0, import_variant13.constant)(
|
|
149877
|
-
/* @__PURE__ */
|
|
150108
|
+
/* @__PURE__ */ import_react59.default.createElement(Text2, { skin: "success" }, /* @__PURE__ */ import_react59.default.createElement(SuccessIcon, null))
|
|
149878
150109
|
),
|
|
149879
|
-
insight: (0, import_variant13.constant)(/* @__PURE__ */
|
|
150110
|
+
insight: (0, import_variant13.constant)(/* @__PURE__ */ import_react59.default.createElement(InsightIcon, null))
|
|
149880
150111
|
});
|
|
149881
|
-
return /* @__PURE__ */
|
|
150112
|
+
return /* @__PURE__ */ import_react59.default.createElement(Text2, null, icon, " ", children);
|
|
149882
150113
|
};
|
|
149883
150114
|
|
|
149884
150115
|
// ../cli-ui-kit/src/components/Badge.tsx
|
|
149885
150116
|
init_esm_shims();
|
|
149886
|
-
var
|
|
150117
|
+
var import_react60 = __toESM(require_react(), 1);
|
|
149887
150118
|
var skins2 = {
|
|
149888
150119
|
success: { backgroundColor: "green" }
|
|
149889
150120
|
};
|
|
149890
150121
|
var Badge = ({ children, skin }) => {
|
|
149891
|
-
return /* @__PURE__ */
|
|
150122
|
+
return /* @__PURE__ */ import_react60.default.createElement(Text, { ...skins2[skin] }, " ", children, " ");
|
|
149892
150123
|
};
|
|
149893
150124
|
|
|
149894
150125
|
// ../cli-ui-kit/src/components/Key.tsx
|
|
149895
150126
|
init_esm_shims();
|
|
149896
|
-
var
|
|
150127
|
+
var import_react61 = __toESM(require_react(), 1);
|
|
149897
150128
|
var Key = ({ value: value2, skin }) => {
|
|
149898
150129
|
if (skin === "secondary") {
|
|
149899
|
-
return /* @__PURE__ */
|
|
150130
|
+
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
150131
|
}
|
|
149901
|
-
return /* @__PURE__ */
|
|
150132
|
+
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
150133
|
};
|
|
149903
150134
|
|
|
149904
150135
|
// ../cli-ui-kit/src/components/Link.tsx
|
|
149905
150136
|
init_esm_shims();
|
|
149906
|
-
var
|
|
150137
|
+
var import_react62 = __toESM(require_react(), 1);
|
|
149907
150138
|
|
|
149908
150139
|
// ../../node_modules/terminal-link/index.js
|
|
149909
150140
|
init_esm_shims();
|
|
@@ -150050,31 +150281,31 @@ terminalLink.stderr.isSupported = import_supports_hyperlinks.default.stderr;
|
|
|
150050
150281
|
var Link = ({ skin, children, url }) => {
|
|
150051
150282
|
if (children) {
|
|
150052
150283
|
if (terminalLink.isSupported) {
|
|
150053
|
-
return /* @__PURE__ */
|
|
150284
|
+
return /* @__PURE__ */ import_react62.default.createElement(
|
|
150054
150285
|
Transform,
|
|
150055
150286
|
{
|
|
150056
150287
|
transform: (childrenAsString) => terminalLink(childrenAsString, url, { fallback: false })
|
|
150057
150288
|
},
|
|
150058
|
-
/* @__PURE__ */
|
|
150289
|
+
/* @__PURE__ */ import_react62.default.createElement(Text2, { skin }, children)
|
|
150059
150290
|
);
|
|
150060
150291
|
}
|
|
150061
|
-
return /* @__PURE__ */
|
|
150292
|
+
return /* @__PURE__ */ import_react62.default.createElement(Text2, null, /* @__PURE__ */ import_react62.default.createElement(Text2, { skin }, children), " (", url, ")");
|
|
150062
150293
|
}
|
|
150063
|
-
return /* @__PURE__ */
|
|
150294
|
+
return /* @__PURE__ */ import_react62.default.createElement(Text2, { skin: "info" }, url);
|
|
150064
150295
|
};
|
|
150065
150296
|
|
|
150066
150297
|
// ../cli-ui-kit/src/components/Spinner.tsx
|
|
150067
150298
|
init_esm_shims();
|
|
150068
|
-
var
|
|
150299
|
+
var import_react64 = __toESM(require_react(), 1);
|
|
150069
150300
|
|
|
150070
150301
|
// ../../node_modules/ink-spinner/build/index.js
|
|
150071
150302
|
init_esm_shims();
|
|
150072
|
-
var
|
|
150303
|
+
var import_react63 = __toESM(require_react(), 1);
|
|
150073
150304
|
var import_cli_spinners = __toESM(require_cli_spinners(), 1);
|
|
150074
150305
|
function Spinner({ type = "dots" }) {
|
|
150075
|
-
const [frame, setFrame] = (0,
|
|
150306
|
+
const [frame, setFrame] = (0, import_react63.useState)(0);
|
|
150076
150307
|
const spinner = import_cli_spinners.default[type];
|
|
150077
|
-
(0,
|
|
150308
|
+
(0, import_react63.useEffect)(() => {
|
|
150078
150309
|
const timer = setInterval(() => {
|
|
150079
150310
|
setFrame((previousFrame) => {
|
|
150080
150311
|
const isLastFrame = previousFrame === spinner.frames.length - 1;
|
|
@@ -150085,33 +150316,33 @@ function Spinner({ type = "dots" }) {
|
|
|
150085
150316
|
clearInterval(timer);
|
|
150086
150317
|
};
|
|
150087
150318
|
}, [spinner]);
|
|
150088
|
-
return
|
|
150319
|
+
return import_react63.default.createElement(Text, null, spinner.frames[frame]);
|
|
150089
150320
|
}
|
|
150090
150321
|
var build_default2 = Spinner;
|
|
150091
150322
|
|
|
150092
150323
|
// ../cli-ui-kit/src/components/Spinner.tsx
|
|
150093
150324
|
var Spinner2 = ({ text }) => {
|
|
150094
|
-
const spinnerNode = /* @__PURE__ */
|
|
150325
|
+
const spinnerNode = /* @__PURE__ */ import_react64.default.createElement(Text2, { skin: "info" }, /* @__PURE__ */ import_react64.default.createElement(build_default2, { type: "dots" }));
|
|
150095
150326
|
if (text) {
|
|
150096
|
-
return /* @__PURE__ */
|
|
150327
|
+
return /* @__PURE__ */ import_react64.default.createElement(Box_default, { gap: 1 }, spinnerNode, typeof text === "string" ? /* @__PURE__ */ import_react64.default.createElement(Text2, null, text) : text);
|
|
150097
150328
|
}
|
|
150098
150329
|
return spinnerNode;
|
|
150099
150330
|
};
|
|
150100
150331
|
|
|
150101
150332
|
// ../cli-ui-kit/src/components/ErrorDetails.tsx
|
|
150102
150333
|
init_esm_shims();
|
|
150103
|
-
var
|
|
150334
|
+
var import_react65 = __toESM(require_react(), 1);
|
|
150104
150335
|
var ErrorDetails = ({
|
|
150105
150336
|
message,
|
|
150106
150337
|
explanation,
|
|
150107
150338
|
hint
|
|
150108
|
-
}) => /* @__PURE__ */
|
|
150339
|
+
}) => /* @__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
150340
|
|
|
150110
150341
|
// ../cli-ui-kit/src/components/Notification.tsx
|
|
150111
150342
|
init_esm_shims();
|
|
150112
|
-
var
|
|
150343
|
+
var import_react66 = __toESM(require_react(), 1);
|
|
150113
150344
|
var Notification = ({ children }) => {
|
|
150114
|
-
return /* @__PURE__ */
|
|
150345
|
+
return /* @__PURE__ */ import_react66.default.createElement(Box_default, null, /* @__PURE__ */ import_react66.default.createElement(
|
|
150115
150346
|
Box_default,
|
|
150116
150347
|
{
|
|
150117
150348
|
padding: 1,
|
|
@@ -150130,7 +150361,7 @@ var import_variant14 = __toESM(require_lib(), 1);
|
|
|
150130
150361
|
|
|
150131
150362
|
// ../../node_modules/react-async-hook/dist/react-async-hook.esm.js
|
|
150132
150363
|
init_esm_shims();
|
|
150133
|
-
var
|
|
150364
|
+
var import_react67 = __toESM(require_react());
|
|
150134
150365
|
function _extends() {
|
|
150135
150366
|
_extends = Object.assign || function(target) {
|
|
150136
150367
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
@@ -150147,13 +150378,13 @@ function _extends() {
|
|
|
150147
150378
|
}
|
|
150148
150379
|
var _iteratorSymbol = typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
|
|
150149
150380
|
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" ?
|
|
150381
|
+
var useIsomorphicLayoutEffect = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined" ? import_react67.useLayoutEffect : import_react67.useEffect;
|
|
150151
150382
|
var useGetter = function useGetter2(t3) {
|
|
150152
|
-
var ref = (0,
|
|
150383
|
+
var ref = (0, import_react67.useRef)(t3);
|
|
150153
150384
|
useIsomorphicLayoutEffect(function() {
|
|
150154
150385
|
ref.current = t3;
|
|
150155
150386
|
});
|
|
150156
|
-
return (0,
|
|
150387
|
+
return (0, import_react67.useCallback)(function() {
|
|
150157
150388
|
return ref.current;
|
|
150158
150389
|
}, [ref]);
|
|
150159
150390
|
};
|
|
@@ -150206,22 +150437,22 @@ var normalizeOptions = function normalizeOptions2(options) {
|
|
|
150206
150437
|
return _extends({}, DefaultOptions, {}, options);
|
|
150207
150438
|
};
|
|
150208
150439
|
var useAsyncState = function useAsyncState2(options) {
|
|
150209
|
-
var _useState = (0,
|
|
150440
|
+
var _useState = (0, import_react67.useState)(function() {
|
|
150210
150441
|
return options.initialState(options);
|
|
150211
150442
|
}), value2 = _useState[0], setValue = _useState[1];
|
|
150212
|
-
var reset = (0,
|
|
150443
|
+
var reset = (0, import_react67.useCallback)(function() {
|
|
150213
150444
|
return setValue(options.initialState(options));
|
|
150214
150445
|
}, [setValue, options]);
|
|
150215
|
-
var setLoading = (0,
|
|
150446
|
+
var setLoading = (0, import_react67.useCallback)(function() {
|
|
150216
150447
|
return setValue(options.setLoading(value2));
|
|
150217
150448
|
}, [value2, setValue]);
|
|
150218
|
-
var setResult = (0,
|
|
150449
|
+
var setResult = (0, import_react67.useCallback)(function(result) {
|
|
150219
150450
|
return setValue(options.setResult(result, value2));
|
|
150220
150451
|
}, [value2, setValue]);
|
|
150221
|
-
var setError = (0,
|
|
150452
|
+
var setError = (0, import_react67.useCallback)(function(error) {
|
|
150222
150453
|
return setValue(options.setError(error, value2));
|
|
150223
150454
|
}, [value2, setValue]);
|
|
150224
|
-
var merge = (0,
|
|
150455
|
+
var merge = (0, import_react67.useCallback)(function(state) {
|
|
150225
150456
|
return setValue(_extends({}, value2, {}, state));
|
|
150226
150457
|
}, [value2, setValue]);
|
|
150227
150458
|
return {
|
|
@@ -150235,8 +150466,8 @@ var useAsyncState = function useAsyncState2(options) {
|
|
|
150235
150466
|
};
|
|
150236
150467
|
};
|
|
150237
150468
|
var useIsMounted = function useIsMounted2() {
|
|
150238
|
-
var ref = (0,
|
|
150239
|
-
(0,
|
|
150469
|
+
var ref = (0, import_react67.useRef)(false);
|
|
150470
|
+
(0, import_react67.useEffect)(function() {
|
|
150240
150471
|
ref.current = true;
|
|
150241
150472
|
return function() {
|
|
150242
150473
|
ref.current = false;
|
|
@@ -150247,7 +150478,7 @@ var useIsMounted = function useIsMounted2() {
|
|
|
150247
150478
|
};
|
|
150248
150479
|
};
|
|
150249
150480
|
var useCurrentPromise = function useCurrentPromise2() {
|
|
150250
|
-
var ref = (0,
|
|
150481
|
+
var ref = (0, import_react67.useRef)(null);
|
|
150251
150482
|
return {
|
|
150252
150483
|
set: function set(promise) {
|
|
150253
150484
|
return ref.current = promise;
|
|
@@ -150263,7 +150494,7 @@ var useCurrentPromise = function useCurrentPromise2() {
|
|
|
150263
150494
|
var useAsyncInternal = function useAsyncInternal2(asyncFunction, params, options) {
|
|
150264
150495
|
!params && (params = []);
|
|
150265
150496
|
var normalizedOptions = normalizeOptions(options);
|
|
150266
|
-
var _useState2 = (0,
|
|
150497
|
+
var _useState2 = (0, import_react67.useState)(null), currentParams = _useState2[0], setCurrentParams = _useState2[1];
|
|
150267
150498
|
var AsyncState = useAsyncState(normalizedOptions);
|
|
150268
150499
|
var isMounted = useIsMounted();
|
|
150269
150500
|
var CurrentPromise = useCurrentPromise();
|
|
@@ -150306,11 +150537,11 @@ var useAsyncInternal = function useAsyncInternal2(asyncFunction, params, options
|
|
|
150306
150537
|
return promise;
|
|
150307
150538
|
};
|
|
150308
150539
|
var getLatestExecuteAsyncOperation = useGetter(executeAsyncOperation);
|
|
150309
|
-
var executeAsyncOperationMemo = (0,
|
|
150540
|
+
var executeAsyncOperationMemo = (0, import_react67.useCallback)(function() {
|
|
150310
150541
|
return getLatestExecuteAsyncOperation().apply(void 0, arguments);
|
|
150311
150542
|
}, [getLatestExecuteAsyncOperation]);
|
|
150312
150543
|
var isMounting = !isMounted();
|
|
150313
|
-
(0,
|
|
150544
|
+
(0, import_react67.useEffect)(function() {
|
|
150314
150545
|
var execute = function execute2() {
|
|
150315
150546
|
return getLatestExecuteAsyncOperation().apply(void 0, params);
|
|
150316
150547
|
};
|
|
@@ -150343,7 +150574,7 @@ var useAsyncCallback = function useAsyncCallback2(asyncFunction, options) {
|
|
|
150343
150574
|
};
|
|
150344
150575
|
|
|
150345
150576
|
// ../cli-ui-kit/src/hooks/use-async.ts
|
|
150346
|
-
var
|
|
150577
|
+
var import_react68 = __toESM(require_react(), 1);
|
|
150347
150578
|
var AsyncStatus = (0, import_variant14.variant)(
|
|
150348
150579
|
(0, import_variant14.onTerms)(({ T: _T }) => ({
|
|
150349
150580
|
Error: (error) => ({ error }),
|
|
@@ -150361,7 +150592,7 @@ var AsyncCallbackStatus = (0, import_variant14.variant)(
|
|
|
150361
150592
|
);
|
|
150362
150593
|
var useAsync2 = (fn, args, options) => {
|
|
150363
150594
|
const exit = useExit();
|
|
150364
|
-
const abortController = (0,
|
|
150595
|
+
const abortController = (0, import_react68.useMemo)(() => new AbortController(), []);
|
|
150365
150596
|
const { result, error, status, merge } = useAsync(
|
|
150366
150597
|
fn.bind(null, { signal: abortController.signal }),
|
|
150367
150598
|
args,
|
|
@@ -150370,7 +150601,7 @@ var useAsync2 = (fn, args, options) => {
|
|
|
150370
150601
|
...options ?? {}
|
|
150371
150602
|
}
|
|
150372
150603
|
);
|
|
150373
|
-
(0,
|
|
150604
|
+
(0, import_react68.useEffect)(() => {
|
|
150374
150605
|
return () => {
|
|
150375
150606
|
abortController.abort();
|
|
150376
150607
|
};
|
|
@@ -150390,7 +150621,7 @@ var useAsync2 = (fn, args, options) => {
|
|
|
150390
150621
|
};
|
|
150391
150622
|
var useAsyncCallback3 = (fn, options) => {
|
|
150392
150623
|
const exit = useExit();
|
|
150393
|
-
const abortController = (0,
|
|
150624
|
+
const abortController = (0, import_react68.useMemo)(() => new AbortController(), []);
|
|
150394
150625
|
const { result, error, status, merge, execute } = useAsyncCallback(
|
|
150395
150626
|
fn.bind(null, { signal: abortController.signal }),
|
|
150396
150627
|
{
|
|
@@ -150398,7 +150629,7 @@ var useAsyncCallback3 = (fn, options) => {
|
|
|
150398
150629
|
...options ?? {}
|
|
150399
150630
|
}
|
|
150400
150631
|
);
|
|
150401
|
-
(0,
|
|
150632
|
+
(0, import_react68.useEffect)(() => {
|
|
150402
150633
|
return () => {
|
|
150403
150634
|
abortController.abort();
|
|
150404
150635
|
};
|
|
@@ -150428,16 +150659,16 @@ var useAsyncCallback3 = (fn, options) => {
|
|
|
150428
150659
|
|
|
150429
150660
|
// ../cli-telemetry-react/src/useBi.tsx
|
|
150430
150661
|
init_esm_shims();
|
|
150431
|
-
var
|
|
150432
|
-
var BiContext = (0,
|
|
150662
|
+
var import_react69 = __toESM(require_react(), 1);
|
|
150663
|
+
var BiContext = (0, import_react69.createContext)(null);
|
|
150433
150664
|
var BiProvider = function({
|
|
150434
150665
|
children,
|
|
150435
150666
|
value: biLogger
|
|
150436
150667
|
}) {
|
|
150437
|
-
return /* @__PURE__ */
|
|
150668
|
+
return /* @__PURE__ */ import_react69.default.createElement(BiContext.Provider, { value: biLogger }, children);
|
|
150438
150669
|
};
|
|
150439
150670
|
var useBiLogger = () => {
|
|
150440
|
-
const context = (0,
|
|
150671
|
+
const context = (0, import_react69.useContext)(BiContext);
|
|
150441
150672
|
if (context == null) {
|
|
150442
150673
|
throw new Error("useBiLogger() cannot be used without an <BiProvider>");
|
|
150443
150674
|
}
|
|
@@ -150449,18 +150680,18 @@ init_esm_shims();
|
|
|
150449
150680
|
|
|
150450
150681
|
// ../cli-i18n/src/I18nProvider.tsx
|
|
150451
150682
|
init_esm_shims();
|
|
150452
|
-
var
|
|
150683
|
+
var import_react78 = __toESM(require_react(), 1);
|
|
150453
150684
|
|
|
150454
150685
|
// ../../node_modules/react-i18next/dist/es/index.js
|
|
150455
150686
|
init_esm_shims();
|
|
150456
150687
|
|
|
150457
150688
|
// ../../node_modules/react-i18next/dist/es/Trans.js
|
|
150458
150689
|
init_esm_shims();
|
|
150459
|
-
var
|
|
150690
|
+
var import_react72 = __toESM(require_react(), 1);
|
|
150460
150691
|
|
|
150461
150692
|
// ../../node_modules/react-i18next/dist/es/TransWithoutContext.js
|
|
150462
150693
|
init_esm_shims();
|
|
150463
|
-
var
|
|
150694
|
+
var import_react70 = __toESM(require_react(), 1);
|
|
150464
150695
|
|
|
150465
150696
|
// ../../node_modules/html-parse-stringify/dist/html-parse-stringify.module.js
|
|
150466
150697
|
init_esm_shims();
|
|
@@ -150659,7 +150890,7 @@ var getChildren = (node) => {
|
|
|
150659
150890
|
const children = node.props?.children ?? node.children;
|
|
150660
150891
|
return node.props?.i18nIsDynamicList ? getAsArray(children) : children;
|
|
150661
150892
|
};
|
|
150662
|
-
var hasValidReactChildren = (children) => Array.isArray(children) && children.every(
|
|
150893
|
+
var hasValidReactChildren = (children) => Array.isArray(children) && children.every(import_react70.isValidElement);
|
|
150663
150894
|
var getAsArray = (data) => Array.isArray(data) ? data : [data];
|
|
150664
150895
|
var mergeProps = (source, target) => {
|
|
150665
150896
|
const newTarget = {
|
|
@@ -150678,7 +150909,7 @@ var nodesToString = (children, i18nOptions, i18n, i18nKey) => {
|
|
|
150678
150909
|
stringNode += `${child}`;
|
|
150679
150910
|
return;
|
|
150680
150911
|
}
|
|
150681
|
-
if ((0,
|
|
150912
|
+
if ((0, import_react70.isValidElement)(child)) {
|
|
150682
150913
|
const {
|
|
150683
150914
|
props,
|
|
150684
150915
|
type
|
|
@@ -150743,7 +150974,7 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
|
|
|
150743
150974
|
childrenArray.forEach((child) => {
|
|
150744
150975
|
if (isString(child)) return;
|
|
150745
150976
|
if (hasChildren(child)) getData(getChildren(child));
|
|
150746
|
-
else if (isObject(child) && !(0,
|
|
150977
|
+
else if (isObject(child) && !(0, import_react70.isValidElement)(child)) Object.assign(data, child);
|
|
150747
150978
|
});
|
|
150748
150979
|
};
|
|
150749
150980
|
getData(children);
|
|
@@ -150760,16 +150991,16 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
|
|
|
150760
150991
|
const pushTranslatedJSX = (child, inner, mem, i2, isVoid) => {
|
|
150761
150992
|
if (child.dummy) {
|
|
150762
150993
|
child.children = inner;
|
|
150763
|
-
mem.push((0,
|
|
150994
|
+
mem.push((0, import_react70.cloneElement)(child, {
|
|
150764
150995
|
key: i2
|
|
150765
150996
|
}, isVoid ? void 0 : inner));
|
|
150766
150997
|
} else {
|
|
150767
|
-
mem.push(...
|
|
150998
|
+
mem.push(...import_react70.Children.map([child], (c2) => {
|
|
150768
150999
|
const props = {
|
|
150769
151000
|
...c2.props
|
|
150770
151001
|
};
|
|
150771
151002
|
delete props.i18nIsDynamicList;
|
|
150772
|
-
return (0,
|
|
151003
|
+
return (0, import_react70.createElement)(c2.type, {
|
|
150773
151004
|
...props,
|
|
150774
151005
|
key: i2,
|
|
150775
151006
|
ref: c2.ref
|
|
@@ -150789,7 +151020,7 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
|
|
|
150789
151020
|
const child = Object.keys(node.attrs).length !== 0 ? mergeProps({
|
|
150790
151021
|
props: node.attrs
|
|
150791
151022
|
}, tmp) : tmp;
|
|
150792
|
-
const isElement = (0,
|
|
151023
|
+
const isElement = (0, import_react70.isValidElement)(child);
|
|
150793
151024
|
const isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;
|
|
150794
151025
|
const isEmptyTransWithHTML = emptyChildrenButNeedsHandling && isObject(child) && child.dummy && !isElement;
|
|
150795
151026
|
const isKnownComponent = isObject(children) && Object.hasOwnProperty.call(children, node.name);
|
|
@@ -150808,12 +151039,12 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
|
|
|
150808
151039
|
pushTranslatedJSX(child, inner, mem, i2, node.voidElement);
|
|
150809
151040
|
} else if (i18nOptions.transSupportBasicHtmlNodes && keepArray.indexOf(node.name) > -1) {
|
|
150810
151041
|
if (node.voidElement) {
|
|
150811
|
-
mem.push((0,
|
|
151042
|
+
mem.push((0, import_react70.createElement)(node.name, {
|
|
150812
151043
|
key: `${node.name}-${i2}`
|
|
150813
151044
|
}));
|
|
150814
151045
|
} else {
|
|
150815
151046
|
const inner = mapAST(reactNodes, node.children, rootReactNode);
|
|
150816
|
-
mem.push((0,
|
|
151047
|
+
mem.push((0, import_react70.createElement)(node.name, {
|
|
150817
151048
|
key: `${node.name}-${i2}`
|
|
150818
151049
|
}, inner));
|
|
150819
151050
|
}
|
|
@@ -150833,7 +151064,7 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
|
|
|
150833
151064
|
const wrapTextNodes = i18nOptions.transWrapTextNodes;
|
|
150834
151065
|
const content = shouldUnescape ? i18nOptions.unescape(i18n.services.interpolator.interpolate(node.content, opts, i18n.language)) : i18n.services.interpolator.interpolate(node.content, opts, i18n.language);
|
|
150835
151066
|
if (wrapTextNodes) {
|
|
150836
|
-
mem.push((0,
|
|
151067
|
+
mem.push((0, import_react70.createElement)(wrapTextNodes, {
|
|
150837
151068
|
key: `${node.name}-${i2}`
|
|
150838
151069
|
}, content));
|
|
150839
151070
|
} else {
|
|
@@ -150851,16 +151082,16 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
|
|
|
150851
151082
|
};
|
|
150852
151083
|
var fixComponentProps = (component, index, translation) => {
|
|
150853
151084
|
const componentKey = component.key || index;
|
|
150854
|
-
const comp = (0,
|
|
151085
|
+
const comp = (0, import_react70.cloneElement)(component, {
|
|
150855
151086
|
key: componentKey
|
|
150856
151087
|
});
|
|
150857
151088
|
if (!comp.props || !comp.props.children || translation.indexOf(`${index}/>`) < 0 && translation.indexOf(`${index} />`) < 0) {
|
|
150858
151089
|
return comp;
|
|
150859
151090
|
}
|
|
150860
151091
|
function Componentized() {
|
|
150861
|
-
return (0,
|
|
151092
|
+
return (0, import_react70.createElement)(import_react70.Fragment, null, comp);
|
|
150862
151093
|
}
|
|
150863
|
-
return (0,
|
|
151094
|
+
return (0, import_react70.createElement)(Componentized, {
|
|
150864
151095
|
key: componentKey
|
|
150865
151096
|
});
|
|
150866
151097
|
};
|
|
@@ -150951,12 +151182,12 @@ function Trans({
|
|
|
150951
151182
|
const generatedComponents = generateComponents(components, translation, i18n, i18nKey);
|
|
150952
151183
|
const content = renderNodes(generatedComponents || children, translation, i18n, reactI18nextOptions, combinedTOpts, shouldUnescape);
|
|
150953
151184
|
const useAsParent = parent ?? reactI18nextOptions.defaultTransParent;
|
|
150954
|
-
return useAsParent ? (0,
|
|
151185
|
+
return useAsParent ? (0, import_react70.createElement)(useAsParent, additionalProps, content) : content;
|
|
150955
151186
|
}
|
|
150956
151187
|
|
|
150957
151188
|
// ../../node_modules/react-i18next/dist/es/context.js
|
|
150958
151189
|
init_esm_shims();
|
|
150959
|
-
var
|
|
151190
|
+
var import_react71 = __toESM(require_react(), 1);
|
|
150960
151191
|
|
|
150961
151192
|
// ../../node_modules/react-i18next/dist/es/initReactI18next.js
|
|
150962
151193
|
init_esm_shims();
|
|
@@ -150969,7 +151200,7 @@ var initReactI18next = {
|
|
|
150969
151200
|
};
|
|
150970
151201
|
|
|
150971
151202
|
// ../../node_modules/react-i18next/dist/es/context.js
|
|
150972
|
-
var I18nContext = (0,
|
|
151203
|
+
var I18nContext = (0, import_react71.createContext)();
|
|
150973
151204
|
var ReportNamespaces = class {
|
|
150974
151205
|
constructor() {
|
|
150975
151206
|
this.usedNamespaces = {};
|
|
@@ -151004,7 +151235,7 @@ function Trans2({
|
|
|
151004
151235
|
const {
|
|
151005
151236
|
i18n: i18nFromContext,
|
|
151006
151237
|
defaultNS: defaultNSFromContext
|
|
151007
|
-
} = (0,
|
|
151238
|
+
} = (0, import_react72.useContext)(I18nContext) || {};
|
|
151008
151239
|
const i18n = i18nFromProps || i18nFromContext || getI18n();
|
|
151009
151240
|
const t3 = tFromProps || i18n?.t.bind(i18n);
|
|
151010
151241
|
return Trans({
|
|
@@ -151027,16 +151258,16 @@ function Trans2({
|
|
|
151027
151258
|
|
|
151028
151259
|
// ../../node_modules/react-i18next/dist/es/useTranslation.js
|
|
151029
151260
|
init_esm_shims();
|
|
151030
|
-
var
|
|
151261
|
+
var import_react73 = __toESM(require_react(), 1);
|
|
151031
151262
|
var usePrevious = (value2, ignore) => {
|
|
151032
|
-
const ref = (0,
|
|
151033
|
-
(0,
|
|
151263
|
+
const ref = (0, import_react73.useRef)();
|
|
151264
|
+
(0, import_react73.useEffect)(() => {
|
|
151034
151265
|
ref.current = ignore ? ref.current : value2;
|
|
151035
151266
|
}, [value2, ignore]);
|
|
151036
151267
|
return ref.current;
|
|
151037
151268
|
};
|
|
151038
151269
|
var alwaysNewT = (i18n, language, namespace, keyPrefix) => i18n.getFixedT(language, namespace, keyPrefix);
|
|
151039
|
-
var useMemoizedT = (i18n, language, namespace, keyPrefix) => (0,
|
|
151270
|
+
var useMemoizedT = (i18n, language, namespace, keyPrefix) => (0, import_react73.useCallback)(alwaysNewT(i18n, language, namespace, keyPrefix), [i18n, language, namespace, keyPrefix]);
|
|
151040
151271
|
var useTranslation = (ns, props = {}) => {
|
|
151041
151272
|
const {
|
|
151042
151273
|
i18n: i18nFromProps
|
|
@@ -151044,7 +151275,7 @@ var useTranslation = (ns, props = {}) => {
|
|
|
151044
151275
|
const {
|
|
151045
151276
|
i18n: i18nFromContext,
|
|
151046
151277
|
defaultNS: defaultNSFromContext
|
|
151047
|
-
} = (0,
|
|
151278
|
+
} = (0, import_react73.useContext)(I18nContext) || {};
|
|
151048
151279
|
const i18n = i18nFromProps || i18nFromContext || getI18n();
|
|
151049
151280
|
if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();
|
|
151050
151281
|
if (!i18n) {
|
|
@@ -151077,12 +151308,12 @@ var useTranslation = (ns, props = {}) => {
|
|
|
151077
151308
|
const memoGetT = useMemoizedT(i18n, props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
|
|
151078
151309
|
const getT = () => memoGetT;
|
|
151079
151310
|
const getNewT = () => alwaysNewT(i18n, props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
|
|
151080
|
-
const [t3, setT] = (0,
|
|
151311
|
+
const [t3, setT] = (0, import_react73.useState)(getT);
|
|
151081
151312
|
let joinedNS = namespaces.join();
|
|
151082
151313
|
if (props.lng) joinedNS = `${props.lng}${joinedNS}`;
|
|
151083
151314
|
const previousJoinedNS = usePrevious(joinedNS);
|
|
151084
|
-
const isMounted = (0,
|
|
151085
|
-
(0,
|
|
151315
|
+
const isMounted = (0, import_react73.useRef)(true);
|
|
151316
|
+
(0, import_react73.useEffect)(() => {
|
|
151086
151317
|
const {
|
|
151087
151318
|
bindI18n,
|
|
151088
151319
|
bindI18nStore
|
|
@@ -151113,7 +151344,7 @@ var useTranslation = (ns, props = {}) => {
|
|
|
151113
151344
|
if (bindI18nStore && i18n) bindI18nStore.split(" ").forEach((e2) => i18n.store.off(e2, boundReset));
|
|
151114
151345
|
};
|
|
151115
151346
|
}, [i18n, joinedNS]);
|
|
151116
|
-
(0,
|
|
151347
|
+
(0, import_react73.useEffect)(() => {
|
|
151117
151348
|
if (isMounted.current && ready) {
|
|
151118
151349
|
setT(getT);
|
|
151119
151350
|
}
|
|
@@ -151135,35 +151366,35 @@ var useTranslation = (ns, props = {}) => {
|
|
|
151135
151366
|
|
|
151136
151367
|
// ../../node_modules/react-i18next/dist/es/withTranslation.js
|
|
151137
151368
|
init_esm_shims();
|
|
151138
|
-
var
|
|
151369
|
+
var import_react74 = __toESM(require_react(), 1);
|
|
151139
151370
|
|
|
151140
151371
|
// ../../node_modules/react-i18next/dist/es/Translation.js
|
|
151141
151372
|
init_esm_shims();
|
|
151142
151373
|
|
|
151143
151374
|
// ../../node_modules/react-i18next/dist/es/I18nextProvider.js
|
|
151144
151375
|
init_esm_shims();
|
|
151145
|
-
var
|
|
151376
|
+
var import_react75 = __toESM(require_react(), 1);
|
|
151146
151377
|
function I18nextProvider({
|
|
151147
151378
|
i18n,
|
|
151148
151379
|
defaultNS,
|
|
151149
151380
|
children
|
|
151150
151381
|
}) {
|
|
151151
|
-
const value2 = (0,
|
|
151382
|
+
const value2 = (0, import_react75.useMemo)(() => ({
|
|
151152
151383
|
i18n,
|
|
151153
151384
|
defaultNS
|
|
151154
151385
|
}), [i18n, defaultNS]);
|
|
151155
|
-
return (0,
|
|
151386
|
+
return (0, import_react75.createElement)(I18nContext.Provider, {
|
|
151156
151387
|
value: value2
|
|
151157
151388
|
}, children);
|
|
151158
151389
|
}
|
|
151159
151390
|
|
|
151160
151391
|
// ../../node_modules/react-i18next/dist/es/withSSR.js
|
|
151161
151392
|
init_esm_shims();
|
|
151162
|
-
var
|
|
151393
|
+
var import_react77 = __toESM(require_react(), 1);
|
|
151163
151394
|
|
|
151164
151395
|
// ../../node_modules/react-i18next/dist/es/useSSR.js
|
|
151165
151396
|
init_esm_shims();
|
|
151166
|
-
var
|
|
151397
|
+
var import_react76 = __toESM(require_react(), 1);
|
|
151167
151398
|
|
|
151168
151399
|
// ../cli-i18n/src/create-i18n.ts
|
|
151169
151400
|
init_esm_shims();
|
|
@@ -156936,8 +157167,8 @@ var I18nProvider = ({
|
|
|
156936
157167
|
messages,
|
|
156937
157168
|
i18n: initialI18n
|
|
156938
157169
|
}) => {
|
|
156939
|
-
const [i18n] = (0,
|
|
156940
|
-
return /* @__PURE__ */
|
|
157170
|
+
const [i18n] = (0, import_react78.useState)(() => initialI18n ?? createI18n(messages));
|
|
157171
|
+
return /* @__PURE__ */ import_react78.default.createElement(I18nextProvider, { i18n }, children);
|
|
156941
157172
|
};
|
|
156942
157173
|
|
|
156943
157174
|
// ../cli-i18n/src/index.ts
|
|
@@ -156945,11 +157176,11 @@ init_esm_shims();
|
|
|
156945
157176
|
|
|
156946
157177
|
// ../cli-error-reporting/src/error-reporter-context.tsx
|
|
156947
157178
|
init_esm_shims();
|
|
156948
|
-
var
|
|
156949
|
-
var ErrorReporterContext = (0,
|
|
156950
|
-
var ErrorReporterProvider = (props) => /* @__PURE__ */
|
|
157179
|
+
var import_react79 = __toESM(require_react(), 1);
|
|
157180
|
+
var ErrorReporterContext = (0, import_react79.createContext)(null);
|
|
157181
|
+
var ErrorReporterProvider = (props) => /* @__PURE__ */ import_react79.default.createElement(ErrorReporterContext.Provider, { ...props });
|
|
156951
157182
|
var useErrorReporter = () => {
|
|
156952
|
-
const context = (0,
|
|
157183
|
+
const context = (0, import_react79.useContext)(ErrorReporterContext);
|
|
156953
157184
|
if (context == null) {
|
|
156954
157185
|
throw new Error(
|
|
156955
157186
|
"useErrorReporter() cannot be used without an <ErrorReporterProvider>"
|
|
@@ -157169,7 +157400,7 @@ if (typeof module !== "undefined") {
|
|
|
157169
157400
|
|
|
157170
157401
|
// ../cli-error-reporting/src/components/ErrorMessage.tsx
|
|
157171
157402
|
init_esm_shims();
|
|
157172
|
-
var
|
|
157403
|
+
var import_react80 = __toESM(require_react(), 1);
|
|
157173
157404
|
function getOriginalCause(error) {
|
|
157174
157405
|
if (isCliError(error)) {
|
|
157175
157406
|
return getOriginalCause(error.cause());
|
|
@@ -157178,16 +157409,16 @@ function getOriginalCause(error) {
|
|
|
157178
157409
|
}
|
|
157179
157410
|
var ErrorMessage = ({ message, cause, explanation, hint }) => {
|
|
157180
157411
|
const originalCause = getOriginalCause(cause);
|
|
157181
|
-
return /* @__PURE__ */
|
|
157412
|
+
return /* @__PURE__ */ import_react80.default.createElement(
|
|
157182
157413
|
ErrorDetails,
|
|
157183
157414
|
{
|
|
157184
|
-
message: originalCause ? /* @__PURE__ */
|
|
157415
|
+
message: originalCause ? /* @__PURE__ */ import_react80.default.createElement(import_react80.default.Fragment, null, message, " Cause: ", originalCause.message) : message,
|
|
157185
157416
|
hint,
|
|
157186
157417
|
explanation
|
|
157187
157418
|
}
|
|
157188
157419
|
);
|
|
157189
157420
|
};
|
|
157190
|
-
var SystemErrorMessage = ({ message, explanation, hint }) => /* @__PURE__ */
|
|
157421
|
+
var SystemErrorMessage = ({ message, explanation, hint }) => /* @__PURE__ */ import_react80.default.createElement(
|
|
157191
157422
|
ErrorDetails,
|
|
157192
157423
|
{
|
|
157193
157424
|
message,
|
|
@@ -157198,7 +157429,7 @@ var SystemErrorMessage = ({ message, explanation, hint }) => /* @__PURE__ */ imp
|
|
|
157198
157429
|
|
|
157199
157430
|
// ../cli-error-reporting/src/components/OutdatedVersionMessage.tsx
|
|
157200
157431
|
init_esm_shims();
|
|
157201
|
-
var
|
|
157432
|
+
var import_react81 = __toESM(require_react(), 1);
|
|
157202
157433
|
|
|
157203
157434
|
// ../cli-error-reporting/src/messages.json
|
|
157204
157435
|
var messages_default = {
|
|
@@ -157221,30 +157452,30 @@ var OutdatedVersionMessage = ({
|
|
|
157221
157452
|
deprecated,
|
|
157222
157453
|
hasCliAppInstalled
|
|
157223
157454
|
}) => {
|
|
157224
|
-
return /* @__PURE__ */
|
|
157455
|
+
return /* @__PURE__ */ import_react81.default.createElement(I18nProvider, { messages: messages_default }, /* @__PURE__ */ import_react81.default.createElement(Notification, null, deprecated && /* @__PURE__ */ import_react81.default.createElement(
|
|
157225
157456
|
Trans2,
|
|
157226
157457
|
{
|
|
157227
157458
|
i18nKey: "version_notifier.deprecated.message",
|
|
157228
|
-
components: [/* @__PURE__ */
|
|
157459
|
+
components: [/* @__PURE__ */ import_react81.default.createElement(Text2, { skin: "secondary" }), /* @__PURE__ */ import_react81.default.createElement(Text2, { bold: true })],
|
|
157229
157460
|
values: {
|
|
157230
157461
|
currentVersion
|
|
157231
157462
|
}
|
|
157232
157463
|
}
|
|
157233
|
-
), /* @__PURE__ */
|
|
157464
|
+
), /* @__PURE__ */ import_react81.default.createElement(
|
|
157234
157465
|
Trans2,
|
|
157235
157466
|
{
|
|
157236
157467
|
i18nKey: "version_notifier.update.message",
|
|
157237
|
-
components: [/* @__PURE__ */
|
|
157468
|
+
components: [/* @__PURE__ */ import_react81.default.createElement(Text2, { skin: "secondary" }), /* @__PURE__ */ import_react81.default.createElement(Text2, { skin: "success" })],
|
|
157238
157469
|
values: {
|
|
157239
157470
|
currentVersion,
|
|
157240
157471
|
latestVersion
|
|
157241
157472
|
}
|
|
157242
157473
|
}
|
|
157243
|
-
), /* @__PURE__ */
|
|
157474
|
+
), /* @__PURE__ */ import_react81.default.createElement(
|
|
157244
157475
|
Trans2,
|
|
157245
157476
|
{
|
|
157246
157477
|
i18nKey: "version_notifier.update.instructions",
|
|
157247
|
-
components: [/* @__PURE__ */
|
|
157478
|
+
components: [/* @__PURE__ */ import_react81.default.createElement(Text2, { skin: "info" })],
|
|
157248
157479
|
values: {
|
|
157249
157480
|
packages: hasCliAppInstalled ? "npm i @wix/cli@latest @wix/cli-app@latest" : "npm i -g @wix/cli@latest"
|
|
157250
157481
|
}
|
|
@@ -157252,6 +157483,15 @@ var OutdatedVersionMessage = ({
|
|
|
157252
157483
|
)));
|
|
157253
157484
|
};
|
|
157254
157485
|
|
|
157486
|
+
// ../cli-error-reporting/src/components/ServeDeprecationMessage.tsx
|
|
157487
|
+
init_esm_shims();
|
|
157488
|
+
var import_react82 = __toESM(require_react(), 1);
|
|
157489
|
+
var ServeDeprecationMessage = ({
|
|
157490
|
+
packageManagerRunCmd
|
|
157491
|
+
}) => {
|
|
157492
|
+
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."));
|
|
157493
|
+
};
|
|
157494
|
+
|
|
157255
157495
|
// ../cli-error-reporting/src/components/CreateVersionDeprecationMessage.tsx
|
|
157256
157496
|
init_esm_shims();
|
|
157257
157497
|
var import_react83 = __toESM(require_react(), 1);
|
|
@@ -157444,8 +157684,9 @@ function getErrorComponent(code, cause) {
|
|
|
157444
157684
|
return () => /* @__PURE__ */ import_react84.default.createElement(
|
|
157445
157685
|
ErrorMessage,
|
|
157446
157686
|
{
|
|
157447
|
-
message:
|
|
157448
|
-
|
|
157687
|
+
message: "Could not start the migration process",
|
|
157688
|
+
explanation: "Make sure your `package.json` does not contain any packages under `dependencies`, as the migration cannot proceed if any are present.",
|
|
157689
|
+
hint: "If you need to keep any of these packages, move them to `devDependencies` before proceeding."
|
|
157449
157690
|
}
|
|
157450
157691
|
);
|
|
157451
157692
|
},
|
|
@@ -157728,7 +157969,8 @@ function getErrorComponent(code, cause) {
|
|
|
157728
157969
|
modal: () => "modal",
|
|
157729
157970
|
topology: () => "topology",
|
|
157730
157971
|
"site-plugin": () => "site plugin",
|
|
157731
|
-
monitoring: () => "monitoring"
|
|
157972
|
+
monitoring: () => "monitoring",
|
|
157973
|
+
"site-component": () => "site component"
|
|
157732
157974
|
});
|
|
157733
157975
|
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
157976
|
};
|
|
@@ -158305,6 +158547,9 @@ function getErrorComponent(code, cause) {
|
|
|
158305
158547
|
}
|
|
158306
158548
|
);
|
|
158307
158549
|
},
|
|
158550
|
+
ServeDeprecated: ({ packageManagerRunCmd }) => {
|
|
158551
|
+
return () => /* @__PURE__ */ import_react84.default.createElement(ServeDeprecationMessage, { packageManagerRunCmd });
|
|
158552
|
+
},
|
|
158308
158553
|
CannotFindConfigReferencedAsset: ({ asset, configPath, field }) => {
|
|
158309
158554
|
return () => /* @__PURE__ */ import_react84.default.createElement(
|
|
158310
158555
|
ErrorMessage,
|
|
@@ -158402,6 +158647,9 @@ function getErrorComponent(code, cause) {
|
|
|
158402
158647
|
FailedToParseBackofficePages: () => {
|
|
158403
158648
|
return () => /* @__PURE__ */ import_react84.default.createElement(SystemErrorMessage, { message: `Failed to parse backoffice pages data` });
|
|
158404
158649
|
},
|
|
158650
|
+
FailedToCleanDistFolder: () => {
|
|
158651
|
+
return () => /* @__PURE__ */ import_react84.default.createElement(SystemErrorMessage, { message: "Failed to clean dist folder" });
|
|
158652
|
+
},
|
|
158405
158653
|
FailedToDeployDocument: () => {
|
|
158406
158654
|
return () => /* @__PURE__ */ import_react84.default.createElement(SystemErrorMessage, { message: "Failed to deploy site document." });
|
|
158407
158655
|
},
|
|
@@ -158476,6 +158724,17 @@ ${errorMessage}`
|
|
|
158476
158724
|
hint: `Please release major version.`
|
|
158477
158725
|
}
|
|
158478
158726
|
);
|
|
158727
|
+
},
|
|
158728
|
+
SiteComponentConfigNotFound: ({ configPath }) => {
|
|
158729
|
+
return () => /* @__PURE__ */ import_react84.default.createElement(
|
|
158730
|
+
ErrorMessage,
|
|
158731
|
+
{
|
|
158732
|
+
message: `Site component config not found at ${configPath}`
|
|
158733
|
+
}
|
|
158734
|
+
);
|
|
158735
|
+
},
|
|
158736
|
+
FailedToImportCliApp: () => {
|
|
158737
|
+
return () => /* @__PURE__ */ import_react84.default.createElement(ErrorMessage, { cause, message: "Failed to load `@wix/cli-app`." });
|
|
158479
158738
|
}
|
|
158480
158739
|
});
|
|
158481
158740
|
}
|
|
@@ -161031,43 +161290,9 @@ function getDebugLogFilePath(projectFolder) {
|
|
|
161031
161290
|
return join3(getGitIgnoredFolder(projectFolder), "debug.log");
|
|
161032
161291
|
}
|
|
161033
161292
|
|
|
161034
|
-
// src/dev-center/components/dev-center-component.ts
|
|
161035
|
-
init_esm_shims();
|
|
161036
|
-
var import_variant24 = __toESM(require_lib(), 1);
|
|
161037
|
-
var ServicePlugin = (0, import_variant24.variant)({
|
|
161038
|
-
EcomShippingRates: (0, import_variant24.fields)(),
|
|
161039
|
-
EcomAdditionalFees: (0, import_variant24.fields)(),
|
|
161040
|
-
EcomDiscountsTrigger: (0, import_variant24.fields)(),
|
|
161041
|
-
EcomValidations: (0, import_variant24.fields)(),
|
|
161042
|
-
EcomPaymentSettings: (0, import_variant24.fields)(),
|
|
161043
|
-
EcomGiftCardsProvider: (0, import_variant24.fields)()
|
|
161044
|
-
});
|
|
161045
|
-
var DevCenterComponent = (0, import_variant24.variant)({
|
|
161046
|
-
DashboardPage: (0, import_variant24.fields)(),
|
|
161047
|
-
DashboardPlugin: (0, import_variant24.fields)(),
|
|
161048
|
-
DashboardMenuPlugin: (0, import_variant24.fields)(),
|
|
161049
|
-
DashboardModal: (0, import_variant24.fields)(),
|
|
161050
|
-
DashboardSidebarCategory: (0, import_variant24.fields)(),
|
|
161051
|
-
EmbeddedScript: (0, import_variant24.fields)(),
|
|
161052
|
-
CustomElement: (0, import_variant24.fields)(),
|
|
161053
|
-
SitePlugin: (0, import_variant24.fields)(),
|
|
161054
|
-
BlocksWidget: (0, import_variant24.fields)(),
|
|
161055
|
-
BlocksWidgetPanel: (0, import_variant24.fields)(),
|
|
161056
|
-
BlocksMainComponent: (0, import_variant24.fields)(),
|
|
161057
|
-
Topology: (0, import_variant24.fields)(),
|
|
161058
|
-
Api: (0, import_variant24.fields)(),
|
|
161059
|
-
WebMethod: (0, import_variant24.fields)(),
|
|
161060
|
-
Event: (0, import_variant24.fields)(),
|
|
161061
|
-
ServicePlugin: (0, import_variant24.fields)(),
|
|
161062
|
-
Monitoring: (0, import_variant24.fields)()
|
|
161063
|
-
});
|
|
161064
|
-
|
|
161065
|
-
// src/hosting/upload-application.ts
|
|
161066
|
-
init_esm_shims();
|
|
161067
|
-
|
|
161068
161293
|
// ../cli-app-definitions/src/index.ts
|
|
161069
161294
|
init_esm_shims();
|
|
161070
|
-
var
|
|
161295
|
+
var import_variant24 = __toESM(require_lib(), 1);
|
|
161071
161296
|
import { join as join4 } from "node:path";
|
|
161072
161297
|
|
|
161073
161298
|
// ../../node_modules/@wix/ambassador-devcenter-components-v1-component/build/es/types.impl.js
|
|
@@ -161252,6 +161477,7 @@ var ComponentType;
|
|
|
161252
161477
|
ComponentType4["FORM_SUBMISSION_MODERATION"] = "FORM_SUBMISSION_MODERATION";
|
|
161253
161478
|
ComponentType4["EVENTS_EVENT_BADGES"] = "EVENTS_EVENT_BADGES";
|
|
161254
161479
|
ComponentType4["BILLING_OPERATION"] = "BILLING_OPERATION";
|
|
161480
|
+
ComponentType4["BACK_OFFICE_CUSTOMIZATION"] = "BACK_OFFICE_CUSTOMIZATION";
|
|
161255
161481
|
})(ComponentType || (ComponentType = {}));
|
|
161256
161482
|
var WidgetVertical;
|
|
161257
161483
|
(function(WidgetVertical4) {
|
|
@@ -161550,6 +161776,7 @@ var BackOfficeHostingPlatforms;
|
|
|
161550
161776
|
BackOfficeHostingPlatforms4["GETTING_PAID"] = "GETTING_PAID";
|
|
161551
161777
|
BackOfficeHostingPlatforms4["DATA"] = "DATA";
|
|
161552
161778
|
BackOfficeHostingPlatforms4["LITE_DASHBOARD"] = "LITE_DASHBOARD";
|
|
161779
|
+
BackOfficeHostingPlatforms4["PICASSO_EDITOR"] = "PICASSO_EDITOR";
|
|
161553
161780
|
})(BackOfficeHostingPlatforms || (BackOfficeHostingPlatforms = {}));
|
|
161554
161781
|
var DtsDefinitionType;
|
|
161555
161782
|
(function(DtsDefinitionType4) {
|
|
@@ -162462,6 +162689,7 @@ var Escalation;
|
|
|
162462
162689
|
Escalation4["BLOCK_ROLLOUT"] = "BLOCK_ROLLOUT";
|
|
162463
162690
|
Escalation4["BLOCK_FUTURE_ROLLOUT"] = "BLOCK_FUTURE_ROLLOUT";
|
|
162464
162691
|
Escalation4["OPEN_BUG_SLA"] = "OPEN_BUG_SLA";
|
|
162692
|
+
Escalation4["VISIBILITY"] = "VISIBILITY";
|
|
162465
162693
|
})(Escalation || (Escalation = {}));
|
|
162466
162694
|
var ImportanceLevel;
|
|
162467
162695
|
(function(ImportanceLevel4) {
|
|
@@ -162807,6 +163035,19 @@ var RestrictionLevel;
|
|
|
162807
163035
|
RestrictionLevel4["WARNING"] = "WARNING";
|
|
162808
163036
|
RestrictionLevel4["LOCKED"] = "LOCKED";
|
|
162809
163037
|
})(RestrictionLevel || (RestrictionLevel = {}));
|
|
163038
|
+
var Theme;
|
|
163039
|
+
(function(Theme4) {
|
|
163040
|
+
Theme4["UNKNOWN_THEME"] = "UNKNOWN_THEME";
|
|
163041
|
+
Theme4["DARK"] = "DARK";
|
|
163042
|
+
Theme4["LIGHT"] = "LIGHT";
|
|
163043
|
+
})(Theme || (Theme = {}));
|
|
163044
|
+
var SidebarDataType;
|
|
163045
|
+
(function(SidebarDataType4) {
|
|
163046
|
+
SidebarDataType4["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
163047
|
+
SidebarDataType4["CATEGORY"] = "CATEGORY";
|
|
163048
|
+
SidebarDataType4["PAGE"] = "PAGE";
|
|
163049
|
+
SidebarDataType4["SEPARATOR"] = "SEPARATOR";
|
|
163050
|
+
})(SidebarDataType || (SidebarDataType = {}));
|
|
162810
163051
|
|
|
162811
163052
|
// ../cli-app-definitions/src/index.ts
|
|
162812
163053
|
var import_monitoring_buildtime = __toESM(require_build(), 1);
|
|
@@ -162835,6 +163076,7 @@ var EVENTS_DIR = join4(BACKEND_DIR, "events");
|
|
|
162835
163076
|
var SERVICE_PLUGINS_DIR = join4(BACKEND_DIR, "service-plugins");
|
|
162836
163077
|
var SITE_DIR = join4(SRC_DIR, "site");
|
|
162837
163078
|
var EMBEDDED_SCRIPTS_DIR = join4(SITE_DIR, "embedded-scripts");
|
|
163079
|
+
var SITE_COMPONENTS_DIR = join4(SITE_DIR, "components");
|
|
162838
163080
|
var SITE_WIDGETS_DIR = join4(SITE_DIR, "widgets", CUSTOM_ELEMENTS_DIR);
|
|
162839
163081
|
var SITE_PLUGINS_DIR = join4(SITE_DIR, "plugins", CUSTOM_ELEMENTS_DIR);
|
|
162840
163082
|
var BLOCKS_WIDGETS_DIR = join4(SITE_DIR, "widgets", "blocks");
|
|
@@ -163087,7 +163329,7 @@ var embeddedScriptConfigSchema = z.object({
|
|
|
163087
163329
|
"An enum indicating where in the page's DOM the HTML code will be injected."
|
|
163088
163330
|
)
|
|
163089
163331
|
}).strict();
|
|
163090
|
-
var PlatformType = (0,
|
|
163332
|
+
var PlatformType = (0, import_variant24.variant)({
|
|
163091
163333
|
Site: {},
|
|
163092
163334
|
Editor: {},
|
|
163093
163335
|
Dashboard: {},
|
|
@@ -163233,6 +163475,49 @@ var supportedServicePlugin = z.union([
|
|
|
163233
163475
|
z.literal(ComponentType.ECOM_PAYMENT_SETTINGS),
|
|
163234
163476
|
z.literal(ComponentType.GIFT_CARDS_PROVIDER)
|
|
163235
163477
|
]);
|
|
163478
|
+
var siteComponentConfigSchema = z.object({
|
|
163479
|
+
...baseConfig,
|
|
163480
|
+
id: z.string().uuid().describe(
|
|
163481
|
+
"The ID (GUID) is used to register the component in Wix Developers Center. The ID must be unique across all extensions in the app."
|
|
163482
|
+
),
|
|
163483
|
+
description: z.string(),
|
|
163484
|
+
editorElement: z.unknown()
|
|
163485
|
+
}).strict();
|
|
163486
|
+
|
|
163487
|
+
// src/dev-center/components/dev-center-component.ts
|
|
163488
|
+
init_esm_shims();
|
|
163489
|
+
var import_variant25 = __toESM(require_lib(), 1);
|
|
163490
|
+
var ServicePlugin = (0, import_variant25.variant)({
|
|
163491
|
+
EcomShippingRates: (0, import_variant25.fields)(),
|
|
163492
|
+
EcomAdditionalFees: (0, import_variant25.fields)(),
|
|
163493
|
+
EcomDiscountsTrigger: (0, import_variant25.fields)(),
|
|
163494
|
+
EcomValidations: (0, import_variant25.fields)(),
|
|
163495
|
+
EcomPaymentSettings: (0, import_variant25.fields)(),
|
|
163496
|
+
EcomGiftCardsProvider: (0, import_variant25.fields)()
|
|
163497
|
+
});
|
|
163498
|
+
var DevCenterComponent = (0, import_variant25.variant)({
|
|
163499
|
+
DashboardPage: (0, import_variant25.fields)(),
|
|
163500
|
+
DashboardPlugin: (0, import_variant25.fields)(),
|
|
163501
|
+
DashboardMenuPlugin: (0, import_variant25.fields)(),
|
|
163502
|
+
DashboardModal: (0, import_variant25.fields)(),
|
|
163503
|
+
DashboardSidebarCategory: (0, import_variant25.fields)(),
|
|
163504
|
+
EmbeddedScript: (0, import_variant25.fields)(),
|
|
163505
|
+
CustomElement: (0, import_variant25.fields)(),
|
|
163506
|
+
SitePlugin: (0, import_variant25.fields)(),
|
|
163507
|
+
BlocksWidget: (0, import_variant25.fields)(),
|
|
163508
|
+
BlocksWidgetPanel: (0, import_variant25.fields)(),
|
|
163509
|
+
BlocksMainComponent: (0, import_variant25.fields)(),
|
|
163510
|
+
Topology: (0, import_variant25.fields)(),
|
|
163511
|
+
Api: (0, import_variant25.fields)(),
|
|
163512
|
+
WebMethod: (0, import_variant25.fields)(),
|
|
163513
|
+
Event: (0, import_variant25.fields)(),
|
|
163514
|
+
ServicePlugin: (0, import_variant25.fields)(),
|
|
163515
|
+
Monitoring: (0, import_variant25.fields)(),
|
|
163516
|
+
SiteComponent: (0, import_variant25.fields)()
|
|
163517
|
+
});
|
|
163518
|
+
|
|
163519
|
+
// src/hosting/upload-application.ts
|
|
163520
|
+
init_esm_shims();
|
|
163236
163521
|
|
|
163237
163522
|
// ../dev-center-client/src/index.ts
|
|
163238
163523
|
init_esm_shims();
|
|
@@ -163286,12 +163571,14 @@ var _arrayType = { items: "_arrayItems" };
|
|
|
163286
163571
|
var _audioData = { audio: "_media", coverImage: "_media" };
|
|
163287
163572
|
var _authenticatorConfig = { expectedInputs: "_expectedInputs" };
|
|
163288
163573
|
var _background = { image: "_media" };
|
|
163574
|
+
var _backOfficeCustomization = { sidebarConfig: "_sidebarConfig" };
|
|
163289
163575
|
var _billing = {
|
|
163290
163576
|
monthlyPrice: "DOUBLE",
|
|
163291
163577
|
yearlyPrice: "DOUBLE",
|
|
163292
163578
|
oneTimePrice: "DOUBLE",
|
|
163293
163579
|
meteredBilling: "_meteredBilling"
|
|
163294
163580
|
};
|
|
163581
|
+
var _category = { children: "_sidebarChildItem" };
|
|
163295
163582
|
var _checkbox = { label: "_richContent" };
|
|
163296
163583
|
var _checkboxGroup = { description: "_richContent", options: "_option" };
|
|
163297
163584
|
var _commonImage = {
|
|
@@ -163314,7 +163601,8 @@ var _componentData = {
|
|
|
163314
163601
|
function: "_function",
|
|
163315
163602
|
papiProvider: "_pluginConfig",
|
|
163316
163603
|
multilingualTranslationSchemaGroup: "_schemaGroup",
|
|
163317
|
-
editorReactComponent: "_editorReactComponent"
|
|
163604
|
+
editorReactComponent: "_editorReactComponent",
|
|
163605
|
+
backOfficeCustomization: "_backOfficeCustomization"
|
|
163318
163606
|
};
|
|
163319
163607
|
var _conditionNode = { and: "_andCondition", or: "_orCondition" };
|
|
163320
163608
|
var _dataItem = { number: "_api_Number", arrayItems: "_apiArrayItems" };
|
|
@@ -163344,7 +163632,10 @@ var _editorElement = {
|
|
|
163344
163632
|
var _editorPresence = { presetsEditorPresence: "_presetEditorPresence" };
|
|
163345
163633
|
var _editorReactComponent = { editorElement: "_editorElement" };
|
|
163346
163634
|
var _elementDefaults = { elementsDefaults: "Map#_elementDefaults" };
|
|
163347
|
-
var _elementItem = {
|
|
163635
|
+
var _elementItem = {
|
|
163636
|
+
inlineElement: "_inlineElement",
|
|
163637
|
+
refElement: "_refElement"
|
|
163638
|
+
};
|
|
163348
163639
|
var _elementStyleDefaults = {
|
|
163349
163640
|
elementsStyleDefaults: "Map#_elementStyleDefaults"
|
|
163350
163641
|
};
|
|
@@ -163476,6 +163767,7 @@ var _queryAppRequest = {};
|
|
|
163476
163767
|
var _queryAppResponse = { apps: "_v1App" };
|
|
163477
163768
|
var _radioGroup = { description: "_richContent" };
|
|
163478
163769
|
var _ratingInput = { description: "_richContent" };
|
|
163770
|
+
var _refElement = { resolvedElement: "_inlineElement" };
|
|
163479
163771
|
var _richContent = { nodes: "_node", metadata: "_v1Metadata" };
|
|
163480
163772
|
var _richContentOptions = { richContent: "_richContent" };
|
|
163481
163773
|
var _schema = {
|
|
@@ -163489,6 +163781,9 @@ var _schemaGroup = {
|
|
|
163489
163781
|
};
|
|
163490
163782
|
var _shippingLabelCarrierSpiConfig = { packageTypes: "_packageType" };
|
|
163491
163783
|
var _shippingProviderConfig = { shippingPrice: "DOUBLE" };
|
|
163784
|
+
var _sidebarChildItem = { category: "_category" };
|
|
163785
|
+
var _sidebarConfig = { sidebarItems: "_sidebarRootItem" };
|
|
163786
|
+
var _sidebarRootItem = { category: "_category" };
|
|
163492
163787
|
var _signature = { description: "_richContent" };
|
|
163493
163788
|
var _studioWidgetComponentData = {
|
|
163494
163789
|
widgetDisplay: "_widgetDisplay",
|
|
@@ -163806,8 +164101,10 @@ function getAppByVersion(payload4) {
|
|
|
163806
164101
|
_arrayType,
|
|
163807
164102
|
_audioData,
|
|
163808
164103
|
_authenticatorConfig,
|
|
164104
|
+
_backOfficeCustomization,
|
|
163809
164105
|
_background,
|
|
163810
164106
|
_billing,
|
|
164107
|
+
_category,
|
|
163811
164108
|
_checkbox,
|
|
163812
164109
|
_checkboxGroup,
|
|
163813
164110
|
_commonImage,
|
|
@@ -163882,12 +164179,16 @@ function getAppByVersion(payload4) {
|
|
|
163882
164179
|
_propertiesType,
|
|
163883
164180
|
_radioGroup,
|
|
163884
164181
|
_ratingInput,
|
|
164182
|
+
_refElement,
|
|
163885
164183
|
_richContent,
|
|
163886
164184
|
_richContentOptions,
|
|
163887
164185
|
_schema,
|
|
163888
164186
|
_schemaGroup,
|
|
163889
164187
|
_shippingLabelCarrierSpiConfig,
|
|
163890
164188
|
_shippingProviderConfig,
|
|
164189
|
+
_sidebarChildItem,
|
|
164190
|
+
_sidebarConfig,
|
|
164191
|
+
_sidebarRootItem,
|
|
163891
164192
|
_signature,
|
|
163892
164193
|
_studioWidgetComponentData,
|
|
163893
164194
|
_submitSettings,
|
|
@@ -164463,6 +164764,8 @@ var _arrayType2 = { items: "_arrayItems" };
|
|
|
164463
164764
|
var _audioData2 = { audio: "_media", coverImage: "_media" };
|
|
164464
164765
|
var _authenticatorConfig2 = { expectedInputs: "_expectedInputs" };
|
|
164465
164766
|
var _background2 = { image: "_media" };
|
|
164767
|
+
var _backOfficeCustomization2 = { sidebarConfig: "_sidebarConfig" };
|
|
164768
|
+
var _category2 = { children: "_sidebarChildItem" };
|
|
164466
164769
|
var _checkbox2 = { label: "_richContent" };
|
|
164467
164770
|
var _checkboxGroup2 = { description: "_richContent", options: "_option" };
|
|
164468
164771
|
var _commonImage2 = {
|
|
@@ -164485,7 +164788,8 @@ var _componentData2 = {
|
|
|
164485
164788
|
function: "_function",
|
|
164486
164789
|
papiProvider: "_pluginConfig",
|
|
164487
164790
|
multilingualTranslationSchemaGroup: "_schemaGroup",
|
|
164488
|
-
editorReactComponent: "_editorReactComponent"
|
|
164791
|
+
editorReactComponent: "_editorReactComponent",
|
|
164792
|
+
backOfficeCustomization: "_backOfficeCustomization"
|
|
164489
164793
|
};
|
|
164490
164794
|
var _conditionNode2 = { and: "_andCondition", or: "_orCondition" };
|
|
164491
164795
|
var _dataItem2 = { number: "_api_Number", arrayItems: "_apiArrayItems" };
|
|
@@ -164516,7 +164820,10 @@ var _editorElement2 = {
|
|
|
164516
164820
|
var _editorPresence2 = { presetsEditorPresence: "_presetEditorPresence" };
|
|
164517
164821
|
var _editorReactComponent2 = { editorElement: "_editorElement" };
|
|
164518
164822
|
var _elementDefaults2 = { elementsDefaults: "Map#_elementDefaults" };
|
|
164519
|
-
var _elementItem2 = {
|
|
164823
|
+
var _elementItem2 = {
|
|
164824
|
+
inlineElement: "_inlineElement",
|
|
164825
|
+
refElement: "_refElement"
|
|
164826
|
+
};
|
|
164520
164827
|
var _elementStyleDefaults2 = {
|
|
164521
164828
|
elementsStyleDefaults: "Map#_elementStyleDefaults"
|
|
164522
164829
|
};
|
|
@@ -164645,6 +164952,7 @@ var _propertiesType2 = {
|
|
|
164645
164952
|
};
|
|
164646
164953
|
var _radioGroup2 = { description: "_richContent" };
|
|
164647
164954
|
var _ratingInput2 = { description: "_richContent" };
|
|
164955
|
+
var _refElement2 = { resolvedElement: "_inlineElement" };
|
|
164648
164956
|
var _richContent2 = { nodes: "_node", metadata: "_v1Metadata" };
|
|
164649
164957
|
var _richContentOptions2 = { richContent: "_richContent" };
|
|
164650
164958
|
var _saleInfo = {
|
|
@@ -164662,6 +164970,9 @@ var _schemaGroup2 = {
|
|
|
164662
164970
|
};
|
|
164663
164971
|
var _shippingLabelCarrierSpiConfig2 = { packageTypes: "_packageType" };
|
|
164664
164972
|
var _shippingProviderConfig2 = { shippingPrice: "DOUBLE" };
|
|
164973
|
+
var _sidebarChildItem2 = { category: "_category" };
|
|
164974
|
+
var _sidebarConfig2 = { sidebarItems: "_sidebarRootItem" };
|
|
164975
|
+
var _sidebarRootItem2 = { category: "_category" };
|
|
164665
164976
|
var _signature2 = { description: "_richContent" };
|
|
164666
164977
|
var _studioWidgetComponentData2 = {
|
|
164667
164978
|
widgetDisplay: "_widgetDisplay",
|
|
@@ -164773,7 +165084,9 @@ function managedApps(payload4) {
|
|
|
164773
165084
|
_arrayType: _arrayType2,
|
|
164774
165085
|
_audioData: _audioData2,
|
|
164775
165086
|
_authenticatorConfig: _authenticatorConfig2,
|
|
165087
|
+
_backOfficeCustomization: _backOfficeCustomization2,
|
|
164776
165088
|
_background: _background2,
|
|
165089
|
+
_category: _category2,
|
|
164777
165090
|
_checkbox: _checkbox2,
|
|
164778
165091
|
_checkboxGroup: _checkboxGroup2,
|
|
164779
165092
|
_commonImage: _commonImage2,
|
|
@@ -164850,6 +165163,7 @@ function managedApps(payload4) {
|
|
|
164850
165163
|
_propertiesType: _propertiesType2,
|
|
164851
165164
|
_radioGroup: _radioGroup2,
|
|
164852
165165
|
_ratingInput: _ratingInput2,
|
|
165166
|
+
_refElement: _refElement2,
|
|
164853
165167
|
_richContent: _richContent2,
|
|
164854
165168
|
_richContentOptions: _richContentOptions2,
|
|
164855
165169
|
_saleInfo,
|
|
@@ -164857,6 +165171,9 @@ function managedApps(payload4) {
|
|
|
164857
165171
|
_schemaGroup: _schemaGroup2,
|
|
164858
165172
|
_shippingLabelCarrierSpiConfig: _shippingLabelCarrierSpiConfig2,
|
|
164859
165173
|
_shippingProviderConfig: _shippingProviderConfig2,
|
|
165174
|
+
_sidebarChildItem: _sidebarChildItem2,
|
|
165175
|
+
_sidebarConfig: _sidebarConfig2,
|
|
165176
|
+
_sidebarRootItem: _sidebarRootItem2,
|
|
164860
165177
|
_signature: _signature2,
|
|
164861
165178
|
_studioWidgetComponentData: _studioWidgetComponentData2,
|
|
164862
165179
|
_submitSettings: _submitSettings2,
|
|
@@ -165119,6 +165436,8 @@ var ComponentType2;
|
|
|
165119
165436
|
ComponentType4["STORES_PRODUCT_RESTRICTIONS"] = "STORES_PRODUCT_RESTRICTIONS";
|
|
165120
165437
|
ComponentType4["FORM_SUBMISSION_MODERATION"] = "FORM_SUBMISSION_MODERATION";
|
|
165121
165438
|
ComponentType4["EVENTS_EVENT_BADGES"] = "EVENTS_EVENT_BADGES";
|
|
165439
|
+
ComponentType4["BILLING_OPERATION"] = "BILLING_OPERATION";
|
|
165440
|
+
ComponentType4["BACK_OFFICE_CUSTOMIZATION"] = "BACK_OFFICE_CUSTOMIZATION";
|
|
165122
165441
|
})(ComponentType2 || (ComponentType2 = {}));
|
|
165123
165442
|
var WidgetVertical2;
|
|
165124
165443
|
(function(WidgetVertical4) {
|
|
@@ -165417,6 +165736,7 @@ var BackOfficeHostingPlatforms2;
|
|
|
165417
165736
|
BackOfficeHostingPlatforms4["GETTING_PAID"] = "GETTING_PAID";
|
|
165418
165737
|
BackOfficeHostingPlatforms4["DATA"] = "DATA";
|
|
165419
165738
|
BackOfficeHostingPlatforms4["LITE_DASHBOARD"] = "LITE_DASHBOARD";
|
|
165739
|
+
BackOfficeHostingPlatforms4["PICASSO_EDITOR"] = "PICASSO_EDITOR";
|
|
165420
165740
|
})(BackOfficeHostingPlatforms2 || (BackOfficeHostingPlatforms2 = {}));
|
|
165421
165741
|
var DtsDefinitionType2;
|
|
165422
165742
|
(function(DtsDefinitionType4) {
|
|
@@ -166329,6 +166649,7 @@ var Escalation2;
|
|
|
166329
166649
|
Escalation4["BLOCK_ROLLOUT"] = "BLOCK_ROLLOUT";
|
|
166330
166650
|
Escalation4["BLOCK_FUTURE_ROLLOUT"] = "BLOCK_FUTURE_ROLLOUT";
|
|
166331
166651
|
Escalation4["OPEN_BUG_SLA"] = "OPEN_BUG_SLA";
|
|
166652
|
+
Escalation4["VISIBILITY"] = "VISIBILITY";
|
|
166332
166653
|
})(Escalation2 || (Escalation2 = {}));
|
|
166333
166654
|
var ImportanceLevel2;
|
|
166334
166655
|
(function(ImportanceLevel4) {
|
|
@@ -166674,6 +166995,19 @@ var RestrictionLevel2;
|
|
|
166674
166995
|
RestrictionLevel4["WARNING"] = "WARNING";
|
|
166675
166996
|
RestrictionLevel4["LOCKED"] = "LOCKED";
|
|
166676
166997
|
})(RestrictionLevel2 || (RestrictionLevel2 = {}));
|
|
166998
|
+
var Theme2;
|
|
166999
|
+
(function(Theme4) {
|
|
167000
|
+
Theme4["UNKNOWN_THEME"] = "UNKNOWN_THEME";
|
|
167001
|
+
Theme4["DARK"] = "DARK";
|
|
167002
|
+
Theme4["LIGHT"] = "LIGHT";
|
|
167003
|
+
})(Theme2 || (Theme2 = {}));
|
|
167004
|
+
var SidebarDataType2;
|
|
167005
|
+
(function(SidebarDataType4) {
|
|
167006
|
+
SidebarDataType4["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
167007
|
+
SidebarDataType4["CATEGORY"] = "CATEGORY";
|
|
167008
|
+
SidebarDataType4["PAGE"] = "PAGE";
|
|
167009
|
+
SidebarDataType4["SEPARATOR"] = "SEPARATOR";
|
|
167010
|
+
})(SidebarDataType2 || (SidebarDataType2 = {}));
|
|
166677
167011
|
var SaleType;
|
|
166678
167012
|
(function(SaleType2) {
|
|
166679
167013
|
SaleType2["UNKNOWN_SALE_TYPE"] = "UNKNOWN_SALE_TYPE";
|
|
@@ -167016,6 +167350,7 @@ var ComponentType3;
|
|
|
167016
167350
|
ComponentType4["FORM_SUBMISSION_MODERATION"] = "FORM_SUBMISSION_MODERATION";
|
|
167017
167351
|
ComponentType4["EVENTS_EVENT_BADGES"] = "EVENTS_EVENT_BADGES";
|
|
167018
167352
|
ComponentType4["BILLING_OPERATION"] = "BILLING_OPERATION";
|
|
167353
|
+
ComponentType4["BACK_OFFICE_CUSTOMIZATION"] = "BACK_OFFICE_CUSTOMIZATION";
|
|
167019
167354
|
})(ComponentType3 || (ComponentType3 = {}));
|
|
167020
167355
|
var WidgetVertical3;
|
|
167021
167356
|
(function(WidgetVertical4) {
|
|
@@ -167314,6 +167649,7 @@ var BackOfficeHostingPlatforms3;
|
|
|
167314
167649
|
BackOfficeHostingPlatforms4["GETTING_PAID"] = "GETTING_PAID";
|
|
167315
167650
|
BackOfficeHostingPlatforms4["DATA"] = "DATA";
|
|
167316
167651
|
BackOfficeHostingPlatforms4["LITE_DASHBOARD"] = "LITE_DASHBOARD";
|
|
167652
|
+
BackOfficeHostingPlatforms4["PICASSO_EDITOR"] = "PICASSO_EDITOR";
|
|
167317
167653
|
})(BackOfficeHostingPlatforms3 || (BackOfficeHostingPlatforms3 = {}));
|
|
167318
167654
|
var DtsDefinitionType3;
|
|
167319
167655
|
(function(DtsDefinitionType4) {
|
|
@@ -168226,6 +168562,7 @@ var Escalation3;
|
|
|
168226
168562
|
Escalation4["BLOCK_ROLLOUT"] = "BLOCK_ROLLOUT";
|
|
168227
168563
|
Escalation4["BLOCK_FUTURE_ROLLOUT"] = "BLOCK_FUTURE_ROLLOUT";
|
|
168228
168564
|
Escalation4["OPEN_BUG_SLA"] = "OPEN_BUG_SLA";
|
|
168565
|
+
Escalation4["VISIBILITY"] = "VISIBILITY";
|
|
168229
168566
|
})(Escalation3 || (Escalation3 = {}));
|
|
168230
168567
|
var ImportanceLevel3;
|
|
168231
168568
|
(function(ImportanceLevel4) {
|
|
@@ -168571,6 +168908,19 @@ var RestrictionLevel3;
|
|
|
168571
168908
|
RestrictionLevel4["WARNING"] = "WARNING";
|
|
168572
168909
|
RestrictionLevel4["LOCKED"] = "LOCKED";
|
|
168573
168910
|
})(RestrictionLevel3 || (RestrictionLevel3 = {}));
|
|
168911
|
+
var Theme3;
|
|
168912
|
+
(function(Theme4) {
|
|
168913
|
+
Theme4["UNKNOWN_THEME"] = "UNKNOWN_THEME";
|
|
168914
|
+
Theme4["DARK"] = "DARK";
|
|
168915
|
+
Theme4["LIGHT"] = "LIGHT";
|
|
168916
|
+
})(Theme3 || (Theme3 = {}));
|
|
168917
|
+
var SidebarDataType3;
|
|
168918
|
+
(function(SidebarDataType4) {
|
|
168919
|
+
SidebarDataType4["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
168920
|
+
SidebarDataType4["CATEGORY"] = "CATEGORY";
|
|
168921
|
+
SidebarDataType4["PAGE"] = "PAGE";
|
|
168922
|
+
SidebarDataType4["SEPARATOR"] = "SEPARATOR";
|
|
168923
|
+
})(SidebarDataType3 || (SidebarDataType3 = {}));
|
|
168574
168924
|
var OpenConsentIn2;
|
|
168575
168925
|
(function(OpenConsentIn3) {
|
|
168576
168926
|
OpenConsentIn3["NONE_VALUE"] = "NONE_VALUE";
|
|
@@ -169269,7 +169619,7 @@ import { createReadStream, statSync } from "fs";
|
|
|
169269
169619
|
|
|
169270
169620
|
// ../../node_modules/@wix/app-cloud-uploader/node_modules/p-retry/index.js
|
|
169271
169621
|
init_esm_shims();
|
|
169272
|
-
var import_retry2 = __toESM(
|
|
169622
|
+
var import_retry2 = __toESM(require_retry4(), 1);
|
|
169273
169623
|
var networkErrorMsgs = /* @__PURE__ */ new Set([
|
|
169274
169624
|
"Failed to fetch",
|
|
169275
169625
|
// Chrome
|
|
@@ -171624,7 +171974,8 @@ function useExtensions() {
|
|
|
171624
171974
|
Event: [],
|
|
171625
171975
|
ServicePlugin: [],
|
|
171626
171976
|
SitePlugin: [],
|
|
171627
|
-
Monitoring: []
|
|
171977
|
+
Monitoring: [],
|
|
171978
|
+
SiteComponent: []
|
|
171628
171979
|
}
|
|
171629
171980
|
);
|
|
171630
171981
|
extensionsMap.DashboardPage = extensionsMap.DashboardPage.sort(
|
|
@@ -172151,6 +172502,57 @@ function virtualBlocksWidgetScriptAssets(model) {
|
|
|
172151
172502
|
])
|
|
172152
172503
|
);
|
|
172153
172504
|
}
|
|
172505
|
+
function virtualModuleIdForSiteComponentScriptAsset(componentId) {
|
|
172506
|
+
return `wix/scripts/site-component-asset/${componentId}.js`;
|
|
172507
|
+
}
|
|
172508
|
+
function virtualSiteComponentScriptAssets(model) {
|
|
172509
|
+
return new Map(
|
|
172510
|
+
model.components.filter((0, import_variant28.isType)(DevCenterComponent.SiteComponent)).map((comp) => [
|
|
172511
|
+
virtualModuleIdForSiteComponentScriptAsset(comp.id),
|
|
172512
|
+
comp
|
|
172513
|
+
])
|
|
172514
|
+
);
|
|
172515
|
+
}
|
|
172516
|
+
function virtualModuleIdForSiteComponentSdkScriptAsset(componentId) {
|
|
172517
|
+
return `wix/scripts/site-component-asset/sdk-${componentId}.js`;
|
|
172518
|
+
}
|
|
172519
|
+
function virtualSiteComponentSdkScriptAssets(model) {
|
|
172520
|
+
const assets = /* @__PURE__ */ new Map();
|
|
172521
|
+
for (const comp of model.components) {
|
|
172522
|
+
if ((0, import_variant28.isType)(comp, DevCenterComponent.SiteComponent) && comp.relativeSdkPath) {
|
|
172523
|
+
assets.set(virtualModuleIdForSiteComponentSdkScriptAsset(comp.id), {
|
|
172524
|
+
...comp,
|
|
172525
|
+
relativeSdkPath: comp.relativeSdkPath
|
|
172526
|
+
});
|
|
172527
|
+
}
|
|
172528
|
+
}
|
|
172529
|
+
return assets;
|
|
172530
|
+
}
|
|
172531
|
+
async function loadSiteComponentConfig(projectFolder, relativePath) {
|
|
172532
|
+
const configRelativePath = replaceExtension(relativePath, "json");
|
|
172533
|
+
const configPath = join9(projectFolder, configRelativePath);
|
|
172534
|
+
const isConfigExist = await pathExists(configPath);
|
|
172535
|
+
if (!isConfigExist) {
|
|
172536
|
+
throw new CliError({
|
|
172537
|
+
code: CliErrorCode.SiteComponentConfigNotFound({
|
|
172538
|
+
configPath: configRelativePath
|
|
172539
|
+
}),
|
|
172540
|
+
cause: null
|
|
172541
|
+
});
|
|
172542
|
+
}
|
|
172543
|
+
const config = await readJson(configPath);
|
|
172544
|
+
const parsedConfig = siteComponentConfigSchema.safeParse(config);
|
|
172545
|
+
if (parsedConfig.success) {
|
|
172546
|
+
return parsedConfig.data;
|
|
172547
|
+
}
|
|
172548
|
+
throw new CliError({
|
|
172549
|
+
code: CliErrorCode.InvalidConfigSchemaError({
|
|
172550
|
+
configPath: configRelativePath,
|
|
172551
|
+
zodError: parsedConfig.error
|
|
172552
|
+
}),
|
|
172553
|
+
cause: parsedConfig.error
|
|
172554
|
+
});
|
|
172555
|
+
}
|
|
172154
172556
|
async function loadEmbeddedScriptParamsOverride(embeddedScriptPath) {
|
|
172155
172557
|
const paramsOverridePath = join9(
|
|
172156
172558
|
dirname3(embeddedScriptPath),
|
|
@@ -172180,6 +172582,17 @@ var EMBEDDED_SCRIPTS_PATTERN = join10(
|
|
|
172180
172582
|
"**",
|
|
172181
172583
|
"embedded.html"
|
|
172182
172584
|
);
|
|
172585
|
+
var SDK_PATTERN = "sdk.{ts,js}";
|
|
172586
|
+
var SITE_COMPONENTS_PATTERN = join10(
|
|
172587
|
+
SITE_COMPONENTS_DIR,
|
|
172588
|
+
"**",
|
|
172589
|
+
"component.{ts,tsx,js,jsx}"
|
|
172590
|
+
);
|
|
172591
|
+
var SITE_COMPONENTS_SDK_PATTERN = join10(
|
|
172592
|
+
SITE_COMPONENTS_DIR,
|
|
172593
|
+
"**",
|
|
172594
|
+
SDK_PATTERN
|
|
172595
|
+
);
|
|
172183
172596
|
var SITE_WIDGETS_ELEMENT_PATTERN = join10(
|
|
172184
172597
|
SITE_WIDGETS_DIR,
|
|
172185
172598
|
"**",
|
|
@@ -172287,11 +172700,11 @@ var BLOCKS_WIDGETS_PANELS_PATTERN = join10(
|
|
|
172287
172700
|
"**",
|
|
172288
172701
|
BLOCKS_WIDGETS_PANEL_PATTERN
|
|
172289
172702
|
);
|
|
172290
|
-
var
|
|
172703
|
+
var BLOCKS_WIDGET_API_PATTERN = "api.{ts,js}";
|
|
172291
172704
|
async function loadBlocksWidgetAndPanels(blocksWidgetPath) {
|
|
172292
172705
|
const { dir: blocksWidgetFolderPath } = parse5(blocksWidgetPath);
|
|
172293
172706
|
const blocksWidgetConfig = await loadBlocksWidgetComponentConfig(blocksWidgetPath);
|
|
172294
|
-
const blocksWidgetAPIPath = (await globby2(normalizeGlobbyPattern(
|
|
172707
|
+
const blocksWidgetAPIPath = (await globby2(normalizeGlobbyPattern(BLOCKS_WIDGET_API_PATTERN), {
|
|
172295
172708
|
cwd: blocksWidgetFolderPath
|
|
172296
172709
|
}))[0];
|
|
172297
172710
|
if (!blocksWidgetAPIPath) {
|
|
@@ -172481,6 +172894,27 @@ async function loadSitePluginComponents(projectFolder, wixDependencies) {
|
|
|
172481
172894
|
}
|
|
172482
172895
|
return sitePlugins;
|
|
172483
172896
|
}
|
|
172897
|
+
async function loadSiteComponent(projectFolder, relativePath) {
|
|
172898
|
+
const config = await loadSiteComponentConfig(projectFolder, relativePath);
|
|
172899
|
+
const componentRelativeDir = dirname4(relativePath);
|
|
172900
|
+
const sdkPath = (await globby2(normalizeGlobbyPattern(SDK_PATTERN), {
|
|
172901
|
+
cwd: join10(projectFolder, componentRelativeDir)
|
|
172902
|
+
})).at(0);
|
|
172903
|
+
return DevCenterComponent.SiteComponent({
|
|
172904
|
+
...config,
|
|
172905
|
+
relativePath,
|
|
172906
|
+
relativeSdkPath: sdkPath && join10(componentRelativeDir, sdkPath),
|
|
172907
|
+
platforms: [PlatformType.Editor(), PlatformType.Site()]
|
|
172908
|
+
});
|
|
172909
|
+
}
|
|
172910
|
+
async function loadSiteComponents(projectFolder) {
|
|
172911
|
+
const paths = await globby2(normalizeGlobbyPattern(SITE_COMPONENTS_PATTERN), {
|
|
172912
|
+
cwd: projectFolder
|
|
172913
|
+
});
|
|
172914
|
+
return await Promise.all(
|
|
172915
|
+
paths.map((pagePath) => loadSiteComponent(projectFolder, pagePath))
|
|
172916
|
+
);
|
|
172917
|
+
}
|
|
172484
172918
|
|
|
172485
172919
|
// src/dev-center/components/site/frontend-dependencies.ts
|
|
172486
172920
|
init_esm_shims();
|
|
@@ -172676,7 +173110,8 @@ async function loadDevCenterComponents({
|
|
|
172676
173110
|
webMethod,
|
|
172677
173111
|
servicePlugins,
|
|
172678
173112
|
events,
|
|
172679
|
-
monitoringComponent
|
|
173113
|
+
monitoringComponent,
|
|
173114
|
+
siteComponents
|
|
172680
173115
|
] = await Promise.all([
|
|
172681
173116
|
loadDashboardPageComponents(projectFolder),
|
|
172682
173117
|
loadDashboardPluginComponents(projectFolder),
|
|
@@ -172690,7 +173125,8 @@ async function loadDevCenterComponents({
|
|
|
172690
173125
|
loadBackendWebMethods(projectFolder),
|
|
172691
173126
|
loadServicePlugins(projectFolder),
|
|
172692
173127
|
loadBackendEvents(projectFolder),
|
|
172693
|
-
loadMonitoringComponent(projectFolder, config)
|
|
173128
|
+
loadMonitoringComponent(projectFolder, config),
|
|
173129
|
+
loadSiteComponents(projectFolder)
|
|
172694
173130
|
]);
|
|
172695
173131
|
const dashboardSidebarCategories = loadDashboardSidebarCategoryComponent(config);
|
|
172696
173132
|
const hasBackendComponents = apis.length + servicePlugins.length + events.length > 0;
|
|
@@ -172710,7 +173146,8 @@ async function loadDevCenterComponents({
|
|
|
172710
173146
|
...topologyComponent,
|
|
172711
173147
|
...sitePlugins,
|
|
172712
173148
|
...monitoringComponent,
|
|
172713
|
-
...blocksComponents
|
|
173149
|
+
...blocksComponents,
|
|
173150
|
+
...siteComponents
|
|
172714
173151
|
];
|
|
172715
173152
|
}
|
|
172716
173153
|
|
|
@@ -173322,10 +173759,8 @@ export {
|
|
|
173322
173759
|
use_input_default,
|
|
173323
173760
|
Text2 as Text,
|
|
173324
173761
|
InputState,
|
|
173325
|
-
InfoIcon,
|
|
173326
173762
|
PointerIcon,
|
|
173327
173763
|
PointerSmallIcon,
|
|
173328
|
-
SuccessIcon,
|
|
173329
173764
|
Learn,
|
|
173330
173765
|
Cart,
|
|
173331
173766
|
Statistics,
|
|
@@ -173410,6 +173845,7 @@ export {
|
|
|
173410
173845
|
getApiFolder,
|
|
173411
173846
|
getEventsFolder,
|
|
173412
173847
|
getServicePluginsFolder,
|
|
173848
|
+
getDistFolder,
|
|
173413
173849
|
getAppBuildFolder,
|
|
173414
173850
|
getAppBrowserBuildFolder,
|
|
173415
173851
|
getAppWorkerBuildFolder,
|
|
@@ -173465,6 +173901,12 @@ export {
|
|
|
173465
173901
|
virtualModuleIdForBlocksComponentScriptAsset,
|
|
173466
173902
|
virtualBlocksWidgetPanelScriptAssets,
|
|
173467
173903
|
virtualBlocksWidgetScriptAssets,
|
|
173904
|
+
virtualModuleIdForSiteComponentScriptAsset,
|
|
173905
|
+
virtualSiteComponentScriptAssets,
|
|
173906
|
+
virtualModuleIdForSiteComponentSdkScriptAsset,
|
|
173907
|
+
virtualSiteComponentSdkScriptAssets,
|
|
173908
|
+
SITE_COMPONENTS_PATTERN,
|
|
173909
|
+
SITE_COMPONENTS_SDK_PATTERN,
|
|
173468
173910
|
SITE_WIDGETS_ELEMENT_PATTERN,
|
|
173469
173911
|
SITE_WIDGETS_PANEL_PATTERN,
|
|
173470
173912
|
SITE_PLUGINS_PLUGIN_PATTERN,
|
|
@@ -173656,4 +174098,4 @@ mustache/mustache.mjs:
|
|
|
173656
174098
|
* http://github.com/janl/mustache.js
|
|
173657
174099
|
*)
|
|
173658
174100
|
*/
|
|
173659
|
-
//# sourceMappingURL=chunk-
|
|
174101
|
+
//# sourceMappingURL=chunk-JCCY3Z4D.js.map
|