@snack-uikit/carousel 0.4.6-preview-20b0f520.0 → 0.4.6-preview-53bd8747.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.
@@ -165,7 +165,7 @@ function ItemProvider(_ref) {
165
165
  });
166
166
  return;
167
167
  };
168
- const _a = (0, utils_1.useSwipe)({
168
+ const _a = (0, utils_1.useSwipeable)({
169
169
  onSwipeStart: handleSwipeStart,
170
170
  onSwiping: handleSwiping,
171
171
  onSwiped: handleSwiped,
@@ -13,7 +13,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import debounce from 'lodash.debounce';
14
14
  import mergeRefs from 'merge-refs';
15
15
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
16
- import { useSwipe } from '@snack-uikit/utils';
16
+ import { useSwipeable } from '@snack-uikit/utils';
17
17
  import { TEST_IDS } from '../../testIds';
18
18
  import styles from './styles.module.css';
19
19
  export function ItemProvider({ items, showItems, scrollBy, slideCallback, transition, swipe, swipeActivateLength, page, gap, }) {
@@ -136,7 +136,7 @@ export function ItemProvider({ items, showItems, scrollBy, slideCallback, transi
136
136
  setDrag({ drag: 0, pointers: true });
137
137
  return;
138
138
  };
139
- const _a = useSwipe({
139
+ const _a = useSwipeable({
140
140
  onSwipeStart: handleSwipeStart,
141
141
  onSwiping: handleSwiping,
142
142
  onSwiped: handleSwiped,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.4.6-preview-20b0f520.0",
7
+ "version": "0.4.6-preview-53bd8747.0",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -36,13 +36,13 @@
36
36
  "license": "Apache-2.0",
37
37
  "scripts": {},
38
38
  "dependencies": {
39
- "@snack-uikit/icons": "0.24.1-preview-20b0f520.0",
40
- "@snack-uikit/pagination": "0.9.4-preview-20b0f520.0",
41
- "@snack-uikit/utils": "3.5.1-preview-20b0f520.0",
39
+ "@snack-uikit/icons": "0.24.1-preview-53bd8747.0",
40
+ "@snack-uikit/pagination": "0.9.4-preview-53bd8747.0",
41
+ "@snack-uikit/utils": "3.5.1-preview-53bd8747.0",
42
42
  "classnames": "2.5.1",
43
43
  "lodash.debounce": "4.0.8",
44
44
  "merge-refs": "1.3.0",
45
45
  "uncontrollable": "8.0.4"
46
46
  },
47
- "gitHead": "3d9f58d349ce6413d2242d7a42b8ba624815dcc0"
47
+ "gitHead": "527ea8e5660cbf949a1e84bc833f876a0802d10e"
48
48
  }
@@ -2,7 +2,7 @@ import debounce from 'lodash.debounce';
2
2
  import mergeRefs from 'merge-refs';
3
3
  import { MouseEventHandler, ReactElement, useCallback, useEffect, useMemo, useRef, useState } from 'react';
4
4
 
5
- import { SwipeCallback, useSwipe } from '@snack-uikit/utils';
5
+ import { SwipeCallback, useSwipeable } from '@snack-uikit/utils';
6
6
 
7
7
  import { TEST_IDS } from '../../testIds';
8
8
  import styles from './styles.module.scss';
@@ -184,7 +184,7 @@ export function ItemProvider({
184
184
  return;
185
185
  };
186
186
 
187
- const { ref, ...swipeProps } = useSwipe({
187
+ const { ref, ...swipeProps } = useSwipeable({
188
188
  onSwipeStart: handleSwipeStart,
189
189
  onSwiping: handleSwiping,
190
190
  onSwiped: handleSwiped,