@wix/create-headless-site 0.0.19 → 0.0.21
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/index.js +1279 -1125
- package/build/index.js.map +1 -1
- package/package.json +3 -3
package/build/index.js
CHANGED
|
@@ -101,10 +101,10 @@ var require_react_production_min = __commonJS({
|
|
|
101
101
|
var w = Symbol.for("react.suspense");
|
|
102
102
|
var x = Symbol.for("react.memo");
|
|
103
103
|
var y = Symbol.for("react.lazy");
|
|
104
|
-
var
|
|
104
|
+
var z = Symbol.iterator;
|
|
105
105
|
function A(a2) {
|
|
106
106
|
if (null === a2 || "object" !== typeof a2) return null;
|
|
107
|
-
a2 =
|
|
107
|
+
a2 = z && a2[z] || a2["@@iterator"];
|
|
108
108
|
return "function" === typeof a2 ? a2 : null;
|
|
109
109
|
}
|
|
110
110
|
var B = { isMounted: function() {
|
|
@@ -1373,7 +1373,7 @@ var require_scheduler_production_min = __commonJS({
|
|
|
1373
1373
|
var u = 1;
|
|
1374
1374
|
var v = null;
|
|
1375
1375
|
var y = 3;
|
|
1376
|
-
var
|
|
1376
|
+
var z = false;
|
|
1377
1377
|
var A = false;
|
|
1378
1378
|
var B = false;
|
|
1379
1379
|
var D = "function" === typeof setTimeout ? setTimeout : null;
|
|
@@ -1400,7 +1400,7 @@ var require_scheduler_production_min = __commonJS({
|
|
|
1400
1400
|
function J(a2, b2) {
|
|
1401
1401
|
A = false;
|
|
1402
1402
|
B && (B = false, E2(L), L = -1);
|
|
1403
|
-
|
|
1403
|
+
z = true;
|
|
1404
1404
|
var c2 = y;
|
|
1405
1405
|
try {
|
|
1406
1406
|
G(b2);
|
|
@@ -1424,7 +1424,7 @@ var require_scheduler_production_min = __commonJS({
|
|
|
1424
1424
|
}
|
|
1425
1425
|
return w;
|
|
1426
1426
|
} finally {
|
|
1427
|
-
v = null, y = c2,
|
|
1427
|
+
v = null, y = c2, z = false;
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
1430
|
var N = false;
|
|
@@ -1481,7 +1481,7 @@ var require_scheduler_production_min = __commonJS({
|
|
|
1481
1481
|
a2.callback = null;
|
|
1482
1482
|
};
|
|
1483
1483
|
exports.unstable_continueExecution = function() {
|
|
1484
|
-
A ||
|
|
1484
|
+
A || z || (A = true, I(J));
|
|
1485
1485
|
};
|
|
1486
1486
|
exports.unstable_forceFrameRate = function(a2) {
|
|
1487
1487
|
0 > a2 || 125 < a2 ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : P = 0 < a2 ? Math.floor(1e3 / a2) : 5;
|
|
@@ -1554,7 +1554,7 @@ var require_scheduler_production_min = __commonJS({
|
|
|
1554
1554
|
}
|
|
1555
1555
|
e2 = c2 + e2;
|
|
1556
1556
|
a2 = { id: u++, callback: b2, priorityLevel: a2, startTime: c2, expirationTime: e2, sortIndex: -1 };
|
|
1557
|
-
c2 > d ? (a2.sortIndex = c2, f(t3, a2), null === h(r2) && a2 === h(t3) && (B ? (E2(L), L = -1) : B = true, K(H, c2 - d))) : (a2.sortIndex = e2, f(r2, a2), A ||
|
|
1557
|
+
c2 > d ? (a2.sortIndex = c2, f(t3, a2), null === h(r2) && a2 === h(t3) && (B ? (E2(L), L = -1) : B = true, K(H, c2 - d))) : (a2.sortIndex = e2, f(r2, a2), A || z || (A = true, I(J)));
|
|
1558
1558
|
return a2;
|
|
1559
1559
|
};
|
|
1560
1560
|
exports.unstable_shouldYield = M;
|
|
@@ -1885,7 +1885,7 @@ var require_react_reconciler_production_min = __commonJS({
|
|
|
1885
1885
|
gc[hc] = a2.current;
|
|
1886
1886
|
a2.current = b2;
|
|
1887
1887
|
}
|
|
1888
|
-
var jc = {}, x = ic(jc),
|
|
1888
|
+
var jc = {}, x = ic(jc), z = ic(false), kc = jc;
|
|
1889
1889
|
function lc(a2, b2) {
|
|
1890
1890
|
var c2 = a2.type.contextTypes;
|
|
1891
1891
|
if (!c2) return jc;
|
|
@@ -1901,13 +1901,13 @@ var require_react_reconciler_production_min = __commonJS({
|
|
|
1901
1901
|
return null !== a2 && void 0 !== a2;
|
|
1902
1902
|
}
|
|
1903
1903
|
function mc() {
|
|
1904
|
-
q(
|
|
1904
|
+
q(z);
|
|
1905
1905
|
q(x);
|
|
1906
1906
|
}
|
|
1907
1907
|
function nc(a2, b2, c2) {
|
|
1908
1908
|
if (x.current !== jc) throw Error(m(168));
|
|
1909
1909
|
v(x, b2);
|
|
1910
|
-
v(
|
|
1910
|
+
v(z, c2);
|
|
1911
1911
|
}
|
|
1912
1912
|
function oc(a2, b2, c2) {
|
|
1913
1913
|
var d = a2.stateNode;
|
|
@@ -1921,14 +1921,14 @@ var require_react_reconciler_production_min = __commonJS({
|
|
|
1921
1921
|
a2 = (a2 = a2.stateNode) && a2.__reactInternalMemoizedMergedChildContext || jc;
|
|
1922
1922
|
kc = x.current;
|
|
1923
1923
|
v(x, a2);
|
|
1924
|
-
v(
|
|
1924
|
+
v(z, z.current);
|
|
1925
1925
|
return true;
|
|
1926
1926
|
}
|
|
1927
1927
|
function rc2(a2, b2, c2) {
|
|
1928
1928
|
var d = a2.stateNode;
|
|
1929
1929
|
if (!d) throw Error(m(169));
|
|
1930
|
-
c2 ? (a2 = oc(a2, b2, kc), d.__reactInternalMemoizedMergedChildContext = a2, q(
|
|
1931
|
-
v(
|
|
1930
|
+
c2 ? (a2 = oc(a2, b2, kc), d.__reactInternalMemoizedMergedChildContext = a2, q(z), q(x), v(x, a2)) : q(z);
|
|
1931
|
+
v(z, c2);
|
|
1932
1932
|
}
|
|
1933
1933
|
var tc = Math.clz32 ? Math.clz32 : sc, uc = Math.log, vc = Math.LN2;
|
|
1934
1934
|
function sc(a2) {
|
|
@@ -3528,7 +3528,7 @@ var require_react_reconciler_production_min = __commonJS({
|
|
|
3528
3528
|
g.state = p;
|
|
3529
3529
|
ae(b2, d, g, e2);
|
|
3530
3530
|
k = b2.memoizedState;
|
|
3531
|
-
h !== d || p !== k ||
|
|
3531
|
+
h !== d || p !== k || z.current || Ud ? ("function" === typeof n3 && (ee(b2, c2, n3, d), k = b2.memoizedState), (h = Ud || ie(b2, c2, h, d, p, k, l)) ? (t3 || "function" !== typeof g.UNSAFE_componentWillMount && "function" !== typeof g.componentWillMount || ("function" === typeof g.componentWillMount && g.componentWillMount(), "function" === typeof g.UNSAFE_componentWillMount && g.UNSAFE_componentWillMount()), "function" === typeof g.componentDidMount && (b2.flags |= 4194308)) : ("function" === typeof g.componentDidMount && (b2.flags |= 4194308), b2.memoizedProps = d, b2.memoizedState = k), g.props = d, g.state = k, g.context = l, d = h) : ("function" === typeof g.componentDidMount && (b2.flags |= 4194308), d = false);
|
|
3532
3532
|
} else {
|
|
3533
3533
|
g = b2.stateNode;
|
|
3534
3534
|
Wd(a2, b2);
|
|
@@ -3546,7 +3546,7 @@ var require_react_reconciler_production_min = __commonJS({
|
|
|
3546
3546
|
g.state = p;
|
|
3547
3547
|
ae(b2, d, g, e2);
|
|
3548
3548
|
var w = b2.memoizedState;
|
|
3549
|
-
h !== t3 || p !== w ||
|
|
3549
|
+
h !== t3 || p !== w || z.current || Ud ? ("function" === typeof B && (ee(b2, c2, B, d), w = b2.memoizedState), (l = Ud || ie(b2, c2, l, d, p, w, k) || false) ? (n3 || "function" !== typeof g.UNSAFE_componentWillUpdate && "function" !== typeof g.componentWillUpdate || ("function" === typeof g.componentWillUpdate && g.componentWillUpdate(d, w, k), "function" === typeof g.UNSAFE_componentWillUpdate && g.UNSAFE_componentWillUpdate(d, w, k)), "function" === typeof g.componentDidUpdate && (b2.flags |= 4), "function" === typeof g.getSnapshotBeforeUpdate && (b2.flags |= 1024)) : ("function" !== typeof g.componentDidUpdate || h === a2.memoizedProps && p === a2.memoizedState || (b2.flags |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || h === a2.memoizedProps && p === a2.memoizedState || (b2.flags |= 1024), b2.memoizedProps = d, b2.memoizedState = w), g.props = d, g.state = w, g.context = k, d = l) : ("function" !== typeof g.componentDidUpdate || h === a2.memoizedProps && p === a2.memoizedState || (b2.flags |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || h === a2.memoizedProps && p === a2.memoizedState || (b2.flags |= 1024), d = false);
|
|
3550
3550
|
}
|
|
3551
3551
|
return eg(a2, b2, c2, d, f, e2);
|
|
3552
3552
|
}
|
|
@@ -4015,7 +4015,7 @@ var require_react_reconciler_production_min = __commonJS({
|
|
|
4015
4015
|
case 3:
|
|
4016
4016
|
c2 = b2.stateNode;
|
|
4017
4017
|
De();
|
|
4018
|
-
q(
|
|
4018
|
+
q(z);
|
|
4019
4019
|
q(x);
|
|
4020
4020
|
Ie();
|
|
4021
4021
|
c2.pendingContext && (c2.context = c2.pendingContext, c2.pendingContext = null);
|
|
@@ -4158,7 +4158,7 @@ var require_react_reconciler_production_min = __commonJS({
|
|
|
4158
4158
|
case 1:
|
|
4159
4159
|
return A(b2.type) && mc(), a2 = b2.flags, a2 & 65536 ? (b2.flags = a2 & -65537 | 128, b2) : null;
|
|
4160
4160
|
case 3:
|
|
4161
|
-
return De(), q(
|
|
4161
|
+
return De(), q(z), q(x), Ie(), a2 = b2.flags, 0 !== (a2 & 65536) && 0 === (a2 & 128) ? (b2.flags = a2 & -65537 | 128, b2) : null;
|
|
4162
4162
|
case 5:
|
|
4163
4163
|
return Fe(b2), null;
|
|
4164
4164
|
case 13:
|
|
@@ -5213,7 +5213,7 @@ var require_react_reconciler_production_min = __commonJS({
|
|
|
5213
5213
|
break;
|
|
5214
5214
|
case 3:
|
|
5215
5215
|
De();
|
|
5216
|
-
q(
|
|
5216
|
+
q(z);
|
|
5217
5217
|
q(x);
|
|
5218
5218
|
Ie();
|
|
5219
5219
|
break;
|
|
@@ -5690,7 +5690,7 @@ var require_react_reconciler_production_min = __commonJS({
|
|
|
5690
5690
|
}
|
|
5691
5691
|
var bi;
|
|
5692
5692
|
bi = function(a2, b2, c2) {
|
|
5693
|
-
if (null !== a2) if (a2.memoizedProps !== b2.pendingProps ||
|
|
5693
|
+
if (null !== a2) if (a2.memoizedProps !== b2.pendingProps || z.current) G = true;
|
|
5694
5694
|
else {
|
|
5695
5695
|
if (0 === (a2.lanes & c2) && 0 === (b2.flags & 128)) return G = false, tg(a2, b2, c2);
|
|
5696
5696
|
G = 0 !== (a2.flags & 131072) ? true : false;
|
|
@@ -5799,7 +5799,7 @@ var require_react_reconciler_production_min = __commonJS({
|
|
|
5799
5799
|
g = e2.value;
|
|
5800
5800
|
Ld(b2, d, g);
|
|
5801
5801
|
if (null !== f) if (Vc(f.value, g)) {
|
|
5802
|
-
if (f.children === e2.children && !
|
|
5802
|
+
if (f.children === e2.children && !z.current) {
|
|
5803
5803
|
b2 = Uf(a2, b2, c2);
|
|
5804
5804
|
break a;
|
|
5805
5805
|
}
|
|
@@ -10808,11 +10808,11 @@ var require_verror = __commonJS({
|
|
|
10808
10808
|
var mod_extsprintf = require_extsprintf();
|
|
10809
10809
|
var mod_isError = require_util2().isError;
|
|
10810
10810
|
var sprintf = mod_extsprintf.sprintf;
|
|
10811
|
-
module2.exports =
|
|
10812
|
-
|
|
10813
|
-
|
|
10814
|
-
|
|
10815
|
-
|
|
10811
|
+
module2.exports = VError7;
|
|
10812
|
+
VError7.VError = VError7;
|
|
10813
|
+
VError7.SError = SError;
|
|
10814
|
+
VError7.WError = WError2;
|
|
10815
|
+
VError7.MultiError = MultiError;
|
|
10816
10816
|
function parseConstructorArguments(args) {
|
|
10817
10817
|
var argv, options, sprintf_args, shortmessage, k;
|
|
10818
10818
|
mod_assertplus.object(args, "args");
|
|
@@ -10855,12 +10855,12 @@ var require_verror = __commonJS({
|
|
|
10855
10855
|
"shortmessage": shortmessage
|
|
10856
10856
|
};
|
|
10857
10857
|
}
|
|
10858
|
-
function
|
|
10858
|
+
function VError7() {
|
|
10859
10859
|
var args, obj, parsed, cause, ctor, message, k;
|
|
10860
10860
|
args = Array.prototype.slice.call(arguments, 0);
|
|
10861
|
-
if (!(this instanceof
|
|
10862
|
-
obj = Object.create(
|
|
10863
|
-
|
|
10861
|
+
if (!(this instanceof VError7)) {
|
|
10862
|
+
obj = Object.create(VError7.prototype);
|
|
10863
|
+
VError7.apply(obj, arguments);
|
|
10864
10864
|
return obj;
|
|
10865
10865
|
}
|
|
10866
10866
|
parsed = parseConstructorArguments({
|
|
@@ -10898,28 +10898,28 @@ var require_verror = __commonJS({
|
|
|
10898
10898
|
}
|
|
10899
10899
|
return this;
|
|
10900
10900
|
}
|
|
10901
|
-
mod_util.inherits(
|
|
10902
|
-
|
|
10903
|
-
|
|
10901
|
+
mod_util.inherits(VError7, Error);
|
|
10902
|
+
VError7.prototype.name = "VError";
|
|
10903
|
+
VError7.prototype.toString = function ve_toString() {
|
|
10904
10904
|
var str = this.hasOwnProperty("name") && this.name || this.constructor.name || this.constructor.prototype.name;
|
|
10905
10905
|
if (this.message)
|
|
10906
10906
|
str += ": " + this.message;
|
|
10907
10907
|
return str;
|
|
10908
10908
|
};
|
|
10909
|
-
|
|
10910
|
-
var cause =
|
|
10909
|
+
VError7.prototype.cause = function ve_cause() {
|
|
10910
|
+
var cause = VError7.cause(this);
|
|
10911
10911
|
return cause === null ? void 0 : cause;
|
|
10912
10912
|
};
|
|
10913
|
-
|
|
10913
|
+
VError7.cause = function(err) {
|
|
10914
10914
|
mod_assertplus.ok(mod_isError(err), "err must be an Error");
|
|
10915
10915
|
return mod_isError(err.jse_cause) ? err.jse_cause : null;
|
|
10916
10916
|
};
|
|
10917
|
-
|
|
10917
|
+
VError7.info = function(err) {
|
|
10918
10918
|
var rv, cause, k;
|
|
10919
10919
|
mod_assertplus.ok(mod_isError(err), "err must be an Error");
|
|
10920
|
-
cause =
|
|
10920
|
+
cause = VError7.cause(err);
|
|
10921
10921
|
if (cause !== null) {
|
|
10922
|
-
rv =
|
|
10922
|
+
rv = VError7.info(cause);
|
|
10923
10923
|
} else {
|
|
10924
10924
|
rv = {};
|
|
10925
10925
|
}
|
|
@@ -10930,12 +10930,12 @@ var require_verror = __commonJS({
|
|
|
10930
10930
|
}
|
|
10931
10931
|
return rv;
|
|
10932
10932
|
};
|
|
10933
|
-
|
|
10933
|
+
VError7.findCauseByName = function(err, name) {
|
|
10934
10934
|
var cause;
|
|
10935
10935
|
mod_assertplus.ok(mod_isError(err), "err must be an Error");
|
|
10936
10936
|
mod_assertplus.string(name, "name");
|
|
10937
10937
|
mod_assertplus.ok(name.length > 0, "name cannot be empty");
|
|
10938
|
-
for (cause = err; cause !== null; cause =
|
|
10938
|
+
for (cause = err; cause !== null; cause = VError7.cause(cause)) {
|
|
10939
10939
|
mod_assertplus.ok(mod_isError(cause));
|
|
10940
10940
|
if (cause.name == name) {
|
|
10941
10941
|
return cause;
|
|
@@ -10943,18 +10943,18 @@ var require_verror = __commonJS({
|
|
|
10943
10943
|
}
|
|
10944
10944
|
return null;
|
|
10945
10945
|
};
|
|
10946
|
-
|
|
10947
|
-
return
|
|
10946
|
+
VError7.hasCauseWithName = function(err, name) {
|
|
10947
|
+
return VError7.findCauseByName(err, name) !== null;
|
|
10948
10948
|
};
|
|
10949
|
-
|
|
10949
|
+
VError7.fullStack = function(err) {
|
|
10950
10950
|
mod_assertplus.ok(mod_isError(err), "err must be an Error");
|
|
10951
|
-
var cause =
|
|
10951
|
+
var cause = VError7.cause(err);
|
|
10952
10952
|
if (cause) {
|
|
10953
|
-
return err.stack + "\ncaused by: " +
|
|
10953
|
+
return err.stack + "\ncaused by: " + VError7.fullStack(cause);
|
|
10954
10954
|
}
|
|
10955
10955
|
return err.stack;
|
|
10956
10956
|
};
|
|
10957
|
-
|
|
10957
|
+
VError7.errorFromList = function(errors) {
|
|
10958
10958
|
mod_assertplus.arrayOfObject(errors, "errors");
|
|
10959
10959
|
if (errors.length === 0) {
|
|
10960
10960
|
return null;
|
|
@@ -10967,7 +10967,7 @@ var require_verror = __commonJS({
|
|
|
10967
10967
|
}
|
|
10968
10968
|
return new MultiError(errors);
|
|
10969
10969
|
};
|
|
10970
|
-
|
|
10970
|
+
VError7.errorForEach = function(err, func) {
|
|
10971
10971
|
mod_assertplus.ok(mod_isError(err), "err must be an Error");
|
|
10972
10972
|
mod_assertplus.func(func, "func");
|
|
10973
10973
|
if (err instanceof MultiError) {
|
|
@@ -10991,19 +10991,19 @@ var require_verror = __commonJS({
|
|
|
10991
10991
|
"strict": true
|
|
10992
10992
|
});
|
|
10993
10993
|
options = parsed.options;
|
|
10994
|
-
|
|
10994
|
+
VError7.call(this, options, "%s", parsed.shortmessage);
|
|
10995
10995
|
return this;
|
|
10996
10996
|
}
|
|
10997
|
-
mod_util.inherits(SError,
|
|
10997
|
+
mod_util.inherits(SError, VError7);
|
|
10998
10998
|
function MultiError(errors) {
|
|
10999
10999
|
mod_assertplus.array(errors, "list of errors");
|
|
11000
11000
|
mod_assertplus.ok(errors.length > 0, "must be at least one error");
|
|
11001
11001
|
this.ase_errors = errors;
|
|
11002
|
-
|
|
11002
|
+
VError7.call(this, {
|
|
11003
11003
|
"cause": errors[0]
|
|
11004
11004
|
}, "first of %d error%s", errors.length, errors.length == 1 ? "" : "s");
|
|
11005
11005
|
}
|
|
11006
|
-
mod_util.inherits(MultiError,
|
|
11006
|
+
mod_util.inherits(MultiError, VError7);
|
|
11007
11007
|
MultiError.prototype.name = "MultiError";
|
|
11008
11008
|
MultiError.prototype.errors = function me_errors() {
|
|
11009
11009
|
return this.ase_errors.slice(0);
|
|
@@ -11022,10 +11022,10 @@ var require_verror = __commonJS({
|
|
|
11022
11022
|
});
|
|
11023
11023
|
options = parsed.options;
|
|
11024
11024
|
options["skipCauseMessage"] = true;
|
|
11025
|
-
|
|
11025
|
+
VError7.call(this, options, "%s", parsed.shortmessage);
|
|
11026
11026
|
return this;
|
|
11027
11027
|
}
|
|
11028
|
-
mod_util.inherits(WError2,
|
|
11028
|
+
mod_util.inherits(WError2, VError7);
|
|
11029
11029
|
WError2.prototype.name = "WError";
|
|
11030
11030
|
WError2.prototype.toString = function we_toString() {
|
|
11031
11031
|
var str = this.hasOwnProperty("name") && this.name || this.constructor.name || this.constructor.prototype.name;
|
|
@@ -11287,9 +11287,9 @@ __export(tslib_es6_exports, {
|
|
|
11287
11287
|
__asyncValues: () => __asyncValues,
|
|
11288
11288
|
__await: () => __await,
|
|
11289
11289
|
__awaiter: () => __awaiter,
|
|
11290
|
-
__classPrivateFieldGet: () =>
|
|
11290
|
+
__classPrivateFieldGet: () => __classPrivateFieldGet,
|
|
11291
11291
|
__classPrivateFieldIn: () => __classPrivateFieldIn,
|
|
11292
|
-
__classPrivateFieldSet: () =>
|
|
11292
|
+
__classPrivateFieldSet: () => __classPrivateFieldSet,
|
|
11293
11293
|
__createBinding: () => __createBinding,
|
|
11294
11294
|
__decorate: () => __decorate,
|
|
11295
11295
|
__disposeResources: () => __disposeResources,
|
|
@@ -11638,12 +11638,12 @@ function __importStar(mod) {
|
|
|
11638
11638
|
function __importDefault(mod) {
|
|
11639
11639
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
11640
11640
|
}
|
|
11641
|
-
function
|
|
11641
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
11642
11642
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
11643
11643
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11644
11644
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11645
11645
|
}
|
|
11646
|
-
function
|
|
11646
|
+
function __classPrivateFieldSet(receiver, state, value2, kind, f) {
|
|
11647
11647
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
11648
11648
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
11649
11649
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
@@ -11794,8 +11794,8 @@ var init_tslib_es6 = __esm({
|
|
|
11794
11794
|
__makeTemplateObject,
|
|
11795
11795
|
__importStar,
|
|
11796
11796
|
__importDefault,
|
|
11797
|
-
__classPrivateFieldGet
|
|
11798
|
-
__classPrivateFieldSet
|
|
11797
|
+
__classPrivateFieldGet,
|
|
11798
|
+
__classPrivateFieldSet,
|
|
11799
11799
|
__classPrivateFieldIn,
|
|
11800
11800
|
__addDisposableResource,
|
|
11801
11801
|
__disposeResources,
|
|
@@ -16016,6 +16016,445 @@ var require_void_elements = __commonJS({
|
|
|
16016
16016
|
}
|
|
16017
16017
|
});
|
|
16018
16018
|
|
|
16019
|
+
// ../../node_modules/ci-info/vendors.json
|
|
16020
|
+
var require_vendors2 = __commonJS({
|
|
16021
|
+
"../../node_modules/ci-info/vendors.json"(exports, module2) {
|
|
16022
|
+
module2.exports = [
|
|
16023
|
+
{
|
|
16024
|
+
name: "Agola CI",
|
|
16025
|
+
constant: "AGOLA",
|
|
16026
|
+
env: "AGOLA_GIT_REF",
|
|
16027
|
+
pr: "AGOLA_PULL_REQUEST_ID"
|
|
16028
|
+
},
|
|
16029
|
+
{
|
|
16030
|
+
name: "Appcircle",
|
|
16031
|
+
constant: "APPCIRCLE",
|
|
16032
|
+
env: "AC_APPCIRCLE",
|
|
16033
|
+
pr: {
|
|
16034
|
+
env: "AC_GIT_PR",
|
|
16035
|
+
ne: "false"
|
|
16036
|
+
}
|
|
16037
|
+
},
|
|
16038
|
+
{
|
|
16039
|
+
name: "AppVeyor",
|
|
16040
|
+
constant: "APPVEYOR",
|
|
16041
|
+
env: "APPVEYOR",
|
|
16042
|
+
pr: "APPVEYOR_PULL_REQUEST_NUMBER"
|
|
16043
|
+
},
|
|
16044
|
+
{
|
|
16045
|
+
name: "AWS CodeBuild",
|
|
16046
|
+
constant: "CODEBUILD",
|
|
16047
|
+
env: "CODEBUILD_BUILD_ARN",
|
|
16048
|
+
pr: {
|
|
16049
|
+
env: "CODEBUILD_WEBHOOK_EVENT",
|
|
16050
|
+
any: [
|
|
16051
|
+
"PULL_REQUEST_CREATED",
|
|
16052
|
+
"PULL_REQUEST_UPDATED",
|
|
16053
|
+
"PULL_REQUEST_REOPENED"
|
|
16054
|
+
]
|
|
16055
|
+
}
|
|
16056
|
+
},
|
|
16057
|
+
{
|
|
16058
|
+
name: "Azure Pipelines",
|
|
16059
|
+
constant: "AZURE_PIPELINES",
|
|
16060
|
+
env: "TF_BUILD",
|
|
16061
|
+
pr: {
|
|
16062
|
+
BUILD_REASON: "PullRequest"
|
|
16063
|
+
}
|
|
16064
|
+
},
|
|
16065
|
+
{
|
|
16066
|
+
name: "Bamboo",
|
|
16067
|
+
constant: "BAMBOO",
|
|
16068
|
+
env: "bamboo_planKey"
|
|
16069
|
+
},
|
|
16070
|
+
{
|
|
16071
|
+
name: "Bitbucket Pipelines",
|
|
16072
|
+
constant: "BITBUCKET",
|
|
16073
|
+
env: "BITBUCKET_COMMIT",
|
|
16074
|
+
pr: "BITBUCKET_PR_ID"
|
|
16075
|
+
},
|
|
16076
|
+
{
|
|
16077
|
+
name: "Bitrise",
|
|
16078
|
+
constant: "BITRISE",
|
|
16079
|
+
env: "BITRISE_IO",
|
|
16080
|
+
pr: "BITRISE_PULL_REQUEST"
|
|
16081
|
+
},
|
|
16082
|
+
{
|
|
16083
|
+
name: "Buddy",
|
|
16084
|
+
constant: "BUDDY",
|
|
16085
|
+
env: "BUDDY_WORKSPACE_ID",
|
|
16086
|
+
pr: "BUDDY_EXECUTION_PULL_REQUEST_ID"
|
|
16087
|
+
},
|
|
16088
|
+
{
|
|
16089
|
+
name: "Buildkite",
|
|
16090
|
+
constant: "BUILDKITE",
|
|
16091
|
+
env: "BUILDKITE",
|
|
16092
|
+
pr: {
|
|
16093
|
+
env: "BUILDKITE_PULL_REQUEST",
|
|
16094
|
+
ne: "false"
|
|
16095
|
+
}
|
|
16096
|
+
},
|
|
16097
|
+
{
|
|
16098
|
+
name: "CircleCI",
|
|
16099
|
+
constant: "CIRCLE",
|
|
16100
|
+
env: "CIRCLECI",
|
|
16101
|
+
pr: "CIRCLE_PULL_REQUEST"
|
|
16102
|
+
},
|
|
16103
|
+
{
|
|
16104
|
+
name: "Cirrus CI",
|
|
16105
|
+
constant: "CIRRUS",
|
|
16106
|
+
env: "CIRRUS_CI",
|
|
16107
|
+
pr: "CIRRUS_PR"
|
|
16108
|
+
},
|
|
16109
|
+
{
|
|
16110
|
+
name: "Cloudflare Pages",
|
|
16111
|
+
constant: "CLOUDFLARE_PAGES",
|
|
16112
|
+
env: "CF_PAGES"
|
|
16113
|
+
},
|
|
16114
|
+
{
|
|
16115
|
+
name: "Codefresh",
|
|
16116
|
+
constant: "CODEFRESH",
|
|
16117
|
+
env: "CF_BUILD_ID",
|
|
16118
|
+
pr: {
|
|
16119
|
+
any: [
|
|
16120
|
+
"CF_PULL_REQUEST_NUMBER",
|
|
16121
|
+
"CF_PULL_REQUEST_ID"
|
|
16122
|
+
]
|
|
16123
|
+
}
|
|
16124
|
+
},
|
|
16125
|
+
{
|
|
16126
|
+
name: "Codemagic",
|
|
16127
|
+
constant: "CODEMAGIC",
|
|
16128
|
+
env: "CM_BUILD_ID",
|
|
16129
|
+
pr: "CM_PULL_REQUEST"
|
|
16130
|
+
},
|
|
16131
|
+
{
|
|
16132
|
+
name: "Codeship",
|
|
16133
|
+
constant: "CODESHIP",
|
|
16134
|
+
env: {
|
|
16135
|
+
CI_NAME: "codeship"
|
|
16136
|
+
}
|
|
16137
|
+
},
|
|
16138
|
+
{
|
|
16139
|
+
name: "Drone",
|
|
16140
|
+
constant: "DRONE",
|
|
16141
|
+
env: "DRONE",
|
|
16142
|
+
pr: {
|
|
16143
|
+
DRONE_BUILD_EVENT: "pull_request"
|
|
16144
|
+
}
|
|
16145
|
+
},
|
|
16146
|
+
{
|
|
16147
|
+
name: "dsari",
|
|
16148
|
+
constant: "DSARI",
|
|
16149
|
+
env: "DSARI"
|
|
16150
|
+
},
|
|
16151
|
+
{
|
|
16152
|
+
name: "Earthly",
|
|
16153
|
+
constant: "EARTHLY",
|
|
16154
|
+
env: "EARTHLY_CI"
|
|
16155
|
+
},
|
|
16156
|
+
{
|
|
16157
|
+
name: "Expo Application Services",
|
|
16158
|
+
constant: "EAS",
|
|
16159
|
+
env: "EAS_BUILD"
|
|
16160
|
+
},
|
|
16161
|
+
{
|
|
16162
|
+
name: "Gerrit",
|
|
16163
|
+
constant: "GERRIT",
|
|
16164
|
+
env: "GERRIT_PROJECT"
|
|
16165
|
+
},
|
|
16166
|
+
{
|
|
16167
|
+
name: "Gitea Actions",
|
|
16168
|
+
constant: "GITEA_ACTIONS",
|
|
16169
|
+
env: "GITEA_ACTIONS"
|
|
16170
|
+
},
|
|
16171
|
+
{
|
|
16172
|
+
name: "GitHub Actions",
|
|
16173
|
+
constant: "GITHUB_ACTIONS",
|
|
16174
|
+
env: "GITHUB_ACTIONS",
|
|
16175
|
+
pr: {
|
|
16176
|
+
GITHUB_EVENT_NAME: "pull_request"
|
|
16177
|
+
}
|
|
16178
|
+
},
|
|
16179
|
+
{
|
|
16180
|
+
name: "GitLab CI",
|
|
16181
|
+
constant: "GITLAB",
|
|
16182
|
+
env: "GITLAB_CI",
|
|
16183
|
+
pr: "CI_MERGE_REQUEST_ID"
|
|
16184
|
+
},
|
|
16185
|
+
{
|
|
16186
|
+
name: "GoCD",
|
|
16187
|
+
constant: "GOCD",
|
|
16188
|
+
env: "GO_PIPELINE_LABEL"
|
|
16189
|
+
},
|
|
16190
|
+
{
|
|
16191
|
+
name: "Google Cloud Build",
|
|
16192
|
+
constant: "GOOGLE_CLOUD_BUILD",
|
|
16193
|
+
env: "BUILDER_OUTPUT"
|
|
16194
|
+
},
|
|
16195
|
+
{
|
|
16196
|
+
name: "Harness CI",
|
|
16197
|
+
constant: "HARNESS",
|
|
16198
|
+
env: "HARNESS_BUILD_ID"
|
|
16199
|
+
},
|
|
16200
|
+
{
|
|
16201
|
+
name: "Heroku",
|
|
16202
|
+
constant: "HEROKU",
|
|
16203
|
+
env: {
|
|
16204
|
+
env: "NODE",
|
|
16205
|
+
includes: "/app/.heroku/node/bin/node"
|
|
16206
|
+
}
|
|
16207
|
+
},
|
|
16208
|
+
{
|
|
16209
|
+
name: "Hudson",
|
|
16210
|
+
constant: "HUDSON",
|
|
16211
|
+
env: "HUDSON_URL"
|
|
16212
|
+
},
|
|
16213
|
+
{
|
|
16214
|
+
name: "Jenkins",
|
|
16215
|
+
constant: "JENKINS",
|
|
16216
|
+
env: [
|
|
16217
|
+
"JENKINS_URL",
|
|
16218
|
+
"BUILD_ID"
|
|
16219
|
+
],
|
|
16220
|
+
pr: {
|
|
16221
|
+
any: [
|
|
16222
|
+
"ghprbPullId",
|
|
16223
|
+
"CHANGE_ID"
|
|
16224
|
+
]
|
|
16225
|
+
}
|
|
16226
|
+
},
|
|
16227
|
+
{
|
|
16228
|
+
name: "LayerCI",
|
|
16229
|
+
constant: "LAYERCI",
|
|
16230
|
+
env: "LAYERCI",
|
|
16231
|
+
pr: "LAYERCI_PULL_REQUEST"
|
|
16232
|
+
},
|
|
16233
|
+
{
|
|
16234
|
+
name: "Magnum CI",
|
|
16235
|
+
constant: "MAGNUM",
|
|
16236
|
+
env: "MAGNUM"
|
|
16237
|
+
},
|
|
16238
|
+
{
|
|
16239
|
+
name: "Netlify CI",
|
|
16240
|
+
constant: "NETLIFY",
|
|
16241
|
+
env: "NETLIFY",
|
|
16242
|
+
pr: {
|
|
16243
|
+
env: "PULL_REQUEST",
|
|
16244
|
+
ne: "false"
|
|
16245
|
+
}
|
|
16246
|
+
},
|
|
16247
|
+
{
|
|
16248
|
+
name: "Nevercode",
|
|
16249
|
+
constant: "NEVERCODE",
|
|
16250
|
+
env: "NEVERCODE",
|
|
16251
|
+
pr: {
|
|
16252
|
+
env: "NEVERCODE_PULL_REQUEST",
|
|
16253
|
+
ne: "false"
|
|
16254
|
+
}
|
|
16255
|
+
},
|
|
16256
|
+
{
|
|
16257
|
+
name: "Prow",
|
|
16258
|
+
constant: "PROW",
|
|
16259
|
+
env: "PROW_JOB_ID"
|
|
16260
|
+
},
|
|
16261
|
+
{
|
|
16262
|
+
name: "ReleaseHub",
|
|
16263
|
+
constant: "RELEASEHUB",
|
|
16264
|
+
env: "RELEASE_BUILD_ID"
|
|
16265
|
+
},
|
|
16266
|
+
{
|
|
16267
|
+
name: "Render",
|
|
16268
|
+
constant: "RENDER",
|
|
16269
|
+
env: "RENDER",
|
|
16270
|
+
pr: {
|
|
16271
|
+
IS_PULL_REQUEST: "true"
|
|
16272
|
+
}
|
|
16273
|
+
},
|
|
16274
|
+
{
|
|
16275
|
+
name: "Sail CI",
|
|
16276
|
+
constant: "SAIL",
|
|
16277
|
+
env: "SAILCI",
|
|
16278
|
+
pr: "SAIL_PULL_REQUEST_NUMBER"
|
|
16279
|
+
},
|
|
16280
|
+
{
|
|
16281
|
+
name: "Screwdriver",
|
|
16282
|
+
constant: "SCREWDRIVER",
|
|
16283
|
+
env: "SCREWDRIVER",
|
|
16284
|
+
pr: {
|
|
16285
|
+
env: "SD_PULL_REQUEST",
|
|
16286
|
+
ne: "false"
|
|
16287
|
+
}
|
|
16288
|
+
},
|
|
16289
|
+
{
|
|
16290
|
+
name: "Semaphore",
|
|
16291
|
+
constant: "SEMAPHORE",
|
|
16292
|
+
env: "SEMAPHORE",
|
|
16293
|
+
pr: "PULL_REQUEST_NUMBER"
|
|
16294
|
+
},
|
|
16295
|
+
{
|
|
16296
|
+
name: "Sourcehut",
|
|
16297
|
+
constant: "SOURCEHUT",
|
|
16298
|
+
env: {
|
|
16299
|
+
CI_NAME: "sourcehut"
|
|
16300
|
+
}
|
|
16301
|
+
},
|
|
16302
|
+
{
|
|
16303
|
+
name: "Strider CD",
|
|
16304
|
+
constant: "STRIDER",
|
|
16305
|
+
env: "STRIDER"
|
|
16306
|
+
},
|
|
16307
|
+
{
|
|
16308
|
+
name: "TaskCluster",
|
|
16309
|
+
constant: "TASKCLUSTER",
|
|
16310
|
+
env: [
|
|
16311
|
+
"TASK_ID",
|
|
16312
|
+
"RUN_ID"
|
|
16313
|
+
]
|
|
16314
|
+
},
|
|
16315
|
+
{
|
|
16316
|
+
name: "TeamCity",
|
|
16317
|
+
constant: "TEAMCITY",
|
|
16318
|
+
env: "TEAMCITY_VERSION"
|
|
16319
|
+
},
|
|
16320
|
+
{
|
|
16321
|
+
name: "Travis CI",
|
|
16322
|
+
constant: "TRAVIS",
|
|
16323
|
+
env: "TRAVIS",
|
|
16324
|
+
pr: {
|
|
16325
|
+
env: "TRAVIS_PULL_REQUEST",
|
|
16326
|
+
ne: "false"
|
|
16327
|
+
}
|
|
16328
|
+
},
|
|
16329
|
+
{
|
|
16330
|
+
name: "Vela",
|
|
16331
|
+
constant: "VELA",
|
|
16332
|
+
env: "VELA",
|
|
16333
|
+
pr: {
|
|
16334
|
+
VELA_PULL_REQUEST: "1"
|
|
16335
|
+
}
|
|
16336
|
+
},
|
|
16337
|
+
{
|
|
16338
|
+
name: "Vercel",
|
|
16339
|
+
constant: "VERCEL",
|
|
16340
|
+
env: {
|
|
16341
|
+
any: [
|
|
16342
|
+
"NOW_BUILDER",
|
|
16343
|
+
"VERCEL"
|
|
16344
|
+
]
|
|
16345
|
+
},
|
|
16346
|
+
pr: "VERCEL_GIT_PULL_REQUEST_ID"
|
|
16347
|
+
},
|
|
16348
|
+
{
|
|
16349
|
+
name: "Visual Studio App Center",
|
|
16350
|
+
constant: "APPCENTER",
|
|
16351
|
+
env: "APPCENTER_BUILD_ID"
|
|
16352
|
+
},
|
|
16353
|
+
{
|
|
16354
|
+
name: "Woodpecker",
|
|
16355
|
+
constant: "WOODPECKER",
|
|
16356
|
+
env: {
|
|
16357
|
+
CI: "woodpecker"
|
|
16358
|
+
},
|
|
16359
|
+
pr: {
|
|
16360
|
+
CI_BUILD_EVENT: "pull_request"
|
|
16361
|
+
}
|
|
16362
|
+
},
|
|
16363
|
+
{
|
|
16364
|
+
name: "Xcode Cloud",
|
|
16365
|
+
constant: "XCODE_CLOUD",
|
|
16366
|
+
env: "CI_XCODE_PROJECT",
|
|
16367
|
+
pr: "CI_PULL_REQUEST_NUMBER"
|
|
16368
|
+
},
|
|
16369
|
+
{
|
|
16370
|
+
name: "Xcode Server",
|
|
16371
|
+
constant: "XCODE_SERVER",
|
|
16372
|
+
env: "XCS"
|
|
16373
|
+
}
|
|
16374
|
+
];
|
|
16375
|
+
}
|
|
16376
|
+
});
|
|
16377
|
+
|
|
16378
|
+
// ../../node_modules/ci-info/index.js
|
|
16379
|
+
var require_ci_info2 = __commonJS({
|
|
16380
|
+
"../../node_modules/ci-info/index.js"(exports) {
|
|
16381
|
+
"use strict";
|
|
16382
|
+
init_esm_shims();
|
|
16383
|
+
var vendors = require_vendors2();
|
|
16384
|
+
var env3 = process.env;
|
|
16385
|
+
Object.defineProperty(exports, "_vendors", {
|
|
16386
|
+
value: vendors.map(function(v) {
|
|
16387
|
+
return v.constant;
|
|
16388
|
+
})
|
|
16389
|
+
});
|
|
16390
|
+
exports.name = null;
|
|
16391
|
+
exports.isPR = null;
|
|
16392
|
+
exports.id = null;
|
|
16393
|
+
vendors.forEach(function(vendor) {
|
|
16394
|
+
const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env];
|
|
16395
|
+
const isCI3 = envs.every(function(obj) {
|
|
16396
|
+
return checkEnv(obj);
|
|
16397
|
+
});
|
|
16398
|
+
exports[vendor.constant] = isCI3;
|
|
16399
|
+
if (!isCI3) {
|
|
16400
|
+
return;
|
|
16401
|
+
}
|
|
16402
|
+
exports.name = vendor.name;
|
|
16403
|
+
exports.isPR = checkPR(vendor);
|
|
16404
|
+
exports.id = vendor.constant;
|
|
16405
|
+
});
|
|
16406
|
+
exports.isCI = !!(env3.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
|
|
16407
|
+
(env3.BUILD_ID || // Jenkins, Cloudbees
|
|
16408
|
+
env3.BUILD_NUMBER || // Jenkins, TeamCity
|
|
16409
|
+
env3.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages
|
|
16410
|
+
env3.CI_APP_ID || // Appflow
|
|
16411
|
+
env3.CI_BUILD_ID || // Appflow
|
|
16412
|
+
env3.CI_BUILD_NUMBER || // Appflow
|
|
16413
|
+
env3.CI_NAME || // Codeship and others
|
|
16414
|
+
env3.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
|
|
16415
|
+
env3.RUN_ID || // TaskCluster, dsari
|
|
16416
|
+
exports.name || false));
|
|
16417
|
+
function checkEnv(obj) {
|
|
16418
|
+
if (typeof obj === "string") return !!env3[obj];
|
|
16419
|
+
if ("env" in obj) {
|
|
16420
|
+
return env3[obj.env] && env3[obj.env].includes(obj.includes);
|
|
16421
|
+
}
|
|
16422
|
+
if ("any" in obj) {
|
|
16423
|
+
return obj.any.some(function(k) {
|
|
16424
|
+
return !!env3[k];
|
|
16425
|
+
});
|
|
16426
|
+
}
|
|
16427
|
+
return Object.keys(obj).every(function(k) {
|
|
16428
|
+
return env3[k] === obj[k];
|
|
16429
|
+
});
|
|
16430
|
+
}
|
|
16431
|
+
function checkPR(vendor) {
|
|
16432
|
+
switch (typeof vendor.pr) {
|
|
16433
|
+
case "string":
|
|
16434
|
+
return !!env3[vendor.pr];
|
|
16435
|
+
case "object":
|
|
16436
|
+
if ("env" in vendor.pr) {
|
|
16437
|
+
if ("any" in vendor.pr) {
|
|
16438
|
+
return vendor.pr.any.some(function(key) {
|
|
16439
|
+
return env3[vendor.pr.env] === key;
|
|
16440
|
+
});
|
|
16441
|
+
} else {
|
|
16442
|
+
return vendor.pr.env in env3 && env3[vendor.pr.env] !== vendor.pr.ne;
|
|
16443
|
+
}
|
|
16444
|
+
} else if ("any" in vendor.pr) {
|
|
16445
|
+
return vendor.pr.any.some(function(key) {
|
|
16446
|
+
return !!env3[key];
|
|
16447
|
+
});
|
|
16448
|
+
} else {
|
|
16449
|
+
return checkEnv(vendor.pr);
|
|
16450
|
+
}
|
|
16451
|
+
default:
|
|
16452
|
+
return null;
|
|
16453
|
+
}
|
|
16454
|
+
}
|
|
16455
|
+
}
|
|
16456
|
+
});
|
|
16457
|
+
|
|
16019
16458
|
// ../../node_modules/@opentelemetry/core/build/esm/trace/suppress-tracing.js
|
|
16020
16459
|
function suppressTracing2(context2) {
|
|
16021
16460
|
return context2.setValue(SUPPRESS_TRACING_KEY, true);
|
|
@@ -18948,19 +19387,19 @@ var require_range = __commonJS({
|
|
|
18948
19387
|
var replaceCaret = (comp, options) => {
|
|
18949
19388
|
debug3("caret", comp, options);
|
|
18950
19389
|
const r2 = options.loose ? re[t3.CARETLOOSE] : re[t3.CARET];
|
|
18951
|
-
const
|
|
19390
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
18952
19391
|
return comp.replace(r2, (_2, M, m, p, pr) => {
|
|
18953
19392
|
debug3("caret", comp, _2, M, m, p, pr);
|
|
18954
19393
|
let ret;
|
|
18955
19394
|
if (isX(M)) {
|
|
18956
19395
|
ret = "";
|
|
18957
19396
|
} else if (isX(m)) {
|
|
18958
|
-
ret = `>=${M}.0.0${
|
|
19397
|
+
ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
18959
19398
|
} else if (isX(p)) {
|
|
18960
19399
|
if (M === "0") {
|
|
18961
|
-
ret = `>=${M}.${m}.0${
|
|
19400
|
+
ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
18962
19401
|
} else {
|
|
18963
|
-
ret = `>=${M}.${m}.0${
|
|
19402
|
+
ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
18964
19403
|
}
|
|
18965
19404
|
} else if (pr) {
|
|
18966
19405
|
debug3("replaceCaret pr", pr);
|
|
@@ -18977,9 +19416,9 @@ var require_range = __commonJS({
|
|
|
18977
19416
|
debug3("no pr");
|
|
18978
19417
|
if (M === "0") {
|
|
18979
19418
|
if (m === "0") {
|
|
18980
|
-
ret = `>=${M}.${m}.${p}${
|
|
19419
|
+
ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
18981
19420
|
} else {
|
|
18982
|
-
ret = `>=${M}.${m}.${p}${
|
|
19421
|
+
ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
18983
19422
|
}
|
|
18984
19423
|
} else {
|
|
18985
19424
|
ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
@@ -29062,445 +29501,6 @@ var require_src18 = __commonJS({
|
|
|
29062
29501
|
}
|
|
29063
29502
|
});
|
|
29064
29503
|
|
|
29065
|
-
// ../../node_modules/ci-info/vendors.json
|
|
29066
|
-
var require_vendors2 = __commonJS({
|
|
29067
|
-
"../../node_modules/ci-info/vendors.json"(exports, module2) {
|
|
29068
|
-
module2.exports = [
|
|
29069
|
-
{
|
|
29070
|
-
name: "Agola CI",
|
|
29071
|
-
constant: "AGOLA",
|
|
29072
|
-
env: "AGOLA_GIT_REF",
|
|
29073
|
-
pr: "AGOLA_PULL_REQUEST_ID"
|
|
29074
|
-
},
|
|
29075
|
-
{
|
|
29076
|
-
name: "Appcircle",
|
|
29077
|
-
constant: "APPCIRCLE",
|
|
29078
|
-
env: "AC_APPCIRCLE",
|
|
29079
|
-
pr: {
|
|
29080
|
-
env: "AC_GIT_PR",
|
|
29081
|
-
ne: "false"
|
|
29082
|
-
}
|
|
29083
|
-
},
|
|
29084
|
-
{
|
|
29085
|
-
name: "AppVeyor",
|
|
29086
|
-
constant: "APPVEYOR",
|
|
29087
|
-
env: "APPVEYOR",
|
|
29088
|
-
pr: "APPVEYOR_PULL_REQUEST_NUMBER"
|
|
29089
|
-
},
|
|
29090
|
-
{
|
|
29091
|
-
name: "AWS CodeBuild",
|
|
29092
|
-
constant: "CODEBUILD",
|
|
29093
|
-
env: "CODEBUILD_BUILD_ARN",
|
|
29094
|
-
pr: {
|
|
29095
|
-
env: "CODEBUILD_WEBHOOK_EVENT",
|
|
29096
|
-
any: [
|
|
29097
|
-
"PULL_REQUEST_CREATED",
|
|
29098
|
-
"PULL_REQUEST_UPDATED",
|
|
29099
|
-
"PULL_REQUEST_REOPENED"
|
|
29100
|
-
]
|
|
29101
|
-
}
|
|
29102
|
-
},
|
|
29103
|
-
{
|
|
29104
|
-
name: "Azure Pipelines",
|
|
29105
|
-
constant: "AZURE_PIPELINES",
|
|
29106
|
-
env: "TF_BUILD",
|
|
29107
|
-
pr: {
|
|
29108
|
-
BUILD_REASON: "PullRequest"
|
|
29109
|
-
}
|
|
29110
|
-
},
|
|
29111
|
-
{
|
|
29112
|
-
name: "Bamboo",
|
|
29113
|
-
constant: "BAMBOO",
|
|
29114
|
-
env: "bamboo_planKey"
|
|
29115
|
-
},
|
|
29116
|
-
{
|
|
29117
|
-
name: "Bitbucket Pipelines",
|
|
29118
|
-
constant: "BITBUCKET",
|
|
29119
|
-
env: "BITBUCKET_COMMIT",
|
|
29120
|
-
pr: "BITBUCKET_PR_ID"
|
|
29121
|
-
},
|
|
29122
|
-
{
|
|
29123
|
-
name: "Bitrise",
|
|
29124
|
-
constant: "BITRISE",
|
|
29125
|
-
env: "BITRISE_IO",
|
|
29126
|
-
pr: "BITRISE_PULL_REQUEST"
|
|
29127
|
-
},
|
|
29128
|
-
{
|
|
29129
|
-
name: "Buddy",
|
|
29130
|
-
constant: "BUDDY",
|
|
29131
|
-
env: "BUDDY_WORKSPACE_ID",
|
|
29132
|
-
pr: "BUDDY_EXECUTION_PULL_REQUEST_ID"
|
|
29133
|
-
},
|
|
29134
|
-
{
|
|
29135
|
-
name: "Buildkite",
|
|
29136
|
-
constant: "BUILDKITE",
|
|
29137
|
-
env: "BUILDKITE",
|
|
29138
|
-
pr: {
|
|
29139
|
-
env: "BUILDKITE_PULL_REQUEST",
|
|
29140
|
-
ne: "false"
|
|
29141
|
-
}
|
|
29142
|
-
},
|
|
29143
|
-
{
|
|
29144
|
-
name: "CircleCI",
|
|
29145
|
-
constant: "CIRCLE",
|
|
29146
|
-
env: "CIRCLECI",
|
|
29147
|
-
pr: "CIRCLE_PULL_REQUEST"
|
|
29148
|
-
},
|
|
29149
|
-
{
|
|
29150
|
-
name: "Cirrus CI",
|
|
29151
|
-
constant: "CIRRUS",
|
|
29152
|
-
env: "CIRRUS_CI",
|
|
29153
|
-
pr: "CIRRUS_PR"
|
|
29154
|
-
},
|
|
29155
|
-
{
|
|
29156
|
-
name: "Cloudflare Pages",
|
|
29157
|
-
constant: "CLOUDFLARE_PAGES",
|
|
29158
|
-
env: "CF_PAGES"
|
|
29159
|
-
},
|
|
29160
|
-
{
|
|
29161
|
-
name: "Codefresh",
|
|
29162
|
-
constant: "CODEFRESH",
|
|
29163
|
-
env: "CF_BUILD_ID",
|
|
29164
|
-
pr: {
|
|
29165
|
-
any: [
|
|
29166
|
-
"CF_PULL_REQUEST_NUMBER",
|
|
29167
|
-
"CF_PULL_REQUEST_ID"
|
|
29168
|
-
]
|
|
29169
|
-
}
|
|
29170
|
-
},
|
|
29171
|
-
{
|
|
29172
|
-
name: "Codemagic",
|
|
29173
|
-
constant: "CODEMAGIC",
|
|
29174
|
-
env: "CM_BUILD_ID",
|
|
29175
|
-
pr: "CM_PULL_REQUEST"
|
|
29176
|
-
},
|
|
29177
|
-
{
|
|
29178
|
-
name: "Codeship",
|
|
29179
|
-
constant: "CODESHIP",
|
|
29180
|
-
env: {
|
|
29181
|
-
CI_NAME: "codeship"
|
|
29182
|
-
}
|
|
29183
|
-
},
|
|
29184
|
-
{
|
|
29185
|
-
name: "Drone",
|
|
29186
|
-
constant: "DRONE",
|
|
29187
|
-
env: "DRONE",
|
|
29188
|
-
pr: {
|
|
29189
|
-
DRONE_BUILD_EVENT: "pull_request"
|
|
29190
|
-
}
|
|
29191
|
-
},
|
|
29192
|
-
{
|
|
29193
|
-
name: "dsari",
|
|
29194
|
-
constant: "DSARI",
|
|
29195
|
-
env: "DSARI"
|
|
29196
|
-
},
|
|
29197
|
-
{
|
|
29198
|
-
name: "Earthly",
|
|
29199
|
-
constant: "EARTHLY",
|
|
29200
|
-
env: "EARTHLY_CI"
|
|
29201
|
-
},
|
|
29202
|
-
{
|
|
29203
|
-
name: "Expo Application Services",
|
|
29204
|
-
constant: "EAS",
|
|
29205
|
-
env: "EAS_BUILD"
|
|
29206
|
-
},
|
|
29207
|
-
{
|
|
29208
|
-
name: "Gerrit",
|
|
29209
|
-
constant: "GERRIT",
|
|
29210
|
-
env: "GERRIT_PROJECT"
|
|
29211
|
-
},
|
|
29212
|
-
{
|
|
29213
|
-
name: "Gitea Actions",
|
|
29214
|
-
constant: "GITEA_ACTIONS",
|
|
29215
|
-
env: "GITEA_ACTIONS"
|
|
29216
|
-
},
|
|
29217
|
-
{
|
|
29218
|
-
name: "GitHub Actions",
|
|
29219
|
-
constant: "GITHUB_ACTIONS",
|
|
29220
|
-
env: "GITHUB_ACTIONS",
|
|
29221
|
-
pr: {
|
|
29222
|
-
GITHUB_EVENT_NAME: "pull_request"
|
|
29223
|
-
}
|
|
29224
|
-
},
|
|
29225
|
-
{
|
|
29226
|
-
name: "GitLab CI",
|
|
29227
|
-
constant: "GITLAB",
|
|
29228
|
-
env: "GITLAB_CI",
|
|
29229
|
-
pr: "CI_MERGE_REQUEST_ID"
|
|
29230
|
-
},
|
|
29231
|
-
{
|
|
29232
|
-
name: "GoCD",
|
|
29233
|
-
constant: "GOCD",
|
|
29234
|
-
env: "GO_PIPELINE_LABEL"
|
|
29235
|
-
},
|
|
29236
|
-
{
|
|
29237
|
-
name: "Google Cloud Build",
|
|
29238
|
-
constant: "GOOGLE_CLOUD_BUILD",
|
|
29239
|
-
env: "BUILDER_OUTPUT"
|
|
29240
|
-
},
|
|
29241
|
-
{
|
|
29242
|
-
name: "Harness CI",
|
|
29243
|
-
constant: "HARNESS",
|
|
29244
|
-
env: "HARNESS_BUILD_ID"
|
|
29245
|
-
},
|
|
29246
|
-
{
|
|
29247
|
-
name: "Heroku",
|
|
29248
|
-
constant: "HEROKU",
|
|
29249
|
-
env: {
|
|
29250
|
-
env: "NODE",
|
|
29251
|
-
includes: "/app/.heroku/node/bin/node"
|
|
29252
|
-
}
|
|
29253
|
-
},
|
|
29254
|
-
{
|
|
29255
|
-
name: "Hudson",
|
|
29256
|
-
constant: "HUDSON",
|
|
29257
|
-
env: "HUDSON_URL"
|
|
29258
|
-
},
|
|
29259
|
-
{
|
|
29260
|
-
name: "Jenkins",
|
|
29261
|
-
constant: "JENKINS",
|
|
29262
|
-
env: [
|
|
29263
|
-
"JENKINS_URL",
|
|
29264
|
-
"BUILD_ID"
|
|
29265
|
-
],
|
|
29266
|
-
pr: {
|
|
29267
|
-
any: [
|
|
29268
|
-
"ghprbPullId",
|
|
29269
|
-
"CHANGE_ID"
|
|
29270
|
-
]
|
|
29271
|
-
}
|
|
29272
|
-
},
|
|
29273
|
-
{
|
|
29274
|
-
name: "LayerCI",
|
|
29275
|
-
constant: "LAYERCI",
|
|
29276
|
-
env: "LAYERCI",
|
|
29277
|
-
pr: "LAYERCI_PULL_REQUEST"
|
|
29278
|
-
},
|
|
29279
|
-
{
|
|
29280
|
-
name: "Magnum CI",
|
|
29281
|
-
constant: "MAGNUM",
|
|
29282
|
-
env: "MAGNUM"
|
|
29283
|
-
},
|
|
29284
|
-
{
|
|
29285
|
-
name: "Netlify CI",
|
|
29286
|
-
constant: "NETLIFY",
|
|
29287
|
-
env: "NETLIFY",
|
|
29288
|
-
pr: {
|
|
29289
|
-
env: "PULL_REQUEST",
|
|
29290
|
-
ne: "false"
|
|
29291
|
-
}
|
|
29292
|
-
},
|
|
29293
|
-
{
|
|
29294
|
-
name: "Nevercode",
|
|
29295
|
-
constant: "NEVERCODE",
|
|
29296
|
-
env: "NEVERCODE",
|
|
29297
|
-
pr: {
|
|
29298
|
-
env: "NEVERCODE_PULL_REQUEST",
|
|
29299
|
-
ne: "false"
|
|
29300
|
-
}
|
|
29301
|
-
},
|
|
29302
|
-
{
|
|
29303
|
-
name: "Prow",
|
|
29304
|
-
constant: "PROW",
|
|
29305
|
-
env: "PROW_JOB_ID"
|
|
29306
|
-
},
|
|
29307
|
-
{
|
|
29308
|
-
name: "ReleaseHub",
|
|
29309
|
-
constant: "RELEASEHUB",
|
|
29310
|
-
env: "RELEASE_BUILD_ID"
|
|
29311
|
-
},
|
|
29312
|
-
{
|
|
29313
|
-
name: "Render",
|
|
29314
|
-
constant: "RENDER",
|
|
29315
|
-
env: "RENDER",
|
|
29316
|
-
pr: {
|
|
29317
|
-
IS_PULL_REQUEST: "true"
|
|
29318
|
-
}
|
|
29319
|
-
},
|
|
29320
|
-
{
|
|
29321
|
-
name: "Sail CI",
|
|
29322
|
-
constant: "SAIL",
|
|
29323
|
-
env: "SAILCI",
|
|
29324
|
-
pr: "SAIL_PULL_REQUEST_NUMBER"
|
|
29325
|
-
},
|
|
29326
|
-
{
|
|
29327
|
-
name: "Screwdriver",
|
|
29328
|
-
constant: "SCREWDRIVER",
|
|
29329
|
-
env: "SCREWDRIVER",
|
|
29330
|
-
pr: {
|
|
29331
|
-
env: "SD_PULL_REQUEST",
|
|
29332
|
-
ne: "false"
|
|
29333
|
-
}
|
|
29334
|
-
},
|
|
29335
|
-
{
|
|
29336
|
-
name: "Semaphore",
|
|
29337
|
-
constant: "SEMAPHORE",
|
|
29338
|
-
env: "SEMAPHORE",
|
|
29339
|
-
pr: "PULL_REQUEST_NUMBER"
|
|
29340
|
-
},
|
|
29341
|
-
{
|
|
29342
|
-
name: "Sourcehut",
|
|
29343
|
-
constant: "SOURCEHUT",
|
|
29344
|
-
env: {
|
|
29345
|
-
CI_NAME: "sourcehut"
|
|
29346
|
-
}
|
|
29347
|
-
},
|
|
29348
|
-
{
|
|
29349
|
-
name: "Strider CD",
|
|
29350
|
-
constant: "STRIDER",
|
|
29351
|
-
env: "STRIDER"
|
|
29352
|
-
},
|
|
29353
|
-
{
|
|
29354
|
-
name: "TaskCluster",
|
|
29355
|
-
constant: "TASKCLUSTER",
|
|
29356
|
-
env: [
|
|
29357
|
-
"TASK_ID",
|
|
29358
|
-
"RUN_ID"
|
|
29359
|
-
]
|
|
29360
|
-
},
|
|
29361
|
-
{
|
|
29362
|
-
name: "TeamCity",
|
|
29363
|
-
constant: "TEAMCITY",
|
|
29364
|
-
env: "TEAMCITY_VERSION"
|
|
29365
|
-
},
|
|
29366
|
-
{
|
|
29367
|
-
name: "Travis CI",
|
|
29368
|
-
constant: "TRAVIS",
|
|
29369
|
-
env: "TRAVIS",
|
|
29370
|
-
pr: {
|
|
29371
|
-
env: "TRAVIS_PULL_REQUEST",
|
|
29372
|
-
ne: "false"
|
|
29373
|
-
}
|
|
29374
|
-
},
|
|
29375
|
-
{
|
|
29376
|
-
name: "Vela",
|
|
29377
|
-
constant: "VELA",
|
|
29378
|
-
env: "VELA",
|
|
29379
|
-
pr: {
|
|
29380
|
-
VELA_PULL_REQUEST: "1"
|
|
29381
|
-
}
|
|
29382
|
-
},
|
|
29383
|
-
{
|
|
29384
|
-
name: "Vercel",
|
|
29385
|
-
constant: "VERCEL",
|
|
29386
|
-
env: {
|
|
29387
|
-
any: [
|
|
29388
|
-
"NOW_BUILDER",
|
|
29389
|
-
"VERCEL"
|
|
29390
|
-
]
|
|
29391
|
-
},
|
|
29392
|
-
pr: "VERCEL_GIT_PULL_REQUEST_ID"
|
|
29393
|
-
},
|
|
29394
|
-
{
|
|
29395
|
-
name: "Visual Studio App Center",
|
|
29396
|
-
constant: "APPCENTER",
|
|
29397
|
-
env: "APPCENTER_BUILD_ID"
|
|
29398
|
-
},
|
|
29399
|
-
{
|
|
29400
|
-
name: "Woodpecker",
|
|
29401
|
-
constant: "WOODPECKER",
|
|
29402
|
-
env: {
|
|
29403
|
-
CI: "woodpecker"
|
|
29404
|
-
},
|
|
29405
|
-
pr: {
|
|
29406
|
-
CI_BUILD_EVENT: "pull_request"
|
|
29407
|
-
}
|
|
29408
|
-
},
|
|
29409
|
-
{
|
|
29410
|
-
name: "Xcode Cloud",
|
|
29411
|
-
constant: "XCODE_CLOUD",
|
|
29412
|
-
env: "CI_XCODE_PROJECT",
|
|
29413
|
-
pr: "CI_PULL_REQUEST_NUMBER"
|
|
29414
|
-
},
|
|
29415
|
-
{
|
|
29416
|
-
name: "Xcode Server",
|
|
29417
|
-
constant: "XCODE_SERVER",
|
|
29418
|
-
env: "XCS"
|
|
29419
|
-
}
|
|
29420
|
-
];
|
|
29421
|
-
}
|
|
29422
|
-
});
|
|
29423
|
-
|
|
29424
|
-
// ../../node_modules/ci-info/index.js
|
|
29425
|
-
var require_ci_info2 = __commonJS({
|
|
29426
|
-
"../../node_modules/ci-info/index.js"(exports) {
|
|
29427
|
-
"use strict";
|
|
29428
|
-
init_esm_shims();
|
|
29429
|
-
var vendors = require_vendors2();
|
|
29430
|
-
var env3 = process.env;
|
|
29431
|
-
Object.defineProperty(exports, "_vendors", {
|
|
29432
|
-
value: vendors.map(function(v) {
|
|
29433
|
-
return v.constant;
|
|
29434
|
-
})
|
|
29435
|
-
});
|
|
29436
|
-
exports.name = null;
|
|
29437
|
-
exports.isPR = null;
|
|
29438
|
-
exports.id = null;
|
|
29439
|
-
vendors.forEach(function(vendor) {
|
|
29440
|
-
const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env];
|
|
29441
|
-
const isCI3 = envs.every(function(obj) {
|
|
29442
|
-
return checkEnv(obj);
|
|
29443
|
-
});
|
|
29444
|
-
exports[vendor.constant] = isCI3;
|
|
29445
|
-
if (!isCI3) {
|
|
29446
|
-
return;
|
|
29447
|
-
}
|
|
29448
|
-
exports.name = vendor.name;
|
|
29449
|
-
exports.isPR = checkPR(vendor);
|
|
29450
|
-
exports.id = vendor.constant;
|
|
29451
|
-
});
|
|
29452
|
-
exports.isCI = !!(env3.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
|
|
29453
|
-
(env3.BUILD_ID || // Jenkins, Cloudbees
|
|
29454
|
-
env3.BUILD_NUMBER || // Jenkins, TeamCity
|
|
29455
|
-
env3.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages
|
|
29456
|
-
env3.CI_APP_ID || // Appflow
|
|
29457
|
-
env3.CI_BUILD_ID || // Appflow
|
|
29458
|
-
env3.CI_BUILD_NUMBER || // Appflow
|
|
29459
|
-
env3.CI_NAME || // Codeship and others
|
|
29460
|
-
env3.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
|
|
29461
|
-
env3.RUN_ID || // TaskCluster, dsari
|
|
29462
|
-
exports.name || false));
|
|
29463
|
-
function checkEnv(obj) {
|
|
29464
|
-
if (typeof obj === "string") return !!env3[obj];
|
|
29465
|
-
if ("env" in obj) {
|
|
29466
|
-
return env3[obj.env] && env3[obj.env].includes(obj.includes);
|
|
29467
|
-
}
|
|
29468
|
-
if ("any" in obj) {
|
|
29469
|
-
return obj.any.some(function(k) {
|
|
29470
|
-
return !!env3[k];
|
|
29471
|
-
});
|
|
29472
|
-
}
|
|
29473
|
-
return Object.keys(obj).every(function(k) {
|
|
29474
|
-
return env3[k] === obj[k];
|
|
29475
|
-
});
|
|
29476
|
-
}
|
|
29477
|
-
function checkPR(vendor) {
|
|
29478
|
-
switch (typeof vendor.pr) {
|
|
29479
|
-
case "string":
|
|
29480
|
-
return !!env3[vendor.pr];
|
|
29481
|
-
case "object":
|
|
29482
|
-
if ("env" in vendor.pr) {
|
|
29483
|
-
if ("any" in vendor.pr) {
|
|
29484
|
-
return vendor.pr.any.some(function(key) {
|
|
29485
|
-
return env3[vendor.pr.env] === key;
|
|
29486
|
-
});
|
|
29487
|
-
} else {
|
|
29488
|
-
return vendor.pr.env in env3 && env3[vendor.pr.env] !== vendor.pr.ne;
|
|
29489
|
-
}
|
|
29490
|
-
} else if ("any" in vendor.pr) {
|
|
29491
|
-
return vendor.pr.any.some(function(key) {
|
|
29492
|
-
return !!env3[key];
|
|
29493
|
-
});
|
|
29494
|
-
} else {
|
|
29495
|
-
return checkEnv(vendor.pr);
|
|
29496
|
-
}
|
|
29497
|
-
default:
|
|
29498
|
-
return null;
|
|
29499
|
-
}
|
|
29500
|
-
}
|
|
29501
|
-
}
|
|
29502
|
-
});
|
|
29503
|
-
|
|
29504
29504
|
// ../../node_modules/commander/lib/error.js
|
|
29505
29505
|
var require_error2 = __commonJS({
|
|
29506
29506
|
"../../node_modules/commander/lib/error.js"(exports) {
|
|
@@ -68787,7 +68787,7 @@ var require_lib3 = __commonJS({
|
|
|
68787
68787
|
|
|
68788
68788
|
// src/index.tsx
|
|
68789
68789
|
init_esm_shims();
|
|
68790
|
-
var
|
|
68790
|
+
var import_react118 = __toESM(require_react(), 1);
|
|
68791
68791
|
import { cwd as cwd2 } from "node:process";
|
|
68792
68792
|
|
|
68793
68793
|
// ../cli-telemetry-react/src/index.ts
|
|
@@ -69259,7 +69259,7 @@ var yoga = (() => {
|
|
|
69259
69259
|
n4.L.Z = false, n4.delete();
|
|
69260
69260
|
}
|
|
69261
69261
|
}
|
|
69262
|
-
var
|
|
69262
|
+
var z = void 0, $2 = {};
|
|
69263
69263
|
function Z(n4, t4) {
|
|
69264
69264
|
for (void 0 === t4 && V("ptr should not be undefined"); n4.P; ) t4 = n4.aa(t4), n4 = n4.P;
|
|
69265
69265
|
return t4;
|
|
@@ -69525,7 +69525,7 @@ var yoga = (() => {
|
|
|
69525
69525
|
for (n4 in $2) $2.hasOwnProperty(n4) && t4.push($2[n4]);
|
|
69526
69526
|
return t4;
|
|
69527
69527
|
}, u.flushPendingDeletes = x, u.setDelayFunction = function(n4) {
|
|
69528
|
-
|
|
69528
|
+
z = n4, H.length && z && z(x);
|
|
69529
69529
|
}, ne = u.InternalError = D("InternalError"), ny.prototype.isAliasOf = function(n4) {
|
|
69530
69530
|
if (!(this instanceof ny && n4 instanceof ny)) return false;
|
|
69531
69531
|
var t4 = this.L.O.M, r3 = this.L.N, e3 = n4.L.O.M;
|
|
@@ -69541,7 +69541,7 @@ var yoga = (() => {
|
|
|
69541
69541
|
}, ny.prototype.isDeleted = function() {
|
|
69542
69542
|
return !this.L.N;
|
|
69543
69543
|
}, ny.prototype.deleteLater = function() {
|
|
69544
|
-
return this.L.N || nd(this), this.L.Z && !this.L.$ && V("Object already scheduled for deletion"), H.push(this), 1 === H.length &&
|
|
69544
|
+
return this.L.N || nd(this), this.L.Z && !this.L.$ && V("Object already scheduled for deletion"), H.push(this), 1 === H.length && z && z(x), this.L.Z = true, this;
|
|
69545
69545
|
}, nA.prototype.pa = function(n4) {
|
|
69546
69546
|
return this.ja && (n4 = this.ja(n4)), n4;
|
|
69547
69547
|
}, nA.prototype.ga = function(n4) {
|
|
@@ -75201,11 +75201,137 @@ var import_react62 = __toESM(require_react(), 1);
|
|
|
75201
75201
|
init_esm_shims();
|
|
75202
75202
|
import process16 from "node:process";
|
|
75203
75203
|
|
|
75204
|
-
// ../../node_modules/zod/
|
|
75204
|
+
// ../../node_modules/zod/index.js
|
|
75205
|
+
init_esm_shims();
|
|
75206
|
+
|
|
75207
|
+
// ../../node_modules/zod/v3/external.js
|
|
75208
|
+
var external_exports = {};
|
|
75209
|
+
__export(external_exports, {
|
|
75210
|
+
BRAND: () => BRAND,
|
|
75211
|
+
DIRTY: () => DIRTY,
|
|
75212
|
+
EMPTY_PATH: () => EMPTY_PATH,
|
|
75213
|
+
INVALID: () => INVALID,
|
|
75214
|
+
NEVER: () => NEVER,
|
|
75215
|
+
OK: () => OK,
|
|
75216
|
+
ParseStatus: () => ParseStatus,
|
|
75217
|
+
Schema: () => ZodType,
|
|
75218
|
+
ZodAny: () => ZodAny,
|
|
75219
|
+
ZodArray: () => ZodArray,
|
|
75220
|
+
ZodBigInt: () => ZodBigInt,
|
|
75221
|
+
ZodBoolean: () => ZodBoolean,
|
|
75222
|
+
ZodBranded: () => ZodBranded,
|
|
75223
|
+
ZodCatch: () => ZodCatch,
|
|
75224
|
+
ZodDate: () => ZodDate,
|
|
75225
|
+
ZodDefault: () => ZodDefault,
|
|
75226
|
+
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
75227
|
+
ZodEffects: () => ZodEffects,
|
|
75228
|
+
ZodEnum: () => ZodEnum,
|
|
75229
|
+
ZodError: () => ZodError,
|
|
75230
|
+
ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
|
|
75231
|
+
ZodFunction: () => ZodFunction,
|
|
75232
|
+
ZodIntersection: () => ZodIntersection,
|
|
75233
|
+
ZodIssueCode: () => ZodIssueCode,
|
|
75234
|
+
ZodLazy: () => ZodLazy,
|
|
75235
|
+
ZodLiteral: () => ZodLiteral,
|
|
75236
|
+
ZodMap: () => ZodMap,
|
|
75237
|
+
ZodNaN: () => ZodNaN,
|
|
75238
|
+
ZodNativeEnum: () => ZodNativeEnum,
|
|
75239
|
+
ZodNever: () => ZodNever,
|
|
75240
|
+
ZodNull: () => ZodNull,
|
|
75241
|
+
ZodNullable: () => ZodNullable,
|
|
75242
|
+
ZodNumber: () => ZodNumber,
|
|
75243
|
+
ZodObject: () => ZodObject,
|
|
75244
|
+
ZodOptional: () => ZodOptional,
|
|
75245
|
+
ZodParsedType: () => ZodParsedType,
|
|
75246
|
+
ZodPipeline: () => ZodPipeline,
|
|
75247
|
+
ZodPromise: () => ZodPromise,
|
|
75248
|
+
ZodReadonly: () => ZodReadonly,
|
|
75249
|
+
ZodRecord: () => ZodRecord,
|
|
75250
|
+
ZodSchema: () => ZodType,
|
|
75251
|
+
ZodSet: () => ZodSet,
|
|
75252
|
+
ZodString: () => ZodString,
|
|
75253
|
+
ZodSymbol: () => ZodSymbol,
|
|
75254
|
+
ZodTransformer: () => ZodEffects,
|
|
75255
|
+
ZodTuple: () => ZodTuple,
|
|
75256
|
+
ZodType: () => ZodType,
|
|
75257
|
+
ZodUndefined: () => ZodUndefined,
|
|
75258
|
+
ZodUnion: () => ZodUnion,
|
|
75259
|
+
ZodUnknown: () => ZodUnknown,
|
|
75260
|
+
ZodVoid: () => ZodVoid,
|
|
75261
|
+
addIssueToContext: () => addIssueToContext,
|
|
75262
|
+
any: () => anyType,
|
|
75263
|
+
array: () => arrayType,
|
|
75264
|
+
bigint: () => bigIntType,
|
|
75265
|
+
boolean: () => booleanType,
|
|
75266
|
+
coerce: () => coerce,
|
|
75267
|
+
custom: () => custom,
|
|
75268
|
+
date: () => dateType,
|
|
75269
|
+
datetimeRegex: () => datetimeRegex,
|
|
75270
|
+
defaultErrorMap: () => en_default,
|
|
75271
|
+
discriminatedUnion: () => discriminatedUnionType,
|
|
75272
|
+
effect: () => effectsType,
|
|
75273
|
+
enum: () => enumType,
|
|
75274
|
+
function: () => functionType,
|
|
75275
|
+
getErrorMap: () => getErrorMap,
|
|
75276
|
+
getParsedType: () => getParsedType,
|
|
75277
|
+
instanceof: () => instanceOfType,
|
|
75278
|
+
intersection: () => intersectionType,
|
|
75279
|
+
isAborted: () => isAborted,
|
|
75280
|
+
isAsync: () => isAsync,
|
|
75281
|
+
isDirty: () => isDirty,
|
|
75282
|
+
isValid: () => isValid,
|
|
75283
|
+
late: () => late,
|
|
75284
|
+
lazy: () => lazyType,
|
|
75285
|
+
literal: () => literalType,
|
|
75286
|
+
makeIssue: () => makeIssue,
|
|
75287
|
+
map: () => mapType,
|
|
75288
|
+
nan: () => nanType,
|
|
75289
|
+
nativeEnum: () => nativeEnumType,
|
|
75290
|
+
never: () => neverType,
|
|
75291
|
+
null: () => nullType,
|
|
75292
|
+
nullable: () => nullableType,
|
|
75293
|
+
number: () => numberType,
|
|
75294
|
+
object: () => objectType,
|
|
75295
|
+
objectUtil: () => objectUtil,
|
|
75296
|
+
oboolean: () => oboolean,
|
|
75297
|
+
onumber: () => onumber,
|
|
75298
|
+
optional: () => optionalType,
|
|
75299
|
+
ostring: () => ostring,
|
|
75300
|
+
pipeline: () => pipelineType,
|
|
75301
|
+
preprocess: () => preprocessType,
|
|
75302
|
+
promise: () => promiseType,
|
|
75303
|
+
quotelessJson: () => quotelessJson,
|
|
75304
|
+
record: () => recordType,
|
|
75305
|
+
set: () => setType,
|
|
75306
|
+
setErrorMap: () => setErrorMap,
|
|
75307
|
+
strictObject: () => strictObjectType,
|
|
75308
|
+
string: () => stringType,
|
|
75309
|
+
symbol: () => symbolType,
|
|
75310
|
+
transformer: () => effectsType,
|
|
75311
|
+
tuple: () => tupleType,
|
|
75312
|
+
undefined: () => undefinedType,
|
|
75313
|
+
union: () => unionType,
|
|
75314
|
+
unknown: () => unknownType,
|
|
75315
|
+
util: () => util,
|
|
75316
|
+
void: () => voidType
|
|
75317
|
+
});
|
|
75318
|
+
init_esm_shims();
|
|
75319
|
+
|
|
75320
|
+
// ../../node_modules/zod/v3/errors.js
|
|
75321
|
+
init_esm_shims();
|
|
75322
|
+
|
|
75323
|
+
// ../../node_modules/zod/v3/locales/en.js
|
|
75324
|
+
init_esm_shims();
|
|
75325
|
+
|
|
75326
|
+
// ../../node_modules/zod/v3/ZodError.js
|
|
75327
|
+
init_esm_shims();
|
|
75328
|
+
|
|
75329
|
+
// ../../node_modules/zod/v3/helpers/util.js
|
|
75205
75330
|
init_esm_shims();
|
|
75206
75331
|
var util;
|
|
75207
75332
|
(function(util3) {
|
|
75208
|
-
util3.assertEqual = (
|
|
75333
|
+
util3.assertEqual = (_2) => {
|
|
75334
|
+
};
|
|
75209
75335
|
function assertIs(_arg) {
|
|
75210
75336
|
}
|
|
75211
75337
|
util3.assertIs = assertIs;
|
|
@@ -75249,7 +75375,7 @@ var util;
|
|
|
75249
75375
|
}
|
|
75250
75376
|
return void 0;
|
|
75251
75377
|
};
|
|
75252
|
-
util3.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;
|
|
75378
|
+
util3.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
|
|
75253
75379
|
function joinValues(array, separator = " | ") {
|
|
75254
75380
|
return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
75255
75381
|
}
|
|
@@ -75301,7 +75427,7 @@ var getParsedType = (data) => {
|
|
|
75301
75427
|
case "string":
|
|
75302
75428
|
return ZodParsedType.string;
|
|
75303
75429
|
case "number":
|
|
75304
|
-
return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
|
|
75430
|
+
return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
|
|
75305
75431
|
case "boolean":
|
|
75306
75432
|
return ZodParsedType.boolean;
|
|
75307
75433
|
case "function":
|
|
@@ -75334,6 +75460,8 @@ var getParsedType = (data) => {
|
|
|
75334
75460
|
return ZodParsedType.unknown;
|
|
75335
75461
|
}
|
|
75336
75462
|
};
|
|
75463
|
+
|
|
75464
|
+
// ../../node_modules/zod/v3/ZodError.js
|
|
75337
75465
|
var ZodIssueCode = util.arrayToEnum([
|
|
75338
75466
|
"invalid_type",
|
|
75339
75467
|
"invalid_literal",
|
|
@@ -75433,8 +75561,9 @@ var ZodError = class _ZodError extends Error {
|
|
|
75433
75561
|
const formErrors = [];
|
|
75434
75562
|
for (const sub of this.issues) {
|
|
75435
75563
|
if (sub.path.length > 0) {
|
|
75436
|
-
|
|
75437
|
-
fieldErrors[
|
|
75564
|
+
const firstEl = sub.path[0];
|
|
75565
|
+
fieldErrors[firstEl] = fieldErrors[firstEl] || [];
|
|
75566
|
+
fieldErrors[firstEl].push(mapper(sub));
|
|
75438
75567
|
} else {
|
|
75439
75568
|
formErrors.push(mapper(sub));
|
|
75440
75569
|
}
|
|
@@ -75449,6 +75578,8 @@ ZodError.create = (issues) => {
|
|
|
75449
75578
|
const error = new ZodError(issues);
|
|
75450
75579
|
return error;
|
|
75451
75580
|
};
|
|
75581
|
+
|
|
75582
|
+
// ../../node_modules/zod/v3/locales/en.js
|
|
75452
75583
|
var errorMap = (issue, _ctx) => {
|
|
75453
75584
|
let message;
|
|
75454
75585
|
switch (issue.code) {
|
|
@@ -75510,6 +75641,8 @@ var errorMap = (issue, _ctx) => {
|
|
|
75510
75641
|
message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
|
|
75511
75642
|
else if (issue.type === "number")
|
|
75512
75643
|
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
|
|
75644
|
+
else if (issue.type === "bigint")
|
|
75645
|
+
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
|
|
75513
75646
|
else if (issue.type === "date")
|
|
75514
75647
|
message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
|
|
75515
75648
|
else
|
|
@@ -75547,13 +75680,19 @@ var errorMap = (issue, _ctx) => {
|
|
|
75547
75680
|
}
|
|
75548
75681
|
return { message };
|
|
75549
75682
|
};
|
|
75550
|
-
var
|
|
75683
|
+
var en_default = errorMap;
|
|
75684
|
+
|
|
75685
|
+
// ../../node_modules/zod/v3/errors.js
|
|
75686
|
+
var overrideErrorMap = en_default;
|
|
75551
75687
|
function setErrorMap(map2) {
|
|
75552
75688
|
overrideErrorMap = map2;
|
|
75553
75689
|
}
|
|
75554
75690
|
function getErrorMap() {
|
|
75555
75691
|
return overrideErrorMap;
|
|
75556
75692
|
}
|
|
75693
|
+
|
|
75694
|
+
// ../../node_modules/zod/v3/helpers/parseUtil.js
|
|
75695
|
+
init_esm_shims();
|
|
75557
75696
|
var makeIssue = (params) => {
|
|
75558
75697
|
const { data, path: path8, errorMaps, issueData } = params;
|
|
75559
75698
|
const fullPath = [...path8, ...issueData.path || []];
|
|
@@ -75593,7 +75732,7 @@ function addIssueToContext(ctx, issueData) {
|
|
|
75593
75732
|
// then schema-bound map if available
|
|
75594
75733
|
overrideMap,
|
|
75595
75734
|
// then global override map
|
|
75596
|
-
overrideMap ===
|
|
75735
|
+
overrideMap === en_default ? void 0 : en_default
|
|
75597
75736
|
// then global default map
|
|
75598
75737
|
].filter((x) => !!x)
|
|
75599
75738
|
});
|
|
@@ -75662,24 +75801,19 @@ var isAborted = (x) => x.status === "aborted";
|
|
|
75662
75801
|
var isDirty = (x) => x.status === "dirty";
|
|
75663
75802
|
var isValid = (x) => x.status === "valid";
|
|
75664
75803
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
75665
|
-
|
|
75666
|
-
|
|
75667
|
-
|
|
75668
|
-
|
|
75669
|
-
|
|
75670
|
-
|
|
75671
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
75672
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
75673
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
75674
|
-
return kind === "a" ? f.call(receiver, value2) : f ? f.value = value2 : state.set(receiver, value2), value2;
|
|
75675
|
-
}
|
|
75804
|
+
|
|
75805
|
+
// ../../node_modules/zod/v3/types.js
|
|
75806
|
+
init_esm_shims();
|
|
75807
|
+
|
|
75808
|
+
// ../../node_modules/zod/v3/helpers/errorUtil.js
|
|
75809
|
+
init_esm_shims();
|
|
75676
75810
|
var errorUtil;
|
|
75677
75811
|
(function(errorUtil2) {
|
|
75678
75812
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
75679
|
-
errorUtil2.toString = (message) => typeof message === "string" ? message : message
|
|
75813
|
+
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
75680
75814
|
})(errorUtil || (errorUtil = {}));
|
|
75681
|
-
|
|
75682
|
-
|
|
75815
|
+
|
|
75816
|
+
// ../../node_modules/zod/v3/types.js
|
|
75683
75817
|
var ParseInputLazyPath = class {
|
|
75684
75818
|
constructor(parent, value2, path8, key) {
|
|
75685
75819
|
this._cachedPath = [];
|
|
@@ -75690,7 +75824,7 @@ var ParseInputLazyPath = class {
|
|
|
75690
75824
|
}
|
|
75691
75825
|
get path() {
|
|
75692
75826
|
if (!this._cachedPath.length) {
|
|
75693
|
-
if (this._key
|
|
75827
|
+
if (Array.isArray(this._key)) {
|
|
75694
75828
|
this._cachedPath.push(...this._path, ...this._key);
|
|
75695
75829
|
} else {
|
|
75696
75830
|
this._cachedPath.push(...this._path, this._key);
|
|
@@ -75728,17 +75862,16 @@ function processCreateParams(params) {
|
|
|
75728
75862
|
if (errorMap2)
|
|
75729
75863
|
return { errorMap: errorMap2, description };
|
|
75730
75864
|
const customMap = (iss, ctx) => {
|
|
75731
|
-
var _a3, _b;
|
|
75732
75865
|
const { message } = params;
|
|
75733
75866
|
if (iss.code === "invalid_enum_value") {
|
|
75734
|
-
return { message: message
|
|
75867
|
+
return { message: message ?? ctx.defaultError };
|
|
75735
75868
|
}
|
|
75736
75869
|
if (typeof ctx.data === "undefined") {
|
|
75737
|
-
return { message:
|
|
75870
|
+
return { message: message ?? required_error ?? ctx.defaultError };
|
|
75738
75871
|
}
|
|
75739
75872
|
if (iss.code !== "invalid_type")
|
|
75740
75873
|
return { message: ctx.defaultError };
|
|
75741
|
-
return { message:
|
|
75874
|
+
return { message: message ?? invalid_type_error ?? ctx.defaultError };
|
|
75742
75875
|
};
|
|
75743
75876
|
return { errorMap: customMap, description };
|
|
75744
75877
|
}
|
|
@@ -75790,14 +75923,13 @@ var ZodType = class {
|
|
|
75790
75923
|
throw result.error;
|
|
75791
75924
|
}
|
|
75792
75925
|
safeParse(data, params) {
|
|
75793
|
-
var _a3;
|
|
75794
75926
|
const ctx = {
|
|
75795
75927
|
common: {
|
|
75796
75928
|
issues: [],
|
|
75797
|
-
async:
|
|
75798
|
-
contextualErrorMap: params
|
|
75929
|
+
async: params?.async ?? false,
|
|
75930
|
+
contextualErrorMap: params?.errorMap
|
|
75799
75931
|
},
|
|
75800
|
-
path:
|
|
75932
|
+
path: params?.path || [],
|
|
75801
75933
|
schemaErrorMap: this._def.errorMap,
|
|
75802
75934
|
parent: null,
|
|
75803
75935
|
data,
|
|
@@ -75807,7 +75939,6 @@ var ZodType = class {
|
|
|
75807
75939
|
return handleResult(ctx, result);
|
|
75808
75940
|
}
|
|
75809
75941
|
"~validate"(data) {
|
|
75810
|
-
var _a3, _b;
|
|
75811
75942
|
const ctx = {
|
|
75812
75943
|
common: {
|
|
75813
75944
|
issues: [],
|
|
@@ -75828,7 +75959,7 @@ var ZodType = class {
|
|
|
75828
75959
|
issues: ctx.common.issues
|
|
75829
75960
|
};
|
|
75830
75961
|
} catch (err) {
|
|
75831
|
-
if (
|
|
75962
|
+
if (err?.message?.toLowerCase()?.includes("encountered")) {
|
|
75832
75963
|
this["~standard"].async = true;
|
|
75833
75964
|
}
|
|
75834
75965
|
ctx.common = {
|
|
@@ -75853,10 +75984,10 @@ var ZodType = class {
|
|
|
75853
75984
|
const ctx = {
|
|
75854
75985
|
common: {
|
|
75855
75986
|
issues: [],
|
|
75856
|
-
contextualErrorMap: params
|
|
75987
|
+
contextualErrorMap: params?.errorMap,
|
|
75857
75988
|
async: true
|
|
75858
75989
|
},
|
|
75859
|
-
path:
|
|
75990
|
+
path: params?.path || [],
|
|
75860
75991
|
schemaErrorMap: this._def.errorMap,
|
|
75861
75992
|
parent: null,
|
|
75862
75993
|
data,
|
|
@@ -76046,13 +76177,14 @@ var base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_
|
|
|
76046
76177
|
var dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
|
|
76047
76178
|
var dateRegex = new RegExp(`^${dateRegexSource}$`);
|
|
76048
76179
|
function timeRegexSource(args) {
|
|
76049
|
-
let
|
|
76180
|
+
let secondsRegexSource = `[0-5]\\d`;
|
|
76050
76181
|
if (args.precision) {
|
|
76051
|
-
|
|
76182
|
+
secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`;
|
|
76052
76183
|
} else if (args.precision == null) {
|
|
76053
|
-
|
|
76184
|
+
secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
|
|
76054
76185
|
}
|
|
76055
|
-
|
|
76186
|
+
const secondsQuantifier = args.precision ? "+" : "?";
|
|
76187
|
+
return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
|
|
76056
76188
|
}
|
|
76057
76189
|
function timeRegex(args) {
|
|
76058
76190
|
return new RegExp(`^${timeRegexSource(args)}$`);
|
|
@@ -76080,16 +76212,20 @@ function isValidJWT(jwt, alg) {
|
|
|
76080
76212
|
return false;
|
|
76081
76213
|
try {
|
|
76082
76214
|
const [header] = jwt.split(".");
|
|
76215
|
+
if (!header)
|
|
76216
|
+
return false;
|
|
76083
76217
|
const base642 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");
|
|
76084
76218
|
const decoded = JSON.parse(atob(base642));
|
|
76085
76219
|
if (typeof decoded !== "object" || decoded === null)
|
|
76086
76220
|
return false;
|
|
76087
|
-
if (
|
|
76221
|
+
if ("typ" in decoded && decoded?.typ !== "JWT")
|
|
76222
|
+
return false;
|
|
76223
|
+
if (!decoded.alg)
|
|
76088
76224
|
return false;
|
|
76089
76225
|
if (alg && decoded.alg !== alg)
|
|
76090
76226
|
return false;
|
|
76091
76227
|
return true;
|
|
76092
|
-
} catch
|
|
76228
|
+
} catch {
|
|
76093
76229
|
return false;
|
|
76094
76230
|
}
|
|
76095
76231
|
}
|
|
@@ -76248,7 +76384,7 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
76248
76384
|
} else if (check.kind === "url") {
|
|
76249
76385
|
try {
|
|
76250
76386
|
new URL(input.data);
|
|
76251
|
-
} catch
|
|
76387
|
+
} catch {
|
|
76252
76388
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
76253
76389
|
addIssueToContext(ctx, {
|
|
76254
76390
|
validation: "url",
|
|
@@ -76460,7 +76596,6 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
76460
76596
|
return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
|
|
76461
76597
|
}
|
|
76462
76598
|
datetime(options) {
|
|
76463
|
-
var _a3, _b;
|
|
76464
76599
|
if (typeof options === "string") {
|
|
76465
76600
|
return this._addCheck({
|
|
76466
76601
|
kind: "datetime",
|
|
@@ -76472,10 +76607,10 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
76472
76607
|
}
|
|
76473
76608
|
return this._addCheck({
|
|
76474
76609
|
kind: "datetime",
|
|
76475
|
-
precision: typeof
|
|
76476
|
-
offset:
|
|
76477
|
-
local:
|
|
76478
|
-
...errorUtil.errToObj(options
|
|
76610
|
+
precision: typeof options?.precision === "undefined" ? null : options?.precision,
|
|
76611
|
+
offset: options?.offset ?? false,
|
|
76612
|
+
local: options?.local ?? false,
|
|
76613
|
+
...errorUtil.errToObj(options?.message)
|
|
76479
76614
|
});
|
|
76480
76615
|
}
|
|
76481
76616
|
date(message) {
|
|
@@ -76491,8 +76626,8 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
76491
76626
|
}
|
|
76492
76627
|
return this._addCheck({
|
|
76493
76628
|
kind: "time",
|
|
76494
|
-
precision: typeof
|
|
76495
|
-
...errorUtil.errToObj(options
|
|
76629
|
+
precision: typeof options?.precision === "undefined" ? null : options?.precision,
|
|
76630
|
+
...errorUtil.errToObj(options?.message)
|
|
76496
76631
|
});
|
|
76497
76632
|
}
|
|
76498
76633
|
duration(message) {
|
|
@@ -76509,8 +76644,8 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
76509
76644
|
return this._addCheck({
|
|
76510
76645
|
kind: "includes",
|
|
76511
76646
|
value: value2,
|
|
76512
|
-
position: options
|
|
76513
|
-
...errorUtil.errToObj(options
|
|
76647
|
+
position: options?.position,
|
|
76648
|
+
...errorUtil.errToObj(options?.message)
|
|
76514
76649
|
});
|
|
76515
76650
|
}
|
|
76516
76651
|
startsWith(value2, message) {
|
|
@@ -76642,11 +76777,10 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
76642
76777
|
}
|
|
76643
76778
|
};
|
|
76644
76779
|
ZodString.create = (params) => {
|
|
76645
|
-
var _a3;
|
|
76646
76780
|
return new ZodString({
|
|
76647
76781
|
checks: [],
|
|
76648
76782
|
typeName: ZodFirstPartyTypeKind.ZodString,
|
|
76649
|
-
coerce:
|
|
76783
|
+
coerce: params?.coerce ?? false,
|
|
76650
76784
|
...processCreateParams(params)
|
|
76651
76785
|
});
|
|
76652
76786
|
};
|
|
@@ -76654,9 +76788,9 @@ function floatSafeRemainder(val, step) {
|
|
|
76654
76788
|
const valDecCount = (val.toString().split(".")[1] || "").length;
|
|
76655
76789
|
const stepDecCount = (step.toString().split(".")[1] || "").length;
|
|
76656
76790
|
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
76657
|
-
const valInt = parseInt(val.toFixed(decCount).replace(".", ""));
|
|
76658
|
-
const stepInt = parseInt(step.toFixed(decCount).replace(".", ""));
|
|
76659
|
-
return valInt % stepInt /
|
|
76791
|
+
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
76792
|
+
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
76793
|
+
return valInt % stepInt / 10 ** decCount;
|
|
76660
76794
|
}
|
|
76661
76795
|
var ZodNumber = class _ZodNumber extends ZodType {
|
|
76662
76796
|
constructor() {
|
|
@@ -76866,7 +77000,8 @@ var ZodNumber = class _ZodNumber extends ZodType {
|
|
|
76866
77000
|
return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util.isInteger(ch.value));
|
|
76867
77001
|
}
|
|
76868
77002
|
get isFinite() {
|
|
76869
|
-
let max = null
|
|
77003
|
+
let max = null;
|
|
77004
|
+
let min = null;
|
|
76870
77005
|
for (const ch of this._def.checks) {
|
|
76871
77006
|
if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
|
|
76872
77007
|
return true;
|
|
@@ -76885,7 +77020,7 @@ ZodNumber.create = (params) => {
|
|
|
76885
77020
|
return new ZodNumber({
|
|
76886
77021
|
checks: [],
|
|
76887
77022
|
typeName: ZodFirstPartyTypeKind.ZodNumber,
|
|
76888
|
-
coerce:
|
|
77023
|
+
coerce: params?.coerce || false,
|
|
76889
77024
|
...processCreateParams(params)
|
|
76890
77025
|
});
|
|
76891
77026
|
};
|
|
@@ -76899,7 +77034,7 @@ var ZodBigInt = class _ZodBigInt extends ZodType {
|
|
|
76899
77034
|
if (this._def.coerce) {
|
|
76900
77035
|
try {
|
|
76901
77036
|
input.data = BigInt(input.data);
|
|
76902
|
-
} catch
|
|
77037
|
+
} catch {
|
|
76903
77038
|
return this._getInvalidInput(input);
|
|
76904
77039
|
}
|
|
76905
77040
|
}
|
|
@@ -77054,11 +77189,10 @@ var ZodBigInt = class _ZodBigInt extends ZodType {
|
|
|
77054
77189
|
}
|
|
77055
77190
|
};
|
|
77056
77191
|
ZodBigInt.create = (params) => {
|
|
77057
|
-
var _a3;
|
|
77058
77192
|
return new ZodBigInt({
|
|
77059
77193
|
checks: [],
|
|
77060
77194
|
typeName: ZodFirstPartyTypeKind.ZodBigInt,
|
|
77061
|
-
coerce:
|
|
77195
|
+
coerce: params?.coerce ?? false,
|
|
77062
77196
|
...processCreateParams(params)
|
|
77063
77197
|
});
|
|
77064
77198
|
};
|
|
@@ -77083,7 +77217,7 @@ var ZodBoolean = class extends ZodType {
|
|
|
77083
77217
|
ZodBoolean.create = (params) => {
|
|
77084
77218
|
return new ZodBoolean({
|
|
77085
77219
|
typeName: ZodFirstPartyTypeKind.ZodBoolean,
|
|
77086
|
-
coerce:
|
|
77220
|
+
coerce: params?.coerce || false,
|
|
77087
77221
|
...processCreateParams(params)
|
|
77088
77222
|
});
|
|
77089
77223
|
};
|
|
@@ -77102,7 +77236,7 @@ var ZodDate = class _ZodDate extends ZodType {
|
|
|
77102
77236
|
});
|
|
77103
77237
|
return INVALID;
|
|
77104
77238
|
}
|
|
77105
|
-
if (isNaN(input.data.getTime())) {
|
|
77239
|
+
if (Number.isNaN(input.data.getTime())) {
|
|
77106
77240
|
const ctx2 = this._getOrReturnCtx(input);
|
|
77107
77241
|
addIssueToContext(ctx2, {
|
|
77108
77242
|
code: ZodIssueCode.invalid_date
|
|
@@ -77191,7 +77325,7 @@ var ZodDate = class _ZodDate extends ZodType {
|
|
|
77191
77325
|
ZodDate.create = (params) => {
|
|
77192
77326
|
return new ZodDate({
|
|
77193
77327
|
checks: [],
|
|
77194
|
-
coerce:
|
|
77328
|
+
coerce: params?.coerce || false,
|
|
77195
77329
|
typeName: ZodFirstPartyTypeKind.ZodDate,
|
|
77196
77330
|
...processCreateParams(params)
|
|
77197
77331
|
});
|
|
@@ -77466,7 +77600,8 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
|
77466
77600
|
return this._cached;
|
|
77467
77601
|
const shape = this._def.shape();
|
|
77468
77602
|
const keys = util.objectKeys(shape);
|
|
77469
|
-
|
|
77603
|
+
this._cached = { shape, keys };
|
|
77604
|
+
return this._cached;
|
|
77470
77605
|
}
|
|
77471
77606
|
_parse(input) {
|
|
77472
77607
|
const parsedType = this._getType(input);
|
|
@@ -77516,8 +77651,8 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
|
77516
77651
|
});
|
|
77517
77652
|
status.dirty();
|
|
77518
77653
|
}
|
|
77519
|
-
} else if (unknownKeys === "strip")
|
|
77520
|
-
else {
|
|
77654
|
+
} else if (unknownKeys === "strip") {
|
|
77655
|
+
} else {
|
|
77521
77656
|
throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
|
|
77522
77657
|
}
|
|
77523
77658
|
} else {
|
|
@@ -77564,11 +77699,10 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
|
77564
77699
|
unknownKeys: "strict",
|
|
77565
77700
|
...message !== void 0 ? {
|
|
77566
77701
|
errorMap: (issue, ctx) => {
|
|
77567
|
-
|
|
77568
|
-
const defaultError = (_c = (_b = (_a3 = this._def).errorMap) === null || _b === void 0 ? void 0 : _b.call(_a3, issue, ctx).message) !== null && _c !== void 0 ? _c : ctx.defaultError;
|
|
77702
|
+
const defaultError = this._def.errorMap?.(issue, ctx).message ?? ctx.defaultError;
|
|
77569
77703
|
if (issue.code === "unrecognized_keys")
|
|
77570
77704
|
return {
|
|
77571
|
-
message:
|
|
77705
|
+
message: errorUtil.errToObj(message).message ?? defaultError
|
|
77572
77706
|
};
|
|
77573
77707
|
return {
|
|
77574
77708
|
message: defaultError
|
|
@@ -77699,11 +77833,11 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
|
77699
77833
|
}
|
|
77700
77834
|
pick(mask) {
|
|
77701
77835
|
const shape = {};
|
|
77702
|
-
util.objectKeys(mask)
|
|
77836
|
+
for (const key of util.objectKeys(mask)) {
|
|
77703
77837
|
if (mask[key] && this.shape[key]) {
|
|
77704
77838
|
shape[key] = this.shape[key];
|
|
77705
77839
|
}
|
|
77706
|
-
}
|
|
77840
|
+
}
|
|
77707
77841
|
return new _ZodObject({
|
|
77708
77842
|
...this._def,
|
|
77709
77843
|
shape: () => shape
|
|
@@ -77711,11 +77845,11 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
|
77711
77845
|
}
|
|
77712
77846
|
omit(mask) {
|
|
77713
77847
|
const shape = {};
|
|
77714
|
-
util.objectKeys(this.shape)
|
|
77848
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
77715
77849
|
if (!mask[key]) {
|
|
77716
77850
|
shape[key] = this.shape[key];
|
|
77717
77851
|
}
|
|
77718
|
-
}
|
|
77852
|
+
}
|
|
77719
77853
|
return new _ZodObject({
|
|
77720
77854
|
...this._def,
|
|
77721
77855
|
shape: () => shape
|
|
@@ -77729,14 +77863,14 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
|
77729
77863
|
}
|
|
77730
77864
|
partial(mask) {
|
|
77731
77865
|
const newShape = {};
|
|
77732
|
-
util.objectKeys(this.shape)
|
|
77866
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
77733
77867
|
const fieldSchema = this.shape[key];
|
|
77734
77868
|
if (mask && !mask[key]) {
|
|
77735
77869
|
newShape[key] = fieldSchema;
|
|
77736
77870
|
} else {
|
|
77737
77871
|
newShape[key] = fieldSchema.optional();
|
|
77738
77872
|
}
|
|
77739
|
-
}
|
|
77873
|
+
}
|
|
77740
77874
|
return new _ZodObject({
|
|
77741
77875
|
...this._def,
|
|
77742
77876
|
shape: () => newShape
|
|
@@ -77744,7 +77878,7 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
|
77744
77878
|
}
|
|
77745
77879
|
required(mask) {
|
|
77746
77880
|
const newShape = {};
|
|
77747
|
-
util.objectKeys(this.shape)
|
|
77881
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
77748
77882
|
if (mask && !mask[key]) {
|
|
77749
77883
|
newShape[key] = this.shape[key];
|
|
77750
77884
|
} else {
|
|
@@ -77755,7 +77889,7 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
|
77755
77889
|
}
|
|
77756
77890
|
newShape[key] = newField;
|
|
77757
77891
|
}
|
|
77758
|
-
}
|
|
77892
|
+
}
|
|
77759
77893
|
return new _ZodObject({
|
|
77760
77894
|
...this._def,
|
|
77761
77895
|
shape: () => newShape
|
|
@@ -78371,12 +78505,7 @@ var ZodFunction = class _ZodFunction extends ZodType {
|
|
|
78371
78505
|
return makeIssue({
|
|
78372
78506
|
data: args,
|
|
78373
78507
|
path: ctx.path,
|
|
78374
|
-
errorMaps: [
|
|
78375
|
-
ctx.common.contextualErrorMap,
|
|
78376
|
-
ctx.schemaErrorMap,
|
|
78377
|
-
getErrorMap(),
|
|
78378
|
-
errorMap
|
|
78379
|
-
].filter((x) => !!x),
|
|
78508
|
+
errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), en_default].filter((x) => !!x),
|
|
78380
78509
|
issueData: {
|
|
78381
78510
|
code: ZodIssueCode.invalid_arguments,
|
|
78382
78511
|
argumentsError: error
|
|
@@ -78387,12 +78516,7 @@ var ZodFunction = class _ZodFunction extends ZodType {
|
|
|
78387
78516
|
return makeIssue({
|
|
78388
78517
|
data: returns,
|
|
78389
78518
|
path: ctx.path,
|
|
78390
|
-
errorMaps: [
|
|
78391
|
-
ctx.common.contextualErrorMap,
|
|
78392
|
-
ctx.schemaErrorMap,
|
|
78393
|
-
getErrorMap(),
|
|
78394
|
-
errorMap
|
|
78395
|
-
].filter((x) => !!x),
|
|
78519
|
+
errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), en_default].filter((x) => !!x),
|
|
78396
78520
|
issueData: {
|
|
78397
78521
|
code: ZodIssueCode.invalid_return_type,
|
|
78398
78522
|
returnTypeError: error
|
|
@@ -78516,10 +78640,6 @@ function createZodEnum(values, params) {
|
|
|
78516
78640
|
});
|
|
78517
78641
|
}
|
|
78518
78642
|
var ZodEnum = class _ZodEnum extends ZodType {
|
|
78519
|
-
constructor() {
|
|
78520
|
-
super(...arguments);
|
|
78521
|
-
_ZodEnum_cache.set(this, void 0);
|
|
78522
|
-
}
|
|
78523
78643
|
_parse(input) {
|
|
78524
78644
|
if (typeof input.data !== "string") {
|
|
78525
78645
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -78531,10 +78651,10 @@ var ZodEnum = class _ZodEnum extends ZodType {
|
|
|
78531
78651
|
});
|
|
78532
78652
|
return INVALID;
|
|
78533
78653
|
}
|
|
78534
|
-
if (!
|
|
78535
|
-
|
|
78654
|
+
if (!this._cache) {
|
|
78655
|
+
this._cache = new Set(this._def.values);
|
|
78536
78656
|
}
|
|
78537
|
-
if (!
|
|
78657
|
+
if (!this._cache.has(input.data)) {
|
|
78538
78658
|
const ctx = this._getOrReturnCtx(input);
|
|
78539
78659
|
const expectedValues = this._def.values;
|
|
78540
78660
|
addIssueToContext(ctx, {
|
|
@@ -78583,13 +78703,8 @@ var ZodEnum = class _ZodEnum extends ZodType {
|
|
|
78583
78703
|
});
|
|
78584
78704
|
}
|
|
78585
78705
|
};
|
|
78586
|
-
_ZodEnum_cache = /* @__PURE__ */ new WeakMap();
|
|
78587
78706
|
ZodEnum.create = createZodEnum;
|
|
78588
78707
|
var ZodNativeEnum = class extends ZodType {
|
|
78589
|
-
constructor() {
|
|
78590
|
-
super(...arguments);
|
|
78591
|
-
_ZodNativeEnum_cache.set(this, void 0);
|
|
78592
|
-
}
|
|
78593
78708
|
_parse(input) {
|
|
78594
78709
|
const nativeEnumValues = util.getValidEnumValues(this._def.values);
|
|
78595
78710
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -78602,10 +78717,10 @@ var ZodNativeEnum = class extends ZodType {
|
|
|
78602
78717
|
});
|
|
78603
78718
|
return INVALID;
|
|
78604
78719
|
}
|
|
78605
|
-
if (!
|
|
78606
|
-
|
|
78720
|
+
if (!this._cache) {
|
|
78721
|
+
this._cache = new Set(util.getValidEnumValues(this._def.values));
|
|
78607
78722
|
}
|
|
78608
|
-
if (!
|
|
78723
|
+
if (!this._cache.has(input.data)) {
|
|
78609
78724
|
const expectedValues = util.objectValues(nativeEnumValues);
|
|
78610
78725
|
addIssueToContext(ctx, {
|
|
78611
78726
|
received: ctx.data,
|
|
@@ -78620,7 +78735,6 @@ var ZodNativeEnum = class extends ZodType {
|
|
|
78620
78735
|
return this._def.values;
|
|
78621
78736
|
}
|
|
78622
78737
|
};
|
|
78623
|
-
_ZodNativeEnum_cache = /* @__PURE__ */ new WeakMap();
|
|
78624
78738
|
ZodNativeEnum.create = (values, params) => {
|
|
78625
78739
|
return new ZodNativeEnum({
|
|
78626
78740
|
values,
|
|
@@ -78761,7 +78875,7 @@ var ZodEffects = class extends ZodType {
|
|
|
78761
78875
|
parent: ctx
|
|
78762
78876
|
});
|
|
78763
78877
|
if (!isValid(base))
|
|
78764
|
-
return
|
|
78878
|
+
return INVALID;
|
|
78765
78879
|
const result = effect.transform(base.value, checkCtx);
|
|
78766
78880
|
if (result instanceof Promise) {
|
|
78767
78881
|
throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
|
|
@@ -78770,8 +78884,11 @@ var ZodEffects = class extends ZodType {
|
|
|
78770
78884
|
} else {
|
|
78771
78885
|
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
|
|
78772
78886
|
if (!isValid(base))
|
|
78773
|
-
return
|
|
78774
|
-
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
78887
|
+
return INVALID;
|
|
78888
|
+
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
78889
|
+
status: status.value,
|
|
78890
|
+
value: result
|
|
78891
|
+
}));
|
|
78775
78892
|
});
|
|
78776
78893
|
}
|
|
78777
78894
|
}
|
|
@@ -79031,21 +79148,19 @@ function cleanParams(params, data) {
|
|
|
79031
79148
|
function custom(check, _params = {}, fatal) {
|
|
79032
79149
|
if (check)
|
|
79033
79150
|
return ZodAny.create().superRefine((data, ctx) => {
|
|
79034
|
-
var _a3, _b;
|
|
79035
79151
|
const r2 = check(data);
|
|
79036
79152
|
if (r2 instanceof Promise) {
|
|
79037
79153
|
return r2.then((r3) => {
|
|
79038
|
-
var _a4, _b2;
|
|
79039
79154
|
if (!r3) {
|
|
79040
79155
|
const params = cleanParams(_params, data);
|
|
79041
|
-
const _fatal =
|
|
79156
|
+
const _fatal = params.fatal ?? fatal ?? true;
|
|
79042
79157
|
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
79043
79158
|
}
|
|
79044
79159
|
});
|
|
79045
79160
|
}
|
|
79046
79161
|
if (!r2) {
|
|
79047
79162
|
const params = cleanParams(_params, data);
|
|
79048
|
-
const _fatal =
|
|
79163
|
+
const _fatal = params.fatal ?? fatal ?? true;
|
|
79049
79164
|
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
79050
79165
|
}
|
|
79051
79166
|
return;
|
|
@@ -79145,146 +79260,36 @@ var coerce = {
|
|
|
79145
79260
|
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
79146
79261
|
};
|
|
79147
79262
|
var NEVER = INVALID;
|
|
79148
|
-
|
|
79149
|
-
|
|
79150
|
-
|
|
79151
|
-
setErrorMap,
|
|
79152
|
-
getErrorMap,
|
|
79153
|
-
makeIssue,
|
|
79154
|
-
EMPTY_PATH,
|
|
79155
|
-
addIssueToContext,
|
|
79156
|
-
ParseStatus,
|
|
79157
|
-
INVALID,
|
|
79158
|
-
DIRTY,
|
|
79159
|
-
OK,
|
|
79160
|
-
isAborted,
|
|
79161
|
-
isDirty,
|
|
79162
|
-
isValid,
|
|
79163
|
-
isAsync,
|
|
79164
|
-
get util() {
|
|
79165
|
-
return util;
|
|
79166
|
-
},
|
|
79167
|
-
get objectUtil() {
|
|
79168
|
-
return objectUtil;
|
|
79169
|
-
},
|
|
79170
|
-
ZodParsedType,
|
|
79171
|
-
getParsedType,
|
|
79172
|
-
ZodType,
|
|
79173
|
-
datetimeRegex,
|
|
79174
|
-
ZodString,
|
|
79175
|
-
ZodNumber,
|
|
79176
|
-
ZodBigInt,
|
|
79177
|
-
ZodBoolean,
|
|
79178
|
-
ZodDate,
|
|
79179
|
-
ZodSymbol,
|
|
79180
|
-
ZodUndefined,
|
|
79181
|
-
ZodNull,
|
|
79182
|
-
ZodAny,
|
|
79183
|
-
ZodUnknown,
|
|
79184
|
-
ZodNever,
|
|
79185
|
-
ZodVoid,
|
|
79186
|
-
ZodArray,
|
|
79187
|
-
ZodObject,
|
|
79188
|
-
ZodUnion,
|
|
79189
|
-
ZodDiscriminatedUnion,
|
|
79190
|
-
ZodIntersection,
|
|
79191
|
-
ZodTuple,
|
|
79192
|
-
ZodRecord,
|
|
79193
|
-
ZodMap,
|
|
79194
|
-
ZodSet,
|
|
79195
|
-
ZodFunction,
|
|
79196
|
-
ZodLazy,
|
|
79197
|
-
ZodLiteral,
|
|
79198
|
-
ZodEnum,
|
|
79199
|
-
ZodNativeEnum,
|
|
79200
|
-
ZodPromise,
|
|
79201
|
-
ZodEffects,
|
|
79202
|
-
ZodTransformer: ZodEffects,
|
|
79203
|
-
ZodOptional,
|
|
79204
|
-
ZodNullable,
|
|
79205
|
-
ZodDefault,
|
|
79206
|
-
ZodCatch,
|
|
79207
|
-
ZodNaN,
|
|
79208
|
-
BRAND,
|
|
79209
|
-
ZodBranded,
|
|
79210
|
-
ZodPipeline,
|
|
79211
|
-
ZodReadonly,
|
|
79212
|
-
custom,
|
|
79213
|
-
Schema: ZodType,
|
|
79214
|
-
ZodSchema: ZodType,
|
|
79215
|
-
late,
|
|
79216
|
-
get ZodFirstPartyTypeKind() {
|
|
79217
|
-
return ZodFirstPartyTypeKind;
|
|
79218
|
-
},
|
|
79219
|
-
coerce,
|
|
79220
|
-
any: anyType,
|
|
79221
|
-
array: arrayType,
|
|
79222
|
-
bigint: bigIntType,
|
|
79223
|
-
boolean: booleanType,
|
|
79224
|
-
date: dateType,
|
|
79225
|
-
discriminatedUnion: discriminatedUnionType,
|
|
79226
|
-
effect: effectsType,
|
|
79227
|
-
"enum": enumType,
|
|
79228
|
-
"function": functionType,
|
|
79229
|
-
"instanceof": instanceOfType,
|
|
79230
|
-
intersection: intersectionType,
|
|
79231
|
-
lazy: lazyType,
|
|
79232
|
-
literal: literalType,
|
|
79233
|
-
map: mapType,
|
|
79234
|
-
nan: nanType,
|
|
79235
|
-
nativeEnum: nativeEnumType,
|
|
79236
|
-
never: neverType,
|
|
79237
|
-
"null": nullType,
|
|
79238
|
-
nullable: nullableType,
|
|
79239
|
-
number: numberType,
|
|
79240
|
-
object: objectType,
|
|
79241
|
-
oboolean,
|
|
79242
|
-
onumber,
|
|
79243
|
-
optional: optionalType,
|
|
79244
|
-
ostring,
|
|
79245
|
-
pipeline: pipelineType,
|
|
79246
|
-
preprocess: preprocessType,
|
|
79247
|
-
promise: promiseType,
|
|
79248
|
-
record: recordType,
|
|
79249
|
-
set: setType,
|
|
79250
|
-
strictObject: strictObjectType,
|
|
79251
|
-
string: stringType,
|
|
79252
|
-
symbol: symbolType,
|
|
79253
|
-
transformer: effectsType,
|
|
79254
|
-
tuple: tupleType,
|
|
79255
|
-
"undefined": undefinedType,
|
|
79256
|
-
union: unionType,
|
|
79257
|
-
unknown: unknownType,
|
|
79258
|
-
"void": voidType,
|
|
79259
|
-
NEVER,
|
|
79260
|
-
ZodIssueCode,
|
|
79261
|
-
quotelessJson,
|
|
79262
|
-
ZodError
|
|
79263
|
-
});
|
|
79263
|
+
|
|
79264
|
+
// ../../node_modules/zod/index.js
|
|
79265
|
+
var zod_default = external_exports;
|
|
79264
79266
|
|
|
79265
79267
|
// ../cli-test-overrides/src/index.ts
|
|
79266
|
-
var testOverridesSchema =
|
|
79267
|
-
biLoggerBaseUrl:
|
|
79268
|
-
devEditorBaseUrl:
|
|
79269
|
-
inkDebug:
|
|
79270
|
-
minRetryTimeout:
|
|
79271
|
-
pollInterval:
|
|
79272
|
-
pollTimeout:
|
|
79273
|
-
debounceQueueWait:
|
|
79274
|
-
sentryDsn:
|
|
79275
|
-
userBrowserTestEndpoint:
|
|
79276
|
-
dataDir:
|
|
79277
|
-
wixCliDependencyVersion:
|
|
79278
|
-
wixCliAppDependencyVersion:
|
|
79279
|
-
disableTTY:
|
|
79280
|
-
waitForLoginInterval:
|
|
79281
|
-
registryUrl:
|
|
79282
|
-
fsCacheDir:
|
|
79283
|
-
localTunnel:
|
|
79284
|
-
customElementsCreationDelay:
|
|
79285
|
-
sdkAuthServerBaseUrl:
|
|
79286
|
-
miniflareRequestsRewrites:
|
|
79287
|
-
panoramaReporterUrl:
|
|
79268
|
+
var testOverridesSchema = zod_default.object({
|
|
79269
|
+
biLoggerBaseUrl: zod_default.string().url().optional(),
|
|
79270
|
+
devEditorBaseUrl: zod_default.string().url().optional(),
|
|
79271
|
+
inkDebug: zod_default.boolean().optional(),
|
|
79272
|
+
minRetryTimeout: zod_default.number().optional(),
|
|
79273
|
+
pollInterval: zod_default.number().optional(),
|
|
79274
|
+
pollTimeout: zod_default.number().optional(),
|
|
79275
|
+
debounceQueueWait: zod_default.number().optional(),
|
|
79276
|
+
sentryDsn: zod_default.string().optional(),
|
|
79277
|
+
userBrowserTestEndpoint: zod_default.string().url().optional(),
|
|
79278
|
+
dataDir: zod_default.string().optional(),
|
|
79279
|
+
wixCliDependencyVersion: zod_default.string().optional(),
|
|
79280
|
+
wixCliAppDependencyVersion: zod_default.string().optional(),
|
|
79281
|
+
disableTTY: zod_default.boolean().optional(),
|
|
79282
|
+
waitForLoginInterval: zod_default.number().optional(),
|
|
79283
|
+
registryUrl: zod_default.string().optional(),
|
|
79284
|
+
fsCacheDir: zod_default.string().optional(),
|
|
79285
|
+
localTunnel: zod_default.boolean().optional(),
|
|
79286
|
+
customElementsCreationDelay: zod_default.number().optional(),
|
|
79287
|
+
sdkAuthServerBaseUrl: zod_default.string().optional(),
|
|
79288
|
+
miniflareRequestsRewrites: zod_default.array(zod_default.object({ from: zod_default.string(), to: zod_default.string() })).optional(),
|
|
79289
|
+
panoramaReporterUrl: zod_default.string().optional(),
|
|
79290
|
+
isCI: zod_default.boolean().optional(),
|
|
79291
|
+
isPR: zod_default.boolean().optional(),
|
|
79292
|
+
ciName: zod_default.string().optional()
|
|
79288
79293
|
});
|
|
79289
79294
|
var TEST_OVERRIDES_ENV_VAR = "WIX_CLI_TEST_OVERRIDES";
|
|
79290
79295
|
function getTestOverrides() {
|
|
@@ -80364,6 +80369,9 @@ function getMyAccount(payload5) {
|
|
|
80364
80369
|
entityFqdn: "wix.identity.account.v2.account",
|
|
80365
80370
|
method: "GET",
|
|
80366
80371
|
methodFqn: "com.wixpress.account.api.AccountService.getMyAccount",
|
|
80372
|
+
migrationOptions: {
|
|
80373
|
+
optInTransformResponse: true
|
|
80374
|
+
},
|
|
80367
80375
|
url: resolveComWixpressAccountApiAccountServiceUrl({
|
|
80368
80376
|
protoPath: "/v1/accounts/my_account",
|
|
80369
80377
|
data: serializedData,
|
|
@@ -80463,18 +80471,30 @@ function resolveWixIdentityOauth2V1Oauth2NgUrl(opts) {
|
|
|
80463
80471
|
{
|
|
80464
80472
|
srcPath: "/oauth2/callback",
|
|
80465
80473
|
destPath: "/oauth2/callback"
|
|
80474
|
+
},
|
|
80475
|
+
{
|
|
80476
|
+
srcPath: "/oauth2/user-authorized",
|
|
80477
|
+
destPath: "/oauth2/user-authorized"
|
|
80466
80478
|
}
|
|
80467
80479
|
],
|
|
80468
80480
|
"blocks._base_domain_": [
|
|
80469
80481
|
{
|
|
80470
80482
|
srcPath: "/oauth2/callback",
|
|
80471
80483
|
destPath: "/oauth2/callback"
|
|
80484
|
+
},
|
|
80485
|
+
{
|
|
80486
|
+
srcPath: "/oauth2/user-authorized",
|
|
80487
|
+
destPath: "/oauth2/user-authorized"
|
|
80472
80488
|
}
|
|
80473
80489
|
],
|
|
80474
80490
|
"create.editorx": [
|
|
80475
80491
|
{
|
|
80476
80492
|
srcPath: "/oauth2/callback",
|
|
80477
80493
|
destPath: "/oauth2/callback"
|
|
80494
|
+
},
|
|
80495
|
+
{
|
|
80496
|
+
srcPath: "/oauth2/user-authorized",
|
|
80497
|
+
destPath: "/oauth2/user-authorized"
|
|
80478
80498
|
}
|
|
80479
80499
|
]
|
|
80480
80500
|
};
|
|
@@ -80490,6 +80510,9 @@ function token(payload5) {
|
|
|
80490
80510
|
entityFqdn: "wix.identity.oauth.v1.refresh_token",
|
|
80491
80511
|
method: "POST",
|
|
80492
80512
|
methodFqn: "wix.identity.oauth2.v1.Oauth2Ng.Token",
|
|
80513
|
+
migrationOptions: {
|
|
80514
|
+
optInTransformResponse: true
|
|
80515
|
+
},
|
|
80493
80516
|
url: resolveWixIdentityOauth2V1Oauth2NgUrl({
|
|
80494
80517
|
protoPath: "/v1/oauth/token",
|
|
80495
80518
|
data: serializedData,
|
|
@@ -80514,6 +80537,9 @@ function deviceCode(payload5) {
|
|
|
80514
80537
|
entityFqdn: "wix.identity.oauth.v1.refresh_token",
|
|
80515
80538
|
method: "GET",
|
|
80516
80539
|
methodFqn: "wix.identity.oauth2.v1.Oauth2Ng.DeviceCode",
|
|
80540
|
+
migrationOptions: {
|
|
80541
|
+
optInTransformResponse: true
|
|
80542
|
+
},
|
|
80517
80543
|
url: resolveWixIdentityOauth2V1Oauth2NgUrl({
|
|
80518
80544
|
protoPath: "/v1/oauth/device/code",
|
|
80519
80545
|
data: serializedData,
|
|
@@ -80538,6 +80564,9 @@ function revokeRefreshToken(payload5) {
|
|
|
80538
80564
|
entityFqdn: "wix.identity.oauth.v1.refresh_token",
|
|
80539
80565
|
method: "POST",
|
|
80540
80566
|
methodFqn: "wix.identity.oauth2.v1.Oauth2Ng.RevokeRefreshToken",
|
|
80567
|
+
migrationOptions: {
|
|
80568
|
+
optInTransformResponse: true
|
|
80569
|
+
},
|
|
80541
80570
|
url: resolveWixIdentityOauth2V1Oauth2NgUrl({
|
|
80542
80571
|
protoPath: "/v1/oauth/revoke",
|
|
80543
80572
|
data: serializedData,
|
|
@@ -80563,22 +80592,22 @@ var import_http_client = __toESM(require_index_node(), 1);
|
|
|
80563
80592
|
function isHttpError(error) {
|
|
80564
80593
|
return import_http_client.HttpClient.isHttpError(error);
|
|
80565
80594
|
}
|
|
80566
|
-
var validationErrorSchema =
|
|
80567
|
-
details:
|
|
80568
|
-
validationError:
|
|
80569
|
-
fieldViolations:
|
|
80570
|
-
|
|
80571
|
-
description:
|
|
80572
|
-
field:
|
|
80595
|
+
var validationErrorSchema = external_exports.object({
|
|
80596
|
+
details: external_exports.object({
|
|
80597
|
+
validationError: external_exports.object({
|
|
80598
|
+
fieldViolations: external_exports.array(
|
|
80599
|
+
external_exports.object({
|
|
80600
|
+
description: external_exports.string(),
|
|
80601
|
+
field: external_exports.string()
|
|
80573
80602
|
})
|
|
80574
80603
|
).nonempty()
|
|
80575
80604
|
})
|
|
80576
80605
|
})
|
|
80577
80606
|
});
|
|
80578
|
-
var applicationErrorSchema =
|
|
80579
|
-
details:
|
|
80580
|
-
applicationError:
|
|
80581
|
-
code:
|
|
80607
|
+
var applicationErrorSchema = external_exports.object({
|
|
80608
|
+
details: external_exports.object({
|
|
80609
|
+
applicationError: external_exports.object({
|
|
80610
|
+
code: external_exports.string()
|
|
80582
80611
|
})
|
|
80583
80612
|
})
|
|
80584
80613
|
});
|
|
@@ -80689,47 +80718,47 @@ var import_variant14 = __toESM(require_lib(), 1);
|
|
|
80689
80718
|
|
|
80690
80719
|
// ../cli-auth/src/schemas.ts
|
|
80691
80720
|
init_esm_shims();
|
|
80692
|
-
var deviceCodeSchema =
|
|
80693
|
-
deviceCode:
|
|
80694
|
-
verificationUri:
|
|
80695
|
-
userCode:
|
|
80696
|
-
expiresIn:
|
|
80697
|
-
});
|
|
80698
|
-
var tokenSchema =
|
|
80699
|
-
access_token:
|
|
80700
|
-
refresh_token:
|
|
80701
|
-
expires_in:
|
|
80721
|
+
var deviceCodeSchema = external_exports.object({
|
|
80722
|
+
deviceCode: external_exports.string(),
|
|
80723
|
+
verificationUri: external_exports.string().url(),
|
|
80724
|
+
userCode: external_exports.string(),
|
|
80725
|
+
expiresIn: external_exports.number()
|
|
80726
|
+
});
|
|
80727
|
+
var tokenSchema = external_exports.object({
|
|
80728
|
+
access_token: external_exports.string(),
|
|
80729
|
+
refresh_token: external_exports.string(),
|
|
80730
|
+
expires_in: external_exports.number()
|
|
80702
80731
|
}).transform((token2) => ({
|
|
80703
80732
|
accessToken: token2.access_token,
|
|
80704
80733
|
refreshToken: token2.refresh_token,
|
|
80705
80734
|
expiresIn: token2.expires_in
|
|
80706
80735
|
}));
|
|
80707
|
-
var userInfoSchema =
|
|
80708
|
-
userId:
|
|
80709
|
-
email:
|
|
80710
|
-
});
|
|
80711
|
-
var getMyAccountSchema =
|
|
80712
|
-
account:
|
|
80713
|
-
slug:
|
|
80714
|
-
accountId:
|
|
80715
|
-
accountOwner:
|
|
80736
|
+
var userInfoSchema = external_exports.object({
|
|
80737
|
+
userId: external_exports.string().uuid(),
|
|
80738
|
+
email: external_exports.string().email()
|
|
80739
|
+
});
|
|
80740
|
+
var getMyAccountSchema = external_exports.object({
|
|
80741
|
+
account: external_exports.object({
|
|
80742
|
+
slug: external_exports.string(),
|
|
80743
|
+
accountId: external_exports.string().uuid(),
|
|
80744
|
+
accountOwner: external_exports.string().uuid()
|
|
80716
80745
|
})
|
|
80717
80746
|
});
|
|
80718
|
-
var siteAuthSchema =
|
|
80719
|
-
accessToken:
|
|
80720
|
-
refreshToken:
|
|
80721
|
-
expiresIn:
|
|
80722
|
-
issuedAt:
|
|
80747
|
+
var siteAuthSchema = external_exports.object({
|
|
80748
|
+
accessToken: external_exports.string(),
|
|
80749
|
+
refreshToken: external_exports.string(),
|
|
80750
|
+
expiresIn: external_exports.number(),
|
|
80751
|
+
issuedAt: external_exports.number()
|
|
80723
80752
|
});
|
|
80724
80753
|
var accountAuthSchema = siteAuthSchema.extend({
|
|
80725
80754
|
userInfo: userInfoSchema
|
|
80726
80755
|
});
|
|
80727
|
-
var apiKeyAuthSchema =
|
|
80728
|
-
token:
|
|
80729
|
-
accountId:
|
|
80730
|
-
userInfo:
|
|
80731
|
-
userId:
|
|
80732
|
-
email:
|
|
80756
|
+
var apiKeyAuthSchema = external_exports.object({
|
|
80757
|
+
token: external_exports.string(),
|
|
80758
|
+
accountId: external_exports.string().uuid(),
|
|
80759
|
+
userInfo: external_exports.object({
|
|
80760
|
+
userId: external_exports.string().uuid(),
|
|
80761
|
+
email: external_exports.string()
|
|
80733
80762
|
})
|
|
80734
80763
|
});
|
|
80735
80764
|
|
|
@@ -80939,11 +80968,11 @@ var import_dotenv = __toESM(require_main(), 1);
|
|
|
80939
80968
|
|
|
80940
80969
|
// ../cli-fs/src/schemas.ts
|
|
80941
80970
|
init_esm_shims();
|
|
80942
|
-
var packageJsonSchema =
|
|
80943
|
-
dependencies:
|
|
80944
|
-
devDependencies:
|
|
80945
|
-
peerDependencies:
|
|
80946
|
-
scripts:
|
|
80971
|
+
var packageJsonSchema = external_exports.object({
|
|
80972
|
+
dependencies: external_exports.record(external_exports.string()).optional(),
|
|
80973
|
+
devDependencies: external_exports.record(external_exports.string()).optional(),
|
|
80974
|
+
peerDependencies: external_exports.record(external_exports.string()).optional(),
|
|
80975
|
+
scripts: external_exports.record(external_exports.string()).optional()
|
|
80947
80976
|
});
|
|
80948
80977
|
|
|
80949
80978
|
// ../cli-fs/src/index.ts
|
|
@@ -81788,7 +81817,7 @@ function wixCliLoginEnd(params) {
|
|
|
81788
81817
|
|
|
81789
81818
|
// ../cli-auth/src/components/Login.tsx
|
|
81790
81819
|
init_esm_shims();
|
|
81791
|
-
var
|
|
81820
|
+
var import_react89 = __toESM(require_react(), 1);
|
|
81792
81821
|
|
|
81793
81822
|
// ../cli-i18n/src/index.ts
|
|
81794
81823
|
init_esm_shims();
|
|
@@ -88321,7 +88350,7 @@ var messages_default = {
|
|
|
88321
88350
|
|
|
88322
88351
|
// ../cli-auth/src/components/LoginInstructions.tsx
|
|
88323
88352
|
init_esm_shims();
|
|
88324
|
-
var
|
|
88353
|
+
var import_react88 = __toESM(require_react(), 1);
|
|
88325
88354
|
|
|
88326
88355
|
// ../user-browser/src/index.ts
|
|
88327
88356
|
init_esm_shims();
|
|
@@ -88818,7 +88847,7 @@ init_esm_shims();
|
|
|
88818
88847
|
|
|
88819
88848
|
// ../cli-error-reporting/src/create-error-handler.tsx
|
|
88820
88849
|
init_esm_shims();
|
|
88821
|
-
var
|
|
88850
|
+
var import_react85 = __toESM(require_react(), 1);
|
|
88822
88851
|
import process22 from "node:process";
|
|
88823
88852
|
|
|
88824
88853
|
// ../cli-debug-log/src/index.tsx
|
|
@@ -88827,9 +88856,9 @@ var import_react74 = __toESM(require_react(), 1);
|
|
|
88827
88856
|
var import_verror4 = __toESM(require_verror(), 1);
|
|
88828
88857
|
import { dirname as dirname3 } from "node:path";
|
|
88829
88858
|
import { appendFileSync, mkdirSync } from "node:fs";
|
|
88830
|
-
function writeCrashReport(reportPath, error) {
|
|
88859
|
+
function writeCrashReport(reportPath, error, occurredAt) {
|
|
88831
88860
|
try {
|
|
88832
|
-
let content = `----- CLI crash report at ${
|
|
88861
|
+
let content = `----- CLI crash report at ${occurredAt.toISOString()}
|
|
88833
88862
|
`;
|
|
88834
88863
|
if (error instanceof Error) {
|
|
88835
88864
|
content += `Error Trace
|
|
@@ -88855,6 +88884,18 @@ function writeCrashReport(reportPath, error) {
|
|
|
88855
88884
|
}
|
|
88856
88885
|
var DebugLogContext = (0, import_react74.createContext)(null);
|
|
88857
88886
|
|
|
88887
|
+
// ../cli-env/src/index.ts
|
|
88888
|
+
init_esm_shims();
|
|
88889
|
+
var import_ci_info = __toESM(require_ci_info2(), 1);
|
|
88890
|
+
var createEnv = () => {
|
|
88891
|
+
const overrides2 = getTestOverrides();
|
|
88892
|
+
return {
|
|
88893
|
+
isCI: overrides2.isCI ?? import_ci_info.default.isCI,
|
|
88894
|
+
isPR: overrides2.isPR ?? import_ci_info.default.isPR,
|
|
88895
|
+
ciName: overrides2.ciName ?? import_ci_info.default.name ?? process.env.CI_NAME ?? null
|
|
88896
|
+
};
|
|
88897
|
+
};
|
|
88898
|
+
|
|
88858
88899
|
// ../cli-error-reporting/src/components/ErrorViewer.ts
|
|
88859
88900
|
init_esm_shims();
|
|
88860
88901
|
var import_react79 = __toESM(require_react(), 1);
|
|
@@ -93147,7 +93188,6 @@ function shouldAddPerformanceIntegrations(options) {
|
|
|
93147
93188
|
|
|
93148
93189
|
// ../cli-error-reporting/src/error-reporter.ts
|
|
93149
93190
|
var import_verror5 = __toESM(require_verror(), 1);
|
|
93150
|
-
var import_ci_info = __toESM(require_ci_info2(), 1);
|
|
93151
93191
|
import EventEmitter2 from "node:events";
|
|
93152
93192
|
var ReportErrorResult = (0, import_variant20.variant)({
|
|
93153
93193
|
Reported: (0, import_variant20.fields)(),
|
|
@@ -93172,13 +93212,13 @@ var reportError = (scope, originalError, { data } = {}) => {
|
|
|
93172
93212
|
"Full Stack": import_verror5.default.fullStack(error)
|
|
93173
93213
|
});
|
|
93174
93214
|
}
|
|
93175
|
-
|
|
93176
|
-
|
|
93215
|
+
const { isCI: isCI3, isPR, ciName } = createEnv();
|
|
93216
|
+
localScope.setTag("ci", yesOrNo(isCI3));
|
|
93177
93217
|
localScope.setTag("ci.name", ciName);
|
|
93178
93218
|
localScope.setContext("CI", {
|
|
93179
93219
|
Name: ciName,
|
|
93180
|
-
"Is CI": yesOrNo(
|
|
93181
|
-
"Is PR": yesOrNo(
|
|
93220
|
+
"Is CI": yesOrNo(isCI3),
|
|
93221
|
+
"Is PR": yesOrNo(isPR)
|
|
93182
93222
|
});
|
|
93183
93223
|
return localScope;
|
|
93184
93224
|
}
|
|
@@ -93270,9 +93310,9 @@ var CacheState = (0, import_variant21.variant)({
|
|
|
93270
93310
|
Exists: (0, import_variant21.fields)(),
|
|
93271
93311
|
NotExists: {}
|
|
93272
93312
|
});
|
|
93273
|
-
var CacheData =
|
|
93274
|
-
data:
|
|
93275
|
-
createdAt:
|
|
93313
|
+
var CacheData = external_exports.object({
|
|
93314
|
+
data: external_exports.unknown(),
|
|
93315
|
+
createdAt: external_exports.number()
|
|
93276
93316
|
});
|
|
93277
93317
|
var isFileExpired = (createdAt, ttlInHours) => {
|
|
93278
93318
|
return Date.now() - createdAt.valueOf() > ttlInHours * 60 * 60 * 1e3;
|
|
@@ -93415,6 +93455,52 @@ async function collectUserFeedback({
|
|
|
93415
93455
|
await fsCache.set({ reported: true });
|
|
93416
93456
|
}
|
|
93417
93457
|
|
|
93458
|
+
// ../cli-error-reporting/src/components/RawErrorViewer.tsx
|
|
93459
|
+
init_esm_shims();
|
|
93460
|
+
var import_react84 = __toESM(require_react(), 1);
|
|
93461
|
+
var import_verror6 = __toESM(require_verror(), 1);
|
|
93462
|
+
var RawErrorViewer = (props) => {
|
|
93463
|
+
const { error, occurredAt } = props;
|
|
93464
|
+
return /* @__PURE__ */ import_react84.default.createElement(Box_default, { flexDirection: "column", paddingTop: 1 }, /* @__PURE__ */ import_react84.default.createElement(Text2, null, "----- CLI crash report at ", occurredAt.toISOString()), error instanceof Error ? /* @__PURE__ */ import_react84.default.createElement(FullErrorDetails, { error }) : /* @__PURE__ */ import_react84.default.createElement(Text2, null, JSON.stringify(error)));
|
|
93465
|
+
};
|
|
93466
|
+
var FullErrorDetails = ({ error }) => {
|
|
93467
|
+
const httpError = extractHttpError(error);
|
|
93468
|
+
const httpErrorInfo = httpError ? getSafeHttpErrorInfo(httpError) : null;
|
|
93469
|
+
return /* @__PURE__ */ import_react84.default.createElement(import_react84.default.Fragment, null, /* @__PURE__ */ import_react84.default.createElement(Text2, null, "Error Trace"), /* @__PURE__ */ import_react84.default.createElement(Text2, null, import_verror6.default.fullStack(error)), /* @__PURE__ */ import_react84.default.createElement(Text2, null, "Error Info"), /* @__PURE__ */ import_react84.default.createElement(Text2, null, toPrettyJson(import_verror6.default.info(error))), httpErrorInfo ? /* @__PURE__ */ import_react84.default.createElement(Box_default, { flexDirection: "column" }, /* @__PURE__ */ import_react84.default.createElement(Text2, null, "Request Info"), /* @__PURE__ */ import_react84.default.createElement(Text2, null, toPrettyJson(httpErrorInfo))) : null);
|
|
93470
|
+
};
|
|
93471
|
+
function getSafeHttpErrorInfo(httpError) {
|
|
93472
|
+
return {
|
|
93473
|
+
request: {
|
|
93474
|
+
baseURL: httpError.config.baseURL,
|
|
93475
|
+
url: httpError.config.url,
|
|
93476
|
+
method: httpError.config.method,
|
|
93477
|
+
data: httpError.config.data
|
|
93478
|
+
},
|
|
93479
|
+
response: {
|
|
93480
|
+
code: httpError.code,
|
|
93481
|
+
message: httpError.message,
|
|
93482
|
+
status: httpError.response?.status,
|
|
93483
|
+
headers: getSafeHeaders(httpError.response?.headers),
|
|
93484
|
+
data: httpError.response?.data
|
|
93485
|
+
}
|
|
93486
|
+
};
|
|
93487
|
+
}
|
|
93488
|
+
var SAFE_HEADERS = /* @__PURE__ */ new Set(["x-wix-request-id"]);
|
|
93489
|
+
function getSafeHeaders(headers) {
|
|
93490
|
+
if (headers) {
|
|
93491
|
+
return Object.keys(headers).reduce((acc, curr) => {
|
|
93492
|
+
if (SAFE_HEADERS.has(curr.toLowerCase())) {
|
|
93493
|
+
acc[curr] = headers[curr];
|
|
93494
|
+
}
|
|
93495
|
+
return acc;
|
|
93496
|
+
}, {});
|
|
93497
|
+
}
|
|
93498
|
+
return headers;
|
|
93499
|
+
}
|
|
93500
|
+
function toPrettyJson(data) {
|
|
93501
|
+
return JSON.stringify(data, null, 2);
|
|
93502
|
+
}
|
|
93503
|
+
|
|
93418
93504
|
// ../cli-error-reporting/src/create-error-handler.tsx
|
|
93419
93505
|
function createErrorHandler({
|
|
93420
93506
|
debugOutputPath,
|
|
@@ -93424,15 +93510,19 @@ function createErrorHandler({
|
|
|
93424
93510
|
const errorReporter2 = createErrorReporter(errorReporterOptions);
|
|
93425
93511
|
const handler = function({ error, data }) {
|
|
93426
93512
|
const reportResult = errorReporter2.reportError(error, { data });
|
|
93427
|
-
|
|
93428
|
-
|
|
93513
|
+
const { isCI: isCI3 } = createEnv();
|
|
93514
|
+
const occuredAt = /* @__PURE__ */ new Date();
|
|
93515
|
+
renderErrorSync(
|
|
93516
|
+
/* @__PURE__ */ import_react85.default.createElement(import_react85.default.Fragment, null, /* @__PURE__ */ import_react85.default.createElement(ErrorViewer, { error }), isCI3 && /* @__PURE__ */ import_react85.default.createElement(RawErrorViewer, { error, occurredAt: occuredAt }))
|
|
93517
|
+
);
|
|
93518
|
+
writeCrashReport(debugOutputPath, error, occuredAt);
|
|
93429
93519
|
process22.exitCode = 1;
|
|
93430
93520
|
collectUserFeedback({
|
|
93431
93521
|
reportResult,
|
|
93432
93522
|
errorReporter: errorReporter2,
|
|
93433
93523
|
cachePath: userFeedbackCachePath
|
|
93434
93524
|
}).catch((e2) => {
|
|
93435
|
-
writeCrashReport(debugOutputPath, e2);
|
|
93525
|
+
writeCrashReport(debugOutputPath, e2, /* @__PURE__ */ new Date());
|
|
93436
93526
|
});
|
|
93437
93527
|
};
|
|
93438
93528
|
const registerToProcessErrors2 = function() {
|
|
@@ -93464,11 +93554,11 @@ function createErrorHandler({
|
|
|
93464
93554
|
|
|
93465
93555
|
// ../cli-error-reporting/src/error-reporter-context.tsx
|
|
93466
93556
|
init_esm_shims();
|
|
93467
|
-
var
|
|
93468
|
-
var ErrorReporterContext = (0,
|
|
93469
|
-
var ErrorReporterProvider = (props) => /* @__PURE__ */
|
|
93557
|
+
var import_react86 = __toESM(require_react(), 1);
|
|
93558
|
+
var ErrorReporterContext = (0, import_react86.createContext)(null);
|
|
93559
|
+
var ErrorReporterProvider = (props) => /* @__PURE__ */ import_react86.default.createElement(ErrorReporterContext.Provider, { ...props });
|
|
93470
93560
|
var useErrorReporter = () => {
|
|
93471
|
-
const context2 = (0,
|
|
93561
|
+
const context2 = (0, import_react86.useContext)(ErrorReporterContext);
|
|
93472
93562
|
if (context2 == null) {
|
|
93473
93563
|
throw new Error(
|
|
93474
93564
|
"useErrorReporter() cannot be used without an <ErrorReporterProvider>"
|
|
@@ -93479,9 +93569,9 @@ var useErrorReporter = () => {
|
|
|
93479
93569
|
|
|
93480
93570
|
// ../cli-auth/src/useColoredVerificationUri.ts
|
|
93481
93571
|
init_esm_shims();
|
|
93482
|
-
var
|
|
93572
|
+
var import_react87 = __toESM(require_react(), 1);
|
|
93483
93573
|
function useColoredVerificationUri(verificationUri) {
|
|
93484
|
-
return (0,
|
|
93574
|
+
return (0, import_react87.useMemo)(() => {
|
|
93485
93575
|
const coloredUri = new URL(verificationUri);
|
|
93486
93576
|
coloredUri.searchParams.set("color", "developer");
|
|
93487
93577
|
coloredUri.searchParams.set("studio", "true");
|
|
@@ -93498,7 +93588,7 @@ function useColoredVerificationUri(verificationUri) {
|
|
|
93498
93588
|
var LoginInstructions = ({ userCode, verificationUri }) => {
|
|
93499
93589
|
const { coloredVerificationUri, signupUri } = useColoredVerificationUri(verificationUri);
|
|
93500
93590
|
const { reportError: reportError2 } = useErrorReporter();
|
|
93501
|
-
const [openBrowserError, setOpenBrowserError] = (0,
|
|
93591
|
+
const [openBrowserError, setOpenBrowserError] = (0, import_react88.useState)(null);
|
|
93502
93592
|
use_input_default((input, key) => {
|
|
93503
93593
|
if (key.return) {
|
|
93504
93594
|
openBrowser(coloredVerificationUri).catch((error) => {
|
|
@@ -93513,33 +93603,33 @@ var LoginInstructions = ({ userCode, verificationUri }) => {
|
|
|
93513
93603
|
});
|
|
93514
93604
|
}
|
|
93515
93605
|
});
|
|
93516
|
-
return /* @__PURE__ */
|
|
93606
|
+
return /* @__PURE__ */ import_react88.default.createElement(import_react88.default.Fragment, null, /* @__PURE__ */ import_react88.default.createElement(Trans2, { i18nKey: "login.instructions_title" }), /* @__PURE__ */ import_react88.default.createElement(Box_default, { flexDirection: "column", marginTop: 1, marginBottom: 1, marginLeft: 2 }, /* @__PURE__ */ import_react88.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react88.default.createElement(
|
|
93517
93607
|
Trans2,
|
|
93518
93608
|
{
|
|
93519
93609
|
i18nKey: "login.instructions_details",
|
|
93520
|
-
components: [/* @__PURE__ */
|
|
93610
|
+
components: [/* @__PURE__ */ import_react88.default.createElement(Text2, { skin: "info" })],
|
|
93521
93611
|
values: { code: userCode }
|
|
93522
93612
|
}
|
|
93523
|
-
)), /* @__PURE__ */
|
|
93613
|
+
)), /* @__PURE__ */ import_react88.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react88.default.createElement(
|
|
93524
93614
|
Trans2,
|
|
93525
93615
|
{
|
|
93526
93616
|
i18nKey: "login.have_wix_account",
|
|
93527
93617
|
components: [
|
|
93528
|
-
/* @__PURE__ */
|
|
93529
|
-
/* @__PURE__ */
|
|
93618
|
+
/* @__PURE__ */ import_react88.default.createElement(Key, { value: "enter" }),
|
|
93619
|
+
/* @__PURE__ */ import_react88.default.createElement(Link, { url: coloredVerificationUri })
|
|
93530
93620
|
]
|
|
93531
93621
|
}
|
|
93532
|
-
)), /* @__PURE__ */
|
|
93622
|
+
)), /* @__PURE__ */ import_react88.default.createElement(
|
|
93533
93623
|
Trans2,
|
|
93534
93624
|
{
|
|
93535
93625
|
i18nKey: "login.new_to_wix",
|
|
93536
|
-
components: [/* @__PURE__ */
|
|
93626
|
+
components: [/* @__PURE__ */ import_react88.default.createElement(Key, { value: "space" }), /* @__PURE__ */ import_react88.default.createElement(Link, { url: signupUri })]
|
|
93537
93627
|
}
|
|
93538
|
-
)), openBrowserError != null && /* @__PURE__ */
|
|
93628
|
+
)), openBrowserError != null && /* @__PURE__ */ import_react88.default.createElement(import_react88.default.Fragment, null, /* @__PURE__ */ import_react88.default.createElement(Box_default, { flexDirection: "column", marginBottom: 1 }, /* @__PURE__ */ import_react88.default.createElement(ErrorViewer, { error: openBrowserError })), /* @__PURE__ */ import_react88.default.createElement(
|
|
93539
93629
|
Trans2,
|
|
93540
93630
|
{
|
|
93541
93631
|
i18nKey: "login.error_opening_browser",
|
|
93542
|
-
components: [/* @__PURE__ */
|
|
93632
|
+
components: [/* @__PURE__ */ import_react88.default.createElement(Link, { url: coloredVerificationUri })]
|
|
93543
93633
|
}
|
|
93544
93634
|
)));
|
|
93545
93635
|
};
|
|
@@ -93594,8 +93684,8 @@ var Login = ({ loginFn, onLogin, onError }) => {
|
|
|
93594
93684
|
);
|
|
93595
93685
|
return (0, import_variant23.match)(status, {
|
|
93596
93686
|
Error: () => null,
|
|
93597
|
-
Loading: () => /* @__PURE__ */
|
|
93598
|
-
Success: ({ result: { userCode, verificationUri } }) => /* @__PURE__ */
|
|
93687
|
+
Loading: () => /* @__PURE__ */ import_react89.default.createElement(Spinner2, null),
|
|
93688
|
+
Success: ({ result: { userCode, verificationUri } }) => /* @__PURE__ */ import_react89.default.createElement(
|
|
93599
93689
|
LoginInstructions,
|
|
93600
93690
|
{
|
|
93601
93691
|
userCode,
|
|
@@ -93607,16 +93697,16 @@ var Login = ({ loginFn, onLogin, onError }) => {
|
|
|
93607
93697
|
|
|
93608
93698
|
// ../cli-auth/src/providers/AccountAuthProvider.tsx
|
|
93609
93699
|
init_esm_shims();
|
|
93610
|
-
var
|
|
93700
|
+
var import_react92 = __toESM(require_react(), 1);
|
|
93611
93701
|
|
|
93612
93702
|
// ../cli-auth/src/components/EnsureLoggedIn.tsx
|
|
93613
93703
|
init_esm_shims();
|
|
93614
|
-
var
|
|
93704
|
+
var import_react91 = __toESM(require_react(), 1);
|
|
93615
93705
|
var import_variant25 = __toESM(require_lib(), 1);
|
|
93616
93706
|
|
|
93617
93707
|
// ../cli-auth/src/components/WarnLegacyAuthData.tsx
|
|
93618
93708
|
init_esm_shims();
|
|
93619
|
-
var
|
|
93709
|
+
var import_react90 = __toESM(require_react(), 1);
|
|
93620
93710
|
var import_variant24 = __toESM(require_lib(), 1);
|
|
93621
93711
|
var WarnLegacyAuthData = ({ children }) => {
|
|
93622
93712
|
const { status } = useAsync2(hasLegacyAuthData, [], { onError: () => {
|
|
@@ -93624,7 +93714,7 @@ var WarnLegacyAuthData = ({ children }) => {
|
|
|
93624
93714
|
return (0, import_variant24.match)(status, {
|
|
93625
93715
|
Error: () => null,
|
|
93626
93716
|
Loading: () => null,
|
|
93627
|
-
Success: ({ result }) => /* @__PURE__ */
|
|
93717
|
+
Success: ({ result }) => /* @__PURE__ */ import_react90.default.createElement(import_react90.default.Fragment, null, result && /* @__PURE__ */ import_react90.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react90.default.createElement(Trans2, { i18nKey: "login.legacy_auth_notice" })), children)
|
|
93628
93718
|
});
|
|
93629
93719
|
};
|
|
93630
93720
|
|
|
@@ -93644,11 +93734,11 @@ var EnsureLoggedIn = ({
|
|
|
93644
93734
|
onError
|
|
93645
93735
|
});
|
|
93646
93736
|
return (0, import_variant25.match)(status, {
|
|
93647
|
-
Loading: () => /* @__PURE__ */
|
|
93737
|
+
Loading: () => /* @__PURE__ */ import_react91.default.createElement(Spinner2, null),
|
|
93648
93738
|
Error: () => null,
|
|
93649
93739
|
Success: ({ result: accountAuth }) => {
|
|
93650
93740
|
if (accountAuth == null) {
|
|
93651
|
-
return /* @__PURE__ */
|
|
93741
|
+
return /* @__PURE__ */ import_react91.default.createElement(I18nProvider, { messages: messages_default }, /* @__PURE__ */ import_react91.default.createElement(WarnLegacyAuthData, null, /* @__PURE__ */ import_react91.default.createElement(
|
|
93652
93742
|
Login,
|
|
93653
93743
|
{
|
|
93654
93744
|
loginFn: login,
|
|
@@ -93672,14 +93762,14 @@ var AccountAuthProvider = ({
|
|
|
93672
93762
|
onLogin
|
|
93673
93763
|
}) => {
|
|
93674
93764
|
const exit = useExit();
|
|
93675
|
-
return /* @__PURE__ */
|
|
93765
|
+
return /* @__PURE__ */ import_react92.default.createElement(
|
|
93676
93766
|
EnsureLoggedIn,
|
|
93677
93767
|
{
|
|
93678
93768
|
authStrategy: accountAuthStrategy,
|
|
93679
93769
|
onLogin: ({ userInfo: userInfo2 }) => onLogin?.(userInfo2),
|
|
93680
93770
|
onError: onError ?? exit
|
|
93681
93771
|
},
|
|
93682
|
-
({ getAccessToken, getRequestHeaders, userInfo: userInfo2 }) => /* @__PURE__ */
|
|
93772
|
+
({ getAccessToken, getRequestHeaders, userInfo: userInfo2 }) => /* @__PURE__ */ import_react92.default.createElement(
|
|
93683
93773
|
AuthContext.Provider,
|
|
93684
93774
|
{
|
|
93685
93775
|
value: { getAccessToken, getRequestHeaders, userInfo: userInfo2 }
|
|
@@ -93691,7 +93781,7 @@ var AccountAuthProvider = ({
|
|
|
93691
93781
|
|
|
93692
93782
|
// ../cli-auth/src/providers/SiteAuthProvider.tsx
|
|
93693
93783
|
init_esm_shims();
|
|
93694
|
-
var
|
|
93784
|
+
var import_react93 = __toESM(require_react(), 1);
|
|
93695
93785
|
var SiteAuthProvider = ({
|
|
93696
93786
|
children,
|
|
93697
93787
|
siteId,
|
|
@@ -93699,15 +93789,15 @@ var SiteAuthProvider = ({
|
|
|
93699
93789
|
onLogin
|
|
93700
93790
|
}) => {
|
|
93701
93791
|
const exit = useExit();
|
|
93702
|
-
const authStrategy = (0,
|
|
93703
|
-
return /* @__PURE__ */
|
|
93792
|
+
const authStrategy = (0, import_react93.useMemo)(() => createSiteAuthStrategy(siteId), [siteId]);
|
|
93793
|
+
return /* @__PURE__ */ import_react93.default.createElement(
|
|
93704
93794
|
EnsureLoggedIn,
|
|
93705
93795
|
{
|
|
93706
93796
|
authStrategy,
|
|
93707
93797
|
onLogin: ({ userInfo: userInfo2 }) => onLogin?.(userInfo2),
|
|
93708
93798
|
onError: onError ?? exit
|
|
93709
93799
|
},
|
|
93710
|
-
({ getAccessToken, getRequestHeaders, userInfo: userInfo2 }) => /* @__PURE__ */
|
|
93800
|
+
({ getAccessToken, getRequestHeaders, userInfo: userInfo2 }) => /* @__PURE__ */ import_react93.default.createElement(
|
|
93711
93801
|
AuthContext.Provider,
|
|
93712
93802
|
{
|
|
93713
93803
|
value: { getAccessToken, getRequestHeaders, userInfo: userInfo2 }
|
|
@@ -93752,32 +93842,32 @@ init_esm_shims();
|
|
|
93752
93842
|
|
|
93753
93843
|
// ../cli-panorama/src/PanoramaContext.tsx
|
|
93754
93844
|
init_esm_shims();
|
|
93755
|
-
var
|
|
93756
|
-
var PanoramaContext = (0,
|
|
93845
|
+
var import_react94 = __toESM(require_react(), 1);
|
|
93846
|
+
var PanoramaContext = (0, import_react94.createContext)(void 0);
|
|
93757
93847
|
var PanoramaProvider = (props) => {
|
|
93758
93848
|
const { value: value2, children } = props;
|
|
93759
|
-
return /* @__PURE__ */
|
|
93849
|
+
return /* @__PURE__ */ import_react94.default.createElement(PanoramaContext.Provider, { value: value2 }, children);
|
|
93760
93850
|
};
|
|
93761
93851
|
|
|
93762
93852
|
// ../cli-panorama/src/usePanoramaMethodLogger.ts
|
|
93763
93853
|
init_esm_shims();
|
|
93764
|
-
var
|
|
93854
|
+
var import_react95 = __toESM(require_react(), 1);
|
|
93765
93855
|
function usePanoramaMethodLogger(target) {
|
|
93766
|
-
const factory = (0,
|
|
93856
|
+
const factory = (0, import_react95.useContext)(PanoramaContext);
|
|
93767
93857
|
if (factory == null) {
|
|
93768
93858
|
throw new Error(
|
|
93769
93859
|
"usePanoramaMethodLogger() cannot be used without a <PanoramaProvider />"
|
|
93770
93860
|
);
|
|
93771
93861
|
}
|
|
93772
93862
|
const componentId = target.constructor.name;
|
|
93773
|
-
const clientOptions = (0,
|
|
93863
|
+
const clientOptions = (0, import_react95.useMemo)(
|
|
93774
93864
|
() => ({ baseParams: { componentId } }),
|
|
93775
93865
|
[componentId]
|
|
93776
93866
|
);
|
|
93777
|
-
const client2 = (0,
|
|
93867
|
+
const client2 = (0, import_react95.useMemo)(() => {
|
|
93778
93868
|
return factory.client(clientOptions);
|
|
93779
93869
|
}, [factory, clientOptions]);
|
|
93780
|
-
return (0,
|
|
93870
|
+
return (0, import_react95.useMemo)(() => {
|
|
93781
93871
|
const cache3 = /* @__PURE__ */ new Map();
|
|
93782
93872
|
return new Proxy(target, {
|
|
93783
93873
|
get(target2, prop, receiver) {
|
|
@@ -94781,9 +94871,9 @@ init_esm_shims();
|
|
|
94781
94871
|
import { join as join6 } from "node:path";
|
|
94782
94872
|
var WIX_CONFIG_FILENAME = "wix.config.json";
|
|
94783
94873
|
var USER_CONFIG_FILENAME = "user.config.json";
|
|
94784
|
-
var userConfigSchema =
|
|
94785
|
-
telemetry:
|
|
94786
|
-
tunneling:
|
|
94874
|
+
var userConfigSchema = external_exports.object({
|
|
94875
|
+
telemetry: external_exports.boolean().default(true),
|
|
94876
|
+
tunneling: external_exports.boolean().default(false)
|
|
94787
94877
|
});
|
|
94788
94878
|
function getWixConfigFilePath(projectFolder) {
|
|
94789
94879
|
return join6(projectFolder, WIX_CONFIG_FILENAME);
|
|
@@ -95045,14 +95135,14 @@ function wixCliCliError(params) {
|
|
|
95045
95135
|
var package_default = {
|
|
95046
95136
|
name: "@wix/create-headless-site",
|
|
95047
95137
|
description: "Headless site creation wizard",
|
|
95048
|
-
version: "0.0.
|
|
95138
|
+
version: "0.0.21",
|
|
95049
95139
|
bin: "bin/index.cjs",
|
|
95050
95140
|
devDependencies: {
|
|
95051
95141
|
"@commander-js/extra-typings": "^13.0.0",
|
|
95052
95142
|
"@types/react": "^18.3.3",
|
|
95053
95143
|
"@types/semver": "^7.5.8",
|
|
95054
95144
|
"@types/validate-npm-package-name": "^4.0.2",
|
|
95055
|
-
"@wix/ambassador-funnel-projects-v1-project": "^1.0.
|
|
95145
|
+
"@wix/ambassador-funnel-projects-v1-project": "^1.0.15",
|
|
95056
95146
|
"@wix/backend-as-a-service-client": "workspace:*",
|
|
95057
95147
|
"@wix/bi-logger-dev-tools-data": "^1.116.0",
|
|
95058
95148
|
"@wix/cli-astro-definitions": "workspace:*",
|
|
@@ -95164,7 +95254,7 @@ var createBiLogger2 = async (errorReporter2, userId) => {
|
|
|
95164
95254
|
|
|
95165
95255
|
// src/components/LinkCommand/LinkCommand.tsx
|
|
95166
95256
|
init_esm_shims();
|
|
95167
|
-
var
|
|
95257
|
+
var import_react110 = __toESM(require_react(), 1);
|
|
95168
95258
|
|
|
95169
95259
|
// ../package-manager/src/index.ts
|
|
95170
95260
|
init_esm_shims();
|
|
@@ -97046,9 +97136,9 @@ var Yarn = class {
|
|
|
97046
97136
|
}
|
|
97047
97137
|
};
|
|
97048
97138
|
async function getPackagesRelativePaths(rootDir, yarnVersion) {
|
|
97049
|
-
const workspacesSchema =
|
|
97050
|
-
|
|
97051
|
-
location:
|
|
97139
|
+
const workspacesSchema = external_exports.array(
|
|
97140
|
+
external_exports.object({
|
|
97141
|
+
location: external_exports.string()
|
|
97052
97142
|
})
|
|
97053
97143
|
);
|
|
97054
97144
|
if (yarnVersion === "yarn-berry") {
|
|
@@ -97680,18 +97770,18 @@ var import_variant35 = __toESM(require_lib(), 1);
|
|
|
97680
97770
|
|
|
97681
97771
|
// src/components/WelcomeMessage.tsx
|
|
97682
97772
|
init_esm_shims();
|
|
97683
|
-
var
|
|
97773
|
+
var import_react96 = __toESM(require_react(), 1);
|
|
97684
97774
|
var WelcomeMessage = () => {
|
|
97685
|
-
return /* @__PURE__ */
|
|
97775
|
+
return /* @__PURE__ */ import_react96.default.createElement(Box_default, { flexDirection: "column", marginBottom: 1, paddingTop: 1 }, /* @__PURE__ */ import_react96.default.createElement(Text2, { bold: true }, "Create Headless Site"));
|
|
97686
97776
|
};
|
|
97687
97777
|
|
|
97688
97778
|
// src/components/ChooseBusinessName.tsx
|
|
97689
97779
|
init_esm_shims();
|
|
97690
|
-
var
|
|
97780
|
+
var import_react97 = __toESM(require_react(), 1);
|
|
97691
97781
|
|
|
97692
97782
|
// src/validations/validate-business-name.ts
|
|
97693
97783
|
init_esm_shims();
|
|
97694
|
-
var schema =
|
|
97784
|
+
var schema = external_exports.string().min(1).max(255);
|
|
97695
97785
|
var validateBusinessName = (value2) => {
|
|
97696
97786
|
const result = schema.safeParse(value2);
|
|
97697
97787
|
if (!result.success) {
|
|
@@ -97702,7 +97792,7 @@ var validateBusinessName = (value2) => {
|
|
|
97702
97792
|
|
|
97703
97793
|
// src/components/ChooseBusinessName.tsx
|
|
97704
97794
|
var ChooseBusinessName = ({ onSubmit }) => {
|
|
97705
|
-
const validate3 = (0,
|
|
97795
|
+
const validate3 = (0, import_react97.useCallback)((businessName) => {
|
|
97706
97796
|
try {
|
|
97707
97797
|
validateBusinessName(businessName);
|
|
97708
97798
|
return true;
|
|
@@ -97710,7 +97800,7 @@ var ChooseBusinessName = ({ onSubmit }) => {
|
|
|
97710
97800
|
return e2.message;
|
|
97711
97801
|
}
|
|
97712
97802
|
}, []);
|
|
97713
|
-
return /* @__PURE__ */
|
|
97803
|
+
return /* @__PURE__ */ import_react97.default.createElement(
|
|
97714
97804
|
TextInput2,
|
|
97715
97805
|
{
|
|
97716
97806
|
label: "What's the name of your business?",
|
|
@@ -97723,32 +97813,32 @@ var ChooseBusinessName = ({ onSubmit }) => {
|
|
|
97723
97813
|
|
|
97724
97814
|
// src/components/CreateBusiness.tsx
|
|
97725
97815
|
init_esm_shims();
|
|
97726
|
-
var
|
|
97816
|
+
var import_react101 = __toESM(require_react(), 1);
|
|
97727
97817
|
var import_variant30 = __toESM(require_lib(), 1);
|
|
97728
97818
|
|
|
97729
97819
|
// src/clients/funnel-projects/useFunnelProjectsClient.ts
|
|
97730
97820
|
init_esm_shims();
|
|
97731
|
-
var
|
|
97821
|
+
var import_react100 = __toESM(require_react(), 1);
|
|
97732
97822
|
|
|
97733
97823
|
// ../cli-http-client-react/src/index.ts
|
|
97734
97824
|
init_esm_shims();
|
|
97735
97825
|
|
|
97736
97826
|
// ../cli-http-client-react/src/useHttpClient.ts
|
|
97737
97827
|
init_esm_shims();
|
|
97738
|
-
var
|
|
97828
|
+
var import_react99 = __toESM(require_react(), 1);
|
|
97739
97829
|
|
|
97740
97830
|
// ../cli-http-client-react/src/httpClientProvider.tsx
|
|
97741
97831
|
init_esm_shims();
|
|
97742
|
-
var
|
|
97743
|
-
var HttpClientContext = (0,
|
|
97832
|
+
var import_react98 = __toESM(require_react(), 1);
|
|
97833
|
+
var HttpClientContext = (0, import_react98.createContext)(null);
|
|
97744
97834
|
|
|
97745
97835
|
// ../cli-http-client-react/src/useHttpClient.ts
|
|
97746
97836
|
function useHttpClient({
|
|
97747
97837
|
type
|
|
97748
97838
|
}) {
|
|
97749
|
-
const context2 = (0,
|
|
97839
|
+
const context2 = (0, import_react99.useContext)(HttpClientContext);
|
|
97750
97840
|
const { getAccessToken: getAppToken, getRequestHeaders: createAuthHeaders } = useAuth();
|
|
97751
|
-
return (0,
|
|
97841
|
+
return (0, import_react99.useMemo)(
|
|
97752
97842
|
() => createHttpClient({
|
|
97753
97843
|
type,
|
|
97754
97844
|
getAppToken,
|
|
@@ -97801,6 +97891,9 @@ function createProject(payload5) {
|
|
|
97801
97891
|
entityFqdn: "wix.funnel_projects.v1.project",
|
|
97802
97892
|
method: "POST",
|
|
97803
97893
|
methodFqn: "wix.api.funnel.project.ProjectsService.CreateProject",
|
|
97894
|
+
migrationOptions: {
|
|
97895
|
+
optInTransformResponse: true
|
|
97896
|
+
},
|
|
97804
97897
|
url: resolveWixApiFunnelProjectProjectsServiceUrl({
|
|
97805
97898
|
protoPath: "/v1/create",
|
|
97806
97899
|
data: serializedData,
|
|
@@ -97829,9 +97922,9 @@ var Type;
|
|
|
97829
97922
|
|
|
97830
97923
|
// src/clients/funnel-projects/schemas.ts
|
|
97831
97924
|
init_esm_shims();
|
|
97832
|
-
var CreateProjectResponseSchema =
|
|
97833
|
-
project:
|
|
97834
|
-
metaSiteId:
|
|
97925
|
+
var CreateProjectResponseSchema = external_exports.object({
|
|
97926
|
+
project: external_exports.object({
|
|
97927
|
+
metaSiteId: external_exports.string()
|
|
97835
97928
|
})
|
|
97836
97929
|
});
|
|
97837
97930
|
|
|
@@ -97869,7 +97962,7 @@ var FunnelProjectsClient = class {
|
|
|
97869
97962
|
// src/clients/funnel-projects/useFunnelProjectsClient.ts
|
|
97870
97963
|
function useFunnelProjectsClient() {
|
|
97871
97964
|
const httpClient = useHttpClient({ type: "api" });
|
|
97872
|
-
const client2 = (0,
|
|
97965
|
+
const client2 = (0, import_react100.useMemo)(
|
|
97873
97966
|
() => new FunnelProjectsClient(httpClient),
|
|
97874
97967
|
[httpClient]
|
|
97875
97968
|
);
|
|
@@ -97883,17 +97976,17 @@ var CreateBusiness = ({ businessName, businessTemplateId, onDone }) => {
|
|
|
97883
97976
|
const { project } = await createProject2(businessName, businessTemplateId);
|
|
97884
97977
|
onDone({ businessId: project.metaSiteId });
|
|
97885
97978
|
}, []);
|
|
97886
|
-
return /* @__PURE__ */
|
|
97979
|
+
return /* @__PURE__ */ import_react101.default.createElement(import_react101.default.Fragment, null, (0, import_variant30.match)(status, {
|
|
97887
97980
|
Error: () => null,
|
|
97888
|
-
Loading: () => /* @__PURE__ */
|
|
97889
|
-
Success: () => /* @__PURE__ */
|
|
97981
|
+
Loading: () => /* @__PURE__ */ import_react101.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react101.default.createElement(Spinner2, { text: "Creating your business..." })),
|
|
97982
|
+
Success: () => /* @__PURE__ */ import_react101.default.createElement(Box_default, { marginLeft: -2, marginBottom: 1 }, /* @__PURE__ */ import_react101.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react101.default.createElement(Badge, { skin: "success" }, "Success"), " ", /* @__PURE__ */ import_react101.default.createElement(Text2, null, "Business created successfully"))),
|
|
97890
97983
|
NotRequested: () => null
|
|
97891
97984
|
}));
|
|
97892
97985
|
};
|
|
97893
97986
|
|
|
97894
97987
|
// src/components/CreateProject.tsx
|
|
97895
97988
|
init_esm_shims();
|
|
97896
|
-
var
|
|
97989
|
+
var import_react105 = __toESM(require_react(), 1);
|
|
97897
97990
|
var import_variant31 = __toESM(require_lib(), 1);
|
|
97898
97991
|
|
|
97899
97992
|
// src/validations/validate-project-name.ts
|
|
@@ -98516,6 +98609,9 @@ function getAppByVersion(payload5) {
|
|
|
98516
98609
|
entityFqdn: "wix.devcenter.apps.v1.app_old",
|
|
98517
98610
|
method: "GET",
|
|
98518
98611
|
methodFqn: "com.wixpress.appservice.api.Apps.GetAppByVersion",
|
|
98612
|
+
migrationOptions: {
|
|
98613
|
+
optInTransformResponse: true
|
|
98614
|
+
},
|
|
98519
98615
|
url: resolveComWixpressAppserviceApiAppsUrl({
|
|
98520
98616
|
protoPath: "/v1/apps/{appId}/version/{version}",
|
|
98521
98617
|
data: serializedData,
|
|
@@ -98852,6 +98948,9 @@ function queryMyApps(payload5) {
|
|
|
98852
98948
|
entityFqdn: "wix.devcenter.myapps.v1.my_app",
|
|
98853
98949
|
method: "POST",
|
|
98854
98950
|
methodFqn: "wix.devcenter.myapps.v1.MyAppsService.QueryMyApps",
|
|
98951
|
+
migrationOptions: {
|
|
98952
|
+
optInTransformResponse: true
|
|
98953
|
+
},
|
|
98855
98954
|
url: resolveWixDevcenterMyappsV1MyAppsServiceUrl({
|
|
98856
98955
|
protoPath: "/v1/my-apps/query",
|
|
98857
98956
|
data: serializedData,
|
|
@@ -99217,6 +99316,9 @@ function createAppFromTemplate(payload5) {
|
|
|
99217
99316
|
entityFqdn: "wix.devcenter.apps.v1.app_template",
|
|
99218
99317
|
method: "POST",
|
|
99219
99318
|
methodFqn: "wix.devcenter.apps.templates.v1.AppTemplatesService.CreateAppFromTemplate",
|
|
99319
|
+
migrationOptions: {
|
|
99320
|
+
optInTransformResponse: true
|
|
99321
|
+
},
|
|
99220
99322
|
url: resolveWixDevcenterAppsTemplatesV1AppTemplatesServiceUrl({
|
|
99221
99323
|
protoPath: "/v1/create-app-from-template",
|
|
99222
99324
|
data: serializedData,
|
|
@@ -99241,6 +99343,9 @@ function createBlocksAppFromTemplate(payload5) {
|
|
|
99241
99343
|
entityFqdn: "wix.devcenter.apps.v1.app_template",
|
|
99242
99344
|
method: "POST",
|
|
99243
99345
|
methodFqn: "wix.devcenter.apps.templates.v1.AppTemplatesService.CreateBlocksAppFromTemplate",
|
|
99346
|
+
migrationOptions: {
|
|
99347
|
+
optInTransformResponse: true
|
|
99348
|
+
},
|
|
99244
99349
|
url: resolveWixDevcenterAppsTemplatesV1AppTemplatesServiceUrl({
|
|
99245
99350
|
protoPath: "/v1/create-blocks-app-from-template",
|
|
99246
99351
|
data: serializedData,
|
|
@@ -99265,6 +99370,9 @@ function listAppTemplates(payload5) {
|
|
|
99265
99370
|
entityFqdn: "wix.devcenter.apps.v1.app_template",
|
|
99266
99371
|
method: "GET",
|
|
99267
99372
|
methodFqn: "wix.devcenter.apps.templates.v1.AppTemplatesService.ListAppTemplates",
|
|
99373
|
+
migrationOptions: {
|
|
99374
|
+
optInTransformResponse: true
|
|
99375
|
+
},
|
|
99268
99376
|
url: resolveWixDevcenterAppsTemplatesV1AppTemplatesServiceUrl({
|
|
99269
99377
|
protoPath: "/v1/app-templates",
|
|
99270
99378
|
data: serializedData,
|
|
@@ -99831,6 +99939,9 @@ function managedApps(payload5) {
|
|
|
99831
99939
|
entityFqdn: "wix.devcenter.managedapps.v1.managed_app",
|
|
99832
99940
|
method: "GET",
|
|
99833
99941
|
methodFqn: "com.wixpress.devcenter.managedapps.ManagedApps.ManagedApps",
|
|
99942
|
+
migrationOptions: {
|
|
99943
|
+
optInTransformResponse: true
|
|
99944
|
+
},
|
|
99834
99945
|
url: resolveComWixpressDevcenterManagedappsManagedAppsUrl({
|
|
99835
99946
|
protoPath: "/v1/managed-apps",
|
|
99836
99947
|
data: serializedData,
|
|
@@ -100091,6 +100202,8 @@ var ComponentType;
|
|
|
100091
100202
|
ComponentType3["BOOKING_AUTOMATIONS_CONFIGURATION"] = "BOOKING_AUTOMATIONS_CONFIGURATION";
|
|
100092
100203
|
ComponentType3["WIX_VIBE_COMPONENT"] = "WIX_VIBE_COMPONENT";
|
|
100093
100204
|
ComponentType3["WIXEL"] = "WIXEL";
|
|
100205
|
+
ComponentType3["STAFF_SORTING_PROVIDER"] = "STAFF_SORTING_PROVIDER";
|
|
100206
|
+
ComponentType3["FUNCTION_ECOM_DISCOUNT_TRIGGER_ELIGIBILITY_PROVIDER"] = "FUNCTION_ECOM_DISCOUNT_TRIGGER_ELIGIBILITY_PROVIDER";
|
|
100094
100207
|
})(ComponentType || (ComponentType = {}));
|
|
100095
100208
|
var WidgetVertical;
|
|
100096
100209
|
(function(WidgetVertical3) {
|
|
@@ -100398,6 +100511,7 @@ var BackOfficeHostingPlatforms;
|
|
|
100398
100511
|
BackOfficeHostingPlatforms3["PICASSO_EDITOR"] = "PICASSO_EDITOR";
|
|
100399
100512
|
BackOfficeHostingPlatforms3["BASE44_DASHBOARD_POC"] = "BASE44_DASHBOARD_POC";
|
|
100400
100513
|
BackOfficeHostingPlatforms3["WIXEL_EDITOR"] = "WIXEL_EDITOR";
|
|
100514
|
+
BackOfficeHostingPlatforms3["BASE44_PLATFORM"] = "BASE44_PLATFORM";
|
|
100401
100515
|
})(BackOfficeHostingPlatforms || (BackOfficeHostingPlatforms = {}));
|
|
100402
100516
|
var DtsDefinitionType;
|
|
100403
100517
|
(function(DtsDefinitionType3) {
|
|
@@ -101714,6 +101828,8 @@ var StyleType;
|
|
|
101714
101828
|
StyleType3["boxShadow"] = "boxShadow";
|
|
101715
101829
|
StyleType3["opacity"] = "opacity";
|
|
101716
101830
|
StyleType3["overflow"] = "overflow";
|
|
101831
|
+
StyleType3["overflowX"] = "overflowX";
|
|
101832
|
+
StyleType3["overflowY"] = "overflowY";
|
|
101717
101833
|
StyleType3["display"] = "display";
|
|
101718
101834
|
StyleType3["alignSelf"] = "alignSelf";
|
|
101719
101835
|
StyleType3["justifyContent"] = "justifyContent";
|
|
@@ -101796,6 +101912,7 @@ var VectorArtCategoryTypes;
|
|
|
101796
101912
|
VectorArtCategoryTypes3["SHAPE_ART"] = "SHAPE_ART";
|
|
101797
101913
|
VectorArtCategoryTypes3["ICON_SOCIAL"] = "ICON_SOCIAL";
|
|
101798
101914
|
VectorArtCategoryTypes3["SHAPE_DIVIDERS"] = "SHAPE_DIVIDERS";
|
|
101915
|
+
VectorArtCategoryTypes3["SHAPE_LOCATION"] = "SHAPE_LOCATION";
|
|
101799
101916
|
})(VectorArtCategoryTypes || (VectorArtCategoryTypes = {}));
|
|
101800
101917
|
var CssDataTypeEnumCssDataType;
|
|
101801
101918
|
(function(CssDataTypeEnumCssDataType3) {
|
|
@@ -102046,6 +102163,10 @@ var GroupType;
|
|
|
102046
102163
|
GroupType3["cssDataType"] = "cssDataType";
|
|
102047
102164
|
GroupType3["dataType"] = "dataType";
|
|
102048
102165
|
GroupType3["preset"] = "preset";
|
|
102166
|
+
GroupType3["data"] = "data";
|
|
102167
|
+
GroupType3["presets"] = "presets";
|
|
102168
|
+
GroupType3["cssCustomProperties"] = "cssCustomProperties";
|
|
102169
|
+
GroupType3["displayGroups"] = "displayGroups";
|
|
102049
102170
|
GroupType3["background"] = "background";
|
|
102050
102171
|
GroupType3["margin"] = "margin";
|
|
102051
102172
|
GroupType3["padding"] = "padding";
|
|
@@ -102060,6 +102181,7 @@ var GroupType;
|
|
|
102060
102181
|
GroupType3["font"] = "font";
|
|
102061
102182
|
GroupType3["textDecoration"] = "textDecoration";
|
|
102062
102183
|
GroupType3["gap"] = "gap";
|
|
102184
|
+
GroupType3["text"] = "text";
|
|
102063
102185
|
GroupType3["arrayItems"] = "arrayItems";
|
|
102064
102186
|
GroupType3["arrayItem"] = "arrayItem";
|
|
102065
102187
|
GroupType3["listItem"] = "listItem";
|
|
@@ -102383,6 +102505,9 @@ function createAppPermission(payload5) {
|
|
|
102383
102505
|
entityFqdn: "wix.devcenter.apps.v1.app_permission",
|
|
102384
102506
|
method: "POST",
|
|
102385
102507
|
methodFqn: "wix.devcenter.apps.permissions.v1.AppPermissionsService.CreateAppPermission",
|
|
102508
|
+
migrationOptions: {
|
|
102509
|
+
optInTransformResponse: true
|
|
102510
|
+
},
|
|
102386
102511
|
url: resolveWixDevcenterAppsPermissionsV1AppPermissionsServiceUrl({
|
|
102387
102512
|
protoPath: "/v1/app-permissions",
|
|
102388
102513
|
data: serializedData,
|
|
@@ -102734,6 +102859,8 @@ var ComponentType2;
|
|
|
102734
102859
|
ComponentType3["BOOKING_AUTOMATIONS_CONFIGURATION"] = "BOOKING_AUTOMATIONS_CONFIGURATION";
|
|
102735
102860
|
ComponentType3["WIX_VIBE_COMPONENT"] = "WIX_VIBE_COMPONENT";
|
|
102736
102861
|
ComponentType3["WIXEL"] = "WIXEL";
|
|
102862
|
+
ComponentType3["STAFF_SORTING_PROVIDER"] = "STAFF_SORTING_PROVIDER";
|
|
102863
|
+
ComponentType3["FUNCTION_ECOM_DISCOUNT_TRIGGER_ELIGIBILITY_PROVIDER"] = "FUNCTION_ECOM_DISCOUNT_TRIGGER_ELIGIBILITY_PROVIDER";
|
|
102737
102864
|
})(ComponentType2 || (ComponentType2 = {}));
|
|
102738
102865
|
var WidgetVertical2;
|
|
102739
102866
|
(function(WidgetVertical3) {
|
|
@@ -103041,6 +103168,7 @@ var BackOfficeHostingPlatforms2;
|
|
|
103041
103168
|
BackOfficeHostingPlatforms3["PICASSO_EDITOR"] = "PICASSO_EDITOR";
|
|
103042
103169
|
BackOfficeHostingPlatforms3["BASE44_DASHBOARD_POC"] = "BASE44_DASHBOARD_POC";
|
|
103043
103170
|
BackOfficeHostingPlatforms3["WIXEL_EDITOR"] = "WIXEL_EDITOR";
|
|
103171
|
+
BackOfficeHostingPlatforms3["BASE44_PLATFORM"] = "BASE44_PLATFORM";
|
|
103044
103172
|
})(BackOfficeHostingPlatforms2 || (BackOfficeHostingPlatforms2 = {}));
|
|
103045
103173
|
var DtsDefinitionType2;
|
|
103046
103174
|
(function(DtsDefinitionType3) {
|
|
@@ -104357,6 +104485,8 @@ var StyleType2;
|
|
|
104357
104485
|
StyleType3["boxShadow"] = "boxShadow";
|
|
104358
104486
|
StyleType3["opacity"] = "opacity";
|
|
104359
104487
|
StyleType3["overflow"] = "overflow";
|
|
104488
|
+
StyleType3["overflowX"] = "overflowX";
|
|
104489
|
+
StyleType3["overflowY"] = "overflowY";
|
|
104360
104490
|
StyleType3["display"] = "display";
|
|
104361
104491
|
StyleType3["alignSelf"] = "alignSelf";
|
|
104362
104492
|
StyleType3["justifyContent"] = "justifyContent";
|
|
@@ -104439,6 +104569,7 @@ var VectorArtCategoryTypes2;
|
|
|
104439
104569
|
VectorArtCategoryTypes3["SHAPE_ART"] = "SHAPE_ART";
|
|
104440
104570
|
VectorArtCategoryTypes3["ICON_SOCIAL"] = "ICON_SOCIAL";
|
|
104441
104571
|
VectorArtCategoryTypes3["SHAPE_DIVIDERS"] = "SHAPE_DIVIDERS";
|
|
104572
|
+
VectorArtCategoryTypes3["SHAPE_LOCATION"] = "SHAPE_LOCATION";
|
|
104442
104573
|
})(VectorArtCategoryTypes2 || (VectorArtCategoryTypes2 = {}));
|
|
104443
104574
|
var CssDataTypeEnumCssDataType2;
|
|
104444
104575
|
(function(CssDataTypeEnumCssDataType3) {
|
|
@@ -104689,6 +104820,10 @@ var GroupType2;
|
|
|
104689
104820
|
GroupType3["cssDataType"] = "cssDataType";
|
|
104690
104821
|
GroupType3["dataType"] = "dataType";
|
|
104691
104822
|
GroupType3["preset"] = "preset";
|
|
104823
|
+
GroupType3["data"] = "data";
|
|
104824
|
+
GroupType3["presets"] = "presets";
|
|
104825
|
+
GroupType3["cssCustomProperties"] = "cssCustomProperties";
|
|
104826
|
+
GroupType3["displayGroups"] = "displayGroups";
|
|
104692
104827
|
GroupType3["background"] = "background";
|
|
104693
104828
|
GroupType3["margin"] = "margin";
|
|
104694
104829
|
GroupType3["padding"] = "padding";
|
|
@@ -104703,6 +104838,7 @@ var GroupType2;
|
|
|
104703
104838
|
GroupType3["font"] = "font";
|
|
104704
104839
|
GroupType3["textDecoration"] = "textDecoration";
|
|
104705
104840
|
GroupType3["gap"] = "gap";
|
|
104841
|
+
GroupType3["text"] = "text";
|
|
104706
104842
|
GroupType3["arrayItems"] = "arrayItems";
|
|
104707
104843
|
GroupType3["arrayItem"] = "arrayItem";
|
|
104708
104844
|
GroupType3["listItem"] = "listItem";
|
|
@@ -105070,138 +105206,138 @@ var OpenButtonAction;
|
|
|
105070
105206
|
})(OpenButtonAction || (OpenButtonAction = {}));
|
|
105071
105207
|
|
|
105072
105208
|
// ../dev-center-client/src/schemas.ts
|
|
105073
|
-
var createAppSchema =
|
|
105074
|
-
app:
|
|
105075
|
-
id:
|
|
105209
|
+
var createAppSchema = external_exports.object({
|
|
105210
|
+
app: external_exports.object({
|
|
105211
|
+
id: external_exports.string()
|
|
105076
105212
|
})
|
|
105077
105213
|
});
|
|
105078
|
-
var createOAuthAppSchema =
|
|
105079
|
-
oAuthApp:
|
|
105080
|
-
id:
|
|
105214
|
+
var createOAuthAppSchema = external_exports.object({
|
|
105215
|
+
oAuthApp: external_exports.object({
|
|
105216
|
+
id: external_exports.string()
|
|
105081
105217
|
})
|
|
105082
105218
|
});
|
|
105083
|
-
var topologySchema =
|
|
105084
|
-
compId:
|
|
105085
|
-
compName:
|
|
105086
|
-
compType:
|
|
105087
|
-
compData:
|
|
105088
|
-
topology:
|
|
105089
|
-
topology:
|
|
105090
|
-
backendApiUrl:
|
|
105219
|
+
var topologySchema = external_exports.object({
|
|
105220
|
+
compId: external_exports.string(),
|
|
105221
|
+
compName: external_exports.string(),
|
|
105222
|
+
compType: external_exports.literal(ComponentType2.TOPOLOGY),
|
|
105223
|
+
compData: external_exports.object({
|
|
105224
|
+
topology: external_exports.object({
|
|
105225
|
+
topology: external_exports.object({
|
|
105226
|
+
backendApiUrl: external_exports.string().min(1)
|
|
105091
105227
|
})
|
|
105092
105228
|
})
|
|
105093
105229
|
})
|
|
105094
105230
|
}).passthrough();
|
|
105095
|
-
var componentsSchema =
|
|
105096
|
-
|
|
105231
|
+
var componentsSchema = external_exports.array(
|
|
105232
|
+
external_exports.discriminatedUnion("compType", [
|
|
105097
105233
|
topologySchema,
|
|
105098
105234
|
...Object.values(ComponentType2).filter((type) => type !== ComponentType2.TOPOLOGY).map((type) => {
|
|
105099
|
-
return
|
|
105100
|
-
compId:
|
|
105101
|
-
compName:
|
|
105102
|
-
compData:
|
|
105103
|
-
compType:
|
|
105235
|
+
return external_exports.object({
|
|
105236
|
+
compId: external_exports.string(),
|
|
105237
|
+
compName: external_exports.string().optional(),
|
|
105238
|
+
compData: external_exports.unknown(),
|
|
105239
|
+
compType: external_exports.literal(type)
|
|
105104
105240
|
}).passthrough();
|
|
105105
105241
|
})
|
|
105106
105242
|
])
|
|
105107
105243
|
);
|
|
105108
|
-
var appByVersionSchema =
|
|
105109
|
-
appId:
|
|
105110
|
-
data:
|
|
105244
|
+
var appByVersionSchema = external_exports.object({
|
|
105245
|
+
appId: external_exports.string(),
|
|
105246
|
+
data: external_exports.object({
|
|
105111
105247
|
components: componentsSchema
|
|
105112
105248
|
})
|
|
105113
105249
|
});
|
|
105114
|
-
var appSecretsSchema =
|
|
105115
|
-
appSecret:
|
|
105116
|
-
webhookPublicKey:
|
|
105250
|
+
var appSecretsSchema = external_exports.object({
|
|
105251
|
+
appSecret: external_exports.string(),
|
|
105252
|
+
webhookPublicKey: external_exports.string()
|
|
105117
105253
|
});
|
|
105118
|
-
var appSchema =
|
|
105119
|
-
app:
|
|
105254
|
+
var appSchema = external_exports.object({
|
|
105255
|
+
app: external_exports.object({
|
|
105120
105256
|
appSecrets: appSecretsSchema
|
|
105121
105257
|
})
|
|
105122
105258
|
});
|
|
105123
|
-
var developmentSiteSchema =
|
|
105124
|
-
id:
|
|
105125
|
-
siteName:
|
|
105259
|
+
var developmentSiteSchema = external_exports.object({
|
|
105260
|
+
id: external_exports.string(),
|
|
105261
|
+
siteName: external_exports.string()
|
|
105126
105262
|
}).transform(({ id, siteName }) => ({
|
|
105127
105263
|
id,
|
|
105128
105264
|
displayName: siteName.replaceAll("-", " "),
|
|
105129
105265
|
viewUrl: ""
|
|
105130
105266
|
}));
|
|
105131
|
-
var createDevelopmentSiteSchema =
|
|
105267
|
+
var createDevelopmentSiteSchema = external_exports.object({
|
|
105132
105268
|
developmentSite: developmentSiteSchema
|
|
105133
105269
|
});
|
|
105134
|
-
var getDevelopmentSitesSchema =
|
|
105135
|
-
developmentSites:
|
|
105270
|
+
var getDevelopmentSitesSchema = external_exports.object({
|
|
105271
|
+
developmentSites: external_exports.array(developmentSiteSchema)
|
|
105136
105272
|
});
|
|
105137
|
-
var getDevelopmentSitesLimitSchema =
|
|
105138
|
-
limit:
|
|
105273
|
+
var getDevelopmentSitesLimitSchema = external_exports.object({
|
|
105274
|
+
limit: external_exports.number()
|
|
105139
105275
|
});
|
|
105140
|
-
var developerAppSchema =
|
|
105141
|
-
id:
|
|
105142
|
-
appData:
|
|
105143
|
-
appName:
|
|
105276
|
+
var developerAppSchema = external_exports.object({
|
|
105277
|
+
id: external_exports.string(),
|
|
105278
|
+
appData: external_exports.object({
|
|
105279
|
+
appName: external_exports.string()
|
|
105144
105280
|
})
|
|
105145
105281
|
});
|
|
105146
|
-
var getDeveloperAppsSchema =
|
|
105147
|
-
myApps:
|
|
105148
|
-
});
|
|
105149
|
-
var requiredApp =
|
|
105150
|
-
var queryAppSchema =
|
|
105151
|
-
apps:
|
|
105152
|
-
});
|
|
105153
|
-
var marketListingSchema =
|
|
105154
|
-
id:
|
|
105155
|
-
appId:
|
|
105156
|
-
revision:
|
|
105157
|
-
languageCode:
|
|
105158
|
-
installationRequirement:
|
|
105159
|
-
requiredApps:
|
|
105160
|
-
|
|
105161
|
-
id:
|
|
105162
|
-
slug:
|
|
105282
|
+
var getDeveloperAppsSchema = external_exports.object({
|
|
105283
|
+
myApps: external_exports.array(developerAppSchema)
|
|
105284
|
+
});
|
|
105285
|
+
var requiredApp = external_exports.object({ id: external_exports.string(), name: external_exports.string() });
|
|
105286
|
+
var queryAppSchema = external_exports.object({
|
|
105287
|
+
apps: external_exports.array(requiredApp)
|
|
105288
|
+
});
|
|
105289
|
+
var marketListingSchema = external_exports.object({
|
|
105290
|
+
id: external_exports.string(),
|
|
105291
|
+
appId: external_exports.string(),
|
|
105292
|
+
revision: external_exports.string(),
|
|
105293
|
+
languageCode: external_exports.string(),
|
|
105294
|
+
installationRequirement: external_exports.object({
|
|
105295
|
+
requiredApps: external_exports.array(
|
|
105296
|
+
external_exports.object({
|
|
105297
|
+
id: external_exports.string(),
|
|
105298
|
+
slug: external_exports.string()
|
|
105163
105299
|
})
|
|
105164
105300
|
)
|
|
105165
105301
|
}).optional()
|
|
105166
105302
|
});
|
|
105167
|
-
var managedAppsSchema =
|
|
105168
|
-
managedApps:
|
|
105169
|
-
|
|
105170
|
-
appId:
|
|
105171
|
-
installationDetails:
|
|
105172
|
-
group:
|
|
105173
|
-
incompleteSetupReason:
|
|
105303
|
+
var managedAppsSchema = external_exports.object({
|
|
105304
|
+
managedApps: external_exports.array(
|
|
105305
|
+
external_exports.object({
|
|
105306
|
+
appId: external_exports.string(),
|
|
105307
|
+
installationDetails: external_exports.object({
|
|
105308
|
+
group: external_exports.nativeEnum(AppGroup),
|
|
105309
|
+
incompleteSetupReason: external_exports.nativeEnum(IncompleteSetupReason)
|
|
105174
105310
|
})
|
|
105175
105311
|
})
|
|
105176
105312
|
)
|
|
105177
105313
|
});
|
|
105178
|
-
var cliCLoneDataSchema =
|
|
105179
|
-
repositoryUrl:
|
|
105180
|
-
pathInRepository:
|
|
105314
|
+
var cliCLoneDataSchema = external_exports.object({
|
|
105315
|
+
repositoryUrl: external_exports.string(),
|
|
105316
|
+
pathInRepository: external_exports.string().optional()
|
|
105181
105317
|
});
|
|
105182
|
-
var appTemplateSchema =
|
|
105183
|
-
id:
|
|
105184
|
-
title:
|
|
105185
|
-
subtitle:
|
|
105186
|
-
developmentTools:
|
|
105318
|
+
var appTemplateSchema = external_exports.object({
|
|
105319
|
+
id: external_exports.string(),
|
|
105320
|
+
title: external_exports.string(),
|
|
105321
|
+
subtitle: external_exports.string(),
|
|
105322
|
+
developmentTools: external_exports.array(external_exports.nativeEnum(DevelopmentTool)),
|
|
105187
105323
|
cliCloneData: cliCLoneDataSchema.optional()
|
|
105188
105324
|
});
|
|
105189
|
-
var queryAppTemplateSchema =
|
|
105190
|
-
appTemplates:
|
|
105325
|
+
var queryAppTemplateSchema = external_exports.object({
|
|
105326
|
+
appTemplates: external_exports.array(appTemplateSchema)
|
|
105191
105327
|
});
|
|
105192
105328
|
var cliAppTemplateSchema = appTemplateSchema.extend({
|
|
105193
105329
|
cliCloneData: cliCLoneDataSchema
|
|
105194
105330
|
});
|
|
105195
|
-
var shareUrlSchema =
|
|
105196
|
-
versionType:
|
|
105197
|
-
installationUrl:
|
|
105198
|
-
tinyInstallationUrl:
|
|
105331
|
+
var shareUrlSchema = external_exports.object({
|
|
105332
|
+
versionType: external_exports.nativeEnum(VersionType),
|
|
105333
|
+
installationUrl: external_exports.string().url(),
|
|
105334
|
+
tinyInstallationUrl: external_exports.string().url().optional()
|
|
105199
105335
|
});
|
|
105200
|
-
var createShareUrlSchema =
|
|
105336
|
+
var createShareUrlSchema = external_exports.object({
|
|
105201
105337
|
shareUrl: shareUrlSchema
|
|
105202
105338
|
});
|
|
105203
|
-
var listShareUrlsSchema =
|
|
105204
|
-
shareUrls:
|
|
105339
|
+
var listShareUrlsSchema = external_exports.object({
|
|
105340
|
+
shareUrls: external_exports.array(shareUrlSchema)
|
|
105205
105341
|
});
|
|
105206
105342
|
|
|
105207
105343
|
// ../dev-center-client/src/dev-center-client.ts
|
|
@@ -105630,10 +105766,10 @@ var DevCenterClient = class {
|
|
|
105630
105766
|
|
|
105631
105767
|
// ../dev-center-client/src/useDevCenterClient.ts
|
|
105632
105768
|
init_esm_shims();
|
|
105633
|
-
var
|
|
105769
|
+
var import_react102 = __toESM(require_react(), 1);
|
|
105634
105770
|
function useDevCenterClient() {
|
|
105635
105771
|
const httpClient = useHttpClient({ type: "backoffice" });
|
|
105636
|
-
const client2 = (0,
|
|
105772
|
+
const client2 = (0, import_react102.useMemo)(() => new DevCenterClient(httpClient), [httpClient]);
|
|
105637
105773
|
return usePanoramaMethodLogger(client2);
|
|
105638
105774
|
}
|
|
105639
105775
|
|
|
@@ -105642,7 +105778,7 @@ init_esm_shims();
|
|
|
105642
105778
|
|
|
105643
105779
|
// ../metasite-manager-client/src/useMetasiteManagerClient.ts
|
|
105644
105780
|
init_esm_shims();
|
|
105645
|
-
var
|
|
105781
|
+
var import_react103 = __toESM(require_react(), 1);
|
|
105646
105782
|
|
|
105647
105783
|
// ../metasite-manager-client/src/metasite-manager-client.ts
|
|
105648
105784
|
init_esm_shims();
|
|
@@ -105732,16 +105868,16 @@ function createMetaSiteFromTemplate(payload5) {
|
|
|
105732
105868
|
|
|
105733
105869
|
// ../metasite-manager-client/src/schemas.ts
|
|
105734
105870
|
init_esm_shims();
|
|
105735
|
-
var clientSpecMapSchema =
|
|
105736
|
-
|
|
105737
|
-
appDefinitionId:
|
|
105738
|
-
permissions:
|
|
105739
|
-
instanceId:
|
|
105871
|
+
var clientSpecMapSchema = external_exports.record(
|
|
105872
|
+
external_exports.object({
|
|
105873
|
+
appDefinitionId: external_exports.string().optional(),
|
|
105874
|
+
permissions: external_exports.object({ revoked: external_exports.boolean() }).optional(),
|
|
105875
|
+
instanceId: external_exports.string().optional()
|
|
105740
105876
|
})
|
|
105741
105877
|
);
|
|
105742
|
-
var createMetaSiteFromTemplateSchema =
|
|
105743
|
-
metaSite:
|
|
105744
|
-
metaSiteId:
|
|
105878
|
+
var createMetaSiteFromTemplateSchema = external_exports.object({
|
|
105879
|
+
metaSite: external_exports.object({
|
|
105880
|
+
metaSiteId: external_exports.string()
|
|
105745
105881
|
})
|
|
105746
105882
|
});
|
|
105747
105883
|
|
|
@@ -105809,7 +105945,7 @@ var MetasiteManagerClient = class {
|
|
|
105809
105945
|
// ../metasite-manager-client/src/useMetasiteManagerClient.ts
|
|
105810
105946
|
function useMetasiteManagerClient() {
|
|
105811
105947
|
const httpClient = useHttpClient({ type: "general" });
|
|
105812
|
-
const client2 = (0,
|
|
105948
|
+
const client2 = (0, import_react103.useMemo)(
|
|
105813
105949
|
() => new MetasiteManagerClient(httpClient),
|
|
105814
105950
|
[httpClient]
|
|
105815
105951
|
);
|
|
@@ -105821,7 +105957,7 @@ init_esm_shims();
|
|
|
105821
105957
|
|
|
105822
105958
|
// ../backend-as-a-service-client/src/useBackendAsAServiceClient.ts
|
|
105823
105959
|
init_esm_shims();
|
|
105824
|
-
var
|
|
105960
|
+
var import_react104 = __toESM(require_react(), 1);
|
|
105825
105961
|
|
|
105826
105962
|
// ../backend-as-a-service-client/src/backend-as-a-service-client.ts
|
|
105827
105963
|
init_esm_shims();
|
|
@@ -105860,6 +105996,9 @@ function createAppDeployment(payload5) {
|
|
|
105860
105996
|
entityFqdn: "wix.velo.backend.v1.app_deployment",
|
|
105861
105997
|
method: "POST",
|
|
105862
105998
|
methodFqn: "wix.velo.backend.v1.AppDeploymentManagement.CreateAppDeployment",
|
|
105999
|
+
migrationOptions: {
|
|
106000
|
+
optInTransformResponse: true
|
|
106001
|
+
},
|
|
105863
106002
|
url: resolveWixVeloBackendV1AppDeploymentManagementUrl({
|
|
105864
106003
|
protoPath: "/v1/app-projects/{appDeployment.appProjectId}/app-deployments",
|
|
105865
106004
|
data: serializedData,
|
|
@@ -105886,6 +106025,9 @@ function completeAppDeployment(payload5) {
|
|
|
105886
106025
|
entityFqdn: "wix.velo.backend.v1.app_deployment",
|
|
105887
106026
|
method: "POST",
|
|
105888
106027
|
methodFqn: "wix.velo.backend.v1.AppDeploymentManagement.CompleteAppDeployment",
|
|
106028
|
+
migrationOptions: {
|
|
106029
|
+
optInTransformResponse: true
|
|
106030
|
+
},
|
|
105889
106031
|
url: resolveWixVeloBackendV1AppDeploymentManagementUrl({
|
|
105890
106032
|
protoPath: "/v1/app-projects/{appDeployment.appProjectId}/app-deployments/{appDeployment.id}/complete",
|
|
105891
106033
|
data: serializedData,
|
|
@@ -105947,6 +106089,9 @@ function createAppProject(payload5) {
|
|
|
105947
106089
|
entityFqdn: "wix.velo.backend.v1.app_project",
|
|
105948
106090
|
method: "POST",
|
|
105949
106091
|
methodFqn: "wix.velo.backend.v1.AppProjectLifecycle.CreateAppProject",
|
|
106092
|
+
migrationOptions: {
|
|
106093
|
+
optInTransformResponse: true
|
|
106094
|
+
},
|
|
105950
106095
|
url: resolveWixVeloBackendV1AppProjectLifecycleUrl({
|
|
105951
106096
|
protoPath: "/v1/app-projects",
|
|
105952
106097
|
data: serializedData,
|
|
@@ -106032,6 +106177,9 @@ function upsertAppEnvironment(payload5) {
|
|
|
106032
106177
|
entityFqdn: "wix.velo.backend.v1.app_environment",
|
|
106033
106178
|
method: "POST",
|
|
106034
106179
|
methodFqn: "wix.velo.backend.v1.AppEnvironmentManagement.UpsertAppEnvironment",
|
|
106180
|
+
migrationOptions: {
|
|
106181
|
+
optInTransformResponse: true
|
|
106182
|
+
},
|
|
106035
106183
|
url: resolveWixVeloBackendV1AppEnvironmentManagementUrl({
|
|
106036
106184
|
protoPath: "/v1/app-projects/{appEnvironment.appProjectId}/app-environments/upsert/name/{appEnvironment.name}",
|
|
106037
106185
|
data: serializedData,
|
|
@@ -106058,6 +106206,9 @@ function getAppEnvironmentByName(payload5) {
|
|
|
106058
106206
|
entityFqdn: "wix.velo.backend.v1.app_environment",
|
|
106059
106207
|
method: "GET",
|
|
106060
106208
|
methodFqn: "wix.velo.backend.v1.AppEnvironmentManagement.GetAppEnvironmentByName",
|
|
106209
|
+
migrationOptions: {
|
|
106210
|
+
optInTransformResponse: true
|
|
106211
|
+
},
|
|
106061
106212
|
url: resolveWixVeloBackendV1AppEnvironmentManagementUrl({
|
|
106062
106213
|
protoPath: "/v1/app-projects/{appProjectId}/app-environments/name/{appEnvironmentName}",
|
|
106063
106214
|
data: serializedData,
|
|
@@ -106082,6 +106233,9 @@ function removeAppEnvironmentVariables(payload5) {
|
|
|
106082
106233
|
entityFqdn: "wix.velo.backend.v1.app_environment",
|
|
106083
106234
|
method: "POST",
|
|
106084
106235
|
methodFqn: "wix.velo.backend.v1.AppEnvironmentManagement.RemoveAppEnvironmentVariables",
|
|
106236
|
+
migrationOptions: {
|
|
106237
|
+
optInTransformResponse: true
|
|
106238
|
+
},
|
|
106085
106239
|
url: resolveWixVeloBackendV1AppEnvironmentManagementUrl({
|
|
106086
106240
|
protoPath: "/v1/app-projects/{appProjectId}/app-environments/{appEnvironmentId}/remove",
|
|
106087
106241
|
data: serializedData,
|
|
@@ -106130,46 +106284,46 @@ var WebhookIdentityType4;
|
|
|
106130
106284
|
})(WebhookIdentityType4 || (WebhookIdentityType4 = {}));
|
|
106131
106285
|
|
|
106132
106286
|
// ../backend-as-a-service-client/src/schemas.ts
|
|
106133
|
-
var staticFileMetadata =
|
|
106134
|
-
path:
|
|
106135
|
-
hash:
|
|
106136
|
-
size:
|
|
106137
|
-
contentType:
|
|
106138
|
-
});
|
|
106139
|
-
var StaticFileUploadUrlSchema =
|
|
106140
|
-
uploadUrl:
|
|
106287
|
+
var staticFileMetadata = external_exports.object({
|
|
106288
|
+
path: external_exports.string(),
|
|
106289
|
+
hash: external_exports.string(),
|
|
106290
|
+
size: external_exports.number().optional(),
|
|
106291
|
+
contentType: external_exports.string()
|
|
106292
|
+
});
|
|
106293
|
+
var StaticFileUploadUrlSchema = external_exports.object({
|
|
106294
|
+
uploadUrl: external_exports.string().url(),
|
|
106141
106295
|
staticFileMetadata
|
|
106142
106296
|
});
|
|
106143
|
-
var AppDeploymentSchema =
|
|
106144
|
-
id:
|
|
106145
|
-
deploymentBaseUrl:
|
|
106146
|
-
cloudProviderOverride:
|
|
106297
|
+
var AppDeploymentSchema = external_exports.object({
|
|
106298
|
+
id: external_exports.string().uuid(),
|
|
106299
|
+
deploymentBaseUrl: external_exports.string(),
|
|
106300
|
+
cloudProviderOverride: external_exports.nativeEnum(CloudProvider2)
|
|
106147
106301
|
}).passthrough();
|
|
106148
|
-
var CompleteAppDeploymentSchema =
|
|
106302
|
+
var CompleteAppDeploymentSchema = external_exports.object({
|
|
106149
106303
|
appDeployment: AppDeploymentSchema
|
|
106150
106304
|
});
|
|
106151
|
-
var AppEnvironmentSchema =
|
|
106152
|
-
appEnvironment:
|
|
106153
|
-
id:
|
|
106154
|
-
variables:
|
|
106155
|
-
secrets:
|
|
106305
|
+
var AppEnvironmentSchema = external_exports.object({
|
|
106306
|
+
appEnvironment: external_exports.object({
|
|
106307
|
+
id: external_exports.string(),
|
|
106308
|
+
variables: external_exports.record(external_exports.string()),
|
|
106309
|
+
secrets: external_exports.record(external_exports.string())
|
|
106156
106310
|
}).passthrough()
|
|
106157
106311
|
});
|
|
106158
|
-
var CreateAppProjectSchema =
|
|
106159
|
-
appProject:
|
|
106160
|
-
id:
|
|
106161
|
-
baseUrl:
|
|
106312
|
+
var CreateAppProjectSchema = external_exports.object({
|
|
106313
|
+
appProject: external_exports.object({
|
|
106314
|
+
id: external_exports.string().uuid(),
|
|
106315
|
+
baseUrl: external_exports.string().url()
|
|
106162
106316
|
})
|
|
106163
106317
|
});
|
|
106164
|
-
var CreateAppDeploymentSchema =
|
|
106165
|
-
staticFilesUploadUrls:
|
|
106166
|
-
uploadAuthToken:
|
|
106318
|
+
var CreateAppDeploymentSchema = external_exports.object({
|
|
106319
|
+
staticFilesUploadUrls: external_exports.array(StaticFileUploadUrlSchema).optional(),
|
|
106320
|
+
uploadAuthToken: external_exports.string().optional(),
|
|
106167
106321
|
appDeployment: AppDeploymentSchema.optional()
|
|
106168
106322
|
});
|
|
106169
|
-
var StaticFileUploadSchema =
|
|
106170
|
-
result:
|
|
106323
|
+
var StaticFileUploadSchema = external_exports.object({
|
|
106324
|
+
result: external_exports.object({
|
|
106171
106325
|
// The `jwt` field is optional because it is only returned in the last file upload.
|
|
106172
|
-
jwt:
|
|
106326
|
+
jwt: external_exports.string().optional()
|
|
106173
106327
|
}).optional()
|
|
106174
106328
|
}).passthrough();
|
|
106175
106329
|
|
|
@@ -106366,7 +106520,7 @@ var BackendAsAServiceClient = class {
|
|
|
106366
106520
|
// ../backend-as-a-service-client/src/useBackendAsAServiceClient.ts
|
|
106367
106521
|
function useBackendAsAServiceClient() {
|
|
106368
106522
|
const httpClient = useHttpClient({ type: "backoffice" });
|
|
106369
|
-
const client2 = (0,
|
|
106523
|
+
const client2 = (0, import_react104.useMemo)(
|
|
106370
106524
|
() => new BackendAsAServiceClient(httpClient),
|
|
106371
106525
|
[httpClient]
|
|
106372
106526
|
);
|
|
@@ -106447,17 +106601,17 @@ var CreateProject = ({
|
|
|
106447
106601
|
cloudProvider
|
|
106448
106602
|
}) => {
|
|
106449
106603
|
const { status, execute } = useCreateProject(businessId);
|
|
106450
|
-
(0,
|
|
106604
|
+
(0, import_react105.useEffect)(() => {
|
|
106451
106605
|
if ((0, import_variant31.isType)(status, "Success")) {
|
|
106452
106606
|
onSubmit(status.result);
|
|
106453
106607
|
}
|
|
106454
106608
|
}, [status, onSubmit]);
|
|
106455
|
-
(0,
|
|
106609
|
+
(0, import_react105.useEffect)(() => {
|
|
106456
106610
|
if (providedProjectName) {
|
|
106457
106611
|
void execute({ projectName: providedProjectName, cloudProvider });
|
|
106458
106612
|
}
|
|
106459
106613
|
}, [providedProjectName, cloudProvider, execute]);
|
|
106460
|
-
const validate3 = (0,
|
|
106614
|
+
const validate3 = (0, import_react105.useCallback)(async (projectName) => {
|
|
106461
106615
|
try {
|
|
106462
106616
|
validateProjectName(projectName);
|
|
106463
106617
|
return true;
|
|
@@ -106465,7 +106619,7 @@ var CreateProject = ({
|
|
|
106465
106619
|
return e2.message;
|
|
106466
106620
|
}
|
|
106467
106621
|
}, []);
|
|
106468
|
-
return /* @__PURE__ */
|
|
106622
|
+
return /* @__PURE__ */ import_react105.default.createElement(import_react105.default.Fragment, null, !providedProjectName && /* @__PURE__ */ import_react105.default.createElement(
|
|
106469
106623
|
TextInput2,
|
|
106470
106624
|
{
|
|
106471
106625
|
label: "What's the name of your Custom Frontend project?",
|
|
@@ -106475,47 +106629,47 @@ var CreateProject = ({
|
|
|
106475
106629
|
}
|
|
106476
106630
|
), (0, import_variant31.match)(status, {
|
|
106477
106631
|
Error: () => null,
|
|
106478
|
-
Loading: () => /* @__PURE__ */
|
|
106479
|
-
Success: () => /* @__PURE__ */
|
|
106632
|
+
Loading: () => /* @__PURE__ */ import_react105.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react105.default.createElement(Spinner2, { text: "Creating your project..." })),
|
|
106633
|
+
Success: () => /* @__PURE__ */ import_react105.default.createElement(Box_default, { marginLeft: -2, marginBottom: 1 }, /* @__PURE__ */ import_react105.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react105.default.createElement(Badge, { skin: "success" }, "Success"), " ", /* @__PURE__ */ import_react105.default.createElement(Text2, null, "Project created successfully"))),
|
|
106480
106634
|
NotRequested: () => null
|
|
106481
106635
|
}));
|
|
106482
106636
|
};
|
|
106483
106637
|
|
|
106484
106638
|
// src/components/LinkCommand/GenerateProject.tsx
|
|
106485
106639
|
init_esm_shims();
|
|
106486
|
-
var
|
|
106640
|
+
var import_react108 = __toESM(require_react(), 1);
|
|
106487
106641
|
var import_variant34 = __toESM(require_lib(), 1);
|
|
106488
106642
|
|
|
106489
106643
|
// ../cli-astro-definitions/src/index.ts
|
|
106490
106644
|
init_esm_shims();
|
|
106491
106645
|
import { join as join11 } from "node:path";
|
|
106492
106646
|
var ENV_FILE_NAME = ".env.local";
|
|
106493
|
-
var wixAstroConfigSchema =
|
|
106494
|
-
$schema:
|
|
106495
|
-
appId:
|
|
106496
|
-
siteId:
|
|
106647
|
+
var wixAstroConfigSchema = zod_default.object({
|
|
106648
|
+
$schema: zod_default.string().optional(),
|
|
106649
|
+
appId: zod_default.string().uuid(),
|
|
106650
|
+
siteId: zod_default.string().uuid()
|
|
106497
106651
|
}).strict();
|
|
106498
|
-
var buildMetadataSchema =
|
|
106499
|
-
appManifestPath:
|
|
106500
|
-
outDir:
|
|
106501
|
-
clientDir:
|
|
106502
|
-
serverDir:
|
|
106503
|
-
});
|
|
106504
|
-
var deploymentTopologyEnvironmentSchema =
|
|
106505
|
-
id:
|
|
106506
|
-
site:
|
|
106507
|
-
main:
|
|
106652
|
+
var buildMetadataSchema = zod_default.object({
|
|
106653
|
+
appManifestPath: zod_default.string(),
|
|
106654
|
+
outDir: zod_default.string(),
|
|
106655
|
+
clientDir: zod_default.string(),
|
|
106656
|
+
serverDir: zod_default.string().optional()
|
|
106657
|
+
});
|
|
106658
|
+
var deploymentTopologyEnvironmentSchema = zod_default.object({
|
|
106659
|
+
id: zod_default.string().describe("Unique ARM tag identifier"),
|
|
106660
|
+
site: zod_default.object({
|
|
106661
|
+
main: zod_default.string().url().describe("Main site URL")
|
|
106508
106662
|
}).describe("Site topology details").required(),
|
|
106509
|
-
dashboard:
|
|
106510
|
-
main:
|
|
106663
|
+
dashboard: zod_default.object({
|
|
106664
|
+
main: zod_default.string().url().describe("Main dashboard URL (link to a business manager dashboard)")
|
|
106511
106665
|
}).describe("Optional dashboard topology details").optional()
|
|
106512
106666
|
});
|
|
106513
|
-
var deploymentTopologyEnvironmentTypeSchema =
|
|
106667
|
+
var deploymentTopologyEnvironmentTypeSchema = zod_default.enum([
|
|
106514
106668
|
"production",
|
|
106515
106669
|
"preview",
|
|
106516
106670
|
"development"
|
|
106517
106671
|
]);
|
|
106518
|
-
var deploymentTopologySchema =
|
|
106672
|
+
var deploymentTopologySchema = zod_default.record(
|
|
106519
106673
|
deploymentTopologyEnvironmentTypeSchema,
|
|
106520
106674
|
deploymentTopologyEnvironmentSchema
|
|
106521
106675
|
);
|
|
@@ -115576,9 +115730,9 @@ import { join as join14 } from "node:path";
|
|
|
115576
115730
|
|
|
115577
115731
|
// ../gena/src/dependencies-updater.ts
|
|
115578
115732
|
init_esm_shims();
|
|
115579
|
-
var dependenciesJsonSchema =
|
|
115580
|
-
dependencies:
|
|
115581
|
-
devDependencies:
|
|
115733
|
+
var dependenciesJsonSchema = external_exports.object({
|
|
115734
|
+
dependencies: external_exports.record(external_exports.string()).optional(),
|
|
115735
|
+
devDependencies: external_exports.record(external_exports.string()).optional()
|
|
115582
115736
|
});
|
|
115583
115737
|
async function readDependenciesJson(filePath) {
|
|
115584
115738
|
const json = await readJson(filePath);
|
|
@@ -115916,7 +116070,7 @@ async function getUniqueExtensionPath(projectFolder, extensionPath, suffix) {
|
|
|
115916
116070
|
|
|
115917
116071
|
// src/task-runner.ts
|
|
115918
116072
|
init_esm_shims();
|
|
115919
|
-
var
|
|
116073
|
+
var import_react106 = __toESM(require_react(), 1);
|
|
115920
116074
|
var import_variant33 = __toESM(require_lib(), 1);
|
|
115921
116075
|
var TaskRunnerStatus = (0, import_variant33.variant)({
|
|
115922
116076
|
Idle: {},
|
|
@@ -115942,7 +116096,7 @@ var TaskRunnerStatus = (0, import_variant33.variant)({
|
|
|
115942
116096
|
}
|
|
115943
116097
|
});
|
|
115944
116098
|
function useTaskRunner() {
|
|
115945
|
-
const [status, setStatus] = (0,
|
|
116099
|
+
const [status, setStatus] = (0, import_react106.useState)(
|
|
115946
116100
|
TaskRunnerStatus.Idle()
|
|
115947
116101
|
);
|
|
115948
116102
|
const { execute } = useAsyncCallback3(async (_2, tasks) => {
|
|
@@ -115962,25 +116116,25 @@ function useTaskRunner() {
|
|
|
115962
116116
|
|
|
115963
116117
|
// src/components/TaskList.tsx
|
|
115964
116118
|
init_esm_shims();
|
|
115965
|
-
var
|
|
116119
|
+
var import_react107 = __toESM(require_react(), 1);
|
|
115966
116120
|
var TaskList = ({ tasks, totalTaskCount }) => {
|
|
115967
|
-
return /* @__PURE__ */
|
|
116121
|
+
return /* @__PURE__ */ import_react107.default.createElement(import_react107.default.Fragment, null, tasks.map((task, index) => {
|
|
115968
116122
|
const stepper = `[${index + 1}/${totalTaskCount}]`;
|
|
115969
116123
|
const fullText = `${stepper} ${task.text}`;
|
|
115970
116124
|
if (task.status === "running") {
|
|
115971
|
-
return /* @__PURE__ */
|
|
116125
|
+
return /* @__PURE__ */ import_react107.default.createElement(Spinner2, { key: index, text: fullText });
|
|
115972
116126
|
}
|
|
115973
|
-
return /* @__PURE__ */
|
|
116127
|
+
return /* @__PURE__ */ import_react107.default.createElement(Alert, { key: index, type: "success" }, fullText);
|
|
115974
116128
|
}));
|
|
115975
116129
|
};
|
|
115976
116130
|
|
|
115977
116131
|
// src/components/LinkCommand/GenerateProject.tsx
|
|
115978
116132
|
var GenerationProgress = ({ tasks, totalTaskCount }) => {
|
|
115979
|
-
return /* @__PURE__ */
|
|
116133
|
+
return /* @__PURE__ */ import_react108.default.createElement(import_react108.default.Fragment, null, /* @__PURE__ */ import_react108.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react108.default.createElement(Text2, null, "Generating your headless site...")), /* @__PURE__ */ import_react108.default.createElement(TaskList, { tasks, totalTaskCount }));
|
|
115980
116134
|
};
|
|
115981
116135
|
var GenerateProject = ({ projectFolder, businessId, projectData, onDone, packageManager }) => {
|
|
115982
116136
|
const { execute: executeTaskRunner, status: taskRunnerStatus } = useTaskRunner();
|
|
115983
|
-
const generateProject = (0,
|
|
116137
|
+
const generateProject = (0, import_react108.useCallback)(async () => {
|
|
115984
116138
|
const wixConfigFilePath = getWixConfigFilePath(projectFolder);
|
|
115985
116139
|
const envFilePath = getEnvFilePath(projectFolder);
|
|
115986
116140
|
await writeJson(
|
|
@@ -115993,10 +116147,10 @@ var GenerateProject = ({ projectFolder, businessId, projectData, onDone, package
|
|
|
115993
116147
|
);
|
|
115994
116148
|
await updateEnvFile(envFilePath, projectData.environmentVariables);
|
|
115995
116149
|
}, [businessId, projectFolder, projectData]);
|
|
115996
|
-
const extendProject = (0,
|
|
116150
|
+
const extendProject = (0, import_react108.useCallback)(async () => {
|
|
115997
116151
|
await extend2(projectFolder);
|
|
115998
116152
|
}, [projectFolder]);
|
|
115999
|
-
const installDependencies = (0,
|
|
116153
|
+
const installDependencies = (0, import_react108.useCallback)(async () => {
|
|
116000
116154
|
try {
|
|
116001
116155
|
await packageManager.runInstall(projectFolder);
|
|
116002
116156
|
} catch (e2) {
|
|
@@ -116006,7 +116160,7 @@ var GenerateProject = ({ projectFolder, businessId, projectData, onDone, package
|
|
|
116006
116160
|
});
|
|
116007
116161
|
}
|
|
116008
116162
|
}, [projectFolder, packageManager]);
|
|
116009
|
-
const tasks = (0,
|
|
116163
|
+
const tasks = (0, import_react108.useMemo)(() => {
|
|
116010
116164
|
const result = [
|
|
116011
116165
|
{
|
|
116012
116166
|
action: generateProject,
|
|
@@ -116032,16 +116186,16 @@ var GenerateProject = ({ projectFolder, businessId, projectData, onDone, package
|
|
|
116032
116186
|
}, []);
|
|
116033
116187
|
return (0, import_variant34.match)(taskRunnerStatus, {
|
|
116034
116188
|
Idle: () => null,
|
|
116035
|
-
Running: (status) => /* @__PURE__ */
|
|
116036
|
-
Done: (status) => /* @__PURE__ */
|
|
116189
|
+
Running: (status) => /* @__PURE__ */ import_react108.default.createElement(GenerationProgress, { ...status }),
|
|
116190
|
+
Done: (status) => /* @__PURE__ */ import_react108.default.createElement(Box_default, { flexDirection: "column", marginBottom: 1 }, /* @__PURE__ */ import_react108.default.createElement(GenerationProgress, { ...status }), /* @__PURE__ */ import_react108.default.createElement(Box_default, { marginLeft: -2, marginTop: 1 }, /* @__PURE__ */ import_react108.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react108.default.createElement(Badge, { skin: "success" }, "Success"), " ", /* @__PURE__ */ import_react108.default.createElement(Text2, null, "Project set up successfully"))))
|
|
116037
116191
|
});
|
|
116038
116192
|
};
|
|
116039
116193
|
|
|
116040
116194
|
// src/components/LinkCommand/FinishedSuccessfullyMessage.tsx
|
|
116041
116195
|
init_esm_shims();
|
|
116042
|
-
var
|
|
116196
|
+
var import_react109 = __toESM(require_react(), 1);
|
|
116043
116197
|
var FinishedSuccessfullyMessage = ({ packageManager }) => {
|
|
116044
|
-
return /* @__PURE__ */
|
|
116198
|
+
return /* @__PURE__ */ import_react109.default.createElement(
|
|
116045
116199
|
Box_default,
|
|
116046
116200
|
{
|
|
116047
116201
|
borderColor: "blue",
|
|
@@ -116053,8 +116207,8 @@ var FinishedSuccessfullyMessage = ({ packageManager }) => {
|
|
|
116053
116207
|
marginLeft: -2,
|
|
116054
116208
|
marginTop: 1
|
|
116055
116209
|
},
|
|
116056
|
-
/* @__PURE__ */
|
|
116057
|
-
/* @__PURE__ */
|
|
116210
|
+
/* @__PURE__ */ import_react109.default.createElement(Text2, { bold: true }, "Next Steps:"),
|
|
116211
|
+
/* @__PURE__ */ import_react109.default.createElement(UnorderedList, { gap: 1 }, /* @__PURE__ */ import_react109.default.createElement(UnorderedList.Item, { marker: "\u{1F45F}" }, /* @__PURE__ */ import_react109.default.createElement(Text2, null, "Start developing"), /* @__PURE__ */ import_react109.default.createElement(Text2, { skin: "info" }, `${packageManager.getRunCmd()} dev`)), /* @__PURE__ */ import_react109.default.createElement(UnorderedList.Item, { marker: /* @__PURE__ */ import_react109.default.createElement(Learn, null) }, /* @__PURE__ */ import_react109.default.createElement(Text2, null, "For guides and API references visit our"), /* @__PURE__ */ import_react109.default.createElement(Link, { skin: "info", url: "https://dev.wix.com/docs/go-headless" }, "documentation")), /* @__PURE__ */ import_react109.default.createElement(UnorderedList.Item, { marker: "\u{1F4AC}" }, /* @__PURE__ */ import_react109.default.createElement(Text2, null, "Join our"), /* @__PURE__ */ import_react109.default.createElement(Link, { skin: "info", url: "https://discord.gg/wixstudio" }, "Discord community")))
|
|
116058
116212
|
);
|
|
116059
116213
|
};
|
|
116060
116214
|
|
|
@@ -116075,10 +116229,10 @@ var LinkCommand = ({
|
|
|
116075
116229
|
projectName: preEnteredProjectName,
|
|
116076
116230
|
businessName: preEnteredBusinessName
|
|
116077
116231
|
}) => {
|
|
116078
|
-
const [businessName, setBusinessName] = (0,
|
|
116079
|
-
const [businessId, setBusinessId] = (0,
|
|
116080
|
-
const [projectData, setProjectData] = (0,
|
|
116081
|
-
const [isDone, setIsDone] = (0,
|
|
116232
|
+
const [businessName, setBusinessName] = (0, import_react110.useState)(preEnteredBusinessName);
|
|
116233
|
+
const [businessId, setBusinessId] = (0, import_react110.useState)();
|
|
116234
|
+
const [projectData, setProjectData] = (0, import_react110.useState)();
|
|
116235
|
+
const [isDone, setIsDone] = (0, import_react110.useState)(false);
|
|
116082
116236
|
const { status } = useAsync2(async () => {
|
|
116083
116237
|
const alreadyLinked = await isWixConfigExists(projectFolder);
|
|
116084
116238
|
if (alreadyLinked) {
|
|
@@ -116100,9 +116254,9 @@ var LinkCommand = ({
|
|
|
116100
116254
|
}, []);
|
|
116101
116255
|
return (0, import_variant35.match)(status, {
|
|
116102
116256
|
Error: () => null,
|
|
116103
|
-
Loading: () => /* @__PURE__ */
|
|
116257
|
+
Loading: () => /* @__PURE__ */ import_react110.default.createElement(Spinner2, { text: "Loading..." }),
|
|
116104
116258
|
Success: ({ result: { packageManager } }) => {
|
|
116105
|
-
return /* @__PURE__ */
|
|
116259
|
+
return /* @__PURE__ */ import_react110.default.createElement(
|
|
116106
116260
|
Box_default,
|
|
116107
116261
|
{
|
|
116108
116262
|
flexDirection: "column",
|
|
@@ -116113,14 +116267,14 @@ var LinkCommand = ({
|
|
|
116113
116267
|
borderTop: false,
|
|
116114
116268
|
paddingLeft: 1
|
|
116115
116269
|
},
|
|
116116
|
-
/* @__PURE__ */
|
|
116117
|
-
!preEnteredBusinessName && /* @__PURE__ */
|
|
116270
|
+
/* @__PURE__ */ import_react110.default.createElement(WelcomeMessage, null),
|
|
116271
|
+
!preEnteredBusinessName && /* @__PURE__ */ import_react110.default.createElement(
|
|
116118
116272
|
ChooseBusinessName,
|
|
116119
116273
|
{
|
|
116120
116274
|
onSubmit: ({ businessName: businessName2 }) => setBusinessName(businessName2)
|
|
116121
116275
|
}
|
|
116122
116276
|
),
|
|
116123
|
-
businessName && /* @__PURE__ */
|
|
116277
|
+
businessName && /* @__PURE__ */ import_react110.default.createElement(AccountAuthProvider, null, /* @__PURE__ */ import_react110.default.createElement(
|
|
116124
116278
|
CreateBusiness,
|
|
116125
116279
|
{
|
|
116126
116280
|
businessName,
|
|
@@ -116128,7 +116282,7 @@ var LinkCommand = ({
|
|
|
116128
116282
|
onDone: ({ businessId: businessId2 }) => setBusinessId(businessId2)
|
|
116129
116283
|
}
|
|
116130
116284
|
)),
|
|
116131
|
-
businessName && businessId && /* @__PURE__ */
|
|
116285
|
+
businessName && businessId && /* @__PURE__ */ import_react110.default.createElement(SiteAuthProvider, { siteId: businessId }, /* @__PURE__ */ import_react110.default.createElement(
|
|
116132
116286
|
CreateProject,
|
|
116133
116287
|
{
|
|
116134
116288
|
businessId,
|
|
@@ -116136,7 +116290,7 @@ var LinkCommand = ({
|
|
|
116136
116290
|
onSubmit: (data) => setProjectData(data)
|
|
116137
116291
|
}
|
|
116138
116292
|
)),
|
|
116139
|
-
businessName && businessId && projectData && /* @__PURE__ */
|
|
116293
|
+
businessName && businessId && projectData && /* @__PURE__ */ import_react110.default.createElement(
|
|
116140
116294
|
GenerateProject,
|
|
116141
116295
|
{
|
|
116142
116296
|
packageManager,
|
|
@@ -116146,7 +116300,7 @@ var LinkCommand = ({
|
|
|
116146
116300
|
onDone: () => setIsDone(true)
|
|
116147
116301
|
}
|
|
116148
116302
|
),
|
|
116149
|
-
businessName && businessId && projectData && isDone && /* @__PURE__ */
|
|
116303
|
+
businessName && businessId && projectData && isDone && /* @__PURE__ */ import_react110.default.createElement(FinishedSuccessfullyMessage, { packageManager })
|
|
116150
116304
|
);
|
|
116151
116305
|
}
|
|
116152
116306
|
});
|
|
@@ -116155,7 +116309,7 @@ var LinkCommand = ({
|
|
|
116155
116309
|
// src/validations/uuid.ts
|
|
116156
116310
|
init_esm_shims();
|
|
116157
116311
|
function validateUUID(value2) {
|
|
116158
|
-
const parsed =
|
|
116312
|
+
const parsed = external_exports.string().uuid().safeParse(value2);
|
|
116159
116313
|
if (parsed.success) {
|
|
116160
116314
|
return parsed.data;
|
|
116161
116315
|
}
|
|
@@ -116187,7 +116341,7 @@ var validateCloudProvider = (value2) => {
|
|
|
116187
116341
|
|
|
116188
116342
|
// src/validations/validate-template-params.ts
|
|
116189
116343
|
init_esm_shims();
|
|
116190
|
-
var schema2 =
|
|
116344
|
+
var schema2 = external_exports.string().transform((value2) => JSON.parse(value2)).pipe(external_exports.record(external_exports.unknown()));
|
|
116191
116345
|
function validateTemplateParams(value2) {
|
|
116192
116346
|
try {
|
|
116193
116347
|
return schema2.parse(value2);
|
|
@@ -116198,7 +116352,7 @@ function validateTemplateParams(value2) {
|
|
|
116198
116352
|
|
|
116199
116353
|
// src/components/ProcessCommand.tsx
|
|
116200
116354
|
init_esm_shims();
|
|
116201
|
-
var
|
|
116355
|
+
var import_react117 = __toESM(require_react(), 1);
|
|
116202
116356
|
var import_variant43 = __toESM(require_lib(), 1);
|
|
116203
116357
|
|
|
116204
116358
|
// src/parse-command-options.ts
|
|
@@ -117027,12 +117181,12 @@ async function parseCommandOptions(targetParentFolder2, options) {
|
|
|
117027
117181
|
|
|
117028
117182
|
// src/components/CreateHeadlessSiteCommand.tsx
|
|
117029
117183
|
init_esm_shims();
|
|
117030
|
-
var
|
|
117184
|
+
var import_react116 = __toESM(require_react(), 1);
|
|
117031
117185
|
var import_variant42 = __toESM(require_lib(), 1);
|
|
117032
117186
|
|
|
117033
117187
|
// src/components/ChooseFolder.tsx
|
|
117034
117188
|
init_esm_shims();
|
|
117035
|
-
var
|
|
117189
|
+
var import_react111 = __toESM(require_react(), 1);
|
|
117036
117190
|
var import_variant38 = __toESM(require_lib(), 1);
|
|
117037
117191
|
import { join as join18 } from "node:path";
|
|
117038
117192
|
var validateAppDirectory = async (targetParentFolder2, packageName) => {
|
|
@@ -117046,11 +117200,11 @@ var validateAppDirectory = async (targetParentFolder2, packageName) => {
|
|
|
117046
117200
|
});
|
|
117047
117201
|
};
|
|
117048
117202
|
var ChooseFolder = ({ initialFolderName, targetParentFolder: targetParentFolder2, onSubmit }) => {
|
|
117049
|
-
const validate3 = (0,
|
|
117203
|
+
const validate3 = (0, import_react111.useCallback)(
|
|
117050
117204
|
async (packageName) => validateAppDirectory(targetParentFolder2, packageName),
|
|
117051
117205
|
[targetParentFolder2]
|
|
117052
117206
|
);
|
|
117053
|
-
return /* @__PURE__ */
|
|
117207
|
+
return /* @__PURE__ */ import_react111.default.createElement(
|
|
117054
117208
|
TextInput2,
|
|
117055
117209
|
{
|
|
117056
117210
|
label: "In which directory do you want to create your application?",
|
|
@@ -117065,7 +117219,7 @@ var ChooseFolder = ({ initialFolderName, targetParentFolder: targetParentFolder2
|
|
|
117065
117219
|
// src/components/GenerateProject.tsx
|
|
117066
117220
|
init_esm_shims();
|
|
117067
117221
|
import { mkdir as mkdir3 } from "node:fs/promises";
|
|
117068
|
-
var
|
|
117222
|
+
var import_react112 = __toESM(require_react(), 1);
|
|
117069
117223
|
var import_variant39 = __toESM(require_lib(), 1);
|
|
117070
117224
|
import { join as join20 } from "node:path";
|
|
117071
117225
|
|
|
@@ -117110,7 +117264,7 @@ async function fetchTemplate(url2, path8 = ".") {
|
|
|
117110
117264
|
// src/components/GenerateProject.tsx
|
|
117111
117265
|
var headlessTemplatesGitUrl = "https://github.com/wix/headless-templates.git";
|
|
117112
117266
|
var GenerationProgress2 = ({ tasks, totalTaskCount }) => {
|
|
117113
|
-
return /* @__PURE__ */
|
|
117267
|
+
return /* @__PURE__ */ import_react112.default.createElement(import_react112.default.Fragment, null, /* @__PURE__ */ import_react112.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react112.default.createElement(Text2, null, "Generating your headless site...")), /* @__PURE__ */ import_react112.default.createElement(TaskList, { tasks, totalTaskCount }));
|
|
117114
117268
|
};
|
|
117115
117269
|
var GenerateProject2 = ({
|
|
117116
117270
|
repoType,
|
|
@@ -117125,11 +117279,11 @@ var GenerateProject2 = ({
|
|
|
117125
117279
|
}) => {
|
|
117126
117280
|
const { reportError: reportError2 } = useErrorReporter();
|
|
117127
117281
|
const { execute: executeTaskRunner, status: taskRunnerStatus } = useTaskRunner();
|
|
117128
|
-
const packageFolder = (0,
|
|
117282
|
+
const packageFolder = (0, import_react112.useMemo)(
|
|
117129
117283
|
() => join20(targetParentFolder2, folderName),
|
|
117130
117284
|
[folderName, targetParentFolder2]
|
|
117131
117285
|
);
|
|
117132
|
-
const generateProject = (0,
|
|
117286
|
+
const generateProject = (0, import_react112.useCallback)(async () => {
|
|
117133
117287
|
try {
|
|
117134
117288
|
await mkdir3(packageFolder, { recursive: true });
|
|
117135
117289
|
} catch (e2) {
|
|
@@ -117170,7 +117324,7 @@ var GenerateProject2 = ({
|
|
|
117170
117324
|
selectedTemplate,
|
|
117171
117325
|
commandOptions.templateParams
|
|
117172
117326
|
]);
|
|
117173
|
-
const extendProject = (0,
|
|
117327
|
+
const extendProject = (0, import_react112.useCallback)(async () => {
|
|
117174
117328
|
await extend2(packageFolder);
|
|
117175
117329
|
try {
|
|
117176
117330
|
await addFilesFromTemplate(
|
|
@@ -117189,7 +117343,7 @@ var GenerateProject2 = ({
|
|
|
117189
117343
|
packageManager,
|
|
117190
117344
|
repoType
|
|
117191
117345
|
]);
|
|
117192
|
-
const initializeGit = (0,
|
|
117346
|
+
const initializeGit = (0, import_react112.useCallback)(async () => {
|
|
117193
117347
|
try {
|
|
117194
117348
|
await gitInit(packageFolder);
|
|
117195
117349
|
} catch (e2) {
|
|
@@ -117199,7 +117353,7 @@ var GenerateProject2 = ({
|
|
|
117199
117353
|
});
|
|
117200
117354
|
}
|
|
117201
117355
|
}, [packageFolder]);
|
|
117202
|
-
const installDependencies = (0,
|
|
117356
|
+
const installDependencies = (0, import_react112.useCallback)(async () => {
|
|
117203
117357
|
try {
|
|
117204
117358
|
await packageManager.runInstall(packageFolder);
|
|
117205
117359
|
} catch (e2) {
|
|
@@ -117209,7 +117363,7 @@ var GenerateProject2 = ({
|
|
|
117209
117363
|
});
|
|
117210
117364
|
}
|
|
117211
117365
|
}, [packageFolder, packageManager]);
|
|
117212
|
-
const commitToGit = (0,
|
|
117366
|
+
const commitToGit = (0, import_react112.useCallback)(async () => {
|
|
117213
117367
|
try {
|
|
117214
117368
|
await gitCommit(packageFolder);
|
|
117215
117369
|
} catch (e2) {
|
|
@@ -117219,7 +117373,7 @@ var GenerateProject2 = ({
|
|
|
117219
117373
|
});
|
|
117220
117374
|
}
|
|
117221
117375
|
}, [packageFolder]);
|
|
117222
|
-
const tasks = (0,
|
|
117376
|
+
const tasks = (0, import_react112.useMemo)(() => {
|
|
117223
117377
|
const result = [
|
|
117224
117378
|
{
|
|
117225
117379
|
action: generateProject,
|
|
@@ -117269,16 +117423,16 @@ var GenerateProject2 = ({
|
|
|
117269
117423
|
}, []);
|
|
117270
117424
|
return (0, import_variant39.match)(taskRunnerStatus, {
|
|
117271
117425
|
Idle: () => null,
|
|
117272
|
-
Running: (status) => /* @__PURE__ */
|
|
117273
|
-
Done: (status) => /* @__PURE__ */
|
|
117426
|
+
Running: (status) => /* @__PURE__ */ import_react112.default.createElement(GenerationProgress2, { ...status }),
|
|
117427
|
+
Done: (status) => /* @__PURE__ */ import_react112.default.createElement(Box_default, { flexDirection: "column", marginBottom: 1 }, /* @__PURE__ */ import_react112.default.createElement(GenerationProgress2, { ...status }), /* @__PURE__ */ import_react112.default.createElement(Box_default, { marginLeft: -2, marginTop: 1 }, /* @__PURE__ */ import_react112.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react112.default.createElement(Badge, { skin: "success" }, "Success"), " ", /* @__PURE__ */ import_react112.default.createElement(Text2, null, "Project set up successfully"))))
|
|
117274
117428
|
});
|
|
117275
117429
|
};
|
|
117276
117430
|
|
|
117277
117431
|
// src/components/ChooseTemplate.tsx
|
|
117278
117432
|
init_esm_shims();
|
|
117279
|
-
var
|
|
117433
|
+
var import_react113 = __toESM(require_react(), 1);
|
|
117280
117434
|
var ChooseTemplate = ({ onSubmit }) => {
|
|
117281
|
-
const options = (0,
|
|
117435
|
+
const options = (0, import_react113.useMemo)(() => {
|
|
117282
117436
|
return headlessTemplates.map((template) => ({
|
|
117283
117437
|
key: template.siteTemplateId,
|
|
117284
117438
|
title: template.title,
|
|
@@ -117286,7 +117440,7 @@ var ChooseTemplate = ({ onSubmit }) => {
|
|
|
117286
117440
|
value: template
|
|
117287
117441
|
}));
|
|
117288
117442
|
}, []);
|
|
117289
|
-
return /* @__PURE__ */
|
|
117443
|
+
return /* @__PURE__ */ import_react113.default.createElement(
|
|
117290
117444
|
SelectInput2,
|
|
117291
117445
|
{
|
|
117292
117446
|
label: "Choose an initial template for your business",
|
|
@@ -117298,14 +117452,14 @@ var ChooseTemplate = ({ onSubmit }) => {
|
|
|
117298
117452
|
|
|
117299
117453
|
// src/components/ReleaseProject.tsx
|
|
117300
117454
|
init_esm_shims();
|
|
117301
|
-
var
|
|
117455
|
+
var import_react115 = __toESM(require_react(), 1);
|
|
117302
117456
|
var import_variant41 = __toESM(require_lib(), 1);
|
|
117303
117457
|
|
|
117304
117458
|
// src/components/FinishedSuccessfullyMessage.tsx
|
|
117305
117459
|
init_esm_shims();
|
|
117306
|
-
var
|
|
117460
|
+
var import_react114 = __toESM(require_react(), 1);
|
|
117307
117461
|
var FinishedSuccessfullyMessage2 = ({ packageManager, folderName, projectData, isReleased }) => {
|
|
117308
|
-
return /* @__PURE__ */
|
|
117462
|
+
return /* @__PURE__ */ import_react114.default.createElement(
|
|
117309
117463
|
Box_default,
|
|
117310
117464
|
{
|
|
117311
117465
|
borderColor: "blue",
|
|
@@ -117317,9 +117471,9 @@ var FinishedSuccessfullyMessage2 = ({ packageManager, folderName, projectData, i
|
|
|
117317
117471
|
marginLeft: -2,
|
|
117318
117472
|
marginTop: 1
|
|
117319
117473
|
},
|
|
117320
|
-
isReleased && /* @__PURE__ */
|
|
117321
|
-
/* @__PURE__ */
|
|
117322
|
-
/* @__PURE__ */
|
|
117474
|
+
isReleased && /* @__PURE__ */ import_react114.default.createElement(Text2, { bold: true }, /* @__PURE__ */ import_react114.default.createElement(Rocket, null), " Visit your site at: ", projectData.baseUrl),
|
|
117475
|
+
/* @__PURE__ */ import_react114.default.createElement(Text2, { bold: true }, "Next Steps:"),
|
|
117476
|
+
/* @__PURE__ */ import_react114.default.createElement(UnorderedList, { gap: 1 }, /* @__PURE__ */ import_react114.default.createElement(UnorderedList.Item, { marker: "\u{1F45F}" }, /* @__PURE__ */ import_react114.default.createElement(Text2, null, "Start developing"), /* @__PURE__ */ import_react114.default.createElement(Text2, { skin: "info" }, `cd ${folderName}`), /* @__PURE__ */ import_react114.default.createElement(Text2, { skin: "info" }, `${packageManager.getRunCmd()} dev`)), /* @__PURE__ */ import_react114.default.createElement(UnorderedList.Item, { marker: /* @__PURE__ */ import_react114.default.createElement(Learn, null) }, /* @__PURE__ */ import_react114.default.createElement(Text2, null, "For guides and API references visit our"), /* @__PURE__ */ import_react114.default.createElement(Link, { skin: "info", url: "https://dev.wix.com/docs/go-headless" }, "documentation")), /* @__PURE__ */ import_react114.default.createElement(UnorderedList.Item, { marker: "\u{1F4AC}" }, /* @__PURE__ */ import_react114.default.createElement(Text2, null, "Join our"), /* @__PURE__ */ import_react114.default.createElement(Link, { skin: "info", url: "https://discord.gg/wixstudio" }, "Discord community")))
|
|
117323
117477
|
);
|
|
117324
117478
|
};
|
|
117325
117479
|
|
|
@@ -117375,7 +117529,7 @@ var ReleaseProject = ({
|
|
|
117375
117529
|
releaseNonInteractive
|
|
117376
117530
|
}) => {
|
|
117377
117531
|
const { status, execute } = useReleaseProject();
|
|
117378
|
-
(0,
|
|
117532
|
+
(0, import_react115.useEffect)(() => {
|
|
117379
117533
|
if (releaseNonInteractive != null) {
|
|
117380
117534
|
void execute({
|
|
117381
117535
|
confirmed: releaseNonInteractive,
|
|
@@ -117385,7 +117539,7 @@ var ReleaseProject = ({
|
|
|
117385
117539
|
});
|
|
117386
117540
|
}
|
|
117387
117541
|
}, []);
|
|
117388
|
-
return /* @__PURE__ */
|
|
117542
|
+
return /* @__PURE__ */ import_react115.default.createElement(import_react115.default.Fragment, null, releaseNonInteractive == null && /* @__PURE__ */ import_react115.default.createElement(Box_default, { marginLeft: -2, marginBottom: 1 }, /* @__PURE__ */ import_react115.default.createElement(
|
|
117389
117543
|
ConfirmInput,
|
|
117390
117544
|
{
|
|
117391
117545
|
label: "Would you like to publish your site now?",
|
|
@@ -117402,11 +117556,11 @@ var ReleaseProject = ({
|
|
|
117402
117556
|
)), (0, import_variant41.match)(status, {
|
|
117403
117557
|
NotRequested: () => null,
|
|
117404
117558
|
Success: ({ result }) => {
|
|
117405
|
-
return /* @__PURE__ */
|
|
117406
|
-
Success: () => /* @__PURE__ */
|
|
117407
|
-
Skipped: () => /* @__PURE__ */
|
|
117408
|
-
Error: () => /* @__PURE__ */
|
|
117409
|
-
}), /* @__PURE__ */
|
|
117559
|
+
return /* @__PURE__ */ import_react115.default.createElement(import_react115.default.Fragment, null, (0, import_variant41.match)(result, {
|
|
117560
|
+
Success: () => /* @__PURE__ */ import_react115.default.createElement(Box_default, { marginLeft: -2 }, /* @__PURE__ */ import_react115.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react115.default.createElement(Badge, { skin: "success" }, "Success"), " ", /* @__PURE__ */ import_react115.default.createElement(Text2, null, "Site published successfully"))),
|
|
117561
|
+
Skipped: () => /* @__PURE__ */ import_react115.default.createElement(Text2, null, `No worries, you can publish your site later by running ${packageManager.getRunCmd()} release`),
|
|
117562
|
+
Error: () => /* @__PURE__ */ import_react115.default.createElement(Box_default, { flexDirection: "column", gap: 1 }, /* @__PURE__ */ import_react115.default.createElement(Alert, { type: "error" }, "Failed to publish your site"), /* @__PURE__ */ import_react115.default.createElement(Text2, null, `No worries, you can publish your site later by running ${packageManager.getRunCmd()} release`))
|
|
117563
|
+
}), /* @__PURE__ */ import_react115.default.createElement(
|
|
117410
117564
|
FinishedSuccessfullyMessage2,
|
|
117411
117565
|
{
|
|
117412
117566
|
packageManager,
|
|
@@ -117417,7 +117571,7 @@ var ReleaseProject = ({
|
|
|
117417
117571
|
));
|
|
117418
117572
|
},
|
|
117419
117573
|
Error: () => null,
|
|
117420
|
-
Loading: () => /* @__PURE__ */
|
|
117574
|
+
Loading: () => /* @__PURE__ */ import_react115.default.createElement(Spinner2, { text: "Publishing your site..." })
|
|
117421
117575
|
}));
|
|
117422
117576
|
};
|
|
117423
117577
|
|
|
@@ -117431,16 +117585,16 @@ var CreateHeadlessSiteCommand = ({
|
|
|
117431
117585
|
businessName: defaultBusinessName,
|
|
117432
117586
|
cloudProvider
|
|
117433
117587
|
}) => {
|
|
117434
|
-
const [businessName, setBusinessName] = (0,
|
|
117588
|
+
const [businessName, setBusinessName] = (0, import_react116.useState)(
|
|
117435
117589
|
defaultBusinessName
|
|
117436
117590
|
);
|
|
117437
|
-
const [selectedTemplate, setSelectedTemplate] = (0,
|
|
117438
|
-
const [folderName, setFolderName] = (0,
|
|
117591
|
+
const [selectedTemplate, setSelectedTemplate] = (0, import_react116.useState)(defaultTemplate);
|
|
117592
|
+
const [folderName, setFolderName] = (0, import_react116.useState)(
|
|
117439
117593
|
defaultProjectName
|
|
117440
117594
|
);
|
|
117441
|
-
const [businessId, setBusinessId] = (0,
|
|
117442
|
-
const [projectData, setProjectData] = (0,
|
|
117443
|
-
const [generationDone, setGenerationDone] = (0,
|
|
117595
|
+
const [businessId, setBusinessId] = (0, import_react116.useState)();
|
|
117596
|
+
const [projectData, setProjectData] = (0, import_react116.useState)();
|
|
117597
|
+
const [generationDone, setGenerationDone] = (0, import_react116.useState)(false);
|
|
117444
117598
|
const { status } = useAsync2(async () => {
|
|
117445
117599
|
const repoType = await getRepoType(targetParentFolder2);
|
|
117446
117600
|
const packageManager = await createPackageManager(repoType);
|
|
@@ -117449,9 +117603,9 @@ var CreateHeadlessSiteCommand = ({
|
|
|
117449
117603
|
}, []);
|
|
117450
117604
|
return (0, import_variant42.match)(status, {
|
|
117451
117605
|
Error: () => null,
|
|
117452
|
-
Loading: () => /* @__PURE__ */
|
|
117606
|
+
Loading: () => /* @__PURE__ */ import_react116.default.createElement(Spinner2, { text: "Loading..." }),
|
|
117453
117607
|
Success: ({ result: { packageManager, repoType } }) => {
|
|
117454
|
-
return /* @__PURE__ */
|
|
117608
|
+
return /* @__PURE__ */ import_react116.default.createElement(
|
|
117455
117609
|
Box_default,
|
|
117456
117610
|
{
|
|
117457
117611
|
flexDirection: "column",
|
|
@@ -117462,14 +117616,14 @@ var CreateHeadlessSiteCommand = ({
|
|
|
117462
117616
|
borderTop: false,
|
|
117463
117617
|
paddingLeft: 1
|
|
117464
117618
|
},
|
|
117465
|
-
/* @__PURE__ */
|
|
117466
|
-
!defaultBusinessName && /* @__PURE__ */
|
|
117619
|
+
/* @__PURE__ */ import_react116.default.createElement(WelcomeMessage, null),
|
|
117620
|
+
!defaultBusinessName && /* @__PURE__ */ import_react116.default.createElement(
|
|
117467
117621
|
ChooseBusinessName,
|
|
117468
117622
|
{
|
|
117469
117623
|
onSubmit: ({ businessName: businessName2 }) => setBusinessName(businessName2)
|
|
117470
117624
|
}
|
|
117471
117625
|
),
|
|
117472
|
-
!defaultTemplate && businessName && /* @__PURE__ */
|
|
117626
|
+
!defaultTemplate && businessName && /* @__PURE__ */ import_react116.default.createElement(
|
|
117473
117627
|
ChooseTemplate,
|
|
117474
117628
|
{
|
|
117475
117629
|
onSubmit: ({ template }) => {
|
|
@@ -117477,7 +117631,7 @@ var CreateHeadlessSiteCommand = ({
|
|
|
117477
117631
|
}
|
|
117478
117632
|
}
|
|
117479
117633
|
),
|
|
117480
|
-
businessName && selectedTemplate && /* @__PURE__ */
|
|
117634
|
+
businessName && selectedTemplate && /* @__PURE__ */ import_react116.default.createElement(AccountAuthProvider, null, /* @__PURE__ */ import_react116.default.createElement(
|
|
117481
117635
|
CreateBusiness,
|
|
117482
117636
|
{
|
|
117483
117637
|
businessName,
|
|
@@ -117485,7 +117639,7 @@ var CreateHeadlessSiteCommand = ({
|
|
|
117485
117639
|
onDone: ({ businessId: businessId2 }) => setBusinessId(businessId2)
|
|
117486
117640
|
}
|
|
117487
117641
|
)),
|
|
117488
|
-
businessName && selectedTemplate && businessId && /* @__PURE__ */
|
|
117642
|
+
businessName && selectedTemplate && businessId && /* @__PURE__ */ import_react116.default.createElement(SiteAuthProvider, { siteId: businessId }, /* @__PURE__ */ import_react116.default.createElement(
|
|
117489
117643
|
CreateProject,
|
|
117490
117644
|
{
|
|
117491
117645
|
businessId,
|
|
@@ -117494,7 +117648,7 @@ var CreateHeadlessSiteCommand = ({
|
|
|
117494
117648
|
onSubmit: (data) => setProjectData(data)
|
|
117495
117649
|
}
|
|
117496
117650
|
)),
|
|
117497
|
-
!defaultProjectName && businessName && selectedTemplate && businessId && projectData && /* @__PURE__ */
|
|
117651
|
+
!defaultProjectName && businessName && selectedTemplate && businessId && projectData && /* @__PURE__ */ import_react116.default.createElement(
|
|
117498
117652
|
ChooseFolder,
|
|
117499
117653
|
{
|
|
117500
117654
|
initialFolderName: projectData.projectName,
|
|
@@ -117502,7 +117656,7 @@ var CreateHeadlessSiteCommand = ({
|
|
|
117502
117656
|
onSubmit: ({ folderName: folderName2 }) => setFolderName(folderName2)
|
|
117503
117657
|
}
|
|
117504
117658
|
),
|
|
117505
|
-
businessName && selectedTemplate && businessId && projectData && folderName && /* @__PURE__ */
|
|
117659
|
+
businessName && selectedTemplate && businessId && projectData && folderName && /* @__PURE__ */ import_react116.default.createElement(
|
|
117506
117660
|
GenerateProject2,
|
|
117507
117661
|
{
|
|
117508
117662
|
folderName,
|
|
@@ -117516,7 +117670,7 @@ var CreateHeadlessSiteCommand = ({
|
|
|
117516
117670
|
onDone: (isDone) => setGenerationDone(isDone)
|
|
117517
117671
|
}
|
|
117518
117672
|
),
|
|
117519
|
-
businessName && selectedTemplate && businessId && projectData && folderName && generationDone && /* @__PURE__ */
|
|
117673
|
+
businessName && selectedTemplate && businessId && projectData && folderName && generationDone && /* @__PURE__ */ import_react116.default.createElement(
|
|
117520
117674
|
ReleaseProject,
|
|
117521
117675
|
{
|
|
117522
117676
|
folderName,
|
|
@@ -117556,11 +117710,11 @@ var ProcessCommand = ({ targetParentFolder: targetParentFolder2, commandOptions
|
|
|
117556
117710
|
}, []);
|
|
117557
117711
|
return (0, import_variant43.match)(status, {
|
|
117558
117712
|
Error: () => null,
|
|
117559
|
-
Loading: () => /* @__PURE__ */
|
|
117713
|
+
Loading: () => /* @__PURE__ */ import_react117.default.createElement(Spinner2, { text: "Loading..." }),
|
|
117560
117714
|
Success: ({
|
|
117561
117715
|
result: { template, projectName, businessName, cloudProvider, publish }
|
|
117562
117716
|
}) => {
|
|
117563
|
-
return /* @__PURE__ */
|
|
117717
|
+
return /* @__PURE__ */ import_react117.default.createElement(
|
|
117564
117718
|
CreateHeadlessSiteCommand,
|
|
117565
117719
|
{
|
|
117566
117720
|
targetParentFolder: targetParentFolder2,
|
|
@@ -117621,7 +117775,7 @@ program2.command("link").description("Link current project to use Wix as deploym
|
|
|
117621
117775
|
const commandStatus = reportCommandStartEvent2(command);
|
|
117622
117776
|
try {
|
|
117623
117777
|
await render2(
|
|
117624
|
-
/* @__PURE__ */
|
|
117778
|
+
/* @__PURE__ */ import_react118.default.createElement(BiProvider, { value: biLogger }, /* @__PURE__ */ import_react118.default.createElement(ErrorReporterProvider, { value: errorReporter }, /* @__PURE__ */ import_react118.default.createElement(PanoramaProvider, { value: panorama }, /* @__PURE__ */ import_react118.default.createElement(
|
|
117625
117779
|
LinkCommand,
|
|
117626
117780
|
{
|
|
117627
117781
|
projectName: options.projectName,
|
|
@@ -117705,7 +117859,7 @@ program2.command("init", { isDefault: true }).description("Create headless site"
|
|
|
117705
117859
|
const commandStatus = reportCommandStartEvent2(command);
|
|
117706
117860
|
try {
|
|
117707
117861
|
await render2(
|
|
117708
|
-
/* @__PURE__ */
|
|
117862
|
+
/* @__PURE__ */ import_react118.default.createElement(BiProvider, { value: biLogger }, /* @__PURE__ */ import_react118.default.createElement(ErrorReporterProvider, { value: errorReporter }, /* @__PURE__ */ import_react118.default.createElement(PanoramaProvider, { value: panorama }, /* @__PURE__ */ import_react118.default.createElement(
|
|
117709
117863
|
ProcessCommand,
|
|
117710
117864
|
{
|
|
117711
117865
|
targetParentFolder,
|