ublo-lib 1.47.105 → 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(() => {
@@ -56,8 +56,8 @@
56
56
  left: auto;
57
57
  /* largeur de la taille de l'item + des boutons + petit écart */
58
58
  width: calc(
59
- var(--carousel-item-width, 400px) + (var(--carousel-button-width, 48px) * 2) +
60
- 20px
59
+ var(--carousel-item-width, 400px) +
60
+ (var(--carousel-button-width, 48px) * 2) + 20px
61
61
  );
62
62
  transform: none;
63
63
  }
@@ -125,6 +125,8 @@
125
125
  height: 100%;
126
126
  width: var(--carousel-item-width, 400px);
127
127
  background: var(--carousel-before-background, transparent);
128
+ touch-action: none;
129
+ pointer-events: none;
128
130
  z-index: 1;
129
131
  }
130
132
 
@@ -136,6 +138,8 @@
136
138
  height: 100%;
137
139
  width: var(--carousel-item-width, 400px);
138
140
  background: var(--carousel-after-background, transparent);
141
+ touch-action: none;
142
+ pointer-events: none;
139
143
  z-index: 1;
140
144
  }
141
145
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.47.105",
3
+ "version": "1.47.107",
4
4
  "peerDependencies": {
5
5
  "classnames": "^2.5.1",
6
6
  "dt-design-system": "^3.12.0",