@lime-bundles/widget 3.0.0 → 3.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.
@@ -155,6 +155,9 @@ Surfaces when a variant's `quantityAvailable` is at or below
155
155
  | `--lb-picker-variant-border-width` | `1px` | Variant select border width. |
156
156
  | `--lb-picker-variant-radius` | `8px` | Variant select corner radius. |
157
157
  | `--lb-picker-variant-chevron` | *derived SVG data URL* | Chevron icon on the picker's variant dropdown. Auto-coloured to match `--lb-picker-variant-border-color`. |
158
+ | `--lb-picker-qty-stepper-border-color` | `#1A1A1A` | Per-pick quantity stepper border. |
159
+ | `--lb-picker-qty-stepper-border-width` | `1px` | Per-pick quantity stepper border width. |
160
+ | `--lb-picker-qty-stepper-radius` | `8px` | Per-pick quantity stepper corner radius. |
158
161
  | `--lb-picker-add-bg` | `#1A1A1A` | Add-to-bundle button background. |
159
162
  | `--lb-picker-add-label` | `#FFFFFF` | Add-to-bundle button text. |
160
163
  | `--lb-picker-add-border-color` | `#1A1A1A` | Add-to-bundle button border colour. |
@@ -321,17 +321,7 @@ return <span>{formatCountdown(msLeft)}</span>;
321
321
  ```tsx
322
322
  import { getABTestAssignment, applyABVariantB } from "@lime-bundles/react";
323
323
 
324
- // appUrl is your Lime Bundles app URL (same value your theme app block uses).
325
- // shopDomain is the merchant's *.myshopify.com domain.
326
- const appUrl = process.env.NEXT_PUBLIC_LIME_BUNDLES_APP_URL!;
327
- const shopDomain = process.env.NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN!;
328
-
329
- const assignment = await getABTestAssignment(
330
- appUrl,
331
- shopDomain,
332
- bundle.abTestId!,
333
- bundle.id,
334
- );
324
+ const assignment = await getABTestAssignment(bundle.abTestId!, bundle.id);
335
325
  const bundleForRender = assignment?.variant === "B" ? applyABVariantB(bundle) : bundle;
336
326
  ```
337
327
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lime-bundles/widget",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "Drop-in <lime-bundle> web component for the Lime Bundles Shopify app. Embed merchant-configured bundles on Hydrogen, Astro, Vue, Svelte, or any JavaScript-enabled headless storefront.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -46,7 +46,7 @@
46
46
  "typecheck": "tsc --noEmit"
47
47
  },
48
48
  "dependencies": {
49
- "@lime-bundles/core": "^3.0.0"
49
+ "@lime-bundles/core": "^4.1.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "tsup": "^8.0.0",