@propeller-commerce/propeller-v2-react-ui 0.15.9 → 0.15.10
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/CHANGELOG.md +17 -0
- package/dist/index.cjs +9 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3335,6 +3335,8 @@ interface CartIconAndSidebarProps {
|
|
|
3335
3335
|
* localized page. Keys match CartItem's label map.
|
|
3336
3336
|
*/
|
|
3337
3337
|
cartItemLabels?: Record<string, string>;
|
|
3338
|
+
/** Labels for the bonus-items block. Keys: `title`, `sku`. */
|
|
3339
|
+
cartBonusItemsLabels?: Record<string, string>;
|
|
3338
3340
|
/** Logged-in user — used to determine purchaser role and authorization limit */
|
|
3339
3341
|
user?: Contact | Customer;
|
|
3340
3342
|
/** Configuration object passed to the component */
|
package/dist/index.d.ts
CHANGED
|
@@ -3335,6 +3335,8 @@ interface CartIconAndSidebarProps {
|
|
|
3335
3335
|
* localized page. Keys match CartItem's label map.
|
|
3336
3336
|
*/
|
|
3337
3337
|
cartItemLabels?: Record<string, string>;
|
|
3338
|
+
/** Labels for the bonus-items block. Keys: `title`, `sku`. */
|
|
3339
|
+
cartBonusItemsLabels?: Record<string, string>;
|
|
3338
3340
|
/** Logged-in user — used to determine purchaser role and authorization limit */
|
|
3339
3341
|
user?: Contact | Customer;
|
|
3340
3342
|
/** Configuration object passed to the component */
|
package/dist/index.js
CHANGED
|
@@ -7477,7 +7477,15 @@ function CartIconAndSidebar(rawProps) {
|
|
|
7477
7477
|
},
|
|
7478
7478
|
item.itemId
|
|
7479
7479
|
)) }),
|
|
7480
|
-
/* @__PURE__ */ jsx(
|
|
7480
|
+
/* @__PURE__ */ jsx(
|
|
7481
|
+
CartBonusItemsImpl,
|
|
7482
|
+
{
|
|
7483
|
+
cart: props.cart,
|
|
7484
|
+
includeTax: useTax,
|
|
7485
|
+
className: "mt-4",
|
|
7486
|
+
labels: props.cartBonusItemsLabels
|
|
7487
|
+
}
|
|
7488
|
+
)
|
|
7481
7489
|
] }),
|
|
7482
7490
|
" ",
|
|
7483
7491
|
items.length > 0 ? /* @__PURE__ */ jsxs("div", { className: "propeller-cart-icon__sidebar-footer px-5 py-4 border-t border-border space-y-3 bg-surface-hover", children: [
|