@wix/create-app 0.0.134 → 0.0.136

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/README.md CHANGED
@@ -37,7 +37,7 @@ Dive deeper into the Wix CLI:
37
37
 
38
38
  ---
39
39
 
40
- ## **Feedback and support 🧑‍💻**
40
+ ## **Feedback and support 🧑‍💻 **
41
41
 
42
42
  Help us improve the Wix CLI\!
43
43
 
package/build/index.js CHANGED
@@ -15389,13 +15389,13 @@ var require_http_client = __commonJS({
15389
15389
  static isHttpError(payload5) {
15390
15390
  return !!(payload5 === null || payload5 === void 0 ? void 0 : payload5.isWixHttpError);
15391
15391
  }
15392
- async request(requestOptionsOrFactory, overrides) {
15392
+ async request(requestOptionsOrFactory, overrides2) {
15393
15393
  var _a3, _b;
15394
15394
  const host = (0, utils_1.resolveHost)(this.opts);
15395
15395
  const protocol = (0, utils_1.resolveProtocol)(this.opts);
15396
15396
  const urlObject = { protocol, host };
15397
15397
  const requestOptions = typeof requestOptionsOrFactory === "function" ? requestOptionsOrFactory({ isSSR: this.opts.isSSR, host }) : requestOptionsOrFactory;
15398
- const signedInstance = (overrides === null || overrides === void 0 ? void 0 : overrides.signedInstance) || await ((_b = (_a3 = this.opts).getAppToken) === null || _b === void 0 ? void 0 : _b.call(_a3)) || "";
15398
+ const signedInstance = (overrides2 === null || overrides2 === void 0 ? void 0 : overrides2.signedInstance) || await ((_b = (_a3 = this.opts).getAppToken) === null || _b === void 0 ? void 0 : _b.call(_a3)) || "";
15399
15399
  const headers = this.getHeaders(requestOptions, signedInstance, urlObject);
15400
15400
  const options = (0, options_1.buildOptions)({
15401
15401
  requestOptions,
@@ -58188,7 +58188,8 @@ var CliUserErrorCode = (0, import_variant11.variant)({
58188
58188
  ProjectIsNotLinkable: {},
58189
58189
  MissingPresetCssForSiteComponent: (0, import_variant11.fields)(),
58190
58190
  AppInstallerSiteNotFound: (0, import_variant11.fields)(),
58191
- EAccessPermissionDenied: {}
58191
+ EAccessPermissionDenied: {},
58192
+ InvalidSiteComponentElementItem: (0, import_variant11.fields)()
58192
58193
  });
58193
58194
  var CliErrorCode = (0, import_variant11.variant)({
58194
58195
  ...CliSystemErrorCode,
@@ -68851,11 +68852,15 @@ ${errorMessage2}`
68851
68852
  ProjectIsNotLinkable: () => {
68852
68853
  return () => /* @__PURE__ */ import_react77.default.createElement(ErrorMessage, { message: "Only Astro projects can be linked to Wix. The current project is missing an Astro configuration file." });
68853
68854
  },
68854
- MissingPresetCssForSiteComponent: ({ componentId, presetName }) => {
68855
+ MissingPresetCssForSiteComponent: ({
68856
+ componentId,
68857
+ presetName,
68858
+ elementBasePath
68859
+ }) => {
68855
68860
  return () => /* @__PURE__ */ import_react77.default.createElement(
68856
68861
  ErrorMessage,
68857
68862
  {
68858
- message: `Site component "${componentId}" is missing preset CSS file for the preset key "${presetName}".`
68863
+ message: `Site component "${componentId}" is missing preset CSS file for the preset key "${presetName}"${elementBasePath ? ` in the element base path "${elementBasePath}".` : "."}`
68859
68864
  }
68860
68865
  );
68861
68866
  },
@@ -68890,6 +68895,15 @@ ${errorMessage2}`
68890
68895
  message: `The version "${version}" produced by the system does not conform to the expected semantic versioning format and could not be parsed.`
68891
68896
  }
68892
68897
  );
68898
+ },
68899
+ InvalidSiteComponentElementItem: ({ elementPath }) => {
68900
+ return () => /* @__PURE__ */ import_react77.default.createElement(
68901
+ ErrorMessage,
68902
+ {
68903
+ cause,
68904
+ message: `Site component element config is invalid at ${elementPath}`
68905
+ }
68906
+ );
68893
68907
  }
68894
68908
  });
68895
68909
  }
@@ -73230,10 +73244,15 @@ async function readUserConfig() {
73230
73244
 
73231
73245
  // ../cli-panorama/src/createPanorama.ts
73232
73246
  var globalConfig = createGlobalConfig();
73247
+ var overrides = getTestOverrides();
73248
+ if (overrides.panoramaReporterUrl) {
73249
+ globalConfig.setReporter(
73250
+ nodeReporter(overrides.panoramaReporterUrl, { silent: true })
73251
+ );
73252
+ }
73233
73253
  async function createPanorama(options) {
73234
73254
  const { version, artifact, userId } = options;
73235
73255
  const userConfig = await readUserConfig();
73236
- const overrides = getTestOverrides();
73237
73256
  const factory = panoramaClientFactory({
73238
73257
  baseParams: {
73239
73258
  platform: Platform.Standalone,
@@ -73247,29 +73266,8 @@ async function createPanorama(options) {
73247
73266
  silent: true
73248
73267
  }
73249
73268
  }).withGlobalConfig(globalConfig).setMuted(!userConfig.telemetry);
73250
- if (overrides.panoramaReporterUrl) {
73251
- return factory.withReporter(nodeReporter2(overrides.panoramaReporterUrl));
73252
- }
73253
73269
  return factory;
73254
73270
  }
73255
- function nodeReporter2(url2) {
73256
- let queue = Promise.resolve();
73257
- const noop8 = () => {
73258
- };
73259
- return (logMessage) => {
73260
- const body = JSON.stringify({ logMessage });
73261
- queue = queue.then(() => {
73262
- return fetch(url2, {
73263
- method: "POST",
73264
- body,
73265
- headers: {
73266
- "Content-Type": "application/json"
73267
- }
73268
- }).then(noop8).catch(noop8);
73269
- });
73270
- return true;
73271
- };
73272
- }
73273
73271
 
73274
73272
  // src/bi/index.ts
73275
73273
  init_esm_shims();
@@ -73547,7 +73545,7 @@ function reportCommandStartEvent({
73547
73545
  var package_default = {
73548
73546
  name: "@wix/create-app",
73549
73547
  description: "Create Wix apps",
73550
- version: "0.0.134",
73548
+ version: "0.0.136",
73551
73549
  author: "Ihor Machuzhak",
73552
73550
  bin: "bin/index.cjs",
73553
73551
  devDependencies: {
@@ -78162,6 +78160,12 @@ function resolveComWixpressDevcenterAppmarketlistingMarketListingServiceUrl(opts
78162
78160
  srcPath: "/v1/marketListings",
78163
78161
  destPath: "/v1/marketListings"
78164
78162
  }
78163
+ ],
78164
+ "vibe._base_domain_": [
78165
+ {
78166
+ srcPath: "/_api/app-market-listing",
78167
+ destPath: ""
78168
+ }
78165
78169
  ]
78166
78170
  };
78167
78171
  return resolveUrl(Object.assign(opts, { domainToMappings }));
@@ -79133,6 +79137,7 @@ var ComponentType;
79133
79137
  ComponentType3["TAX_EXEMPT_GROUPS_PROVIDER"] = "TAX_EXEMPT_GROUPS_PROVIDER";
79134
79138
  ComponentType3["BOOKING_AUTOMATIONS_CONFIGURATION"] = "BOOKING_AUTOMATIONS_CONFIGURATION";
79135
79139
  ComponentType3["WIX_VIBE_COMPONENT"] = "WIX_VIBE_COMPONENT";
79140
+ ComponentType3["WIXEL"] = "WIXEL";
79136
79141
  })(ComponentType || (ComponentType = {}));
79137
79142
  var WidgetVertical;
79138
79143
  (function(WidgetVertical3) {
@@ -79950,11 +79955,11 @@ var PlanFormPricingOption;
79950
79955
  PlanFormPricingOption3["RECURRING"] = "RECURRING";
79951
79956
  })(PlanFormPricingOption || (PlanFormPricingOption = {}));
79952
79957
  var PlanFormPricingType;
79953
- (function(PlanFormPricingType2) {
79954
- PlanFormPricingType2["UNKNOWN_OPTION"] = "UNKNOWN_OPTION";
79955
- PlanFormPricingType2["FREE"] = "FREE";
79956
- PlanFormPricingType2["ONE_TIME"] = "ONE_TIME";
79957
- PlanFormPricingType2["RECURRING"] = "RECURRING";
79958
+ (function(PlanFormPricingType3) {
79959
+ PlanFormPricingType3["UNKNOWN_OPTION"] = "UNKNOWN_OPTION";
79960
+ PlanFormPricingType3["FREE"] = "FREE";
79961
+ PlanFormPricingType3["ONE_TIME"] = "ONE_TIME";
79962
+ PlanFormPricingType3["RECURRING"] = "RECURRING";
79958
79963
  })(PlanFormPricingType || (PlanFormPricingType = {}));
79959
79964
  var PlanFormDefaultSection;
79960
79965
  (function(PlanFormDefaultSection3) {
@@ -81072,6 +81077,7 @@ var Archetype;
81072
81077
  Archetype3["Cart"] = "Cart";
81073
81078
  Archetype3["ContactForm"] = "ContactForm";
81074
81079
  Archetype3["Frame"] = "Frame";
81080
+ Archetype3["Divider"] = "Divider";
81075
81081
  })(Archetype || (Archetype = {}));
81076
81082
  var NativeStateType;
81077
81083
  (function(NativeStateType3) {
@@ -81332,6 +81338,22 @@ var RegionScopeScope;
81332
81338
  RegionScopeScope3["SPECIFIC_REGIONS"] = "SPECIFIC_REGIONS";
81333
81339
  RegionScopeScope3["WORLDWIDE"] = "WORLDWIDE";
81334
81340
  })(RegionScopeScope || (RegionScopeScope = {}));
81341
+ var VibeActionType;
81342
+ (function(VibeActionType3) {
81343
+ VibeActionType3["UNKNOWN_ActionType"] = "UNKNOWN_ActionType";
81344
+ VibeActionType3["OPEN_DASHBOARD"] = "OPEN_DASHBOARD";
81345
+ VibeActionType3["OPEN_CUSTOM_PANEL"] = "OPEN_CUSTOM_PANEL";
81346
+ })(VibeActionType || (VibeActionType = {}));
81347
+ var AssetType;
81348
+ (function(AssetType3) {
81349
+ AssetType3["UNKNOWN"] = "UNKNOWN";
81350
+ AssetType3["IMAGE"] = "IMAGE";
81351
+ AssetType3["VIDEO"] = "VIDEO";
81352
+ AssetType3["LOGO"] = "LOGO";
81353
+ AssetType3["EVENT"] = "EVENT";
81354
+ AssetType3["FORM"] = "FORM";
81355
+ AssetType3["PDF"] = "PDF";
81356
+ })(AssetType || (AssetType = {}));
81335
81357
  var SaleType;
81336
81358
  (function(SaleType2) {
81337
81359
  SaleType2["UNKNOWN_SALE_TYPE"] = "UNKNOWN_SALE_TYPE";
@@ -81758,6 +81780,7 @@ var ComponentType2;
81758
81780
  ComponentType3["TAX_EXEMPT_GROUPS_PROVIDER"] = "TAX_EXEMPT_GROUPS_PROVIDER";
81759
81781
  ComponentType3["BOOKING_AUTOMATIONS_CONFIGURATION"] = "BOOKING_AUTOMATIONS_CONFIGURATION";
81760
81782
  ComponentType3["WIX_VIBE_COMPONENT"] = "WIX_VIBE_COMPONENT";
81783
+ ComponentType3["WIXEL"] = "WIXEL";
81761
81784
  })(ComponentType2 || (ComponentType2 = {}));
81762
81785
  var WidgetVertical2;
81763
81786
  (function(WidgetVertical3) {
@@ -82574,6 +82597,13 @@ var PlanFormPricingOption2;
82574
82597
  PlanFormPricingOption3["ONE_TIME"] = "ONE_TIME";
82575
82598
  PlanFormPricingOption3["RECURRING"] = "RECURRING";
82576
82599
  })(PlanFormPricingOption2 || (PlanFormPricingOption2 = {}));
82600
+ var PlanFormPricingType2;
82601
+ (function(PlanFormPricingType3) {
82602
+ PlanFormPricingType3["UNKNOWN_OPTION"] = "UNKNOWN_OPTION";
82603
+ PlanFormPricingType3["FREE"] = "FREE";
82604
+ PlanFormPricingType3["ONE_TIME"] = "ONE_TIME";
82605
+ PlanFormPricingType3["RECURRING"] = "RECURRING";
82606
+ })(PlanFormPricingType2 || (PlanFormPricingType2 = {}));
82577
82607
  var PlanFormDefaultSection2;
82578
82608
  (function(PlanFormDefaultSection3) {
82579
82609
  PlanFormDefaultSection3["UNKNWON_PLAN_FORM_SECTION"] = "UNKNWON_PLAN_FORM_SECTION";
@@ -82582,6 +82612,8 @@ var PlanFormDefaultSection2;
82582
82612
  PlanFormDefaultSection3["PAGE_PERMISSIONS"] = "PAGE_PERMISSIONS";
82583
82613
  PlanFormDefaultSection3["PRICING_AND_DURATION"] = "PRICING_AND_DURATION";
82584
82614
  PlanFormDefaultSection3["ADVANCED_SETTINGS"] = "ADVANCED_SETTINGS";
82615
+ PlanFormDefaultSection3["PRICING"] = "PRICING";
82616
+ PlanFormDefaultSection3["DURATION"] = "DURATION";
82585
82617
  })(PlanFormDefaultSection2 || (PlanFormDefaultSection2 = {}));
82586
82618
  var PlanPeriodUnit2;
82587
82619
  (function(PlanPeriodUnit3) {
@@ -83688,6 +83720,7 @@ var Archetype2;
83688
83720
  Archetype3["Cart"] = "Cart";
83689
83721
  Archetype3["ContactForm"] = "ContactForm";
83690
83722
  Archetype3["Frame"] = "Frame";
83723
+ Archetype3["Divider"] = "Divider";
83691
83724
  })(Archetype2 || (Archetype2 = {}));
83692
83725
  var NativeStateType2;
83693
83726
  (function(NativeStateType3) {
@@ -83948,6 +83981,22 @@ var RegionScopeScope2;
83948
83981
  RegionScopeScope3["SPECIFIC_REGIONS"] = "SPECIFIC_REGIONS";
83949
83982
  RegionScopeScope3["WORLDWIDE"] = "WORLDWIDE";
83950
83983
  })(RegionScopeScope2 || (RegionScopeScope2 = {}));
83984
+ var VibeActionType2;
83985
+ (function(VibeActionType3) {
83986
+ VibeActionType3["UNKNOWN_ActionType"] = "UNKNOWN_ActionType";
83987
+ VibeActionType3["OPEN_DASHBOARD"] = "OPEN_DASHBOARD";
83988
+ VibeActionType3["OPEN_CUSTOM_PANEL"] = "OPEN_CUSTOM_PANEL";
83989
+ })(VibeActionType2 || (VibeActionType2 = {}));
83990
+ var AssetType2;
83991
+ (function(AssetType3) {
83992
+ AssetType3["UNKNOWN"] = "UNKNOWN";
83993
+ AssetType3["IMAGE"] = "IMAGE";
83994
+ AssetType3["VIDEO"] = "VIDEO";
83995
+ AssetType3["LOGO"] = "LOGO";
83996
+ AssetType3["EVENT"] = "EVENT";
83997
+ AssetType3["FORM"] = "FORM";
83998
+ AssetType3["PDF"] = "PDF";
83999
+ })(AssetType2 || (AssetType2 = {}));
83951
84000
  var OpenConsentIn2;
83952
84001
  (function(OpenConsentIn3) {
83953
84002
  OpenConsentIn3["NONE_VALUE"] = "NONE_VALUE";