@wix/create-headless-site 0.0.16 → 0.0.17

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
@@ -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,
@@ -48305,14 +48305,14 @@ var require_lib2 = __commonJS({
48305
48305
  if (hasMissingPlugin) {
48306
48306
  error.missingPlugin = details.missingPlugin;
48307
48307
  }
48308
- defineHidden(error, "clone", function clone(overrides = {}) {
48308
+ defineHidden(error, "clone", function clone(overrides2 = {}) {
48309
48309
  var _overrides$loc;
48310
48310
  const {
48311
48311
  line,
48312
48312
  column,
48313
48313
  index
48314
- } = (_overrides$loc = overrides.loc) != null ? _overrides$loc : loc;
48315
- return constructor(new Position(line, column, index), Object.assign({}, details, overrides.details));
48314
+ } = (_overrides$loc = overrides2.loc) != null ? _overrides$loc : loc;
48315
+ return constructor(new Position(line, column, index), Object.assign({}, details, overrides2.details));
48316
48316
  });
48317
48317
  defineHidden(error, "details", details);
48318
48318
  Object.defineProperty(error, "message", {
@@ -79572,7 +79572,8 @@ var CliUserErrorCode = (0, import_variant11.variant)({
79572
79572
  ProjectIsNotLinkable: {},
79573
79573
  MissingPresetCssForSiteComponent: (0, import_variant11.fields)(),
79574
79574
  AppInstallerSiteNotFound: (0, import_variant11.fields)(),
79575
- EAccessPermissionDenied: {}
79575
+ EAccessPermissionDenied: {},
79576
+ InvalidSiteComponentElementItem: (0, import_variant11.fields)()
79576
79577
  });
79577
79578
  var CliErrorCode = (0, import_variant11.variant)({
79578
79579
  ...CliSystemErrorCode,
@@ -90430,11 +90431,15 @@ ${errorMessage}`
90430
90431
  ProjectIsNotLinkable: () => {
90431
90432
  return () => /* @__PURE__ */ import_react78.default.createElement(ErrorMessage, { message: "Only Astro projects can be linked to Wix. The current project is missing an Astro configuration file." });
90432
90433
  },
90433
- MissingPresetCssForSiteComponent: ({ componentId, presetName }) => {
90434
+ MissingPresetCssForSiteComponent: ({
90435
+ componentId,
90436
+ presetName,
90437
+ elementBasePath
90438
+ }) => {
90434
90439
  return () => /* @__PURE__ */ import_react78.default.createElement(
90435
90440
  ErrorMessage,
90436
90441
  {
90437
- message: `Site component "${componentId}" is missing preset CSS file for the preset key "${presetName}".`
90442
+ message: `Site component "${componentId}" is missing preset CSS file for the preset key "${presetName}"${elementBasePath ? ` in the element base path "${elementBasePath}".` : "."}`
90438
90443
  }
90439
90444
  );
90440
90445
  },
@@ -90469,6 +90474,15 @@ ${errorMessage}`
90469
90474
  message: `The version "${version}" produced by the system does not conform to the expected semantic versioning format and could not be parsed.`
90470
90475
  }
90471
90476
  );
90477
+ },
90478
+ InvalidSiteComponentElementItem: ({ elementPath }) => {
90479
+ return () => /* @__PURE__ */ import_react78.default.createElement(
90480
+ ErrorMessage,
90481
+ {
90482
+ cause,
90483
+ message: `Site component element config is invalid at ${elementPath}`
90484
+ }
90485
+ );
90472
90486
  }
90473
90487
  });
90474
90488
  }
@@ -94788,10 +94802,15 @@ async function readUserConfig() {
94788
94802
 
94789
94803
  // ../cli-panorama/src/createPanorama.ts
94790
94804
  var globalConfig = createGlobalConfig();
94805
+ var overrides = getTestOverrides();
94806
+ if (overrides.panoramaReporterUrl) {
94807
+ globalConfig.setReporter(
94808
+ nodeReporter(overrides.panoramaReporterUrl, { silent: true })
94809
+ );
94810
+ }
94791
94811
  async function createPanorama(options) {
94792
94812
  const { version, artifact, userId } = options;
94793
94813
  const userConfig = await readUserConfig();
94794
- const overrides = getTestOverrides();
94795
94814
  const factory = panoramaClientFactory({
94796
94815
  baseParams: {
94797
94816
  platform: Platform.Standalone,
@@ -94805,29 +94824,8 @@ async function createPanorama(options) {
94805
94824
  silent: true
94806
94825
  }
94807
94826
  }).withGlobalConfig(globalConfig).setMuted(!userConfig.telemetry);
94808
- if (overrides.panoramaReporterUrl) {
94809
- return factory.withReporter(nodeReporter2(overrides.panoramaReporterUrl));
94810
- }
94811
94827
  return factory;
94812
94828
  }
94813
- function nodeReporter2(url2) {
94814
- let queue = Promise.resolve();
94815
- const noop8 = () => {
94816
- };
94817
- return (logMessage) => {
94818
- const body = JSON.stringify({ logMessage });
94819
- queue = queue.then(() => {
94820
- return fetch(url2, {
94821
- method: "POST",
94822
- body,
94823
- headers: {
94824
- "Content-Type": "application/json"
94825
- }
94826
- }).then(noop8).catch(noop8);
94827
- });
94828
- return true;
94829
- };
94830
- }
94831
94829
 
94832
94830
  // src/bi/index.ts
94833
94831
  init_esm_shims();
@@ -95047,7 +95045,7 @@ function wixCliCliError(params) {
95047
95045
  var package_default = {
95048
95046
  name: "@wix/create-headless-site",
95049
95047
  description: "Headless site creation wizard",
95050
- version: "0.0.16",
95048
+ version: "0.0.17",
95051
95049
  bin: "bin/index.cjs",
95052
95050
  devDependencies: {
95053
95051
  "@commander-js/extra-typings": "^13.0.0",
@@ -99115,6 +99113,12 @@ function resolveComWixpressDevcenterAppmarketlistingMarketListingServiceUrl(opts
99115
99113
  srcPath: "/v1/marketListings",
99116
99114
  destPath: "/v1/marketListings"
99117
99115
  }
99116
+ ],
99117
+ "vibe._base_domain_": [
99118
+ {
99119
+ srcPath: "/_api/app-market-listing",
99120
+ destPath: ""
99121
+ }
99118
99122
  ]
99119
99123
  };
99120
99124
  return resolveUrl(Object.assign(opts, { domainToMappings }));
@@ -100086,6 +100090,7 @@ var ComponentType;
100086
100090
  ComponentType3["TAX_EXEMPT_GROUPS_PROVIDER"] = "TAX_EXEMPT_GROUPS_PROVIDER";
100087
100091
  ComponentType3["BOOKING_AUTOMATIONS_CONFIGURATION"] = "BOOKING_AUTOMATIONS_CONFIGURATION";
100088
100092
  ComponentType3["WIX_VIBE_COMPONENT"] = "WIX_VIBE_COMPONENT";
100093
+ ComponentType3["WIXEL"] = "WIXEL";
100089
100094
  })(ComponentType || (ComponentType = {}));
100090
100095
  var WidgetVertical;
100091
100096
  (function(WidgetVertical3) {
@@ -100903,11 +100908,11 @@ var PlanFormPricingOption;
100903
100908
  PlanFormPricingOption3["RECURRING"] = "RECURRING";
100904
100909
  })(PlanFormPricingOption || (PlanFormPricingOption = {}));
100905
100910
  var PlanFormPricingType;
100906
- (function(PlanFormPricingType2) {
100907
- PlanFormPricingType2["UNKNOWN_OPTION"] = "UNKNOWN_OPTION";
100908
- PlanFormPricingType2["FREE"] = "FREE";
100909
- PlanFormPricingType2["ONE_TIME"] = "ONE_TIME";
100910
- PlanFormPricingType2["RECURRING"] = "RECURRING";
100911
+ (function(PlanFormPricingType3) {
100912
+ PlanFormPricingType3["UNKNOWN_OPTION"] = "UNKNOWN_OPTION";
100913
+ PlanFormPricingType3["FREE"] = "FREE";
100914
+ PlanFormPricingType3["ONE_TIME"] = "ONE_TIME";
100915
+ PlanFormPricingType3["RECURRING"] = "RECURRING";
100911
100916
  })(PlanFormPricingType || (PlanFormPricingType = {}));
100912
100917
  var PlanFormDefaultSection;
100913
100918
  (function(PlanFormDefaultSection3) {
@@ -102025,6 +102030,7 @@ var Archetype;
102025
102030
  Archetype3["Cart"] = "Cart";
102026
102031
  Archetype3["ContactForm"] = "ContactForm";
102027
102032
  Archetype3["Frame"] = "Frame";
102033
+ Archetype3["Divider"] = "Divider";
102028
102034
  })(Archetype || (Archetype = {}));
102029
102035
  var NativeStateType;
102030
102036
  (function(NativeStateType3) {
@@ -102285,6 +102291,22 @@ var RegionScopeScope;
102285
102291
  RegionScopeScope3["SPECIFIC_REGIONS"] = "SPECIFIC_REGIONS";
102286
102292
  RegionScopeScope3["WORLDWIDE"] = "WORLDWIDE";
102287
102293
  })(RegionScopeScope || (RegionScopeScope = {}));
102294
+ var VibeActionType;
102295
+ (function(VibeActionType3) {
102296
+ VibeActionType3["UNKNOWN_ActionType"] = "UNKNOWN_ActionType";
102297
+ VibeActionType3["OPEN_DASHBOARD"] = "OPEN_DASHBOARD";
102298
+ VibeActionType3["OPEN_CUSTOM_PANEL"] = "OPEN_CUSTOM_PANEL";
102299
+ })(VibeActionType || (VibeActionType = {}));
102300
+ var AssetType;
102301
+ (function(AssetType3) {
102302
+ AssetType3["UNKNOWN"] = "UNKNOWN";
102303
+ AssetType3["IMAGE"] = "IMAGE";
102304
+ AssetType3["VIDEO"] = "VIDEO";
102305
+ AssetType3["LOGO"] = "LOGO";
102306
+ AssetType3["EVENT"] = "EVENT";
102307
+ AssetType3["FORM"] = "FORM";
102308
+ AssetType3["PDF"] = "PDF";
102309
+ })(AssetType || (AssetType = {}));
102288
102310
  var SaleType;
102289
102311
  (function(SaleType2) {
102290
102312
  SaleType2["UNKNOWN_SALE_TYPE"] = "UNKNOWN_SALE_TYPE";
@@ -102711,6 +102733,7 @@ var ComponentType2;
102711
102733
  ComponentType3["TAX_EXEMPT_GROUPS_PROVIDER"] = "TAX_EXEMPT_GROUPS_PROVIDER";
102712
102734
  ComponentType3["BOOKING_AUTOMATIONS_CONFIGURATION"] = "BOOKING_AUTOMATIONS_CONFIGURATION";
102713
102735
  ComponentType3["WIX_VIBE_COMPONENT"] = "WIX_VIBE_COMPONENT";
102736
+ ComponentType3["WIXEL"] = "WIXEL";
102714
102737
  })(ComponentType2 || (ComponentType2 = {}));
102715
102738
  var WidgetVertical2;
102716
102739
  (function(WidgetVertical3) {
@@ -103527,6 +103550,13 @@ var PlanFormPricingOption2;
103527
103550
  PlanFormPricingOption3["ONE_TIME"] = "ONE_TIME";
103528
103551
  PlanFormPricingOption3["RECURRING"] = "RECURRING";
103529
103552
  })(PlanFormPricingOption2 || (PlanFormPricingOption2 = {}));
103553
+ var PlanFormPricingType2;
103554
+ (function(PlanFormPricingType3) {
103555
+ PlanFormPricingType3["UNKNOWN_OPTION"] = "UNKNOWN_OPTION";
103556
+ PlanFormPricingType3["FREE"] = "FREE";
103557
+ PlanFormPricingType3["ONE_TIME"] = "ONE_TIME";
103558
+ PlanFormPricingType3["RECURRING"] = "RECURRING";
103559
+ })(PlanFormPricingType2 || (PlanFormPricingType2 = {}));
103530
103560
  var PlanFormDefaultSection2;
103531
103561
  (function(PlanFormDefaultSection3) {
103532
103562
  PlanFormDefaultSection3["UNKNWON_PLAN_FORM_SECTION"] = "UNKNWON_PLAN_FORM_SECTION";
@@ -103535,6 +103565,8 @@ var PlanFormDefaultSection2;
103535
103565
  PlanFormDefaultSection3["PAGE_PERMISSIONS"] = "PAGE_PERMISSIONS";
103536
103566
  PlanFormDefaultSection3["PRICING_AND_DURATION"] = "PRICING_AND_DURATION";
103537
103567
  PlanFormDefaultSection3["ADVANCED_SETTINGS"] = "ADVANCED_SETTINGS";
103568
+ PlanFormDefaultSection3["PRICING"] = "PRICING";
103569
+ PlanFormDefaultSection3["DURATION"] = "DURATION";
103538
103570
  })(PlanFormDefaultSection2 || (PlanFormDefaultSection2 = {}));
103539
103571
  var PlanPeriodUnit2;
103540
103572
  (function(PlanPeriodUnit3) {
@@ -104641,6 +104673,7 @@ var Archetype2;
104641
104673
  Archetype3["Cart"] = "Cart";
104642
104674
  Archetype3["ContactForm"] = "ContactForm";
104643
104675
  Archetype3["Frame"] = "Frame";
104676
+ Archetype3["Divider"] = "Divider";
104644
104677
  })(Archetype2 || (Archetype2 = {}));
104645
104678
  var NativeStateType2;
104646
104679
  (function(NativeStateType3) {
@@ -104901,6 +104934,22 @@ var RegionScopeScope2;
104901
104934
  RegionScopeScope3["SPECIFIC_REGIONS"] = "SPECIFIC_REGIONS";
104902
104935
  RegionScopeScope3["WORLDWIDE"] = "WORLDWIDE";
104903
104936
  })(RegionScopeScope2 || (RegionScopeScope2 = {}));
104937
+ var VibeActionType2;
104938
+ (function(VibeActionType3) {
104939
+ VibeActionType3["UNKNOWN_ActionType"] = "UNKNOWN_ActionType";
104940
+ VibeActionType3["OPEN_DASHBOARD"] = "OPEN_DASHBOARD";
104941
+ VibeActionType3["OPEN_CUSTOM_PANEL"] = "OPEN_CUSTOM_PANEL";
104942
+ })(VibeActionType2 || (VibeActionType2 = {}));
104943
+ var AssetType2;
104944
+ (function(AssetType3) {
104945
+ AssetType3["UNKNOWN"] = "UNKNOWN";
104946
+ AssetType3["IMAGE"] = "IMAGE";
104947
+ AssetType3["VIDEO"] = "VIDEO";
104948
+ AssetType3["LOGO"] = "LOGO";
104949
+ AssetType3["EVENT"] = "EVENT";
104950
+ AssetType3["FORM"] = "FORM";
104951
+ AssetType3["PDF"] = "PDF";
104952
+ })(AssetType2 || (AssetType2 = {}));
104904
104953
  var OpenConsentIn2;
104905
104954
  (function(OpenConsentIn3) {
104906
104955
  OpenConsentIn3["NONE_VALUE"] = "NONE_VALUE";
@@ -111847,8 +111896,8 @@ var Printer = function Printer2(config) {
111847
111896
  const explicitTabWidth = config && config.tabWidth;
111848
111897
  config = normalize3(config);
111849
111898
  config.sourceFileName = null;
111850
- function makePrintFunctionWith(options, overrides) {
111851
- options = Object.assign({}, options, overrides);
111899
+ function makePrintFunctionWith(options, overrides2) {
111900
+ options = Object.assign({}, options, overrides2);
111852
111901
  return (path8) => print2(path8, options);
111853
111902
  }
111854
111903
  function print2(path8, options) {