@wix/create-headless-site 0.0.19 → 0.0.20
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 +1264 -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.20",
|
|
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();
|
|
@@ -105947,6 +106083,9 @@ function createAppProject(payload5) {
|
|
|
105947
106083
|
entityFqdn: "wix.velo.backend.v1.app_project",
|
|
105948
106084
|
method: "POST",
|
|
105949
106085
|
methodFqn: "wix.velo.backend.v1.AppProjectLifecycle.CreateAppProject",
|
|
106086
|
+
migrationOptions: {
|
|
106087
|
+
optInTransformResponse: true
|
|
106088
|
+
},
|
|
105950
106089
|
url: resolveWixVeloBackendV1AppProjectLifecycleUrl({
|
|
105951
106090
|
protoPath: "/v1/app-projects",
|
|
105952
106091
|
data: serializedData,
|
|
@@ -106130,46 +106269,46 @@ var WebhookIdentityType4;
|
|
|
106130
106269
|
})(WebhookIdentityType4 || (WebhookIdentityType4 = {}));
|
|
106131
106270
|
|
|
106132
106271
|
// ../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:
|
|
106272
|
+
var staticFileMetadata = external_exports.object({
|
|
106273
|
+
path: external_exports.string(),
|
|
106274
|
+
hash: external_exports.string(),
|
|
106275
|
+
size: external_exports.number().optional(),
|
|
106276
|
+
contentType: external_exports.string()
|
|
106277
|
+
});
|
|
106278
|
+
var StaticFileUploadUrlSchema = external_exports.object({
|
|
106279
|
+
uploadUrl: external_exports.string().url(),
|
|
106141
106280
|
staticFileMetadata
|
|
106142
106281
|
});
|
|
106143
|
-
var AppDeploymentSchema =
|
|
106144
|
-
id:
|
|
106145
|
-
deploymentBaseUrl:
|
|
106146
|
-
cloudProviderOverride:
|
|
106282
|
+
var AppDeploymentSchema = external_exports.object({
|
|
106283
|
+
id: external_exports.string().uuid(),
|
|
106284
|
+
deploymentBaseUrl: external_exports.string(),
|
|
106285
|
+
cloudProviderOverride: external_exports.nativeEnum(CloudProvider2)
|
|
106147
106286
|
}).passthrough();
|
|
106148
|
-
var CompleteAppDeploymentSchema =
|
|
106287
|
+
var CompleteAppDeploymentSchema = external_exports.object({
|
|
106149
106288
|
appDeployment: AppDeploymentSchema
|
|
106150
106289
|
});
|
|
106151
|
-
var AppEnvironmentSchema =
|
|
106152
|
-
appEnvironment:
|
|
106153
|
-
id:
|
|
106154
|
-
variables:
|
|
106155
|
-
secrets:
|
|
106290
|
+
var AppEnvironmentSchema = external_exports.object({
|
|
106291
|
+
appEnvironment: external_exports.object({
|
|
106292
|
+
id: external_exports.string(),
|
|
106293
|
+
variables: external_exports.record(external_exports.string()),
|
|
106294
|
+
secrets: external_exports.record(external_exports.string())
|
|
106156
106295
|
}).passthrough()
|
|
106157
106296
|
});
|
|
106158
|
-
var CreateAppProjectSchema =
|
|
106159
|
-
appProject:
|
|
106160
|
-
id:
|
|
106161
|
-
baseUrl:
|
|
106297
|
+
var CreateAppProjectSchema = external_exports.object({
|
|
106298
|
+
appProject: external_exports.object({
|
|
106299
|
+
id: external_exports.string().uuid(),
|
|
106300
|
+
baseUrl: external_exports.string().url()
|
|
106162
106301
|
})
|
|
106163
106302
|
});
|
|
106164
|
-
var CreateAppDeploymentSchema =
|
|
106165
|
-
staticFilesUploadUrls:
|
|
106166
|
-
uploadAuthToken:
|
|
106303
|
+
var CreateAppDeploymentSchema = external_exports.object({
|
|
106304
|
+
staticFilesUploadUrls: external_exports.array(StaticFileUploadUrlSchema).optional(),
|
|
106305
|
+
uploadAuthToken: external_exports.string().optional(),
|
|
106167
106306
|
appDeployment: AppDeploymentSchema.optional()
|
|
106168
106307
|
});
|
|
106169
|
-
var StaticFileUploadSchema =
|
|
106170
|
-
result:
|
|
106308
|
+
var StaticFileUploadSchema = external_exports.object({
|
|
106309
|
+
result: external_exports.object({
|
|
106171
106310
|
// The `jwt` field is optional because it is only returned in the last file upload.
|
|
106172
|
-
jwt:
|
|
106311
|
+
jwt: external_exports.string().optional()
|
|
106173
106312
|
}).optional()
|
|
106174
106313
|
}).passthrough();
|
|
106175
106314
|
|
|
@@ -106366,7 +106505,7 @@ var BackendAsAServiceClient = class {
|
|
|
106366
106505
|
// ../backend-as-a-service-client/src/useBackendAsAServiceClient.ts
|
|
106367
106506
|
function useBackendAsAServiceClient() {
|
|
106368
106507
|
const httpClient = useHttpClient({ type: "backoffice" });
|
|
106369
|
-
const client2 = (0,
|
|
106508
|
+
const client2 = (0, import_react104.useMemo)(
|
|
106370
106509
|
() => new BackendAsAServiceClient(httpClient),
|
|
106371
106510
|
[httpClient]
|
|
106372
106511
|
);
|
|
@@ -106447,17 +106586,17 @@ var CreateProject = ({
|
|
|
106447
106586
|
cloudProvider
|
|
106448
106587
|
}) => {
|
|
106449
106588
|
const { status, execute } = useCreateProject(businessId);
|
|
106450
|
-
(0,
|
|
106589
|
+
(0, import_react105.useEffect)(() => {
|
|
106451
106590
|
if ((0, import_variant31.isType)(status, "Success")) {
|
|
106452
106591
|
onSubmit(status.result);
|
|
106453
106592
|
}
|
|
106454
106593
|
}, [status, onSubmit]);
|
|
106455
|
-
(0,
|
|
106594
|
+
(0, import_react105.useEffect)(() => {
|
|
106456
106595
|
if (providedProjectName) {
|
|
106457
106596
|
void execute({ projectName: providedProjectName, cloudProvider });
|
|
106458
106597
|
}
|
|
106459
106598
|
}, [providedProjectName, cloudProvider, execute]);
|
|
106460
|
-
const validate3 = (0,
|
|
106599
|
+
const validate3 = (0, import_react105.useCallback)(async (projectName) => {
|
|
106461
106600
|
try {
|
|
106462
106601
|
validateProjectName(projectName);
|
|
106463
106602
|
return true;
|
|
@@ -106465,7 +106604,7 @@ var CreateProject = ({
|
|
|
106465
106604
|
return e2.message;
|
|
106466
106605
|
}
|
|
106467
106606
|
}, []);
|
|
106468
|
-
return /* @__PURE__ */
|
|
106607
|
+
return /* @__PURE__ */ import_react105.default.createElement(import_react105.default.Fragment, null, !providedProjectName && /* @__PURE__ */ import_react105.default.createElement(
|
|
106469
106608
|
TextInput2,
|
|
106470
106609
|
{
|
|
106471
106610
|
label: "What's the name of your Custom Frontend project?",
|
|
@@ -106475,47 +106614,47 @@ var CreateProject = ({
|
|
|
106475
106614
|
}
|
|
106476
106615
|
), (0, import_variant31.match)(status, {
|
|
106477
106616
|
Error: () => null,
|
|
106478
|
-
Loading: () => /* @__PURE__ */
|
|
106479
|
-
Success: () => /* @__PURE__ */
|
|
106617
|
+
Loading: () => /* @__PURE__ */ import_react105.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react105.default.createElement(Spinner2, { text: "Creating your project..." })),
|
|
106618
|
+
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
106619
|
NotRequested: () => null
|
|
106481
106620
|
}));
|
|
106482
106621
|
};
|
|
106483
106622
|
|
|
106484
106623
|
// src/components/LinkCommand/GenerateProject.tsx
|
|
106485
106624
|
init_esm_shims();
|
|
106486
|
-
var
|
|
106625
|
+
var import_react108 = __toESM(require_react(), 1);
|
|
106487
106626
|
var import_variant34 = __toESM(require_lib(), 1);
|
|
106488
106627
|
|
|
106489
106628
|
// ../cli-astro-definitions/src/index.ts
|
|
106490
106629
|
init_esm_shims();
|
|
106491
106630
|
import { join as join11 } from "node:path";
|
|
106492
106631
|
var ENV_FILE_NAME = ".env.local";
|
|
106493
|
-
var wixAstroConfigSchema =
|
|
106494
|
-
$schema:
|
|
106495
|
-
appId:
|
|
106496
|
-
siteId:
|
|
106632
|
+
var wixAstroConfigSchema = zod_default.object({
|
|
106633
|
+
$schema: zod_default.string().optional(),
|
|
106634
|
+
appId: zod_default.string().uuid(),
|
|
106635
|
+
siteId: zod_default.string().uuid()
|
|
106497
106636
|
}).strict();
|
|
106498
|
-
var buildMetadataSchema =
|
|
106499
|
-
appManifestPath:
|
|
106500
|
-
outDir:
|
|
106501
|
-
clientDir:
|
|
106502
|
-
serverDir:
|
|
106503
|
-
});
|
|
106504
|
-
var deploymentTopologyEnvironmentSchema =
|
|
106505
|
-
id:
|
|
106506
|
-
site:
|
|
106507
|
-
main:
|
|
106637
|
+
var buildMetadataSchema = zod_default.object({
|
|
106638
|
+
appManifestPath: zod_default.string(),
|
|
106639
|
+
outDir: zod_default.string(),
|
|
106640
|
+
clientDir: zod_default.string(),
|
|
106641
|
+
serverDir: zod_default.string().optional()
|
|
106642
|
+
});
|
|
106643
|
+
var deploymentTopologyEnvironmentSchema = zod_default.object({
|
|
106644
|
+
id: zod_default.string().describe("Unique ARM tag identifier"),
|
|
106645
|
+
site: zod_default.object({
|
|
106646
|
+
main: zod_default.string().url().describe("Main site URL")
|
|
106508
106647
|
}).describe("Site topology details").required(),
|
|
106509
|
-
dashboard:
|
|
106510
|
-
main:
|
|
106648
|
+
dashboard: zod_default.object({
|
|
106649
|
+
main: zod_default.string().url().describe("Main dashboard URL (link to a business manager dashboard)")
|
|
106511
106650
|
}).describe("Optional dashboard topology details").optional()
|
|
106512
106651
|
});
|
|
106513
|
-
var deploymentTopologyEnvironmentTypeSchema =
|
|
106652
|
+
var deploymentTopologyEnvironmentTypeSchema = zod_default.enum([
|
|
106514
106653
|
"production",
|
|
106515
106654
|
"preview",
|
|
106516
106655
|
"development"
|
|
106517
106656
|
]);
|
|
106518
|
-
var deploymentTopologySchema =
|
|
106657
|
+
var deploymentTopologySchema = zod_default.record(
|
|
106519
106658
|
deploymentTopologyEnvironmentTypeSchema,
|
|
106520
106659
|
deploymentTopologyEnvironmentSchema
|
|
106521
106660
|
);
|
|
@@ -115576,9 +115715,9 @@ import { join as join14 } from "node:path";
|
|
|
115576
115715
|
|
|
115577
115716
|
// ../gena/src/dependencies-updater.ts
|
|
115578
115717
|
init_esm_shims();
|
|
115579
|
-
var dependenciesJsonSchema =
|
|
115580
|
-
dependencies:
|
|
115581
|
-
devDependencies:
|
|
115718
|
+
var dependenciesJsonSchema = external_exports.object({
|
|
115719
|
+
dependencies: external_exports.record(external_exports.string()).optional(),
|
|
115720
|
+
devDependencies: external_exports.record(external_exports.string()).optional()
|
|
115582
115721
|
});
|
|
115583
115722
|
async function readDependenciesJson(filePath) {
|
|
115584
115723
|
const json = await readJson(filePath);
|
|
@@ -115916,7 +116055,7 @@ async function getUniqueExtensionPath(projectFolder, extensionPath, suffix) {
|
|
|
115916
116055
|
|
|
115917
116056
|
// src/task-runner.ts
|
|
115918
116057
|
init_esm_shims();
|
|
115919
|
-
var
|
|
116058
|
+
var import_react106 = __toESM(require_react(), 1);
|
|
115920
116059
|
var import_variant33 = __toESM(require_lib(), 1);
|
|
115921
116060
|
var TaskRunnerStatus = (0, import_variant33.variant)({
|
|
115922
116061
|
Idle: {},
|
|
@@ -115942,7 +116081,7 @@ var TaskRunnerStatus = (0, import_variant33.variant)({
|
|
|
115942
116081
|
}
|
|
115943
116082
|
});
|
|
115944
116083
|
function useTaskRunner() {
|
|
115945
|
-
const [status, setStatus] = (0,
|
|
116084
|
+
const [status, setStatus] = (0, import_react106.useState)(
|
|
115946
116085
|
TaskRunnerStatus.Idle()
|
|
115947
116086
|
);
|
|
115948
116087
|
const { execute } = useAsyncCallback3(async (_2, tasks) => {
|
|
@@ -115962,25 +116101,25 @@ function useTaskRunner() {
|
|
|
115962
116101
|
|
|
115963
116102
|
// src/components/TaskList.tsx
|
|
115964
116103
|
init_esm_shims();
|
|
115965
|
-
var
|
|
116104
|
+
var import_react107 = __toESM(require_react(), 1);
|
|
115966
116105
|
var TaskList = ({ tasks, totalTaskCount }) => {
|
|
115967
|
-
return /* @__PURE__ */
|
|
116106
|
+
return /* @__PURE__ */ import_react107.default.createElement(import_react107.default.Fragment, null, tasks.map((task, index) => {
|
|
115968
116107
|
const stepper = `[${index + 1}/${totalTaskCount}]`;
|
|
115969
116108
|
const fullText = `${stepper} ${task.text}`;
|
|
115970
116109
|
if (task.status === "running") {
|
|
115971
|
-
return /* @__PURE__ */
|
|
116110
|
+
return /* @__PURE__ */ import_react107.default.createElement(Spinner2, { key: index, text: fullText });
|
|
115972
116111
|
}
|
|
115973
|
-
return /* @__PURE__ */
|
|
116112
|
+
return /* @__PURE__ */ import_react107.default.createElement(Alert, { key: index, type: "success" }, fullText);
|
|
115974
116113
|
}));
|
|
115975
116114
|
};
|
|
115976
116115
|
|
|
115977
116116
|
// src/components/LinkCommand/GenerateProject.tsx
|
|
115978
116117
|
var GenerationProgress = ({ tasks, totalTaskCount }) => {
|
|
115979
|
-
return /* @__PURE__ */
|
|
116118
|
+
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
116119
|
};
|
|
115981
116120
|
var GenerateProject = ({ projectFolder, businessId, projectData, onDone, packageManager }) => {
|
|
115982
116121
|
const { execute: executeTaskRunner, status: taskRunnerStatus } = useTaskRunner();
|
|
115983
|
-
const generateProject = (0,
|
|
116122
|
+
const generateProject = (0, import_react108.useCallback)(async () => {
|
|
115984
116123
|
const wixConfigFilePath = getWixConfigFilePath(projectFolder);
|
|
115985
116124
|
const envFilePath = getEnvFilePath(projectFolder);
|
|
115986
116125
|
await writeJson(
|
|
@@ -115993,10 +116132,10 @@ var GenerateProject = ({ projectFolder, businessId, projectData, onDone, package
|
|
|
115993
116132
|
);
|
|
115994
116133
|
await updateEnvFile(envFilePath, projectData.environmentVariables);
|
|
115995
116134
|
}, [businessId, projectFolder, projectData]);
|
|
115996
|
-
const extendProject = (0,
|
|
116135
|
+
const extendProject = (0, import_react108.useCallback)(async () => {
|
|
115997
116136
|
await extend2(projectFolder);
|
|
115998
116137
|
}, [projectFolder]);
|
|
115999
|
-
const installDependencies = (0,
|
|
116138
|
+
const installDependencies = (0, import_react108.useCallback)(async () => {
|
|
116000
116139
|
try {
|
|
116001
116140
|
await packageManager.runInstall(projectFolder);
|
|
116002
116141
|
} catch (e2) {
|
|
@@ -116006,7 +116145,7 @@ var GenerateProject = ({ projectFolder, businessId, projectData, onDone, package
|
|
|
116006
116145
|
});
|
|
116007
116146
|
}
|
|
116008
116147
|
}, [projectFolder, packageManager]);
|
|
116009
|
-
const tasks = (0,
|
|
116148
|
+
const tasks = (0, import_react108.useMemo)(() => {
|
|
116010
116149
|
const result = [
|
|
116011
116150
|
{
|
|
116012
116151
|
action: generateProject,
|
|
@@ -116032,16 +116171,16 @@ var GenerateProject = ({ projectFolder, businessId, projectData, onDone, package
|
|
|
116032
116171
|
}, []);
|
|
116033
116172
|
return (0, import_variant34.match)(taskRunnerStatus, {
|
|
116034
116173
|
Idle: () => null,
|
|
116035
|
-
Running: (status) => /* @__PURE__ */
|
|
116036
|
-
Done: (status) => /* @__PURE__ */
|
|
116174
|
+
Running: (status) => /* @__PURE__ */ import_react108.default.createElement(GenerationProgress, { ...status }),
|
|
116175
|
+
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
116176
|
});
|
|
116038
116177
|
};
|
|
116039
116178
|
|
|
116040
116179
|
// src/components/LinkCommand/FinishedSuccessfullyMessage.tsx
|
|
116041
116180
|
init_esm_shims();
|
|
116042
|
-
var
|
|
116181
|
+
var import_react109 = __toESM(require_react(), 1);
|
|
116043
116182
|
var FinishedSuccessfullyMessage = ({ packageManager }) => {
|
|
116044
|
-
return /* @__PURE__ */
|
|
116183
|
+
return /* @__PURE__ */ import_react109.default.createElement(
|
|
116045
116184
|
Box_default,
|
|
116046
116185
|
{
|
|
116047
116186
|
borderColor: "blue",
|
|
@@ -116053,8 +116192,8 @@ var FinishedSuccessfullyMessage = ({ packageManager }) => {
|
|
|
116053
116192
|
marginLeft: -2,
|
|
116054
116193
|
marginTop: 1
|
|
116055
116194
|
},
|
|
116056
|
-
/* @__PURE__ */
|
|
116057
|
-
/* @__PURE__ */
|
|
116195
|
+
/* @__PURE__ */ import_react109.default.createElement(Text2, { bold: true }, "Next Steps:"),
|
|
116196
|
+
/* @__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
116197
|
);
|
|
116059
116198
|
};
|
|
116060
116199
|
|
|
@@ -116075,10 +116214,10 @@ var LinkCommand = ({
|
|
|
116075
116214
|
projectName: preEnteredProjectName,
|
|
116076
116215
|
businessName: preEnteredBusinessName
|
|
116077
116216
|
}) => {
|
|
116078
|
-
const [businessName, setBusinessName] = (0,
|
|
116079
|
-
const [businessId, setBusinessId] = (0,
|
|
116080
|
-
const [projectData, setProjectData] = (0,
|
|
116081
|
-
const [isDone, setIsDone] = (0,
|
|
116217
|
+
const [businessName, setBusinessName] = (0, import_react110.useState)(preEnteredBusinessName);
|
|
116218
|
+
const [businessId, setBusinessId] = (0, import_react110.useState)();
|
|
116219
|
+
const [projectData, setProjectData] = (0, import_react110.useState)();
|
|
116220
|
+
const [isDone, setIsDone] = (0, import_react110.useState)(false);
|
|
116082
116221
|
const { status } = useAsync2(async () => {
|
|
116083
116222
|
const alreadyLinked = await isWixConfigExists(projectFolder);
|
|
116084
116223
|
if (alreadyLinked) {
|
|
@@ -116100,9 +116239,9 @@ var LinkCommand = ({
|
|
|
116100
116239
|
}, []);
|
|
116101
116240
|
return (0, import_variant35.match)(status, {
|
|
116102
116241
|
Error: () => null,
|
|
116103
|
-
Loading: () => /* @__PURE__ */
|
|
116242
|
+
Loading: () => /* @__PURE__ */ import_react110.default.createElement(Spinner2, { text: "Loading..." }),
|
|
116104
116243
|
Success: ({ result: { packageManager } }) => {
|
|
116105
|
-
return /* @__PURE__ */
|
|
116244
|
+
return /* @__PURE__ */ import_react110.default.createElement(
|
|
116106
116245
|
Box_default,
|
|
116107
116246
|
{
|
|
116108
116247
|
flexDirection: "column",
|
|
@@ -116113,14 +116252,14 @@ var LinkCommand = ({
|
|
|
116113
116252
|
borderTop: false,
|
|
116114
116253
|
paddingLeft: 1
|
|
116115
116254
|
},
|
|
116116
|
-
/* @__PURE__ */
|
|
116117
|
-
!preEnteredBusinessName && /* @__PURE__ */
|
|
116255
|
+
/* @__PURE__ */ import_react110.default.createElement(WelcomeMessage, null),
|
|
116256
|
+
!preEnteredBusinessName && /* @__PURE__ */ import_react110.default.createElement(
|
|
116118
116257
|
ChooseBusinessName,
|
|
116119
116258
|
{
|
|
116120
116259
|
onSubmit: ({ businessName: businessName2 }) => setBusinessName(businessName2)
|
|
116121
116260
|
}
|
|
116122
116261
|
),
|
|
116123
|
-
businessName && /* @__PURE__ */
|
|
116262
|
+
businessName && /* @__PURE__ */ import_react110.default.createElement(AccountAuthProvider, null, /* @__PURE__ */ import_react110.default.createElement(
|
|
116124
116263
|
CreateBusiness,
|
|
116125
116264
|
{
|
|
116126
116265
|
businessName,
|
|
@@ -116128,7 +116267,7 @@ var LinkCommand = ({
|
|
|
116128
116267
|
onDone: ({ businessId: businessId2 }) => setBusinessId(businessId2)
|
|
116129
116268
|
}
|
|
116130
116269
|
)),
|
|
116131
|
-
businessName && businessId && /* @__PURE__ */
|
|
116270
|
+
businessName && businessId && /* @__PURE__ */ import_react110.default.createElement(SiteAuthProvider, { siteId: businessId }, /* @__PURE__ */ import_react110.default.createElement(
|
|
116132
116271
|
CreateProject,
|
|
116133
116272
|
{
|
|
116134
116273
|
businessId,
|
|
@@ -116136,7 +116275,7 @@ var LinkCommand = ({
|
|
|
116136
116275
|
onSubmit: (data) => setProjectData(data)
|
|
116137
116276
|
}
|
|
116138
116277
|
)),
|
|
116139
|
-
businessName && businessId && projectData && /* @__PURE__ */
|
|
116278
|
+
businessName && businessId && projectData && /* @__PURE__ */ import_react110.default.createElement(
|
|
116140
116279
|
GenerateProject,
|
|
116141
116280
|
{
|
|
116142
116281
|
packageManager,
|
|
@@ -116146,7 +116285,7 @@ var LinkCommand = ({
|
|
|
116146
116285
|
onDone: () => setIsDone(true)
|
|
116147
116286
|
}
|
|
116148
116287
|
),
|
|
116149
|
-
businessName && businessId && projectData && isDone && /* @__PURE__ */
|
|
116288
|
+
businessName && businessId && projectData && isDone && /* @__PURE__ */ import_react110.default.createElement(FinishedSuccessfullyMessage, { packageManager })
|
|
116150
116289
|
);
|
|
116151
116290
|
}
|
|
116152
116291
|
});
|
|
@@ -116155,7 +116294,7 @@ var LinkCommand = ({
|
|
|
116155
116294
|
// src/validations/uuid.ts
|
|
116156
116295
|
init_esm_shims();
|
|
116157
116296
|
function validateUUID(value2) {
|
|
116158
|
-
const parsed =
|
|
116297
|
+
const parsed = external_exports.string().uuid().safeParse(value2);
|
|
116159
116298
|
if (parsed.success) {
|
|
116160
116299
|
return parsed.data;
|
|
116161
116300
|
}
|
|
@@ -116187,7 +116326,7 @@ var validateCloudProvider = (value2) => {
|
|
|
116187
116326
|
|
|
116188
116327
|
// src/validations/validate-template-params.ts
|
|
116189
116328
|
init_esm_shims();
|
|
116190
|
-
var schema2 =
|
|
116329
|
+
var schema2 = external_exports.string().transform((value2) => JSON.parse(value2)).pipe(external_exports.record(external_exports.unknown()));
|
|
116191
116330
|
function validateTemplateParams(value2) {
|
|
116192
116331
|
try {
|
|
116193
116332
|
return schema2.parse(value2);
|
|
@@ -116198,7 +116337,7 @@ function validateTemplateParams(value2) {
|
|
|
116198
116337
|
|
|
116199
116338
|
// src/components/ProcessCommand.tsx
|
|
116200
116339
|
init_esm_shims();
|
|
116201
|
-
var
|
|
116340
|
+
var import_react117 = __toESM(require_react(), 1);
|
|
116202
116341
|
var import_variant43 = __toESM(require_lib(), 1);
|
|
116203
116342
|
|
|
116204
116343
|
// src/parse-command-options.ts
|
|
@@ -117027,12 +117166,12 @@ async function parseCommandOptions(targetParentFolder2, options) {
|
|
|
117027
117166
|
|
|
117028
117167
|
// src/components/CreateHeadlessSiteCommand.tsx
|
|
117029
117168
|
init_esm_shims();
|
|
117030
|
-
var
|
|
117169
|
+
var import_react116 = __toESM(require_react(), 1);
|
|
117031
117170
|
var import_variant42 = __toESM(require_lib(), 1);
|
|
117032
117171
|
|
|
117033
117172
|
// src/components/ChooseFolder.tsx
|
|
117034
117173
|
init_esm_shims();
|
|
117035
|
-
var
|
|
117174
|
+
var import_react111 = __toESM(require_react(), 1);
|
|
117036
117175
|
var import_variant38 = __toESM(require_lib(), 1);
|
|
117037
117176
|
import { join as join18 } from "node:path";
|
|
117038
117177
|
var validateAppDirectory = async (targetParentFolder2, packageName) => {
|
|
@@ -117046,11 +117185,11 @@ var validateAppDirectory = async (targetParentFolder2, packageName) => {
|
|
|
117046
117185
|
});
|
|
117047
117186
|
};
|
|
117048
117187
|
var ChooseFolder = ({ initialFolderName, targetParentFolder: targetParentFolder2, onSubmit }) => {
|
|
117049
|
-
const validate3 = (0,
|
|
117188
|
+
const validate3 = (0, import_react111.useCallback)(
|
|
117050
117189
|
async (packageName) => validateAppDirectory(targetParentFolder2, packageName),
|
|
117051
117190
|
[targetParentFolder2]
|
|
117052
117191
|
);
|
|
117053
|
-
return /* @__PURE__ */
|
|
117192
|
+
return /* @__PURE__ */ import_react111.default.createElement(
|
|
117054
117193
|
TextInput2,
|
|
117055
117194
|
{
|
|
117056
117195
|
label: "In which directory do you want to create your application?",
|
|
@@ -117065,7 +117204,7 @@ var ChooseFolder = ({ initialFolderName, targetParentFolder: targetParentFolder2
|
|
|
117065
117204
|
// src/components/GenerateProject.tsx
|
|
117066
117205
|
init_esm_shims();
|
|
117067
117206
|
import { mkdir as mkdir3 } from "node:fs/promises";
|
|
117068
|
-
var
|
|
117207
|
+
var import_react112 = __toESM(require_react(), 1);
|
|
117069
117208
|
var import_variant39 = __toESM(require_lib(), 1);
|
|
117070
117209
|
import { join as join20 } from "node:path";
|
|
117071
117210
|
|
|
@@ -117110,7 +117249,7 @@ async function fetchTemplate(url2, path8 = ".") {
|
|
|
117110
117249
|
// src/components/GenerateProject.tsx
|
|
117111
117250
|
var headlessTemplatesGitUrl = "https://github.com/wix/headless-templates.git";
|
|
117112
117251
|
var GenerationProgress2 = ({ tasks, totalTaskCount }) => {
|
|
117113
|
-
return /* @__PURE__ */
|
|
117252
|
+
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
117253
|
};
|
|
117115
117254
|
var GenerateProject2 = ({
|
|
117116
117255
|
repoType,
|
|
@@ -117125,11 +117264,11 @@ var GenerateProject2 = ({
|
|
|
117125
117264
|
}) => {
|
|
117126
117265
|
const { reportError: reportError2 } = useErrorReporter();
|
|
117127
117266
|
const { execute: executeTaskRunner, status: taskRunnerStatus } = useTaskRunner();
|
|
117128
|
-
const packageFolder = (0,
|
|
117267
|
+
const packageFolder = (0, import_react112.useMemo)(
|
|
117129
117268
|
() => join20(targetParentFolder2, folderName),
|
|
117130
117269
|
[folderName, targetParentFolder2]
|
|
117131
117270
|
);
|
|
117132
|
-
const generateProject = (0,
|
|
117271
|
+
const generateProject = (0, import_react112.useCallback)(async () => {
|
|
117133
117272
|
try {
|
|
117134
117273
|
await mkdir3(packageFolder, { recursive: true });
|
|
117135
117274
|
} catch (e2) {
|
|
@@ -117170,7 +117309,7 @@ var GenerateProject2 = ({
|
|
|
117170
117309
|
selectedTemplate,
|
|
117171
117310
|
commandOptions.templateParams
|
|
117172
117311
|
]);
|
|
117173
|
-
const extendProject = (0,
|
|
117312
|
+
const extendProject = (0, import_react112.useCallback)(async () => {
|
|
117174
117313
|
await extend2(packageFolder);
|
|
117175
117314
|
try {
|
|
117176
117315
|
await addFilesFromTemplate(
|
|
@@ -117189,7 +117328,7 @@ var GenerateProject2 = ({
|
|
|
117189
117328
|
packageManager,
|
|
117190
117329
|
repoType
|
|
117191
117330
|
]);
|
|
117192
|
-
const initializeGit = (0,
|
|
117331
|
+
const initializeGit = (0, import_react112.useCallback)(async () => {
|
|
117193
117332
|
try {
|
|
117194
117333
|
await gitInit(packageFolder);
|
|
117195
117334
|
} catch (e2) {
|
|
@@ -117199,7 +117338,7 @@ var GenerateProject2 = ({
|
|
|
117199
117338
|
});
|
|
117200
117339
|
}
|
|
117201
117340
|
}, [packageFolder]);
|
|
117202
|
-
const installDependencies = (0,
|
|
117341
|
+
const installDependencies = (0, import_react112.useCallback)(async () => {
|
|
117203
117342
|
try {
|
|
117204
117343
|
await packageManager.runInstall(packageFolder);
|
|
117205
117344
|
} catch (e2) {
|
|
@@ -117209,7 +117348,7 @@ var GenerateProject2 = ({
|
|
|
117209
117348
|
});
|
|
117210
117349
|
}
|
|
117211
117350
|
}, [packageFolder, packageManager]);
|
|
117212
|
-
const commitToGit = (0,
|
|
117351
|
+
const commitToGit = (0, import_react112.useCallback)(async () => {
|
|
117213
117352
|
try {
|
|
117214
117353
|
await gitCommit(packageFolder);
|
|
117215
117354
|
} catch (e2) {
|
|
@@ -117219,7 +117358,7 @@ var GenerateProject2 = ({
|
|
|
117219
117358
|
});
|
|
117220
117359
|
}
|
|
117221
117360
|
}, [packageFolder]);
|
|
117222
|
-
const tasks = (0,
|
|
117361
|
+
const tasks = (0, import_react112.useMemo)(() => {
|
|
117223
117362
|
const result = [
|
|
117224
117363
|
{
|
|
117225
117364
|
action: generateProject,
|
|
@@ -117269,16 +117408,16 @@ var GenerateProject2 = ({
|
|
|
117269
117408
|
}, []);
|
|
117270
117409
|
return (0, import_variant39.match)(taskRunnerStatus, {
|
|
117271
117410
|
Idle: () => null,
|
|
117272
|
-
Running: (status) => /* @__PURE__ */
|
|
117273
|
-
Done: (status) => /* @__PURE__ */
|
|
117411
|
+
Running: (status) => /* @__PURE__ */ import_react112.default.createElement(GenerationProgress2, { ...status }),
|
|
117412
|
+
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
117413
|
});
|
|
117275
117414
|
};
|
|
117276
117415
|
|
|
117277
117416
|
// src/components/ChooseTemplate.tsx
|
|
117278
117417
|
init_esm_shims();
|
|
117279
|
-
var
|
|
117418
|
+
var import_react113 = __toESM(require_react(), 1);
|
|
117280
117419
|
var ChooseTemplate = ({ onSubmit }) => {
|
|
117281
|
-
const options = (0,
|
|
117420
|
+
const options = (0, import_react113.useMemo)(() => {
|
|
117282
117421
|
return headlessTemplates.map((template) => ({
|
|
117283
117422
|
key: template.siteTemplateId,
|
|
117284
117423
|
title: template.title,
|
|
@@ -117286,7 +117425,7 @@ var ChooseTemplate = ({ onSubmit }) => {
|
|
|
117286
117425
|
value: template
|
|
117287
117426
|
}));
|
|
117288
117427
|
}, []);
|
|
117289
|
-
return /* @__PURE__ */
|
|
117428
|
+
return /* @__PURE__ */ import_react113.default.createElement(
|
|
117290
117429
|
SelectInput2,
|
|
117291
117430
|
{
|
|
117292
117431
|
label: "Choose an initial template for your business",
|
|
@@ -117298,14 +117437,14 @@ var ChooseTemplate = ({ onSubmit }) => {
|
|
|
117298
117437
|
|
|
117299
117438
|
// src/components/ReleaseProject.tsx
|
|
117300
117439
|
init_esm_shims();
|
|
117301
|
-
var
|
|
117440
|
+
var import_react115 = __toESM(require_react(), 1);
|
|
117302
117441
|
var import_variant41 = __toESM(require_lib(), 1);
|
|
117303
117442
|
|
|
117304
117443
|
// src/components/FinishedSuccessfullyMessage.tsx
|
|
117305
117444
|
init_esm_shims();
|
|
117306
|
-
var
|
|
117445
|
+
var import_react114 = __toESM(require_react(), 1);
|
|
117307
117446
|
var FinishedSuccessfullyMessage2 = ({ packageManager, folderName, projectData, isReleased }) => {
|
|
117308
|
-
return /* @__PURE__ */
|
|
117447
|
+
return /* @__PURE__ */ import_react114.default.createElement(
|
|
117309
117448
|
Box_default,
|
|
117310
117449
|
{
|
|
117311
117450
|
borderColor: "blue",
|
|
@@ -117317,9 +117456,9 @@ var FinishedSuccessfullyMessage2 = ({ packageManager, folderName, projectData, i
|
|
|
117317
117456
|
marginLeft: -2,
|
|
117318
117457
|
marginTop: 1
|
|
117319
117458
|
},
|
|
117320
|
-
isReleased && /* @__PURE__ */
|
|
117321
|
-
/* @__PURE__ */
|
|
117322
|
-
/* @__PURE__ */
|
|
117459
|
+
isReleased && /* @__PURE__ */ import_react114.default.createElement(Text2, { bold: true }, /* @__PURE__ */ import_react114.default.createElement(Rocket, null), " Visit your site at: ", projectData.baseUrl),
|
|
117460
|
+
/* @__PURE__ */ import_react114.default.createElement(Text2, { bold: true }, "Next Steps:"),
|
|
117461
|
+
/* @__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
117462
|
);
|
|
117324
117463
|
};
|
|
117325
117464
|
|
|
@@ -117375,7 +117514,7 @@ var ReleaseProject = ({
|
|
|
117375
117514
|
releaseNonInteractive
|
|
117376
117515
|
}) => {
|
|
117377
117516
|
const { status, execute } = useReleaseProject();
|
|
117378
|
-
(0,
|
|
117517
|
+
(0, import_react115.useEffect)(() => {
|
|
117379
117518
|
if (releaseNonInteractive != null) {
|
|
117380
117519
|
void execute({
|
|
117381
117520
|
confirmed: releaseNonInteractive,
|
|
@@ -117385,7 +117524,7 @@ var ReleaseProject = ({
|
|
|
117385
117524
|
});
|
|
117386
117525
|
}
|
|
117387
117526
|
}, []);
|
|
117388
|
-
return /* @__PURE__ */
|
|
117527
|
+
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
117528
|
ConfirmInput,
|
|
117390
117529
|
{
|
|
117391
117530
|
label: "Would you like to publish your site now?",
|
|
@@ -117402,11 +117541,11 @@ var ReleaseProject = ({
|
|
|
117402
117541
|
)), (0, import_variant41.match)(status, {
|
|
117403
117542
|
NotRequested: () => null,
|
|
117404
117543
|
Success: ({ result }) => {
|
|
117405
|
-
return /* @__PURE__ */
|
|
117406
|
-
Success: () => /* @__PURE__ */
|
|
117407
|
-
Skipped: () => /* @__PURE__ */
|
|
117408
|
-
Error: () => /* @__PURE__ */
|
|
117409
|
-
}), /* @__PURE__ */
|
|
117544
|
+
return /* @__PURE__ */ import_react115.default.createElement(import_react115.default.Fragment, null, (0, import_variant41.match)(result, {
|
|
117545
|
+
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"))),
|
|
117546
|
+
Skipped: () => /* @__PURE__ */ import_react115.default.createElement(Text2, null, `No worries, you can publish your site later by running ${packageManager.getRunCmd()} release`),
|
|
117547
|
+
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`))
|
|
117548
|
+
}), /* @__PURE__ */ import_react115.default.createElement(
|
|
117410
117549
|
FinishedSuccessfullyMessage2,
|
|
117411
117550
|
{
|
|
117412
117551
|
packageManager,
|
|
@@ -117417,7 +117556,7 @@ var ReleaseProject = ({
|
|
|
117417
117556
|
));
|
|
117418
117557
|
},
|
|
117419
117558
|
Error: () => null,
|
|
117420
|
-
Loading: () => /* @__PURE__ */
|
|
117559
|
+
Loading: () => /* @__PURE__ */ import_react115.default.createElement(Spinner2, { text: "Publishing your site..." })
|
|
117421
117560
|
}));
|
|
117422
117561
|
};
|
|
117423
117562
|
|
|
@@ -117431,16 +117570,16 @@ var CreateHeadlessSiteCommand = ({
|
|
|
117431
117570
|
businessName: defaultBusinessName,
|
|
117432
117571
|
cloudProvider
|
|
117433
117572
|
}) => {
|
|
117434
|
-
const [businessName, setBusinessName] = (0,
|
|
117573
|
+
const [businessName, setBusinessName] = (0, import_react116.useState)(
|
|
117435
117574
|
defaultBusinessName
|
|
117436
117575
|
);
|
|
117437
|
-
const [selectedTemplate, setSelectedTemplate] = (0,
|
|
117438
|
-
const [folderName, setFolderName] = (0,
|
|
117576
|
+
const [selectedTemplate, setSelectedTemplate] = (0, import_react116.useState)(defaultTemplate);
|
|
117577
|
+
const [folderName, setFolderName] = (0, import_react116.useState)(
|
|
117439
117578
|
defaultProjectName
|
|
117440
117579
|
);
|
|
117441
|
-
const [businessId, setBusinessId] = (0,
|
|
117442
|
-
const [projectData, setProjectData] = (0,
|
|
117443
|
-
const [generationDone, setGenerationDone] = (0,
|
|
117580
|
+
const [businessId, setBusinessId] = (0, import_react116.useState)();
|
|
117581
|
+
const [projectData, setProjectData] = (0, import_react116.useState)();
|
|
117582
|
+
const [generationDone, setGenerationDone] = (0, import_react116.useState)(false);
|
|
117444
117583
|
const { status } = useAsync2(async () => {
|
|
117445
117584
|
const repoType = await getRepoType(targetParentFolder2);
|
|
117446
117585
|
const packageManager = await createPackageManager(repoType);
|
|
@@ -117449,9 +117588,9 @@ var CreateHeadlessSiteCommand = ({
|
|
|
117449
117588
|
}, []);
|
|
117450
117589
|
return (0, import_variant42.match)(status, {
|
|
117451
117590
|
Error: () => null,
|
|
117452
|
-
Loading: () => /* @__PURE__ */
|
|
117591
|
+
Loading: () => /* @__PURE__ */ import_react116.default.createElement(Spinner2, { text: "Loading..." }),
|
|
117453
117592
|
Success: ({ result: { packageManager, repoType } }) => {
|
|
117454
|
-
return /* @__PURE__ */
|
|
117593
|
+
return /* @__PURE__ */ import_react116.default.createElement(
|
|
117455
117594
|
Box_default,
|
|
117456
117595
|
{
|
|
117457
117596
|
flexDirection: "column",
|
|
@@ -117462,14 +117601,14 @@ var CreateHeadlessSiteCommand = ({
|
|
|
117462
117601
|
borderTop: false,
|
|
117463
117602
|
paddingLeft: 1
|
|
117464
117603
|
},
|
|
117465
|
-
/* @__PURE__ */
|
|
117466
|
-
!defaultBusinessName && /* @__PURE__ */
|
|
117604
|
+
/* @__PURE__ */ import_react116.default.createElement(WelcomeMessage, null),
|
|
117605
|
+
!defaultBusinessName && /* @__PURE__ */ import_react116.default.createElement(
|
|
117467
117606
|
ChooseBusinessName,
|
|
117468
117607
|
{
|
|
117469
117608
|
onSubmit: ({ businessName: businessName2 }) => setBusinessName(businessName2)
|
|
117470
117609
|
}
|
|
117471
117610
|
),
|
|
117472
|
-
!defaultTemplate && businessName && /* @__PURE__ */
|
|
117611
|
+
!defaultTemplate && businessName && /* @__PURE__ */ import_react116.default.createElement(
|
|
117473
117612
|
ChooseTemplate,
|
|
117474
117613
|
{
|
|
117475
117614
|
onSubmit: ({ template }) => {
|
|
@@ -117477,7 +117616,7 @@ var CreateHeadlessSiteCommand = ({
|
|
|
117477
117616
|
}
|
|
117478
117617
|
}
|
|
117479
117618
|
),
|
|
117480
|
-
businessName && selectedTemplate && /* @__PURE__ */
|
|
117619
|
+
businessName && selectedTemplate && /* @__PURE__ */ import_react116.default.createElement(AccountAuthProvider, null, /* @__PURE__ */ import_react116.default.createElement(
|
|
117481
117620
|
CreateBusiness,
|
|
117482
117621
|
{
|
|
117483
117622
|
businessName,
|
|
@@ -117485,7 +117624,7 @@ var CreateHeadlessSiteCommand = ({
|
|
|
117485
117624
|
onDone: ({ businessId: businessId2 }) => setBusinessId(businessId2)
|
|
117486
117625
|
}
|
|
117487
117626
|
)),
|
|
117488
|
-
businessName && selectedTemplate && businessId && /* @__PURE__ */
|
|
117627
|
+
businessName && selectedTemplate && businessId && /* @__PURE__ */ import_react116.default.createElement(SiteAuthProvider, { siteId: businessId }, /* @__PURE__ */ import_react116.default.createElement(
|
|
117489
117628
|
CreateProject,
|
|
117490
117629
|
{
|
|
117491
117630
|
businessId,
|
|
@@ -117494,7 +117633,7 @@ var CreateHeadlessSiteCommand = ({
|
|
|
117494
117633
|
onSubmit: (data) => setProjectData(data)
|
|
117495
117634
|
}
|
|
117496
117635
|
)),
|
|
117497
|
-
!defaultProjectName && businessName && selectedTemplate && businessId && projectData && /* @__PURE__ */
|
|
117636
|
+
!defaultProjectName && businessName && selectedTemplate && businessId && projectData && /* @__PURE__ */ import_react116.default.createElement(
|
|
117498
117637
|
ChooseFolder,
|
|
117499
117638
|
{
|
|
117500
117639
|
initialFolderName: projectData.projectName,
|
|
@@ -117502,7 +117641,7 @@ var CreateHeadlessSiteCommand = ({
|
|
|
117502
117641
|
onSubmit: ({ folderName: folderName2 }) => setFolderName(folderName2)
|
|
117503
117642
|
}
|
|
117504
117643
|
),
|
|
117505
|
-
businessName && selectedTemplate && businessId && projectData && folderName && /* @__PURE__ */
|
|
117644
|
+
businessName && selectedTemplate && businessId && projectData && folderName && /* @__PURE__ */ import_react116.default.createElement(
|
|
117506
117645
|
GenerateProject2,
|
|
117507
117646
|
{
|
|
117508
117647
|
folderName,
|
|
@@ -117516,7 +117655,7 @@ var CreateHeadlessSiteCommand = ({
|
|
|
117516
117655
|
onDone: (isDone) => setGenerationDone(isDone)
|
|
117517
117656
|
}
|
|
117518
117657
|
),
|
|
117519
|
-
businessName && selectedTemplate && businessId && projectData && folderName && generationDone && /* @__PURE__ */
|
|
117658
|
+
businessName && selectedTemplate && businessId && projectData && folderName && generationDone && /* @__PURE__ */ import_react116.default.createElement(
|
|
117520
117659
|
ReleaseProject,
|
|
117521
117660
|
{
|
|
117522
117661
|
folderName,
|
|
@@ -117556,11 +117695,11 @@ var ProcessCommand = ({ targetParentFolder: targetParentFolder2, commandOptions
|
|
|
117556
117695
|
}, []);
|
|
117557
117696
|
return (0, import_variant43.match)(status, {
|
|
117558
117697
|
Error: () => null,
|
|
117559
|
-
Loading: () => /* @__PURE__ */
|
|
117698
|
+
Loading: () => /* @__PURE__ */ import_react117.default.createElement(Spinner2, { text: "Loading..." }),
|
|
117560
117699
|
Success: ({
|
|
117561
117700
|
result: { template, projectName, businessName, cloudProvider, publish }
|
|
117562
117701
|
}) => {
|
|
117563
|
-
return /* @__PURE__ */
|
|
117702
|
+
return /* @__PURE__ */ import_react117.default.createElement(
|
|
117564
117703
|
CreateHeadlessSiteCommand,
|
|
117565
117704
|
{
|
|
117566
117705
|
targetParentFolder: targetParentFolder2,
|
|
@@ -117621,7 +117760,7 @@ program2.command("link").description("Link current project to use Wix as deploym
|
|
|
117621
117760
|
const commandStatus = reportCommandStartEvent2(command);
|
|
117622
117761
|
try {
|
|
117623
117762
|
await render2(
|
|
117624
|
-
/* @__PURE__ */
|
|
117763
|
+
/* @__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
117764
|
LinkCommand,
|
|
117626
117765
|
{
|
|
117627
117766
|
projectName: options.projectName,
|
|
@@ -117705,7 +117844,7 @@ program2.command("init", { isDefault: true }).description("Create headless site"
|
|
|
117705
117844
|
const commandStatus = reportCommandStartEvent2(command);
|
|
117706
117845
|
try {
|
|
117707
117846
|
await render2(
|
|
117708
|
-
/* @__PURE__ */
|
|
117847
|
+
/* @__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
117848
|
ProcessCommand,
|
|
117710
117849
|
{
|
|
117711
117850
|
targetParentFolder,
|