@wix/create-headless-site 0.0.6 → 0.0.8
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/{build-LO6DVUZE.js → build-6IMWAXMA.js} +3 -3
- package/build/{chunk-PYIAC2GK.js → chunk-4EFJZ3GQ.js} +3 -3
- package/build/chunk-4EFJZ3GQ.js.map +1 -0
- package/build/{chunk-XMTHMR2B.js → chunk-C4SUTB4O.js} +2 -2
- package/build/{chunk-XMTHMR2B.js.map → chunk-C4SUTB4O.js.map} +1 -1
- package/build/{chunk-YU54OBFT.js → chunk-Z4MHKCET.js} +2 -2
- package/build/{devtools-JB2HYTEA.js → devtools-ZMIKPDMD.js} +2 -2
- package/build/{esm-CPSMWZLI.js → esm-KPR2HWDF.js} +4 -4
- package/build/{esm-CPSMWZLI.js.map → esm-KPR2HWDF.js.map} +1 -1
- package/build/index.js +777 -297
- package/build/index.js.map +1 -1
- package/package.json +4 -4
- package/build/chunk-PYIAC2GK.js.map +0 -1
- /package/build/{build-LO6DVUZE.js.map → build-6IMWAXMA.js.map} +0 -0
- /package/build/{chunk-YU54OBFT.js.map → chunk-Z4MHKCET.js.map} +0 -0
- /package/build/{devtools-JB2HYTEA.js.map → devtools-ZMIKPDMD.js.map} +0 -0
package/build/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
metrics,
|
|
24
24
|
propagation,
|
|
25
25
|
trace
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-Z4MHKCET.js";
|
|
27
27
|
import {
|
|
28
28
|
LRUMap,
|
|
29
29
|
SDK_VERSION,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
stripUrlQueryAndFragment,
|
|
74
74
|
suppressTracing,
|
|
75
75
|
truncate
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-C4SUTB4O.js";
|
|
77
77
|
import {
|
|
78
78
|
__commonJS,
|
|
79
79
|
__dirname,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
__toCommonJS,
|
|
84
84
|
__toESM,
|
|
85
85
|
init_esm_shims
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-4EFJZ3GQ.js";
|
|
87
87
|
|
|
88
88
|
// ../../node_modules/react/cjs/react.production.min.js
|
|
89
89
|
var require_react_production_min = __commonJS({
|
|
@@ -6919,12 +6919,12 @@ var require_isType = __commonJS({
|
|
|
6919
6919
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6920
6920
|
exports.isTypeImpl = void 0;
|
|
6921
6921
|
function isTypeImpl(key) {
|
|
6922
|
-
function
|
|
6922
|
+
function isType13(instanceOrType, type) {
|
|
6923
6923
|
if (instanceOrType != void 0) {
|
|
6924
6924
|
if (typeof instanceOrType === "function" || typeof instanceOrType === "string") {
|
|
6925
6925
|
const typeArg = instanceOrType;
|
|
6926
6926
|
const typeStr = typeof typeArg === "string" ? typeArg : typeArg.output.type;
|
|
6927
|
-
return (o) =>
|
|
6927
|
+
return (o) => isType13(o, typeStr);
|
|
6928
6928
|
} else {
|
|
6929
6929
|
const instance2 = instanceOrType;
|
|
6930
6930
|
const typeStr = typeof type === "string" ? type : type.output.type;
|
|
@@ -6934,7 +6934,7 @@ var require_isType = __commonJS({
|
|
|
6934
6934
|
return false;
|
|
6935
6935
|
}
|
|
6936
6936
|
}
|
|
6937
|
-
return { isType:
|
|
6937
|
+
return { isType: isType13 };
|
|
6938
6938
|
}
|
|
6939
6939
|
exports.isTypeImpl = isTypeImpl;
|
|
6940
6940
|
}
|
|
@@ -7201,13 +7201,13 @@ var require_remote = __commonJS({
|
|
|
7201
7201
|
CompareResult2[CompareResult2["Greater"] = 1] = "Greater";
|
|
7202
7202
|
})(CompareResult = exports.CompareResult || (exports.CompareResult = {}));
|
|
7203
7203
|
function remoteImpl(key) {
|
|
7204
|
-
const { isType:
|
|
7204
|
+
const { isType: isType13 } = (0, isType_1.isTypeImpl)(key);
|
|
7205
7205
|
const { match: match20 } = (0, match_1.matchImpl)(key);
|
|
7206
7206
|
const { variantList } = (0, variant_1.variantImpl)(key);
|
|
7207
7207
|
function isFunctions(vmod) {
|
|
7208
7208
|
const keys = Object.keys(vmod);
|
|
7209
7209
|
return keys.reduce((acc, key2) => {
|
|
7210
|
-
return Object.assign(Object.assign({}, acc), { [key2]:
|
|
7210
|
+
return Object.assign(Object.assign({}, acc), { [key2]: isType13(key2) });
|
|
7211
7211
|
}, {});
|
|
7212
7212
|
}
|
|
7213
7213
|
function remote(vmod) {
|
|
@@ -7475,11 +7475,11 @@ var require_cosmos = __commonJS({
|
|
|
7475
7475
|
var typed_1 = require_typed();
|
|
7476
7476
|
var matcher_1 = require_matcher();
|
|
7477
7477
|
function variantCosmos({ key }) {
|
|
7478
|
-
const { isType:
|
|
7478
|
+
const { isType: isType13 } = (0, isType_1.isTypeImpl)(key);
|
|
7479
7479
|
const { flags } = (0, flags_1.flagsImpl)(key);
|
|
7480
7480
|
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
7481
7481
|
key,
|
|
7482
|
-
isType:
|
|
7482
|
+
isType: isType13,
|
|
7483
7483
|
flags
|
|
7484
7484
|
}, (0, isOfVariant_1.isOfVariantImpl)(key)), (0, match_1.matchImpl)(key)), (0, matcher_1.matcherImpl)(key)), (0, remote_1.remoteImpl)(key)), (0, typed_1.typedImpl)(key)), (0, types_1.typesImpl)(key)), (0, variant_1.variantImpl)(key));
|
|
7485
7485
|
}
|
|
@@ -8125,12 +8125,12 @@ var require_lodash = __commonJS({
|
|
|
8125
8125
|
Stack.prototype.has = stackHas;
|
|
8126
8126
|
Stack.prototype.set = stackSet;
|
|
8127
8127
|
function arrayLikeKeys(value2, inherited) {
|
|
8128
|
-
var isArr = isArray3(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2),
|
|
8128
|
+
var isArr = isArray3(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2), isType13 = !isArr && !isArg && !isBuff && isTypedArray(value2), skipIndexes = isArr || isArg || isBuff || isType13, result = skipIndexes ? baseTimes(value2.length, String) : [], length = result.length;
|
|
8129
8129
|
for (var key in value2) {
|
|
8130
8130
|
if ((inherited || hasOwnProperty3.call(value2, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
8131
8131
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
8132
8132
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
8133
|
-
|
|
8133
|
+
isType13 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
8134
8134
|
isIndex(key, length)))) {
|
|
8135
8135
|
result.push(key);
|
|
8136
8136
|
}
|
|
@@ -10651,6 +10651,7 @@ var require_extsprintf = __commonJS({
|
|
|
10651
10651
|
break;
|
|
10652
10652
|
case "d":
|
|
10653
10653
|
arg = Math.floor(arg);
|
|
10654
|
+
/*jsl:fallthru*/
|
|
10654
10655
|
case "f":
|
|
10655
10656
|
sign = sign && arg > 0 ? "+" : "";
|
|
10656
10657
|
ret += sign + doPad(
|
|
@@ -11395,11 +11396,11 @@ function __metadata(metadataKey, metadataValue) {
|
|
|
11395
11396
|
}
|
|
11396
11397
|
function __awaiter(thisArg, _arguments, P, generator2) {
|
|
11397
11398
|
function adopt(value2) {
|
|
11398
|
-
return value2 instanceof P ? value2 : new P(function(
|
|
11399
|
-
|
|
11399
|
+
return value2 instanceof P ? value2 : new P(function(resolve5) {
|
|
11400
|
+
resolve5(value2);
|
|
11400
11401
|
});
|
|
11401
11402
|
}
|
|
11402
|
-
return new (P || (P = Promise))(function(
|
|
11403
|
+
return new (P || (P = Promise))(function(resolve5, reject) {
|
|
11403
11404
|
function fulfilled(value2) {
|
|
11404
11405
|
try {
|
|
11405
11406
|
step(generator2.next(value2));
|
|
@@ -11415,7 +11416,7 @@ function __awaiter(thisArg, _arguments, P, generator2) {
|
|
|
11415
11416
|
}
|
|
11416
11417
|
}
|
|
11417
11418
|
function step(result) {
|
|
11418
|
-
result.done ?
|
|
11419
|
+
result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
11419
11420
|
}
|
|
11420
11421
|
step((generator2 = generator2.apply(thisArg, _arguments || [])).next());
|
|
11421
11422
|
});
|
|
@@ -11606,14 +11607,14 @@ function __asyncValues(o) {
|
|
|
11606
11607
|
}, i2);
|
|
11607
11608
|
function verb(n3) {
|
|
11608
11609
|
i2[n3] = o[n3] && function(v) {
|
|
11609
|
-
return new Promise(function(
|
|
11610
|
-
v = o[n3](v), settle(
|
|
11610
|
+
return new Promise(function(resolve5, reject) {
|
|
11611
|
+
v = o[n3](v), settle(resolve5, reject, v.done, v.value);
|
|
11611
11612
|
});
|
|
11612
11613
|
};
|
|
11613
11614
|
}
|
|
11614
|
-
function settle(
|
|
11615
|
+
function settle(resolve5, reject, d, v) {
|
|
11615
11616
|
Promise.resolve(v).then(function(v2) {
|
|
11616
|
-
|
|
11617
|
+
resolve5({ value: v2, done: d });
|
|
11617
11618
|
}, reject);
|
|
11618
11619
|
}
|
|
11619
11620
|
}
|
|
@@ -12709,10 +12710,10 @@ var require_settle = __commonJS({
|
|
|
12709
12710
|
"use strict";
|
|
12710
12711
|
init_esm_shims();
|
|
12711
12712
|
var createError = require_createError();
|
|
12712
|
-
module2.exports = function settle(
|
|
12713
|
+
module2.exports = function settle(resolve5, reject, response) {
|
|
12713
12714
|
var validateStatus = response.config.validateStatus;
|
|
12714
12715
|
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
12715
|
-
|
|
12716
|
+
resolve5(response);
|
|
12716
12717
|
} else {
|
|
12717
12718
|
reject(createError(
|
|
12718
12719
|
"Request failed with status code " + response.status,
|
|
@@ -14119,7 +14120,7 @@ var require_http = __commonJS({
|
|
|
14119
14120
|
}
|
|
14120
14121
|
module2.exports = function httpAdapter(config) {
|
|
14121
14122
|
return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {
|
|
14122
|
-
var
|
|
14123
|
+
var resolve5 = function resolve6(value2) {
|
|
14123
14124
|
resolvePromise(value2);
|
|
14124
14125
|
};
|
|
14125
14126
|
var reject = function reject2(value2) {
|
|
@@ -14249,6 +14250,7 @@ var require_http = __commonJS({
|
|
|
14249
14250
|
var lastRequest = res.req || req;
|
|
14250
14251
|
if (res.statusCode !== 204 && lastRequest.method !== "HEAD" && config.decompress !== false) {
|
|
14251
14252
|
switch (res.headers["content-encoding"]) {
|
|
14253
|
+
/*eslint default-case:0*/
|
|
14252
14254
|
case "gzip":
|
|
14253
14255
|
case "compress":
|
|
14254
14256
|
case "deflate":
|
|
@@ -14266,7 +14268,7 @@ var require_http = __commonJS({
|
|
|
14266
14268
|
};
|
|
14267
14269
|
if (config.responseType === "stream") {
|
|
14268
14270
|
response.data = stream2;
|
|
14269
|
-
settle(
|
|
14271
|
+
settle(resolve5, reject, response);
|
|
14270
14272
|
} else {
|
|
14271
14273
|
var responseBuffer = [];
|
|
14272
14274
|
var totalResponseBytes = 0;
|
|
@@ -14296,7 +14298,7 @@ var require_http = __commonJS({
|
|
|
14296
14298
|
}
|
|
14297
14299
|
}
|
|
14298
14300
|
response.data = responseData;
|
|
14299
|
-
settle(
|
|
14301
|
+
settle(resolve5, reject, response);
|
|
14300
14302
|
});
|
|
14301
14303
|
}
|
|
14302
14304
|
});
|
|
@@ -14563,7 +14565,7 @@ var require_xhr = __commonJS({
|
|
|
14563
14565
|
var isURLSameOrigin = require_isURLSameOrigin();
|
|
14564
14566
|
var createError = require_createError();
|
|
14565
14567
|
module2.exports = function xhrAdapter(config) {
|
|
14566
|
-
return new Promise(function dispatchXhrRequest(
|
|
14568
|
+
return new Promise(function dispatchXhrRequest(resolve5, reject) {
|
|
14567
14569
|
var requestData = config.data;
|
|
14568
14570
|
var requestHeaders = config.headers;
|
|
14569
14571
|
var responseType = config.responseType;
|
|
@@ -14593,7 +14595,7 @@ var require_xhr = __commonJS({
|
|
|
14593
14595
|
config,
|
|
14594
14596
|
request
|
|
14595
14597
|
};
|
|
14596
|
-
settle(
|
|
14598
|
+
settle(resolve5, reject, response);
|
|
14597
14599
|
request = null;
|
|
14598
14600
|
}
|
|
14599
14601
|
if ("onloadend" in request) {
|
|
@@ -15181,8 +15183,8 @@ var require_CancelToken = __commonJS({
|
|
|
15181
15183
|
throw new TypeError("executor must be a function.");
|
|
15182
15184
|
}
|
|
15183
15185
|
var resolvePromise;
|
|
15184
|
-
this.promise = new Promise(function promiseExecutor(
|
|
15185
|
-
resolvePromise =
|
|
15186
|
+
this.promise = new Promise(function promiseExecutor(resolve5) {
|
|
15187
|
+
resolvePromise = resolve5;
|
|
15186
15188
|
});
|
|
15187
15189
|
var token2 = this;
|
|
15188
15190
|
executor(function cancel(message) {
|
|
@@ -17618,8 +17620,8 @@ var init_promise = __esm({
|
|
|
17618
17620
|
function() {
|
|
17619
17621
|
function Deferred2() {
|
|
17620
17622
|
var _this = this;
|
|
17621
|
-
this._promise = new Promise(function(
|
|
17622
|
-
_this._resolve =
|
|
17623
|
+
this._promise = new Promise(function(resolve5, reject) {
|
|
17624
|
+
_this._resolve = resolve5;
|
|
17623
17625
|
_this._reject = reject;
|
|
17624
17626
|
});
|
|
17625
17627
|
}
|
|
@@ -17724,10 +17726,10 @@ var init_callback = __esm({
|
|
|
17724
17726
|
|
|
17725
17727
|
// ../../node_modules/@opentelemetry/core/build/esm/internal/exporter.js
|
|
17726
17728
|
function _export(exporter, arg) {
|
|
17727
|
-
return new Promise(function(
|
|
17729
|
+
return new Promise(function(resolve5) {
|
|
17728
17730
|
context.with(suppressTracing2(context.active()), function() {
|
|
17729
17731
|
exporter.export(arg, function(result) {
|
|
17730
|
-
|
|
17732
|
+
resolve5(result);
|
|
17731
17733
|
});
|
|
17732
17734
|
});
|
|
17733
17735
|
});
|
|
@@ -18204,6 +18206,8 @@ var require_semver = __commonJS({
|
|
|
18204
18206
|
this.inc("patch", identifier, identifierBase);
|
|
18205
18207
|
this.inc("pre", identifier, identifierBase);
|
|
18206
18208
|
break;
|
|
18209
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
18210
|
+
// prepatch.
|
|
18207
18211
|
case "prerelease":
|
|
18208
18212
|
if (this.prerelease.length === 0) {
|
|
18209
18213
|
this.inc("patch", identifier, identifierBase);
|
|
@@ -18237,6 +18241,8 @@ var require_semver = __commonJS({
|
|
|
18237
18241
|
}
|
|
18238
18242
|
this.prerelease = [];
|
|
18239
18243
|
break;
|
|
18244
|
+
// This probably shouldn't be used publicly.
|
|
18245
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
18240
18246
|
case "pre": {
|
|
18241
18247
|
const base = Number(identifierBase) ? 1 : 0;
|
|
18242
18248
|
if (this.prerelease.length === 0) {
|
|
@@ -19338,6 +19344,7 @@ var require_min_version = __commonJS({
|
|
|
19338
19344
|
compver.prerelease.push(0);
|
|
19339
19345
|
}
|
|
19340
19346
|
compver.raw = compver.format();
|
|
19347
|
+
/* fallthrough */
|
|
19341
19348
|
case "":
|
|
19342
19349
|
case ">=":
|
|
19343
19350
|
if (!setMin || gt(compver, setMin)) {
|
|
@@ -19347,6 +19354,7 @@ var require_min_version = __commonJS({
|
|
|
19347
19354
|
case "<":
|
|
19348
19355
|
case "<=":
|
|
19349
19356
|
break;
|
|
19357
|
+
/* istanbul ignore next */
|
|
19350
19358
|
default:
|
|
19351
19359
|
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
19352
19360
|
}
|
|
@@ -21259,7 +21267,7 @@ var require_async = __commonJS({
|
|
|
21259
21267
|
}
|
|
21260
21268
|
return dirs;
|
|
21261
21269
|
};
|
|
21262
|
-
module2.exports = function
|
|
21270
|
+
module2.exports = function resolve5(x, options, callback) {
|
|
21263
21271
|
var cb = callback;
|
|
21264
21272
|
var opts = options;
|
|
21265
21273
|
if (typeof options === "function") {
|
|
@@ -21981,7 +21989,7 @@ var require_require_in_the_middle = __commonJS({
|
|
|
21981
21989
|
init_esm_shims();
|
|
21982
21990
|
var path8 = __require("path");
|
|
21983
21991
|
var Module = __require("module");
|
|
21984
|
-
var
|
|
21992
|
+
var resolve5 = require_resolve();
|
|
21985
21993
|
var debug3 = require_src()("require-in-the-middle");
|
|
21986
21994
|
var moduleDetailsFromPath = require_module_details_from_path();
|
|
21987
21995
|
module2.exports = Hook2;
|
|
@@ -21996,11 +22004,11 @@ var require_require_in_the_middle = __commonJS({
|
|
|
21996
22004
|
if (moduleName === "http2") {
|
|
21997
22005
|
return true;
|
|
21998
22006
|
}
|
|
21999
|
-
return !!
|
|
22007
|
+
return !!resolve5.core[moduleName];
|
|
22000
22008
|
};
|
|
22001
22009
|
} else {
|
|
22002
22010
|
isCore = (moduleName) => {
|
|
22003
|
-
return !!
|
|
22011
|
+
return !!resolve5.core[moduleName];
|
|
22004
22012
|
};
|
|
22005
22013
|
}
|
|
22006
22014
|
}
|
|
@@ -22156,7 +22164,7 @@ var require_require_in_the_middle = __commonJS({
|
|
|
22156
22164
|
if (!matchFound) {
|
|
22157
22165
|
let res;
|
|
22158
22166
|
try {
|
|
22159
|
-
res =
|
|
22167
|
+
res = resolve5.sync(moduleName, { basedir });
|
|
22160
22168
|
} catch (e2) {
|
|
22161
22169
|
debug3("could not resolve module: %s", moduleName);
|
|
22162
22170
|
self2._cache.set(filename, exports2, core);
|
|
@@ -22607,11 +22615,11 @@ var init_utils3 = __esm({
|
|
|
22607
22615
|
init_esm_shims();
|
|
22608
22616
|
__awaiter2 = function(thisArg, _arguments, P, generator2) {
|
|
22609
22617
|
function adopt(value2) {
|
|
22610
|
-
return value2 instanceof P ? value2 : new P(function(
|
|
22611
|
-
|
|
22618
|
+
return value2 instanceof P ? value2 : new P(function(resolve5) {
|
|
22619
|
+
resolve5(value2);
|
|
22612
22620
|
});
|
|
22613
22621
|
}
|
|
22614
|
-
return new (P || (P = Promise))(function(
|
|
22622
|
+
return new (P || (P = Promise))(function(resolve5, reject) {
|
|
22615
22623
|
function fulfilled(value2) {
|
|
22616
22624
|
try {
|
|
22617
22625
|
step(generator2.next(value2));
|
|
@@ -22627,7 +22635,7 @@ var init_utils3 = __esm({
|
|
|
22627
22635
|
}
|
|
22628
22636
|
}
|
|
22629
22637
|
function step(result) {
|
|
22630
|
-
result.done ?
|
|
22638
|
+
result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
22631
22639
|
}
|
|
22632
22640
|
step((generator2 = generator2.apply(thisArg, _arguments || [])).next());
|
|
22633
22641
|
});
|
|
@@ -27985,10 +27993,10 @@ var require_instrumentation10 = __commonJS({
|
|
|
27985
27993
|
}
|
|
27986
27994
|
if (result instanceof Promise) {
|
|
27987
27995
|
return result.then((result2) => {
|
|
27988
|
-
return new Promise((
|
|
27996
|
+
return new Promise((resolve5) => {
|
|
27989
27997
|
utils.handleExecutionResult(plugin.getConfig(), span, result2);
|
|
27990
27998
|
span.end();
|
|
27991
|
-
|
|
27999
|
+
resolve5(result2);
|
|
27992
28000
|
});
|
|
27993
28001
|
}).catch((error) => {
|
|
27994
28002
|
return new Promise((_2, reject) => {
|
|
@@ -32506,7 +32514,7 @@ var require_promise = __commonJS({
|
|
|
32506
32514
|
init_esm_shims();
|
|
32507
32515
|
module2.exports.timedPromise = function(promise, _ref) {
|
|
32508
32516
|
var message = _ref.message, timeout2 = _ref.timeout;
|
|
32509
|
-
var timeoutPromise = new Promise(function(
|
|
32517
|
+
var timeoutPromise = new Promise(function(resolve5, reject) {
|
|
32510
32518
|
setTimeout(reject, timeout2, message ? "Timeout: " + message : "Timeout");
|
|
32511
32519
|
});
|
|
32512
32520
|
return Promise.race([promise, timeoutPromise]);
|
|
@@ -32724,8 +32732,8 @@ var require_batch_queue = __commonJS({
|
|
|
32724
32732
|
var _this = this;
|
|
32725
32733
|
this._startTime = Date.now();
|
|
32726
32734
|
this._resolve = null;
|
|
32727
|
-
this._promise = new Promise(function(
|
|
32728
|
-
return _this._resolve =
|
|
32735
|
+
this._promise = new Promise(function(resolve5) {
|
|
32736
|
+
return _this._resolve = resolve5;
|
|
32729
32737
|
});
|
|
32730
32738
|
}
|
|
32731
32739
|
}, {
|
|
@@ -32755,14 +32763,14 @@ var require_batch_queue = __commonJS({
|
|
|
32755
32763
|
return Promise.resolve();
|
|
32756
32764
|
}
|
|
32757
32765
|
var events = this._queue.splice(0, this._queue.length);
|
|
32758
|
-
var
|
|
32766
|
+
var resolve5 = this._resolve;
|
|
32759
32767
|
var startTime = this._startTime;
|
|
32760
32768
|
this._reset();
|
|
32761
32769
|
var batch = createBatch(events, startTime);
|
|
32762
32770
|
if (this._optimizeBatch) {
|
|
32763
32771
|
batch = optimizeBatch(batch);
|
|
32764
32772
|
}
|
|
32765
|
-
return this._flushHandler(batch).then(
|
|
32773
|
+
return this._flushHandler(batch).then(resolve5);
|
|
32766
32774
|
}
|
|
32767
32775
|
}, {
|
|
32768
32776
|
key: "feed",
|
|
@@ -33526,12 +33534,12 @@ var require_isexe = __commonJS({
|
|
|
33526
33534
|
if (typeof Promise !== "function") {
|
|
33527
33535
|
throw new TypeError("callback not provided");
|
|
33528
33536
|
}
|
|
33529
|
-
return new Promise(function(
|
|
33537
|
+
return new Promise(function(resolve5, reject) {
|
|
33530
33538
|
isexe(path8, options || {}, function(er, is) {
|
|
33531
33539
|
if (er) {
|
|
33532
33540
|
reject(er);
|
|
33533
33541
|
} else {
|
|
33534
|
-
|
|
33542
|
+
resolve5(is);
|
|
33535
33543
|
}
|
|
33536
33544
|
});
|
|
33537
33545
|
});
|
|
@@ -33599,27 +33607,27 @@ var require_which = __commonJS({
|
|
|
33599
33607
|
opt = {};
|
|
33600
33608
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
33601
33609
|
const found = [];
|
|
33602
|
-
const step = (i2) => new Promise((
|
|
33610
|
+
const step = (i2) => new Promise((resolve5, reject) => {
|
|
33603
33611
|
if (i2 === pathEnv.length)
|
|
33604
|
-
return opt.all && found.length ?
|
|
33612
|
+
return opt.all && found.length ? resolve5(found) : reject(getNotFoundError(cmd));
|
|
33605
33613
|
const ppRaw = pathEnv[i2];
|
|
33606
33614
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
33607
33615
|
const pCmd = path8.join(pathPart, cmd);
|
|
33608
33616
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
33609
|
-
|
|
33617
|
+
resolve5(subStep(p, i2, 0));
|
|
33610
33618
|
});
|
|
33611
|
-
const subStep = (p, i2, ii) => new Promise((
|
|
33619
|
+
const subStep = (p, i2, ii) => new Promise((resolve5, reject) => {
|
|
33612
33620
|
if (ii === pathExt.length)
|
|
33613
|
-
return
|
|
33621
|
+
return resolve5(step(i2 + 1));
|
|
33614
33622
|
const ext = pathExt[ii];
|
|
33615
33623
|
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
33616
33624
|
if (!er && is) {
|
|
33617
33625
|
if (opt.all)
|
|
33618
33626
|
found.push(p + ext);
|
|
33619
33627
|
else
|
|
33620
|
-
return
|
|
33628
|
+
return resolve5(p + ext);
|
|
33621
33629
|
}
|
|
33622
|
-
return
|
|
33630
|
+
return resolve5(subStep(p, i2, ii + 1));
|
|
33623
33631
|
});
|
|
33624
33632
|
});
|
|
33625
33633
|
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
@@ -38303,41 +38311,41 @@ var require_queue = __commonJS({
|
|
|
38303
38311
|
queue.drained = drained;
|
|
38304
38312
|
return queue;
|
|
38305
38313
|
function push(value2) {
|
|
38306
|
-
var p = new Promise(function(
|
|
38314
|
+
var p = new Promise(function(resolve5, reject) {
|
|
38307
38315
|
pushCb(value2, function(err, result) {
|
|
38308
38316
|
if (err) {
|
|
38309
38317
|
reject(err);
|
|
38310
38318
|
return;
|
|
38311
38319
|
}
|
|
38312
|
-
|
|
38320
|
+
resolve5(result);
|
|
38313
38321
|
});
|
|
38314
38322
|
});
|
|
38315
38323
|
p.catch(noop8);
|
|
38316
38324
|
return p;
|
|
38317
38325
|
}
|
|
38318
38326
|
function unshift(value2) {
|
|
38319
|
-
var p = new Promise(function(
|
|
38327
|
+
var p = new Promise(function(resolve5, reject) {
|
|
38320
38328
|
unshiftCb(value2, function(err, result) {
|
|
38321
38329
|
if (err) {
|
|
38322
38330
|
reject(err);
|
|
38323
38331
|
return;
|
|
38324
38332
|
}
|
|
38325
|
-
|
|
38333
|
+
resolve5(result);
|
|
38326
38334
|
});
|
|
38327
38335
|
});
|
|
38328
38336
|
p.catch(noop8);
|
|
38329
38337
|
return p;
|
|
38330
38338
|
}
|
|
38331
38339
|
function drained() {
|
|
38332
|
-
var p = new Promise(function(
|
|
38340
|
+
var p = new Promise(function(resolve5) {
|
|
38333
38341
|
process.nextTick(function() {
|
|
38334
38342
|
if (queue.idle()) {
|
|
38335
|
-
|
|
38343
|
+
resolve5();
|
|
38336
38344
|
} else {
|
|
38337
38345
|
var previousDrain = queue.drain;
|
|
38338
38346
|
queue.drain = function() {
|
|
38339
38347
|
if (typeof previousDrain === "function") previousDrain();
|
|
38340
|
-
|
|
38348
|
+
resolve5();
|
|
38341
38349
|
queue.drain = previousDrain;
|
|
38342
38350
|
};
|
|
38343
38351
|
}
|
|
@@ -38834,9 +38842,9 @@ var require_stream3 = __commonJS({
|
|
|
38834
38842
|
});
|
|
38835
38843
|
}
|
|
38836
38844
|
_getStat(filepath) {
|
|
38837
|
-
return new Promise((
|
|
38845
|
+
return new Promise((resolve5, reject) => {
|
|
38838
38846
|
this._stat(filepath, this._fsStatSettings, (error, stats) => {
|
|
38839
|
-
return error === null ?
|
|
38847
|
+
return error === null ? resolve5(stats) : reject(error);
|
|
38840
38848
|
});
|
|
38841
38849
|
});
|
|
38842
38850
|
}
|
|
@@ -38861,10 +38869,10 @@ var require_async6 = __commonJS({
|
|
|
38861
38869
|
this._readerStream = new stream_1.default(this._settings);
|
|
38862
38870
|
}
|
|
38863
38871
|
dynamic(root, options) {
|
|
38864
|
-
return new Promise((
|
|
38872
|
+
return new Promise((resolve5, reject) => {
|
|
38865
38873
|
this._walkAsync(root, options, (error, entries) => {
|
|
38866
38874
|
if (error === null) {
|
|
38867
|
-
|
|
38875
|
+
resolve5(entries);
|
|
38868
38876
|
} else {
|
|
38869
38877
|
reject(error);
|
|
38870
38878
|
}
|
|
@@ -38874,10 +38882,10 @@ var require_async6 = __commonJS({
|
|
|
38874
38882
|
async static(patterns, options) {
|
|
38875
38883
|
const entries = [];
|
|
38876
38884
|
const stream2 = this._readerStream.static(patterns, options);
|
|
38877
|
-
return new Promise((
|
|
38885
|
+
return new Promise((resolve5, reject) => {
|
|
38878
38886
|
stream2.once("error", reject);
|
|
38879
38887
|
stream2.on("data", (entry) => entries.push(entry));
|
|
38880
|
-
stream2.once("end", () =>
|
|
38888
|
+
stream2.once("end", () => resolve5(entries));
|
|
38881
38889
|
});
|
|
38882
38890
|
}
|
|
38883
38891
|
};
|
|
@@ -40621,7 +40629,7 @@ var require_rc = __commonJS({
|
|
|
40621
40629
|
"use strict";
|
|
40622
40630
|
init_esm_shims();
|
|
40623
40631
|
var cc = require_utils20();
|
|
40624
|
-
var
|
|
40632
|
+
var join21 = __require("path").join;
|
|
40625
40633
|
var deepExtend2 = require_deep_extend();
|
|
40626
40634
|
var etc = "/etc";
|
|
40627
40635
|
var win = process.platform === "win32";
|
|
@@ -40646,15 +40654,15 @@ var require_rc = __commonJS({
|
|
|
40646
40654
|
}
|
|
40647
40655
|
if (!win)
|
|
40648
40656
|
[
|
|
40649
|
-
|
|
40650
|
-
|
|
40657
|
+
join21(etc, name, "config"),
|
|
40658
|
+
join21(etc, name + "rc")
|
|
40651
40659
|
].forEach(addConfigFile);
|
|
40652
40660
|
if (home)
|
|
40653
40661
|
[
|
|
40654
|
-
|
|
40655
|
-
|
|
40656
|
-
|
|
40657
|
-
|
|
40662
|
+
join21(home, ".config", name, "config"),
|
|
40663
|
+
join21(home, ".config", name),
|
|
40664
|
+
join21(home, "." + name, "config"),
|
|
40665
|
+
join21(home, "." + name + "rc")
|
|
40658
40666
|
].forEach(addConfigFile);
|
|
40659
40667
|
addConfigFile(cc.find("." + name + "rc"));
|
|
40660
40668
|
if (env3.config) addConfigFile(env3.config);
|
|
@@ -41220,8 +41228,8 @@ var require_graceful_fs = __commonJS({
|
|
|
41220
41228
|
}
|
|
41221
41229
|
var fs$copyFile = fs12.copyFile;
|
|
41222
41230
|
if (fs$copyFile)
|
|
41223
|
-
fs12.copyFile =
|
|
41224
|
-
function
|
|
41231
|
+
fs12.copyFile = copyFile3;
|
|
41232
|
+
function copyFile3(src, dest, flags, cb) {
|
|
41225
41233
|
if (typeof flags === "function") {
|
|
41226
41234
|
cb = flags;
|
|
41227
41235
|
flags = 0;
|
|
@@ -41954,6 +41962,7 @@ var require_util3 = __commonJS({
|
|
|
41954
41962
|
return true;
|
|
41955
41963
|
}
|
|
41956
41964
|
switch (field) {
|
|
41965
|
+
// eslint-disable-line default-case
|
|
41957
41966
|
case "true": {
|
|
41958
41967
|
return true;
|
|
41959
41968
|
}
|
|
@@ -43807,12 +43816,12 @@ var require_lodash2 = __commonJS({
|
|
|
43807
43816
|
Stack.prototype.has = stackHas;
|
|
43808
43817
|
Stack.prototype.set = stackSet;
|
|
43809
43818
|
function arrayLikeKeys(value2, inherited) {
|
|
43810
|
-
var isArr = isArray3(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2),
|
|
43819
|
+
var isArr = isArray3(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2), isType13 = !isArr && !isArg && !isBuff && isTypedArray(value2), skipIndexes = isArr || isArg || isBuff || isType13, result2 = skipIndexes ? baseTimes(value2.length, String2) : [], length = result2.length;
|
|
43811
43820
|
for (var key in value2) {
|
|
43812
43821
|
if ((inherited || hasOwnProperty3.call(value2, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
43813
43822
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
43814
43823
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
43815
|
-
|
|
43824
|
+
isType13 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
43816
43825
|
isIndex(key, length)))) {
|
|
43817
43826
|
result2.push(key);
|
|
43818
43827
|
}
|
|
@@ -46063,7 +46072,7 @@ var require_lodash2 = __commonJS({
|
|
|
46063
46072
|
}
|
|
46064
46073
|
return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined2, comparator) : [];
|
|
46065
46074
|
});
|
|
46066
|
-
function
|
|
46075
|
+
function join21(array, separator) {
|
|
46067
46076
|
return array == null ? "" : nativeJoin.call(array, separator);
|
|
46068
46077
|
}
|
|
46069
46078
|
function last(array) {
|
|
@@ -47982,7 +47991,7 @@ var require_lodash2 = __commonJS({
|
|
|
47982
47991
|
lodash.isUndefined = isUndefined;
|
|
47983
47992
|
lodash.isWeakMap = isWeakMap;
|
|
47984
47993
|
lodash.isWeakSet = isWeakSet;
|
|
47985
|
-
lodash.join =
|
|
47994
|
+
lodash.join = join21;
|
|
47986
47995
|
lodash.kebabCase = kebabCase2;
|
|
47987
47996
|
lodash.last = last;
|
|
47988
47997
|
lodash.lastIndexOf = lastIndexOf;
|
|
@@ -48461,8 +48470,8 @@ var require_ejs = __commonJS({
|
|
|
48461
48470
|
exports.resolveInclude = function(name, filename, isDir) {
|
|
48462
48471
|
var dirname6 = path8.dirname;
|
|
48463
48472
|
var extname2 = path8.extname;
|
|
48464
|
-
var
|
|
48465
|
-
var includePath =
|
|
48473
|
+
var resolve5 = path8.resolve;
|
|
48474
|
+
var includePath = resolve5(isDir ? filename : dirname6(filename), name);
|
|
48466
48475
|
var ext = extname2(name);
|
|
48467
48476
|
if (!ext) {
|
|
48468
48477
|
includePath += ".ejs";
|
|
@@ -48537,10 +48546,10 @@ var require_ejs = __commonJS({
|
|
|
48537
48546
|
var result;
|
|
48538
48547
|
if (!cb) {
|
|
48539
48548
|
if (typeof exports.promiseImpl == "function") {
|
|
48540
|
-
return new exports.promiseImpl(function(
|
|
48549
|
+
return new exports.promiseImpl(function(resolve5, reject) {
|
|
48541
48550
|
try {
|
|
48542
48551
|
result = handleCache(options)(data);
|
|
48543
|
-
|
|
48552
|
+
resolve5(result);
|
|
48544
48553
|
} catch (err) {
|
|
48545
48554
|
reject(err);
|
|
48546
48555
|
}
|
|
@@ -48934,17 +48943,21 @@ var require_ejs = __commonJS({
|
|
|
48934
48943
|
}
|
|
48935
48944
|
}
|
|
48936
48945
|
switch (this.mode) {
|
|
48946
|
+
// Just executing code
|
|
48937
48947
|
case Template.modes.EVAL:
|
|
48938
48948
|
this.source += " ; " + line + "\n";
|
|
48939
48949
|
break;
|
|
48950
|
+
// Exec, esc, and output
|
|
48940
48951
|
case Template.modes.ESCAPED:
|
|
48941
48952
|
this.source += " ; __append(escapeFn(" + stripSemi(line) + "))\n";
|
|
48942
48953
|
break;
|
|
48954
|
+
// Exec and output
|
|
48943
48955
|
case Template.modes.RAW:
|
|
48944
48956
|
this.source += " ; __append(" + stripSemi(line) + ")\n";
|
|
48945
48957
|
break;
|
|
48946
48958
|
case Template.modes.COMMENT:
|
|
48947
48959
|
break;
|
|
48960
|
+
// Literal <%% mode, append as raw output
|
|
48948
48961
|
case Template.modes.LITERAL:
|
|
48949
48962
|
this._addOutput(line);
|
|
48950
48963
|
break;
|
|
@@ -52106,7 +52119,7 @@ var require_util4 = __commonJS({
|
|
|
52106
52119
|
return path8;
|
|
52107
52120
|
});
|
|
52108
52121
|
exports.normalize = normalize4;
|
|
52109
|
-
function
|
|
52122
|
+
function join21(aRoot, aPath) {
|
|
52110
52123
|
if (aRoot === "") {
|
|
52111
52124
|
aRoot = ".";
|
|
52112
52125
|
}
|
|
@@ -52138,7 +52151,7 @@ var require_util4 = __commonJS({
|
|
|
52138
52151
|
}
|
|
52139
52152
|
return joined;
|
|
52140
52153
|
}
|
|
52141
|
-
exports.join =
|
|
52154
|
+
exports.join = join21;
|
|
52142
52155
|
exports.isAbsolute = function(aPath) {
|
|
52143
52156
|
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
|
52144
52157
|
};
|
|
@@ -52352,7 +52365,7 @@ var require_util4 = __commonJS({
|
|
|
52352
52365
|
parsed.path = parsed.path.substring(0, index + 1);
|
|
52353
52366
|
}
|
|
52354
52367
|
}
|
|
52355
|
-
sourceURL =
|
|
52368
|
+
sourceURL = join21(urlGenerate(parsed), sourceURL);
|
|
52356
52369
|
}
|
|
52357
52370
|
return normalize4(sourceURL);
|
|
52358
52371
|
}
|
|
@@ -70508,7 +70521,7 @@ var styles_default = styles2;
|
|
|
70508
70521
|
// ../../node_modules/ink/build/reconciler.js
|
|
70509
70522
|
if (process3.env["DEV"] === "true") {
|
|
70510
70523
|
try {
|
|
70511
|
-
await import("./devtools-
|
|
70524
|
+
await import("./devtools-ZMIKPDMD.js");
|
|
70512
70525
|
} catch (error) {
|
|
70513
70526
|
if (error.code === "MODULE_NOT_FOUND") {
|
|
70514
70527
|
console.warn(`
|
|
@@ -72703,8 +72716,8 @@ var Ink = class {
|
|
|
72703
72716
|
}
|
|
72704
72717
|
async waitUntilExit() {
|
|
72705
72718
|
if (!this.exitPromise) {
|
|
72706
|
-
this.exitPromise = new Promise((
|
|
72707
|
-
this.resolveExitPromise =
|
|
72719
|
+
this.exitPromise = new Promise((resolve5, reject) => {
|
|
72720
|
+
this.resolveExitPromise = resolve5;
|
|
72708
72721
|
this.rejectExitPromise = reject;
|
|
72709
72722
|
});
|
|
72710
72723
|
}
|
|
@@ -73932,6 +73945,7 @@ function SelectInput2({
|
|
|
73932
73945
|
info,
|
|
73933
73946
|
options,
|
|
73934
73947
|
isActive,
|
|
73948
|
+
value: value2,
|
|
73935
73949
|
onSubmit,
|
|
73936
73950
|
limit = 10,
|
|
73937
73951
|
initialIndex
|
|
@@ -73940,19 +73954,19 @@ function SelectInput2({
|
|
|
73940
73954
|
throw new Error("SelectInput: options cannot be empty");
|
|
73941
73955
|
}
|
|
73942
73956
|
const [inputState, setInputState] = (0, import_react48.useState)(
|
|
73943
|
-
() => InputState.NotSubmitted()
|
|
73957
|
+
() => value2 ?? InputState.NotSubmitted()
|
|
73944
73958
|
);
|
|
73945
73959
|
const handleHighlight = (0, import_react48.useCallback)(
|
|
73946
|
-
({ value:
|
|
73947
|
-
setInputState(InputState.NotSubmitted(
|
|
73960
|
+
({ value: value3 }) => {
|
|
73961
|
+
setInputState(InputState.NotSubmitted(value3));
|
|
73948
73962
|
},
|
|
73949
73963
|
[]
|
|
73950
73964
|
);
|
|
73951
73965
|
const handleSelect = (0, import_react48.useCallback)(
|
|
73952
|
-
({ value:
|
|
73953
|
-
if (!(0, import_variant7.isType)(
|
|
73954
|
-
setInputState(InputState.Submitted(
|
|
73955
|
-
onSubmit(
|
|
73966
|
+
({ value: value3 }) => {
|
|
73967
|
+
if (!(0, import_variant7.isType)(value3.availability, SelectOptionAvailability.Disabled)) {
|
|
73968
|
+
setInputState(InputState.Submitted(value3));
|
|
73969
|
+
onSubmit(value3);
|
|
73956
73970
|
}
|
|
73957
73971
|
},
|
|
73958
73972
|
[onSubmit]
|
|
@@ -73970,6 +73984,11 @@ function SelectInput2({
|
|
|
73970
73984
|
setInputState(InputState.NotSubmitted(inputState.value));
|
|
73971
73985
|
}
|
|
73972
73986
|
}, [isActive]);
|
|
73987
|
+
(0, import_react48.useEffect)(() => {
|
|
73988
|
+
if (value2) {
|
|
73989
|
+
setInputState(value2);
|
|
73990
|
+
}
|
|
73991
|
+
}, [value2, setInputState]);
|
|
73973
73992
|
return /* @__PURE__ */ import_react48.default.createElement(import_react48.default.Fragment, null, /* @__PURE__ */ import_react48.default.createElement(Box_default, { marginLeft: -2, marginBottom: 1 }, /* @__PURE__ */ import_react48.default.createElement(Text2, null, /* @__PURE__ */ import_react48.default.createElement(InputLabel, null, label), " ", info && (0, import_variant7.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react48.default.createElement(Text2, { skin: "secondary" }, info))), /* @__PURE__ */ import_react48.default.createElement(Placeholder2, { inputState }), (0, import_variant7.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react48.default.createElement(Box_default, null, /* @__PURE__ */ import_react48.default.createElement(
|
|
73974
73993
|
SelectInput_default,
|
|
73975
73994
|
{
|
|
@@ -78821,6 +78840,7 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
|
|
|
78821
78840
|
UploadApplicationFailed: {},
|
|
78822
78841
|
FailedToCreateDevCenterApp: {},
|
|
78823
78842
|
FailedToCreateDevCenterOAuthApp: {},
|
|
78843
|
+
FailedToUpdateDevCenterOAuthApp: {},
|
|
78824
78844
|
FailedToAddPermission: {},
|
|
78825
78845
|
FailedToGetPlacements: {},
|
|
78826
78846
|
FailedToGetAppSecret: {},
|
|
@@ -79024,7 +79044,8 @@ var CliUserErrorCode = (0, import_variant11.variant)({
|
|
|
79024
79044
|
FailedToCleanDistFolder: {},
|
|
79025
79045
|
FailedToIdentifyProgramFlow: (0, import_variant11.fields)(),
|
|
79026
79046
|
BuildOutputMissing: (0, import_variant11.fields)(),
|
|
79027
|
-
FailedToCreateMonitoringVitePlugin: (0, import_variant11.fields)()
|
|
79047
|
+
FailedToCreateMonitoringVitePlugin: (0, import_variant11.fields)(),
|
|
79048
|
+
FailedToSyncVeloCLIServerDocumentUpdate: {}
|
|
79028
79049
|
});
|
|
79029
79050
|
var CliErrorCode = (0, import_variant11.variant)({
|
|
79030
79051
|
...CliSystemErrorCode,
|
|
@@ -79205,7 +79226,7 @@ var decorateErrorWithCounts = (error, attemptNumber, options) => {
|
|
|
79205
79226
|
return error;
|
|
79206
79227
|
};
|
|
79207
79228
|
async function pRetry(input, options) {
|
|
79208
|
-
return new Promise((
|
|
79229
|
+
return new Promise((resolve5, reject) => {
|
|
79209
79230
|
options = { ...options };
|
|
79210
79231
|
options.onFailedAttempt ??= () => {
|
|
79211
79232
|
};
|
|
@@ -79227,7 +79248,7 @@ async function pRetry(input, options) {
|
|
|
79227
79248
|
try {
|
|
79228
79249
|
const result = await input(attemptNumber);
|
|
79229
79250
|
cleanUp();
|
|
79230
|
-
|
|
79251
|
+
resolve5(result);
|
|
79231
79252
|
} catch (error) {
|
|
79232
79253
|
try {
|
|
79233
79254
|
if (!(error instanceof Error)) {
|
|
@@ -79785,6 +79806,12 @@ function resolveComWixpressAccountApiAccountServiceUrl(opts) {
|
|
|
79785
79806
|
srcPath: "/_api/account-server",
|
|
79786
79807
|
destPath: ""
|
|
79787
79808
|
}
|
|
79809
|
+
],
|
|
79810
|
+
"twins._base_domain_": [
|
|
79811
|
+
{
|
|
79812
|
+
srcPath: "/_api/account-server",
|
|
79813
|
+
destPath: ""
|
|
79814
|
+
}
|
|
79788
79815
|
]
|
|
79789
79816
|
};
|
|
79790
79817
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
@@ -80258,7 +80285,7 @@ var AuthClient = class {
|
|
|
80258
80285
|
const { data } = await httpClient.request(getMyAccount({}));
|
|
80259
80286
|
return getMyAccountSchema.parse(data).account;
|
|
80260
80287
|
} catch (error) {
|
|
80261
|
-
if (isHttpError(error) && error.response?.status === 428 && error.response.data?.details?.applicationError?.code === 48876) {
|
|
80288
|
+
if (isHttpError(error) && error.response?.status === 428 && error.response.data?.details?.applicationError?.code === "48876") {
|
|
80262
80289
|
throw new CliError({
|
|
80263
80290
|
code: CliErrorCode.InvalidApiKey(),
|
|
80264
80291
|
cause: error
|
|
@@ -80678,20 +80705,20 @@ function pLimit(concurrency) {
|
|
|
80678
80705
|
activeCount--;
|
|
80679
80706
|
resumeNext();
|
|
80680
80707
|
};
|
|
80681
|
-
const run = async (function_,
|
|
80708
|
+
const run = async (function_, resolve5, arguments_) => {
|
|
80682
80709
|
const result = (async () => function_(...arguments_))();
|
|
80683
|
-
|
|
80710
|
+
resolve5(result);
|
|
80684
80711
|
try {
|
|
80685
80712
|
await result;
|
|
80686
80713
|
} catch {
|
|
80687
80714
|
}
|
|
80688
80715
|
next();
|
|
80689
80716
|
};
|
|
80690
|
-
const enqueue = (function_,
|
|
80717
|
+
const enqueue = (function_, resolve5, arguments_) => {
|
|
80691
80718
|
new Promise((internalResolve) => {
|
|
80692
80719
|
queue.enqueue(internalResolve);
|
|
80693
80720
|
}).then(
|
|
80694
|
-
run.bind(void 0, function_,
|
|
80721
|
+
run.bind(void 0, function_, resolve5, arguments_)
|
|
80695
80722
|
);
|
|
80696
80723
|
(async () => {
|
|
80697
80724
|
await Promise.resolve();
|
|
@@ -80700,8 +80727,8 @@ function pLimit(concurrency) {
|
|
|
80700
80727
|
}
|
|
80701
80728
|
})();
|
|
80702
80729
|
};
|
|
80703
|
-
const generator2 = (function_, ...arguments_) => new Promise((
|
|
80704
|
-
enqueue(function_,
|
|
80730
|
+
const generator2 = (function_, ...arguments_) => new Promise((resolve5) => {
|
|
80731
|
+
enqueue(function_, resolve5, arguments_);
|
|
80705
80732
|
});
|
|
80706
80733
|
Object.defineProperties(generator2, {
|
|
80707
80734
|
activeCount: {
|
|
@@ -80771,7 +80798,7 @@ function pTimeout(promise, options) {
|
|
|
80771
80798
|
} = options;
|
|
80772
80799
|
let timer;
|
|
80773
80800
|
let abortHandler;
|
|
80774
|
-
const wrappedPromise = new Promise((
|
|
80801
|
+
const wrappedPromise = new Promise((resolve5, reject) => {
|
|
80775
80802
|
if (typeof milliseconds !== "number" || Math.sign(milliseconds) !== 1) {
|
|
80776
80803
|
throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${milliseconds}\``);
|
|
80777
80804
|
}
|
|
@@ -80786,14 +80813,14 @@ function pTimeout(promise, options) {
|
|
|
80786
80813
|
signal.addEventListener("abort", abortHandler, { once: true });
|
|
80787
80814
|
}
|
|
80788
80815
|
if (milliseconds === Number.POSITIVE_INFINITY) {
|
|
80789
|
-
promise.then(
|
|
80816
|
+
promise.then(resolve5, reject);
|
|
80790
80817
|
return;
|
|
80791
80818
|
}
|
|
80792
80819
|
const timeoutError = new TimeoutError();
|
|
80793
80820
|
timer = customTimers.setTimeout.call(void 0, () => {
|
|
80794
80821
|
if (fallback) {
|
|
80795
80822
|
try {
|
|
80796
|
-
|
|
80823
|
+
resolve5(fallback());
|
|
80797
80824
|
} catch (error) {
|
|
80798
80825
|
reject(error);
|
|
80799
80826
|
}
|
|
@@ -80803,7 +80830,7 @@ function pTimeout(promise, options) {
|
|
|
80803
80830
|
promise.cancel();
|
|
80804
80831
|
}
|
|
80805
80832
|
if (message === false) {
|
|
80806
|
-
|
|
80833
|
+
resolve5();
|
|
80807
80834
|
} else if (message instanceof Error) {
|
|
80808
80835
|
reject(message);
|
|
80809
80836
|
} else {
|
|
@@ -80813,7 +80840,7 @@ function pTimeout(promise, options) {
|
|
|
80813
80840
|
}, milliseconds);
|
|
80814
80841
|
(async () => {
|
|
80815
80842
|
try {
|
|
80816
|
-
|
|
80843
|
+
resolve5(await promise);
|
|
80817
80844
|
} catch (error) {
|
|
80818
80845
|
reject(error);
|
|
80819
80846
|
}
|
|
@@ -80842,16 +80869,16 @@ async function pWaitFor(condition, options = {}) {
|
|
|
80842
80869
|
} = options;
|
|
80843
80870
|
let retryTimeout;
|
|
80844
80871
|
let abort = false;
|
|
80845
|
-
const promise = new Promise((
|
|
80872
|
+
const promise = new Promise((resolve5, reject) => {
|
|
80846
80873
|
const check = async () => {
|
|
80847
80874
|
try {
|
|
80848
80875
|
const value2 = await condition();
|
|
80849
80876
|
if (typeof value2 === "object" && value2[resolveValue]) {
|
|
80850
|
-
|
|
80877
|
+
resolve5(value2[resolveValue]);
|
|
80851
80878
|
} else if (typeof value2 !== "boolean") {
|
|
80852
80879
|
throw new TypeError("Expected condition to return a boolean");
|
|
80853
80880
|
} else if (value2 === true) {
|
|
80854
|
-
|
|
80881
|
+
resolve5();
|
|
80855
80882
|
} else if (!abort) {
|
|
80856
80883
|
retryTimeout = setTimeout(check, interval);
|
|
80857
80884
|
}
|
|
@@ -81830,11 +81857,11 @@ var useTranslation = (ns, props = {}) => {
|
|
|
81830
81857
|
ret.ready = ready;
|
|
81831
81858
|
if (ready) return ret;
|
|
81832
81859
|
if (!ready && !useSuspense) return ret;
|
|
81833
|
-
throw new Promise((
|
|
81860
|
+
throw new Promise((resolve5) => {
|
|
81834
81861
|
if (props.lng) {
|
|
81835
|
-
loadLanguages(i18n, props.lng, namespaces, () =>
|
|
81862
|
+
loadLanguages(i18n, props.lng, namespaces, () => resolve5());
|
|
81836
81863
|
} else {
|
|
81837
|
-
loadNamespaces(i18n, namespaces, () =>
|
|
81864
|
+
loadNamespaces(i18n, namespaces, () => resolve5());
|
|
81838
81865
|
}
|
|
81839
81866
|
});
|
|
81840
81867
|
};
|
|
@@ -82111,9 +82138,11 @@ function parseDateTimeSkeleton(skeleton) {
|
|
|
82111
82138
|
skeleton.replace(DATE_TIME_REGEX, function(match20) {
|
|
82112
82139
|
var len = match20.length;
|
|
82113
82140
|
switch (match20[0]) {
|
|
82141
|
+
// Era
|
|
82114
82142
|
case "G":
|
|
82115
82143
|
result.era = len === 4 ? "long" : len === 5 ? "narrow" : "short";
|
|
82116
82144
|
break;
|
|
82145
|
+
// Year
|
|
82117
82146
|
case "y":
|
|
82118
82147
|
result.year = len === 2 ? "2-digit" : "numeric";
|
|
82119
82148
|
break;
|
|
@@ -82122,13 +82151,16 @@ function parseDateTimeSkeleton(skeleton) {
|
|
|
82122
82151
|
case "U":
|
|
82123
82152
|
case "r":
|
|
82124
82153
|
throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
|
|
82154
|
+
// Quarter
|
|
82125
82155
|
case "q":
|
|
82126
82156
|
case "Q":
|
|
82127
82157
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
82158
|
+
// Month
|
|
82128
82159
|
case "M":
|
|
82129
82160
|
case "L":
|
|
82130
82161
|
result.month = ["numeric", "2-digit", "short", "long", "narrow"][len - 1];
|
|
82131
82162
|
break;
|
|
82163
|
+
// Week
|
|
82132
82164
|
case "w":
|
|
82133
82165
|
case "W":
|
|
82134
82166
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
@@ -82139,6 +82171,7 @@ function parseDateTimeSkeleton(skeleton) {
|
|
|
82139
82171
|
case "F":
|
|
82140
82172
|
case "g":
|
|
82141
82173
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
82174
|
+
// Weekday
|
|
82142
82175
|
case "E":
|
|
82143
82176
|
result.weekday = len === 4 ? "long" : len === 5 ? "narrow" : "short";
|
|
82144
82177
|
break;
|
|
@@ -82154,12 +82187,15 @@ function parseDateTimeSkeleton(skeleton) {
|
|
|
82154
82187
|
}
|
|
82155
82188
|
result.weekday = ["short", "long", "narrow", "short"][len - 4];
|
|
82156
82189
|
break;
|
|
82190
|
+
// Period
|
|
82157
82191
|
case "a":
|
|
82158
82192
|
result.hour12 = true;
|
|
82159
82193
|
break;
|
|
82160
82194
|
case "b":
|
|
82195
|
+
// am, pm, noon, midnight
|
|
82161
82196
|
case "B":
|
|
82162
82197
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
82198
|
+
// Hour
|
|
82163
82199
|
case "h":
|
|
82164
82200
|
result.hourCycle = "h12";
|
|
82165
82201
|
result.hour = ["numeric", "2-digit"][len - 1];
|
|
@@ -82180,23 +82216,31 @@ function parseDateTimeSkeleton(skeleton) {
|
|
|
82180
82216
|
case "J":
|
|
82181
82217
|
case "C":
|
|
82182
82218
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
82219
|
+
// Minute
|
|
82183
82220
|
case "m":
|
|
82184
82221
|
result.minute = ["numeric", "2-digit"][len - 1];
|
|
82185
82222
|
break;
|
|
82223
|
+
// Second
|
|
82186
82224
|
case "s":
|
|
82187
82225
|
result.second = ["numeric", "2-digit"][len - 1];
|
|
82188
82226
|
break;
|
|
82189
82227
|
case "S":
|
|
82190
82228
|
case "A":
|
|
82191
82229
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
82230
|
+
// Zone
|
|
82192
82231
|
case "z":
|
|
82193
82232
|
result.timeZoneName = len < 4 ? "short" : "long";
|
|
82194
82233
|
break;
|
|
82195
82234
|
case "Z":
|
|
82235
|
+
// 1..3, 4, 5: The ISO8601 varios formats
|
|
82196
82236
|
case "O":
|
|
82237
|
+
// 1, 4: milliseconds in day short, long
|
|
82197
82238
|
case "v":
|
|
82239
|
+
// 1, 4: generic non-location format
|
|
82198
82240
|
case "V":
|
|
82241
|
+
// 1, 2, 3, 4: time zone ID or city
|
|
82199
82242
|
case "X":
|
|
82243
|
+
// 1, 2, 3, 4: The ISO8601 varios formats
|
|
82200
82244
|
case "x":
|
|
82201
82245
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
|
|
82202
82246
|
}
|
|
@@ -82399,6 +82443,7 @@ function parseNumberSkeleton(tokens) {
|
|
|
82399
82443
|
case "notation-simple":
|
|
82400
82444
|
result.notation = "standard";
|
|
82401
82445
|
continue;
|
|
82446
|
+
// https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
|
|
82402
82447
|
case "unit-width-narrow":
|
|
82403
82448
|
result.currencyDisplay = "narrowSymbol";
|
|
82404
82449
|
result.unitDisplay = "narrow";
|
|
@@ -82438,6 +82483,7 @@ function parseNumberSkeleton(tokens) {
|
|
|
82438
82483
|
case "rounding-mode-half-up":
|
|
82439
82484
|
result.roundingMode = "halfExpand";
|
|
82440
82485
|
continue;
|
|
82486
|
+
// https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
|
|
82441
82487
|
case "integer-width":
|
|
82442
82488
|
if (token2.options.length > 1) {
|
|
82443
82489
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
@@ -84282,6 +84328,7 @@ var Parser = (
|
|
|
84282
84328
|
this.bump();
|
|
84283
84329
|
this.bump();
|
|
84284
84330
|
return "'";
|
|
84331
|
+
// '{', '<', '>', '}'
|
|
84285
84332
|
case 123:
|
|
84286
84333
|
case 60:
|
|
84287
84334
|
case 62:
|
|
@@ -84347,6 +84394,7 @@ var Parser = (
|
|
|
84347
84394
|
return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
|
|
84348
84395
|
}
|
|
84349
84396
|
switch (this.char()) {
|
|
84397
|
+
// Simple argument: `{name}`
|
|
84350
84398
|
case 125: {
|
|
84351
84399
|
this.bump();
|
|
84352
84400
|
return {
|
|
@@ -84359,6 +84407,7 @@ var Parser = (
|
|
|
84359
84407
|
err: null
|
|
84360
84408
|
};
|
|
84361
84409
|
}
|
|
84410
|
+
// Argument with options: `{name, format, ...}`
|
|
84362
84411
|
case 44: {
|
|
84363
84412
|
this.bump();
|
|
84364
84413
|
this.bumpSpace();
|
|
@@ -85403,8 +85452,8 @@ var isString2 = (obj) => typeof obj === "string";
|
|
|
85403
85452
|
var defer = () => {
|
|
85404
85453
|
let res;
|
|
85405
85454
|
let rej;
|
|
85406
|
-
const promise = new Promise((
|
|
85407
|
-
res =
|
|
85455
|
+
const promise = new Promise((resolve5, reject) => {
|
|
85456
|
+
res = resolve5;
|
|
85408
85457
|
rej = reject;
|
|
85409
85458
|
});
|
|
85410
85459
|
promise.resolve = res;
|
|
@@ -88046,14 +88095,14 @@ var baseOpen = async (options) => {
|
|
|
88046
88095
|
}
|
|
88047
88096
|
const subprocess = childProcess.spawn(command, cliArguments, childProcessOptions);
|
|
88048
88097
|
if (options.wait) {
|
|
88049
|
-
return new Promise((
|
|
88098
|
+
return new Promise((resolve5, reject) => {
|
|
88050
88099
|
subprocess.once("error", reject);
|
|
88051
88100
|
subprocess.once("close", (exitCode) => {
|
|
88052
88101
|
if (!options.allowNonzeroExitCode && exitCode > 0) {
|
|
88053
88102
|
reject(new Error(`Exited with code ${exitCode}`));
|
|
88054
88103
|
return;
|
|
88055
88104
|
}
|
|
88056
|
-
|
|
88105
|
+
resolve5(subprocess);
|
|
88057
88106
|
});
|
|
88058
88107
|
});
|
|
88059
88108
|
}
|
|
@@ -88564,6 +88613,9 @@ function getErrorComponent(code, cause) {
|
|
|
88564
88613
|
FailedToCreateDevCenterOAuthApp: () => {
|
|
88565
88614
|
return () => /* @__PURE__ */ import_react79.default.createElement(SystemErrorMessage, { message: "Failed to register your oauth application in Wix" });
|
|
88566
88615
|
},
|
|
88616
|
+
FailedToUpdateDevCenterOAuthApp: () => {
|
|
88617
|
+
return () => /* @__PURE__ */ import_react79.default.createElement(SystemErrorMessage, { message: "Failed to update your oauth application in Wix" });
|
|
88618
|
+
},
|
|
88567
88619
|
FailedToAddPermission: () => {
|
|
88568
88620
|
return () => /* @__PURE__ */ import_react79.default.createElement(SystemErrorMessage, { message: "Failed to add permission" });
|
|
88569
88621
|
},
|
|
@@ -89495,6 +89547,15 @@ function getErrorComponent(code, cause) {
|
|
|
89495
89547
|
}
|
|
89496
89548
|
);
|
|
89497
89549
|
},
|
|
89550
|
+
FailedToSyncVeloCLIServerDocumentUpdate: () => {
|
|
89551
|
+
return () => /* @__PURE__ */ import_react79.default.createElement(
|
|
89552
|
+
ErrorMessage,
|
|
89553
|
+
{
|
|
89554
|
+
cause,
|
|
89555
|
+
message: "Failed to sync local file system document updates with the Editor."
|
|
89556
|
+
}
|
|
89557
|
+
);
|
|
89558
|
+
},
|
|
89498
89559
|
CreateVersionDeprecated: ({ packageManagerRunCmd }) => {
|
|
89499
89560
|
return () => /* @__PURE__ */ import_react79.default.createElement(
|
|
89500
89561
|
CreateVersionDeprecationMessage,
|
|
@@ -90091,7 +90152,7 @@ var _nativeNodeFetchIntegration = (options = {}) => {
|
|
|
90091
90152
|
return;
|
|
90092
90153
|
}
|
|
90093
90154
|
try {
|
|
90094
|
-
const pkg = await import("./build-
|
|
90155
|
+
const pkg = await import("./build-6IMWAXMA.js");
|
|
90095
90156
|
const { FetchInstrumentation } = pkg;
|
|
90096
90157
|
class SentryNodeFetchInstrumentation extends FetchInstrumentation {
|
|
90097
90158
|
// We extend this method so we have access to request _and_ response for the breadcrumb
|
|
@@ -90423,13 +90484,13 @@ async function getDarwinInfo() {
|
|
|
90423
90484
|
version: `10.${Number(os3.release().split(".")[0]) - 4}`
|
|
90424
90485
|
};
|
|
90425
90486
|
try {
|
|
90426
|
-
const output = await new Promise((
|
|
90487
|
+
const output = await new Promise((resolve5, reject) => {
|
|
90427
90488
|
execFile5("/usr/bin/sw_vers", (error, stdout) => {
|
|
90428
90489
|
if (error) {
|
|
90429
90490
|
reject(error);
|
|
90430
90491
|
return;
|
|
90431
90492
|
}
|
|
90432
|
-
|
|
90493
|
+
resolve5(stdout);
|
|
90433
90494
|
});
|
|
90434
90495
|
});
|
|
90435
90496
|
darwinInfo.name = matchFirst(/^ProductName:\s+(.*)$/m, output);
|
|
@@ -90591,7 +90652,7 @@ function makeLineReaderRanges(lines, linecontext) {
|
|
|
90591
90652
|
return out;
|
|
90592
90653
|
}
|
|
90593
90654
|
function getContextLinesFromFile(path8, ranges, output) {
|
|
90594
|
-
return new Promise((
|
|
90655
|
+
return new Promise((resolve5, _reject) => {
|
|
90595
90656
|
const stream2 = createReadStream(path8);
|
|
90596
90657
|
const lineReaded = createInterface({
|
|
90597
90658
|
input: stream2
|
|
@@ -90600,7 +90661,7 @@ function getContextLinesFromFile(path8, ranges, output) {
|
|
|
90600
90661
|
let currentRangeIndex = 0;
|
|
90601
90662
|
const range = ranges[currentRangeIndex];
|
|
90602
90663
|
if (range === void 0) {
|
|
90603
|
-
|
|
90664
|
+
resolve5();
|
|
90604
90665
|
return;
|
|
90605
90666
|
}
|
|
90606
90667
|
let rangeStart = range[0];
|
|
@@ -90610,11 +90671,11 @@ function getContextLinesFromFile(path8, ranges, output) {
|
|
|
90610
90671
|
DEBUG_BUILD && logger.error(`Failed to read file: ${path8}. Error: ${e2}`);
|
|
90611
90672
|
lineReaded.close();
|
|
90612
90673
|
lineReaded.removeAllListeners();
|
|
90613
|
-
|
|
90674
|
+
resolve5();
|
|
90614
90675
|
}
|
|
90615
90676
|
stream2.on("error", onStreamError);
|
|
90616
90677
|
lineReaded.on("error", onStreamError);
|
|
90617
|
-
lineReaded.on("close",
|
|
90678
|
+
lineReaded.on("close", resolve5);
|
|
90618
90679
|
lineReaded.on("line", (line) => {
|
|
90619
90680
|
lineNumber++;
|
|
90620
90681
|
if (lineNumber < rangeStart) return;
|
|
@@ -91980,7 +92041,7 @@ function debug(...args) {
|
|
|
91980
92041
|
logger.log("[https-proxy-agent:parse-proxy-response]", ...args);
|
|
91981
92042
|
}
|
|
91982
92043
|
function parseProxyResponse(socket) {
|
|
91983
|
-
return new Promise((
|
|
92044
|
+
return new Promise((resolve5, reject) => {
|
|
91984
92045
|
let buffersLength = 0;
|
|
91985
92046
|
const buffers = [];
|
|
91986
92047
|
function read() {
|
|
@@ -92043,7 +92104,7 @@ function parseProxyResponse(socket) {
|
|
|
92043
92104
|
}
|
|
92044
92105
|
debug("got proxy server response: %o %o", firstLine, headers);
|
|
92045
92106
|
cleanup();
|
|
92046
|
-
|
|
92107
|
+
resolve5({
|
|
92047
92108
|
connect: {
|
|
92048
92109
|
statusCode,
|
|
92049
92110
|
statusText,
|
|
@@ -92213,7 +92274,7 @@ function applyNoProxyOption(transportUrlSegments, proxy) {
|
|
|
92213
92274
|
function createRequestExecutor(options, httpModule, agent) {
|
|
92214
92275
|
const { hostname: hostname2, pathname, port, protocol, search } = new URL(options.url);
|
|
92215
92276
|
return function makeRequest(request) {
|
|
92216
|
-
return new Promise((
|
|
92277
|
+
return new Promise((resolve5, reject) => {
|
|
92217
92278
|
let body = streamFromBody(request.body);
|
|
92218
92279
|
const headers = { ...options.headers };
|
|
92219
92280
|
if (request.body.length > GZIP_THRESHOLD) {
|
|
@@ -92239,7 +92300,7 @@ function createRequestExecutor(options, httpModule, agent) {
|
|
|
92239
92300
|
res.setEncoding("utf8");
|
|
92240
92301
|
const retryAfterHeader = _nullishCoalesce(res.headers["retry-after"], () => null);
|
|
92241
92302
|
const rateLimitsHeader = _nullishCoalesce(res.headers["x-sentry-rate-limits"], () => null);
|
|
92242
|
-
|
|
92303
|
+
resolve5({
|
|
92243
92304
|
statusCode: res.statusCode,
|
|
92244
92305
|
headers: {
|
|
92245
92306
|
"retry-after": retryAfterHeader,
|
|
@@ -92491,7 +92552,7 @@ function createErrorReporter({ dsn, release: release2 }) {
|
|
|
92491
92552
|
return result;
|
|
92492
92553
|
},
|
|
92493
92554
|
reportUserFeedback: async ({ userId, eventId, feedback }) => {
|
|
92494
|
-
const { BrowserClient } = await import("./esm-
|
|
92555
|
+
const { BrowserClient } = await import("./esm-KPR2HWDF.js");
|
|
92495
92556
|
const client2 = new BrowserClient({
|
|
92496
92557
|
enabled: sentryClient.getOptions().enabled,
|
|
92497
92558
|
dsn: sentryClient.getOptions().dsn,
|
|
@@ -92619,6 +92680,7 @@ var UserFeedbackForm = ({ onSubmit }) => {
|
|
|
92619
92680
|
return /* @__PURE__ */ import_react82.default.createElement(import_react82.default.Fragment, null, /* @__PURE__ */ import_react82.default.createElement(Box_default, { flexDirection: "column", marginTop: 1, marginBottom: 1 }, /* @__PURE__ */ import_react82.default.createElement(Text2, null, t3("user_feedback.title")), /* @__PURE__ */ import_react82.default.createElement(Text2, { skin: "secondary" }, t3("user_feedback.subtitle"))), /* @__PURE__ */ import_react82.default.createElement(
|
|
92620
92681
|
ConfirmInput,
|
|
92621
92682
|
{
|
|
92683
|
+
initialValue: false,
|
|
92622
92684
|
label: t3("user_feedback.consent.label"),
|
|
92623
92685
|
onSubmit: handleConsentSubmit
|
|
92624
92686
|
}
|
|
@@ -93235,16 +93297,16 @@ function wixCliCliError(params) {
|
|
|
93235
93297
|
var package_default = {
|
|
93236
93298
|
name: "@wix/create-headless-site",
|
|
93237
93299
|
description: "Headless site creation wizard",
|
|
93238
|
-
version: "0.0.
|
|
93300
|
+
version: "0.0.8",
|
|
93239
93301
|
bin: "bin/index.cjs",
|
|
93240
93302
|
devDependencies: {
|
|
93241
93303
|
"@commander-js/extra-typings": "^13.0.0",
|
|
93242
93304
|
"@types/react": "^18.3.3",
|
|
93243
93305
|
"@types/semver": "^7.5.8",
|
|
93244
93306
|
"@types/validate-npm-package-name": "^4.0.2",
|
|
93245
|
-
"@wix/ambassador-metasite-api-v1-meta-site": "^1.0.
|
|
93307
|
+
"@wix/ambassador-metasite-api-v1-meta-site": "^1.0.115",
|
|
93246
93308
|
"@wix/backend-as-a-service-client": "workspace:*",
|
|
93247
|
-
"@wix/bi-logger-dev-tools-data": "^1.
|
|
93309
|
+
"@wix/bi-logger-dev-tools-data": "^1.112.0",
|
|
93248
93310
|
"@wix/cli-astro-definitions": "workspace:*",
|
|
93249
93311
|
"@wix/cli-auth": "workspace:*",
|
|
93250
93312
|
"@wix/cli-core-definitions": "workspace:*",
|
|
@@ -93350,7 +93412,7 @@ var createBiLogger2 = async (errorReporter2, userId) => {
|
|
|
93350
93412
|
// src/components/CreateHeadlessSiteCommand.tsx
|
|
93351
93413
|
init_esm_shims();
|
|
93352
93414
|
var import_react109 = __toESM(require_react(), 1);
|
|
93353
|
-
var
|
|
93415
|
+
var import_variant38 = __toESM(require_lib(), 1);
|
|
93354
93416
|
|
|
93355
93417
|
// ../package-manager/src/index.ts
|
|
93356
93418
|
init_esm_shims();
|
|
@@ -94294,7 +94356,7 @@ var setupTimeout = (spawned, { timeout: timeout2, killSignal = "SIGTERM" }, spaw
|
|
|
94294
94356
|
return spawnedPromise;
|
|
94295
94357
|
}
|
|
94296
94358
|
let timeoutId;
|
|
94297
|
-
const timeoutPromise = new Promise((
|
|
94359
|
+
const timeoutPromise = new Promise((resolve5, reject) => {
|
|
94298
94360
|
timeoutId = setTimeout(() => {
|
|
94299
94361
|
timeoutKill(spawned, killSignal, reject);
|
|
94300
94362
|
}, timeout2);
|
|
@@ -94675,9 +94737,9 @@ var mergePromise = (spawned, promise) => {
|
|
|
94675
94737
|
Reflect.defineProperty(spawned, property, { ...descriptor, value: value2 });
|
|
94676
94738
|
}
|
|
94677
94739
|
};
|
|
94678
|
-
var getSpawnedPromise = (spawned) => new Promise((
|
|
94740
|
+
var getSpawnedPromise = (spawned) => new Promise((resolve5, reject) => {
|
|
94679
94741
|
spawned.on("exit", (exitCode, signal) => {
|
|
94680
|
-
|
|
94742
|
+
resolve5({ exitCode, signal });
|
|
94681
94743
|
});
|
|
94682
94744
|
spawned.on("error", (error) => {
|
|
94683
94745
|
reject(error);
|
|
@@ -96107,14 +96169,14 @@ var normalizeRetryOptions = (retry2 = {}) => {
|
|
|
96107
96169
|
// ../../node_modules/ky/distribution/utils/timeout.js
|
|
96108
96170
|
init_esm_shims();
|
|
96109
96171
|
async function timeout(request, init3, abortController, options) {
|
|
96110
|
-
return new Promise((
|
|
96172
|
+
return new Promise((resolve5, reject) => {
|
|
96111
96173
|
const timeoutId = setTimeout(() => {
|
|
96112
96174
|
if (abortController) {
|
|
96113
96175
|
abortController.abort();
|
|
96114
96176
|
}
|
|
96115
96177
|
reject(new TimeoutError3(request));
|
|
96116
96178
|
}, options.timeout);
|
|
96117
|
-
void options.fetch(request, init3).then(
|
|
96179
|
+
void options.fetch(request, init3).then(resolve5).catch(reject).then(() => {
|
|
96118
96180
|
clearTimeout(timeoutId);
|
|
96119
96181
|
});
|
|
96120
96182
|
});
|
|
@@ -96123,7 +96185,7 @@ async function timeout(request, init3, abortController, options) {
|
|
|
96123
96185
|
// ../../node_modules/ky/distribution/utils/delay.js
|
|
96124
96186
|
init_esm_shims();
|
|
96125
96187
|
async function delay(ms, { signal }) {
|
|
96126
|
-
return new Promise((
|
|
96188
|
+
return new Promise((resolve5, reject) => {
|
|
96127
96189
|
if (signal) {
|
|
96128
96190
|
signal.throwIfAborted();
|
|
96129
96191
|
signal.addEventListener("abort", abortHandler, { once: true });
|
|
@@ -96134,7 +96196,7 @@ async function delay(ms, { signal }) {
|
|
|
96134
96196
|
}
|
|
96135
96197
|
const timeoutId = setTimeout(() => {
|
|
96136
96198
|
signal?.removeEventListener("abort", abortHandler);
|
|
96137
|
-
|
|
96199
|
+
resolve5();
|
|
96138
96200
|
}, ms);
|
|
96139
96201
|
});
|
|
96140
96202
|
}
|
|
@@ -97301,6 +97363,11 @@ init_esm_shims();
|
|
|
97301
97363
|
var _createOAuthAppRequest = { oAuthApp: "_oAuthApp" };
|
|
97302
97364
|
var _createOAuthAppResponse = { oAuthApp: "_oAuthApp" };
|
|
97303
97365
|
var _oAuthApp = { createdDate: "google.protobuf.Timestamp" };
|
|
97366
|
+
var _updateOAuthAppRequest = {
|
|
97367
|
+
mask: "google.protobuf.FieldMask",
|
|
97368
|
+
oAuthApp: "_oAuthApp"
|
|
97369
|
+
};
|
|
97370
|
+
var _updateOAuthAppResponse = { oAuthApp: "_oAuthApp" };
|
|
97304
97371
|
function resolveWixHeadlessV1OAuthAppServiceUrl(opts) {
|
|
97305
97372
|
var domainToMappings = {
|
|
97306
97373
|
"manage._base_domain_": [
|
|
@@ -97354,6 +97421,32 @@ function createOAuthApp(payload5) {
|
|
|
97354
97421
|
__createOAuthApp.__isAmbassador = true;
|
|
97355
97422
|
return __createOAuthApp;
|
|
97356
97423
|
}
|
|
97424
|
+
function updateOAuthApp(payload5) {
|
|
97425
|
+
var _a3 = serializer(_updateOAuthAppRequest, { _oAuthApp }), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
97426
|
+
var fromRes = serializer(_updateOAuthAppResponse, {
|
|
97427
|
+
_oAuthApp
|
|
97428
|
+
}).fromJSON;
|
|
97429
|
+
function __updateOAuthApp(_a4) {
|
|
97430
|
+
var host = _a4.host;
|
|
97431
|
+
var serializedData = toReq(payload5);
|
|
97432
|
+
var metadata = {
|
|
97433
|
+
entityFqdn: "wix.headless.v1.o_auth_app",
|
|
97434
|
+
method: "PATCH",
|
|
97435
|
+
methodFqn: "wix.headless.v1.OAuthAppService.UpdateOAuthApp",
|
|
97436
|
+
url: resolveWixHeadlessV1OAuthAppServiceUrl({
|
|
97437
|
+
protoPath: "/v1/oauth-apps/{oAuthApp.id}",
|
|
97438
|
+
data: serializedData,
|
|
97439
|
+
host
|
|
97440
|
+
}),
|
|
97441
|
+
data: serializedData,
|
|
97442
|
+
transformResponse: fromRes
|
|
97443
|
+
};
|
|
97444
|
+
return metadata;
|
|
97445
|
+
}
|
|
97446
|
+
__updateOAuthApp.fromReq = fromReq;
|
|
97447
|
+
__updateOAuthApp.__isAmbassador = true;
|
|
97448
|
+
return __updateOAuthApp;
|
|
97449
|
+
}
|
|
97357
97450
|
|
|
97358
97451
|
// ../../node_modules/@wix/ambassador-devcenter-apps-v1-app-version/build/es/http.impl.js
|
|
97359
97452
|
init_esm_shims();
|
|
@@ -97517,12 +97610,12 @@ var Action;
|
|
|
97517
97610
|
Action2["DELETED"] = "DELETED";
|
|
97518
97611
|
})(Action || (Action = {}));
|
|
97519
97612
|
var WebhookIdentityType;
|
|
97520
|
-
(function(
|
|
97521
|
-
|
|
97522
|
-
|
|
97523
|
-
|
|
97524
|
-
|
|
97525
|
-
|
|
97613
|
+
(function(WebhookIdentityType4) {
|
|
97614
|
+
WebhookIdentityType4["UNKNOWN"] = "UNKNOWN";
|
|
97615
|
+
WebhookIdentityType4["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
97616
|
+
WebhookIdentityType4["MEMBER"] = "MEMBER";
|
|
97617
|
+
WebhookIdentityType4["WIX_USER"] = "WIX_USER";
|
|
97618
|
+
WebhookIdentityType4["APP"] = "APP";
|
|
97526
97619
|
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
97527
97620
|
|
|
97528
97621
|
// ../../node_modules/@wix/ambassador-devcenter-myapps-v1-my-app/build/es/http.impl.js
|
|
@@ -98731,6 +98824,9 @@ var ComponentType;
|
|
|
98731
98824
|
ComponentType3["BACKEND_WORKER"] = "BACKEND_WORKER";
|
|
98732
98825
|
ComponentType3["EVENT_TIME_SLOTS_CONFIGURATION_PROVIDER"] = "EVENT_TIME_SLOTS_CONFIGURATION_PROVIDER";
|
|
98733
98826
|
ComponentType3["WIX_HOSTING_APP_ENVIRONMENT_PROVIDER"] = "WIX_HOSTING_APP_ENVIRONMENT_PROVIDER";
|
|
98827
|
+
ComponentType3["SDK_EXPORTS"] = "SDK_EXPORTS";
|
|
98828
|
+
ComponentType3["VIEWER_SERVICE"] = "VIEWER_SERVICE";
|
|
98829
|
+
ComponentType3["WIX_PAYMENTS_PROVIDER_ACCOUNT_SERVICE_PLUGIN"] = "WIX_PAYMENTS_PROVIDER_ACCOUNT_SERVICE_PLUGIN";
|
|
98734
98830
|
})(ComponentType || (ComponentType = {}));
|
|
98735
98831
|
var WidgetVertical;
|
|
98736
98832
|
(function(WidgetVertical3) {
|
|
@@ -99122,6 +99218,7 @@ var Tag;
|
|
|
99122
99218
|
Tag3["ECOM_CREATE_PAY_LINK"] = "ECOM_CREATE_PAY_LINK";
|
|
99123
99219
|
Tag3["ECOM_DELIVERY_PROFILES"] = "ECOM_DELIVERY_PROFILES";
|
|
99124
99220
|
Tag3["ADD_TO_CATEGORY"] = "ADD_TO_CATEGORY";
|
|
99221
|
+
Tag3["MY_BUSINESS"] = "MY_BUSINESS";
|
|
99125
99222
|
})(Tag || (Tag = {}));
|
|
99126
99223
|
var FilterSelectionType;
|
|
99127
99224
|
(function(FilterSelectionType3) {
|
|
@@ -99374,6 +99471,8 @@ var DecorationType;
|
|
|
99374
99471
|
DecorationType3["FONT_SIZE"] = "FONT_SIZE";
|
|
99375
99472
|
DecorationType3["EXTERNAL"] = "EXTERNAL";
|
|
99376
99473
|
DecorationType3["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
99474
|
+
DecorationType3["SUPERSCRIPT"] = "SUPERSCRIPT";
|
|
99475
|
+
DecorationType3["SUBSCRIPT"] = "SUBSCRIPT";
|
|
99377
99476
|
})(DecorationType || (DecorationType = {}));
|
|
99378
99477
|
var FontType;
|
|
99379
99478
|
(function(FontType3) {
|
|
@@ -99944,6 +100043,7 @@ var FactorType;
|
|
|
99944
100043
|
FactorType3["EMAIL"] = "EMAIL";
|
|
99945
100044
|
FactorType3["TOTP"] = "TOTP";
|
|
99946
100045
|
FactorType3["PUSH"] = "PUSH";
|
|
100046
|
+
FactorType3["WEBAUTHN"] = "WEBAUTHN";
|
|
99947
100047
|
})(FactorType || (FactorType = {}));
|
|
99948
100048
|
var MonitoringType;
|
|
99949
100049
|
(function(MonitoringType3) {
|
|
@@ -100039,6 +100139,7 @@ var CssPropertyType;
|
|
|
100039
100139
|
CssPropertyType3["backgroundRepeat"] = "backgroundRepeat";
|
|
100040
100140
|
CssPropertyType3["backgroundAttachment"] = "backgroundAttachment";
|
|
100041
100141
|
CssPropertyType3["fill"] = "fill";
|
|
100142
|
+
CssPropertyType3["fillOpacity"] = "fillOpacity";
|
|
100042
100143
|
CssPropertyType3["margin"] = "margin";
|
|
100043
100144
|
CssPropertyType3["marginTop"] = "marginTop";
|
|
100044
100145
|
CssPropertyType3["marginRight"] = "marginRight";
|
|
@@ -100105,6 +100206,7 @@ var CssPropertyType;
|
|
|
100105
100206
|
CssPropertyType3["textTransform"] = "textTransform";
|
|
100106
100207
|
CssPropertyType3["textShadow"] = "textShadow";
|
|
100107
100208
|
CssPropertyType3["textOverflow"] = "textOverflow";
|
|
100209
|
+
CssPropertyType3["textIndent"] = "textIndent";
|
|
100108
100210
|
CssPropertyType3["textDecoration"] = "textDecoration";
|
|
100109
100211
|
CssPropertyType3["textDecorationColor"] = "textDecorationColor";
|
|
100110
100212
|
CssPropertyType3["textDecorationLine"] = "textDecorationLine";
|
|
@@ -100129,6 +100231,9 @@ var CssPropertyType;
|
|
|
100129
100231
|
CssPropertyType3["objectPosition"] = "objectPosition";
|
|
100130
100232
|
CssPropertyType3["mixBlendMode"] = "mixBlendMode";
|
|
100131
100233
|
CssPropertyType3["isolation"] = "isolation";
|
|
100234
|
+
CssPropertyType3["stroke"] = "stroke";
|
|
100235
|
+
CssPropertyType3["strokeWidth"] = "strokeWidth";
|
|
100236
|
+
CssPropertyType3["strokeOpacity"] = "strokeOpacity";
|
|
100132
100237
|
})(CssPropertyType || (CssPropertyType = {}));
|
|
100133
100238
|
var CssDataType;
|
|
100134
100239
|
(function(CssDataType3) {
|
|
@@ -100142,6 +100247,7 @@ var CssDataType;
|
|
|
100142
100247
|
CssDataType3["blendMode"] = "blendMode";
|
|
100143
100248
|
CssDataType3["customEnum"] = "customEnum";
|
|
100144
100249
|
CssDataType3["string"] = "string";
|
|
100250
|
+
CssDataType3["time"] = "time";
|
|
100145
100251
|
})(CssDataType || (CssDataType = {}));
|
|
100146
100252
|
var FilterFunction;
|
|
100147
100253
|
(function(FilterFunction3) {
|
|
@@ -100184,6 +100290,11 @@ var WritingModeValue;
|
|
|
100184
100290
|
WritingModeValue3["sidewaysRl"] = "sidewaysRl";
|
|
100185
100291
|
WritingModeValue3["sidewaysLr"] = "sidewaysLr";
|
|
100186
100292
|
})(WritingModeValue || (WritingModeValue = {}));
|
|
100293
|
+
var BackgroundModeEnum;
|
|
100294
|
+
(function(BackgroundModeEnum3) {
|
|
100295
|
+
BackgroundModeEnum3["UNKNOWN_BackgroundModeEnum"] = "UNKNOWN_BackgroundModeEnum";
|
|
100296
|
+
BackgroundModeEnum3["shapeDividerSvg"] = "shapeDividerSvg";
|
|
100297
|
+
})(BackgroundModeEnum || (BackgroundModeEnum = {}));
|
|
100187
100298
|
var DataType;
|
|
100188
100299
|
(function(DataType3) {
|
|
100189
100300
|
DataType3["UNKNOWN_DataType"] = "UNKNOWN_DataType";
|
|
@@ -100211,6 +100322,7 @@ var DataType;
|
|
|
100211
100322
|
DataType3["container"] = "container";
|
|
100212
100323
|
DataType3["arrayItems"] = "arrayItems";
|
|
100213
100324
|
DataType3["direction"] = "direction";
|
|
100325
|
+
DataType3["menuItems"] = "menuItems";
|
|
100214
100326
|
})(DataType || (DataType = {}));
|
|
100215
100327
|
var A11yAttributes;
|
|
100216
100328
|
(function(A11yAttributes3) {
|
|
@@ -100263,7 +100375,17 @@ var ContainerType;
|
|
|
100263
100375
|
ContainerType3["simple"] = "simple";
|
|
100264
100376
|
ContainerType3["slot"] = "slot";
|
|
100265
100377
|
ContainerType3["placeholder"] = "placeholder";
|
|
100378
|
+
ContainerType3["template"] = "template";
|
|
100266
100379
|
})(ContainerType || (ContainerType = {}));
|
|
100380
|
+
var ResizeDirection;
|
|
100381
|
+
(function(ResizeDirection3) {
|
|
100382
|
+
ResizeDirection3["UNKNOWN_ResizeDirection"] = "UNKNOWN_ResizeDirection";
|
|
100383
|
+
ResizeDirection3["horizontal"] = "horizontal";
|
|
100384
|
+
ResizeDirection3["vertical"] = "vertical";
|
|
100385
|
+
ResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
|
|
100386
|
+
ResizeDirection3["aspectRatio"] = "aspectRatio";
|
|
100387
|
+
ResizeDirection3["none"] = "none";
|
|
100388
|
+
})(ResizeDirection || (ResizeDirection = {}));
|
|
100267
100389
|
var ElementTypeEnumElementType;
|
|
100268
100390
|
(function(ElementTypeEnumElementType2) {
|
|
100269
100391
|
ElementTypeEnumElementType2["UNKNOWN_ElementType"] = "UNKNOWN_ElementType";
|
|
@@ -100343,15 +100465,14 @@ var Archetype;
|
|
|
100343
100465
|
Archetype3["VectorArt"] = "VectorArt";
|
|
100344
100466
|
Archetype3["AnimatedGraphic"] = "AnimatedGraphic";
|
|
100345
100467
|
})(Archetype || (Archetype = {}));
|
|
100346
|
-
var
|
|
100347
|
-
(function(
|
|
100348
|
-
|
|
100349
|
-
|
|
100350
|
-
|
|
100351
|
-
|
|
100352
|
-
|
|
100353
|
-
|
|
100354
|
-
})(ResizeDirection || (ResizeDirection = {}));
|
|
100468
|
+
var NativeStateType;
|
|
100469
|
+
(function(NativeStateType3) {
|
|
100470
|
+
NativeStateType3["UNKNOWN_NativeStateType"] = "UNKNOWN_NativeStateType";
|
|
100471
|
+
NativeStateType3["hover"] = "hover";
|
|
100472
|
+
NativeStateType3["focus"] = "focus";
|
|
100473
|
+
NativeStateType3["disabled"] = "disabled";
|
|
100474
|
+
NativeStateType3["invalid"] = "invalid";
|
|
100475
|
+
})(NativeStateType || (NativeStateType = {}));
|
|
100355
100476
|
var ContentResizeDirection;
|
|
100356
100477
|
(function(ContentResizeDirection3) {
|
|
100357
100478
|
ContentResizeDirection3["UNKNOWN_ContentResizeDirection"] = "UNKNOWN_ContentResizeDirection";
|
|
@@ -100360,6 +100481,17 @@ var ContentResizeDirection;
|
|
|
100360
100481
|
ContentResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
|
|
100361
100482
|
ContentResizeDirection3["none"] = "none";
|
|
100362
100483
|
})(ContentResizeDirection || (ContentResizeDirection = {}));
|
|
100484
|
+
var InteractionsTrigger;
|
|
100485
|
+
(function(InteractionsTrigger3) {
|
|
100486
|
+
InteractionsTrigger3["UNKNOWN_TRIGGER"] = "UNKNOWN_TRIGGER";
|
|
100487
|
+
InteractionsTrigger3["hover"] = "hover";
|
|
100488
|
+
InteractionsTrigger3["click"] = "click";
|
|
100489
|
+
InteractionsTrigger3["viewEnter"] = "viewEnter";
|
|
100490
|
+
InteractionsTrigger3["pageVisible"] = "pageVisible";
|
|
100491
|
+
InteractionsTrigger3["viewProgress"] = "viewProgress";
|
|
100492
|
+
InteractionsTrigger3["pointerMove"] = "pointerMove";
|
|
100493
|
+
InteractionsTrigger3["animationEnd"] = "animationEnd";
|
|
100494
|
+
})(InteractionsTrigger || (InteractionsTrigger = {}));
|
|
100363
100495
|
var RestrictionLevel;
|
|
100364
100496
|
(function(RestrictionLevel3) {
|
|
100365
100497
|
RestrictionLevel3["UNKNOWN_RESTRICTION_TYPE"] = "UNKNOWN_RESTRICTION_TYPE";
|
|
@@ -100694,6 +100826,8 @@ var ComponentType2;
|
|
|
100694
100826
|
ComponentType3["EVENT_TIME_SLOTS_CONFIGURATION_PROVIDER"] = "EVENT_TIME_SLOTS_CONFIGURATION_PROVIDER";
|
|
100695
100827
|
ComponentType3["WIX_HOSTING_APP_ENVIRONMENT_PROVIDER"] = "WIX_HOSTING_APP_ENVIRONMENT_PROVIDER";
|
|
100696
100828
|
ComponentType3["SDK_EXPORTS"] = "SDK_EXPORTS";
|
|
100829
|
+
ComponentType3["VIEWER_SERVICE"] = "VIEWER_SERVICE";
|
|
100830
|
+
ComponentType3["WIX_PAYMENTS_PROVIDER_ACCOUNT_SERVICE_PLUGIN"] = "WIX_PAYMENTS_PROVIDER_ACCOUNT_SERVICE_PLUGIN";
|
|
100697
100831
|
})(ComponentType2 || (ComponentType2 = {}));
|
|
100698
100832
|
var WidgetVertical2;
|
|
100699
100833
|
(function(WidgetVertical3) {
|
|
@@ -101085,6 +101219,7 @@ var Tag2;
|
|
|
101085
101219
|
Tag3["ECOM_CREATE_PAY_LINK"] = "ECOM_CREATE_PAY_LINK";
|
|
101086
101220
|
Tag3["ECOM_DELIVERY_PROFILES"] = "ECOM_DELIVERY_PROFILES";
|
|
101087
101221
|
Tag3["ADD_TO_CATEGORY"] = "ADD_TO_CATEGORY";
|
|
101222
|
+
Tag3["MY_BUSINESS"] = "MY_BUSINESS";
|
|
101088
101223
|
})(Tag2 || (Tag2 = {}));
|
|
101089
101224
|
var FilterSelectionType2;
|
|
101090
101225
|
(function(FilterSelectionType3) {
|
|
@@ -101337,6 +101472,8 @@ var DecorationType2;
|
|
|
101337
101472
|
DecorationType3["FONT_SIZE"] = "FONT_SIZE";
|
|
101338
101473
|
DecorationType3["EXTERNAL"] = "EXTERNAL";
|
|
101339
101474
|
DecorationType3["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
101475
|
+
DecorationType3["SUPERSCRIPT"] = "SUPERSCRIPT";
|
|
101476
|
+
DecorationType3["SUBSCRIPT"] = "SUBSCRIPT";
|
|
101340
101477
|
})(DecorationType2 || (DecorationType2 = {}));
|
|
101341
101478
|
var FontType2;
|
|
101342
101479
|
(function(FontType3) {
|
|
@@ -101907,6 +102044,7 @@ var FactorType2;
|
|
|
101907
102044
|
FactorType3["EMAIL"] = "EMAIL";
|
|
101908
102045
|
FactorType3["TOTP"] = "TOTP";
|
|
101909
102046
|
FactorType3["PUSH"] = "PUSH";
|
|
102047
|
+
FactorType3["WEBAUTHN"] = "WEBAUTHN";
|
|
101910
102048
|
})(FactorType2 || (FactorType2 = {}));
|
|
101911
102049
|
var MonitoringType2;
|
|
101912
102050
|
(function(MonitoringType3) {
|
|
@@ -102002,6 +102140,7 @@ var CssPropertyType2;
|
|
|
102002
102140
|
CssPropertyType3["backgroundRepeat"] = "backgroundRepeat";
|
|
102003
102141
|
CssPropertyType3["backgroundAttachment"] = "backgroundAttachment";
|
|
102004
102142
|
CssPropertyType3["fill"] = "fill";
|
|
102143
|
+
CssPropertyType3["fillOpacity"] = "fillOpacity";
|
|
102005
102144
|
CssPropertyType3["margin"] = "margin";
|
|
102006
102145
|
CssPropertyType3["marginTop"] = "marginTop";
|
|
102007
102146
|
CssPropertyType3["marginRight"] = "marginRight";
|
|
@@ -102068,6 +102207,7 @@ var CssPropertyType2;
|
|
|
102068
102207
|
CssPropertyType3["textTransform"] = "textTransform";
|
|
102069
102208
|
CssPropertyType3["textShadow"] = "textShadow";
|
|
102070
102209
|
CssPropertyType3["textOverflow"] = "textOverflow";
|
|
102210
|
+
CssPropertyType3["textIndent"] = "textIndent";
|
|
102071
102211
|
CssPropertyType3["textDecoration"] = "textDecoration";
|
|
102072
102212
|
CssPropertyType3["textDecorationColor"] = "textDecorationColor";
|
|
102073
102213
|
CssPropertyType3["textDecorationLine"] = "textDecorationLine";
|
|
@@ -102092,6 +102232,9 @@ var CssPropertyType2;
|
|
|
102092
102232
|
CssPropertyType3["objectPosition"] = "objectPosition";
|
|
102093
102233
|
CssPropertyType3["mixBlendMode"] = "mixBlendMode";
|
|
102094
102234
|
CssPropertyType3["isolation"] = "isolation";
|
|
102235
|
+
CssPropertyType3["stroke"] = "stroke";
|
|
102236
|
+
CssPropertyType3["strokeWidth"] = "strokeWidth";
|
|
102237
|
+
CssPropertyType3["strokeOpacity"] = "strokeOpacity";
|
|
102095
102238
|
})(CssPropertyType2 || (CssPropertyType2 = {}));
|
|
102096
102239
|
var CssDataType2;
|
|
102097
102240
|
(function(CssDataType3) {
|
|
@@ -102148,6 +102291,11 @@ var WritingModeValue2;
|
|
|
102148
102291
|
WritingModeValue3["sidewaysRl"] = "sidewaysRl";
|
|
102149
102292
|
WritingModeValue3["sidewaysLr"] = "sidewaysLr";
|
|
102150
102293
|
})(WritingModeValue2 || (WritingModeValue2 = {}));
|
|
102294
|
+
var BackgroundModeEnum2;
|
|
102295
|
+
(function(BackgroundModeEnum3) {
|
|
102296
|
+
BackgroundModeEnum3["UNKNOWN_BackgroundModeEnum"] = "UNKNOWN_BackgroundModeEnum";
|
|
102297
|
+
BackgroundModeEnum3["shapeDividerSvg"] = "shapeDividerSvg";
|
|
102298
|
+
})(BackgroundModeEnum2 || (BackgroundModeEnum2 = {}));
|
|
102151
102299
|
var DataType2;
|
|
102152
102300
|
(function(DataType3) {
|
|
102153
102301
|
DataType3["UNKNOWN_DataType"] = "UNKNOWN_DataType";
|
|
@@ -102175,6 +102323,7 @@ var DataType2;
|
|
|
102175
102323
|
DataType3["container"] = "container";
|
|
102176
102324
|
DataType3["arrayItems"] = "arrayItems";
|
|
102177
102325
|
DataType3["direction"] = "direction";
|
|
102326
|
+
DataType3["menuItems"] = "menuItems";
|
|
102178
102327
|
})(DataType2 || (DataType2 = {}));
|
|
102179
102328
|
var A11yAttributes2;
|
|
102180
102329
|
(function(A11yAttributes3) {
|
|
@@ -102227,7 +102376,17 @@ var ContainerType2;
|
|
|
102227
102376
|
ContainerType3["simple"] = "simple";
|
|
102228
102377
|
ContainerType3["slot"] = "slot";
|
|
102229
102378
|
ContainerType3["placeholder"] = "placeholder";
|
|
102379
|
+
ContainerType3["template"] = "template";
|
|
102230
102380
|
})(ContainerType2 || (ContainerType2 = {}));
|
|
102381
|
+
var ResizeDirection2;
|
|
102382
|
+
(function(ResizeDirection3) {
|
|
102383
|
+
ResizeDirection3["UNKNOWN_ResizeDirection"] = "UNKNOWN_ResizeDirection";
|
|
102384
|
+
ResizeDirection3["horizontal"] = "horizontal";
|
|
102385
|
+
ResizeDirection3["vertical"] = "vertical";
|
|
102386
|
+
ResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
|
|
102387
|
+
ResizeDirection3["aspectRatio"] = "aspectRatio";
|
|
102388
|
+
ResizeDirection3["none"] = "none";
|
|
102389
|
+
})(ResizeDirection2 || (ResizeDirection2 = {}));
|
|
102231
102390
|
var ElementType2;
|
|
102232
102391
|
(function(ElementType3) {
|
|
102233
102392
|
ElementType3["UNKNOWN_ElementType"] = "UNKNOWN_ElementType";
|
|
@@ -102307,15 +102466,14 @@ var Archetype2;
|
|
|
102307
102466
|
Archetype3["VectorArt"] = "VectorArt";
|
|
102308
102467
|
Archetype3["AnimatedGraphic"] = "AnimatedGraphic";
|
|
102309
102468
|
})(Archetype2 || (Archetype2 = {}));
|
|
102310
|
-
var
|
|
102311
|
-
(function(
|
|
102312
|
-
|
|
102313
|
-
|
|
102314
|
-
|
|
102315
|
-
|
|
102316
|
-
|
|
102317
|
-
|
|
102318
|
-
})(ResizeDirection2 || (ResizeDirection2 = {}));
|
|
102469
|
+
var NativeStateType2;
|
|
102470
|
+
(function(NativeStateType3) {
|
|
102471
|
+
NativeStateType3["UNKNOWN_NativeStateType"] = "UNKNOWN_NativeStateType";
|
|
102472
|
+
NativeStateType3["hover"] = "hover";
|
|
102473
|
+
NativeStateType3["focus"] = "focus";
|
|
102474
|
+
NativeStateType3["disabled"] = "disabled";
|
|
102475
|
+
NativeStateType3["invalid"] = "invalid";
|
|
102476
|
+
})(NativeStateType2 || (NativeStateType2 = {}));
|
|
102319
102477
|
var ContentResizeDirection2;
|
|
102320
102478
|
(function(ContentResizeDirection3) {
|
|
102321
102479
|
ContentResizeDirection3["UNKNOWN_ContentResizeDirection"] = "UNKNOWN_ContentResizeDirection";
|
|
@@ -102324,6 +102482,17 @@ var ContentResizeDirection2;
|
|
|
102324
102482
|
ContentResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
|
|
102325
102483
|
ContentResizeDirection3["none"] = "none";
|
|
102326
102484
|
})(ContentResizeDirection2 || (ContentResizeDirection2 = {}));
|
|
102485
|
+
var InteractionsTrigger2;
|
|
102486
|
+
(function(InteractionsTrigger3) {
|
|
102487
|
+
InteractionsTrigger3["UNKNOWN_TRIGGER"] = "UNKNOWN_TRIGGER";
|
|
102488
|
+
InteractionsTrigger3["hover"] = "hover";
|
|
102489
|
+
InteractionsTrigger3["click"] = "click";
|
|
102490
|
+
InteractionsTrigger3["viewEnter"] = "viewEnter";
|
|
102491
|
+
InteractionsTrigger3["pageVisible"] = "pageVisible";
|
|
102492
|
+
InteractionsTrigger3["viewProgress"] = "viewProgress";
|
|
102493
|
+
InteractionsTrigger3["pointerMove"] = "pointerMove";
|
|
102494
|
+
InteractionsTrigger3["animationEnd"] = "animationEnd";
|
|
102495
|
+
})(InteractionsTrigger2 || (InteractionsTrigger2 = {}));
|
|
102327
102496
|
var RestrictionLevel2;
|
|
102328
102497
|
(function(RestrictionLevel3) {
|
|
102329
102498
|
RestrictionLevel3["UNKNOWN_RESTRICTION_TYPE"] = "UNKNOWN_RESTRICTION_TYPE";
|
|
@@ -102396,12 +102565,12 @@ var TranslationType;
|
|
|
102396
102565
|
TranslationType2["COMPONENT"] = "COMPONENT";
|
|
102397
102566
|
})(TranslationType || (TranslationType = {}));
|
|
102398
102567
|
var WebhookIdentityType2;
|
|
102399
|
-
(function(
|
|
102400
|
-
|
|
102401
|
-
|
|
102402
|
-
|
|
102403
|
-
|
|
102404
|
-
|
|
102568
|
+
(function(WebhookIdentityType4) {
|
|
102569
|
+
WebhookIdentityType4["UNKNOWN"] = "UNKNOWN";
|
|
102570
|
+
WebhookIdentityType4["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
102571
|
+
WebhookIdentityType4["MEMBER"] = "MEMBER";
|
|
102572
|
+
WebhookIdentityType4["WIX_USER"] = "WIX_USER";
|
|
102573
|
+
WebhookIdentityType4["APP"] = "APP";
|
|
102405
102574
|
})(WebhookIdentityType2 || (WebhookIdentityType2 = {}));
|
|
102406
102575
|
|
|
102407
102576
|
// ../../node_modules/@wix/ambassador-devcenter-apps-v1-app-template/build/es/types.impl.js
|
|
@@ -102666,6 +102835,22 @@ var DevCenterClient = class {
|
|
|
102666
102835
|
});
|
|
102667
102836
|
}
|
|
102668
102837
|
};
|
|
102838
|
+
updateOAuthApp = async (oAuthApp) => {
|
|
102839
|
+
try {
|
|
102840
|
+
const { data } = await this.httpClient.request(
|
|
102841
|
+
updateOAuthApp({
|
|
102842
|
+
oAuthApp,
|
|
102843
|
+
mask: ["allowedDomains", "allowedRedirectUris"]
|
|
102844
|
+
})
|
|
102845
|
+
);
|
|
102846
|
+
return createOAuthAppSchema.parse(data).oAuthApp;
|
|
102847
|
+
} catch (e2) {
|
|
102848
|
+
throw new CliError({
|
|
102849
|
+
code: CliErrorCode.FailedToUpdateDevCenterOAuthApp(),
|
|
102850
|
+
cause: e2
|
|
102851
|
+
});
|
|
102852
|
+
}
|
|
102853
|
+
};
|
|
102669
102854
|
getAppSecret = async (req) => {
|
|
102670
102855
|
try {
|
|
102671
102856
|
const { data } = await pRetry(
|
|
@@ -103294,6 +103479,18 @@ function resolveWixVeloBackendV1AppProjectLifecycleUrl(opts) {
|
|
|
103294
103479
|
srcPath: "/_api/wix-code-app-projects",
|
|
103295
103480
|
destPath: ""
|
|
103296
103481
|
}
|
|
103482
|
+
],
|
|
103483
|
+
"www._base_domain_": [
|
|
103484
|
+
{
|
|
103485
|
+
srcPath: "/_api/wix-code-app-projects",
|
|
103486
|
+
destPath: ""
|
|
103487
|
+
}
|
|
103488
|
+
],
|
|
103489
|
+
"vibe._base_domain_": [
|
|
103490
|
+
{
|
|
103491
|
+
srcPath: "/_api/wix-code-app-projects",
|
|
103492
|
+
destPath: ""
|
|
103493
|
+
}
|
|
103297
103494
|
]
|
|
103298
103495
|
};
|
|
103299
103496
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
@@ -103647,24 +103844,26 @@ function useBackendAsAServiceClient() {
|
|
|
103647
103844
|
// src/components/CreateProject.tsx
|
|
103648
103845
|
var DEFAULT_ENVIRONMENT_NAME = "system_global";
|
|
103649
103846
|
var CreateProject = ({ onSubmit, businessId }) => {
|
|
103650
|
-
const { createOAuthApp: createOAuthApp2, getAppSecret } = useDevCenterClient();
|
|
103847
|
+
const { createOAuthApp: createOAuthApp2, updateOAuthApp: updateOAuthApp2, getAppSecret } = useDevCenterClient();
|
|
103651
103848
|
const { getInstalledAppInstanceId } = useMetasiteManagerClient();
|
|
103652
103849
|
const { createAppProject: createAppProject2, upsertAppEnvironment: upsertAppEnvironment2 } = useBackendAsAServiceClient();
|
|
103653
103850
|
const { status, execute } = useAsyncCallback3(
|
|
103654
103851
|
async (_2, { projectName }) => {
|
|
103655
103852
|
const { id: projectId } = await createOAuthApp2({
|
|
103656
|
-
name: `Private App for: ${projectName}
|
|
103657
|
-
allowedRedirectDomains: [`http://localhost:4321`],
|
|
103658
|
-
allowedRedirectUris: [
|
|
103659
|
-
"http://localhost:4321/api/auth/callback",
|
|
103660
|
-
"http://localhost:4321/api/auth/logout-callback"
|
|
103661
|
-
]
|
|
103853
|
+
name: `Private App for: ${projectName}`
|
|
103662
103854
|
});
|
|
103663
103855
|
const [publicKeyAndSecret, instanceId] = await Promise.all([
|
|
103664
103856
|
getAppSecret({ appId: projectId }),
|
|
103665
103857
|
getInstalledAppInstanceId({ metaSiteId: businessId, appId: projectId })
|
|
103666
103858
|
]);
|
|
103667
103859
|
const { appProject } = await createAppProject2(projectId, projectName);
|
|
103860
|
+
const loginRoute = `api/auth/callback`;
|
|
103861
|
+
const logoutRoute = `api/auth/logout-callback`;
|
|
103862
|
+
const projectBaseURL = new URL(appProject.baseUrl);
|
|
103863
|
+
const localBaseDomain = `http://localhost:4321`;
|
|
103864
|
+
const previewBaseDomain = `https://(.*)-${projectBaseURL.hostname}`;
|
|
103865
|
+
const previewBaseRedirect = `https://*-${projectBaseURL.hostname}`;
|
|
103866
|
+
const prodBaseDomain = projectBaseURL.toString();
|
|
103668
103867
|
const { variables } = await upsertAppEnvironment2(
|
|
103669
103868
|
appProject.id,
|
|
103670
103869
|
DEFAULT_ENVIRONMENT_NAME,
|
|
@@ -103675,6 +103874,18 @@ var CreateProject = ({ onSubmit, businessId }) => {
|
|
|
103675
103874
|
WIX_CLIENT_INSTANCE_ID: instanceId
|
|
103676
103875
|
}
|
|
103677
103876
|
);
|
|
103877
|
+
await updateOAuthApp2({
|
|
103878
|
+
id: projectId,
|
|
103879
|
+
allowedDomains: [localBaseDomain, previewBaseDomain, prodBaseDomain],
|
|
103880
|
+
allowedRedirectUris: [
|
|
103881
|
+
`${localBaseDomain}/${loginRoute}`,
|
|
103882
|
+
`${localBaseDomain}/${logoutRoute}`,
|
|
103883
|
+
`${previewBaseRedirect}/${loginRoute}`,
|
|
103884
|
+
`${previewBaseRedirect}/${logoutRoute}`,
|
|
103885
|
+
`${prodBaseDomain}/${loginRoute}`,
|
|
103886
|
+
`${prodBaseDomain}/${logoutRoute}`
|
|
103887
|
+
]
|
|
103888
|
+
});
|
|
103678
103889
|
const projectData = {
|
|
103679
103890
|
projectId,
|
|
103680
103891
|
projectName,
|
|
@@ -103712,9 +103923,9 @@ var CreateProject = ({ onSubmit, businessId }) => {
|
|
|
103712
103923
|
|
|
103713
103924
|
// src/components/GenerateProject.tsx
|
|
103714
103925
|
init_esm_shims();
|
|
103715
|
-
import { mkdir as
|
|
103926
|
+
import { mkdir as mkdir3 } from "node:fs/promises";
|
|
103716
103927
|
var import_react103 = __toESM(require_react(), 1);
|
|
103717
|
-
var
|
|
103928
|
+
var import_variant35 = __toESM(require_lib(), 1);
|
|
103718
103929
|
|
|
103719
103930
|
// ../gena/src/index.ts
|
|
103720
103931
|
init_esm_shims();
|
|
@@ -103774,6 +103985,7 @@ async function generator(opts) {
|
|
|
103774
103985
|
|
|
103775
103986
|
// ../gena/src/component-generator.ts
|
|
103776
103987
|
init_esm_shims();
|
|
103988
|
+
import { join as join13 } from "node:path";
|
|
103777
103989
|
|
|
103778
103990
|
// ../gena/src/dependencies-updater.ts
|
|
103779
103991
|
init_esm_shims();
|
|
@@ -103781,16 +103993,126 @@ var dependenciesJsonSchema = z.object({
|
|
|
103781
103993
|
dependencies: z.record(z.string()).optional(),
|
|
103782
103994
|
devDependencies: z.record(z.string()).optional()
|
|
103783
103995
|
});
|
|
103996
|
+
async function readDependenciesJson(filePath) {
|
|
103997
|
+
const json = await readJson(filePath);
|
|
103998
|
+
const parsedJson = await dependenciesJsonSchema.safeParseAsync(json);
|
|
103999
|
+
if (!parsedJson.success) {
|
|
104000
|
+
throw new CliError({
|
|
104001
|
+
code: CliErrorCode.InvalidDependenciesJsonSchemaError({
|
|
104002
|
+
path: filePath,
|
|
104003
|
+
zodError: parsedJson.error
|
|
104004
|
+
}),
|
|
104005
|
+
cause: parsedJson.error
|
|
104006
|
+
});
|
|
104007
|
+
}
|
|
104008
|
+
return parsedJson.data;
|
|
104009
|
+
}
|
|
104010
|
+
async function dependenciesUpdater(opts) {
|
|
104011
|
+
const { projectFolder, dependenciesJsonPath, dynamicPackages } = opts;
|
|
104012
|
+
const addedDependencies = [];
|
|
104013
|
+
if (!await pathExists(dependenciesJsonPath)) {
|
|
104014
|
+
return addedDependencies;
|
|
104015
|
+
}
|
|
104016
|
+
const dependenciesConfig = await readDependenciesJson(dependenciesJsonPath);
|
|
104017
|
+
const packageJson2 = await readPackageJson(projectFolder);
|
|
104018
|
+
const packageJsonDependencies = {
|
|
104019
|
+
...packageJson2.dependencies,
|
|
104020
|
+
...packageJson2.devDependencies
|
|
104021
|
+
};
|
|
104022
|
+
if (dependenciesConfig.dependencies) {
|
|
104023
|
+
for (const [dependencyPackageName, version] of Object.entries(
|
|
104024
|
+
dependenciesConfig.dependencies
|
|
104025
|
+
)) {
|
|
104026
|
+
if (!packageJsonDependencies[dependencyPackageName]) {
|
|
104027
|
+
if (!packageJson2.dependencies) {
|
|
104028
|
+
packageJson2.dependencies = {};
|
|
104029
|
+
}
|
|
104030
|
+
packageJson2.dependencies[dependencyPackageName] = version;
|
|
104031
|
+
addedDependencies.push(dependencyPackageName);
|
|
104032
|
+
}
|
|
104033
|
+
}
|
|
104034
|
+
}
|
|
104035
|
+
if (dynamicPackages) {
|
|
104036
|
+
for (const [dependencyPackageName, version] of Object.entries(
|
|
104037
|
+
dynamicPackages
|
|
104038
|
+
)) {
|
|
104039
|
+
if (!packageJsonDependencies[dependencyPackageName]) {
|
|
104040
|
+
if (!packageJson2.dependencies) {
|
|
104041
|
+
packageJson2.dependencies = {};
|
|
104042
|
+
}
|
|
104043
|
+
packageJson2.dependencies[dependencyPackageName] = version;
|
|
104044
|
+
addedDependencies.push(dependencyPackageName);
|
|
104045
|
+
}
|
|
104046
|
+
}
|
|
104047
|
+
}
|
|
104048
|
+
if (dependenciesConfig.devDependencies) {
|
|
104049
|
+
for (const [dependencyPackageName, version] of Object.entries(
|
|
104050
|
+
dependenciesConfig.devDependencies
|
|
104051
|
+
)) {
|
|
104052
|
+
if (!packageJsonDependencies[dependencyPackageName]) {
|
|
104053
|
+
if (!packageJson2.devDependencies) {
|
|
104054
|
+
packageJson2.devDependencies = {};
|
|
104055
|
+
}
|
|
104056
|
+
packageJson2.devDependencies[dependencyPackageName] = version;
|
|
104057
|
+
addedDependencies.push(dependencyPackageName);
|
|
104058
|
+
}
|
|
104059
|
+
}
|
|
104060
|
+
}
|
|
104061
|
+
if (addedDependencies.length) {
|
|
104062
|
+
await writePackageJson(projectFolder, packageJson2);
|
|
104063
|
+
}
|
|
104064
|
+
return addedDependencies;
|
|
104065
|
+
}
|
|
103784
104066
|
|
|
103785
104067
|
// ../gena/src/assets-generator.ts
|
|
103786
104068
|
init_esm_shims();
|
|
104069
|
+
import { resolve as resolve4, join as join12 } from "node:path";
|
|
104070
|
+
import { copyFile as copyFile2, mkdir as mkdir2 } from "node:fs/promises";
|
|
104071
|
+
async function assetsGenerator(opts) {
|
|
104072
|
+
const { templateRoot, projectFolder, outputPath } = opts;
|
|
104073
|
+
const assets = join12(templateRoot, "assets");
|
|
104074
|
+
if (await pathExists(assets)) {
|
|
104075
|
+
const publicDir = join12(projectFolder, "src/assets", outputPath ?? "");
|
|
104076
|
+
const publicFiles = await getFiles(assets);
|
|
104077
|
+
await mkdir2(publicDir, { recursive: true });
|
|
104078
|
+
await Promise.all(
|
|
104079
|
+
publicFiles.map(async (file) => {
|
|
104080
|
+
const from = resolve4(assets, file);
|
|
104081
|
+
const to = resolve4(publicDir, file);
|
|
104082
|
+
await copyFile2(from, to);
|
|
104083
|
+
})
|
|
104084
|
+
);
|
|
104085
|
+
}
|
|
104086
|
+
}
|
|
104087
|
+
|
|
104088
|
+
// ../gena/src/component-generator.ts
|
|
104089
|
+
async function componentGenerator(opts) {
|
|
104090
|
+
const { template, projectFolder, assetsOutputPath, ...generatorOpts } = opts;
|
|
104091
|
+
const newFiles = await generator({
|
|
104092
|
+
...generatorOpts,
|
|
104093
|
+
template: join13(template, "files")
|
|
104094
|
+
});
|
|
104095
|
+
await assetsGenerator({
|
|
104096
|
+
templateRoot: template,
|
|
104097
|
+
projectFolder,
|
|
104098
|
+
outputPath: assetsOutputPath
|
|
104099
|
+
});
|
|
104100
|
+
const newDependencies = await dependenciesUpdater({
|
|
104101
|
+
projectFolder,
|
|
104102
|
+
dependenciesJsonPath: join13(template, "dependencies.json"),
|
|
104103
|
+
...opts.importData?.packageName ? {
|
|
104104
|
+
dynamicPackages: { [opts.importData.packageName]: "^1.0.0" }
|
|
104105
|
+
} : {}
|
|
104106
|
+
});
|
|
104107
|
+
return { newDependencies, newFiles };
|
|
104108
|
+
}
|
|
103787
104109
|
|
|
103788
104110
|
// src/components/GenerateProject.tsx
|
|
103789
|
-
import { join as
|
|
104111
|
+
import { join as join19 } from "node:path";
|
|
103790
104112
|
|
|
103791
104113
|
// ../cli-astro-definitions/src/index.ts
|
|
103792
104114
|
init_esm_shims();
|
|
103793
|
-
import { join as
|
|
104115
|
+
import { join as join14 } from "node:path";
|
|
103794
104116
|
var ENV_FILE_NAME = ".env.local";
|
|
103795
104117
|
var wixAstroConfigSchema = z.object({
|
|
103796
104118
|
$schema: z.string().optional(),
|
|
@@ -103822,7 +104144,10 @@ var deploymentTopologySchema = z.record(
|
|
|
103822
104144
|
deploymentTopologyEnvironmentSchema
|
|
103823
104145
|
);
|
|
103824
104146
|
function getEnvFilePath(projectFolder) {
|
|
103825
|
-
return
|
|
104147
|
+
return join14(projectFolder, ENV_FILE_NAME);
|
|
104148
|
+
}
|
|
104149
|
+
function getExtensionPath(projectFolder, extensionPath) {
|
|
104150
|
+
return join14(projectFolder, "src", "extensions", extensionPath);
|
|
103826
104151
|
}
|
|
103827
104152
|
|
|
103828
104153
|
// ../cli-project-extender/src/index.ts
|
|
@@ -103851,7 +104176,7 @@ function addMissingDependenciesOfType(packageJson2, type, options) {
|
|
|
103851
104176
|
|
|
103852
104177
|
// ../cli-project-extender/src/modify-astro-config.ts
|
|
103853
104178
|
init_esm_shims();
|
|
103854
|
-
import { join as
|
|
104179
|
+
import { join as join15 } from "node:path";
|
|
103855
104180
|
|
|
103856
104181
|
// ../../node_modules/magicast/dist/index.mjs
|
|
103857
104182
|
init_esm_shims();
|
|
@@ -105657,8 +105982,8 @@ function pathVisitorPlugin(fork2) {
|
|
|
105657
105982
|
return this._changeReported;
|
|
105658
105983
|
};
|
|
105659
105984
|
function makeContextConstructor(visitor) {
|
|
105660
|
-
function
|
|
105661
|
-
if (!(this instanceof
|
|
105985
|
+
function Context2(path8) {
|
|
105986
|
+
if (!(this instanceof Context2)) {
|
|
105662
105987
|
throw new Error("");
|
|
105663
105988
|
}
|
|
105664
105989
|
if (!(this instanceof PathVisitor2)) {
|
|
@@ -105680,10 +106005,10 @@ function pathVisitorPlugin(fork2) {
|
|
|
105680
106005
|
if (!(visitor instanceof PathVisitor2)) {
|
|
105681
106006
|
throw new Error("");
|
|
105682
106007
|
}
|
|
105683
|
-
var Cp =
|
|
105684
|
-
Cp.constructor =
|
|
106008
|
+
var Cp = Context2.prototype = Object.create(visitor);
|
|
106009
|
+
Cp.constructor = Context2;
|
|
105685
106010
|
extend3(Cp, sharedContextProtoMethods);
|
|
105686
|
-
return
|
|
106011
|
+
return Context2;
|
|
105687
106012
|
}
|
|
105688
106013
|
var sharedContextProtoMethods = /* @__PURE__ */ Object.create(null);
|
|
105689
106014
|
sharedContextProtoMethods.reset = function reset(path8) {
|
|
@@ -112719,14 +113044,14 @@ async function modifyAstroConfig(projectFolder) {
|
|
|
112719
113044
|
cause: void 0
|
|
112720
113045
|
});
|
|
112721
113046
|
}
|
|
112722
|
-
const file =
|
|
113047
|
+
const file = join15(projectFolder, configFilesFound[0]);
|
|
112723
113048
|
const loadedFile = await loadFile(file, {});
|
|
112724
113049
|
const react = setImport(loadedFile, "@astrojs/react", "react");
|
|
112725
113050
|
addIntegration2(loadedFile, react);
|
|
112726
113051
|
const wix = setImport(loadedFile, "@wix/astro", "wix");
|
|
112727
113052
|
addIntegration2(loadedFile, wix);
|
|
112728
113053
|
const cloudflare = setImport(loadedFile, "@astrojs/cloudflare", "cloudflare");
|
|
112729
|
-
setAdapter(loadedFile, cloudflare);
|
|
113054
|
+
setAdapter(loadedFile, cloudflare, { platformProxy: { enabled: false } });
|
|
112730
113055
|
const config = getDefineConfigOptions(loadedFile);
|
|
112731
113056
|
config.image ??= {};
|
|
112732
113057
|
config.image.domains ??= [];
|
|
@@ -112750,9 +113075,9 @@ function setImport(target, from, local) {
|
|
|
112750
113075
|
imports.$append({ imported: "default", local, from });
|
|
112751
113076
|
return local;
|
|
112752
113077
|
}
|
|
112753
|
-
function setAdapter(target, name) {
|
|
113078
|
+
function setAdapter(target, name, args) {
|
|
112754
113079
|
const config = getDefineConfigOptions(target);
|
|
112755
|
-
config.adapter = builders.functionCall(name);
|
|
113080
|
+
config.adapter = builders.functionCall(name, args);
|
|
112756
113081
|
}
|
|
112757
113082
|
function addIntegration2(target, name) {
|
|
112758
113083
|
const config = getDefineConfigOptions(target);
|
|
@@ -112805,69 +113130,15 @@ async function extend2(projectFolder) {
|
|
|
112805
113130
|
await modifyAstroConfig(projectFolder);
|
|
112806
113131
|
}
|
|
112807
113132
|
|
|
112808
|
-
// src/
|
|
113133
|
+
// ../cli-project-extender/src/add-files-from-template.ts
|
|
112809
113134
|
init_esm_shims();
|
|
112810
|
-
|
|
113135
|
+
import { join as join17 } from "node:path";
|
|
113136
|
+
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
112811
113137
|
var import_variant33 = __toESM(require_lib(), 1);
|
|
112812
|
-
var TaskRunnerStatus = (0, import_variant33.variant)({
|
|
112813
|
-
Idle: {},
|
|
112814
|
-
Running: (runningTasks, totalTaskCount) => {
|
|
112815
|
-
const taskStatuses = runningTasks.map((task, index) => {
|
|
112816
|
-
const status = index === runningTasks.length - 1 ? "running" : "done";
|
|
112817
|
-
const text = status === "done" ? task.successText : task.loadingText;
|
|
112818
|
-
return { status, text };
|
|
112819
|
-
});
|
|
112820
|
-
return {
|
|
112821
|
-
tasks: taskStatuses,
|
|
112822
|
-
totalTaskCount
|
|
112823
|
-
};
|
|
112824
|
-
},
|
|
112825
|
-
Done: (tasks) => {
|
|
112826
|
-
const taskStatuses = tasks.map(
|
|
112827
|
-
(task) => ({ status: "done", text: task.successText })
|
|
112828
|
-
);
|
|
112829
|
-
return {
|
|
112830
|
-
tasks: taskStatuses,
|
|
112831
|
-
totalTaskCount: tasks.length
|
|
112832
|
-
};
|
|
112833
|
-
}
|
|
112834
|
-
});
|
|
112835
|
-
function useTaskRunner() {
|
|
112836
|
-
const [status, setStatus] = (0, import_react101.useState)(
|
|
112837
|
-
TaskRunnerStatus.Idle()
|
|
112838
|
-
);
|
|
112839
|
-
const { execute } = useAsyncCallback3(async (_2, tasks) => {
|
|
112840
|
-
for (const [index, task] of tasks.entries()) {
|
|
112841
|
-
setStatus(
|
|
112842
|
-
TaskRunnerStatus.Running(tasks.slice(0, index + 1), tasks.length)
|
|
112843
|
-
);
|
|
112844
|
-
await task.action();
|
|
112845
|
-
}
|
|
112846
|
-
setStatus(TaskRunnerStatus.Done(tasks));
|
|
112847
|
-
});
|
|
112848
|
-
return {
|
|
112849
|
-
execute,
|
|
112850
|
-
status
|
|
112851
|
-
};
|
|
112852
|
-
}
|
|
112853
|
-
|
|
112854
|
-
// src/components/TaskList.tsx
|
|
112855
|
-
init_esm_shims();
|
|
112856
|
-
var import_react102 = __toESM(require_react(), 1);
|
|
112857
|
-
var TaskList = ({ tasks, totalTaskCount }) => {
|
|
112858
|
-
return /* @__PURE__ */ import_react102.default.createElement(import_react102.default.Fragment, null, tasks.map((task, index) => {
|
|
112859
|
-
const stepper = `[${index + 1}/${totalTaskCount}]`;
|
|
112860
|
-
const fullText = `${stepper} ${task.text}`;
|
|
112861
|
-
if (task.status === "running") {
|
|
112862
|
-
return /* @__PURE__ */ import_react102.default.createElement(Spinner2, { key: index, text: fullText });
|
|
112863
|
-
}
|
|
112864
|
-
return /* @__PURE__ */ import_react102.default.createElement(Alert, { key: index, type: "success" }, fullText);
|
|
112865
|
-
}));
|
|
112866
|
-
};
|
|
112867
113138
|
|
|
112868
|
-
// src/
|
|
113139
|
+
// ../cli-project-extender/src/clone-templates-repo.ts
|
|
112869
113140
|
init_esm_shims();
|
|
112870
|
-
import { join as
|
|
113141
|
+
import { join as join16 } from "node:path";
|
|
112871
113142
|
import { rm as rm2 } from "node:fs/promises";
|
|
112872
113143
|
|
|
112873
113144
|
// ../../node_modules/tempy/index.js
|
|
@@ -113017,13 +113288,139 @@ function temporaryDirectory2({ prefix = "" } = {}) {
|
|
|
113017
113288
|
return directory;
|
|
113018
113289
|
}
|
|
113019
113290
|
|
|
113291
|
+
// ../cli-project-extender/src/clone-templates-repo.ts
|
|
113292
|
+
async function cloneTemplatesRepo(url2) {
|
|
113293
|
+
const repoDir = temporaryDirectory2({ prefix: "wix-cli-project-extender" });
|
|
113294
|
+
try {
|
|
113295
|
+
await gitClone(url2, repoDir);
|
|
113296
|
+
await rm2(join16(repoDir, ".git"), { recursive: true, force: true });
|
|
113297
|
+
} catch (e2) {
|
|
113298
|
+
throw new CliError({
|
|
113299
|
+
code: CliErrorCode.FailedToCloneRepo(),
|
|
113300
|
+
cause: e2
|
|
113301
|
+
});
|
|
113302
|
+
}
|
|
113303
|
+
return repoDir;
|
|
113304
|
+
}
|
|
113305
|
+
|
|
113306
|
+
// ../cli-project-extender/src/add-files-from-template.ts
|
|
113307
|
+
var TEMPLATE_REPO = "git@github.com:wix-incubator/headless-cli-templates.git";
|
|
113308
|
+
async function addFilesFromTemplate(projectFolder, templateId, packageManager, repoType) {
|
|
113309
|
+
const repoRoot = await cloneTemplatesRepo(TEMPLATE_REPO);
|
|
113310
|
+
const templateExtensionRoot = join17(repoRoot, "templates", templateId);
|
|
113311
|
+
const sharedTemplate = join17(repoRoot, "templates-shared");
|
|
113312
|
+
if (await pathExists(sharedTemplate)) {
|
|
113313
|
+
await componentGenerator({
|
|
113314
|
+
template: sharedTemplate,
|
|
113315
|
+
projectFolder,
|
|
113316
|
+
cwd: projectFolder,
|
|
113317
|
+
data: {
|
|
113318
|
+
packageManager: {
|
|
113319
|
+
name: packageManager.name
|
|
113320
|
+
},
|
|
113321
|
+
isMonorepo: (0, import_variant33.isType)(repoType, RepoType.Monorepo)
|
|
113322
|
+
}
|
|
113323
|
+
});
|
|
113324
|
+
}
|
|
113325
|
+
if (!await pathExists(templateExtensionRoot)) {
|
|
113326
|
+
return;
|
|
113327
|
+
}
|
|
113328
|
+
const extensionTemplates = await globby("*", {
|
|
113329
|
+
onlyDirectories: true,
|
|
113330
|
+
cwd: templateExtensionRoot
|
|
113331
|
+
});
|
|
113332
|
+
for (const template of extensionTemplates) {
|
|
113333
|
+
const uniqueDir = await getUniqueExtensionPath(projectFolder, template, 0);
|
|
113334
|
+
await componentGenerator({
|
|
113335
|
+
template: join17(templateExtensionRoot, template),
|
|
113336
|
+
projectFolder,
|
|
113337
|
+
cwd: getExtensionPath(projectFolder, uniqueDir),
|
|
113338
|
+
data: {
|
|
113339
|
+
randomUUID: () => randomUUID3(),
|
|
113340
|
+
dir: uniqueDir
|
|
113341
|
+
}
|
|
113342
|
+
});
|
|
113343
|
+
}
|
|
113344
|
+
}
|
|
113345
|
+
async function getUniqueExtensionPath(projectFolder, extensionPath, suffix) {
|
|
113346
|
+
const uniqueExtensionPath = suffix ? `${extensionPath}${suffix}` : extensionPath;
|
|
113347
|
+
const path8 = getExtensionPath(projectFolder, uniqueExtensionPath);
|
|
113348
|
+
if (!await pathExists(path8)) {
|
|
113349
|
+
return uniqueExtensionPath;
|
|
113350
|
+
}
|
|
113351
|
+
return getUniqueExtensionPath(projectFolder, extensionPath, suffix + 1);
|
|
113352
|
+
}
|
|
113353
|
+
|
|
113354
|
+
// src/task-runner.ts
|
|
113355
|
+
init_esm_shims();
|
|
113356
|
+
var import_react101 = __toESM(require_react(), 1);
|
|
113357
|
+
var import_variant34 = __toESM(require_lib(), 1);
|
|
113358
|
+
var TaskRunnerStatus = (0, import_variant34.variant)({
|
|
113359
|
+
Idle: {},
|
|
113360
|
+
Running: (runningTasks, totalTaskCount) => {
|
|
113361
|
+
const taskStatuses = runningTasks.map((task, index) => {
|
|
113362
|
+
const status = index === runningTasks.length - 1 ? "running" : "done";
|
|
113363
|
+
const text = status === "done" ? task.successText : task.loadingText;
|
|
113364
|
+
return { status, text };
|
|
113365
|
+
});
|
|
113366
|
+
return {
|
|
113367
|
+
tasks: taskStatuses,
|
|
113368
|
+
totalTaskCount
|
|
113369
|
+
};
|
|
113370
|
+
},
|
|
113371
|
+
Done: (tasks) => {
|
|
113372
|
+
const taskStatuses = tasks.map(
|
|
113373
|
+
(task) => ({ status: "done", text: task.successText })
|
|
113374
|
+
);
|
|
113375
|
+
return {
|
|
113376
|
+
tasks: taskStatuses,
|
|
113377
|
+
totalTaskCount: tasks.length
|
|
113378
|
+
};
|
|
113379
|
+
}
|
|
113380
|
+
});
|
|
113381
|
+
function useTaskRunner() {
|
|
113382
|
+
const [status, setStatus] = (0, import_react101.useState)(
|
|
113383
|
+
TaskRunnerStatus.Idle()
|
|
113384
|
+
);
|
|
113385
|
+
const { execute } = useAsyncCallback3(async (_2, tasks) => {
|
|
113386
|
+
for (const [index, task] of tasks.entries()) {
|
|
113387
|
+
setStatus(
|
|
113388
|
+
TaskRunnerStatus.Running(tasks.slice(0, index + 1), tasks.length)
|
|
113389
|
+
);
|
|
113390
|
+
await task.action();
|
|
113391
|
+
}
|
|
113392
|
+
setStatus(TaskRunnerStatus.Done(tasks));
|
|
113393
|
+
});
|
|
113394
|
+
return {
|
|
113395
|
+
execute,
|
|
113396
|
+
status
|
|
113397
|
+
};
|
|
113398
|
+
}
|
|
113399
|
+
|
|
113400
|
+
// src/components/TaskList.tsx
|
|
113401
|
+
init_esm_shims();
|
|
113402
|
+
var import_react102 = __toESM(require_react(), 1);
|
|
113403
|
+
var TaskList = ({ tasks, totalTaskCount }) => {
|
|
113404
|
+
return /* @__PURE__ */ import_react102.default.createElement(import_react102.default.Fragment, null, tasks.map((task, index) => {
|
|
113405
|
+
const stepper = `[${index + 1}/${totalTaskCount}]`;
|
|
113406
|
+
const fullText = `${stepper} ${task.text}`;
|
|
113407
|
+
if (task.status === "running") {
|
|
113408
|
+
return /* @__PURE__ */ import_react102.default.createElement(Spinner2, { key: index, text: fullText });
|
|
113409
|
+
}
|
|
113410
|
+
return /* @__PURE__ */ import_react102.default.createElement(Alert, { key: index, type: "success" }, fullText);
|
|
113411
|
+
}));
|
|
113412
|
+
};
|
|
113413
|
+
|
|
113020
113414
|
// src/services/generator/template-fetcher.ts
|
|
113415
|
+
init_esm_shims();
|
|
113416
|
+
import { join as join18 } from "node:path";
|
|
113417
|
+
import { rm as rm3 } from "node:fs/promises";
|
|
113021
113418
|
var import_is_git_url = __toESM(require_is_git_url(), 1);
|
|
113022
113419
|
async function downloadAndExtractRepo(url2) {
|
|
113023
113420
|
const repoDir = temporaryDirectory2({ prefix: "wix-create-headless-site" });
|
|
113024
113421
|
try {
|
|
113025
113422
|
await gitClone(url2, repoDir);
|
|
113026
|
-
await
|
|
113423
|
+
await rm3(join18(repoDir, ".git"), { recursive: true, force: true });
|
|
113027
113424
|
return repoDir;
|
|
113028
113425
|
} catch (e2) {
|
|
113029
113426
|
throw new CliError({
|
|
@@ -113041,7 +113438,7 @@ async function fetchTemplate(url2, path8 = ".") {
|
|
|
113041
113438
|
});
|
|
113042
113439
|
}
|
|
113043
113440
|
const repoDir = await downloadAndExtractRepo(url2);
|
|
113044
|
-
const templateDirInRepo =
|
|
113441
|
+
const templateDirInRepo = join18(repoDir, path8);
|
|
113045
113442
|
if (!await pathExists(templateDirInRepo)) {
|
|
113046
113443
|
throw new CliError({
|
|
113047
113444
|
code: CliErrorCode.TemplatePathNotFound({ templatePath: path8 }),
|
|
@@ -113058,6 +113455,7 @@ var GenerationProgress = ({ tasks, totalTaskCount }) => {
|
|
|
113058
113455
|
return /* @__PURE__ */ import_react103.default.createElement(import_react103.default.Fragment, null, /* @__PURE__ */ import_react103.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react103.default.createElement(Text2, null, "Generating your headless site...")), /* @__PURE__ */ import_react103.default.createElement(TaskList, { tasks, totalTaskCount }));
|
|
113059
113456
|
};
|
|
113060
113457
|
var GenerateProject = ({
|
|
113458
|
+
repoType,
|
|
113061
113459
|
packageManager,
|
|
113062
113460
|
targetParentFolder: targetParentFolder2,
|
|
113063
113461
|
folderName,
|
|
@@ -113067,14 +113465,15 @@ var GenerateProject = ({
|
|
|
113067
113465
|
selectedTemplate,
|
|
113068
113466
|
onDone
|
|
113069
113467
|
}) => {
|
|
113468
|
+
const { reportError: reportError2 } = useErrorReporter();
|
|
113070
113469
|
const { execute: executeTaskRunner, status: taskRunnerStatus } = useTaskRunner();
|
|
113071
113470
|
const packageFolder = (0, import_react103.useMemo)(
|
|
113072
|
-
() =>
|
|
113471
|
+
() => join19(targetParentFolder2, folderName),
|
|
113073
113472
|
[folderName, targetParentFolder2]
|
|
113074
113473
|
);
|
|
113075
113474
|
const generateProject = (0, import_react103.useCallback)(async () => {
|
|
113076
113475
|
try {
|
|
113077
|
-
await
|
|
113476
|
+
await mkdir3(packageFolder, { recursive: true });
|
|
113078
113477
|
} catch (e2) {
|
|
113079
113478
|
throw new CliError({
|
|
113080
113479
|
code: CliErrorCode.FailedToCreateProjectFolder({ packageFolder }),
|
|
@@ -113110,7 +113509,23 @@ var GenerateProject = ({
|
|
|
113110
113509
|
]);
|
|
113111
113510
|
const extendProject = (0, import_react103.useCallback)(async () => {
|
|
113112
113511
|
await extend2(packageFolder);
|
|
113113
|
-
|
|
113512
|
+
try {
|
|
113513
|
+
await addFilesFromTemplate(
|
|
113514
|
+
packageFolder,
|
|
113515
|
+
selectedTemplate.siteTemplateId,
|
|
113516
|
+
packageManager,
|
|
113517
|
+
repoType
|
|
113518
|
+
);
|
|
113519
|
+
} catch (error) {
|
|
113520
|
+
reportError2(error);
|
|
113521
|
+
}
|
|
113522
|
+
}, [
|
|
113523
|
+
packageFolder,
|
|
113524
|
+
selectedTemplate.siteTemplateId,
|
|
113525
|
+
reportError2,
|
|
113526
|
+
packageManager,
|
|
113527
|
+
repoType
|
|
113528
|
+
]);
|
|
113114
113529
|
const initializeGit = (0, import_react103.useCallback)(async () => {
|
|
113115
113530
|
try {
|
|
113116
113531
|
await gitInit(packageFolder);
|
|
@@ -113189,7 +113604,7 @@ var GenerateProject = ({
|
|
|
113189
113604
|
await executeTaskRunner(tasks);
|
|
113190
113605
|
onDone(true);
|
|
113191
113606
|
}, []);
|
|
113192
|
-
return (0,
|
|
113607
|
+
return (0, import_variant35.match)(taskRunnerStatus, {
|
|
113193
113608
|
Idle: () => null,
|
|
113194
113609
|
Running: (status) => /* @__PURE__ */ import_react103.default.createElement(GenerationProgress, { ...status }),
|
|
113195
113610
|
Done: (status) => /* @__PURE__ */ import_react103.default.createElement(Box_default, { flexDirection: "column", marginBottom: 1 }, /* @__PURE__ */ import_react103.default.createElement(GenerationProgress, { ...status }), /* @__PURE__ */ import_react103.default.createElement(Box_default, { marginLeft: -2, marginTop: 1 }, /* @__PURE__ */ import_react103.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react103.default.createElement(Badge, { skin: "success" }, "Success"), " ", /* @__PURE__ */ import_react103.default.createElement(Text2, null, "Project set up successfully"))))
|
|
@@ -113199,7 +113614,7 @@ var GenerateProject = ({
|
|
|
113199
113614
|
// src/components/CreateBusiness.tsx
|
|
113200
113615
|
init_esm_shims();
|
|
113201
113616
|
var import_react104 = __toESM(require_react(), 1);
|
|
113202
|
-
var
|
|
113617
|
+
var import_variant36 = __toESM(require_lib(), 1);
|
|
113203
113618
|
|
|
113204
113619
|
// ../../node_modules/@wix/ambassador-metasite-api-v1-meta-site/build/es/types.impl.js
|
|
113205
113620
|
init_esm_shims();
|
|
@@ -113244,26 +113659,6 @@ var Namespace;
|
|
|
113244
113659
|
Namespace2["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
|
|
113245
113660
|
Namespace2["MIMIR"] = "MIMIR";
|
|
113246
113661
|
})(Namespace || (Namespace = {}));
|
|
113247
|
-
var Cause;
|
|
113248
|
-
(function(Cause2) {
|
|
113249
|
-
Cause2["EMPTY"] = "EMPTY";
|
|
113250
|
-
Cause2["NAMESPACE_LIMIT_REACHED"] = "NAMESPACE_LIMIT_REACHED";
|
|
113251
|
-
Cause2["AUTOMATION_USER_LIMIT_REACHED"] = "AUTOMATION_USER_LIMIT_REACHED";
|
|
113252
|
-
Cause2["WIX_EMPLOYEE_LIMIT_REACHED"] = "WIX_EMPLOYEE_LIMIT_REACHED";
|
|
113253
|
-
})(Cause || (Cause = {}));
|
|
113254
|
-
var DeleteStatus;
|
|
113255
|
-
(function(DeleteStatus2) {
|
|
113256
|
-
DeleteStatus2["UNKNOWN"] = "UNKNOWN";
|
|
113257
|
-
DeleteStatus2["TRASH"] = "TRASH";
|
|
113258
|
-
DeleteStatus2["DELETED"] = "DELETED";
|
|
113259
|
-
DeleteStatus2["PENDING_PURGE"] = "PENDING_PURGE";
|
|
113260
|
-
DeleteStatus2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
113261
|
-
})(DeleteStatus || (DeleteStatus = {}));
|
|
113262
|
-
var UrlFilter;
|
|
113263
|
-
(function(UrlFilter2) {
|
|
113264
|
-
UrlFilter2["NO_URL_TYPE_FILTER"] = "NO_URL_TYPE_FILTER";
|
|
113265
|
-
UrlFilter2["FREE"] = "FREE";
|
|
113266
|
-
})(UrlFilter || (UrlFilter = {}));
|
|
113267
113662
|
var DocumentType;
|
|
113268
113663
|
(function(DocumentType2) {
|
|
113269
113664
|
DocumentType2["UNKNOWN_DOCUMENT_TYPE"] = "UNKNOWN_DOCUMENT_TYPE";
|
|
@@ -113362,12 +113757,96 @@ var ResolutionMethod;
|
|
|
113362
113757
|
ResolutionMethod2["SUBDOMAIN"] = "SUBDOMAIN";
|
|
113363
113758
|
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
113364
113759
|
})(ResolutionMethod || (ResolutionMethod = {}));
|
|
113760
|
+
var DeleteStatus;
|
|
113761
|
+
(function(DeleteStatus2) {
|
|
113762
|
+
DeleteStatus2["UNKNOWN"] = "UNKNOWN";
|
|
113763
|
+
DeleteStatus2["TRASH"] = "TRASH";
|
|
113764
|
+
DeleteStatus2["DELETED"] = "DELETED";
|
|
113765
|
+
DeleteStatus2["PENDING_PURGE"] = "PENDING_PURGE";
|
|
113766
|
+
DeleteStatus2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
113767
|
+
})(DeleteStatus || (DeleteStatus = {}));
|
|
113768
|
+
var Context;
|
|
113769
|
+
(function(Context2) {
|
|
113770
|
+
Context2["UNKNOWN"] = "UNKNOWN";
|
|
113771
|
+
Context2["CREATE"] = "CREATE";
|
|
113772
|
+
Context2["UPDATE"] = "UPDATE";
|
|
113773
|
+
Context2["HARD_DELETE"] = "HARD_DELETE";
|
|
113774
|
+
Context2["ARCHIVE"] = "ARCHIVE";
|
|
113775
|
+
Context2["RESTORE"] = "RESTORE";
|
|
113776
|
+
Context2["UPDATE_DELETED"] = "UPDATE_DELETED";
|
|
113777
|
+
Context2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
113778
|
+
})(Context || (Context = {}));
|
|
113779
|
+
var SiteCreatedContext;
|
|
113780
|
+
(function(SiteCreatedContext2) {
|
|
113781
|
+
SiteCreatedContext2["OTHER"] = "OTHER";
|
|
113782
|
+
SiteCreatedContext2["FROM_TEMPLATE"] = "FROM_TEMPLATE";
|
|
113783
|
+
SiteCreatedContext2["DUPLICATE_BY_SITE_TRANSFER"] = "DUPLICATE_BY_SITE_TRANSFER";
|
|
113784
|
+
SiteCreatedContext2["DUPLICATE"] = "DUPLICATE";
|
|
113785
|
+
SiteCreatedContext2["OLD_SITE_TRANSFER"] = "OLD_SITE_TRANSFER";
|
|
113786
|
+
SiteCreatedContext2["FLASH"] = "FLASH";
|
|
113787
|
+
})(SiteCreatedContext || (SiteCreatedContext = {}));
|
|
113788
|
+
var AssetState;
|
|
113789
|
+
(function(AssetState2) {
|
|
113790
|
+
AssetState2["UNKNOWN"] = "UNKNOWN";
|
|
113791
|
+
AssetState2["ENABLED"] = "ENABLED";
|
|
113792
|
+
AssetState2["DISABLED"] = "DISABLED";
|
|
113793
|
+
AssetState2["PENDING"] = "PENDING";
|
|
113794
|
+
AssetState2["DEMO"] = "DEMO";
|
|
113795
|
+
})(AssetState || (AssetState = {}));
|
|
113796
|
+
var PlacementType;
|
|
113797
|
+
(function(PlacementType2) {
|
|
113798
|
+
PlacementType2["BEFORE"] = "BEFORE";
|
|
113799
|
+
PlacementType2["AFTER"] = "AFTER";
|
|
113800
|
+
PlacementType2["REPLACE"] = "REPLACE";
|
|
113801
|
+
})(PlacementType || (PlacementType = {}));
|
|
113802
|
+
var DayOfWeek;
|
|
113803
|
+
(function(DayOfWeek2) {
|
|
113804
|
+
DayOfWeek2["MONDAY"] = "MONDAY";
|
|
113805
|
+
DayOfWeek2["TUESDAY"] = "TUESDAY";
|
|
113806
|
+
DayOfWeek2["WEDNESDAY"] = "WEDNESDAY";
|
|
113807
|
+
DayOfWeek2["THURSDAY"] = "THURSDAY";
|
|
113808
|
+
DayOfWeek2["FRIDAY"] = "FRIDAY";
|
|
113809
|
+
DayOfWeek2["SATURDAY"] = "SATURDAY";
|
|
113810
|
+
DayOfWeek2["SUNDAY"] = "SUNDAY";
|
|
113811
|
+
})(DayOfWeek || (DayOfWeek = {}));
|
|
113812
|
+
var V4ResolutionMethod;
|
|
113813
|
+
(function(V4ResolutionMethod2) {
|
|
113814
|
+
V4ResolutionMethod2["QUERY_PARAM"] = "QUERY_PARAM";
|
|
113815
|
+
V4ResolutionMethod2["SUBDOMAIN"] = "SUBDOMAIN";
|
|
113816
|
+
V4ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
113817
|
+
})(V4ResolutionMethod || (V4ResolutionMethod = {}));
|
|
113818
|
+
var WebhookIdentityType3;
|
|
113819
|
+
(function(WebhookIdentityType4) {
|
|
113820
|
+
WebhookIdentityType4["UNKNOWN"] = "UNKNOWN";
|
|
113821
|
+
WebhookIdentityType4["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
113822
|
+
WebhookIdentityType4["MEMBER"] = "MEMBER";
|
|
113823
|
+
WebhookIdentityType4["WIX_USER"] = "WIX_USER";
|
|
113824
|
+
WebhookIdentityType4["APP"] = "APP";
|
|
113825
|
+
})(WebhookIdentityType3 || (WebhookIdentityType3 = {}));
|
|
113826
|
+
var Cause;
|
|
113827
|
+
(function(Cause2) {
|
|
113828
|
+
Cause2["EMPTY"] = "EMPTY";
|
|
113829
|
+
Cause2["NAMESPACE_LIMIT_REACHED"] = "NAMESPACE_LIMIT_REACHED";
|
|
113830
|
+
Cause2["AUTOMATION_USER_LIMIT_REACHED"] = "AUTOMATION_USER_LIMIT_REACHED";
|
|
113831
|
+
Cause2["WIX_EMPLOYEE_LIMIT_REACHED"] = "WIX_EMPLOYEE_LIMIT_REACHED";
|
|
113832
|
+
})(Cause || (Cause = {}));
|
|
113833
|
+
var UrlFilter;
|
|
113834
|
+
(function(UrlFilter2) {
|
|
113835
|
+
UrlFilter2["NO_URL_TYPE_FILTER"] = "NO_URL_TYPE_FILTER";
|
|
113836
|
+
UrlFilter2["FREE"] = "FREE";
|
|
113837
|
+
})(UrlFilter || (UrlFilter = {}));
|
|
113365
113838
|
var MigrationResult;
|
|
113366
113839
|
(function(MigrationResult2) {
|
|
113367
113840
|
MigrationResult2["UNKNOWN_FORMAT"] = "UNKNOWN_FORMAT";
|
|
113368
113841
|
MigrationResult2["OK"] = "OK";
|
|
113369
113842
|
MigrationResult2["SKIP"] = "SKIP";
|
|
113370
113843
|
})(MigrationResult || (MigrationResult = {}));
|
|
113844
|
+
var MigrateEmbeddedServiceToTpaResponseMigrationResult;
|
|
113845
|
+
(function(MigrateEmbeddedServiceToTpaResponseMigrationResult2) {
|
|
113846
|
+
MigrateEmbeddedServiceToTpaResponseMigrationResult2["UNKNOWN_FORMAT"] = "UNKNOWN_FORMAT";
|
|
113847
|
+
MigrateEmbeddedServiceToTpaResponseMigrationResult2["OK"] = "OK";
|
|
113848
|
+
MigrateEmbeddedServiceToTpaResponseMigrationResult2["SKIP"] = "SKIP";
|
|
113849
|
+
})(MigrateEmbeddedServiceToTpaResponseMigrationResult || (MigrateEmbeddedServiceToTpaResponseMigrationResult = {}));
|
|
113371
113850
|
|
|
113372
113851
|
// src/components/CreateBusiness.tsx
|
|
113373
113852
|
var CreateBusiness = ({ businessName, businessTemplateId, onDone }) => {
|
|
@@ -113382,7 +113861,7 @@ var CreateBusiness = ({ businessName, businessTemplateId, onDone }) => {
|
|
|
113382
113861
|
});
|
|
113383
113862
|
onDone({ businessId: metaSiteId });
|
|
113384
113863
|
}, []);
|
|
113385
|
-
return /* @__PURE__ */ import_react104.default.createElement(import_react104.default.Fragment, null, (0,
|
|
113864
|
+
return /* @__PURE__ */ import_react104.default.createElement(import_react104.default.Fragment, null, (0, import_variant36.match)(status, {
|
|
113386
113865
|
Error: () => null,
|
|
113387
113866
|
Loading: () => /* @__PURE__ */ import_react104.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react104.default.createElement(Spinner2, { text: "Creating your business..." })),
|
|
113388
113867
|
Success: () => /* @__PURE__ */ import_react104.default.createElement(Box_default, { marginLeft: -2, marginBottom: 1 }, /* @__PURE__ */ import_react104.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react104.default.createElement(Badge, { skin: "success" }, "Success"), " ", /* @__PURE__ */ import_react104.default.createElement(Text2, null, "Business created successfully"))),
|
|
@@ -113463,8 +113942,8 @@ var ChooseTemplate = ({ onSubmit }) => {
|
|
|
113463
113942
|
// src/components/ReleaseProject.tsx
|
|
113464
113943
|
init_esm_shims();
|
|
113465
113944
|
var import_react108 = __toESM(require_react(), 1);
|
|
113466
|
-
var
|
|
113467
|
-
import { join as
|
|
113945
|
+
var import_variant37 = __toESM(require_lib(), 1);
|
|
113946
|
+
import { join as join20 } from "node:path";
|
|
113468
113947
|
|
|
113469
113948
|
// src/components/FinishedSuccessfullyMessage.tsx
|
|
113470
113949
|
init_esm_shims();
|
|
@@ -113489,17 +113968,17 @@ var FinishedSuccessfullyMessage = ({ packageManager, folderName, projectData, is
|
|
|
113489
113968
|
};
|
|
113490
113969
|
|
|
113491
113970
|
// src/components/ReleaseProject.tsx
|
|
113492
|
-
var ReleaseStateVariant = (0,
|
|
113971
|
+
var ReleaseStateVariant = (0, import_variant37.variant)({
|
|
113493
113972
|
NotStarted: {},
|
|
113494
113973
|
Releasing: {},
|
|
113495
|
-
Done: (0,
|
|
113974
|
+
Done: (0, import_variant37.fields)()
|
|
113496
113975
|
});
|
|
113497
113976
|
var ReleaseProject = ({ folderName, packageManager, targetParentFolder: targetParentFolder2, projectData }) => {
|
|
113498
113977
|
const [releaseState, setReleaseState] = (0, import_react108.useState)(
|
|
113499
113978
|
ReleaseStateVariant.NotStarted()
|
|
113500
113979
|
);
|
|
113501
113980
|
const packageFolder = (0, import_react108.useMemo)(
|
|
113502
|
-
() =>
|
|
113981
|
+
() => join20(targetParentFolder2, folderName),
|
|
113503
113982
|
[folderName, targetParentFolder2]
|
|
113504
113983
|
);
|
|
113505
113984
|
return /* @__PURE__ */ import_react108.default.createElement(import_react108.default.Fragment, null, /* @__PURE__ */ import_react108.default.createElement(Box_default, { marginLeft: -2, marginBottom: 1 }, /* @__PURE__ */ import_react108.default.createElement(
|
|
@@ -113538,10 +114017,10 @@ var ReleaseProject = ({ folderName, packageManager, targetParentFolder: targetPa
|
|
|
113538
114017
|
}
|
|
113539
114018
|
}
|
|
113540
114019
|
}
|
|
113541
|
-
)), (0,
|
|
114020
|
+
)), (0, import_variant37.match)(releaseState, {
|
|
113542
114021
|
NotStarted: () => null,
|
|
113543
114022
|
Releasing: () => /* @__PURE__ */ import_react108.default.createElement(Spinner2, { text: "Publishing your site..." }),
|
|
113544
|
-
Done: ({ status }) => /* @__PURE__ */ import_react108.default.createElement(import_react108.default.Fragment, null, (0,
|
|
114023
|
+
Done: ({ status }) => /* @__PURE__ */ import_react108.default.createElement(import_react108.default.Fragment, null, (0, import_variant37.match)(status, {
|
|
113545
114024
|
Success: () => /* @__PURE__ */ import_react108.default.createElement(Box_default, { marginLeft: -2 }, /* @__PURE__ */ import_react108.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react108.default.createElement(Badge, { skin: "success" }, "Success"), " ", /* @__PURE__ */ import_react108.default.createElement(Text2, null, "Site published successfully"))),
|
|
113546
114025
|
Error: () => /* @__PURE__ */ import_react108.default.createElement(Box_default, { flexDirection: "column", gap: 1 }, /* @__PURE__ */ import_react108.default.createElement(Alert, { type: "error" }, "Failed to release your site"), /* @__PURE__ */ import_react108.default.createElement(Text2, null, `No worries, you can release your site later by running ${packageManager.getRunCmd()} release`)),
|
|
113547
114026
|
Skipped: () => /* @__PURE__ */ import_react108.default.createElement(Text2, null, `No worries, you can release your site later by running ${packageManager.getRunCmd()} release`)
|
|
@@ -113571,10 +114050,10 @@ var CreateHeadlessSiteCommand = ({ targetParentFolder: targetParentFolder2, comm
|
|
|
113571
114050
|
await validateForLatestVersion(package_default, packageManager);
|
|
113572
114051
|
return { repoType, packageManager };
|
|
113573
114052
|
}, []);
|
|
113574
|
-
return (0,
|
|
114053
|
+
return (0, import_variant38.match)(status, {
|
|
113575
114054
|
Error: () => null,
|
|
113576
114055
|
Loading: () => /* @__PURE__ */ import_react109.default.createElement(Spinner2, { text: "Loading..." }),
|
|
113577
|
-
Success: ({ result: { packageManager } }) => {
|
|
114056
|
+
Success: ({ result: { packageManager, repoType } }) => {
|
|
113578
114057
|
return /* @__PURE__ */ import_react109.default.createElement(
|
|
113579
114058
|
Box_default,
|
|
113580
114059
|
{
|
|
@@ -113630,6 +114109,7 @@ var CreateHeadlessSiteCommand = ({ targetParentFolder: targetParentFolder2, comm
|
|
|
113630
114109
|
folderName,
|
|
113631
114110
|
businessId,
|
|
113632
114111
|
projectData,
|
|
114112
|
+
repoType,
|
|
113633
114113
|
packageManager,
|
|
113634
114114
|
targetParentFolder: targetParentFolder2,
|
|
113635
114115
|
commandOptions,
|