@snack-uikit/carousel 0.4.6-preview-a3b4b368.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.
@@ -21,7 +21,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
21
21
  const lodash_debounce_1 = __importDefault(require("lodash.debounce"));
22
22
  const merge_refs_1 = __importDefault(require("merge-refs"));
23
23
  const react_1 = require("react");
24
- const react_swipeable_1 = require("react-swipeable");
24
+ const utils_1 = require("@snack-uikit/utils");
25
25
  const testIds_1 = require("../../testIds");
26
26
  const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
27
27
  function ItemProvider(_ref) {
@@ -165,7 +165,7 @@ function ItemProvider(_ref) {
165
165
  });
166
166
  return;
167
167
  };
168
- const _a = (0, react_swipeable_1.useSwipeable)({
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 { useSwipeable } from 'react-swipeable';
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, }) {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.4.6-preview-a3b4b368.0",
7
+ "version": "0.4.6-preview-53bd8747.0",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -36,14 +36,13 @@
36
36
  "license": "Apache-2.0",
37
37
  "scripts": {},
38
38
  "dependencies": {
39
- "@snack-uikit/icons": "0.24.0",
40
- "@snack-uikit/pagination": "0.9.3",
41
- "@snack-uikit/utils": "3.5.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
- "react-swipeable": "7.0.2",
46
45
  "uncontrollable": "8.0.4"
47
46
  },
48
- "gitHead": "43c28d09e8213ef3f002c8458eee128eb42ee644"
47
+ "gitHead": "527ea8e5660cbf949a1e84bc833f876a0802d10e"
49
48
  }
@@ -1,7 +1,8 @@
1
1
  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
- import { SwipeCallback, useSwipeable } from 'react-swipeable';
4
+
5
+ import { SwipeCallback, useSwipeable } from '@snack-uikit/utils';
5
6
 
6
7
  import { TEST_IDS } from '../../testIds';
7
8
  import styles from './styles.module.scss';