ublo-lib 1.47.106 → 1.47.107

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.
@@ -1 +1 @@
1
- {"version":3,"file":"cart-preview.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-preview/cart-preview.js"],"names":[],"mappings":";AAYA;;;;;;4CA0GC"}
1
+ {"version":3,"file":"cart-preview.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cart-preview/cart-preview.js"],"names":[],"mappings":";AAYA;;;;;;4CA2GC"}
@@ -15,7 +15,9 @@ const CartPreview = ({ lang, visible, className, pillClassName, forcePillVisibil
15
15
  const [count, setCount] = React.useState(0);
16
16
  const [cart, setCart] = React.useState();
17
17
  const [cartChanges, setCartChanges] = React.useState(0);
18
- const addCartChange = React.useCallback(() => {
18
+ const addCartChange = React.useCallback((e) => {
19
+ if (e?.detail === "cart-removed")
20
+ setCart(undefined);
19
21
  setCartChanges((prev) => prev + 1);
20
22
  }, []);
21
23
  React.useEffect(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.47.106",
3
+ "version": "1.47.107",
4
4
  "peerDependencies": {
5
5
  "classnames": "^2.5.1",
6
6
  "dt-design-system": "^3.12.0",