@wix/create-app 0.0.104 → 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 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 isType14(instanceOrType, type) {
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) => isType14(o, typeStr);
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: isType14 };
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: isType14 } = (0, isType_1.isTypeImpl)(key);
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]: isType14(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: isType14 } = (0, isType_1.isTypeImpl)(key);
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: isType14,
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), isType14 = !isArr && !isArg && !isBuff && isTypedArray(value2), skipIndexes = isArr || isArg || isBuff || isType14, result = skipIndexes ? baseTimes(value2.length, String) : [], length = result.length;
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
- isType14 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
8133
+ isType16 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
8134
8134
  isIndex(key, length)))) {
8135
8135
  result.push(key);
8136
8136
  }
@@ -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, schema2, allowUnknown) {
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 = schema2[opt];
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(schema2, documentAST, rules, options, typeInfo) {
24614
- return instrumentation._validate(this, original, schema2, documentAST, rules, typeInfo, options);
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, schema2, documentAST, rules, typeInfo, options) {
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, schema2, documentAST, rules, options, typeInfo);
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(schema2, document2, rootValue, contextValue, variableValues, operationName, fieldResolver, typeResolver, defaultFieldResolved) {
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: schema2,
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 (schema2) {
24706
- (0, utils_1.wrapFields)(schema2.getQueryType(), this.tracer, this._getConfig.bind(this));
24707
- (0, utils_1.wrapFields)(schema2.getMutationType(), this.tracer, this._getConfig.bind(this));
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: schema2,
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 join13 = __require("path").join;
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
- join13(etc, name, "config"),
40325
- join13(etc, name + "rc")
40324
+ join14(etc, name, "config"),
40325
+ join14(etc, name + "rc")
40326
40326
  ].forEach(addConfigFile);
40327
40327
  if (home)
40328
40328
  [
40329
- join13(home, ".config", name, "config"),
40330
- join13(home, ".config", name),
40331
- join13(home, "." + name, "config"),
40332
- join13(home, "." + name + "rc")
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 words = require_words();
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(words(deburr(string).replace(reApos, "")), callback, "");
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 kebabCase2 = createCompounder(function(result, word, index) {
42896
+ var kebabCase3 = createCompounder(function(result, word, index) {
42897
42897
  return result + (index ? "-" : "") + word.toLowerCase();
42898
42898
  });
42899
- module2.exports = kebabCase2;
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(schema2, name, result) {
43837
+ function compileList(schema3, name, result) {
43838
43838
  var exclude = [];
43839
- schema2.include.forEach(function(includedSchema) {
43839
+ schema3.include.forEach(function(includedSchema) {
43840
43840
  result = compileList(includedSchema, name, result);
43841
43841
  });
43842
- schema2[name].forEach(function(currentType) {
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(schema2) {
43900
- return schema2 instanceof Schema;
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(schema2, map) {
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 = schema2.compiledTypeMap["fallback"][tag];
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 words = string.split(" ");
48125
- let last = words.length;
48124
+ const words2 = string.split(" ");
48125
+ let last = words2.length;
48126
48126
  while (last > 0) {
48127
- if (stringWidth2(words[last - 1]) > 0) {
48127
+ if (stringWidth2(words2[last - 1]) > 0) {
48128
48128
  break;
48129
48129
  }
48130
48130
  last--;
48131
48131
  }
48132
- if (last === words.length) {
48132
+ if (last === words2.length) {
48133
48133
  return string;
48134
48134
  }
48135
- return words.slice(0, last).join(" ") + words.slice(last).join("");
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() === "") {
@@ -53311,15 +53311,15 @@ var makeIssue = (params) => {
53311
53311
  message: issueData.message
53312
53312
  };
53313
53313
  }
53314
- let errorMessage = "";
53314
+ let errorMessage2 = "";
53315
53315
  const maps = errorMaps.filter((m) => !!m).slice().reverse();
53316
53316
  for (const map of maps) {
53317
- errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
53317
+ errorMessage2 = map(fullIssue, { data, defaultError: errorMessage2 }).message;
53318
53318
  }
53319
53319
  return {
53320
53320
  ...issueData,
53321
53321
  path: fullPath,
53322
- message: errorMessage
53322
+ message: errorMessage2
53323
53323
  };
53324
53324
  };
53325
53325
  var EMPTY_PATH = [];
@@ -55161,9 +55161,9 @@ var ZodArray = class _ZodArray extends ZodType {
55161
55161
  return this.min(1, message);
55162
55162
  }
55163
55163
  };
55164
- ZodArray.create = (schema2, params) => {
55164
+ ZodArray.create = (schema3, params) => {
55165
55165
  return new ZodArray({
55166
- type: schema2,
55166
+ type: schema3,
55167
55167
  minLength: null,
55168
55168
  maxLength: null,
55169
55169
  exactLength: null,
@@ -55171,30 +55171,30 @@ ZodArray.create = (schema2, params) => {
55171
55171
  ...processCreateParams(params)
55172
55172
  });
55173
55173
  };
55174
- function deepPartialify(schema2) {
55175
- if (schema2 instanceof ZodObject) {
55174
+ function deepPartialify(schema3) {
55175
+ if (schema3 instanceof ZodObject) {
55176
55176
  const newShape = {};
55177
- for (const key in schema2.shape) {
55178
- const fieldSchema = schema2.shape[key];
55177
+ for (const key in schema3.shape) {
55178
+ const fieldSchema = schema3.shape[key];
55179
55179
  newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));
55180
55180
  }
55181
55181
  return new ZodObject({
55182
- ...schema2._def,
55182
+ ...schema3._def,
55183
55183
  shape: () => newShape
55184
55184
  });
55185
- } else if (schema2 instanceof ZodArray) {
55185
+ } else if (schema3 instanceof ZodArray) {
55186
55186
  return new ZodArray({
55187
- ...schema2._def,
55188
- type: deepPartialify(schema2.element)
55187
+ ...schema3._def,
55188
+ type: deepPartialify(schema3.element)
55189
55189
  });
55190
- } else if (schema2 instanceof ZodOptional) {
55191
- return ZodOptional.create(deepPartialify(schema2.unwrap()));
55192
- } else if (schema2 instanceof ZodNullable) {
55193
- return ZodNullable.create(deepPartialify(schema2.unwrap()));
55194
- } else if (schema2 instanceof ZodTuple) {
55195
- return ZodTuple.create(schema2.items.map((item) => deepPartialify(item)));
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)));
55196
55196
  } else {
55197
- return schema2;
55197
+ return schema3;
55198
55198
  }
55199
55199
  }
55200
55200
  var ZodObject = class _ZodObject extends ZodType {
@@ -55410,8 +55410,8 @@ var ZodObject = class _ZodObject extends ZodType {
55410
55410
  // }) as any;
55411
55411
  // return merged;
55412
55412
  // }
55413
- setKey(key, schema2) {
55414
- return this.augment({ [key]: schema2 });
55413
+ setKey(key, schema3) {
55414
+ return this.augment({ [key]: schema3 });
55415
55415
  }
55416
55416
  // merge<Incoming extends AnyZodObject>(
55417
55417
  // merging: Incoming
@@ -55857,10 +55857,10 @@ var ZodTuple = class _ZodTuple extends ZodType {
55857
55857
  status.dirty();
55858
55858
  }
55859
55859
  const items = [...ctx.data].map((item, itemIndex) => {
55860
- const schema2 = this._def.items[itemIndex] || this._def.rest;
55861
- if (!schema2)
55860
+ const schema3 = this._def.items[itemIndex] || this._def.rest;
55861
+ if (!schema3)
55862
55862
  return null;
55863
- return schema2._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
55863
+ return schema3._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
55864
55864
  }).filter((x) => !!x);
55865
55865
  if (ctx.common.async) {
55866
55866
  return Promise.all(items).then((results) => {
@@ -56394,9 +56394,9 @@ var ZodPromise = class extends ZodType {
56394
56394
  }));
56395
56395
  }
56396
56396
  };
56397
- ZodPromise.create = (schema2, params) => {
56397
+ ZodPromise.create = (schema3, params) => {
56398
56398
  return new ZodPromise({
56399
- type: schema2,
56399
+ type: schema3,
56400
56400
  typeName: ZodFirstPartyTypeKind.ZodPromise,
56401
56401
  ...processCreateParams(params)
56402
56402
  });
@@ -56521,17 +56521,17 @@ var ZodEffects = class extends ZodType {
56521
56521
  util.assertNever(effect);
56522
56522
  }
56523
56523
  };
56524
- ZodEffects.create = (schema2, effect, params) => {
56524
+ ZodEffects.create = (schema3, effect, params) => {
56525
56525
  return new ZodEffects({
56526
- schema: schema2,
56526
+ schema: schema3,
56527
56527
  typeName: ZodFirstPartyTypeKind.ZodEffects,
56528
56528
  effect,
56529
56529
  ...processCreateParams(params)
56530
56530
  });
56531
56531
  };
56532
- ZodEffects.createWithPreprocess = (preprocess, schema2, params) => {
56532
+ ZodEffects.createWithPreprocess = (preprocess, schema3, params) => {
56533
56533
  return new ZodEffects({
56534
- schema: schema2,
56534
+ schema: schema3,
56535
56535
  effect: { type: "preprocess", transform: preprocess },
56536
56536
  typeName: ZodFirstPartyTypeKind.ZodEffects,
56537
56537
  ...processCreateParams(params)
@@ -57281,6 +57281,7 @@ var CliUserErrorCode = (0, import_variant11.variant)({
57281
57281
  FailedToEvalBackendExtension: (0, import_variant11.fields)(),
57282
57282
  DeploymentPipelineFailed: (0, import_variant11.fields)(),
57283
57283
  InsufficientNonInterractiveReleaseParameters: {},
57284
+ AppNameArgumentIsInvalid: (0, import_variant11.fields)(),
57284
57285
  CannotReleaseMinorInNoninteractive: {}
57285
57286
  });
57286
57287
  var CliErrorCode = (0, import_variant11.variant)({
@@ -57717,13 +57718,13 @@ init_esm_shims();
57717
57718
  function schemaSerializer(rootSchema, depSchemas = {}, converterSets) {
57718
57719
  return function serialize(json = {}, converterType) {
57719
57720
  return typeof json === "string" ? json : transformSchema(rootSchema, json);
57720
- function transformSchema(schema2, payload5) {
57721
+ function transformSchema(schema3, payload5) {
57721
57722
  const result = {};
57722
57723
  if ([null, void 0].includes(payload5)) {
57723
57724
  return payload5;
57724
57725
  }
57725
57726
  Object.entries(payload5).forEach(([key, val]) => {
57726
- const renderedSchemaName = schema2[key];
57727
+ const renderedSchemaName = schema3[key];
57727
57728
  const { schemaName, schemaType } = parseLeanSchemaRef(renderedSchemaName);
57728
57729
  const isMap = schemaType === "Map";
57729
57730
  const isRepeatable = getConverter(schemaName)?.checkRepetable?.(val) ?? Array.isArray(val);
@@ -58936,7 +58937,7 @@ var AbortError2 = class extends Error {
58936
58937
  this.message = message;
58937
58938
  }
58938
58939
  };
58939
- var getDOMException = (errorMessage) => globalThis.DOMException === void 0 ? new AbortError2(errorMessage) : new DOMException(errorMessage);
58940
+ var getDOMException = (errorMessage2) => globalThis.DOMException === void 0 ? new AbortError2(errorMessage2) : new DOMException(errorMessage2);
58940
58941
  var getAbortedReason = (signal) => {
58941
58942
  const reason = signal.reason === void 0 ? getDOMException("This operation was aborted.") : signal.reason;
58942
58943
  return reason instanceof Error ? reason : getDOMException(reason);
@@ -66907,11 +66908,11 @@ function getErrorComponent(code, cause) {
66907
66908
  );
66908
66909
  },
66909
66910
  GridAppFilesMaxLengthExceeded: ({ maxSizeViolationsData, filePaths }) => {
66910
- let errorMessage = "Found one or more project files that are bigger than the allowed limit";
66911
+ let errorMessage2 = "Found one or more project files that are bigger than the allowed limit";
66911
66912
  if (maxSizeViolationsData?.files.length) {
66912
- errorMessage += ` (${maxSizeViolationsData.expectedSize}KB): ${maxSizeViolationsData.files.map((f) => `${filePaths[f.fileIndex]} (${f.receivedSize}KB)`).join(", ")}`;
66913
+ errorMessage2 += ` (${maxSizeViolationsData.expectedSize}KB): ${maxSizeViolationsData.files.map((f) => `${filePaths[f.fileIndex]} (${f.receivedSize}KB)`).join(", ")}`;
66913
66914
  }
66914
- return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: errorMessage });
66915
+ return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: errorMessage2 });
66915
66916
  },
66916
66917
  GridAppFailedToUpdateFiles: () => {
66917
66918
  return () => /* @__PURE__ */ import_react77.default.createElement(
@@ -67227,38 +67228,38 @@ function getErrorComponent(code, cause) {
67227
67228
  }
67228
67229
  );
67229
67230
  },
67230
- InvalidDashboardPageRoute: ({ route, errorMessage }) => {
67231
+ InvalidDashboardPageRoute: ({ route, errorMessage: errorMessage2 }) => {
67231
67232
  return () => /* @__PURE__ */ import_react77.default.createElement(
67232
67233
  ErrorMessage,
67233
67234
  {
67234
67235
  message: `Invalid dashboard page route: ${route}`,
67235
- hint: errorMessage
67236
+ hint: errorMessage2
67236
67237
  }
67237
67238
  );
67238
67239
  },
67239
- InvalidEmbeddedScriptFolder: ({ path: path8, errorMessage }) => {
67240
+ InvalidEmbeddedScriptFolder: ({ path: path8, errorMessage: errorMessage2 }) => {
67240
67241
  return () => /* @__PURE__ */ import_react77.default.createElement(
67241
67242
  ErrorMessage,
67242
67243
  {
67243
67244
  message: `Invalid embedded script folder: ${path8}`,
67244
- hint: errorMessage
67245
+ hint: errorMessage2
67245
67246
  }
67246
67247
  );
67247
67248
  },
67248
- InvalidEmbeddedScriptTemplate: ({ templateFilename, errorMessage }) => {
67249
+ InvalidEmbeddedScriptTemplate: ({ templateFilename, errorMessage: errorMessage2 }) => {
67249
67250
  return () => /* @__PURE__ */ import_react77.default.createElement(
67250
67251
  ErrorMessage,
67251
67252
  {
67252
67253
  message: `Invalid embedded script template in ${templateFilename}`,
67253
- hint: errorMessage
67254
+ hint: errorMessage2
67254
67255
  }
67255
67256
  );
67256
67257
  },
67257
- InvalidCustomElementTagName: ({ tagName, errorMessage }) => {
67258
+ InvalidCustomElementTagName: ({ tagName, errorMessage: errorMessage2 }) => {
67258
67259
  return () => /* @__PURE__ */ import_react77.default.createElement(
67259
67260
  ErrorMessage,
67260
67261
  {
67261
- 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: ", errorMessage),
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),
67262
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"))
67263
67264
  }
67264
67265
  );
@@ -67631,12 +67632,12 @@ function getErrorComponent(code, cause) {
67631
67632
  FailedToDeployDocument: () => {
67632
67633
  return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: "Failed to deploy site document." });
67633
67634
  },
67634
- FailedToEvalBackendExtension: ({ filename, errorMessage }) => {
67635
+ FailedToEvalBackendExtension: ({ filename, errorMessage: errorMessage2 }) => {
67635
67636
  return () => /* @__PURE__ */ import_react77.default.createElement(
67636
67637
  ErrorMessage,
67637
67638
  {
67638
67639
  message: `Failed to process file "${filename}", error details below:
67639
- ${errorMessage}`
67640
+ ${errorMessage2}`
67640
67641
  }
67641
67642
  );
67642
67643
  },
@@ -67685,6 +67686,15 @@ ${errorMessage}`
67685
67686
  FailedToFetchWixLockFile: () => {
67686
67687
  return () => /* @__PURE__ */ import_react77.default.createElement(SystemErrorMessage, { message: `Failed to fetch "wix.lock" file.` });
67687
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
+ },
67688
67698
  CannotReleaseMinorInNoninteractive: () => {
67689
67699
  return () => /* @__PURE__ */ import_react77.default.createElement(
67690
67700
  ErrorMessage,
@@ -71186,7 +71196,7 @@ function reportCommandStartEvent({
71186
71196
  var package_default = {
71187
71197
  name: "@wix/create-app",
71188
71198
  description: "Create Wix apps",
71189
- version: "0.0.104",
71199
+ version: "0.0.105",
71190
71200
  author: "Ihor Machuzhak",
71191
71201
  bin: "bin/index.cjs",
71192
71202
  devDependencies: {
@@ -71196,7 +71206,7 @@ var package_default = {
71196
71206
  "@types/react": "^18.3.3",
71197
71207
  "@types/semver": "^7.5.8",
71198
71208
  "@types/validate-npm-package-name": "^4.0.2",
71199
- "@wix/bi-logger-dev-tools-data": "^1.97.0",
71209
+ "@wix/bi-logger-dev-tools-data": "^1.106.0",
71200
71210
  "@wix/cli-auth": "workspace:*",
71201
71211
  "@wix/cli-error": "workspace:*",
71202
71212
  "@wix/cli-error-reporting": "workspace:*",
@@ -74528,6 +74538,32 @@ function validateTemplateParams(value2) {
74528
74538
  }
74529
74539
  }
74530
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
+
74531
74567
  // src/components/AuthProvider.tsx
74532
74568
  init_esm_shims();
74533
74569
  var import_react94 = __toESM(require_react(), 1);
@@ -74666,10 +74702,19 @@ var _devCenterTestingComponentData = {
74666
74702
  var _displayField = { richContentOptions: "_richContentOptions" };
74667
74703
  var _donationInput = { description: "_richContent" };
74668
74704
  var _dropdown = { description: "_richContent" };
74669
- var _editorElement = { data: "Map#_dataItem", elements: "Map#_elementItem" };
74705
+ var _editorElement = {
74706
+ data: "Map#_dataItem",
74707
+ elements: "Map#_elementItem",
74708
+ presets: "Map#_presetItem",
74709
+ elementsDefaults: "Map#_elementDefaults"
74710
+ };
74670
74711
  var _editorPresence = { presetsEditorPresence: "_presetEditorPresence" };
74671
74712
  var _editorReactComponent = { editorElement: "_editorElement" };
74713
+ var _elementDefaults = { elementsDefaults: "Map#_elementDefaults" };
74672
74714
  var _elementItem = { inlineElement: "_inlineElement" };
74715
+ var _elementStyleDefaults = {
74716
+ elementsStyleDefaults: "Map#_elementStyleDefaults"
74717
+ };
74673
74718
  var _expectedInputs = {
74674
74719
  expectedStartInputs: "_predefinedExpectedInput",
74675
74720
  expectedVerifyInputs: "_predefinedExpectedInput"
@@ -74698,7 +74743,12 @@ var _getAppResponse = {
74698
74743
  };
74699
74744
  var _image = { urlExpirationDate: "google.protobuf.Timestamp" };
74700
74745
  var _imageData = { image: "_media" };
74701
- var _inlineElement = { data: "Map#_dataItem", elements: "Map#_elementItem" };
74746
+ var _inlineElement = {
74747
+ data: "Map#_dataItem",
74748
+ elements: "Map#_elementItem",
74749
+ presets: "Map#_presetItem",
74750
+ elementsDefaults: "Map#_elementDefaults"
74751
+ };
74702
74752
  var _inputField = {
74703
74753
  stringOptions: "__String",
74704
74754
  numberOptions: "__Number",
@@ -74778,6 +74828,7 @@ var _predefinedExpectedInputConfiguration = {
74778
74828
  textInput: "_adminConfigurableTextInput"
74779
74829
  };
74780
74830
  var _presetEditorPresence = { wixMediaThumbnail: "_commonImage" };
74831
+ var _presetItem = { elementsStyleDefaults: "Map#_elementStyleDefaults" };
74781
74832
  var _pricingModel = { plans: "_plan" };
74782
74833
  var _productCheckboxGroup = {
74783
74834
  description: "_richContent",
@@ -75144,7 +75195,9 @@ function getAppByVersion(payload5) {
75144
75195
  _editorElement,
75145
75196
  _editorPresence,
75146
75197
  _editorReactComponent,
75198
+ _elementDefaults,
75147
75199
  _elementItem,
75200
+ _elementStyleDefaults,
75148
75201
  _expectedInputs,
75149
75202
  _field,
75150
75203
  _fileUpload,
@@ -75189,6 +75242,7 @@ function getAppByVersion(payload5) {
75189
75242
  _predefinedExpectedInput,
75190
75243
  _predefinedExpectedInputConfiguration,
75191
75244
  _presetEditorPresence,
75245
+ _presetItem,
75192
75246
  _pricingModel,
75193
75247
  _productCheckboxGroup,
75194
75248
  _productCheckboxGroupOption,
@@ -75820,10 +75874,19 @@ var _discount = { saleInfo: "_saleInfo" };
75820
75874
  var _displayField2 = { richContentOptions: "_richContentOptions" };
75821
75875
  var _donationInput2 = { description: "_richContent" };
75822
75876
  var _dropdown2 = { description: "_richContent" };
75823
- var _editorElement2 = { data: "Map#_dataItem", elements: "Map#_elementItem" };
75877
+ var _editorElement2 = {
75878
+ data: "Map#_dataItem",
75879
+ elements: "Map#_elementItem",
75880
+ presets: "Map#_presetItem",
75881
+ elementsDefaults: "Map#_elementDefaults"
75882
+ };
75824
75883
  var _editorPresence2 = { presetsEditorPresence: "_presetEditorPresence" };
75825
75884
  var _editorReactComponent2 = { editorElement: "_editorElement" };
75885
+ var _elementDefaults2 = { elementsDefaults: "Map#_elementDefaults" };
75826
75886
  var _elementItem2 = { inlineElement: "_inlineElement" };
75887
+ var _elementStyleDefaults2 = {
75888
+ elementsStyleDefaults: "Map#_elementStyleDefaults"
75889
+ };
75827
75890
  var _expectedInputs2 = {
75828
75891
  expectedStartInputs: "_predefinedExpectedInput",
75829
75892
  expectedVerifyInputs: "_predefinedExpectedInput"
@@ -75848,7 +75911,12 @@ var _galleryData2 = { items: "_item", options: "_galleryOptions" };
75848
75911
  var _galleryOptions2 = { item: "_itemStyle" };
75849
75912
  var _image2 = { urlExpirationDate: "google.protobuf.Timestamp" };
75850
75913
  var _imageData2 = { image: "_media" };
75851
- var _inlineElement2 = { data: "Map#_dataItem", elements: "Map#_elementItem" };
75914
+ var _inlineElement2 = {
75915
+ data: "Map#_dataItem",
75916
+ elements: "Map#_elementItem",
75917
+ presets: "Map#_presetItem",
75918
+ elementsDefaults: "Map#_elementDefaults"
75919
+ };
75852
75920
  var _inputField2 = {
75853
75921
  stringOptions: "__String",
75854
75922
  numberOptions: "__Number",
@@ -75931,6 +75999,7 @@ var _predefinedExpectedInputConfiguration2 = {
75931
75999
  };
75932
76000
  var _premiumInfo = { freeTrialData: "_freeTrialData" };
75933
76001
  var _presetEditorPresence2 = { wixMediaThumbnail: "_commonImage" };
76002
+ var _presetItem2 = { elementsStyleDefaults: "Map#_elementStyleDefaults" };
75934
76003
  var _pricingDetails = { discount: "_discount" };
75935
76004
  var _productCheckboxGroup2 = {
75936
76005
  description: "_richContent",
@@ -76093,7 +76162,9 @@ function managedApps(payload5) {
76093
76162
  _editorElement: _editorElement2,
76094
76163
  _editorPresence: _editorPresence2,
76095
76164
  _editorReactComponent: _editorReactComponent2,
76165
+ _elementDefaults: _elementDefaults2,
76096
76166
  _elementItem: _elementItem2,
76167
+ _elementStyleDefaults: _elementStyleDefaults2,
76097
76168
  _expectedInputs: _expectedInputs2,
76098
76169
  _field: _field2,
76099
76170
  _fileUpload: _fileUpload2,
@@ -76139,6 +76210,7 @@ function managedApps(payload5) {
76139
76210
  _predefinedExpectedInputConfiguration: _predefinedExpectedInputConfiguration2,
76140
76211
  _premiumInfo,
76141
76212
  _presetEditorPresence: _presetEditorPresence2,
76213
+ _presetItem: _presetItem2,
76142
76214
  _pricingDetails,
76143
76215
  _productCheckboxGroup: _productCheckboxGroup2,
76144
76216
  _productCheckboxGroupOption: _productCheckboxGroupOption2,
@@ -77699,16 +77771,25 @@ var CssPropertyType;
77699
77771
  CssPropertyType3["backgroundSize"] = "backgroundSize";
77700
77772
  CssPropertyType3["backgroundColor"] = "backgroundColor";
77701
77773
  CssPropertyType3["backgroundImage"] = "backgroundImage";
77774
+ CssPropertyType3["backgroundClip"] = "backgroundClip";
77775
+ CssPropertyType3["backgroundOrigin"] = "backgroundOrigin";
77776
+ CssPropertyType3["backgroundPosition"] = "backgroundPosition";
77777
+ CssPropertyType3["backgroundRepeat"] = "backgroundRepeat";
77778
+ CssPropertyType3["backgroundAttachment"] = "backgroundAttachment";
77702
77779
  CssPropertyType3["margin"] = "margin";
77703
77780
  CssPropertyType3["marginTop"] = "marginTop";
77704
77781
  CssPropertyType3["marginRight"] = "marginRight";
77705
77782
  CssPropertyType3["marginBottom"] = "marginBottom";
77706
77783
  CssPropertyType3["marginLeft"] = "marginLeft";
77784
+ CssPropertyType3["marginInlineStart"] = "marginInlineStart";
77785
+ CssPropertyType3["marginInlineEnd"] = "marginInlineEnd";
77707
77786
  CssPropertyType3["padding"] = "padding";
77708
77787
  CssPropertyType3["paddingTop"] = "paddingTop";
77709
77788
  CssPropertyType3["paddingRight"] = "paddingRight";
77710
77789
  CssPropertyType3["paddingBottom"] = "paddingBottom";
77711
77790
  CssPropertyType3["paddingLeft"] = "paddingLeft";
77791
+ CssPropertyType3["paddingInlineStart"] = "paddingInlineStart";
77792
+ CssPropertyType3["paddingInlineEnd"] = "paddingInlineEnd";
77712
77793
  CssPropertyType3["border"] = "border";
77713
77794
  CssPropertyType3["borderWidth"] = "borderWidth";
77714
77795
  CssPropertyType3["borderStyle"] = "borderStyle";
@@ -77729,11 +77810,23 @@ var CssPropertyType;
77729
77810
  CssPropertyType3["borderLeftColor"] = "borderLeftColor";
77730
77811
  CssPropertyType3["borderLeftWidth"] = "borderLeftWidth";
77731
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";
77732
77821
  CssPropertyType3["borderRadius"] = "borderRadius";
77733
77822
  CssPropertyType3["borderTopLeftRadius"] = "borderTopLeftRadius";
77734
77823
  CssPropertyType3["borderTopRightRadius"] = "borderTopRightRadius";
77735
77824
  CssPropertyType3["borderBottomRightRadius"] = "borderBottomRightRadius";
77736
77825
  CssPropertyType3["borderBottomLeftRadius"] = "borderBottomLeftRadius";
77826
+ CssPropertyType3["borderStartStartRadius"] = "borderStartStartRadius";
77827
+ CssPropertyType3["borderStartEndRadius"] = "borderStartEndRadius";
77828
+ CssPropertyType3["borderEndStartRadius"] = "borderEndStartRadius";
77829
+ CssPropertyType3["borderEndEndRadius"] = "borderEndEndRadius";
77737
77830
  CssPropertyType3["font"] = "font";
77738
77831
  CssPropertyType3["fontFamily"] = "fontFamily";
77739
77832
  CssPropertyType3["fontSize"] = "fontSize";
@@ -77771,6 +77864,7 @@ var CssDataType;
77771
77864
  CssDataType3["color"] = "color";
77772
77865
  CssDataType3["angle"] = "angle";
77773
77866
  CssDataType3["percentage"] = "percentage";
77867
+ CssDataType3["lengthPercentage"] = "lengthPercentage";
77774
77868
  CssDataType3["blendMode"] = "blendMode";
77775
77869
  })(CssDataType || (CssDataType = {}));
77776
77870
  var DataType;
@@ -77883,6 +77977,23 @@ var ActionName;
77883
77977
  ActionName3["dashboard"] = "dashboard";
77884
77978
  ActionName3["custom"] = "custom";
77885
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 = {}));
77886
77997
  var Archetype;
77887
77998
  (function(Archetype3) {
77888
77999
  Archetype3["UNKNOWN_Archetype"] = "UNKNOWN_Archetype";
@@ -78271,6 +78382,7 @@ var ComponentType2;
78271
78382
  ComponentType3["STORES_PRODUCT_RESTRICTIONS"] = "STORES_PRODUCT_RESTRICTIONS";
78272
78383
  ComponentType3["FORM_SUBMISSION_MODERATION"] = "FORM_SUBMISSION_MODERATION";
78273
78384
  ComponentType3["EVENTS_EVENT_BADGES"] = "EVENTS_EVENT_BADGES";
78385
+ ComponentType3["BILLING_OPERATION"] = "BILLING_OPERATION";
78274
78386
  })(ComponentType2 || (ComponentType2 = {}));
78275
78387
  var WidgetVertical2;
78276
78388
  (function(WidgetVertical3) {
@@ -79556,16 +79668,25 @@ var CssPropertyType2;
79556
79668
  CssPropertyType3["backgroundSize"] = "backgroundSize";
79557
79669
  CssPropertyType3["backgroundColor"] = "backgroundColor";
79558
79670
  CssPropertyType3["backgroundImage"] = "backgroundImage";
79671
+ CssPropertyType3["backgroundClip"] = "backgroundClip";
79672
+ CssPropertyType3["backgroundOrigin"] = "backgroundOrigin";
79673
+ CssPropertyType3["backgroundPosition"] = "backgroundPosition";
79674
+ CssPropertyType3["backgroundRepeat"] = "backgroundRepeat";
79675
+ CssPropertyType3["backgroundAttachment"] = "backgroundAttachment";
79559
79676
  CssPropertyType3["margin"] = "margin";
79560
79677
  CssPropertyType3["marginTop"] = "marginTop";
79561
79678
  CssPropertyType3["marginRight"] = "marginRight";
79562
79679
  CssPropertyType3["marginBottom"] = "marginBottom";
79563
79680
  CssPropertyType3["marginLeft"] = "marginLeft";
79681
+ CssPropertyType3["marginInlineStart"] = "marginInlineStart";
79682
+ CssPropertyType3["marginInlineEnd"] = "marginInlineEnd";
79564
79683
  CssPropertyType3["padding"] = "padding";
79565
79684
  CssPropertyType3["paddingTop"] = "paddingTop";
79566
79685
  CssPropertyType3["paddingRight"] = "paddingRight";
79567
79686
  CssPropertyType3["paddingBottom"] = "paddingBottom";
79568
79687
  CssPropertyType3["paddingLeft"] = "paddingLeft";
79688
+ CssPropertyType3["paddingInlineStart"] = "paddingInlineStart";
79689
+ CssPropertyType3["paddingInlineEnd"] = "paddingInlineEnd";
79569
79690
  CssPropertyType3["border"] = "border";
79570
79691
  CssPropertyType3["borderWidth"] = "borderWidth";
79571
79692
  CssPropertyType3["borderStyle"] = "borderStyle";
@@ -79586,11 +79707,23 @@ var CssPropertyType2;
79586
79707
  CssPropertyType3["borderLeftColor"] = "borderLeftColor";
79587
79708
  CssPropertyType3["borderLeftWidth"] = "borderLeftWidth";
79588
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";
79589
79718
  CssPropertyType3["borderRadius"] = "borderRadius";
79590
79719
  CssPropertyType3["borderTopLeftRadius"] = "borderTopLeftRadius";
79591
79720
  CssPropertyType3["borderTopRightRadius"] = "borderTopRightRadius";
79592
79721
  CssPropertyType3["borderBottomRightRadius"] = "borderBottomRightRadius";
79593
79722
  CssPropertyType3["borderBottomLeftRadius"] = "borderBottomLeftRadius";
79723
+ CssPropertyType3["borderStartStartRadius"] = "borderStartStartRadius";
79724
+ CssPropertyType3["borderStartEndRadius"] = "borderStartEndRadius";
79725
+ CssPropertyType3["borderEndStartRadius"] = "borderEndStartRadius";
79726
+ CssPropertyType3["borderEndEndRadius"] = "borderEndEndRadius";
79594
79727
  CssPropertyType3["font"] = "font";
79595
79728
  CssPropertyType3["fontFamily"] = "fontFamily";
79596
79729
  CssPropertyType3["fontSize"] = "fontSize";
@@ -79628,6 +79761,7 @@ var CssDataType2;
79628
79761
  CssDataType3["color"] = "color";
79629
79762
  CssDataType3["angle"] = "angle";
79630
79763
  CssDataType3["percentage"] = "percentage";
79764
+ CssDataType3["lengthPercentage"] = "lengthPercentage";
79631
79765
  CssDataType3["blendMode"] = "blendMode";
79632
79766
  })(CssDataType2 || (CssDataType2 = {}));
79633
79767
  var DataType2;
@@ -79740,6 +79874,23 @@ var ActionName2;
79740
79874
  ActionName3["dashboard"] = "dashboard";
79741
79875
  ActionName3["custom"] = "custom";
79742
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 = {}));
79743
79894
  var Archetype2;
79744
79895
  (function(Archetype3) {
79745
79896
  Archetype3["UNKNOWN_Archetype"] = "UNKNOWN_Archetype";
@@ -80408,7 +80559,8 @@ function useDevCenterClient() {
80408
80559
  // src/parse-command-options.ts
80409
80560
  init_esm_shims();
80410
80561
  var import_variant30 = __toESM(require_lib(), 1);
80411
- import { resolve as resolve3 } from "node:path";
80562
+ var import_kebabCase = __toESM(require_kebabCase(), 1);
80563
+ import { join as join10, resolve as resolve3 } from "node:path";
80412
80564
  var TemplateSource = (0, import_variant30.variant)({
80413
80565
  App: (0, import_variant30.payload)(),
80414
80566
  GitRepo: (0, import_variant30.fields)(),
@@ -80446,10 +80598,47 @@ async function parseTemplateOptions(options, { devCenterClient }) {
80446
80598
  return TemplateSource.Local({ path: options.templatePath });
80447
80599
  }
80448
80600
  }
80449
- async function parseCommandOptions(options, clients) {
80450
- return {
80451
- template: await parseTemplateOptions(options, clients)
80452
- };
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 };
80453
80642
  }
80454
80643
 
80455
80644
  // src/types.ts
@@ -80527,6 +80716,7 @@ var ChooseAppName = ({ onSubmit }) => {
80527
80716
  {
80528
80717
  label: t3("create_app.create_new.name_of_app.label"),
80529
80718
  placeholder: t3("create_app.create_new.name_of_app.placeholder"),
80719
+ validate: validateAppNameSafe,
80530
80720
  onSubmit: (appName) => {
80531
80721
  cliFlowStepAnswered({
80532
80722
  question: t3("create_app.create_new.name_of_app.label"),
@@ -80544,8 +80734,8 @@ var ChooseAppName = ({ onSubmit }) => {
80544
80734
  init_esm_shims();
80545
80735
  var import_react100 = __toESM(require_react(), 1);
80546
80736
  var import_variant33 = __toESM(require_lib(), 1);
80547
- import { join as join10, relative as relative3 } from "node:path";
80548
- var import_kebabCase = __toESM(require_kebabCase(), 1);
80737
+ import { join as join11, relative as relative3 } from "node:path";
80738
+ var import_kebabCase2 = __toESM(require_kebabCase(), 1);
80549
80739
 
80550
80740
  // src/components/ConfirmPackagePath.tsx
80551
80741
  init_esm_shims();
@@ -80590,11 +80780,11 @@ var ChoosePackageName = ({
80590
80780
  const { cliFlowStepAnswered } = useCreateAppBi();
80591
80781
  const [packageName, setPackageName] = (0, import_react100.useState)();
80592
80782
  const defaultPackageName = (0, import_react100.useMemo)(() => {
80593
- return (0, import_kebabCase.default)(appName);
80783
+ return (0, import_kebabCase2.default)(appName);
80594
80784
  }, [appName]);
80595
80785
  const isMonorepo = (0, import_variant33.isType)(repoType, RepoType.Monorepo);
80596
80786
  async function validate3(packageName2) {
80597
- if (!await validateDirectory(join10(targetParentFolder2, packageName2))) {
80787
+ if (!await validateDirectory(join11(targetParentFolder2, packageName2))) {
80598
80788
  return t3("validation_errors.invalid_directory");
80599
80789
  }
80600
80790
  const npmValidationErrors = await validatePackageName(packageName2);
@@ -80642,7 +80832,7 @@ var ChoosePackageName = ({
80642
80832
  {
80643
80833
  path: relative3(
80644
80834
  repoType.rootDir,
80645
- join10(targetParentFolder2, packageName)
80835
+ join11(targetParentFolder2, packageName)
80646
80836
  ),
80647
80837
  onSubmit: (confirmed) => handlePackagePathConfirm(packageName, confirmed)
80648
80838
  }
@@ -80797,6 +80987,7 @@ var AppRegistered = ({ appName }) => {
80797
80987
  var NewAppFlow = ({
80798
80988
  onSubmit,
80799
80989
  template: templateFromOptions,
80990
+ appName: appNameFromOptions,
80800
80991
  targetParentFolder: targetParentFolder2,
80801
80992
  repoType
80802
80993
  }) => {
@@ -80835,7 +81026,17 @@ var NewAppFlow = ({
80835
81026
  };
80836
81027
  }
80837
81028
  );
80838
- return /* @__PURE__ */ import_react106.default.createElement(import_react106.default.Fragment, null, !templateFromOptions && /* @__PURE__ */ import_react106.default.createElement(ChooseTemplateFlow, { onTemplateChoose: setTemplateData }), templateData && /* @__PURE__ */ import_react106.default.createElement(ChooseAppName, { onSubmit: setAppName }), appName && templateData && /* @__PURE__ */ import_react106.default.createElement(
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(
80839
81040
  ChoosePackageName,
80840
81041
  {
80841
81042
  appName,
@@ -80990,12 +81191,17 @@ var Questions = ({
80990
81191
  const { getDeveloperApps } = useDevCenterClient();
80991
81192
  const [appCreationFlow, setAppCreationFlow] = (0, import_react110.useState)();
80992
81193
  const { status } = useAsync2(async () => {
80993
- const { template } = await parseCommandOptions(commandOptions, {
80994
- devCenterClient
80995
- });
81194
+ const { template, appName } = await parseCommandOptions(
81195
+ targetParentFolder2,
81196
+ commandOptions,
81197
+ {
81198
+ devCenterClient
81199
+ }
81200
+ );
80996
81201
  if (template) {
80997
81202
  return {
80998
- template
81203
+ template,
81204
+ appName
80999
81205
  };
81000
81206
  }
81001
81207
  try {
@@ -81017,13 +81223,16 @@ var Questions = ({
81017
81223
  return (0, import_variant37.match)(status, {
81018
81224
  Error: () => null,
81019
81225
  Loading: () => /* @__PURE__ */ import_react110.default.createElement(Spinner2, { text: t3("general.loading") }),
81020
- Success: ({ result: { template, developerApps, developerAppsStatus } }) => {
81226
+ Success: ({
81227
+ result: { template, appName, developerApps, developerAppsStatus }
81228
+ }) => {
81021
81229
  if (template) {
81022
81230
  return /* @__PURE__ */ import_react110.default.createElement(import_react110.default.Fragment, null, /* @__PURE__ */ import_react110.default.createElement(StartFromTemplateMessage, { template }), /* @__PURE__ */ import_react110.default.createElement(
81023
81231
  NewAppFlow,
81024
81232
  {
81025
81233
  onSubmit,
81026
81234
  template,
81235
+ appName,
81027
81236
  targetParentFolder: targetParentFolder2,
81028
81237
  repoType
81029
81238
  }
@@ -81069,7 +81278,7 @@ var Questions = ({
81069
81278
  init_esm_shims();
81070
81279
  var import_variant39 = __toESM(require_lib(), 1);
81071
81280
  import { mkdir as mkdir2 } from "node:fs/promises";
81072
- import { join as join12 } from "node:path";
81281
+ import { join as join13 } from "node:path";
81073
81282
 
81074
81283
  // src/services/generator/index.ts
81075
81284
  init_esm_shims();
@@ -81148,7 +81357,7 @@ init_esm_shims();
81148
81357
 
81149
81358
  // src/services/generator/template-fetcher.ts
81150
81359
  init_esm_shims();
81151
- import { join as join11 } from "node:path";
81360
+ import { join as join12 } from "node:path";
81152
81361
  import { rm as rm2 } from "node:fs/promises";
81153
81362
 
81154
81363
  // ../../node_modules/tempy/index.js
@@ -81304,7 +81513,7 @@ async function downloadAndExtractRepo(url2) {
81304
81513
  const repoDir = temporaryDirectory2({ prefix: "wix-create-app" });
81305
81514
  try {
81306
81515
  await gitClone(url2, repoDir);
81307
- await rm2(join11(repoDir, ".git"), { recursive: true, force: true });
81516
+ await rm2(join12(repoDir, ".git"), { recursive: true, force: true });
81308
81517
  return repoDir;
81309
81518
  } catch (e2) {
81310
81519
  throw new CliError({
@@ -81322,7 +81531,7 @@ async function fetchTemplate(url2, path8 = ".") {
81322
81531
  });
81323
81532
  }
81324
81533
  const repoDir = await downloadAndExtractRepo(url2);
81325
- const templateDirInRepo = join11(repoDir, path8);
81534
+ const templateDirInRepo = join12(repoDir, path8);
81326
81535
  if (!await pathExists(templateDirInRepo)) {
81327
81536
  throw new CliError({
81328
81537
  code: CliErrorCode.TemplatePathNotFound({ templatePath: path8 }),
@@ -81385,7 +81594,7 @@ function getTasks({
81385
81594
  skipInstall,
81386
81595
  skipGit
81387
81596
  }, t3) {
81388
- const packageFolder = join12(targetParentFolder2, packageName);
81597
+ const packageFolder = join13(targetParentFolder2, packageName);
81389
81598
  const generateProject = async () => {
81390
81599
  try {
81391
81600
  await mkdir2(packageFolder, { recursive: true });
@@ -81698,7 +81907,7 @@ var messages_default3 = {
81698
81907
  "create_app.choose_template.title": "Choose the template you want to start with",
81699
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>",
81700
81909
  "create_app.create_new.name_of_app.label": "Enter a name for your app",
81701
- "create_app.create_new.name_of_app.placeholder": "My Wix App",
81910
+ "create_app.create_new.name_of_app.placeholder": "My Custom App",
81702
81911
  "create_app.create_new.registering_your_app": "Registering your new application in Wix App Dashboard...",
81703
81912
  "create_app.create_new.app_registered_successfully": "<0>{appName}</0> has been registered successfully.",
81704
81913
  "create_app.create_new.app_on_dev_center": "View your App in the <0>App Dashboard</0>",
@@ -81762,6 +81971,11 @@ var program2 = new Command().name(package_default.name).description("Create Wix
81762
81971
  "-x, --template-path <template-path>",
81763
81972
  "Local path to the template folder"
81764
81973
  ).hideHelp()
81974
+ ).addOption(
81975
+ new Option(
81976
+ "--app-name <app-name>",
81977
+ "The name for your new application"
81978
+ ).argParser(validateAppName)
81765
81979
  ).addOption(
81766
81980
  new Option(
81767
81981
  "--skip-install",