@lime-bundles/widget 3.3.0 → 4.0.0

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/dist/index.d.cts CHANGED
@@ -75,6 +75,12 @@ declare class LimeBundleElement extends HTMLElement {
75
75
  * `.lb-bundle-widget { ... }` reach the widget's DOM.
76
76
  */
77
77
  private shopCustomCss;
78
+ /**
79
+ * Shop-wide out-of-stock behaviour, resolved from the `$app` shop metafield
80
+ * before the first render. Defaults to `show_greyed_out` so a failed or
81
+ * missing fetch degrades to "bundles still render".
82
+ */
83
+ private outOfStockBehavior;
78
84
  constructor();
79
85
  connectedCallback(): void;
80
86
  disconnectedCallback(): void;
@@ -104,15 +110,6 @@ declare class LimeBundleElement extends HTMLElement {
104
110
  */
105
111
  private isMarketHidden;
106
112
  private fetchBundle;
107
- /**
108
- * Resolve the visitor's A/B bucket for every bundle with an active test
109
- * and merge Variant B overrides where applicable. Runs in parallel; any
110
- * assignment failure logs internally but still renders Variant A (safe
111
- * default). The `getABTestAssignment` helper persists the bucket via a
112
- * first-party cookie; variant attribution is recorded server-side from
113
- * the analytics events the widget already emits.
114
- */
115
- private applyABVariants;
116
113
  private fetchSingleBundle;
117
114
  private fetchProductBundles;
118
115
  /**
package/dist/index.d.ts CHANGED
@@ -75,6 +75,12 @@ declare class LimeBundleElement extends HTMLElement {
75
75
  * `.lb-bundle-widget { ... }` reach the widget's DOM.
76
76
  */
77
77
  private shopCustomCss;
78
+ /**
79
+ * Shop-wide out-of-stock behaviour, resolved from the `$app` shop metafield
80
+ * before the first render. Defaults to `show_greyed_out` so a failed or
81
+ * missing fetch degrades to "bundles still render".
82
+ */
83
+ private outOfStockBehavior;
78
84
  constructor();
79
85
  connectedCallback(): void;
80
86
  disconnectedCallback(): void;
@@ -104,15 +110,6 @@ declare class LimeBundleElement extends HTMLElement {
104
110
  */
105
111
  private isMarketHidden;
106
112
  private fetchBundle;
107
- /**
108
- * Resolve the visitor's A/B bucket for every bundle with an active test
109
- * and merge Variant B overrides where applicable. Runs in parallel; any
110
- * assignment failure logs internally but still renders Variant A (safe
111
- * default). The `getABTestAssignment` helper persists the bucket via a
112
- * first-party cookie; variant attribution is recorded server-side from
113
- * the analytics events the widget already emits.
114
- */
115
- private applyABVariants;
116
113
  private fetchSingleBundle;
117
114
  private fetchProductBundles;
118
115
  /**