@wix/create-app 0.0.103 → 0.0.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +600 -438
- package/build/index.js.map +1 -1
- package/package.json +3 -3
package/build/index.js
CHANGED
|
@@ -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 isType16(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) => isType16(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: isType16 };
|
|
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: isType16 } = (0, isType_1.isTypeImpl)(key);
|
|
7205
7205
|
const { match: match22 } = (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]: isType16(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: isType16 } = (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: isType16,
|
|
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 = isArray2(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2),
|
|
8128
|
+
var isArr = isArray2(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2), isType16 = !isArr && !isArg && !isBuff && isTypedArray(value2), skipIndexes = isArr || isArg || isBuff || isType16, result = skipIndexes ? baseTimes(value2.length, String) : [], length = result.length;
|
|
8129
8129
|
for (var key in value2) {
|
|
8130
8130
|
if ((inherited || hasOwnProperty2.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
|
+
isType16 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
8134
8134
|
isIndex(key, length)))) {
|
|
8135
8135
|
result.push(key);
|
|
8136
8136
|
}
|
|
@@ -11042,9 +11042,9 @@ var require_verror = __commonJS({
|
|
|
11042
11042
|
}
|
|
11043
11043
|
});
|
|
11044
11044
|
|
|
11045
|
-
// ../../node_modules/
|
|
11045
|
+
// ../../node_modules/retry/lib/retry_operation.js
|
|
11046
11046
|
var require_retry_operation = __commonJS({
|
|
11047
|
-
"../../node_modules/
|
|
11047
|
+
"../../node_modules/retry/lib/retry_operation.js"(exports, module2) {
|
|
11048
11048
|
"use strict";
|
|
11049
11049
|
init_esm_shims();
|
|
11050
11050
|
function RetryOperation(timeouts, options) {
|
|
@@ -11179,9 +11179,9 @@ var require_retry_operation = __commonJS({
|
|
|
11179
11179
|
}
|
|
11180
11180
|
});
|
|
11181
11181
|
|
|
11182
|
-
// ../../node_modules/
|
|
11182
|
+
// ../../node_modules/retry/lib/retry.js
|
|
11183
11183
|
var require_retry = __commonJS({
|
|
11184
|
-
"../../node_modules/
|
|
11184
|
+
"../../node_modules/retry/lib/retry.js"(exports) {
|
|
11185
11185
|
"use strict";
|
|
11186
11186
|
init_esm_shims();
|
|
11187
11187
|
var RetryOperation = require_retry_operation();
|
|
@@ -11267,9 +11267,9 @@ var require_retry = __commonJS({
|
|
|
11267
11267
|
}
|
|
11268
11268
|
});
|
|
11269
11269
|
|
|
11270
|
-
// ../../node_modules/
|
|
11270
|
+
// ../../node_modules/retry/index.js
|
|
11271
11271
|
var require_retry2 = __commonJS({
|
|
11272
|
-
"../../node_modules/
|
|
11272
|
+
"../../node_modules/retry/index.js"(exports, module2) {
|
|
11273
11273
|
"use strict";
|
|
11274
11274
|
init_esm_shims();
|
|
11275
11275
|
module2.exports = require_retry();
|
|
@@ -15011,7 +15011,7 @@ var require_validator = __commonJS({
|
|
|
15011
15011
|
return validator ? validator(value2, opt, opts) : true;
|
|
15012
15012
|
};
|
|
15013
15013
|
};
|
|
15014
|
-
function assertOptions(options,
|
|
15014
|
+
function assertOptions(options, schema3, allowUnknown) {
|
|
15015
15015
|
if (typeof options !== "object") {
|
|
15016
15016
|
throw new TypeError("options must be an object");
|
|
15017
15017
|
}
|
|
@@ -15019,7 +15019,7 @@ var require_validator = __commonJS({
|
|
|
15019
15019
|
var i2 = keys.length;
|
|
15020
15020
|
while (i2-- > 0) {
|
|
15021
15021
|
var opt = keys[i2];
|
|
15022
|
-
var validator =
|
|
15022
|
+
var validator = schema3[opt];
|
|
15023
15023
|
if (validator) {
|
|
15024
15024
|
var value2 = options[opt];
|
|
15025
15025
|
var result = value2 === void 0 || validator(value2, opt, options);
|
|
@@ -24610,8 +24610,8 @@ var require_instrumentation3 = __commonJS({
|
|
|
24610
24610
|
_patchValidate() {
|
|
24611
24611
|
const instrumentation = this;
|
|
24612
24612
|
return function validate3(original) {
|
|
24613
|
-
return function patchValidate(
|
|
24614
|
-
return instrumentation._validate(this, original,
|
|
24613
|
+
return function patchValidate(schema3, documentAST, rules, options, typeInfo) {
|
|
24614
|
+
return instrumentation._validate(this, original, schema3, documentAST, rules, typeInfo, options);
|
|
24615
24615
|
};
|
|
24616
24616
|
};
|
|
24617
24617
|
}
|
|
@@ -24634,11 +24634,11 @@ var require_instrumentation3 = __commonJS({
|
|
|
24634
24634
|
});
|
|
24635
24635
|
});
|
|
24636
24636
|
}
|
|
24637
|
-
_validate(obj, original,
|
|
24637
|
+
_validate(obj, original, schema3, documentAST, rules, typeInfo, options) {
|
|
24638
24638
|
const span = this.tracer.startSpan(enum_1.SpanNames.VALIDATE, {});
|
|
24639
24639
|
return api_1.context.with(api_1.trace.setSpan(api_1.context.active(), span), () => {
|
|
24640
24640
|
return (0, instrumentation_1.safeExecuteInTheMiddle)(() => {
|
|
24641
|
-
return original.call(obj,
|
|
24641
|
+
return original.call(obj, schema3, documentAST, rules, options, typeInfo);
|
|
24642
24642
|
}, (err, errors) => {
|
|
24643
24643
|
if (!documentAST.loc) {
|
|
24644
24644
|
span.updateName(enum_1.SpanNames.SCHEMA_VALIDATE);
|
|
@@ -24683,13 +24683,13 @@ var require_instrumentation3 = __commonJS({
|
|
|
24683
24683
|
}
|
|
24684
24684
|
return span;
|
|
24685
24685
|
}
|
|
24686
|
-
_wrapExecuteArgs(
|
|
24686
|
+
_wrapExecuteArgs(schema3, document2, rootValue, contextValue, variableValues, operationName, fieldResolver, typeResolver, defaultFieldResolved) {
|
|
24687
24687
|
if (!contextValue) {
|
|
24688
24688
|
contextValue = {};
|
|
24689
24689
|
}
|
|
24690
24690
|
if (contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL] || this._getConfig().ignoreResolveSpans) {
|
|
24691
24691
|
return {
|
|
24692
|
-
schema:
|
|
24692
|
+
schema: schema3,
|
|
24693
24693
|
document: document2,
|
|
24694
24694
|
rootValue,
|
|
24695
24695
|
contextValue,
|
|
@@ -24702,12 +24702,12 @@ var require_instrumentation3 = __commonJS({
|
|
|
24702
24702
|
const isUsingDefaultResolver = fieldResolver == null;
|
|
24703
24703
|
const fieldResolverForExecute = fieldResolver !== null && fieldResolver !== void 0 ? fieldResolver : defaultFieldResolved;
|
|
24704
24704
|
fieldResolver = (0, utils_1.wrapFieldResolver)(this.tracer, this._getConfig.bind(this), fieldResolverForExecute, isUsingDefaultResolver);
|
|
24705
|
-
if (
|
|
24706
|
-
(0, utils_1.wrapFields)(
|
|
24707
|
-
(0, utils_1.wrapFields)(
|
|
24705
|
+
if (schema3) {
|
|
24706
|
+
(0, utils_1.wrapFields)(schema3.getQueryType(), this.tracer, this._getConfig.bind(this));
|
|
24707
|
+
(0, utils_1.wrapFields)(schema3.getMutationType(), this.tracer, this._getConfig.bind(this));
|
|
24708
24708
|
}
|
|
24709
24709
|
return {
|
|
24710
|
-
schema:
|
|
24710
|
+
schema: schema3,
|
|
24711
24711
|
document: document2,
|
|
24712
24712
|
rootValue,
|
|
24713
24713
|
contextValue,
|
|
@@ -40296,7 +40296,7 @@ var require_rc = __commonJS({
|
|
|
40296
40296
|
"use strict";
|
|
40297
40297
|
init_esm_shims();
|
|
40298
40298
|
var cc = require_utils20();
|
|
40299
|
-
var
|
|
40299
|
+
var join14 = __require("path").join;
|
|
40300
40300
|
var deepExtend2 = require_deep_extend();
|
|
40301
40301
|
var etc = "/etc";
|
|
40302
40302
|
var win = process.platform === "win32";
|
|
@@ -40321,15 +40321,15 @@ var require_rc = __commonJS({
|
|
|
40321
40321
|
}
|
|
40322
40322
|
if (!win)
|
|
40323
40323
|
[
|
|
40324
|
-
|
|
40325
|
-
|
|
40324
|
+
join14(etc, name, "config"),
|
|
40325
|
+
join14(etc, name + "rc")
|
|
40326
40326
|
].forEach(addConfigFile);
|
|
40327
40327
|
if (home)
|
|
40328
40328
|
[
|
|
40329
|
-
|
|
40330
|
-
|
|
40331
|
-
|
|
40332
|
-
|
|
40329
|
+
join14(home, ".config", name, "config"),
|
|
40330
|
+
join14(home, ".config", name),
|
|
40331
|
+
join14(home, "." + name, "config"),
|
|
40332
|
+
join14(home, "." + name + "rc")
|
|
40333
40333
|
].forEach(addConfigFile);
|
|
40334
40334
|
addConfigFile(cc.find("." + name + "rc"));
|
|
40335
40335
|
if (env3.config) addConfigFile(env3.config);
|
|
@@ -42432,6 +42432,182 @@ var require_lib2 = __commonJS({
|
|
|
42432
42432
|
}
|
|
42433
42433
|
});
|
|
42434
42434
|
|
|
42435
|
+
// ../../node_modules/lodash/_asciiWords.js
|
|
42436
|
+
var require_asciiWords = __commonJS({
|
|
42437
|
+
"../../node_modules/lodash/_asciiWords.js"(exports, module2) {
|
|
42438
|
+
"use strict";
|
|
42439
|
+
init_esm_shims();
|
|
42440
|
+
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
42441
|
+
function asciiWords(string) {
|
|
42442
|
+
return string.match(reAsciiWord) || [];
|
|
42443
|
+
}
|
|
42444
|
+
module2.exports = asciiWords;
|
|
42445
|
+
}
|
|
42446
|
+
});
|
|
42447
|
+
|
|
42448
|
+
// ../../node_modules/lodash/_hasUnicodeWord.js
|
|
42449
|
+
var require_hasUnicodeWord = __commonJS({
|
|
42450
|
+
"../../node_modules/lodash/_hasUnicodeWord.js"(exports, module2) {
|
|
42451
|
+
"use strict";
|
|
42452
|
+
init_esm_shims();
|
|
42453
|
+
var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
42454
|
+
function hasUnicodeWord(string) {
|
|
42455
|
+
return reHasUnicodeWord.test(string);
|
|
42456
|
+
}
|
|
42457
|
+
module2.exports = hasUnicodeWord;
|
|
42458
|
+
}
|
|
42459
|
+
});
|
|
42460
|
+
|
|
42461
|
+
// ../../node_modules/lodash/_arrayMap.js
|
|
42462
|
+
var require_arrayMap = __commonJS({
|
|
42463
|
+
"../../node_modules/lodash/_arrayMap.js"(exports, module2) {
|
|
42464
|
+
"use strict";
|
|
42465
|
+
init_esm_shims();
|
|
42466
|
+
function arrayMap(array, iteratee) {
|
|
42467
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
42468
|
+
while (++index < length) {
|
|
42469
|
+
result[index] = iteratee(array[index], index, array);
|
|
42470
|
+
}
|
|
42471
|
+
return result;
|
|
42472
|
+
}
|
|
42473
|
+
module2.exports = arrayMap;
|
|
42474
|
+
}
|
|
42475
|
+
});
|
|
42476
|
+
|
|
42477
|
+
// ../../node_modules/lodash/isArray.js
|
|
42478
|
+
var require_isArray = __commonJS({
|
|
42479
|
+
"../../node_modules/lodash/isArray.js"(exports, module2) {
|
|
42480
|
+
"use strict";
|
|
42481
|
+
init_esm_shims();
|
|
42482
|
+
var isArray2 = Array.isArray;
|
|
42483
|
+
module2.exports = isArray2;
|
|
42484
|
+
}
|
|
42485
|
+
});
|
|
42486
|
+
|
|
42487
|
+
// ../../node_modules/lodash/_baseToString.js
|
|
42488
|
+
var require_baseToString = __commonJS({
|
|
42489
|
+
"../../node_modules/lodash/_baseToString.js"(exports, module2) {
|
|
42490
|
+
"use strict";
|
|
42491
|
+
init_esm_shims();
|
|
42492
|
+
var Symbol2 = require_Symbol();
|
|
42493
|
+
var arrayMap = require_arrayMap();
|
|
42494
|
+
var isArray2 = require_isArray();
|
|
42495
|
+
var isSymbol = require_isSymbol();
|
|
42496
|
+
var INFINITY = 1 / 0;
|
|
42497
|
+
var symbolProto = Symbol2 ? Symbol2.prototype : void 0;
|
|
42498
|
+
var symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
42499
|
+
function baseToString(value2) {
|
|
42500
|
+
if (typeof value2 == "string") {
|
|
42501
|
+
return value2;
|
|
42502
|
+
}
|
|
42503
|
+
if (isArray2(value2)) {
|
|
42504
|
+
return arrayMap(value2, baseToString) + "";
|
|
42505
|
+
}
|
|
42506
|
+
if (isSymbol(value2)) {
|
|
42507
|
+
return symbolToString ? symbolToString.call(value2) : "";
|
|
42508
|
+
}
|
|
42509
|
+
var result = value2 + "";
|
|
42510
|
+
return result == "0" && 1 / value2 == -INFINITY ? "-0" : result;
|
|
42511
|
+
}
|
|
42512
|
+
module2.exports = baseToString;
|
|
42513
|
+
}
|
|
42514
|
+
});
|
|
42515
|
+
|
|
42516
|
+
// ../../node_modules/lodash/toString.js
|
|
42517
|
+
var require_toString = __commonJS({
|
|
42518
|
+
"../../node_modules/lodash/toString.js"(exports, module2) {
|
|
42519
|
+
"use strict";
|
|
42520
|
+
init_esm_shims();
|
|
42521
|
+
var baseToString = require_baseToString();
|
|
42522
|
+
function toString(value2) {
|
|
42523
|
+
return value2 == null ? "" : baseToString(value2);
|
|
42524
|
+
}
|
|
42525
|
+
module2.exports = toString;
|
|
42526
|
+
}
|
|
42527
|
+
});
|
|
42528
|
+
|
|
42529
|
+
// ../../node_modules/lodash/_unicodeWords.js
|
|
42530
|
+
var require_unicodeWords = __commonJS({
|
|
42531
|
+
"../../node_modules/lodash/_unicodeWords.js"(exports, module2) {
|
|
42532
|
+
"use strict";
|
|
42533
|
+
init_esm_shims();
|
|
42534
|
+
var rsAstralRange = "\\ud800-\\udfff";
|
|
42535
|
+
var rsComboMarksRange = "\\u0300-\\u036f";
|
|
42536
|
+
var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
|
|
42537
|
+
var rsComboSymbolsRange = "\\u20d0-\\u20ff";
|
|
42538
|
+
var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
|
|
42539
|
+
var rsDingbatRange = "\\u2700-\\u27bf";
|
|
42540
|
+
var rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff";
|
|
42541
|
+
var rsMathOpRange = "\\xac\\xb1\\xd7\\xf7";
|
|
42542
|
+
var rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf";
|
|
42543
|
+
var rsPunctuationRange = "\\u2000-\\u206f";
|
|
42544
|
+
var rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000";
|
|
42545
|
+
var rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde";
|
|
42546
|
+
var rsVarRange = "\\ufe0e\\ufe0f";
|
|
42547
|
+
var rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
|
|
42548
|
+
var rsApos = "['\u2019]";
|
|
42549
|
+
var rsBreak = "[" + rsBreakRange + "]";
|
|
42550
|
+
var rsCombo = "[" + rsComboRange + "]";
|
|
42551
|
+
var rsDigits = "\\d+";
|
|
42552
|
+
var rsDingbat = "[" + rsDingbatRange + "]";
|
|
42553
|
+
var rsLower = "[" + rsLowerRange + "]";
|
|
42554
|
+
var rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]";
|
|
42555
|
+
var rsFitz = "\\ud83c[\\udffb-\\udfff]";
|
|
42556
|
+
var rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
|
|
42557
|
+
var rsNonAstral = "[^" + rsAstralRange + "]";
|
|
42558
|
+
var rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}";
|
|
42559
|
+
var rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]";
|
|
42560
|
+
var rsUpper = "[" + rsUpperRange + "]";
|
|
42561
|
+
var rsZWJ = "\\u200d";
|
|
42562
|
+
var rsMiscLower = "(?:" + rsLower + "|" + rsMisc + ")";
|
|
42563
|
+
var rsMiscUpper = "(?:" + rsUpper + "|" + rsMisc + ")";
|
|
42564
|
+
var rsOptContrLower = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?";
|
|
42565
|
+
var rsOptContrUpper = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?";
|
|
42566
|
+
var reOptMod = rsModifier + "?";
|
|
42567
|
+
var rsOptVar = "[" + rsVarRange + "]?";
|
|
42568
|
+
var rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*";
|
|
42569
|
+
var rsOrdLower = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])";
|
|
42570
|
+
var rsOrdUpper = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])";
|
|
42571
|
+
var rsSeq = rsOptVar + reOptMod + rsOptJoin;
|
|
42572
|
+
var rsEmoji = "(?:" + [rsDingbat, rsRegional, rsSurrPair].join("|") + ")" + rsSeq;
|
|
42573
|
+
var reUnicodeWord = RegExp([
|
|
42574
|
+
rsUpper + "?" + rsLower + "+" + rsOptContrLower + "(?=" + [rsBreak, rsUpper, "$"].join("|") + ")",
|
|
42575
|
+
rsMiscUpper + "+" + rsOptContrUpper + "(?=" + [rsBreak, rsUpper + rsMiscLower, "$"].join("|") + ")",
|
|
42576
|
+
rsUpper + "?" + rsMiscLower + "+" + rsOptContrLower,
|
|
42577
|
+
rsUpper + "+" + rsOptContrUpper,
|
|
42578
|
+
rsOrdUpper,
|
|
42579
|
+
rsOrdLower,
|
|
42580
|
+
rsDigits,
|
|
42581
|
+
rsEmoji
|
|
42582
|
+
].join("|"), "g");
|
|
42583
|
+
function unicodeWords(string) {
|
|
42584
|
+
return string.match(reUnicodeWord) || [];
|
|
42585
|
+
}
|
|
42586
|
+
module2.exports = unicodeWords;
|
|
42587
|
+
}
|
|
42588
|
+
});
|
|
42589
|
+
|
|
42590
|
+
// ../../node_modules/lodash/words.js
|
|
42591
|
+
var require_words = __commonJS({
|
|
42592
|
+
"../../node_modules/lodash/words.js"(exports, module2) {
|
|
42593
|
+
"use strict";
|
|
42594
|
+
init_esm_shims();
|
|
42595
|
+
var asciiWords = require_asciiWords();
|
|
42596
|
+
var hasUnicodeWord = require_hasUnicodeWord();
|
|
42597
|
+
var toString = require_toString();
|
|
42598
|
+
var unicodeWords = require_unicodeWords();
|
|
42599
|
+
function words2(string, pattern, guard) {
|
|
42600
|
+
string = toString(string);
|
|
42601
|
+
pattern = guard ? void 0 : pattern;
|
|
42602
|
+
if (pattern === void 0) {
|
|
42603
|
+
return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
|
|
42604
|
+
}
|
|
42605
|
+
return string.match(pattern) || [];
|
|
42606
|
+
}
|
|
42607
|
+
module2.exports = words2;
|
|
42608
|
+
}
|
|
42609
|
+
});
|
|
42610
|
+
|
|
42435
42611
|
// ../../node_modules/lodash/_arrayReduce.js
|
|
42436
42612
|
var require_arrayReduce = __commonJS({
|
|
42437
42613
|
"../../node_modules/lodash/_arrayReduce.js"(exports, module2) {
|
|
@@ -42670,74 +42846,6 @@ var require_deburrLetter = __commonJS({
|
|
|
42670
42846
|
}
|
|
42671
42847
|
});
|
|
42672
42848
|
|
|
42673
|
-
// ../../node_modules/lodash/_arrayMap.js
|
|
42674
|
-
var require_arrayMap = __commonJS({
|
|
42675
|
-
"../../node_modules/lodash/_arrayMap.js"(exports, module2) {
|
|
42676
|
-
"use strict";
|
|
42677
|
-
init_esm_shims();
|
|
42678
|
-
function arrayMap(array, iteratee) {
|
|
42679
|
-
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
42680
|
-
while (++index < length) {
|
|
42681
|
-
result[index] = iteratee(array[index], index, array);
|
|
42682
|
-
}
|
|
42683
|
-
return result;
|
|
42684
|
-
}
|
|
42685
|
-
module2.exports = arrayMap;
|
|
42686
|
-
}
|
|
42687
|
-
});
|
|
42688
|
-
|
|
42689
|
-
// ../../node_modules/lodash/isArray.js
|
|
42690
|
-
var require_isArray = __commonJS({
|
|
42691
|
-
"../../node_modules/lodash/isArray.js"(exports, module2) {
|
|
42692
|
-
"use strict";
|
|
42693
|
-
init_esm_shims();
|
|
42694
|
-
var isArray2 = Array.isArray;
|
|
42695
|
-
module2.exports = isArray2;
|
|
42696
|
-
}
|
|
42697
|
-
});
|
|
42698
|
-
|
|
42699
|
-
// ../../node_modules/lodash/_baseToString.js
|
|
42700
|
-
var require_baseToString = __commonJS({
|
|
42701
|
-
"../../node_modules/lodash/_baseToString.js"(exports, module2) {
|
|
42702
|
-
"use strict";
|
|
42703
|
-
init_esm_shims();
|
|
42704
|
-
var Symbol2 = require_Symbol();
|
|
42705
|
-
var arrayMap = require_arrayMap();
|
|
42706
|
-
var isArray2 = require_isArray();
|
|
42707
|
-
var isSymbol = require_isSymbol();
|
|
42708
|
-
var INFINITY = 1 / 0;
|
|
42709
|
-
var symbolProto = Symbol2 ? Symbol2.prototype : void 0;
|
|
42710
|
-
var symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
42711
|
-
function baseToString(value2) {
|
|
42712
|
-
if (typeof value2 == "string") {
|
|
42713
|
-
return value2;
|
|
42714
|
-
}
|
|
42715
|
-
if (isArray2(value2)) {
|
|
42716
|
-
return arrayMap(value2, baseToString) + "";
|
|
42717
|
-
}
|
|
42718
|
-
if (isSymbol(value2)) {
|
|
42719
|
-
return symbolToString ? symbolToString.call(value2) : "";
|
|
42720
|
-
}
|
|
42721
|
-
var result = value2 + "";
|
|
42722
|
-
return result == "0" && 1 / value2 == -INFINITY ? "-0" : result;
|
|
42723
|
-
}
|
|
42724
|
-
module2.exports = baseToString;
|
|
42725
|
-
}
|
|
42726
|
-
});
|
|
42727
|
-
|
|
42728
|
-
// ../../node_modules/lodash/toString.js
|
|
42729
|
-
var require_toString = __commonJS({
|
|
42730
|
-
"../../node_modules/lodash/toString.js"(exports, module2) {
|
|
42731
|
-
"use strict";
|
|
42732
|
-
init_esm_shims();
|
|
42733
|
-
var baseToString = require_baseToString();
|
|
42734
|
-
function toString(value2) {
|
|
42735
|
-
return value2 == null ? "" : baseToString(value2);
|
|
42736
|
-
}
|
|
42737
|
-
module2.exports = toString;
|
|
42738
|
-
}
|
|
42739
|
-
});
|
|
42740
|
-
|
|
42741
42849
|
// ../../node_modules/lodash/deburr.js
|
|
42742
42850
|
var require_deburr = __commonJS({
|
|
42743
42851
|
"../../node_modules/lodash/deburr.js"(exports, module2) {
|
|
@@ -42760,114 +42868,6 @@ var require_deburr = __commonJS({
|
|
|
42760
42868
|
}
|
|
42761
42869
|
});
|
|
42762
42870
|
|
|
42763
|
-
// ../../node_modules/lodash/_asciiWords.js
|
|
42764
|
-
var require_asciiWords = __commonJS({
|
|
42765
|
-
"../../node_modules/lodash/_asciiWords.js"(exports, module2) {
|
|
42766
|
-
"use strict";
|
|
42767
|
-
init_esm_shims();
|
|
42768
|
-
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
42769
|
-
function asciiWords(string) {
|
|
42770
|
-
return string.match(reAsciiWord) || [];
|
|
42771
|
-
}
|
|
42772
|
-
module2.exports = asciiWords;
|
|
42773
|
-
}
|
|
42774
|
-
});
|
|
42775
|
-
|
|
42776
|
-
// ../../node_modules/lodash/_hasUnicodeWord.js
|
|
42777
|
-
var require_hasUnicodeWord = __commonJS({
|
|
42778
|
-
"../../node_modules/lodash/_hasUnicodeWord.js"(exports, module2) {
|
|
42779
|
-
"use strict";
|
|
42780
|
-
init_esm_shims();
|
|
42781
|
-
var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
42782
|
-
function hasUnicodeWord(string) {
|
|
42783
|
-
return reHasUnicodeWord.test(string);
|
|
42784
|
-
}
|
|
42785
|
-
module2.exports = hasUnicodeWord;
|
|
42786
|
-
}
|
|
42787
|
-
});
|
|
42788
|
-
|
|
42789
|
-
// ../../node_modules/lodash/_unicodeWords.js
|
|
42790
|
-
var require_unicodeWords = __commonJS({
|
|
42791
|
-
"../../node_modules/lodash/_unicodeWords.js"(exports, module2) {
|
|
42792
|
-
"use strict";
|
|
42793
|
-
init_esm_shims();
|
|
42794
|
-
var rsAstralRange = "\\ud800-\\udfff";
|
|
42795
|
-
var rsComboMarksRange = "\\u0300-\\u036f";
|
|
42796
|
-
var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
|
|
42797
|
-
var rsComboSymbolsRange = "\\u20d0-\\u20ff";
|
|
42798
|
-
var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
|
|
42799
|
-
var rsDingbatRange = "\\u2700-\\u27bf";
|
|
42800
|
-
var rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff";
|
|
42801
|
-
var rsMathOpRange = "\\xac\\xb1\\xd7\\xf7";
|
|
42802
|
-
var rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf";
|
|
42803
|
-
var rsPunctuationRange = "\\u2000-\\u206f";
|
|
42804
|
-
var rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000";
|
|
42805
|
-
var rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde";
|
|
42806
|
-
var rsVarRange = "\\ufe0e\\ufe0f";
|
|
42807
|
-
var rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
|
|
42808
|
-
var rsApos = "['\u2019]";
|
|
42809
|
-
var rsBreak = "[" + rsBreakRange + "]";
|
|
42810
|
-
var rsCombo = "[" + rsComboRange + "]";
|
|
42811
|
-
var rsDigits = "\\d+";
|
|
42812
|
-
var rsDingbat = "[" + rsDingbatRange + "]";
|
|
42813
|
-
var rsLower = "[" + rsLowerRange + "]";
|
|
42814
|
-
var rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]";
|
|
42815
|
-
var rsFitz = "\\ud83c[\\udffb-\\udfff]";
|
|
42816
|
-
var rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
|
|
42817
|
-
var rsNonAstral = "[^" + rsAstralRange + "]";
|
|
42818
|
-
var rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}";
|
|
42819
|
-
var rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]";
|
|
42820
|
-
var rsUpper = "[" + rsUpperRange + "]";
|
|
42821
|
-
var rsZWJ = "\\u200d";
|
|
42822
|
-
var rsMiscLower = "(?:" + rsLower + "|" + rsMisc + ")";
|
|
42823
|
-
var rsMiscUpper = "(?:" + rsUpper + "|" + rsMisc + ")";
|
|
42824
|
-
var rsOptContrLower = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?";
|
|
42825
|
-
var rsOptContrUpper = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?";
|
|
42826
|
-
var reOptMod = rsModifier + "?";
|
|
42827
|
-
var rsOptVar = "[" + rsVarRange + "]?";
|
|
42828
|
-
var rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*";
|
|
42829
|
-
var rsOrdLower = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])";
|
|
42830
|
-
var rsOrdUpper = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])";
|
|
42831
|
-
var rsSeq = rsOptVar + reOptMod + rsOptJoin;
|
|
42832
|
-
var rsEmoji = "(?:" + [rsDingbat, rsRegional, rsSurrPair].join("|") + ")" + rsSeq;
|
|
42833
|
-
var reUnicodeWord = RegExp([
|
|
42834
|
-
rsUpper + "?" + rsLower + "+" + rsOptContrLower + "(?=" + [rsBreak, rsUpper, "$"].join("|") + ")",
|
|
42835
|
-
rsMiscUpper + "+" + rsOptContrUpper + "(?=" + [rsBreak, rsUpper + rsMiscLower, "$"].join("|") + ")",
|
|
42836
|
-
rsUpper + "?" + rsMiscLower + "+" + rsOptContrLower,
|
|
42837
|
-
rsUpper + "+" + rsOptContrUpper,
|
|
42838
|
-
rsOrdUpper,
|
|
42839
|
-
rsOrdLower,
|
|
42840
|
-
rsDigits,
|
|
42841
|
-
rsEmoji
|
|
42842
|
-
].join("|"), "g");
|
|
42843
|
-
function unicodeWords(string) {
|
|
42844
|
-
return string.match(reUnicodeWord) || [];
|
|
42845
|
-
}
|
|
42846
|
-
module2.exports = unicodeWords;
|
|
42847
|
-
}
|
|
42848
|
-
});
|
|
42849
|
-
|
|
42850
|
-
// ../../node_modules/lodash/words.js
|
|
42851
|
-
var require_words = __commonJS({
|
|
42852
|
-
"../../node_modules/lodash/words.js"(exports, module2) {
|
|
42853
|
-
"use strict";
|
|
42854
|
-
init_esm_shims();
|
|
42855
|
-
var asciiWords = require_asciiWords();
|
|
42856
|
-
var hasUnicodeWord = require_hasUnicodeWord();
|
|
42857
|
-
var toString = require_toString();
|
|
42858
|
-
var unicodeWords = require_unicodeWords();
|
|
42859
|
-
function words(string, pattern, guard) {
|
|
42860
|
-
string = toString(string);
|
|
42861
|
-
pattern = guard ? void 0 : pattern;
|
|
42862
|
-
if (pattern === void 0) {
|
|
42863
|
-
return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
|
|
42864
|
-
}
|
|
42865
|
-
return string.match(pattern) || [];
|
|
42866
|
-
}
|
|
42867
|
-
module2.exports = words;
|
|
42868
|
-
}
|
|
42869
|
-
});
|
|
42870
|
-
|
|
42871
42871
|
// ../../node_modules/lodash/_createCompounder.js
|
|
42872
42872
|
var require_createCompounder = __commonJS({
|
|
42873
42873
|
"../../node_modules/lodash/_createCompounder.js"(exports, module2) {
|
|
@@ -42875,12 +42875,12 @@ var require_createCompounder = __commonJS({
|
|
|
42875
42875
|
init_esm_shims();
|
|
42876
42876
|
var arrayReduce = require_arrayReduce();
|
|
42877
42877
|
var deburr = require_deburr();
|
|
42878
|
-
var
|
|
42878
|
+
var words2 = require_words();
|
|
42879
42879
|
var rsApos = "['\u2019]";
|
|
42880
42880
|
var reApos = RegExp(rsApos, "g");
|
|
42881
42881
|
function createCompounder(callback) {
|
|
42882
42882
|
return function(string) {
|
|
42883
|
-
return arrayReduce(
|
|
42883
|
+
return arrayReduce(words2(deburr(string).replace(reApos, "")), callback, "");
|
|
42884
42884
|
};
|
|
42885
42885
|
}
|
|
42886
42886
|
module2.exports = createCompounder;
|
|
@@ -42893,10 +42893,10 @@ var require_kebabCase = __commonJS({
|
|
|
42893
42893
|
"use strict";
|
|
42894
42894
|
init_esm_shims();
|
|
42895
42895
|
var createCompounder = require_createCompounder();
|
|
42896
|
-
var
|
|
42896
|
+
var kebabCase3 = createCompounder(function(result, word, index) {
|
|
42897
42897
|
return result + (index ? "-" : "") + word.toLowerCase();
|
|
42898
42898
|
});
|
|
42899
|
-
module2.exports =
|
|
42899
|
+
module2.exports = kebabCase3;
|
|
42900
42900
|
}
|
|
42901
42901
|
});
|
|
42902
42902
|
|
|
@@ -43834,12 +43834,12 @@ var require_schema = __commonJS({
|
|
|
43834
43834
|
var common2 = require_common4();
|
|
43835
43835
|
var YAMLException = require_exception();
|
|
43836
43836
|
var Type3 = require_type2();
|
|
43837
|
-
function compileList(
|
|
43837
|
+
function compileList(schema3, name, result) {
|
|
43838
43838
|
var exclude = [];
|
|
43839
|
-
|
|
43839
|
+
schema3.include.forEach(function(includedSchema) {
|
|
43840
43840
|
result = compileList(includedSchema, name, result);
|
|
43841
43841
|
});
|
|
43842
|
-
|
|
43842
|
+
schema3[name].forEach(function(currentType) {
|
|
43843
43843
|
result.forEach(function(previousType, previousIndex) {
|
|
43844
43844
|
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind) {
|
|
43845
43845
|
exclude.push(previousIndex);
|
|
@@ -43896,8 +43896,8 @@ var require_schema = __commonJS({
|
|
|
43896
43896
|
}
|
|
43897
43897
|
schemas = common2.toArray(schemas);
|
|
43898
43898
|
types = common2.toArray(types);
|
|
43899
|
-
if (!schemas.every(function(
|
|
43900
|
-
return
|
|
43899
|
+
if (!schemas.every(function(schema3) {
|
|
43900
|
+
return schema3 instanceof Schema;
|
|
43901
43901
|
})) {
|
|
43902
43902
|
throw new YAMLException("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");
|
|
43903
43903
|
}
|
|
@@ -45945,7 +45945,7 @@ var require_dumper = __commonJS({
|
|
|
45945
45945
|
"Off",
|
|
45946
45946
|
"OFF"
|
|
45947
45947
|
];
|
|
45948
|
-
function compileStyleMap(
|
|
45948
|
+
function compileStyleMap(schema3, map) {
|
|
45949
45949
|
var result, keys, index, length, tag, style, type;
|
|
45950
45950
|
if (map === null) return {};
|
|
45951
45951
|
result = {};
|
|
@@ -45956,7 +45956,7 @@ var require_dumper = __commonJS({
|
|
|
45956
45956
|
if (tag.slice(0, 2) === "!!") {
|
|
45957
45957
|
tag = "tag:yaml.org,2002:" + tag.slice(2);
|
|
45958
45958
|
}
|
|
45959
|
-
type =
|
|
45959
|
+
type = schema3.compiledTypeMap["fallback"][tag];
|
|
45960
45960
|
if (type && _hasOwnProperty.call(type.styleAliases, style)) {
|
|
45961
45961
|
style = type.styleAliases[style];
|
|
45962
45962
|
}
|
|
@@ -48121,18 +48121,18 @@ var wrapWord = (rows, word, columns) => {
|
|
|
48121
48121
|
}
|
|
48122
48122
|
};
|
|
48123
48123
|
var stringVisibleTrimSpacesRight = (string) => {
|
|
48124
|
-
const
|
|
48125
|
-
let last =
|
|
48124
|
+
const words2 = string.split(" ");
|
|
48125
|
+
let last = words2.length;
|
|
48126
48126
|
while (last > 0) {
|
|
48127
|
-
if (stringWidth2(
|
|
48127
|
+
if (stringWidth2(words2[last - 1]) > 0) {
|
|
48128
48128
|
break;
|
|
48129
48129
|
}
|
|
48130
48130
|
last--;
|
|
48131
48131
|
}
|
|
48132
|
-
if (last ===
|
|
48132
|
+
if (last === words2.length) {
|
|
48133
48133
|
return string;
|
|
48134
48134
|
}
|
|
48135
|
-
return
|
|
48135
|
+
return words2.slice(0, last).join(" ") + words2.slice(last).join("");
|
|
48136
48136
|
};
|
|
48137
48137
|
var exec = (string, columns, options = {}) => {
|
|
48138
48138
|
if (options.trim !== false && string.trim() === "") {
|
|
@@ -51727,6 +51727,7 @@ var ConfirmInput = ({
|
|
|
51727
51727
|
label,
|
|
51728
51728
|
info,
|
|
51729
51729
|
initialValue = true,
|
|
51730
|
+
isActive,
|
|
51730
51731
|
onSubmit
|
|
51731
51732
|
}) => {
|
|
51732
51733
|
const [inputState, setInputState] = (0, import_react40.useState)(
|
|
@@ -51739,6 +51740,11 @@ var ConfirmInput = ({
|
|
|
51739
51740
|
},
|
|
51740
51741
|
[onSubmit]
|
|
51741
51742
|
);
|
|
51743
|
+
(0, import_react40.useEffect)(() => {
|
|
51744
|
+
if (isActive) {
|
|
51745
|
+
setInputState(InputState.NotSubmitted(inputState.value));
|
|
51746
|
+
}
|
|
51747
|
+
}, [isActive]);
|
|
51742
51748
|
return /* @__PURE__ */ import_react40.default.createElement(Text2, null, /* @__PURE__ */ import_react40.default.createElement(InputLabel, null, label), " ", info && (0, import_variant3.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react40.default.createElement(Text2, { skin: "secondary" }, info, " "), /* @__PURE__ */ import_react40.default.createElement(Placeholder, { inputState }), (0, import_variant3.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react40.default.createElement(Input, { initialValue, onSubmit: handleSubmit }));
|
|
51743
51749
|
};
|
|
51744
51750
|
|
|
@@ -52205,6 +52211,7 @@ function SelectInput2({
|
|
|
52205
52211
|
label,
|
|
52206
52212
|
info,
|
|
52207
52213
|
options,
|
|
52214
|
+
isActive,
|
|
52208
52215
|
onSubmit,
|
|
52209
52216
|
limit = 10,
|
|
52210
52217
|
initialIndex
|
|
@@ -52238,6 +52245,11 @@ function SelectInput2({
|
|
|
52238
52245
|
})),
|
|
52239
52246
|
[options]
|
|
52240
52247
|
);
|
|
52248
|
+
(0, import_react47.useEffect)(() => {
|
|
52249
|
+
if (isActive) {
|
|
52250
|
+
setInputState(InputState.NotSubmitted(inputState.value));
|
|
52251
|
+
}
|
|
52252
|
+
}, [isActive]);
|
|
52241
52253
|
return /* @__PURE__ */ import_react47.default.createElement(import_react47.default.Fragment, null, /* @__PURE__ */ import_react47.default.createElement(Box_default, { marginLeft: -2, marginBottom: 1 }, /* @__PURE__ */ import_react47.default.createElement(Text2, null, /* @__PURE__ */ import_react47.default.createElement(InputLabel, null, label), " ", info && (0, import_variant7.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react47.default.createElement(Text2, { skin: "secondary" }, info))), /* @__PURE__ */ import_react47.default.createElement(Placeholder2, { inputState }), (0, import_variant7.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react47.default.createElement(Box_default, null, /* @__PURE__ */ import_react47.default.createElement(
|
|
52242
52254
|
SelectInput_default,
|
|
52243
52255
|
{
|
|
@@ -52292,6 +52304,7 @@ var import_react49 = __toESM(require_react(), 1);
|
|
|
52292
52304
|
var import_variant8 = __toESM(require_lib(), 1);
|
|
52293
52305
|
var TextInput2 = ({
|
|
52294
52306
|
label,
|
|
52307
|
+
isActive,
|
|
52295
52308
|
placeholder,
|
|
52296
52309
|
onSubmit,
|
|
52297
52310
|
validate: validate3 = () => true,
|
|
@@ -52317,6 +52330,11 @@ var TextInput2 = ({
|
|
|
52317
52330
|
[onSubmit, validate3]
|
|
52318
52331
|
);
|
|
52319
52332
|
const afterValidationError = Boolean(validationError && !isDirty2);
|
|
52333
|
+
(0, import_react49.useEffect)(() => {
|
|
52334
|
+
if (isActive) {
|
|
52335
|
+
setInputState(InputState.NotSubmitted(inputState.value));
|
|
52336
|
+
}
|
|
52337
|
+
}, [isActive]);
|
|
52320
52338
|
return /* @__PURE__ */ import_react49.default.createElement(import_react49.default.Fragment, null, /* @__PURE__ */ import_react49.default.createElement(Box_default, { marginBottom: 1, marginLeft: inCreateFlow ? -2 : 0 }, /* @__PURE__ */ import_react49.default.createElement(Text2, null, /* @__PURE__ */ import_react49.default.createElement(
|
|
52321
52339
|
InputLabel,
|
|
52322
52340
|
{
|
|
@@ -53293,15 +53311,15 @@ var makeIssue = (params) => {
|
|
|
53293
53311
|
message: issueData.message
|
|
53294
53312
|
};
|
|
53295
53313
|
}
|
|
53296
|
-
let
|
|
53314
|
+
let errorMessage2 = "";
|
|
53297
53315
|
const maps = errorMaps.filter((m) => !!m).slice().reverse();
|
|
53298
53316
|
for (const map of maps) {
|
|
53299
|
-
|
|
53317
|
+
errorMessage2 = map(fullIssue, { data, defaultError: errorMessage2 }).message;
|
|
53300
53318
|
}
|
|
53301
53319
|
return {
|
|
53302
53320
|
...issueData,
|
|
53303
53321
|
path: fullPath,
|
|
53304
|
-
message:
|
|
53322
|
+
message: errorMessage2
|
|
53305
53323
|
};
|
|
53306
53324
|
};
|
|
53307
53325
|
var EMPTY_PATH = [];
|
|
@@ -55143,9 +55161,9 @@ var ZodArray = class _ZodArray extends ZodType {
|
|
|
55143
55161
|
return this.min(1, message);
|
|
55144
55162
|
}
|
|
55145
55163
|
};
|
|
55146
|
-
ZodArray.create = (
|
|
55164
|
+
ZodArray.create = (schema3, params) => {
|
|
55147
55165
|
return new ZodArray({
|
|
55148
|
-
type:
|
|
55166
|
+
type: schema3,
|
|
55149
55167
|
minLength: null,
|
|
55150
55168
|
maxLength: null,
|
|
55151
55169
|
exactLength: null,
|
|
@@ -55153,30 +55171,30 @@ ZodArray.create = (schema2, params) => {
|
|
|
55153
55171
|
...processCreateParams(params)
|
|
55154
55172
|
});
|
|
55155
55173
|
};
|
|
55156
|
-
function deepPartialify(
|
|
55157
|
-
if (
|
|
55174
|
+
function deepPartialify(schema3) {
|
|
55175
|
+
if (schema3 instanceof ZodObject) {
|
|
55158
55176
|
const newShape = {};
|
|
55159
|
-
for (const key in
|
|
55160
|
-
const fieldSchema =
|
|
55177
|
+
for (const key in schema3.shape) {
|
|
55178
|
+
const fieldSchema = schema3.shape[key];
|
|
55161
55179
|
newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));
|
|
55162
55180
|
}
|
|
55163
55181
|
return new ZodObject({
|
|
55164
|
-
...
|
|
55182
|
+
...schema3._def,
|
|
55165
55183
|
shape: () => newShape
|
|
55166
55184
|
});
|
|
55167
|
-
} else if (
|
|
55185
|
+
} else if (schema3 instanceof ZodArray) {
|
|
55168
55186
|
return new ZodArray({
|
|
55169
|
-
...
|
|
55170
|
-
type: deepPartialify(
|
|
55187
|
+
...schema3._def,
|
|
55188
|
+
type: deepPartialify(schema3.element)
|
|
55171
55189
|
});
|
|
55172
|
-
} else if (
|
|
55173
|
-
return ZodOptional.create(deepPartialify(
|
|
55174
|
-
} else if (
|
|
55175
|
-
return ZodNullable.create(deepPartialify(
|
|
55176
|
-
} else if (
|
|
55177
|
-
return ZodTuple.create(
|
|
55190
|
+
} else if (schema3 instanceof ZodOptional) {
|
|
55191
|
+
return ZodOptional.create(deepPartialify(schema3.unwrap()));
|
|
55192
|
+
} else if (schema3 instanceof ZodNullable) {
|
|
55193
|
+
return ZodNullable.create(deepPartialify(schema3.unwrap()));
|
|
55194
|
+
} else if (schema3 instanceof ZodTuple) {
|
|
55195
|
+
return ZodTuple.create(schema3.items.map((item) => deepPartialify(item)));
|
|
55178
55196
|
} else {
|
|
55179
|
-
return
|
|
55197
|
+
return schema3;
|
|
55180
55198
|
}
|
|
55181
55199
|
}
|
|
55182
55200
|
var ZodObject = class _ZodObject extends ZodType {
|
|
@@ -55392,8 +55410,8 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
|
55392
55410
|
// }) as any;
|
|
55393
55411
|
// return merged;
|
|
55394
55412
|
// }
|
|
55395
|
-
setKey(key,
|
|
55396
|
-
return this.augment({ [key]:
|
|
55413
|
+
setKey(key, schema3) {
|
|
55414
|
+
return this.augment({ [key]: schema3 });
|
|
55397
55415
|
}
|
|
55398
55416
|
// merge<Incoming extends AnyZodObject>(
|
|
55399
55417
|
// merging: Incoming
|
|
@@ -55839,10 +55857,10 @@ var ZodTuple = class _ZodTuple extends ZodType {
|
|
|
55839
55857
|
status.dirty();
|
|
55840
55858
|
}
|
|
55841
55859
|
const items = [...ctx.data].map((item, itemIndex) => {
|
|
55842
|
-
const
|
|
55843
|
-
if (!
|
|
55860
|
+
const schema3 = this._def.items[itemIndex] || this._def.rest;
|
|
55861
|
+
if (!schema3)
|
|
55844
55862
|
return null;
|
|
55845
|
-
return
|
|
55863
|
+
return schema3._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
|
|
55846
55864
|
}).filter((x) => !!x);
|
|
55847
55865
|
if (ctx.common.async) {
|
|
55848
55866
|
return Promise.all(items).then((results) => {
|
|
@@ -56376,9 +56394,9 @@ var ZodPromise = class extends ZodType {
|
|
|
56376
56394
|
}));
|
|
56377
56395
|
}
|
|
56378
56396
|
};
|
|
56379
|
-
ZodPromise.create = (
|
|
56397
|
+
ZodPromise.create = (schema3, params) => {
|
|
56380
56398
|
return new ZodPromise({
|
|
56381
|
-
type:
|
|
56399
|
+
type: schema3,
|
|
56382
56400
|
typeName: ZodFirstPartyTypeKind.ZodPromise,
|
|
56383
56401
|
...processCreateParams(params)
|
|
56384
56402
|
});
|
|
@@ -56503,17 +56521,17 @@ var ZodEffects = class extends ZodType {
|
|
|
56503
56521
|
util.assertNever(effect);
|
|
56504
56522
|
}
|
|
56505
56523
|
};
|
|
56506
|
-
ZodEffects.create = (
|
|
56524
|
+
ZodEffects.create = (schema3, effect, params) => {
|
|
56507
56525
|
return new ZodEffects({
|
|
56508
|
-
schema:
|
|
56526
|
+
schema: schema3,
|
|
56509
56527
|
typeName: ZodFirstPartyTypeKind.ZodEffects,
|
|
56510
56528
|
effect,
|
|
56511
56529
|
...processCreateParams(params)
|
|
56512
56530
|
});
|
|
56513
56531
|
};
|
|
56514
|
-
ZodEffects.createWithPreprocess = (preprocess,
|
|
56532
|
+
ZodEffects.createWithPreprocess = (preprocess, schema3, params) => {
|
|
56515
56533
|
return new ZodEffects({
|
|
56516
|
-
schema:
|
|
56534
|
+
schema: schema3,
|
|
56517
56535
|
effect: { type: "preprocess", transform: preprocess },
|
|
56518
56536
|
typeName: ZodFirstPartyTypeKind.ZodEffects,
|
|
56519
56537
|
...processCreateParams(params)
|
|
@@ -57078,7 +57096,6 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
|
|
|
57078
57096
|
FailedToGetDeveloperApps: {},
|
|
57079
57097
|
FailedToUpdateTelemetryConfig: {},
|
|
57080
57098
|
FailedToSyncToRevision: (0, import_variant11.fields)(),
|
|
57081
|
-
FailedToCreateVersion: {},
|
|
57082
57099
|
FailedToReadCache: (0, import_variant11.fields)(),
|
|
57083
57100
|
FailedToWriteCache: (0, import_variant11.fields)(),
|
|
57084
57101
|
UploadApplicationFailed: {},
|
|
@@ -57104,7 +57121,6 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
|
|
|
57104
57121
|
ViteFileNotFoundInOutput: (0, import_variant11.fields)(),
|
|
57105
57122
|
FailedToCreateBackendDeployment: {},
|
|
57106
57123
|
FailedToUpdateBackendDeployment: {},
|
|
57107
|
-
InvalidDeploymentUrl: (0, import_variant11.fields)(),
|
|
57108
57124
|
FailedToGetBackendDeployment: {},
|
|
57109
57125
|
FailedToDeployBackend: {},
|
|
57110
57126
|
FailedToGetUserInfo: {},
|
|
@@ -57116,13 +57132,11 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
|
|
|
57116
57132
|
FailedToQueryApps: {},
|
|
57117
57133
|
FailedToGetMarketListing: {},
|
|
57118
57134
|
FailedToAddRequiredApp: {},
|
|
57119
|
-
FailedToGetAppValidity: {},
|
|
57120
57135
|
FailedToQuerySites: {},
|
|
57121
57136
|
FailedToGetSite: {},
|
|
57122
57137
|
FailedToDeploySite: {},
|
|
57123
57138
|
FailedToDeploySitePreview: {},
|
|
57124
57139
|
FailedToPublishDeployment: {},
|
|
57125
|
-
FailedToMarkDeploymentAsPermanent: {},
|
|
57126
57140
|
FailedToGetAppInstallationDetails: (0, import_variant11.fields)(),
|
|
57127
57141
|
TypeErrorInvalidUrl: {},
|
|
57128
57142
|
FailedToGenerateSelfSignedCertificate: {},
|
|
@@ -57210,7 +57224,6 @@ var CliUserErrorCode = (0, import_variant11.variant)({
|
|
|
57210
57224
|
PermissionDenied: {},
|
|
57211
57225
|
SiteSelectorTimedout: {},
|
|
57212
57226
|
FailedToReadProjectFiles: {},
|
|
57213
|
-
FailedToCreateVersionForSubmittedApp: {},
|
|
57214
57227
|
GridAppFilesMaxLengthExceeded: (0, import_variant11.fields)(),
|
|
57215
57228
|
DeviceCodeTimedOut: {},
|
|
57216
57229
|
DuplicateComponentIdsError: (0, import_variant11.fields)(),
|
|
@@ -57267,7 +57280,9 @@ var CliUserErrorCode = (0, import_variant11.variant)({
|
|
|
57267
57280
|
WebMethodOutsideOfProjectDirectory: (0, import_variant11.fields)(),
|
|
57268
57281
|
FailedToEvalBackendExtension: (0, import_variant11.fields)(),
|
|
57269
57282
|
DeploymentPipelineFailed: (0, import_variant11.fields)(),
|
|
57270
|
-
InsufficientNonInterractiveReleaseParameters: {}
|
|
57283
|
+
InsufficientNonInterractiveReleaseParameters: {},
|
|
57284
|
+
AppNameArgumentIsInvalid: (0, import_variant11.fields)(),
|
|
57285
|
+
CannotReleaseMinorInNoninteractive: {}
|
|
57271
57286
|
});
|
|
57272
57287
|
var CliErrorCode = (0, import_variant11.variant)({
|
|
57273
57288
|
...CliSystemErrorCode,
|
|
@@ -57703,13 +57718,13 @@ init_esm_shims();
|
|
|
57703
57718
|
function schemaSerializer(rootSchema, depSchemas = {}, converterSets) {
|
|
57704
57719
|
return function serialize(json = {}, converterType) {
|
|
57705
57720
|
return typeof json === "string" ? json : transformSchema(rootSchema, json);
|
|
57706
|
-
function transformSchema(
|
|
57721
|
+
function transformSchema(schema3, payload5) {
|
|
57707
57722
|
const result = {};
|
|
57708
57723
|
if ([null, void 0].includes(payload5)) {
|
|
57709
57724
|
return payload5;
|
|
57710
57725
|
}
|
|
57711
57726
|
Object.entries(payload5).forEach(([key, val]) => {
|
|
57712
|
-
const renderedSchemaName =
|
|
57727
|
+
const renderedSchemaName = schema3[key];
|
|
57713
57728
|
const { schemaName, schemaType } = parseLeanSchemaRef(renderedSchemaName);
|
|
57714
57729
|
const isMap = schemaType === "Map";
|
|
57715
57730
|
const isRepeatable = getConverter(schemaName)?.checkRepetable?.(val) ?? Array.isArray(val);
|
|
@@ -58922,7 +58937,7 @@ var AbortError2 = class extends Error {
|
|
|
58922
58937
|
this.message = message;
|
|
58923
58938
|
}
|
|
58924
58939
|
};
|
|
58925
|
-
var getDOMException = (
|
|
58940
|
+
var getDOMException = (errorMessage2) => globalThis.DOMException === void 0 ? new AbortError2(errorMessage2) : new DOMException(errorMessage2);
|
|
58926
58941
|
var getAbortedReason = (signal) => {
|
|
58927
58942
|
const reason = signal.reason === void 0 ? getDOMException("This operation was aborted.") : signal.reason;
|
|
58928
58943
|
return reason instanceof Error ? reason : getDOMException(reason);
|
|
@@ -66468,7 +66483,7 @@ var OutdatedVersionMessage = ({
|
|
|
66468
66483
|
init_esm_shims();
|
|
66469
66484
|
var import_react76 = __toESM(require_react(), 1);
|
|
66470
66485
|
var CreateVersionDeprecationMessage = ({ packageManagerRunCmd }) => {
|
|
66471
|
-
return /* @__PURE__ */ import_react76.default.createElement(Box_default, { rowGap: 1, paddingBottom: 1, flexDirection: "column" }, /* @__PURE__ */ import_react76.default.createElement(Alert, { type: "error" }, "Deprecation Notice"), /* @__PURE__ */ import_react76.default.createElement(Text2, null, /* @__PURE__ */ import_react76.default.createElement(Text2, { skin: "info" }, "create-version"), " command is being replaced by", " ", /* @__PURE__ */ import_react76.default.createElement(Text2, { skin: "info" }, "release"), " command."), packageManagerRunCmd ? /* @__PURE__ */ import_react76.default.createElement(Text2, null, "With ", /* @__PURE__ */ import_react76.default.createElement(Text2, { skin: "info" }, packageManagerRunCmd, " release"), " you can:") : /* @__PURE__ */ import_react76.default.createElement(Text2, null, "With the ", /* @__PURE__ */ import_react76.default.createElement(Text2, { skin: "info" }, "release"), " command you can:"), /* @__PURE__ */ import_react76.default.createElement(UnorderedList, { paddingLeft: 2 }, /* @__PURE__ */ import_react76.default.createElement(UnorderedList.Item, null, /* @__PURE__ */ import_react76.default.createElement(Text2, null, "Add comments for each version you release.")), /* @__PURE__ */ import_react76.default.createElement(UnorderedList.Item, null, /* @__PURE__ */ import_react76.default.createElement(Text2, null, "Release new versions instantly without submitting for review.")), /* @__PURE__ */ import_react76.default.createElement(UnorderedList.Item, null, /* @__PURE__ */ import_react76.default.createElement(Text2, null, "Explore different ways to distribute your app."))));
|
|
66486
|
+
return /* @__PURE__ */ import_react76.default.createElement(Box_default, { rowGap: 1, paddingBottom: 1, flexDirection: "column" }, /* @__PURE__ */ import_react76.default.createElement(Alert, { type: "error" }, "Deprecation Notice"), /* @__PURE__ */ import_react76.default.createElement(Text2, null, /* @__PURE__ */ import_react76.default.createElement(Text2, { skin: "info" }, "create-version"), " command is being replaced by", " ", /* @__PURE__ */ import_react76.default.createElement(Text2, { skin: "info" }, "release"), " command."), packageManagerRunCmd ? /* @__PURE__ */ import_react76.default.createElement(Text2, null, "With ", /* @__PURE__ */ import_react76.default.createElement(Text2, { skin: "info" }, packageManagerRunCmd, " wix app release"), " ", "you can:") : /* @__PURE__ */ import_react76.default.createElement(Text2, null, "With the ", /* @__PURE__ */ import_react76.default.createElement(Text2, { skin: "info" }, "release"), " command you can:"), /* @__PURE__ */ import_react76.default.createElement(UnorderedList, { paddingLeft: 2 }, /* @__PURE__ */ import_react76.default.createElement(UnorderedList.Item, null, /* @__PURE__ */ import_react76.default.createElement(Text2, null, "Add comments for each version you release.")), /* @__PURE__ */ import_react76.default.createElement(UnorderedList.Item, null, /* @__PURE__ */ import_react76.default.createElement(Text2, null, "Release new versions instantly without submitting for review.")), /* @__PURE__ */ import_react76.default.createElement(UnorderedList.Item, null, /* @__PURE__ */ import_react76.default.createElement(Text2, null, "Explore different ways to distribute your app."))));
|
|
66472
66487
|
};
|
|
66473
66488
|
|
|
66474
66489
|
// ../cli-error-reporting/src/get-error-component.tsx
|
|
@@ -66678,9 +66693,6 @@ function getErrorComponent(code, cause) {
|
|
|
66678
66693
|
}
|
|
66679
66694
|
);
|
|
66680
66695
|
},
|
|
66681
|
-
FailedToCreateVersion: () => {
|
|
66682
|
-
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: "Wix CLI failed to create version for your app" });
|
|
66683
|
-
},
|
|
66684
66696
|
FailedToReadCache: ({ path: path8 }) => {
|
|
66685
66697
|
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: `Failed to read cache file at ${path8}.` });
|
|
66686
66698
|
},
|
|
@@ -66895,21 +66907,12 @@ function getErrorComponent(code, cause) {
|
|
|
66895
66907
|
}
|
|
66896
66908
|
);
|
|
66897
66909
|
},
|
|
66898
|
-
FailedToCreateVersionForSubmittedApp: () => {
|
|
66899
|
-
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
66900
|
-
ErrorMessage,
|
|
66901
|
-
{
|
|
66902
|
-
message: "Cannot create a new application version because the app has an active marketplace submission",
|
|
66903
|
-
hint: "You will be able continue creating versions when your submission is approved or retracted"
|
|
66904
|
-
}
|
|
66905
|
-
);
|
|
66906
|
-
},
|
|
66907
66910
|
GridAppFilesMaxLengthExceeded: ({ maxSizeViolationsData, filePaths }) => {
|
|
66908
|
-
let
|
|
66911
|
+
let errorMessage2 = "Found one or more project files that are bigger than the allowed limit";
|
|
66909
66912
|
if (maxSizeViolationsData?.files.length) {
|
|
66910
|
-
|
|
66913
|
+
errorMessage2 += ` (${maxSizeViolationsData.expectedSize}KB): ${maxSizeViolationsData.files.map((f) => `${filePaths[f.fileIndex]} (${f.receivedSize}KB)`).join(", ")}`;
|
|
66911
66914
|
}
|
|
66912
|
-
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message:
|
|
66915
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: errorMessage2 });
|
|
66913
66916
|
},
|
|
66914
66917
|
GridAppFailedToUpdateFiles: () => {
|
|
66915
66918
|
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
@@ -67002,23 +67005,12 @@ function getErrorComponent(code, cause) {
|
|
|
67002
67005
|
FailedToUpdateBackendDeployment: () => {
|
|
67003
67006
|
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: "Failed to update backend deployment" });
|
|
67004
67007
|
},
|
|
67005
|
-
InvalidDeploymentUrl: ({ deploymentUrl }) => {
|
|
67006
|
-
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67007
|
-
ErrorMessage,
|
|
67008
|
-
{
|
|
67009
|
-
message: `Invalid deployment URL: \`${deploymentUrl}\``
|
|
67010
|
-
}
|
|
67011
|
-
);
|
|
67012
|
-
},
|
|
67013
67008
|
FailedToGetBackendDeployment: () => {
|
|
67014
67009
|
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: "Failed to get backend deployment" });
|
|
67015
67010
|
},
|
|
67016
67011
|
FailedToDeployBackend: () => {
|
|
67017
67012
|
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: "Failed to deploy backend" });
|
|
67018
67013
|
},
|
|
67019
|
-
FailedToMarkDeploymentAsPermanent: () => {
|
|
67020
|
-
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: "Failed to make backend deployment permanent" });
|
|
67021
|
-
},
|
|
67022
67014
|
FailedToGetUserInfo: () => {
|
|
67023
67015
|
return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: "Failed to get user information." });
|
|
67024
67016
|
},
|
|
@@ -67236,41 +67228,38 @@ function getErrorComponent(code, cause) {
|
|
|
67236
67228
|
}
|
|
67237
67229
|
);
|
|
67238
67230
|
},
|
|
67239
|
-
|
|
67240
|
-
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to get validation status for app version" });
|
|
67241
|
-
},
|
|
67242
|
-
InvalidDashboardPageRoute: ({ route, errorMessage }) => {
|
|
67231
|
+
InvalidDashboardPageRoute: ({ route, errorMessage: errorMessage2 }) => {
|
|
67243
67232
|
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67244
67233
|
ErrorMessage,
|
|
67245
67234
|
{
|
|
67246
67235
|
message: `Invalid dashboard page route: ${route}`,
|
|
67247
|
-
hint:
|
|
67236
|
+
hint: errorMessage2
|
|
67248
67237
|
}
|
|
67249
67238
|
);
|
|
67250
67239
|
},
|
|
67251
|
-
InvalidEmbeddedScriptFolder: ({ path: path8, errorMessage }) => {
|
|
67240
|
+
InvalidEmbeddedScriptFolder: ({ path: path8, errorMessage: errorMessage2 }) => {
|
|
67252
67241
|
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67253
67242
|
ErrorMessage,
|
|
67254
67243
|
{
|
|
67255
67244
|
message: `Invalid embedded script folder: ${path8}`,
|
|
67256
|
-
hint:
|
|
67245
|
+
hint: errorMessage2
|
|
67257
67246
|
}
|
|
67258
67247
|
);
|
|
67259
67248
|
},
|
|
67260
|
-
InvalidEmbeddedScriptTemplate: ({ templateFilename, errorMessage }) => {
|
|
67249
|
+
InvalidEmbeddedScriptTemplate: ({ templateFilename, errorMessage: errorMessage2 }) => {
|
|
67261
67250
|
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67262
67251
|
ErrorMessage,
|
|
67263
67252
|
{
|
|
67264
67253
|
message: `Invalid embedded script template in ${templateFilename}`,
|
|
67265
|
-
hint:
|
|
67254
|
+
hint: errorMessage2
|
|
67266
67255
|
}
|
|
67267
67256
|
);
|
|
67268
67257
|
},
|
|
67269
|
-
InvalidCustomElementTagName: ({ tagName, errorMessage }) => {
|
|
67258
|
+
InvalidCustomElementTagName: ({ tagName, errorMessage: errorMessage2 }) => {
|
|
67270
67259
|
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67271
67260
|
ErrorMessage,
|
|
67272
67261
|
{
|
|
67273
|
-
message: /* @__PURE__ */ import_react77.default.createElement(Text2, null, "We use name of folder as tagName for your custom element. Unfortunately, ", /* @__PURE__ */ import_react77.default.createElement(Text2, { bold: true }, tagName), " is invalid tagName. Reason: ",
|
|
67262
|
+
message: /* @__PURE__ */ import_react77.default.createElement(Text2, null, "We use name of folder as tagName for your custom element. Unfortunately, ", /* @__PURE__ */ import_react77.default.createElement(Text2, { bold: true }, tagName), " is invalid tagName. Reason: ", errorMessage2),
|
|
67274
67263
|
hint: /* @__PURE__ */ import_react77.default.createElement(Text2, null, "You can find rules for tagName here:", " ", /* @__PURE__ */ import_react77.default.createElement(Text2, { bold: true }, "https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define#valid_custom_element_names"))
|
|
67275
67264
|
}
|
|
67276
67265
|
);
|
|
@@ -67643,12 +67632,12 @@ function getErrorComponent(code, cause) {
|
|
|
67643
67632
|
FailedToDeployDocument: () => {
|
|
67644
67633
|
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to deploy site document." });
|
|
67645
67634
|
},
|
|
67646
|
-
FailedToEvalBackendExtension: ({ filename, errorMessage }) => {
|
|
67635
|
+
FailedToEvalBackendExtension: ({ filename, errorMessage: errorMessage2 }) => {
|
|
67647
67636
|
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67648
67637
|
ErrorMessage,
|
|
67649
67638
|
{
|
|
67650
67639
|
message: `Failed to process file "${filename}", error details below:
|
|
67651
|
-
${
|
|
67640
|
+
${errorMessage2}`
|
|
67652
67641
|
}
|
|
67653
67642
|
);
|
|
67654
67643
|
},
|
|
@@ -67664,7 +67653,7 @@ ${errorMessage}`
|
|
|
67664
67653
|
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67665
67654
|
ErrorMessage,
|
|
67666
67655
|
{
|
|
67667
|
-
message: `Release command in non-interactive mode requires following
|
|
67656
|
+
message: `Release command in non-interactive mode requires following parameter: --version-type`
|
|
67668
67657
|
}
|
|
67669
67658
|
);
|
|
67670
67659
|
},
|
|
@@ -67696,6 +67685,24 @@ ${errorMessage}`
|
|
|
67696
67685
|
},
|
|
67697
67686
|
FailedToFetchWixLockFile: () => {
|
|
67698
67687
|
return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: `Failed to fetch "wix.lock" file.` });
|
|
67688
|
+
},
|
|
67689
|
+
AppNameArgumentIsInvalid: ({ errorMessage: errorMessage2 }) => {
|
|
67690
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67691
|
+
ErrorMessage,
|
|
67692
|
+
{
|
|
67693
|
+
message: errorMessage2,
|
|
67694
|
+
hint: "Failed to create a new application with the specified parameters. Please modify the parameters or switch to interactive mode."
|
|
67695
|
+
}
|
|
67696
|
+
);
|
|
67697
|
+
},
|
|
67698
|
+
CannotReleaseMinorInNoninteractive: () => {
|
|
67699
|
+
return () => /* @__PURE__ */ import_react77.default.createElement(
|
|
67700
|
+
ErrorMessage,
|
|
67701
|
+
{
|
|
67702
|
+
message: `Minor version release is not allowed.`,
|
|
67703
|
+
hint: `Please release major version.`
|
|
67704
|
+
}
|
|
67705
|
+
);
|
|
67699
67706
|
}
|
|
67700
67707
|
});
|
|
67701
67708
|
}
|
|
@@ -71189,7 +71196,7 @@ function reportCommandStartEvent({
|
|
|
71189
71196
|
var package_default = {
|
|
71190
71197
|
name: "@wix/create-app",
|
|
71191
71198
|
description: "Create Wix apps",
|
|
71192
|
-
version: "0.0.
|
|
71199
|
+
version: "0.0.105",
|
|
71193
71200
|
author: "Ihor Machuzhak",
|
|
71194
71201
|
bin: "bin/index.cjs",
|
|
71195
71202
|
devDependencies: {
|
|
@@ -71199,7 +71206,7 @@ var package_default = {
|
|
|
71199
71206
|
"@types/react": "^18.3.3",
|
|
71200
71207
|
"@types/semver": "^7.5.8",
|
|
71201
71208
|
"@types/validate-npm-package-name": "^4.0.2",
|
|
71202
|
-
"@wix/bi-logger-dev-tools-data": "^1.
|
|
71209
|
+
"@wix/bi-logger-dev-tools-data": "^1.106.0",
|
|
71203
71210
|
"@wix/cli-auth": "workspace:*",
|
|
71204
71211
|
"@wix/cli-error": "workspace:*",
|
|
71205
71212
|
"@wix/cli-error-reporting": "workspace:*",
|
|
@@ -74531,6 +74538,32 @@ function validateTemplateParams(value2) {
|
|
|
74531
74538
|
}
|
|
74532
74539
|
}
|
|
74533
74540
|
|
|
74541
|
+
// src/validations/validate-app-name.ts
|
|
74542
|
+
init_esm_shims();
|
|
74543
|
+
var import_words = __toESM(require_words(), 1);
|
|
74544
|
+
var reservedWords = /* @__PURE__ */ new Set(["wix"]);
|
|
74545
|
+
var wordList = [...reservedWords].map((_2) => `"${_2}"`).join(", ");
|
|
74546
|
+
var errorMessage = `The application name must be between 1 and 30 characters long and cannot include words like ${wordList}.`;
|
|
74547
|
+
var schema2 = z.string().min(1).max(30).refine((value2) => {
|
|
74548
|
+
return (0, import_words.default)(value2).every(
|
|
74549
|
+
(word) => !reservedWords.has(word.toLocaleLowerCase())
|
|
74550
|
+
);
|
|
74551
|
+
});
|
|
74552
|
+
function validateAppNameSafe(value2) {
|
|
74553
|
+
const result = schema2.safeParse(value2);
|
|
74554
|
+
if (result.success) {
|
|
74555
|
+
return true;
|
|
74556
|
+
}
|
|
74557
|
+
return errorMessage;
|
|
74558
|
+
}
|
|
74559
|
+
function validateAppName(value2) {
|
|
74560
|
+
const result = validateAppNameSafe(value2);
|
|
74561
|
+
if (result === true) {
|
|
74562
|
+
return value2;
|
|
74563
|
+
}
|
|
74564
|
+
throw new InvalidArgumentError(result);
|
|
74565
|
+
}
|
|
74566
|
+
|
|
74534
74567
|
// src/components/AuthProvider.tsx
|
|
74535
74568
|
init_esm_shims();
|
|
74536
74569
|
var import_react94 = __toESM(require_react(), 1);
|
|
@@ -74669,10 +74702,19 @@ var _devCenterTestingComponentData = {
|
|
|
74669
74702
|
var _displayField = { richContentOptions: "_richContentOptions" };
|
|
74670
74703
|
var _donationInput = { description: "_richContent" };
|
|
74671
74704
|
var _dropdown = { description: "_richContent" };
|
|
74672
|
-
var _editorElement = {
|
|
74705
|
+
var _editorElement = {
|
|
74706
|
+
data: "Map#_dataItem",
|
|
74707
|
+
elements: "Map#_elementItem",
|
|
74708
|
+
presets: "Map#_presetItem",
|
|
74709
|
+
elementsDefaults: "Map#_elementDefaults"
|
|
74710
|
+
};
|
|
74673
74711
|
var _editorPresence = { presetsEditorPresence: "_presetEditorPresence" };
|
|
74674
74712
|
var _editorReactComponent = { editorElement: "_editorElement" };
|
|
74713
|
+
var _elementDefaults = { elementsDefaults: "Map#_elementDefaults" };
|
|
74675
74714
|
var _elementItem = { inlineElement: "_inlineElement" };
|
|
74715
|
+
var _elementStyleDefaults = {
|
|
74716
|
+
elementsStyleDefaults: "Map#_elementStyleDefaults"
|
|
74717
|
+
};
|
|
74676
74718
|
var _expectedInputs = {
|
|
74677
74719
|
expectedStartInputs: "_predefinedExpectedInput",
|
|
74678
74720
|
expectedVerifyInputs: "_predefinedExpectedInput"
|
|
@@ -74701,7 +74743,12 @@ var _getAppResponse = {
|
|
|
74701
74743
|
};
|
|
74702
74744
|
var _image = { urlExpirationDate: "google.protobuf.Timestamp" };
|
|
74703
74745
|
var _imageData = { image: "_media" };
|
|
74704
|
-
var _inlineElement = {
|
|
74746
|
+
var _inlineElement = {
|
|
74747
|
+
data: "Map#_dataItem",
|
|
74748
|
+
elements: "Map#_elementItem",
|
|
74749
|
+
presets: "Map#_presetItem",
|
|
74750
|
+
elementsDefaults: "Map#_elementDefaults"
|
|
74751
|
+
};
|
|
74705
74752
|
var _inputField = {
|
|
74706
74753
|
stringOptions: "__String",
|
|
74707
74754
|
numberOptions: "__Number",
|
|
@@ -74781,6 +74828,7 @@ var _predefinedExpectedInputConfiguration = {
|
|
|
74781
74828
|
textInput: "_adminConfigurableTextInput"
|
|
74782
74829
|
};
|
|
74783
74830
|
var _presetEditorPresence = { wixMediaThumbnail: "_commonImage" };
|
|
74831
|
+
var _presetItem = { elementsStyleDefaults: "Map#_elementStyleDefaults" };
|
|
74784
74832
|
var _pricingModel = { plans: "_plan" };
|
|
74785
74833
|
var _productCheckboxGroup = {
|
|
74786
74834
|
description: "_richContent",
|
|
@@ -75147,7 +75195,9 @@ function getAppByVersion(payload5) {
|
|
|
75147
75195
|
_editorElement,
|
|
75148
75196
|
_editorPresence,
|
|
75149
75197
|
_editorReactComponent,
|
|
75198
|
+
_elementDefaults,
|
|
75150
75199
|
_elementItem,
|
|
75200
|
+
_elementStyleDefaults,
|
|
75151
75201
|
_expectedInputs,
|
|
75152
75202
|
_field,
|
|
75153
75203
|
_fileUpload,
|
|
@@ -75192,6 +75242,7 @@ function getAppByVersion(payload5) {
|
|
|
75192
75242
|
_predefinedExpectedInput,
|
|
75193
75243
|
_predefinedExpectedInputConfiguration,
|
|
75194
75244
|
_presetEditorPresence,
|
|
75245
|
+
_presetItem,
|
|
75195
75246
|
_pricingModel,
|
|
75196
75247
|
_productCheckboxGroup,
|
|
75197
75248
|
_productCheckboxGroupOption,
|
|
@@ -75630,76 +75681,6 @@ function queryMarketListing(payload5) {
|
|
|
75630
75681
|
return __queryMarketListing;
|
|
75631
75682
|
}
|
|
75632
75683
|
|
|
75633
|
-
// ../../node_modules/@wix/ambassador-devcenter-app-assessment-v1-validation/build/es/http.impl.js
|
|
75634
|
-
init_esm_shims();
|
|
75635
|
-
var _getAppValidationReportRequest = {};
|
|
75636
|
-
var _getAppValidationReportResponse = {};
|
|
75637
|
-
function resolveComWixDevcenterAppValidationServiceUrl(opts) {
|
|
75638
|
-
var domainToMappings = {
|
|
75639
|
-
"bo._base_domain_": [
|
|
75640
|
-
{
|
|
75641
|
-
srcPath: "/_api/app-assessment",
|
|
75642
|
-
destPath: ""
|
|
75643
|
-
}
|
|
75644
|
-
],
|
|
75645
|
-
"wixbo.ai": [
|
|
75646
|
-
{
|
|
75647
|
-
srcPath: "/_api/app-assessment",
|
|
75648
|
-
destPath: ""
|
|
75649
|
-
}
|
|
75650
|
-
],
|
|
75651
|
-
"wix-bo.com": [
|
|
75652
|
-
{
|
|
75653
|
-
srcPath: "/_api/app-assessment",
|
|
75654
|
-
destPath: ""
|
|
75655
|
-
}
|
|
75656
|
-
],
|
|
75657
|
-
_api_base_domain_: [
|
|
75658
|
-
{
|
|
75659
|
-
srcPath: "/_api/app-assessment-service",
|
|
75660
|
-
destPath: ""
|
|
75661
|
-
}
|
|
75662
|
-
],
|
|
75663
|
-
"dev._base_domain_": [
|
|
75664
|
-
{
|
|
75665
|
-
srcPath: "/_api/app-assessment",
|
|
75666
|
-
destPath: ""
|
|
75667
|
-
}
|
|
75668
|
-
],
|
|
75669
|
-
"manage._base_domain_": [
|
|
75670
|
-
{
|
|
75671
|
-
srcPath: "/_api/app-assessment",
|
|
75672
|
-
destPath: ""
|
|
75673
|
-
}
|
|
75674
|
-
]
|
|
75675
|
-
};
|
|
75676
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
75677
|
-
}
|
|
75678
|
-
function getAppValidationReport(payload5) {
|
|
75679
|
-
var _a3 = serializer(_getAppValidationReportRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
|
|
75680
|
-
var fromRes = serializer(_getAppValidationReportResponse, {}).fromJSON;
|
|
75681
|
-
function __getAppValidationReport(_a4) {
|
|
75682
|
-
var host = _a4.host;
|
|
75683
|
-
var serializedData = toReq(payload5);
|
|
75684
|
-
var metadata = {
|
|
75685
|
-
entityFqdn: "wix.devcenter.app_assessment.v1.validation",
|
|
75686
|
-
method: "GET",
|
|
75687
|
-
methodFqn: "com.wix.devcenter.AppValidationService.GetAppValidationReport",
|
|
75688
|
-
url: resolveComWixDevcenterAppValidationServiceUrl({
|
|
75689
|
-
protoPath: "/v1/get-app-validation-report/{appId}/{version}",
|
|
75690
|
-
data: serializedData,
|
|
75691
|
-
host
|
|
75692
|
-
}),
|
|
75693
|
-
params: toURLSearchParams(serializedData),
|
|
75694
|
-
transformResponse: fromRes
|
|
75695
|
-
};
|
|
75696
|
-
return metadata;
|
|
75697
|
-
}
|
|
75698
|
-
__getAppValidationReport.fromReq = fromReq;
|
|
75699
|
-
__getAppValidationReport.__isAmbassador = true;
|
|
75700
|
-
return __getAppValidationReport;
|
|
75701
|
-
}
|
|
75702
|
-
|
|
75703
75684
|
// ../../node_modules/@wix/ambassador-devcenter-apps-v1-app-template/build/es/http.impl.js
|
|
75704
75685
|
init_esm_shims();
|
|
75705
75686
|
var _app = {
|
|
@@ -75889,13 +75870,23 @@ var _devCenterTestingComponentData2 = {
|
|
|
75889
75870
|
nonTranslatableRichContent: "_richContent",
|
|
75890
75871
|
richContentMap: "Map#_richContent"
|
|
75891
75872
|
};
|
|
75873
|
+
var _discount = { saleInfo: "_saleInfo" };
|
|
75892
75874
|
var _displayField2 = { richContentOptions: "_richContentOptions" };
|
|
75893
75875
|
var _donationInput2 = { description: "_richContent" };
|
|
75894
75876
|
var _dropdown2 = { description: "_richContent" };
|
|
75895
|
-
var _editorElement2 = {
|
|
75877
|
+
var _editorElement2 = {
|
|
75878
|
+
data: "Map#_dataItem",
|
|
75879
|
+
elements: "Map#_elementItem",
|
|
75880
|
+
presets: "Map#_presetItem",
|
|
75881
|
+
elementsDefaults: "Map#_elementDefaults"
|
|
75882
|
+
};
|
|
75896
75883
|
var _editorPresence2 = { presetsEditorPresence: "_presetEditorPresence" };
|
|
75897
75884
|
var _editorReactComponent2 = { editorElement: "_editorElement" };
|
|
75885
|
+
var _elementDefaults2 = { elementsDefaults: "Map#_elementDefaults" };
|
|
75898
75886
|
var _elementItem2 = { inlineElement: "_inlineElement" };
|
|
75887
|
+
var _elementStyleDefaults2 = {
|
|
75888
|
+
elementsStyleDefaults: "Map#_elementStyleDefaults"
|
|
75889
|
+
};
|
|
75899
75890
|
var _expectedInputs2 = {
|
|
75900
75891
|
expectedStartInputs: "_predefinedExpectedInput",
|
|
75901
75892
|
expectedVerifyInputs: "_predefinedExpectedInput"
|
|
@@ -75920,7 +75911,12 @@ var _galleryData2 = { items: "_item", options: "_galleryOptions" };
|
|
|
75920
75911
|
var _galleryOptions2 = { item: "_itemStyle" };
|
|
75921
75912
|
var _image2 = { urlExpirationDate: "google.protobuf.Timestamp" };
|
|
75922
75913
|
var _imageData2 = { image: "_media" };
|
|
75923
|
-
var _inlineElement2 = {
|
|
75914
|
+
var _inlineElement2 = {
|
|
75915
|
+
data: "Map#_dataItem",
|
|
75916
|
+
elements: "Map#_elementItem",
|
|
75917
|
+
presets: "Map#_presetItem",
|
|
75918
|
+
elementsDefaults: "Map#_elementDefaults"
|
|
75919
|
+
};
|
|
75924
75920
|
var _inputField2 = {
|
|
75925
75921
|
stringOptions: "__String",
|
|
75926
75922
|
numberOptions: "__Number",
|
|
@@ -75937,7 +75933,11 @@ var _inputFieldMultilineAddress2 = {
|
|
|
75937
75933
|
var _item2 = { image: "_itemImage", video: "_video" };
|
|
75938
75934
|
var _itemImage2 = { media: "_media" };
|
|
75939
75935
|
var _itemStyle2 = { ratio: "google.protobuf.DoubleValue" };
|
|
75940
|
-
var _managedApp = {
|
|
75936
|
+
var _managedApp = {
|
|
75937
|
+
premiumInfo: "_premiumInfo",
|
|
75938
|
+
components: "_component",
|
|
75939
|
+
pricingDetails: "_pricingDetails"
|
|
75940
|
+
};
|
|
75941
75941
|
var _managedAppsRequest = {};
|
|
75942
75942
|
var _managedAppsResponse = { managedApps: "_managedApp" };
|
|
75943
75943
|
var _mapData2 = { mapSettings: "_mapSettings" };
|
|
@@ -75999,6 +75999,8 @@ var _predefinedExpectedInputConfiguration2 = {
|
|
|
75999
75999
|
};
|
|
76000
76000
|
var _premiumInfo = { freeTrialData: "_freeTrialData" };
|
|
76001
76001
|
var _presetEditorPresence2 = { wixMediaThumbnail: "_commonImage" };
|
|
76002
|
+
var _presetItem2 = { elementsStyleDefaults: "Map#_elementStyleDefaults" };
|
|
76003
|
+
var _pricingDetails = { discount: "_discount" };
|
|
76002
76004
|
var _productCheckboxGroup2 = {
|
|
76003
76005
|
description: "_richContent",
|
|
76004
76006
|
options: "_productCheckboxGroupOption"
|
|
@@ -76012,6 +76014,10 @@ var _radioGroup2 = { description: "_richContent" };
|
|
|
76012
76014
|
var _ratingInput2 = { description: "_richContent" };
|
|
76013
76015
|
var _richContent2 = { nodes: "_node", metadata: "_v1Metadata" };
|
|
76014
76016
|
var _richContentOptions2 = { richContent: "_richContent" };
|
|
76017
|
+
var _saleInfo = {
|
|
76018
|
+
startDate: "google.protobuf.Timestamp",
|
|
76019
|
+
endDate: "google.protobuf.Timestamp"
|
|
76020
|
+
};
|
|
76015
76021
|
var _schema2 = {
|
|
76016
76022
|
createdDate: "google.protobuf.Timestamp",
|
|
76017
76023
|
updatedDate: "google.protobuf.Timestamp",
|
|
@@ -76149,13 +76155,16 @@ function managedApps(payload5) {
|
|
|
76149
76155
|
_description: _description2,
|
|
76150
76156
|
_design: _design2,
|
|
76151
76157
|
_devCenterTestingComponentData: _devCenterTestingComponentData2,
|
|
76158
|
+
_discount,
|
|
76152
76159
|
_displayField: _displayField2,
|
|
76153
76160
|
_donationInput: _donationInput2,
|
|
76154
76161
|
_dropdown: _dropdown2,
|
|
76155
76162
|
_editorElement: _editorElement2,
|
|
76156
76163
|
_editorPresence: _editorPresence2,
|
|
76157
76164
|
_editorReactComponent: _editorReactComponent2,
|
|
76165
|
+
_elementDefaults: _elementDefaults2,
|
|
76158
76166
|
_elementItem: _elementItem2,
|
|
76167
|
+
_elementStyleDefaults: _elementStyleDefaults2,
|
|
76159
76168
|
_expectedInputs: _expectedInputs2,
|
|
76160
76169
|
_field: _field2,
|
|
76161
76170
|
_fileUpload: _fileUpload2,
|
|
@@ -76201,6 +76210,8 @@ function managedApps(payload5) {
|
|
|
76201
76210
|
_predefinedExpectedInputConfiguration: _predefinedExpectedInputConfiguration2,
|
|
76202
76211
|
_premiumInfo,
|
|
76203
76212
|
_presetEditorPresence: _presetEditorPresence2,
|
|
76213
|
+
_presetItem: _presetItem2,
|
|
76214
|
+
_pricingDetails,
|
|
76204
76215
|
_productCheckboxGroup: _productCheckboxGroup2,
|
|
76205
76216
|
_productCheckboxGroupOption: _productCheckboxGroupOption2,
|
|
76206
76217
|
_propertiesType: _propertiesType2,
|
|
@@ -76208,6 +76219,7 @@ function managedApps(payload5) {
|
|
|
76208
76219
|
_ratingInput: _ratingInput2,
|
|
76209
76220
|
_richContent: _richContent2,
|
|
76210
76221
|
_richContentOptions: _richContentOptions2,
|
|
76222
|
+
_saleInfo,
|
|
76211
76223
|
_schema: _schema2,
|
|
76212
76224
|
_schemaGroup: _schemaGroup2,
|
|
76213
76225
|
_shippingLabelCarrierSpiConfig: _shippingLabelCarrierSpiConfig2,
|
|
@@ -76473,6 +76485,7 @@ var ComponentType;
|
|
|
76473
76485
|
ComponentType3["LOYALTY_CUSTOM_REWARDS_V2"] = "LOYALTY_CUSTOM_REWARDS_V2";
|
|
76474
76486
|
ComponentType3["STORES_PRODUCT_RESTRICTIONS"] = "STORES_PRODUCT_RESTRICTIONS";
|
|
76475
76487
|
ComponentType3["FORM_SUBMISSION_MODERATION"] = "FORM_SUBMISSION_MODERATION";
|
|
76488
|
+
ComponentType3["EVENTS_EVENT_BADGES"] = "EVENTS_EVENT_BADGES";
|
|
76476
76489
|
})(ComponentType || (ComponentType = {}));
|
|
76477
76490
|
var WidgetVertical;
|
|
76478
76491
|
(function(WidgetVertical3) {
|
|
@@ -76770,6 +76783,7 @@ var BackOfficeHostingPlatforms;
|
|
|
76770
76783
|
BackOfficeHostingPlatforms3["AI_SCHEDULING_ASSISTANT_DASHBOARD"] = "AI_SCHEDULING_ASSISTANT_DASHBOARD";
|
|
76771
76784
|
BackOfficeHostingPlatforms3["GETTING_PAID"] = "GETTING_PAID";
|
|
76772
76785
|
BackOfficeHostingPlatforms3["DATA"] = "DATA";
|
|
76786
|
+
BackOfficeHostingPlatforms3["LITE_DASHBOARD"] = "LITE_DASHBOARD";
|
|
76773
76787
|
})(BackOfficeHostingPlatforms || (BackOfficeHostingPlatforms = {}));
|
|
76774
76788
|
var DtsDefinitionType;
|
|
76775
76789
|
(function(DtsDefinitionType3) {
|
|
@@ -76876,10 +76890,10 @@ var FilterOptionsType;
|
|
|
76876
76890
|
FilterOptionsType3["PROVIDER"] = "PROVIDER";
|
|
76877
76891
|
})(FilterOptionsType || (FilterOptionsType = {}));
|
|
76878
76892
|
var PaginationMode;
|
|
76879
|
-
(function(
|
|
76880
|
-
|
|
76881
|
-
|
|
76882
|
-
|
|
76893
|
+
(function(PaginationMode3) {
|
|
76894
|
+
PaginationMode3["UNKNOWN_PAGINATION_MODE"] = "UNKNOWN_PAGINATION_MODE";
|
|
76895
|
+
PaginationMode3["CURSOR"] = "CURSOR";
|
|
76896
|
+
PaginationMode3["OFFSET"] = "OFFSET";
|
|
76883
76897
|
})(PaginationMode || (PaginationMode = {}));
|
|
76884
76898
|
var ChannelType;
|
|
76885
76899
|
(function(ChannelType3) {
|
|
@@ -77060,6 +77074,13 @@ var Source;
|
|
|
77060
77074
|
Source3["HTML"] = "HTML";
|
|
77061
77075
|
Source3["ADSENSE"] = "ADSENSE";
|
|
77062
77076
|
})(Source || (Source = {}));
|
|
77077
|
+
var StylesPosition;
|
|
77078
|
+
(function(StylesPosition3) {
|
|
77079
|
+
StylesPosition3["START"] = "START";
|
|
77080
|
+
StylesPosition3["END"] = "END";
|
|
77081
|
+
StylesPosition3["TOP"] = "TOP";
|
|
77082
|
+
StylesPosition3["HIDDEN"] = "HIDDEN";
|
|
77083
|
+
})(StylesPosition || (StylesPosition = {}));
|
|
77063
77084
|
var MapType;
|
|
77064
77085
|
(function(MapType3) {
|
|
77065
77086
|
MapType3["ROADMAP"] = "ROADMAP";
|
|
@@ -77750,16 +77771,25 @@ var CssPropertyType;
|
|
|
77750
77771
|
CssPropertyType3["backgroundSize"] = "backgroundSize";
|
|
77751
77772
|
CssPropertyType3["backgroundColor"] = "backgroundColor";
|
|
77752
77773
|
CssPropertyType3["backgroundImage"] = "backgroundImage";
|
|
77774
|
+
CssPropertyType3["backgroundClip"] = "backgroundClip";
|
|
77775
|
+
CssPropertyType3["backgroundOrigin"] = "backgroundOrigin";
|
|
77776
|
+
CssPropertyType3["backgroundPosition"] = "backgroundPosition";
|
|
77777
|
+
CssPropertyType3["backgroundRepeat"] = "backgroundRepeat";
|
|
77778
|
+
CssPropertyType3["backgroundAttachment"] = "backgroundAttachment";
|
|
77753
77779
|
CssPropertyType3["margin"] = "margin";
|
|
77754
77780
|
CssPropertyType3["marginTop"] = "marginTop";
|
|
77755
77781
|
CssPropertyType3["marginRight"] = "marginRight";
|
|
77756
77782
|
CssPropertyType3["marginBottom"] = "marginBottom";
|
|
77757
77783
|
CssPropertyType3["marginLeft"] = "marginLeft";
|
|
77784
|
+
CssPropertyType3["marginInlineStart"] = "marginInlineStart";
|
|
77785
|
+
CssPropertyType3["marginInlineEnd"] = "marginInlineEnd";
|
|
77758
77786
|
CssPropertyType3["padding"] = "padding";
|
|
77759
77787
|
CssPropertyType3["paddingTop"] = "paddingTop";
|
|
77760
77788
|
CssPropertyType3["paddingRight"] = "paddingRight";
|
|
77761
77789
|
CssPropertyType3["paddingBottom"] = "paddingBottom";
|
|
77762
77790
|
CssPropertyType3["paddingLeft"] = "paddingLeft";
|
|
77791
|
+
CssPropertyType3["paddingInlineStart"] = "paddingInlineStart";
|
|
77792
|
+
CssPropertyType3["paddingInlineEnd"] = "paddingInlineEnd";
|
|
77763
77793
|
CssPropertyType3["border"] = "border";
|
|
77764
77794
|
CssPropertyType3["borderWidth"] = "borderWidth";
|
|
77765
77795
|
CssPropertyType3["borderStyle"] = "borderStyle";
|
|
@@ -77780,11 +77810,23 @@ var CssPropertyType;
|
|
|
77780
77810
|
CssPropertyType3["borderLeftColor"] = "borderLeftColor";
|
|
77781
77811
|
CssPropertyType3["borderLeftWidth"] = "borderLeftWidth";
|
|
77782
77812
|
CssPropertyType3["borderLeftStyle"] = "borderLeftStyle";
|
|
77813
|
+
CssPropertyType3["borderInlineStart"] = "borderInlineStart";
|
|
77814
|
+
CssPropertyType3["borderInlineStartColor"] = "borderInlineStartColor";
|
|
77815
|
+
CssPropertyType3["borderInlineStartWidth"] = "borderInlineStartWidth";
|
|
77816
|
+
CssPropertyType3["borderInlineStartStyle"] = "borderInlineStartStyle";
|
|
77817
|
+
CssPropertyType3["borderInlineEnd"] = "borderInlineEnd";
|
|
77818
|
+
CssPropertyType3["borderInlineEndColor"] = "borderInlineEndColor";
|
|
77819
|
+
CssPropertyType3["borderInlineEndWidth"] = "borderInlineEndWidth";
|
|
77820
|
+
CssPropertyType3["borderInlineEndStyle"] = "borderInlineEndStyle";
|
|
77783
77821
|
CssPropertyType3["borderRadius"] = "borderRadius";
|
|
77784
77822
|
CssPropertyType3["borderTopLeftRadius"] = "borderTopLeftRadius";
|
|
77785
77823
|
CssPropertyType3["borderTopRightRadius"] = "borderTopRightRadius";
|
|
77786
77824
|
CssPropertyType3["borderBottomRightRadius"] = "borderBottomRightRadius";
|
|
77787
77825
|
CssPropertyType3["borderBottomLeftRadius"] = "borderBottomLeftRadius";
|
|
77826
|
+
CssPropertyType3["borderStartStartRadius"] = "borderStartStartRadius";
|
|
77827
|
+
CssPropertyType3["borderStartEndRadius"] = "borderStartEndRadius";
|
|
77828
|
+
CssPropertyType3["borderEndStartRadius"] = "borderEndStartRadius";
|
|
77829
|
+
CssPropertyType3["borderEndEndRadius"] = "borderEndEndRadius";
|
|
77788
77830
|
CssPropertyType3["font"] = "font";
|
|
77789
77831
|
CssPropertyType3["fontFamily"] = "fontFamily";
|
|
77790
77832
|
CssPropertyType3["fontSize"] = "fontSize";
|
|
@@ -77822,6 +77864,7 @@ var CssDataType;
|
|
|
77822
77864
|
CssDataType3["color"] = "color";
|
|
77823
77865
|
CssDataType3["angle"] = "angle";
|
|
77824
77866
|
CssDataType3["percentage"] = "percentage";
|
|
77867
|
+
CssDataType3["lengthPercentage"] = "lengthPercentage";
|
|
77825
77868
|
CssDataType3["blendMode"] = "blendMode";
|
|
77826
77869
|
})(CssDataType || (CssDataType = {}));
|
|
77827
77870
|
var DataType;
|
|
@@ -77934,6 +77977,23 @@ var ActionName;
|
|
|
77934
77977
|
ActionName3["dashboard"] = "dashboard";
|
|
77935
77978
|
ActionName3["custom"] = "custom";
|
|
77936
77979
|
})(ActionName || (ActionName = {}));
|
|
77980
|
+
var ResizeDirection;
|
|
77981
|
+
(function(ResizeDirection3) {
|
|
77982
|
+
ResizeDirection3["UNKNOWN_ResizeDirection"] = "UNKNOWN_ResizeDirection";
|
|
77983
|
+
ResizeDirection3["horizontal"] = "horizontal";
|
|
77984
|
+
ResizeDirection3["vertical"] = "vertical";
|
|
77985
|
+
ResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
|
|
77986
|
+
ResizeDirection3["aspectRatio"] = "aspectRatio";
|
|
77987
|
+
ResizeDirection3["none"] = "none";
|
|
77988
|
+
})(ResizeDirection || (ResizeDirection = {}));
|
|
77989
|
+
var ContentResizeDirection;
|
|
77990
|
+
(function(ContentResizeDirection3) {
|
|
77991
|
+
ContentResizeDirection3["UNKNOWN_ContentResizeDirection"] = "UNKNOWN_ContentResizeDirection";
|
|
77992
|
+
ContentResizeDirection3["horizontal"] = "horizontal";
|
|
77993
|
+
ContentResizeDirection3["vertical"] = "vertical";
|
|
77994
|
+
ContentResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
|
|
77995
|
+
ContentResizeDirection3["none"] = "none";
|
|
77996
|
+
})(ContentResizeDirection || (ContentResizeDirection = {}));
|
|
77937
77997
|
var Archetype;
|
|
77938
77998
|
(function(Archetype3) {
|
|
77939
77999
|
Archetype3["UNKNOWN_Archetype"] = "UNKNOWN_Archetype";
|
|
@@ -78321,6 +78381,8 @@ var ComponentType2;
|
|
|
78321
78381
|
ComponentType3["LOYALTY_CUSTOM_REWARDS_V2"] = "LOYALTY_CUSTOM_REWARDS_V2";
|
|
78322
78382
|
ComponentType3["STORES_PRODUCT_RESTRICTIONS"] = "STORES_PRODUCT_RESTRICTIONS";
|
|
78323
78383
|
ComponentType3["FORM_SUBMISSION_MODERATION"] = "FORM_SUBMISSION_MODERATION";
|
|
78384
|
+
ComponentType3["EVENTS_EVENT_BADGES"] = "EVENTS_EVENT_BADGES";
|
|
78385
|
+
ComponentType3["BILLING_OPERATION"] = "BILLING_OPERATION";
|
|
78324
78386
|
})(ComponentType2 || (ComponentType2 = {}));
|
|
78325
78387
|
var WidgetVertical2;
|
|
78326
78388
|
(function(WidgetVertical3) {
|
|
@@ -78618,6 +78680,7 @@ var BackOfficeHostingPlatforms2;
|
|
|
78618
78680
|
BackOfficeHostingPlatforms3["AI_SCHEDULING_ASSISTANT_DASHBOARD"] = "AI_SCHEDULING_ASSISTANT_DASHBOARD";
|
|
78619
78681
|
BackOfficeHostingPlatforms3["GETTING_PAID"] = "GETTING_PAID";
|
|
78620
78682
|
BackOfficeHostingPlatforms3["DATA"] = "DATA";
|
|
78683
|
+
BackOfficeHostingPlatforms3["LITE_DASHBOARD"] = "LITE_DASHBOARD";
|
|
78621
78684
|
})(BackOfficeHostingPlatforms2 || (BackOfficeHostingPlatforms2 = {}));
|
|
78622
78685
|
var DtsDefinitionType2;
|
|
78623
78686
|
(function(DtsDefinitionType3) {
|
|
@@ -78723,6 +78786,12 @@ var FilterOptionsType2;
|
|
|
78723
78786
|
FilterOptionsType3["STATIC"] = "STATIC";
|
|
78724
78787
|
FilterOptionsType3["PROVIDER"] = "PROVIDER";
|
|
78725
78788
|
})(FilterOptionsType2 || (FilterOptionsType2 = {}));
|
|
78789
|
+
var PaginationMode2;
|
|
78790
|
+
(function(PaginationMode3) {
|
|
78791
|
+
PaginationMode3["UNKNOWN_PAGINATION_MODE"] = "UNKNOWN_PAGINATION_MODE";
|
|
78792
|
+
PaginationMode3["CURSOR"] = "CURSOR";
|
|
78793
|
+
PaginationMode3["OFFSET"] = "OFFSET";
|
|
78794
|
+
})(PaginationMode2 || (PaginationMode2 = {}));
|
|
78726
78795
|
var ChannelType2;
|
|
78727
78796
|
(function(ChannelType3) {
|
|
78728
78797
|
ChannelType3["UNKNOWN_CHANNEL_TYPE"] = "UNKNOWN_CHANNEL_TYPE";
|
|
@@ -78902,6 +78971,13 @@ var Source2;
|
|
|
78902
78971
|
Source3["HTML"] = "HTML";
|
|
78903
78972
|
Source3["ADSENSE"] = "ADSENSE";
|
|
78904
78973
|
})(Source2 || (Source2 = {}));
|
|
78974
|
+
var StylesPosition2;
|
|
78975
|
+
(function(StylesPosition3) {
|
|
78976
|
+
StylesPosition3["START"] = "START";
|
|
78977
|
+
StylesPosition3["END"] = "END";
|
|
78978
|
+
StylesPosition3["TOP"] = "TOP";
|
|
78979
|
+
StylesPosition3["HIDDEN"] = "HIDDEN";
|
|
78980
|
+
})(StylesPosition2 || (StylesPosition2 = {}));
|
|
78905
78981
|
var MapType2;
|
|
78906
78982
|
(function(MapType3) {
|
|
78907
78983
|
MapType3["ROADMAP"] = "ROADMAP";
|
|
@@ -79592,16 +79668,25 @@ var CssPropertyType2;
|
|
|
79592
79668
|
CssPropertyType3["backgroundSize"] = "backgroundSize";
|
|
79593
79669
|
CssPropertyType3["backgroundColor"] = "backgroundColor";
|
|
79594
79670
|
CssPropertyType3["backgroundImage"] = "backgroundImage";
|
|
79671
|
+
CssPropertyType3["backgroundClip"] = "backgroundClip";
|
|
79672
|
+
CssPropertyType3["backgroundOrigin"] = "backgroundOrigin";
|
|
79673
|
+
CssPropertyType3["backgroundPosition"] = "backgroundPosition";
|
|
79674
|
+
CssPropertyType3["backgroundRepeat"] = "backgroundRepeat";
|
|
79675
|
+
CssPropertyType3["backgroundAttachment"] = "backgroundAttachment";
|
|
79595
79676
|
CssPropertyType3["margin"] = "margin";
|
|
79596
79677
|
CssPropertyType3["marginTop"] = "marginTop";
|
|
79597
79678
|
CssPropertyType3["marginRight"] = "marginRight";
|
|
79598
79679
|
CssPropertyType3["marginBottom"] = "marginBottom";
|
|
79599
79680
|
CssPropertyType3["marginLeft"] = "marginLeft";
|
|
79681
|
+
CssPropertyType3["marginInlineStart"] = "marginInlineStart";
|
|
79682
|
+
CssPropertyType3["marginInlineEnd"] = "marginInlineEnd";
|
|
79600
79683
|
CssPropertyType3["padding"] = "padding";
|
|
79601
79684
|
CssPropertyType3["paddingTop"] = "paddingTop";
|
|
79602
79685
|
CssPropertyType3["paddingRight"] = "paddingRight";
|
|
79603
79686
|
CssPropertyType3["paddingBottom"] = "paddingBottom";
|
|
79604
79687
|
CssPropertyType3["paddingLeft"] = "paddingLeft";
|
|
79688
|
+
CssPropertyType3["paddingInlineStart"] = "paddingInlineStart";
|
|
79689
|
+
CssPropertyType3["paddingInlineEnd"] = "paddingInlineEnd";
|
|
79605
79690
|
CssPropertyType3["border"] = "border";
|
|
79606
79691
|
CssPropertyType3["borderWidth"] = "borderWidth";
|
|
79607
79692
|
CssPropertyType3["borderStyle"] = "borderStyle";
|
|
@@ -79622,11 +79707,23 @@ var CssPropertyType2;
|
|
|
79622
79707
|
CssPropertyType3["borderLeftColor"] = "borderLeftColor";
|
|
79623
79708
|
CssPropertyType3["borderLeftWidth"] = "borderLeftWidth";
|
|
79624
79709
|
CssPropertyType3["borderLeftStyle"] = "borderLeftStyle";
|
|
79710
|
+
CssPropertyType3["borderInlineStart"] = "borderInlineStart";
|
|
79711
|
+
CssPropertyType3["borderInlineStartColor"] = "borderInlineStartColor";
|
|
79712
|
+
CssPropertyType3["borderInlineStartWidth"] = "borderInlineStartWidth";
|
|
79713
|
+
CssPropertyType3["borderInlineStartStyle"] = "borderInlineStartStyle";
|
|
79714
|
+
CssPropertyType3["borderInlineEnd"] = "borderInlineEnd";
|
|
79715
|
+
CssPropertyType3["borderInlineEndColor"] = "borderInlineEndColor";
|
|
79716
|
+
CssPropertyType3["borderInlineEndWidth"] = "borderInlineEndWidth";
|
|
79717
|
+
CssPropertyType3["borderInlineEndStyle"] = "borderInlineEndStyle";
|
|
79625
79718
|
CssPropertyType3["borderRadius"] = "borderRadius";
|
|
79626
79719
|
CssPropertyType3["borderTopLeftRadius"] = "borderTopLeftRadius";
|
|
79627
79720
|
CssPropertyType3["borderTopRightRadius"] = "borderTopRightRadius";
|
|
79628
79721
|
CssPropertyType3["borderBottomRightRadius"] = "borderBottomRightRadius";
|
|
79629
79722
|
CssPropertyType3["borderBottomLeftRadius"] = "borderBottomLeftRadius";
|
|
79723
|
+
CssPropertyType3["borderStartStartRadius"] = "borderStartStartRadius";
|
|
79724
|
+
CssPropertyType3["borderStartEndRadius"] = "borderStartEndRadius";
|
|
79725
|
+
CssPropertyType3["borderEndStartRadius"] = "borderEndStartRadius";
|
|
79726
|
+
CssPropertyType3["borderEndEndRadius"] = "borderEndEndRadius";
|
|
79630
79727
|
CssPropertyType3["font"] = "font";
|
|
79631
79728
|
CssPropertyType3["fontFamily"] = "fontFamily";
|
|
79632
79729
|
CssPropertyType3["fontSize"] = "fontSize";
|
|
@@ -79664,6 +79761,7 @@ var CssDataType2;
|
|
|
79664
79761
|
CssDataType3["color"] = "color";
|
|
79665
79762
|
CssDataType3["angle"] = "angle";
|
|
79666
79763
|
CssDataType3["percentage"] = "percentage";
|
|
79764
|
+
CssDataType3["lengthPercentage"] = "lengthPercentage";
|
|
79667
79765
|
CssDataType3["blendMode"] = "blendMode";
|
|
79668
79766
|
})(CssDataType2 || (CssDataType2 = {}));
|
|
79669
79767
|
var DataType2;
|
|
@@ -79776,6 +79874,23 @@ var ActionName2;
|
|
|
79776
79874
|
ActionName3["dashboard"] = "dashboard";
|
|
79777
79875
|
ActionName3["custom"] = "custom";
|
|
79778
79876
|
})(ActionName2 || (ActionName2 = {}));
|
|
79877
|
+
var ResizeDirection2;
|
|
79878
|
+
(function(ResizeDirection3) {
|
|
79879
|
+
ResizeDirection3["UNKNOWN_ResizeDirection"] = "UNKNOWN_ResizeDirection";
|
|
79880
|
+
ResizeDirection3["horizontal"] = "horizontal";
|
|
79881
|
+
ResizeDirection3["vertical"] = "vertical";
|
|
79882
|
+
ResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
|
|
79883
|
+
ResizeDirection3["aspectRatio"] = "aspectRatio";
|
|
79884
|
+
ResizeDirection3["none"] = "none";
|
|
79885
|
+
})(ResizeDirection2 || (ResizeDirection2 = {}));
|
|
79886
|
+
var ContentResizeDirection2;
|
|
79887
|
+
(function(ContentResizeDirection3) {
|
|
79888
|
+
ContentResizeDirection3["UNKNOWN_ContentResizeDirection"] = "UNKNOWN_ContentResizeDirection";
|
|
79889
|
+
ContentResizeDirection3["horizontal"] = "horizontal";
|
|
79890
|
+
ContentResizeDirection3["vertical"] = "vertical";
|
|
79891
|
+
ContentResizeDirection3["horizontalAndVertical"] = "horizontalAndVertical";
|
|
79892
|
+
ContentResizeDirection3["none"] = "none";
|
|
79893
|
+
})(ContentResizeDirection2 || (ContentResizeDirection2 = {}));
|
|
79779
79894
|
var Archetype2;
|
|
79780
79895
|
(function(Archetype3) {
|
|
79781
79896
|
Archetype3["UNKNOWN_Archetype"] = "UNKNOWN_Archetype";
|
|
@@ -80021,13 +80136,6 @@ var developerAppSchema = z.object({
|
|
|
80021
80136
|
var getDeveloperAppsSchema = z.object({
|
|
80022
80137
|
myApps: z.array(developerAppSchema)
|
|
80023
80138
|
});
|
|
80024
|
-
var getAppPropertiesValiditySchema = z.object({
|
|
80025
|
-
appPropertiesValidity: z.array(
|
|
80026
|
-
z.object({
|
|
80027
|
-
failures: z.array(z.string())
|
|
80028
|
-
})
|
|
80029
|
-
)
|
|
80030
|
-
});
|
|
80031
80139
|
var requiredApp = z.object({ id: z.string(), name: z.string() });
|
|
80032
80140
|
var queryAppSchema = z.object({
|
|
80033
80141
|
apps: z.array(requiredApp)
|
|
@@ -80355,23 +80463,6 @@ var DevCenterClient = class {
|
|
|
80355
80463
|
});
|
|
80356
80464
|
}
|
|
80357
80465
|
};
|
|
80358
|
-
getAppValidationFailuresCount = async (appId, version) => {
|
|
80359
|
-
try {
|
|
80360
|
-
const { data } = await this.httpClient.request(
|
|
80361
|
-
getAppValidationReport({ appId, version })
|
|
80362
|
-
);
|
|
80363
|
-
const result = getAppPropertiesValiditySchema.parse(data);
|
|
80364
|
-
const numOfFailingProperties = result.appPropertiesValidity.filter(
|
|
80365
|
-
(appProperty) => appProperty.failures.length > 0
|
|
80366
|
-
).length;
|
|
80367
|
-
return numOfFailingProperties;
|
|
80368
|
-
} catch (e2) {
|
|
80369
|
-
throw new CliError({
|
|
80370
|
-
code: CliErrorCode.FailedToGetAppValidity(),
|
|
80371
|
-
cause: e2
|
|
80372
|
-
});
|
|
80373
|
-
}
|
|
80374
|
-
};
|
|
80375
80466
|
queryCliAppTemplates = async () => {
|
|
80376
80467
|
try {
|
|
80377
80468
|
const { data } = await pRetry(
|
|
@@ -80468,7 +80559,8 @@ function useDevCenterClient() {
|
|
|
80468
80559
|
// src/parse-command-options.ts
|
|
80469
80560
|
init_esm_shims();
|
|
80470
80561
|
var import_variant30 = __toESM(require_lib(), 1);
|
|
80471
|
-
|
|
80562
|
+
var import_kebabCase = __toESM(require_kebabCase(), 1);
|
|
80563
|
+
import { join as join10, resolve as resolve3 } from "node:path";
|
|
80472
80564
|
var TemplateSource = (0, import_variant30.variant)({
|
|
80473
80565
|
App: (0, import_variant30.payload)(),
|
|
80474
80566
|
GitRepo: (0, import_variant30.fields)(),
|
|
@@ -80506,10 +80598,47 @@ async function parseTemplateOptions(options, { devCenterClient }) {
|
|
|
80506
80598
|
return TemplateSource.Local({ path: options.templatePath });
|
|
80507
80599
|
}
|
|
80508
80600
|
}
|
|
80509
|
-
|
|
80510
|
-
|
|
80511
|
-
|
|
80512
|
-
|
|
80601
|
+
var AppNameOptions = (0, import_variant30.variant)({
|
|
80602
|
+
Provided: (0, import_variant30.fields)(),
|
|
80603
|
+
Missing: {}
|
|
80604
|
+
});
|
|
80605
|
+
async function parseAppNameOptions(targetParentFolder2, options) {
|
|
80606
|
+
const appName = options.appName;
|
|
80607
|
+
if (appName) {
|
|
80608
|
+
const packageName = (0, import_kebabCase.default)(appName);
|
|
80609
|
+
if (!await validateDirectory(join10(targetParentFolder2, packageName))) {
|
|
80610
|
+
throw new CliError({
|
|
80611
|
+
code: CliErrorCode.AppNameArgumentIsInvalid({
|
|
80612
|
+
errorMessage: `"${packageName}" directory is not empty`
|
|
80613
|
+
}),
|
|
80614
|
+
cause: void 0
|
|
80615
|
+
});
|
|
80616
|
+
}
|
|
80617
|
+
const npmValidationErrors = await validatePackageName(packageName);
|
|
80618
|
+
if ((0, import_variant30.isType)(npmValidationErrors, "Error")) {
|
|
80619
|
+
throw new CliError({
|
|
80620
|
+
code: CliErrorCode.AppNameArgumentIsInvalid({
|
|
80621
|
+
errorMessage: `Invalid package name "${packageName}". Please fix the following issues: ${npmValidationErrors.payload.join(", ")}`
|
|
80622
|
+
}),
|
|
80623
|
+
cause: void 0
|
|
80624
|
+
});
|
|
80625
|
+
}
|
|
80626
|
+
return AppNameOptions.Provided({ appName, packageName });
|
|
80627
|
+
}
|
|
80628
|
+
return AppNameOptions.Missing();
|
|
80629
|
+
}
|
|
80630
|
+
async function parseCommandOptions(targetParentFolder2, options, clients) {
|
|
80631
|
+
const template = await parseTemplateOptions(options, clients);
|
|
80632
|
+
const appNameOptions = await parseAppNameOptions(targetParentFolder2, options);
|
|
80633
|
+
if ((0, import_variant30.isType)(appNameOptions, "Provided") && !template) {
|
|
80634
|
+
throw new CliError({
|
|
80635
|
+
code: CliErrorCode.AppNameArgumentIsInvalid({
|
|
80636
|
+
errorMessage: "An application name was provided, but no template was specified. Please specify a template when defining the application name."
|
|
80637
|
+
}),
|
|
80638
|
+
cause: void 0
|
|
80639
|
+
});
|
|
80640
|
+
}
|
|
80641
|
+
return { template, appName: appNameOptions };
|
|
80513
80642
|
}
|
|
80514
80643
|
|
|
80515
80644
|
// src/types.ts
|
|
@@ -80587,6 +80716,7 @@ var ChooseAppName = ({ onSubmit }) => {
|
|
|
80587
80716
|
{
|
|
80588
80717
|
label: t3("create_app.create_new.name_of_app.label"),
|
|
80589
80718
|
placeholder: t3("create_app.create_new.name_of_app.placeholder"),
|
|
80719
|
+
validate: validateAppNameSafe,
|
|
80590
80720
|
onSubmit: (appName) => {
|
|
80591
80721
|
cliFlowStepAnswered({
|
|
80592
80722
|
question: t3("create_app.create_new.name_of_app.label"),
|
|
@@ -80604,8 +80734,8 @@ var ChooseAppName = ({ onSubmit }) => {
|
|
|
80604
80734
|
init_esm_shims();
|
|
80605
80735
|
var import_react100 = __toESM(require_react(), 1);
|
|
80606
80736
|
var import_variant33 = __toESM(require_lib(), 1);
|
|
80607
|
-
import { join as
|
|
80608
|
-
var
|
|
80737
|
+
import { join as join11, relative as relative3 } from "node:path";
|
|
80738
|
+
var import_kebabCase2 = __toESM(require_kebabCase(), 1);
|
|
80609
80739
|
|
|
80610
80740
|
// src/components/ConfirmPackagePath.tsx
|
|
80611
80741
|
init_esm_shims();
|
|
@@ -80650,11 +80780,11 @@ var ChoosePackageName = ({
|
|
|
80650
80780
|
const { cliFlowStepAnswered } = useCreateAppBi();
|
|
80651
80781
|
const [packageName, setPackageName] = (0, import_react100.useState)();
|
|
80652
80782
|
const defaultPackageName = (0, import_react100.useMemo)(() => {
|
|
80653
|
-
return (0,
|
|
80783
|
+
return (0, import_kebabCase2.default)(appName);
|
|
80654
80784
|
}, [appName]);
|
|
80655
80785
|
const isMonorepo = (0, import_variant33.isType)(repoType, RepoType.Monorepo);
|
|
80656
80786
|
async function validate3(packageName2) {
|
|
80657
|
-
if (!await validateDirectory(
|
|
80787
|
+
if (!await validateDirectory(join11(targetParentFolder2, packageName2))) {
|
|
80658
80788
|
return t3("validation_errors.invalid_directory");
|
|
80659
80789
|
}
|
|
80660
80790
|
const npmValidationErrors = await validatePackageName(packageName2);
|
|
@@ -80702,7 +80832,7 @@ var ChoosePackageName = ({
|
|
|
80702
80832
|
{
|
|
80703
80833
|
path: relative3(
|
|
80704
80834
|
repoType.rootDir,
|
|
80705
|
-
|
|
80835
|
+
join11(targetParentFolder2, packageName)
|
|
80706
80836
|
),
|
|
80707
80837
|
onSubmit: (confirmed) => handlePackagePathConfirm(packageName, confirmed)
|
|
80708
80838
|
}
|
|
@@ -80857,6 +80987,7 @@ var AppRegistered = ({ appName }) => {
|
|
|
80857
80987
|
var NewAppFlow = ({
|
|
80858
80988
|
onSubmit,
|
|
80859
80989
|
template: templateFromOptions,
|
|
80990
|
+
appName: appNameFromOptions,
|
|
80860
80991
|
targetParentFolder: targetParentFolder2,
|
|
80861
80992
|
repoType
|
|
80862
80993
|
}) => {
|
|
@@ -80895,7 +81026,17 @@ var NewAppFlow = ({
|
|
|
80895
81026
|
};
|
|
80896
81027
|
}
|
|
80897
81028
|
);
|
|
80898
|
-
|
|
81029
|
+
const autoCreateApp = (0, import_variant35.isType)(appNameFromOptions, "Provided") && !!templateFromOptions;
|
|
81030
|
+
useAsync2(async () => {
|
|
81031
|
+
if (autoCreateApp) {
|
|
81032
|
+
return createAppCallback.execute({
|
|
81033
|
+
appName: appNameFromOptions.appName,
|
|
81034
|
+
packageName: appNameFromOptions.packageName,
|
|
81035
|
+
template: templateFromOptions
|
|
81036
|
+
});
|
|
81037
|
+
}
|
|
81038
|
+
}, []);
|
|
81039
|
+
return /* @__PURE__ */ import_react106.default.createElement(import_react106.default.Fragment, null, !templateFromOptions && /* @__PURE__ */ import_react106.default.createElement(ChooseTemplateFlow, { onTemplateChoose: setTemplateData }), templateData && !autoCreateApp && /* @__PURE__ */ import_react106.default.createElement(ChooseAppName, { onSubmit: setAppName }), appName && templateData && !autoCreateApp && /* @__PURE__ */ import_react106.default.createElement(
|
|
80899
81040
|
ChoosePackageName,
|
|
80900
81041
|
{
|
|
80901
81042
|
appName,
|
|
@@ -81050,12 +81191,17 @@ var Questions = ({
|
|
|
81050
81191
|
const { getDeveloperApps } = useDevCenterClient();
|
|
81051
81192
|
const [appCreationFlow, setAppCreationFlow] = (0, import_react110.useState)();
|
|
81052
81193
|
const { status } = useAsync2(async () => {
|
|
81053
|
-
const { template } = await parseCommandOptions(
|
|
81054
|
-
|
|
81055
|
-
|
|
81194
|
+
const { template, appName } = await parseCommandOptions(
|
|
81195
|
+
targetParentFolder2,
|
|
81196
|
+
commandOptions,
|
|
81197
|
+
{
|
|
81198
|
+
devCenterClient
|
|
81199
|
+
}
|
|
81200
|
+
);
|
|
81056
81201
|
if (template) {
|
|
81057
81202
|
return {
|
|
81058
|
-
template
|
|
81203
|
+
template,
|
|
81204
|
+
appName
|
|
81059
81205
|
};
|
|
81060
81206
|
}
|
|
81061
81207
|
try {
|
|
@@ -81077,13 +81223,16 @@ var Questions = ({
|
|
|
81077
81223
|
return (0, import_variant37.match)(status, {
|
|
81078
81224
|
Error: () => null,
|
|
81079
81225
|
Loading: () => /* @__PURE__ */ import_react110.default.createElement(Spinner2, { text: t3("general.loading") }),
|
|
81080
|
-
Success: ({
|
|
81226
|
+
Success: ({
|
|
81227
|
+
result: { template, appName, developerApps, developerAppsStatus }
|
|
81228
|
+
}) => {
|
|
81081
81229
|
if (template) {
|
|
81082
81230
|
return /* @__PURE__ */ import_react110.default.createElement(import_react110.default.Fragment, null, /* @__PURE__ */ import_react110.default.createElement(StartFromTemplateMessage, { template }), /* @__PURE__ */ import_react110.default.createElement(
|
|
81083
81231
|
NewAppFlow,
|
|
81084
81232
|
{
|
|
81085
81233
|
onSubmit,
|
|
81086
81234
|
template,
|
|
81235
|
+
appName,
|
|
81087
81236
|
targetParentFolder: targetParentFolder2,
|
|
81088
81237
|
repoType
|
|
81089
81238
|
}
|
|
@@ -81129,7 +81278,7 @@ var Questions = ({
|
|
|
81129
81278
|
init_esm_shims();
|
|
81130
81279
|
var import_variant39 = __toESM(require_lib(), 1);
|
|
81131
81280
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
81132
|
-
import { join as
|
|
81281
|
+
import { join as join13 } from "node:path";
|
|
81133
81282
|
|
|
81134
81283
|
// src/services/generator/index.ts
|
|
81135
81284
|
init_esm_shims();
|
|
@@ -81208,7 +81357,7 @@ init_esm_shims();
|
|
|
81208
81357
|
|
|
81209
81358
|
// src/services/generator/template-fetcher.ts
|
|
81210
81359
|
init_esm_shims();
|
|
81211
|
-
import { join as
|
|
81360
|
+
import { join as join12 } from "node:path";
|
|
81212
81361
|
import { rm as rm2 } from "node:fs/promises";
|
|
81213
81362
|
|
|
81214
81363
|
// ../../node_modules/tempy/index.js
|
|
@@ -81364,7 +81513,7 @@ async function downloadAndExtractRepo(url2) {
|
|
|
81364
81513
|
const repoDir = temporaryDirectory2({ prefix: "wix-create-app" });
|
|
81365
81514
|
try {
|
|
81366
81515
|
await gitClone(url2, repoDir);
|
|
81367
|
-
await rm2(
|
|
81516
|
+
await rm2(join12(repoDir, ".git"), { recursive: true, force: true });
|
|
81368
81517
|
return repoDir;
|
|
81369
81518
|
} catch (e2) {
|
|
81370
81519
|
throw new CliError({
|
|
@@ -81382,7 +81531,7 @@ async function fetchTemplate(url2, path8 = ".") {
|
|
|
81382
81531
|
});
|
|
81383
81532
|
}
|
|
81384
81533
|
const repoDir = await downloadAndExtractRepo(url2);
|
|
81385
|
-
const templateDirInRepo =
|
|
81534
|
+
const templateDirInRepo = join12(repoDir, path8);
|
|
81386
81535
|
if (!await pathExists(templateDirInRepo)) {
|
|
81387
81536
|
throw new CliError({
|
|
81388
81537
|
code: CliErrorCode.TemplatePathNotFound({ templatePath: path8 }),
|
|
@@ -81442,9 +81591,10 @@ function getTasks({
|
|
|
81442
81591
|
template,
|
|
81443
81592
|
templateParams,
|
|
81444
81593
|
targetParentFolder: targetParentFolder2,
|
|
81445
|
-
skipInstall
|
|
81594
|
+
skipInstall,
|
|
81595
|
+
skipGit
|
|
81446
81596
|
}, t3) {
|
|
81447
|
-
const packageFolder =
|
|
81597
|
+
const packageFolder = join13(targetParentFolder2, packageName);
|
|
81448
81598
|
const generateProject = async () => {
|
|
81449
81599
|
try {
|
|
81450
81600
|
await mkdir2(packageFolder, { recursive: true });
|
|
@@ -81524,9 +81674,9 @@ function getTasks({
|
|
|
81524
81674
|
return (0, import_variant39.match)(repoType, {
|
|
81525
81675
|
None: () => [
|
|
81526
81676
|
generateProjectTask,
|
|
81527
|
-
initializeGitTask,
|
|
81677
|
+
...skipGit ? [] : [initializeGitTask],
|
|
81528
81678
|
...optionalInstallTask,
|
|
81529
|
-
commitToGitTask
|
|
81679
|
+
...skipGit ? [] : [commitToGitTask]
|
|
81530
81680
|
],
|
|
81531
81681
|
Polyrepo: () => [generateProjectTask, ...optionalInstallTask],
|
|
81532
81682
|
Monorepo: () => [generateProjectTask, ...optionalInstallTask]
|
|
@@ -81709,6 +81859,7 @@ var CreateAppCommand = ({ userInfo: userInfo2, targetParentFolder: targetParentF
|
|
|
81709
81859
|
packageManager,
|
|
81710
81860
|
targetParentFolder: targetParentFolder2,
|
|
81711
81861
|
skipInstall: commandOptions.skipInstall,
|
|
81862
|
+
skipGit: commandOptions.skipGit,
|
|
81712
81863
|
templateParams: commandOptions.templateParams
|
|
81713
81864
|
})
|
|
81714
81865
|
}
|
|
@@ -81756,7 +81907,7 @@ var messages_default3 = {
|
|
|
81756
81907
|
"create_app.choose_template.title": "Choose the template you want to start with",
|
|
81757
81908
|
"create_app.choose_template.see_templates": "\u{1F4A1} To see how the templates look, and for more information, check out the <0>CLI app templates</0>",
|
|
81758
81909
|
"create_app.create_new.name_of_app.label": "Enter a name for your app",
|
|
81759
|
-
"create_app.create_new.name_of_app.placeholder": "My
|
|
81910
|
+
"create_app.create_new.name_of_app.placeholder": "My Custom App",
|
|
81760
81911
|
"create_app.create_new.registering_your_app": "Registering your new application in Wix App Dashboard...",
|
|
81761
81912
|
"create_app.create_new.app_registered_successfully": "<0>{appName}</0> has been registered successfully.",
|
|
81762
81913
|
"create_app.create_new.app_on_dev_center": "View your App in the <0>App Dashboard</0>",
|
|
@@ -81820,11 +81971,21 @@ var program2 = new Command().name(package_default.name).description("Create Wix
|
|
|
81820
81971
|
"-x, --template-path <template-path>",
|
|
81821
81972
|
"Local path to the template folder"
|
|
81822
81973
|
).hideHelp()
|
|
81974
|
+
).addOption(
|
|
81975
|
+
new Option(
|
|
81976
|
+
"--app-name <app-name>",
|
|
81977
|
+
"The name for your new application"
|
|
81978
|
+
).argParser(validateAppName)
|
|
81823
81979
|
).addOption(
|
|
81824
81980
|
new Option(
|
|
81825
81981
|
"--skip-install",
|
|
81826
81982
|
"Skip automatic dependency installation"
|
|
81827
81983
|
).hideHelp()
|
|
81984
|
+
).addOption(
|
|
81985
|
+
new Option(
|
|
81986
|
+
"--skip-git",
|
|
81987
|
+
"Prevent the application from automatically initializing a Git repository during setup"
|
|
81988
|
+
).hideHelp()
|
|
81828
81989
|
).addOption(
|
|
81829
81990
|
new Option(
|
|
81830
81991
|
"--template-params <template-params>",
|
|
@@ -81842,7 +82003,8 @@ var program2 = new Command().name(package_default.name).description("Create Wix
|
|
|
81842
82003
|
const commandStatus = reportCommandStartEvent2(command);
|
|
81843
82004
|
const commandOptions = {
|
|
81844
82005
|
...options,
|
|
81845
|
-
skipInstall: options.skipInstall ?? false
|
|
82006
|
+
skipInstall: options.skipInstall ?? false,
|
|
82007
|
+
skipGit: options.skipGit ?? false
|
|
81846
82008
|
};
|
|
81847
82009
|
try {
|
|
81848
82010
|
await render2(
|