@lime-bundles/react 6.0.0 → 6.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.cjs +71 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +71 -30
- package/dist/index.js.map +1 -1
- package/docs/css-variables.md +7 -1
- package/docs/hydrogen.md +1 -1
- package/docs/react-nextjs.md +1 -1
- package/package.json +2 -2
package/docs/css-variables.md
CHANGED
|
@@ -67,9 +67,15 @@ The variant dropdown is an accessible custom combobox (not a native `<select>`).
|
|
|
67
67
|
|
|
68
68
|
| `--lb-product-price-display` | `block` (shown) / `none` (hidden) | Toggle. |
|
|
69
69
|
| `--lb-product-compare-display` | `inline` (shown) / `none` (hidden) | Toggle. |
|
|
70
|
+
| `--lb-product-unit-price-display` | `block` (shown) / `none` (hidden) | Toggle for the per-unit line (`$4.99/kg`) under a product's price. Separate from the bundle summary's per-item figure. |
|
|
71
|
+
| `--lb-product-qty-chip-display` | `inline-flex` (shown) / `none` (hidden) | Toggle for the fixed bundle's right-slot quantity chip. |
|
|
72
|
+
| `--lb-product-qty-inline-display` | `inline` (shown) / `none` (hidden) | Toggle for the inline `×N` count used by every other bundle type. |
|
|
70
73
|
|
|
71
74
|
Per-product quantity renders as inline `×N` text beside the price (no floating
|
|
72
|
-
count badge), using the widget's own `--lb-text`.
|
|
75
|
+
count badge), using the widget's own `--lb-text`. The fixed bundle instead puts
|
|
76
|
+
its count in a chip in the row's right slot, which is why one merchant setting
|
|
77
|
+
drives two variables: the chip is a flex box and the inline count is text, so a
|
|
78
|
+
single "shown" value cannot serve both.
|
|
73
79
|
|
|
74
80
|
## CTA button
|
|
75
81
|
|
package/docs/hydrogen.md
CHANGED
|
@@ -27,7 +27,7 @@ PUBLIC_LIME_BUNDLES_TOKEN=<paste the generated token>
|
|
|
27
27
|
|
|
28
28
|
The variable is intentionally namespaced so it doesn't collide with the `PUBLIC_STOREFRONT_API_TOKEN` that Shopify's Headless app issues for your primary storefront. Lime Bundles uses its own Storefront Access Token, scoped to bundle metaobjects and product listings only.
|
|
29
29
|
|
|
30
|
-
Lime Bundles creates the token for you via Shopify's Admin API. No custom-app configuration needed (Shopify deprecated that flow on 2026-01-01). The token carries the read-only scopes `unauthenticated_read_metaobjects` and `
|
|
30
|
+
Lime Bundles creates the token for you via Shopify's Admin API. No custom-app configuration needed (Shopify deprecated that flow on 2026-01-01). The token carries the read-only scopes `unauthenticated_read_metaobjects`, `unauthenticated_read_product_listings` and `unauthenticated_read_product_inventory` and nothing else. To rotate, click **Regenerate** on the same page. It revokes the current token and issues a new one atomically.
|
|
31
31
|
|
|
32
32
|
## Getting a bundle GID
|
|
33
33
|
|
package/docs/react-nextjs.md
CHANGED
|
@@ -27,7 +27,7 @@ NEXT_PUBLIC_LIME_BUNDLES_TOKEN=<paste the generated token>
|
|
|
27
27
|
|
|
28
28
|
The variable is intentionally namespaced to `LIME_BUNDLES_` so it doesn't collide with the Storefront API token Shopify's own Headless app issues for your primary storefront. Lime Bundles uses its own Storefront Access Token, scoped to bundle metaobjects and product listings only.
|
|
29
29
|
|
|
30
|
-
The `NEXT_PUBLIC_` prefix (or `VITE_` for Vite) exposes the value to client bundles. Lime Bundles creates the token for you via Shopify's Admin API. No custom-app setup needed (Shopify deprecated that flow on 2026-01-01). The token is a read-only public Storefront Access Token with `unauthenticated_read_metaobjects` and `
|
|
30
|
+
The `NEXT_PUBLIC_` prefix (or `VITE_` for Vite) exposes the value to client bundles. Lime Bundles creates the token for you via Shopify's Admin API. No custom-app setup needed (Shopify deprecated that flow on 2026-01-01). The token is a read-only public Storefront Access Token with `unauthenticated_read_metaobjects`, `unauthenticated_read_product_listings` and `unauthenticated_read_product_inventory` scopes, safe to ship in client code. To rotate, click **Regenerate** in the admin. It atomically revokes the old token and issues a new one.
|
|
31
31
|
|
|
32
32
|
## Pick a rendering mode
|
|
33
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lime-bundles/react",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "React components and hooks for the Lime Bundles Shopify app. Use on Hydrogen, Next.js, Vite, or any React-based headless storefront.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"react-dom": ">=18.0.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@lime-bundles/core": "^6.
|
|
55
|
+
"@lime-bundles/core": "^6.2.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@shopify/hydrogen-react": "^2026.4.1",
|