@lime-bundles/widget 4.6.7 → 4.6.9
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 +11 -11
- package/dist/index.js +11 -11
- package/dist/lime-bundle.global.js +9 -9
- package/dist/lime-bundle.global.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -109,7 +109,7 @@ var DEFAULT_STRINGS = {
|
|
|
109
109
|
one: "__COUNT__ item out of stock",
|
|
110
110
|
other: "__COUNT__ items out of stock"
|
|
111
111
|
},
|
|
112
|
-
cartStockError: "
|
|
112
|
+
cartStockError: "This bundle couldn't be added to your cart. __MESSAGE__",
|
|
113
113
|
quantity: "Quantity",
|
|
114
114
|
increaseQuantity: "Increase quantity",
|
|
115
115
|
decreaseQuantity: "Decrease quantity",
|
|
@@ -117,7 +117,7 @@ var DEFAULT_STRINGS = {
|
|
|
117
117
|
editSelection: "Edit selection",
|
|
118
118
|
addToCart: "Add to cart",
|
|
119
119
|
bundlePrice: "Bundle total",
|
|
120
|
-
save: "
|
|
120
|
+
save: "You save",
|
|
121
121
|
complete: "Complete",
|
|
122
122
|
ofSelected: "__COUNT__ of __TOTAL__ added",
|
|
123
123
|
moreToGo: "__COUNT__ more to go",
|
|
@@ -159,7 +159,7 @@ function formatItemsOutOfStock(t, count) {
|
|
|
159
159
|
}
|
|
160
160
|
return (tpl || "__COUNT__ items out of stock").split("__COUNT__").join(String(count));
|
|
161
161
|
}
|
|
162
|
-
var CART_STOCK_ERROR_FALLBACK = "
|
|
162
|
+
var CART_STOCK_ERROR_FALLBACK = "This bundle couldn't be added to your cart. __MESSAGE__";
|
|
163
163
|
function formatCartStockError(template, message) {
|
|
164
164
|
const tpl = (template || "").trim() || CART_STOCK_ERROR_FALLBACK;
|
|
165
165
|
const warning = (message || "").trim();
|
|
@@ -6663,14 +6663,14 @@ var BUNDLE_BOGO_CSS = `/* Lime Bundles \u2014 BOGO (Buy X Get Y) bundle styles *
|
|
|
6663
6663
|
opacity: 0.6;
|
|
6664
6664
|
}
|
|
6665
6665
|
|
|
6666
|
-
/* The
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6666
|
+
/* The count sits beside the price, like every other inline-quantity widget
|
|
6667
|
+
(mix & match, multi-step). It used to be pinned to the row's right edge:
|
|
6668
|
+
this row's prices are emitted empty and filled on hydration, so a
|
|
6669
|
+
server-rendered count was painted and then shoved sideways when the price
|
|
6670
|
+
landed beside it. Pinning bought zero layout shift at the cost of a number
|
|
6671
|
+
floating in space, unattached to the figure it multiplies. The count is now
|
|
6672
|
+
emitted empty and filled with the rest of the price line, so it has no
|
|
6673
|
+
first-paint position to be moved from and needs no pinning. */
|
|
6674
6674
|
`;
|
|
6675
6675
|
var BUNDLE_MULTI_STEP_CSS = `/**
|
|
6676
6676
|
* Lime Bundles \u2014 Multi-step bundle widget styles (wizard chrome ONLY).
|
package/dist/index.js
CHANGED
|
@@ -103,7 +103,7 @@ var DEFAULT_STRINGS = {
|
|
|
103
103
|
one: "__COUNT__ item out of stock",
|
|
104
104
|
other: "__COUNT__ items out of stock"
|
|
105
105
|
},
|
|
106
|
-
cartStockError: "
|
|
106
|
+
cartStockError: "This bundle couldn't be added to your cart. __MESSAGE__",
|
|
107
107
|
quantity: "Quantity",
|
|
108
108
|
increaseQuantity: "Increase quantity",
|
|
109
109
|
decreaseQuantity: "Decrease quantity",
|
|
@@ -111,7 +111,7 @@ var DEFAULT_STRINGS = {
|
|
|
111
111
|
editSelection: "Edit selection",
|
|
112
112
|
addToCart: "Add to cart",
|
|
113
113
|
bundlePrice: "Bundle total",
|
|
114
|
-
save: "
|
|
114
|
+
save: "You save",
|
|
115
115
|
complete: "Complete",
|
|
116
116
|
ofSelected: "__COUNT__ of __TOTAL__ added",
|
|
117
117
|
moreToGo: "__COUNT__ more to go",
|
|
@@ -153,7 +153,7 @@ function formatItemsOutOfStock(t, count) {
|
|
|
153
153
|
}
|
|
154
154
|
return (tpl || "__COUNT__ items out of stock").split("__COUNT__").join(String(count));
|
|
155
155
|
}
|
|
156
|
-
var CART_STOCK_ERROR_FALLBACK = "
|
|
156
|
+
var CART_STOCK_ERROR_FALLBACK = "This bundle couldn't be added to your cart. __MESSAGE__";
|
|
157
157
|
function formatCartStockError(template, message) {
|
|
158
158
|
const tpl = (template || "").trim() || CART_STOCK_ERROR_FALLBACK;
|
|
159
159
|
const warning = (message || "").trim();
|
|
@@ -6673,14 +6673,14 @@ var BUNDLE_BOGO_CSS = `/* Lime Bundles \u2014 BOGO (Buy X Get Y) bundle styles *
|
|
|
6673
6673
|
opacity: 0.6;
|
|
6674
6674
|
}
|
|
6675
6675
|
|
|
6676
|
-
/* The
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6676
|
+
/* The count sits beside the price, like every other inline-quantity widget
|
|
6677
|
+
(mix & match, multi-step). It used to be pinned to the row's right edge:
|
|
6678
|
+
this row's prices are emitted empty and filled on hydration, so a
|
|
6679
|
+
server-rendered count was painted and then shoved sideways when the price
|
|
6680
|
+
landed beside it. Pinning bought zero layout shift at the cost of a number
|
|
6681
|
+
floating in space, unattached to the figure it multiplies. The count is now
|
|
6682
|
+
emitted empty and filled with the rest of the price line, so it has no
|
|
6683
|
+
first-paint position to be moved from and needs no pinning. */
|
|
6684
6684
|
`;
|
|
6685
6685
|
var BUNDLE_MULTI_STEP_CSS = `/**
|
|
6686
6686
|
* Lime Bundles \u2014 Multi-step bundle widget styles (wizard chrome ONLY).
|