@wix/cli-app 1.1.70 → 1.1.72

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.
Files changed (70) hide show
  1. package/build/{CreateVersionCommand-SP5IPVGU.js → CreateVersionCommand-I6EHK2T2.js} +14 -14
  2. package/build/{DevCommand-TCV5QWXG.js → DevCommand-DLODMFKI.js} +12 -12
  3. package/build/{GenerateCommand-54ISTYYO.js → GenerateCommand-5KR6GRHW.js} +832 -574
  4. package/build/GenerateCommand-5KR6GRHW.js.map +1 -0
  5. package/build/{LogsCommand-H7TEJMU7.js → LogsCommand-EAOVZZG6.js} +4 -4
  6. package/build/PreviewCommand-B6XM6FQV.js +23 -0
  7. package/build/{ReleaseCommand-6TNACMTW.js → ReleaseCommand-W36AG2IN.js} +15 -15
  8. package/build/{ServeCommand-R7DZRKEJ.js → ServeCommand-BEXBK5ZA.js} +14 -14
  9. package/build/ServeCommand-BEXBK5ZA.js.map +1 -0
  10. package/build/{build-GAYTNX3U.js → build-KITE7EW3.js} +33 -14
  11. package/build/build-KITE7EW3.js.map +1 -0
  12. package/build/{chunk-ZWTX6NE6.js → chunk-4JQ75QTB.js} +3 -3
  13. package/build/{chunk-H27IPZI4.js → chunk-5KBGN6AI.js} +161 -65
  14. package/build/{chunk-H27IPZI4.js.map → chunk-5KBGN6AI.js.map} +1 -1
  15. package/build/{chunk-ZEKT3LRI.js → chunk-AKMZVY3B.js} +3 -3
  16. package/build/{chunk-G6UZ5AZ6.js → chunk-AU6RLQTX.js} +3 -3
  17. package/build/{chunk-OHC3CHII.js → chunk-DN2W5I6V.js} +7 -3
  18. package/build/chunk-DN2W5I6V.js.map +1 -0
  19. package/build/{chunk-BCLAONW5.js → chunk-EK4R4AAZ.js} +3 -3
  20. package/build/{chunk-DHGAE3R5.js → chunk-EQX4ZNQY.js} +28 -30
  21. package/build/{chunk-DHGAE3R5.js.map → chunk-EQX4ZNQY.js.map} +1 -1
  22. package/build/{chunk-UY2MROJE.js → chunk-EZYYTB4A.js} +16 -8
  23. package/build/chunk-EZYYTB4A.js.map +1 -0
  24. package/build/{chunk-MMYH4YFU.js → chunk-F6K4Z645.js} +5 -5
  25. package/build/{chunk-HY44AJBX.js → chunk-FUJL6MQF.js} +10 -2
  26. package/build/chunk-FUJL6MQF.js.map +1 -0
  27. package/build/{chunk-RTHHQIW6.js → chunk-JHRMWYBU.js} +3 -3
  28. package/build/{chunk-WSC7O536.js → chunk-JVG7ATK2.js} +3 -3
  29. package/build/{chunk-7V3AXMMP.js → chunk-M7NEF3JI.js} +5 -5
  30. package/build/{chunk-GZNYJNVI.js → chunk-MXNYBCOX.js} +8975 -8690
  31. package/build/chunk-MXNYBCOX.js.map +1 -0
  32. package/build/{chunk-MX6MY676.js → chunk-OU2SCVZ4.js} +4 -3
  33. package/build/{chunk-TFBVDCPM.js → chunk-P7Z3QMUB.js} +3 -3
  34. package/build/{chunk-JTGROBAJ.js → chunk-U7NOLQSJ.js} +2 -2
  35. package/build/{chunk-KG6JXI3B.js → chunk-VYH54DVP.js} +8 -8
  36. package/build/index.js +20 -20
  37. package/build/{preview-MYNAHHYE.js → preview-MYW7A4XF.js} +12 -12
  38. package/build/{render-command-NFMTZDGL.js → render-command-5UQ5JPA6.js} +6 -6
  39. package/package.json +7 -6
  40. package/templates/blocks-support/dependencies.json +6 -0
  41. package/templates/blocks-widget/files/api.ts.ejs +1 -1
  42. package/templates/blocks-widget/files/widget.ts.ejs +8 -1
  43. package/templates/blocks-widget-panel/files/panel.ts.ejs +8 -0
  44. package/build/GenerateCommand-54ISTYYO.js.map +0 -1
  45. package/build/PreviewCommand-CTYKGXWG.js +0 -23
  46. package/build/ServeCommand-R7DZRKEJ.js.map +0 -1
  47. package/build/build-GAYTNX3U.js.map +0 -1
  48. package/build/chunk-GZNYJNVI.js.map +0 -1
  49. package/build/chunk-HY44AJBX.js.map +0 -1
  50. package/build/chunk-OHC3CHII.js.map +0 -1
  51. package/build/chunk-UY2MROJE.js.map +0 -1
  52. /package/build/{CreateVersionCommand-SP5IPVGU.js.map → CreateVersionCommand-I6EHK2T2.js.map} +0 -0
  53. /package/build/{DevCommand-TCV5QWXG.js.map → DevCommand-DLODMFKI.js.map} +0 -0
  54. /package/build/{LogsCommand-H7TEJMU7.js.map → LogsCommand-EAOVZZG6.js.map} +0 -0
  55. /package/build/{PreviewCommand-CTYKGXWG.js.map → PreviewCommand-B6XM6FQV.js.map} +0 -0
  56. /package/build/{ReleaseCommand-6TNACMTW.js.map → ReleaseCommand-W36AG2IN.js.map} +0 -0
  57. /package/build/{chunk-ZWTX6NE6.js.map → chunk-4JQ75QTB.js.map} +0 -0
  58. /package/build/{chunk-ZEKT3LRI.js.map → chunk-AKMZVY3B.js.map} +0 -0
  59. /package/build/{chunk-G6UZ5AZ6.js.map → chunk-AU6RLQTX.js.map} +0 -0
  60. /package/build/{chunk-BCLAONW5.js.map → chunk-EK4R4AAZ.js.map} +0 -0
  61. /package/build/{chunk-MMYH4YFU.js.map → chunk-F6K4Z645.js.map} +0 -0
  62. /package/build/{chunk-RTHHQIW6.js.map → chunk-JHRMWYBU.js.map} +0 -0
  63. /package/build/{chunk-WSC7O536.js.map → chunk-JVG7ATK2.js.map} +0 -0
  64. /package/build/{chunk-7V3AXMMP.js.map → chunk-M7NEF3JI.js.map} +0 -0
  65. /package/build/{chunk-MX6MY676.js.map → chunk-OU2SCVZ4.js.map} +0 -0
  66. /package/build/{chunk-TFBVDCPM.js.map → chunk-P7Z3QMUB.js.map} +0 -0
  67. /package/build/{chunk-JTGROBAJ.js.map → chunk-U7NOLQSJ.js.map} +0 -0
  68. /package/build/{chunk-KG6JXI3B.js.map → chunk-VYH54DVP.js.map} +0 -0
  69. /package/build/{preview-MYNAHHYE.js.map → preview-MYW7A4XF.js.map} +0 -0
  70. /package/build/{render-command-NFMTZDGL.js.map → render-command-5UQ5JPA6.js.map} +0 -0
