@lime-bundles/widget 3.4.0 → 4.1.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,21 +110,6 @@ declare class LimeBundleElement extends HTMLElement {
104
110
  */
105
111
  private isMarketHidden;
106
112
  private fetchBundle;
107
- /**
108
- * Resolve the visitor's assigned variant for every primary bundle in a link
109
- * group. Runs in parallel; any assignment failure logs internally and still
110
- * renders the primary (safe default). The `getLinkGroupAssignment` helper
111
- * persists the bucket via a first-party cookie; variant attribution is
112
- * recorded server-side from the cart-line `_lime_bundle_gid` + `_lime_link_group`
113
- * attributes the cart-add path stamps when an assignment lands on a non-primary
114
- * variant.
115
- *
116
- * When the assignment points to a non-primary variant the SDK swaps in that
117
- * variant's `ParsedBundle` from the primary's `linkGroup.variants` list. The
118
- * variant data must already be present in the storefront query response — the
119
- * SDK does NOT issue a separate metaobject fetch on the hot path.
120
- */
121
- private applyLinkGroupVariants;
122
113
  private fetchSingleBundle;
123
114
  private fetchProductBundles;
124
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,21 +110,6 @@ declare class LimeBundleElement extends HTMLElement {
104
110
  */
105
111
  private isMarketHidden;
106
112
  private fetchBundle;
107
- /**
108
- * Resolve the visitor's assigned variant for every primary bundle in a link
109
- * group. Runs in parallel; any assignment failure logs internally and still
110
- * renders the primary (safe default). The `getLinkGroupAssignment` helper
111
- * persists the bucket via a first-party cookie; variant attribution is
112
- * recorded server-side from the cart-line `_lime_bundle_gid` + `_lime_link_group`
113
- * attributes the cart-add path stamps when an assignment lands on a non-primary
114
- * variant.
115
- *
116
- * When the assignment points to a non-primary variant the SDK swaps in that
117
- * variant's `ParsedBundle` from the primary's `linkGroup.variants` list. The
118
- * variant data must already be present in the storefront query response — the
119
- * SDK does NOT issue a separate metaobject fetch on the hot path.
120
- */
121
- private applyLinkGroupVariants;
122
113
  private fetchSingleBundle;
123
114
  private fetchProductBundles;
124
115
  /**