@lime-bundles/widget 4.1.0 → 4.2.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/README.md +1 -1
- package/dist/index.cjs +326 -123
- package/dist/index.d.cts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +310 -102
- package/dist/lime-bundle.global.js +65 -33
- package/dist/lime-bundle.global.js.map +1 -1
- package/docs/hydrogen.md +28 -3
- package/docs/react-nextjs.md +23 -3
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -61,6 +61,13 @@ declare class LimeBundleElement extends HTMLElement {
|
|
|
61
61
|
buyer: BuyerResolver | undefined;
|
|
62
62
|
private shadow;
|
|
63
63
|
private bundles;
|
|
64
|
+
/**
|
|
65
|
+
* The product handle this embed is standing on, when one can be resolved
|
|
66
|
+
* (attribute → meta tag → /products/<handle> path). The mix-and-match
|
|
67
|
+
* courtesy seed uses it to pre-add the current product the way the theme
|
|
68
|
+
* widget does; null on pages with no product context.
|
|
69
|
+
*/
|
|
70
|
+
private currentProductHandle;
|
|
64
71
|
private abortController;
|
|
65
72
|
private impressionCleanups;
|
|
66
73
|
/**
|
|
@@ -75,12 +82,6 @@ declare class LimeBundleElement extends HTMLElement {
|
|
|
75
82
|
* `.lb-bundle-widget { ... }` reach the widget's DOM.
|
|
76
83
|
*/
|
|
77
84
|
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;
|
|
84
85
|
constructor();
|
|
85
86
|
connectedCallback(): void;
|
|
86
87
|
disconnectedCallback(): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -61,6 +61,13 @@ declare class LimeBundleElement extends HTMLElement {
|
|
|
61
61
|
buyer: BuyerResolver | undefined;
|
|
62
62
|
private shadow;
|
|
63
63
|
private bundles;
|
|
64
|
+
/**
|
|
65
|
+
* The product handle this embed is standing on, when one can be resolved
|
|
66
|
+
* (attribute → meta tag → /products/<handle> path). The mix-and-match
|
|
67
|
+
* courtesy seed uses it to pre-add the current product the way the theme
|
|
68
|
+
* widget does; null on pages with no product context.
|
|
69
|
+
*/
|
|
70
|
+
private currentProductHandle;
|
|
64
71
|
private abortController;
|
|
65
72
|
private impressionCleanups;
|
|
66
73
|
/**
|
|
@@ -75,12 +82,6 @@ declare class LimeBundleElement extends HTMLElement {
|
|
|
75
82
|
* `.lb-bundle-widget { ... }` reach the widget's DOM.
|
|
76
83
|
*/
|
|
77
84
|
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;
|
|
84
85
|
constructor();
|
|
85
86
|
connectedCallback(): void;
|
|
86
87
|
disconnectedCallback(): void;
|