@@ -17,6 +17,7 @@ import {
17
17
  UnorderedList,
18
18
  getTestOverrides,
19
19
  init_tslib_es6,
20
+ isCliError,
20
21
  isCliSystemError,
21
22
  normalizeError,
22
23
  require_Symbol,
@@ -38,7 +39,7 @@ import {
38
39
  use_input_default,
39
40
  version,
40
41
  z
41
- } from "./chunk-OHC3CHII.js";
42
+ } from "./chunk-DN2W5I6V.js";
42
43
  import {
43
44
  __commonJS,
44
45
  __dirname,
@@ -23322,7 +23323,7 @@ ${str}
23322
23323
  function canBeReservedWord(word) {
23323
23324
  return reservedWordLikeSet.has(word);
23324
23325
  }
23325
- var Scope = class {
23326
+ var Scope3 = class {
23326
23327
  constructor(flags) {
23327
23328
  this.flags = 0;
23328
23329
  this.names = /* @__PURE__ */ new Map();
@@ -23378,7 +23379,7 @@ ${str}
23378
23379
  return this.treatFunctionsAsVarInScope(this.currentScope());
23379
23380
  }
23380
23381
  createScope(flags) {
23381
- return new Scope(flags);
23382
+ return new Scope3(flags);
23382
23383
  }
23383
23384
  enter(flags) {
23384
23385
  this.scopeStack.push(this.createScope(flags));
@@ -23476,7 +23477,7 @@ ${str}
23476
23477
  }
23477
23478
  }
23478
23479
  };
23479
- var FlowScope = class extends Scope {
23480
+ var FlowScope = class extends Scope3 {
23480
23481
  constructor(...args) {
23481
23482
  super(...args);
23482
23483
  this.declareFunctions = /* @__PURE__ */ new Set();
@@ -28865,7 +28866,7 @@ ${str}
28865
28866
  }
28866
28867
  }
28867
28868
  };
28868
- var TypeScriptScope = class extends Scope {
28869
+ var TypeScriptScope = class extends Scope3 {
28869
28870
  constructor(...args) {
28870
28871
  super(...args);
28871
28872
  this.tsNames = /* @__PURE__ */ new Map();
@@ -38219,7 +38220,7 @@ ${rootStack}`;
38219
38220
  var BindingIdentifier = exports2.BindingIdentifier = ["Identifier"];
38220
38221
  var Statement = exports2.Statement = ["Statement"];
38221
38222
  var Expression = exports2.Expression = ["Expression"];
38222
- var Scope = exports2.Scope = ["Scopable", "Pattern"];
38223
+ var Scope3 = exports2.Scope = ["Scopable", "Pattern"];
38223
38224
  var Referenced = exports2.Referenced = null;
38224
38225
  var BlockScoped = exports2.BlockScoped = null;
38225
38226
  var Var = exports2.Var = ["VariableDeclaration"];
@@ -41541,7 +41542,7 @@ ${rootStack}`;
41541
41542
  }
41542
41543
  };
41543
41544
  var uid = 0;
41544
- var Scope = class _Scope {
41545
+ var Scope3 = class _Scope {
41545
41546
  constructor(path5) {
41546
41547
  this.uid = void 0;
41547
41548
  this.path = void 0;
@@ -42153,25 +42154,25 @@ ${rootStack}`;
42153
42154
  }
42154
42155
  }
42155
42156
  };
42156
- exports2.default = Scope;
42157
- Scope.globals = Object.keys(_globals.builtin);
42158
- Scope.contextVariables = ["arguments", "undefined", "Infinity", "NaN"];
42157
+ exports2.default = Scope3;
42158
+ Scope3.globals = Object.keys(_globals.builtin);
42159
+ Scope3.contextVariables = ["arguments", "undefined", "Infinity", "NaN"];
42159
42160
  {
42160
- Scope.prototype._renameFromMap = function _renameFromMap(map, oldName, newName, value2) {
42161
+ Scope3.prototype._renameFromMap = function _renameFromMap(map, oldName, newName, value2) {
42161
42162
  if (map[oldName]) {
42162
42163
  map[newName] = value2;
42163
42164
  map[oldName] = null;
42164
42165
  }
42165
42166
  };
42166
- Scope.prototype.traverse = function(node, opts, state) {
42167
+ Scope3.prototype.traverse = function(node, opts, state) {
42167
42168
  (0, _index.default)(node, opts, this, state, this.path);
42168
42169
  };
42169
- Scope.prototype._generateUid = function _generateUid(name, i) {
42170
+ Scope3.prototype._generateUid = function _generateUid(name, i) {
42170
42171
  let id = name;
42171
42172
  if (i > 1) id += i;
42172
42173
  return `_${id}`;
42173
42174
  };
42174
- Scope.prototype.toArray = function toArray(node, i, arrayLikeIsIterable) {
42175
+ Scope3.prototype.toArray = function toArray(node, i, arrayLikeIsIterable) {
42175
42176
  if (isIdentifier(node)) {
42176
42177
  const binding = this.getBinding(node.name);
42177
42178
  if (binding != null && binding.constant && binding.path.isGenericType("Array")) {
@@ -42202,7 +42203,7 @@ ${rootStack}`;
42202
42203
  }
42203
42204
  return callExpression(this.path.hub.addHelper(helperName), args);
42204
42205
  };
42205
- Scope.prototype.getAllBindingsOfKind = function getAllBindingsOfKind(...kinds) {
42206
+ Scope3.prototype.getAllBindingsOfKind = function getAllBindingsOfKind(...kinds) {
42206
42207
  const ids = /* @__PURE__ */ Object.create(null);
42207
42208
  for (const kind of kinds) {
42208
42209
  let scope = this;
@@ -42216,7 +42217,7 @@ ${rootStack}`;
42216
42217
  }
42217
42218
  return ids;
42218
42219
  };
42219
- Object.defineProperties(Scope.prototype, {
42220
+ Object.defineProperties(Scope3.prototype, {
42220
42221
  parentBlock: {
42221
42222
  configurable: true,
42222
42223
  enumerable: true,
@@ -87240,7 +87241,7 @@ to your top-level package.json.
87240
87241
  }
87241
87242
  };
87242
87243
  var pp$3 = Parser.prototype;
87243
- var Scope = function Scope2(flags) {
87244
+ var Scope3 = function Scope22(flags) {
87244
87245
  this.flags = flags;
87245
87246
  this.var = [];
87246
87247
  this.lexical = [];
@@ -87248,7 +87249,7 @@ to your top-level package.json.
87248
87249
  this.inClassFieldInit = false;
87249
87250
  };
87250
87251
  pp$3.enterScope = function(flags) {
87251
- this.scopeStack.push(new Scope(flags));
87252
+ this.scopeStack.push(new Scope3(flags));
87252
87253
  };
87253
87254
  pp$3.exitScope = function() {
87254
87255
  this.scopeStack.pop();
@@ -104406,7 +104407,7 @@ ${JSON.stringify(itemHeaders)}
104406
104407
  return this;
104407
104408
  }
104408
104409
  const scopeToMerge = typeof captureContext === "function" ? captureContext(this) : captureContext;
104409
- const [scopeInstance, requestSession] = scopeToMerge instanceof Scope ? [scopeToMerge.getScopeData(), scopeToMerge.getRequestSession()] : isPlainObject(scopeToMerge) ? [captureContext, captureContext.requestSession] : [];
104410
+ const [scopeInstance, requestSession] = scopeToMerge instanceof Scope3 ? [scopeToMerge.getScopeData(), scopeToMerge.getRequestSession()] : isPlainObject(scopeToMerge) ? [captureContext, captureContext.requestSession] : [];
104410
104411
  const { tags, extra, user, contexts, level, fingerprint = [], propagationContext } = scopeInstance || {};
104411
104412
  this._tags = { ...this._tags, ...tags };
104412
104413
  this._extra = { ...this._extra, ...extra };
@@ -104602,24 +104603,24 @@ ${JSON.stringify(itemHeaders)}
104602
104603
  }
104603
104604
  }
104604
104605
  };
104605
- var Scope = ScopeClass;
104606
+ var Scope3 = ScopeClass;
104606
104607
  function getDefaultCurrentScope() {
104607
- return getGlobalSingleton("defaultCurrentScope", () => new Scope());
104608
+ return getGlobalSingleton("defaultCurrentScope", () => new Scope3());
104608
104609
  }
104609
104610
  function getDefaultIsolationScope() {
104610
- return getGlobalSingleton("defaultIsolationScope", () => new Scope());
104611
+ return getGlobalSingleton("defaultIsolationScope", () => new Scope3());
104611
104612
  }
104612
104613
  var AsyncContextStack = class {
104613
104614
  constructor(scope, isolationScope) {
104614
104615
  let assignedScope;
104615
104616
  if (!scope) {
104616
- assignedScope = new Scope();
104617
+ assignedScope = new Scope3();
104617
104618
  } else {
104618
104619
  assignedScope = scope;
104619
104620
  }
104620
104621
  let assignedIsolationScope;
104621
104622
  if (!isolationScope) {
104622
- assignedIsolationScope = new Scope();
104623
+ assignedIsolationScope = new Scope3();
104623
104624
  } else {
104624
104625
  assignedIsolationScope = isolationScope;
104625
104626
  }
@@ -104746,7 +104747,7 @@ ${JSON.stringify(itemHeaders)}
104746
104747
  return acs.getIsolationScope();
104747
104748
  }
104748
104749
  function getGlobalScope() {
104749
- return getGlobalSingleton("globalScope", () => new Scope());
104750
+ return getGlobalSingleton("globalScope", () => new Scope3());
104750
104751
  }
104751
104752
  function withScope(...rest) {
104752
104753
  const carrier = getMainCarrier();
@@ -106104,7 +106105,7 @@ ${JSON.stringify(itemHeaders)}
106104
106105
  if (!captureContext) {
106105
106106
  return scope;
106106
106107
  }
106107
- const finalScope = scope ? scope.clone() : new Scope();
106108
+ const finalScope = scope ? scope.clone() : new Scope3();
106108
106109
  finalScope.update(captureContext);
106109
106110
  return finalScope;
106110
106111
  }
@@ -107265,7 +107266,7 @@ Reason: ${reason}`
107265
107266
  };
107266
107267
  applySdkMetadata(clientOptions, "node");
107267
107268
  var client2 = new ServerRuntimeClient(clientOptions);
107268
- var scope = new Scope();
107269
+ var scope = new Scope3();
107269
107270
  scope.setClient(client2);
107270
107271
  setTelemetryDataOnScope(options, scope, bundler);
107271
107272
  return {
@@ -129553,11 +129554,18 @@ if (typeof module !== "undefined") {
129553
129554
  // ../cli-error-reporting/src/components/ErrorMessage.tsx
129554
129555
  init_esm_shims();
129555
129556
  var import_react3 = __toESM(require_react(), 1);
129557
+ function getOriginalCause(error) {
129558
+ if (isCliError(error)) {
129559
+ return getOriginalCause(error.cause());
129560
+ }
129561
+ return error;
129562
+ }
129556
129563
  var ErrorMessage = ({ message, cause, explanation, hint }) => {
129564
+ const originalCause = getOriginalCause(cause);
129557
129565
  return /* @__PURE__ */ import_react3.default.createElement(
129558
129566
  ErrorDetails,
129559
129567
  {
129560
- message: cause ? /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, message, " Cause: ", cause.message) : message,
129568
+ message: originalCause ? /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, message, " Cause: ", originalCause.message) : message,
129561
129569
  hint,
129562
129570
  explanation
129563
129571
  }
@@ -129738,7 +129746,7 @@ function getErrorComponent(code, cause) {
129738
129746
  return () => /* @__PURE__ */ import_react6.default.createElement(
129739
129747
  ErrorMessage,
129740
129748
  {
129741
- message: `Generating a Wix App requires the usage of a supported package manager`,
129749
+ message: `Unsupported package manager detected. Please use a supported one.`,
129742
129750
  hint: `Expected Yarn or NPM but ${packageManagerName ? `got ${packageManagerName}` : `failed to detect a package manager`}`
129743
129751
  }
129744
129752
  );
@@ -129991,6 +129999,23 @@ function getErrorComponent(code, cause) {
129991
129999
  }
129992
130000
  );
129993
130001
  },
130002
+ TSConfigNotFound: ({ configPath }) => {
130003
+ return () => /* @__PURE__ */ import_react6.default.createElement(
130004
+ ErrorMessage,
130005
+ {
130006
+ message: `TypeScript config not found at \`${configPath}\``
130007
+ }
130008
+ );
130009
+ },
130010
+ InvalidTSConfigError: ({ configPath }) => {
130011
+ return () => /* @__PURE__ */ import_react6.default.createElement(
130012
+ ErrorMessage,
130013
+ {
130014
+ message: defaultOutdent`
130015
+ Invalid TypeScript configuration found at \`${configPath}\``
130016
+ }
130017
+ );
130018
+ },
129994
130019
  InvalidConfigSchemaError: ({ configPath, zodError }) => {
129995
130020
  return () => /* @__PURE__ */ import_react6.default.createElement(
129996
130021
  ErrorMessage,
@@ -130369,7 +130394,7 @@ function getErrorComponent(code, cause) {
130369
130394
  return () => /* @__PURE__ */ import_react6.default.createElement(SystemErrorMessage, { message: "Failed to fetch cli package details." });
130370
130395
  },
130371
130396
  FailedToGetResolveNpmDependenciesResult: () => {
130372
- return () => /* @__PURE__ */ import_react6.default.createElement(SystemErrorMessage, { message: "Failed to resolve Wix's lockfile." });
130397
+ return () => /* @__PURE__ */ import_react6.default.createElement(SystemErrorMessage, { message: `Failed to resolve "wix.lock" file.` });
130373
130398
  },
130374
130399
  CliAppVersionMismatch: ({ cliVersion, cliAppVersion }) => {
130375
130400
  return () => /* @__PURE__ */ import_react6.default.createElement(
@@ -130802,6 +130827,9 @@ ${errorMessage}`
130802
130827
  message: `The version "${version2}" produced by the system does not conform to the expected semantic versioning format and could not be parsed.`
130803
130828
  }
130804
130829
  );
130830
+ },
130831
+ FailedToFetchWixLockFile: () => {
130832
+ return () => /* @__PURE__ */ import_react6.default.createElement(SystemErrorMessage, { message: `Failed to fetch "wix.lock" file.` });
130805
130833
  }
130806
130834
  });
130807
130835
  }
@@ -133445,6 +133473,7 @@ function getGitIgnoredFolder(projectFolder = "") {
133445
133473
 
133446
133474
  // ../cli-core-definitions/src/index.ts
133447
133475
  var WIX_CONFIG_FILENAME = "wix.config.json";
133476
+ var TS_CONFIG_FILENAME = "tsconfig.json";
133448
133477
  var USER_CONFIG_FILENAME = "user.config.json";
133449
133478
  var userConfigSchema = z.object({
133450
133479
  telemetry: z.boolean().default(true),
@@ -133453,6 +133482,9 @@ var userConfigSchema = z.object({
133453
133482
  function getWixConfigFilePath(projectFolder) {
133454
133483
  return join3(projectFolder, WIX_CONFIG_FILENAME);
133455
133484
  }
133485
+ function getTSConfigFilePath(projectFolder) {
133486
+ return join3(projectFolder, TS_CONFIG_FILENAME);
133487
+ }
133456
133488
  function getDebugLogFilePath(projectFolder) {
133457
133489
  return join3(getGitIgnoredFolder(projectFolder), "debug.log");
133458
133490
  }
@@ -133663,13 +133695,17 @@ var ComponentType;
133663
133695
  ComponentType4["APPLICATION_PROFILE"] = "APPLICATION_PROFILE";
133664
133696
  ComponentType4["TEXT_TO_SPEECH_ACTION_MESSAGE"] = "TEXT_TO_SPEECH_ACTION_MESSAGE";
133665
133697
  ComponentType4["AUDIENCE_PROVIDER"] = "AUDIENCE_PROVIDER";
133666
- ComponentType4["PRICING_PLANS_PRICING"] = "PRICING_PLANS_PRICING";
133698
+ ComponentType4["PRICING_PLANS_PRICE"] = "PRICING_PLANS_PRICE";
133667
133699
  ComponentType4["PRICING_PLAN_CUSTOMER_START_DATE_LIMIT"] = "PRICING_PLAN_CUSTOMER_START_DATE_LIMIT";
133668
133700
  ComponentType4["PRICING_PLAN_START_DATE_POLICY"] = "PRICING_PLAN_START_DATE_POLICY";
133669
133701
  ComponentType4["EVENTS_TICKET_RESERVATIONS"] = "EVENTS_TICKET_RESERVATIONS";
133670
133702
  ComponentType4["PAYMENTS_DISPUTE_SERVICE_PLUGIN"] = "PAYMENTS_DISPUTE_SERVICE_PLUGIN";
133671
133703
  ComponentType4["PRICING_PLANS_FEES"] = "PRICING_PLANS_FEES";
133672
133704
  ComponentType4["EDITOR_REACT_COMPONENT"] = "EDITOR_REACT_COMPONENT";
133705
+ ComponentType4["SUPPLIERS_HUB_MARKETPLACE"] = "SUPPLIERS_HUB_MARKETPLACE";
133706
+ ComponentType4["FORM_SCHEMA_DYNAMIC_VALUES"] = "FORM_SCHEMA_DYNAMIC_VALUES";
133707
+ ComponentType4["BLOG_PAYWALL_PROVIDER"] = "BLOG_PAYWALL_PROVIDER";
133708
+ ComponentType4["LOYALTY_CUSTOM_REWARDS_V2"] = "LOYALTY_CUSTOM_REWARDS_V2";
133673
133709
  })(ComponentType || (ComponentType = {}));
133674
133710
  var WidgetVertical;
133675
133711
  (function(WidgetVertical4) {
@@ -134236,6 +134272,11 @@ var ThumbnailsAlignment;
134236
134272
  ThumbnailsAlignment4["LEFT"] = "LEFT";
134237
134273
  ThumbnailsAlignment4["NONE"] = "NONE";
134238
134274
  })(ThumbnailsAlignment || (ThumbnailsAlignment = {}));
134275
+ var GIFType;
134276
+ (function(GIFType3) {
134277
+ GIFType3["GIF"] = "GIF";
134278
+ GIFType3["STICKER"] = "STICKER";
134279
+ })(GIFType || (GIFType = {}));
134239
134280
  var Source;
134240
134281
  (function(Source4) {
134241
134282
  Source4["HTML"] = "HTML";
@@ -134389,6 +134430,12 @@ var NotificationTopicType;
134389
134430
  NotificationTopicType4["PROMOTIONAL"] = "PROMOTIONAL";
134390
134431
  NotificationTopicType4["TRANSACTIONAL"] = "TRANSACTIONAL";
134391
134432
  })(NotificationTopicType || (NotificationTopicType = {}));
134433
+ var RecipientType;
134434
+ (function(RecipientType3) {
134435
+ RecipientType3["UNKNOWN_RECIPIENT_TYPE"] = "UNKNOWN_RECIPIENT_TYPE";
134436
+ RecipientType3["WIX_USER"] = "WIX_USER";
134437
+ RecipientType3["CONTACT"] = "CONTACT";
134438
+ })(RecipientType || (RecipientType = {}));
134392
134439
  var PlanFormPricingOption;
134393
134440
  (function(PlanFormPricingOption4) {
134394
134441
  PlanFormPricingOption4["UNKNOWN_OPTION"] = "UNKNOWN_OPTION";
@@ -134571,6 +134618,7 @@ var StringComponentType;
134571
134618
  var NumberOfColumns;
134572
134619
  (function(NumberOfColumns4) {
134573
134620
  NumberOfColumns4["UNKNOWN"] = "UNKNOWN";
134621
+ NumberOfColumns4["ZERO"] = "ZERO";
134574
134622
  NumberOfColumns4["ONE"] = "ONE";
134575
134623
  NumberOfColumns4["TWO"] = "TWO";
134576
134624
  NumberOfColumns4["THREE"] = "THREE";
@@ -134903,7 +134951,20 @@ var ParticipantType;
134903
134951
  ParticipantType4["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
134904
134952
  ParticipantType4["WIX_USER"] = "WIX_USER";
134905
134953
  ParticipantType4["CONTACT"] = "CONTACT";
134954
+ ParticipantType4["ANONYMOUS"] = "ANONYMOUS";
134906
134955
  })(ParticipantType || (ParticipantType = {}));
134956
+ var InterfaceConfigurationType;
134957
+ (function(InterfaceConfigurationType3) {
134958
+ InterfaceConfigurationType3["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
134959
+ InterfaceConfigurationType3["WIDGET_COMPONENT"] = "WIDGET_COMPONENT";
134960
+ InterfaceConfigurationType3["ITEM_SELECTION"] = "ITEM_SELECTION";
134961
+ })(InterfaceConfigurationType || (InterfaceConfigurationType = {}));
134962
+ var Scope;
134963
+ (function(Scope3) {
134964
+ Scope3["UNKNOWN_SCOPE"] = "UNKNOWN_SCOPE";
134965
+ Scope3["SPECIFIC_SITE"] = "SPECIFIC_SITE";
134966
+ Scope3["NON_SPECIFIC_SITE"] = "NON_SPECIFIC_SITE";
134967
+ })(Scope || (Scope = {}));
134907
134968
  var CssPropertyType;
134908
134969
  (function(CssPropertyType4) {
134909
134970
  CssPropertyType4["UNKNOWN_CssPropertyType"] = "UNKNOWN_CssPropertyType";
@@ -135109,6 +135170,7 @@ var SITE_WIDGETS_DIR = join4(SITE_DIR, "widgets", CUSTOM_ELEMENTS_DIR);
135109
135170
  var SITE_PLUGINS_DIR = join4(SITE_DIR, "plugins", CUSTOM_ELEMENTS_DIR);
135110
135171
  var BLOCKS_WIDGETS_DIR = join4(SITE_DIR, "widgets", "blocks");
135111
135172
  var BLOCKS_WIDGET_PANELS_DIR = "panels";
135173
+ var WORKER_STATICS_FOLDER = "worker";
135112
135174
  var RELATIVE_ASSET_PATH_REGEX = /^(?:\.\.?\/)*[\w\-+]+(\/[\w\-+]+)*\.(jpg|svg|png)$/;
135113
135175
  var HTTP_REGEX = /^(https?):\/\/[^\s/$.?#].[^\s]*$/;
135114
135176
  function getBackendOptimizedDir(projectFolder) {
@@ -135153,6 +135215,9 @@ function getDistFolder(projectFolder) {
135153
135215
  function getAppBuildFolder(projectFolder) {
135154
135216
  return join4(getDistFolder(projectFolder), "statics");
135155
135217
  }
135218
+ function getAppWorkerBuildFolder(projectFolder) {
135219
+ return join4(getAppBuildFolder(projectFolder), WORKER_STATICS_FOLDER);
135220
+ }
135156
135221
  function getAppBackendBuildFolder(projectFolder) {
135157
135222
  return join4(getDistFolder(projectFolder), "backend");
135158
135223
  }
@@ -135200,6 +135265,9 @@ var wixConfigSchema = wixPublicConfigSchema.extend({
135200
135265
  sentryDSN: z.string().optional(),
135201
135266
  trusted: z.boolean().optional()
135202
135267
  }).strict();
135268
+ var tsConfigSchema = z.object({
135269
+ include: z.array(z.string()).optional()
135270
+ }).passthrough();
135203
135271
  var appConfigSchema = z.object({
135204
135272
  siteId: z.string().uuid().optional(),
135205
135273
  devArmTag: z.string().optional(),
@@ -135435,17 +135503,11 @@ var sitePluginConfigSchema = z.object({
135435
135503
  }).strict();
135436
135504
  var blocksWidgetConfigSchema = z.object({
135437
135505
  ...baseConfig,
135438
- id: z.string().uuid().describe("The ID (GUID) is a unique identifier for your element."),
135439
- name: z.string().min(1).describe(
135440
- "The name of your element as it will appear in the Wix App Dashboard"
135441
- )
135506
+ id: z.string().uuid().describe("The ID (GUID) is a unique identifier for your element.")
135442
135507
  }).strict();
135443
135508
  var blocksWidgetPanelConfigSchema = z.object({
135444
135509
  ...baseConfig,
135445
- id: z.string().uuid().describe("The ID (GUID) is a unique identifier for your element."),
135446
- name: z.string().min(1),
135447
- height: z.number().min(150).describe("Height of the panel in pixels."),
135448
- width: z.enum([PanelSizeWidth.LARGE, PanelSizeWidth.MEDIUM, PanelSizeWidth.SMALL]).describe("Width of the panel.")
135510
+ id: z.string().uuid().describe("The ID (GUID) is a unique identifier for your element.")
135449
135511
  });
135450
135512
  var embeddedScriptParamsOverrideSchema = z.record(z.string());
135451
135513
  var topologySchema = z.object({
@@ -135673,7 +135735,10 @@ var _node = {
135673
135735
  audioData: "_audioData",
135674
135736
  nodes: "_node"
135675
135737
  };
135676
- var _numberInput = { description: "_richContent" };
135738
+ var _numberInput = {
135739
+ default: "google.protobuf.DoubleValue",
135740
+ description: "_richContent"
135741
+ };
135677
135742
  var _numberType = {
135678
135743
  maximum: "google.protobuf.DoubleValue",
135679
135744
  minimum: "google.protobuf.DoubleValue",
@@ -139034,13 +139099,17 @@ var ComponentType3;
139034
139099
  ComponentType4["APPLICATION_PROFILE"] = "APPLICATION_PROFILE";
139035
139100
  ComponentType4["TEXT_TO_SPEECH_ACTION_MESSAGE"] = "TEXT_TO_SPEECH_ACTION_MESSAGE";
139036
139101
  ComponentType4["AUDIENCE_PROVIDER"] = "AUDIENCE_PROVIDER";
139037
- ComponentType4["PRICING_PLANS_PRICING"] = "PRICING_PLANS_PRICING";
139102
+ ComponentType4["PRICING_PLANS_PRICE"] = "PRICING_PLANS_PRICE";
139038
139103
  ComponentType4["PRICING_PLAN_CUSTOMER_START_DATE_LIMIT"] = "PRICING_PLAN_CUSTOMER_START_DATE_LIMIT";
139039
139104
  ComponentType4["PRICING_PLAN_START_DATE_POLICY"] = "PRICING_PLAN_START_DATE_POLICY";
139040
139105
  ComponentType4["EVENTS_TICKET_RESERVATIONS"] = "EVENTS_TICKET_RESERVATIONS";
139041
139106
  ComponentType4["PAYMENTS_DISPUTE_SERVICE_PLUGIN"] = "PAYMENTS_DISPUTE_SERVICE_PLUGIN";
139042
139107
  ComponentType4["PRICING_PLANS_FEES"] = "PRICING_PLANS_FEES";
139043
139108
  ComponentType4["EDITOR_REACT_COMPONENT"] = "EDITOR_REACT_COMPONENT";
139109
+ ComponentType4["SUPPLIERS_HUB_MARKETPLACE"] = "SUPPLIERS_HUB_MARKETPLACE";
139110
+ ComponentType4["FORM_SCHEMA_DYNAMIC_VALUES"] = "FORM_SCHEMA_DYNAMIC_VALUES";
139111
+ ComponentType4["BLOG_PAYWALL_PROVIDER"] = "BLOG_PAYWALL_PROVIDER";
139112
+ ComponentType4["LOYALTY_CUSTOM_REWARDS_V2"] = "LOYALTY_CUSTOM_REWARDS_V2";
139044
139113
  })(ComponentType3 || (ComponentType3 = {}));
139045
139114
  var WidgetVertical3;
139046
139115
  (function(WidgetVertical4) {
@@ -139607,6 +139676,11 @@ var ThumbnailsAlignment3;
139607
139676
  ThumbnailsAlignment4["LEFT"] = "LEFT";
139608
139677
  ThumbnailsAlignment4["NONE"] = "NONE";
139609
139678
  })(ThumbnailsAlignment3 || (ThumbnailsAlignment3 = {}));
139679
+ var GIFType2;
139680
+ (function(GIFType3) {
139681
+ GIFType3["GIF"] = "GIF";
139682
+ GIFType3["STICKER"] = "STICKER";
139683
+ })(GIFType2 || (GIFType2 = {}));
139610
139684
  var Source3;
139611
139685
  (function(Source4) {
139612
139686
  Source4["HTML"] = "HTML";
@@ -139760,6 +139834,12 @@ var NotificationTopicType3;
139760
139834
  NotificationTopicType4["PROMOTIONAL"] = "PROMOTIONAL";
139761
139835
  NotificationTopicType4["TRANSACTIONAL"] = "TRANSACTIONAL";
139762
139836
  })(NotificationTopicType3 || (NotificationTopicType3 = {}));
139837
+ var RecipientType2;
139838
+ (function(RecipientType3) {
139839
+ RecipientType3["UNKNOWN_RECIPIENT_TYPE"] = "UNKNOWN_RECIPIENT_TYPE";
139840
+ RecipientType3["WIX_USER"] = "WIX_USER";
139841
+ RecipientType3["CONTACT"] = "CONTACT";
139842
+ })(RecipientType2 || (RecipientType2 = {}));
139763
139843
  var PlanFormPricingOption3;
139764
139844
  (function(PlanFormPricingOption4) {
139765
139845
  PlanFormPricingOption4["UNKNOWN_OPTION"] = "UNKNOWN_OPTION";
@@ -139942,6 +140022,7 @@ var StringComponentType3;
139942
140022
  var NumberOfColumns3;
139943
140023
  (function(NumberOfColumns4) {
139944
140024
  NumberOfColumns4["UNKNOWN"] = "UNKNOWN";
140025
+ NumberOfColumns4["ZERO"] = "ZERO";
139945
140026
  NumberOfColumns4["ONE"] = "ONE";
139946
140027
  NumberOfColumns4["TWO"] = "TWO";
139947
140028
  NumberOfColumns4["THREE"] = "THREE";
@@ -140175,6 +140256,7 @@ var WixCodePublishTaskName3;
140175
140256
  WixCodePublishTaskName4["IMPORTED_NAMESPACES_ANALYSIS"] = "IMPORTED_NAMESPACES_ANALYSIS";
140176
140257
  WixCodePublishTaskName4["PAGE_DETAILS_ANALYSIS"] = "PAGE_DETAILS_ANALYSIS";
140177
140258
  WixCodePublishTaskName4["USER_CODE_VALIDATION"] = "USER_CODE_VALIDATION";
140259
+ WixCodePublishTaskName4["CODE_PACKAGES_REGISTRATION"] = "CODE_PACKAGES_REGISTRATION";
140178
140260
  })(WixCodePublishTaskName3 || (WixCodePublishTaskName3 = {}));
140179
140261
  var ChannelConfigurationChannelType3;
140180
140262
  (function(ChannelConfigurationChannelType4) {
@@ -140273,7 +140355,20 @@ var ParticipantType3;
140273
140355
  ParticipantType4["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
140274
140356
  ParticipantType4["WIX_USER"] = "WIX_USER";
140275
140357
  ParticipantType4["CONTACT"] = "CONTACT";
140358
+ ParticipantType4["ANONYMOUS"] = "ANONYMOUS";
140276
140359
  })(ParticipantType3 || (ParticipantType3 = {}));
140360
+ var InterfaceConfigurationType2;
140361
+ (function(InterfaceConfigurationType3) {
140362
+ InterfaceConfigurationType3["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
140363
+ InterfaceConfigurationType3["WIDGET_COMPONENT"] = "WIDGET_COMPONENT";
140364
+ InterfaceConfigurationType3["ITEM_SELECTION"] = "ITEM_SELECTION";
140365
+ })(InterfaceConfigurationType2 || (InterfaceConfigurationType2 = {}));
140366
+ var Scope2;
140367
+ (function(Scope3) {
140368
+ Scope3["UNKNOWN_SCOPE"] = "UNKNOWN_SCOPE";
140369
+ Scope3["SPECIFIC_SITE"] = "SPECIFIC_SITE";
140370
+ Scope3["NON_SPECIFIC_SITE"] = "NON_SPECIFIC_SITE";
140371
+ })(Scope2 || (Scope2 = {}));
140277
140372
  var CssPropertyType3;
140278
140373
  (function(CssPropertyType4) {
140279
140374
  CssPropertyType4["UNKNOWN_CssPropertyType"] = "UNKNOWN_CssPropertyType";
@@ -140668,7 +140763,7 @@ var marketListingSchema = z.object({
140668
140763
  slug: z.string()
140669
140764
  })
140670
140765
  )
140671
- })
140766
+ }).optional()
140672
140767
  });
140673
140768
  var managedAppsSchema = z.object({
140674
140769
  managedApps: z.array(
@@ -140875,7 +140970,7 @@ var DevCenterClient = class {
140875
140970
  getRequiredAppIds = async (appId) => {
140876
140971
  try {
140877
140972
  const marketListing = await this.getMarketListing(appId);
140878
- return marketListing?.installationRequirement.requiredApps.map(
140973
+ return marketListing?.installationRequirement?.requiredApps.map(
140879
140974
  ({ id }) => id
140880
140975
  ) ?? [];
140881
140976
  } catch (e) {
@@ -140919,12 +141014,12 @@ var DevCenterClient = class {
140919
141014
  }) => {
140920
141015
  try {
140921
141016
  const marketListing = await this.getMarketListing(appId);
140922
- const appAlreadyRequired = marketListing?.installationRequirement.requiredApps.some(
141017
+ const appAlreadyRequired = marketListing?.installationRequirement?.requiredApps.some(
140923
141018
  (requiredApp2) => requiredApp2.id === appIdToRequire
140924
141019
  );
140925
141020
  if (marketListing && !appAlreadyRequired) {
140926
141021
  const newRequiredApps = [
140927
- ...marketListing.installationRequirement.requiredApps,
141022
+ ...marketListing.installationRequirement?.requiredApps ?? [],
140928
141023
  {
140929
141024
  id: appIdToRequire,
140930
141025
  slug: appIdToRequire
@@ -141593,23 +141688,19 @@ var Uploader = class {
141593
141688
  return map;
141594
141689
  }
141595
141690
  async createPresignedUrls(appId, fileNames, storageTarget = StorageTarget.MEDIA_PLATFORM) {
141596
- try {
141597
- const { data } = await pRetry2(
141598
- async () => this.httpClient.request(
141599
- createPresignedUrls({
141600
- appId,
141601
- fileNames,
141602
- storageTarget
141603
- })
141604
- ),
141605
- {
141606
- retries: 3
141607
- }
141608
- );
141609
- return data;
141610
- } catch (e) {
141611
- throw new Error("Failed to create presigned URL for one more files", e);
141612
- }
141691
+ const { data } = await pRetry2(
141692
+ async () => this.httpClient.request(
141693
+ createPresignedUrls({
141694
+ appId,
141695
+ fileNames,
141696
+ storageTarget
141697
+ })
141698
+ ),
141699
+ {
141700
+ retries: 3
141701
+ }
141702
+ );
141703
+ return data;
141613
141704
  }
141614
141705
  async uploadFile(fileName, url, fields5, fileStream) {
141615
141706
  const formData = this.buildFormData(fields5, fileName, fileStream);
@@ -145177,7 +145268,7 @@ async function loadBlocksComponents(projectFolder, config) {
145177
145268
  ...blocksComponents,
145178
145269
  DevCenterComponent.BlocksMainComponent({
145179
145270
  id,
145180
- platforms: [PlatformType.Site()]
145271
+ platforms: [PlatformType.Blocks()]
145181
145272
  })
145182
145273
  ];
145183
145274
  }
@@ -146135,8 +146226,10 @@ export {
146135
146226
  SiteAuthProvider,
146136
146227
  isLoggedInToAccount,
146137
146228
  WIX_CONFIG_FILENAME,
146229
+ TS_CONFIG_FILENAME,
146138
146230
  USER_CONFIG_FILENAME,
146139
146231
  userConfigSchema,
146232
+ getTSConfigFilePath,
146140
146233
  getDebugLogFilePath,
146141
146234
  ComponentType,
146142
146235
  RegionType,
@@ -146149,10 +146242,10 @@ export {
146149
146242
  CustomElementScriptType,
146150
146243
  HeightMode,
146151
146244
  MonitoringType,
146152
- PanelSizeWidth,
146153
146245
  PanelContentType,
146154
146246
  require_build,
146155
146247
  APP_CONFIG_PATH,
146248
+ BLOCKS_TYPES_PATH,
146156
146249
  DASHBOARD_PAGES_DIR,
146157
146250
  DASHBOARD_PLUGINS_DIR,
146158
146251
  DASHBOARD_MENU_PLUGINS_DIR,
@@ -146161,6 +146254,7 @@ export {
146161
146254
  SITE_WIDGETS_DIR,
146162
146255
  SITE_PLUGINS_DIR,
146163
146256
  BLOCKS_WIDGET_PANELS_DIR,
146257
+ WORKER_STATICS_FOLDER,
146164
146258
  RELATIVE_ASSET_PATH_REGEX,
146165
146259
  getBackendOptimizedDir,
146166
146260
  getDashboardPagesDir,
@@ -146175,9 +146269,11 @@ export {
146175
146269
  getEventsFolder,
146176
146270
  getServicePluginsFolder,
146177
146271
  getAppBuildFolder,
146272
+ getAppWorkerBuildFolder,
146178
146273
  getAppBackendBuildFolder,
146179
146274
  getBlocksTypesPath,
146180
146275
  getAppManifestPath,
146276
+ tsConfigSchema,
146181
146277
  PlatformType,
146182
146278
  saveWixConfig,
146183
146279
  require_picomatch2 as require_picomatch,
@@ -146383,4 +146479,4 @@ mustache/mustache.mjs:
146383
146479
  * http://github.com/janl/mustache.js
146384
146480
  *)
146385
146481
  */
146386
- //# sourceMappingURL=chunk-H27IPZI4.js.map
146482
+ //# sourceMappingURL=chunk-5KBGN6AI.js.map