@bikematrix/web-components 1.3.2 → 1.3.3

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.
@@ -1425,7 +1425,10 @@ const Ga = Ce(!1), Y = Ce(null), pr = Ce([]), lr = Ce(!1), De = Ce(!1), fr = Ce(
1425
1425
  // Virtual Workshop
1426
1426
  virtualWorkshop: !0,
1427
1427
  // Internal shop link
1428
- internalLink: ""
1428
+ internalLink: "",
1429
+ // Browse Compatibility settings
1430
+ showBrowseCategoryButtons: !0,
1431
+ browseCompatibilityUrl: ""
1429
1432
  }, Te = function(i) {
1430
1433
  return new URL(i, nd).toString();
1431
1434
  };
@@ -4426,7 +4429,7 @@ const ll = class Kr {
4426
4429
  ...e
4427
4430
  }), this.initializeConfig(), this.service = new Ee(this.config.apiUrl, this.config.apiKey, this.config.apiToken, this.config.isShopify), this.initializeActiveSubscription(), localStorage.bm_currentBike && (this.currentBike = JSON.parse(localStorage.bm_currentBike)), this.setupEventListeners(), this.registerComponents(), this.initialized = !0, Ga.value = !0;
4428
4431
  const t = new Event("BM:Initialized");
4429
- document.dispatchEvent(t), (this.config.logLevel === "verbose" || this.config.logLevel === "core") && (console.log("Core: BikeMatrix WebComponent Version: 1.3.2"), console.log("Core: BikeMatrixCore initialized"));
4432
+ document.dispatchEvent(t), (this.config.logLevel === "verbose" || this.config.logLevel === "core") && (console.log("Core: BikeMatrix WebComponent Version: 1.3.3"), console.log("Core: BikeMatrixCore initialized"));
4430
4433
  }
4431
4434
  // Singleton pattern to ensure a single global instance
4432
4435
  static getInstance() {
@@ -7554,7 +7557,7 @@ function ff() {
7554
7557
  })]
7555
7558
  }), !!(a != null && a.length) && !!(t != null && t.key) && p("button", {
7556
7559
  onClick: (v) => {
7557
- v.preventDefault(), Q("/browse");
7560
+ v.preventDefault(), !i.showBrowseCategoryButtons && i.browseCompatibilityUrl ? window.location.href = i.browseCompatibilityUrl : Q("/browse");
7558
7561
  },
7559
7562
  class: Z("duration-300 sticky bottom-4 transition-colors mt-4 rounded-xl p-3 w-full flex justify-center items-center", a.length ? "bg-gray-950 text-white" : "bg-gray-200 text-gray-800"),
7560
7563
  children: l("bikeselector_home_browse_btn")