react-native-reorderable-list 0.6.0 → 0.7.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.
- package/README.md +28 -3
- package/lib/commonjs/components/NestedReorderableList.js +41 -0
- package/lib/commonjs/components/NestedReorderableList.js.map +1 -0
- package/lib/commonjs/components/ReorderableList.js +29 -0
- package/lib/commonjs/components/ReorderableList.js.map +1 -0
- package/lib/commonjs/components/ReorderableListCell.js +3 -7
- package/lib/commonjs/components/ReorderableListCell.js.map +1 -1
- package/lib/commonjs/components/{ReorderableList/ReorderableList.js → ReorderableListCore/ReorderableListCore.js} +35 -12
- package/lib/commonjs/components/ReorderableListCore/ReorderableListCore.js.map +1 -0
- package/lib/commonjs/components/ReorderableListCore/constants.ios.js.map +1 -0
- package/lib/commonjs/components/ReorderableListCore/constants.js.map +1 -0
- package/lib/commonjs/components/ReorderableListCore/index.js +17 -0
- package/lib/commonjs/components/ReorderableListCore/index.js.map +1 -0
- package/lib/commonjs/components/{ReorderableList/useReorderableList.js → ReorderableListCore/useReorderableListCore.js} +182 -75
- package/lib/commonjs/components/ReorderableListCore/useReorderableListCore.js.map +1 -0
- package/lib/commonjs/components/ScrollViewContainer.js +53 -0
- package/lib/commonjs/components/ScrollViewContainer.js.map +1 -0
- package/lib/commonjs/components/index.js +22 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/contexts/ReorderableCellContext.js.map +1 -1
- package/lib/commonjs/contexts/ReorderableListContext.js.map +1 -1
- package/lib/commonjs/contexts/ScrollViewContainerContext.js +10 -0
- package/lib/commonjs/contexts/ScrollViewContainerContext.js.map +1 -0
- package/lib/commonjs/contexts/index.js +11 -0
- package/lib/commonjs/contexts/index.js.map +1 -1
- package/lib/commonjs/hooks/useReorderableDragEnd.js +23 -8
- package/lib/commonjs/hooks/useReorderableDragEnd.js.map +1 -1
- package/lib/commonjs/index.js +12 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/components/NestedReorderableList.js +33 -0
- package/lib/module/components/NestedReorderableList.js.map +1 -0
- package/lib/module/components/ReorderableList.js +21 -0
- package/lib/module/components/ReorderableList.js.map +1 -0
- package/lib/module/components/ReorderableListCell.js +3 -7
- package/lib/module/components/ReorderableListCell.js.map +1 -1
- package/lib/module/components/{ReorderableList/ReorderableList.js → ReorderableListCore/ReorderableListCore.js} +38 -15
- package/lib/module/components/ReorderableListCore/ReorderableListCore.js.map +1 -0
- package/lib/module/components/ReorderableListCore/constants.ios.js.map +1 -0
- package/lib/module/components/{ReorderableList → ReorderableListCore}/constants.js.map +1 -1
- package/lib/module/components/ReorderableListCore/index.js +2 -0
- package/lib/module/components/ReorderableListCore/index.js.map +1 -0
- package/lib/module/components/{ReorderableList/useReorderableList.js → ReorderableListCore/useReorderableListCore.js} +181 -74
- package/lib/module/components/ReorderableListCore/useReorderableListCore.js.map +1 -0
- package/lib/module/components/ScrollViewContainer.js +44 -0
- package/lib/module/components/ScrollViewContainer.js.map +1 -0
- package/lib/module/components/index.js +2 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/contexts/ReorderableCellContext.js.map +1 -1
- package/lib/module/contexts/ReorderableListContext.js.map +1 -1
- package/lib/module/contexts/ScrollViewContainerContext.js +3 -0
- package/lib/module/contexts/ScrollViewContainerContext.js.map +1 -0
- package/lib/module/contexts/index.js +1 -0
- package/lib/module/contexts/index.js.map +1 -1
- package/lib/module/hooks/useReorderableDragEnd.js +23 -8
- package/lib/module/hooks/useReorderableDragEnd.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/components/NestedReorderableList.d.ts +5 -0
- package/lib/typescript/components/NestedReorderableList.d.ts.map +1 -0
- package/lib/typescript/components/ReorderableList.d.ts +5 -0
- package/lib/typescript/components/ReorderableList.d.ts.map +1 -0
- package/lib/typescript/components/ReorderableListCell.d.ts +1 -2
- package/lib/typescript/components/ReorderableListCell.d.ts.map +1 -1
- package/lib/typescript/components/ReorderableListCore/ReorderableListCore.d.ts +20 -0
- package/lib/typescript/components/ReorderableListCore/ReorderableListCore.d.ts.map +1 -0
- package/lib/typescript/components/ReorderableListCore/constants.d.ts.map +1 -0
- package/lib/typescript/components/ReorderableListCore/constants.ios.d.ts.map +1 -0
- package/lib/typescript/components/ReorderableListCore/index.d.ts +2 -0
- package/lib/typescript/components/ReorderableListCore/index.d.ts.map +1 -0
- package/lib/typescript/components/ReorderableListCore/useReorderableListCore.d.ts +44 -0
- package/lib/typescript/components/ReorderableListCore/useReorderableListCore.d.ts.map +1 -0
- package/lib/typescript/components/ScrollViewContainer.d.ts +4 -0
- package/lib/typescript/components/ScrollViewContainer.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +2 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/contexts/ReorderableCellContext.d.ts +0 -1
- package/lib/typescript/contexts/ReorderableCellContext.d.ts.map +1 -1
- package/lib/typescript/contexts/ReorderableListContext.d.ts +1 -0
- package/lib/typescript/contexts/ReorderableListContext.d.ts.map +1 -1
- package/lib/typescript/contexts/ScrollViewContainerContext.d.ts +15 -0
- package/lib/typescript/contexts/ScrollViewContainerContext.d.ts.map +1 -0
- package/lib/typescript/contexts/index.d.ts +1 -0
- package/lib/typescript/contexts/index.d.ts.map +1 -1
- package/lib/typescript/hooks/useReorderableDragEnd.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +3 -3
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/types/props.d.ts +13 -1
- package/lib/typescript/types/props.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/NestedReorderableList.tsx +43 -0
- package/src/components/ReorderableList.tsx +29 -0
- package/src/components/ReorderableListCell.tsx +2 -7
- package/src/components/ReorderableListCore/ReorderableListCore.tsx +162 -0
- package/src/components/ReorderableListCore/index.ts +1 -0
- package/src/components/{ReorderableList/useReorderableList.ts → ReorderableListCore/useReorderableListCore.ts} +264 -85
- package/src/components/ScrollViewContainer.tsx +74 -0
- package/src/components/index.ts +2 -0
- package/src/contexts/ReorderableCellContext.ts +0 -1
- package/src/contexts/ReorderableListContext.ts +1 -0
- package/src/contexts/ScrollViewContainerContext.ts +18 -0
- package/src/contexts/index.ts +1 -0
- package/src/hooks/useReorderableDragEnd.ts +28 -12
- package/src/index.ts +10 -1
- package/src/types/props.ts +21 -1
- package/lib/commonjs/components/ReorderableList/ReorderableList.js.map +0 -1
- package/lib/commonjs/components/ReorderableList/constants.ios.js.map +0 -1
- package/lib/commonjs/components/ReorderableList/constants.js.map +0 -1
- package/lib/commonjs/components/ReorderableList/index.js +0 -17
- package/lib/commonjs/components/ReorderableList/index.js.map +0 -1
- package/lib/commonjs/components/ReorderableList/useReorderableList.js.map +0 -1
- package/lib/module/components/ReorderableList/ReorderableList.js.map +0 -1
- package/lib/module/components/ReorderableList/constants.ios.js.map +0 -1
- package/lib/module/components/ReorderableList/index.js +0 -2
- package/lib/module/components/ReorderableList/index.js.map +0 -1
- package/lib/module/components/ReorderableList/useReorderableList.js.map +0 -1
- package/lib/typescript/components/ReorderableList/ReorderableList.d.ts +0 -8
- package/lib/typescript/components/ReorderableList/ReorderableList.d.ts.map +0 -1
- package/lib/typescript/components/ReorderableList/constants.d.ts.map +0 -1
- package/lib/typescript/components/ReorderableList/constants.ios.d.ts.map +0 -1
- package/lib/typescript/components/ReorderableList/index.d.ts +0 -2
- package/lib/typescript/components/ReorderableList/index.d.ts.map +0 -1
- package/lib/typescript/components/ReorderableList/useReorderableList.d.ts +0 -36
- package/lib/typescript/components/ReorderableList/useReorderableList.d.ts.map +0 -1
- package/src/components/ReorderableList/ReorderableList.tsx +0 -119
- package/src/components/ReorderableList/index.ts +0 -1
- /package/lib/commonjs/components/{ReorderableList → ReorderableListCore}/constants.ios.js +0 -0
- /package/lib/commonjs/components/{ReorderableList → ReorderableListCore}/constants.js +0 -0
- /package/lib/module/components/{ReorderableList → ReorderableListCore}/constants.ios.js +0 -0
- /package/lib/module/components/{ReorderableList → ReorderableListCore}/constants.js +0 -0
- /package/lib/typescript/components/{ReorderableList → ReorderableListCore}/constants.d.ts +0 -0
- /package/lib/typescript/components/{ReorderableList → ReorderableListCore}/constants.ios.d.ts +0 -0
- /package/src/components/{ReorderableList → ReorderableListCore}/constants.ios.ts +0 -0
- /package/src/components/{ReorderableList → ReorderableListCore}/constants.ts +0 -0
|
@@ -4,22 +4,37 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useReorderableDragEnd = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _react = require("react");
|
|
8
8
|
var _useContext = require("./useContext");
|
|
9
9
|
var _contexts = require("../contexts");
|
|
10
10
|
const useReorderableDragEnd = onEnd => {
|
|
11
11
|
const {
|
|
12
|
-
|
|
12
|
+
dragEndHandlers
|
|
13
13
|
} = (0, _useContext.useContext)(_contexts.ReorderableListContext);
|
|
14
14
|
const {
|
|
15
|
-
releasedIndex,
|
|
16
15
|
index
|
|
17
16
|
} = (0, _useContext.useContext)(_contexts.ReorderableCellContext);
|
|
18
|
-
(0,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
(0, _react.useEffect)(() => {
|
|
18
|
+
dragEndHandlers.modify(value => {
|
|
19
|
+
'worklet';
|
|
20
|
+
|
|
21
|
+
if (!Array.isArray(value[index])) {
|
|
22
|
+
value[index] = [];
|
|
23
|
+
}
|
|
24
|
+
value[index].push(onEnd);
|
|
25
|
+
return value;
|
|
26
|
+
});
|
|
27
|
+
return () => {
|
|
28
|
+
dragEndHandlers.modify(value => {
|
|
29
|
+
'worklet';
|
|
30
|
+
|
|
31
|
+
if (Array.isArray(value[index])) {
|
|
32
|
+
value[index] = value[index].filter(x => x.name !== onEnd.name);
|
|
33
|
+
}
|
|
34
|
+
return value;
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
}, [index, dragEndHandlers, onEnd]);
|
|
23
38
|
};
|
|
24
39
|
exports.useReorderableDragEnd = useReorderableDragEnd;
|
|
25
40
|
//# sourceMappingURL=useReorderableDragEnd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_react","require","_useContext","_contexts","useReorderableDragEnd","onEnd","dragEndHandlers","useContext","ReorderableListContext","index","ReorderableCellContext","useEffect","modify","value","Array","isArray","push","filter","x","name","exports"],"sourceRoot":"../../../src","sources":["hooks/useReorderableDragEnd.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAEO,MAAMG,qBAAqB,GAChCC,KAAyC,IACtC;EACH,MAAM;IAACC;EAAe,CAAC,GAAG,IAAAC,sBAAU,EAACC,gCAAsB,CAAC;EAC5D,MAAM;IAACC;EAAK,CAAC,GAAG,IAAAF,sBAAU,EAACG,gCAAsB,CAAC;EAElD,IAAAC,gBAAS,EAAC,MAAM;IACdL,eAAe,CAACM,MAAM,CAACC,KAAK,IAAI;MAC9B,SAAS;;MAET,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,KAAK,CAACJ,KAAK,CAAC,CAAC,EAAE;QAChCI,KAAK,CAACJ,KAAK,CAAC,GAAG,EAAE;MACnB;MAEAI,KAAK,CAACJ,KAAK,CAAC,CAACO,IAAI,CAACX,KAAK,CAAC;MAExB,OAAOQ,KAAK;IACd,CAAC,CAAC;IAEF,OAAO,MAAM;MACXP,eAAe,CAACM,MAAM,CAACC,KAAK,IAAI;QAC9B,SAAS;;QAET,IAAIC,KAAK,CAACC,OAAO,CAACF,KAAK,CAACJ,KAAK,CAAC,CAAC,EAAE;UAC/BI,KAAK,CAACJ,KAAK,CAAC,GAAGI,KAAK,CAACJ,KAAK,CAAC,CAACQ,MAAM,CAACC,CAAC,IAAIA,CAAC,CAACC,IAAI,KAAKd,KAAK,CAACc,IAAI,CAAC;QAChE;QAEA,OAAON,KAAK;MACd,CAAC,CAAC;IACJ,CAAC;EACH,CAAC,EAAE,CAACJ,KAAK,EAAEH,eAAe,EAAED,KAAK,CAAC,CAAC;AACrC,CAAC;AAACe,OAAA,CAAAhB,qBAAA,GAAAA,qBAAA","ignoreList":[]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -3,12 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "NestedReorderableList", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _components.NestedReorderableList;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
6
12
|
Object.defineProperty(exports, "ReorderableListItem", {
|
|
7
13
|
enumerable: true,
|
|
8
14
|
get: function () {
|
|
9
15
|
return _components.ReorderableListItem;
|
|
10
16
|
}
|
|
11
17
|
});
|
|
18
|
+
Object.defineProperty(exports, "ScrollViewContainer", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _components.ScrollViewContainer;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
12
24
|
exports.default = void 0;
|
|
13
25
|
Object.defineProperty(exports, "reorderItems", {
|
|
14
26
|
enumerable: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_components","require","_hooks","_utils","_default","exports","default","ReorderableList"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_components","require","_hooks","_utils","_default","exports","default","ReorderableList"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAMA,IAAAC,MAAA,GAAAD,OAAA;AAaA,IAAAE,MAAA,GAAAF,OAAA;AAAqC,IAAAG,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAiBtBC,2BAAe","ignoreList":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
|
+
import { ReorderableListCore } from './ReorderableListCore';
|
|
4
|
+
import { ScrollViewContainerContext } from '../contexts';
|
|
5
|
+
import { useContext } from '../hooks';
|
|
6
|
+
const NestedReorderableListWithRef = ({
|
|
7
|
+
scrollable,
|
|
8
|
+
scrollEnabled = true,
|
|
9
|
+
...rest
|
|
10
|
+
}, ref) => {
|
|
11
|
+
const {
|
|
12
|
+
scrollViewContainerRef,
|
|
13
|
+
scrollViewScrollOffsetY,
|
|
14
|
+
scrollViewHeightY,
|
|
15
|
+
scrollViewScrollEnabled,
|
|
16
|
+
outerScrollGesture,
|
|
17
|
+
initialScrollViewScrollEnabled
|
|
18
|
+
} = useContext(ScrollViewContainerContext);
|
|
19
|
+
return /*#__PURE__*/React.createElement(ReorderableListCore, _extends({}, rest, {
|
|
20
|
+
ref: ref,
|
|
21
|
+
scrollViewContainerRef: scrollViewContainerRef,
|
|
22
|
+
scrollViewScrollOffsetY: scrollViewScrollOffsetY,
|
|
23
|
+
scrollViewHeightY: scrollViewHeightY,
|
|
24
|
+
outerScrollGesture: outerScrollGesture,
|
|
25
|
+
scrollViewScrollEnabled: scrollViewScrollEnabled,
|
|
26
|
+
initialScrollViewScrollEnabled: initialScrollViewScrollEnabled,
|
|
27
|
+
scrollable: scrollable,
|
|
28
|
+
scrollEnabled: scrollEnabled,
|
|
29
|
+
nestedScrollEnabled: true
|
|
30
|
+
}));
|
|
31
|
+
};
|
|
32
|
+
export const NestedReorderableList = /*#__PURE__*/forwardRef(NestedReorderableListWithRef);
|
|
33
|
+
//# sourceMappingURL=NestedReorderableList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","ReorderableListCore","ScrollViewContainerContext","useContext","NestedReorderableListWithRef","scrollable","scrollEnabled","rest","ref","scrollViewContainerRef","scrollViewScrollOffsetY","scrollViewHeightY","scrollViewScrollEnabled","outerScrollGesture","initialScrollViewScrollEnabled","createElement","_extends","nestedScrollEnabled","NestedReorderableList"],"sourceRoot":"../../../src","sources":["components/NestedReorderableList.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAGC,UAAU,QAAO,OAAO;AAGvC,SAAQC,mBAAmB,QAAO,uBAAuB;AACzD,SAAQC,0BAA0B,QAAO,aAAa;AACtD,SAAQC,UAAU,QAAO,UAAU;AAGnC,MAAMC,4BAA4B,GAAGA,CACnC;EAACC,UAAU;EAAEC,aAAa,GAAG,IAAI;EAAE,GAAGC;AAAmC,CAAC,EAC1EC,GAAqC,KAClC;EACH,MAAM;IACJC,sBAAsB;IACtBC,uBAAuB;IACvBC,iBAAiB;IACjBC,uBAAuB;IACvBC,kBAAkB;IAClBC;EACF,CAAC,GAAGX,UAAU,CAACD,0BAA0B,CAAC;EAE1C,oBACEH,KAAA,CAAAgB,aAAA,CAACd,mBAAmB,EAAAe,QAAA,KACdT,IAAI;IACRC,GAAG,EAAEA,GAAI;IACTC,sBAAsB,EAAEA,sBAAuB;IAC/CC,uBAAuB,EAAEA,uBAAwB;IACjDC,iBAAiB,EAAEA,iBAAkB;IACrCE,kBAAkB,EAAEA,kBAAmB;IACvCD,uBAAuB,EAAEA,uBAAwB;IACjDE,8BAA8B,EAAEA,8BAA+B;IAC/DT,UAAU,EAAEA,UAAW;IACvBC,aAAa,EAAEA,aAAc;IAC7BW,mBAAmB;EAAA,EACpB,CAAC;AAEN,CAAC;AAED,OAAO,MAAMC,qBAAqB,gBAAGlB,UAAU,CAC7CI,4BACF,CAEgB","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
import React, { forwardRef } from 'react';
|
|
3
|
+
import { ReorderableListCore } from './ReorderableListCore';
|
|
4
|
+
const ReorderableListWithRef = ({
|
|
5
|
+
scrollEnabled = true,
|
|
6
|
+
...rest
|
|
7
|
+
}, ref) => {
|
|
8
|
+
return /*#__PURE__*/React.createElement(ReorderableListCore, _extends({}, rest, {
|
|
9
|
+
ref: ref,
|
|
10
|
+
scrollEnabled: scrollEnabled,
|
|
11
|
+
initialScrollViewScrollEnabled: true,
|
|
12
|
+
scrollable: true,
|
|
13
|
+
scrollViewContainerRef: undefined,
|
|
14
|
+
scrollViewScrollOffsetY: undefined,
|
|
15
|
+
scrollViewHeightY: undefined,
|
|
16
|
+
outerScrollGesture: undefined,
|
|
17
|
+
scrollViewScrollEnabled: undefined
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
20
|
+
export const ReorderableList = /*#__PURE__*/forwardRef(ReorderableListWithRef);
|
|
21
|
+
//# sourceMappingURL=ReorderableList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","ReorderableListCore","ReorderableListWithRef","scrollEnabled","rest","ref","createElement","_extends","initialScrollViewScrollEnabled","scrollable","scrollViewContainerRef","undefined","scrollViewScrollOffsetY","scrollViewHeightY","outerScrollGesture","scrollViewScrollEnabled","ReorderableList"],"sourceRoot":"../../../src","sources":["components/ReorderableList.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAGC,UAAU,QAAO,OAAO;AAGvC,SAAQC,mBAAmB,QAAO,uBAAuB;AAGzD,MAAMC,sBAAsB,GAAGA,CAC7B;EAACC,aAAa,GAAG,IAAI;EAAE,GAAGC;AAA6B,CAAC,EACxDC,GAA2B,KACxB;EACH,oBACEN,KAAA,CAAAO,aAAA,CAACL,mBAAmB,EAAAM,QAAA,KACdH,IAAI;IACRC,GAAG,EAAEA,GAAI;IACTF,aAAa,EAAEA,aAAc;IAC7BK,8BAA8B,EAAE,IAAK;IACrCC,UAAU,EAAE,IAAK;IACjBC,sBAAsB,EAAEC,SAAU;IAClCC,uBAAuB,EAAED,SAAU;IACnCE,iBAAiB,EAAEF,SAAU;IAC7BG,kBAAkB,EAAEH,SAAU;IAC9BI,uBAAuB,EAAEJ;EAAU,EACpC,CAAC;AAEN,CAAC;AAED,OAAO,MAAMK,eAAe,gBAAGhB,UAAU,CAACE,sBAAsB,CAEhD","ignoreList":[]}
|
|
@@ -11,7 +11,6 @@ export const ReorderableListCell = /*#__PURE__*/memo(({
|
|
|
11
11
|
itemHeight,
|
|
12
12
|
dragY,
|
|
13
13
|
draggedIndex,
|
|
14
|
-
releasedIndex,
|
|
15
14
|
animationDuration
|
|
16
15
|
}) => {
|
|
17
16
|
const dragHandler = useCallback(() => {
|
|
@@ -22,9 +21,8 @@ export const ReorderableListCell = /*#__PURE__*/memo(({
|
|
|
22
21
|
const contextValue = useMemo(() => ({
|
|
23
22
|
index,
|
|
24
23
|
dragHandler,
|
|
25
|
-
draggedIndex
|
|
26
|
-
|
|
27
|
-
}), [index, dragHandler, draggedIndex, releasedIndex]);
|
|
24
|
+
draggedIndex
|
|
25
|
+
}), [index, dragHandler, draggedIndex]);
|
|
28
26
|
const {
|
|
29
27
|
currentIndex,
|
|
30
28
|
draggedHeight
|
|
@@ -71,9 +69,7 @@ export const ReorderableListCell = /*#__PURE__*/memo(({
|
|
|
71
69
|
itemOffset.value[index] = y;
|
|
72
70
|
itemHeight.value[index] = height;
|
|
73
71
|
})(e.nativeEvent.layout.y, e.nativeEvent.layout.height);
|
|
74
|
-
|
|
75
|
-
onLayout(e);
|
|
76
|
-
}
|
|
72
|
+
onLayout === null || onLayout === void 0 || onLayout(e);
|
|
77
73
|
};
|
|
78
74
|
return /*#__PURE__*/React.createElement(ReorderableCellContext.Provider, {
|
|
79
75
|
value: contextValue
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","memo","useCallback","useMemo","Animated","Easing","runOnUI","useAnimatedReaction","useAnimatedStyle","useSharedValue","withTiming","ReorderableCellContext","ReorderableListContext","useContext","ReorderableListCell","index","startDrag","children","onLayout","itemOffset","itemHeight","dragY","draggedIndex","
|
|
1
|
+
{"version":3,"names":["React","memo","useCallback","useMemo","Animated","Easing","runOnUI","useAnimatedReaction","useAnimatedStyle","useSharedValue","withTiming","ReorderableCellContext","ReorderableListContext","useContext","ReorderableListCell","index","startDrag","children","onLayout","itemOffset","itemHeight","dragY","draggedIndex","animationDuration","dragHandler","contextValue","currentIndex","draggedHeight","itemZIndex","itemPositionY","itemDragY","itemIndex","value","moveDown","startMove","Math","min","endMove","max","newValue","duration","easing","out","ease","animatedStyle","zIndex","transform","translateY","handleLayout","e","y","height","nativeEvent","layout","createElement","Provider","View","style"],"sourceRoot":"../../../src","sources":["components/ReorderableListCell.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAGC,IAAI,EAAEC,WAAW,EAAEC,OAAO,QAAO,OAAO;AAGvD,OAAOC,QAAQ,IACbC,MAAM,EAENC,OAAO,EACPC,mBAAmB,EACnBC,gBAAgB,EAChBC,cAAc,EACdC,UAAU,QACL,yBAAyB;AAEhC,SAAQC,sBAAsB,EAAEC,sBAAsB,QAAO,aAAa;AAC1E,SAAQC,UAAU,QAAO,UAAU;AAanC,OAAO,MAAMC,mBAAmB,gBAAGb,IAAI,CACrC,CAAK;EACHc,KAAK;EACLC,SAAS;EACTC,QAAQ;EACRC,QAAQ;EACRC,UAAU;EACVC,UAAU;EACVC,KAAK;EACLC,YAAY;EACZC;AAC2B,CAAC,KAAK;EACjC,MAAMC,WAAW,GAAGtB,WAAW,CAAC,MAAM;IACpC,SAAS;;IAETc,SAAS,CAACD,KAAK,CAAC;EAClB,CAAC,EAAE,CAACC,SAAS,EAAED,KAAK,CAAC,CAAC;EAEtB,MAAMU,YAAY,GAAGtB,OAAO,CAC1B,OAAO;IACLY,KAA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Q;IAACvB,KAAK,EAAEP;EAAa,gBACnDzB,KAAA,CAAAsD,aAAA,CAAClD,QAAQ,CAACoD,IAAI;IAACC,KAAK,EAAEb,aAAc;IAAC1B,QAAQ,EAAE8B;EAAa,GACzD/B,QACY,CACgB,CAAC;AAEtC,CACF,CAAC","ignoreList":[]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
-
import React, { useCallback } from 'react';
|
|
3
|
-
import { FlatList } from 'react-native';
|
|
4
|
-
import { GestureDetector } from 'react-native-gesture-handler';
|
|
2
|
+
import React, { useCallback, useMemo } from 'react';
|
|
3
|
+
import { FlatList, Platform } from 'react-native';
|
|
4
|
+
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
5
5
|
import Animated from 'react-native-reanimated';
|
|
6
6
|
import { AUTOSCROLL_DELAY } from './constants';
|
|
7
|
-
import {
|
|
7
|
+
import { useReorderableListCore } from './useReorderableListCore';
|
|
8
8
|
import { ReorderableListContext } from '../../contexts';
|
|
9
9
|
import { ReorderableListCell } from '../ReorderableListCell';
|
|
10
10
|
const AnimatedFlatList = Animated.createAnimatedComponent(FlatList);
|
|
11
|
-
const
|
|
11
|
+
const ReorderableListCore = ({
|
|
12
12
|
data,
|
|
13
13
|
autoscrollThreshold = 0.1,
|
|
14
14
|
autoscrollSpeedScale = 1,
|
|
@@ -21,6 +21,14 @@ const ReorderableList = ({
|
|
|
21
21
|
onDragEnd,
|
|
22
22
|
keyExtractor,
|
|
23
23
|
extraData,
|
|
24
|
+
scrollViewContainerRef,
|
|
25
|
+
scrollViewHeightY,
|
|
26
|
+
scrollViewScrollOffsetY,
|
|
27
|
+
scrollViewScrollEnabled,
|
|
28
|
+
scrollEnabled,
|
|
29
|
+
initialScrollViewScrollEnabled,
|
|
30
|
+
scrollable,
|
|
31
|
+
outerScrollGesture,
|
|
24
32
|
...rest
|
|
25
33
|
}, ref) => {
|
|
26
34
|
const {
|
|
@@ -34,9 +42,8 @@ const ReorderableList = ({
|
|
|
34
42
|
itemHeight,
|
|
35
43
|
dragY,
|
|
36
44
|
draggedIndex,
|
|
37
|
-
releasedIndex,
|
|
38
45
|
duration
|
|
39
|
-
} =
|
|
46
|
+
} = useReorderableListCore({
|
|
40
47
|
ref,
|
|
41
48
|
autoscrollThreshold,
|
|
42
49
|
autoscrollSpeedScale,
|
|
@@ -46,8 +53,24 @@ const ReorderableList = ({
|
|
|
46
53
|
onLayout,
|
|
47
54
|
onReorder,
|
|
48
55
|
onScroll,
|
|
49
|
-
onDragEnd
|
|
56
|
+
onDragEnd,
|
|
57
|
+
scrollViewContainerRef,
|
|
58
|
+
scrollViewHeightY,
|
|
59
|
+
scrollViewScrollOffsetY,
|
|
60
|
+
scrollViewScrollEnabled,
|
|
61
|
+
// flatlist will default to true if we pass explicitly undefined,
|
|
62
|
+
// but internally we would treat it as false, so we force true
|
|
63
|
+
initialScrollEnabled: typeof scrollEnabled === 'undefined' ? true : scrollEnabled,
|
|
64
|
+
initialScrollViewScrollEnabled: typeof initialScrollViewScrollEnabled === 'undefined' ? true : initialScrollViewScrollEnabled,
|
|
65
|
+
nestedScrollable: scrollable
|
|
50
66
|
});
|
|
67
|
+
const combinedGesture = useMemo(() => {
|
|
68
|
+
// android is able to handle nested scroll view, but not the full height ones like iOS
|
|
69
|
+
if (outerScrollGesture && !(Platform.OS === 'android' && scrollable)) {
|
|
70
|
+
return Gesture.Simultaneous(outerScrollGesture, gestureHandler);
|
|
71
|
+
}
|
|
72
|
+
return gestureHandler;
|
|
73
|
+
}, [scrollable, outerScrollGesture, gestureHandler]);
|
|
51
74
|
const renderAnimatedCell = useCallback(({
|
|
52
75
|
cellKey,
|
|
53
76
|
...props
|
|
@@ -58,14 +81,13 @@ const ReorderableList = ({
|
|
|
58
81
|
itemHeight: itemHeight,
|
|
59
82
|
dragY: dragY,
|
|
60
83
|
draggedIndex: draggedIndex,
|
|
61
|
-
releasedIndex: releasedIndex,
|
|
62
84
|
animationDuration: duration,
|
|
63
85
|
startDrag: startDrag
|
|
64
|
-
})), [itemOffset, itemHeight, dragY, draggedIndex,
|
|
86
|
+
})), [itemOffset, itemHeight, dragY, draggedIndex, duration, startDrag]);
|
|
65
87
|
return /*#__PURE__*/React.createElement(ReorderableListContext.Provider, {
|
|
66
88
|
value: listContextValue
|
|
67
89
|
}, /*#__PURE__*/React.createElement(GestureDetector, {
|
|
68
|
-
gesture:
|
|
90
|
+
gesture: combinedGesture
|
|
69
91
|
}, /*#__PURE__*/React.createElement(AnimatedFlatList, _extends({}, rest, {
|
|
70
92
|
ref: handleRef,
|
|
71
93
|
data: data,
|
|
@@ -77,9 +99,10 @@ const ReorderableList = ({
|
|
|
77
99
|
removeClippedSubviews: false,
|
|
78
100
|
keyExtractor: keyExtractor,
|
|
79
101
|
extraData: extraData,
|
|
80
|
-
numColumns: 1
|
|
102
|
+
numColumns: 1,
|
|
103
|
+
scrollEnabled: scrollEnabled
|
|
81
104
|
}))));
|
|
82
105
|
};
|
|
83
|
-
const
|
|
84
|
-
export {
|
|
85
|
-
//# sourceMappingURL=
|
|
106
|
+
const MemoizedReorderableListCore = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(ReorderableListCore));
|
|
107
|
+
export { MemoizedReorderableListCore as ReorderableListCore };
|
|
108
|
+
//# sourceMappingURL=ReorderableListCore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","FlatList","Platform","Gesture","GestureDetector","Animated","AUTOSCROLL_DELAY","useReorderableListCore","ReorderableListContext","ReorderableListCell","AnimatedFlatList","createAnimatedComponent","ReorderableListCore","data","autoscrollThreshold","autoscrollSpeedScale","autoscrollDelay","animationDuration","dragReorderThreshold","onLayout","onReorder","onScroll","onDragEnd","keyExtractor","extraData","scrollViewContainerRef","scrollViewHeightY","scrollViewScrollOffsetY","scrollViewScrollEnabled","scrollEnabled","initialScrollViewScrollEnabled","scrollable","outerScrollGesture","rest","ref","gestureHandler","handleScroll","handleFlatListLayout","handleRef","startDrag","listContextValue","itemOffset","itemHeight","dragY","draggedIndex","duration","initialScrollEnabled","nestedScrollable","combinedGesture","OS","Simultaneous","renderAnimatedCell","cellKey","props","createElement","_extends","key","index","Provider","value","gesture","CellRendererComponent","scrollEventThrottle","horizontal","removeClippedSubviews","numColumns","MemoizedReorderableListCore","memo","forwardRef"],"sourceRoot":"../../../../src","sources":["components/ReorderableListCore/ReorderableListCore.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAGC,WAAW,EAAEC,OAAO,QAAO,OAAO;AACjD,SAEEC,QAAQ,EAERC,QAAQ,QAEH,cAAc;AAErB,SACEC,OAAO,EACPC,eAAe,QAEV,8BAA8B;AACrC,OAAOC,QAAQ,MAAqB,yBAAyB;AAE7D,SAAQC,gBAAgB,QAAO,aAAa;AAC5C,SAAQC,sBAAsB,QAAO,0BAA0B;AAC/D,SAAQC,sBAAsB,QAAO,gBAAgB;AAErD,SAAQC,mBAAmB,QAAO,wBAAwB;AAE1D,MAAMC,gBAAgB,GAAGL,QAAQ,CAACM,uBAAuB,CACvDV,QACF,CAEuB;AAcvB,MAAMW,mBAAmB,GAAGA,CAC1B;EACEC,IAAI;EACJC,mBAAmB,GAAG,GAAG;EACzBC,oBAAoB,GAAG,CAAC;EACxBC,eAAe,GAAGV,gBAAgB;EAClCW,iBAAiB,GAAG,GAAG;EACvBC,oBAAoB,GAAG,GAAG;EAC1BC,QAAQ;EACRC,SAAS;EACTC,QAAQ;EACRC,SAAS;EACTC,YAAY;EACZC,SAAS;EACTC,sBAAsB;EACtBC,iBAAiB;EACjBC,uBAAuB;EACvBC,uBAAuB;EACvBC,aAAa;EACbC,8BAA8B;EAC9BC,UAAU;EACVC,kBAAkB;EAClB,GAAGC;AACwB,CAAC,EAC9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ACbC,YAAY,EAAEA,YAAa;IAC3B3B,iBAAiB,EAAE4B,QAAS;IAC5BN,SAAS,EAAEA;EAAU,EACtB,CACF,EACD,CAACE,UAAU,EAAEC,UAAU,EAAEC,KAAK,EAAEC,YAAY,EAAEC,QAAQ,EAAEN,SAAS,CACnE,CAAC;EAED,oBACEzC,KAAA,CAAAwD,aAAA,CAAC9C,sBAAsB,CAACkD,QAAQ;IAACC,KAAK,EAAEnB;EAAiB,gBACvD1C,KAAA,CAAAwD,aAAA,CAAClD,eAAe;IAACwD,OAAO,EAAEZ;EAAgB,gBACxClD,KAAA,CAAAwD,aAAA,CAAC5C,gBAAgB,EAAA6C,QAAA,KACXtB,IAAI;IACRC,GAAG,EAAEI,SAAU;IACfzB,IAAI,EAAEA,IAAK;IACXgD,qBAAqB,EAAEV,kBAAmB;IAC1ChC,QAAQ,EAAEkB,oBAAqB;IAC/BhB,QAAQ,EAAEe,YAAa;IACvB0B,mBAAmB,EAAE,CAAE;IACvBC,UAAU,EAAE,KAAM;IAClBC,qBAAqB,EAAE,KAAM;IAC7BzC,YAAY,EAAEA,YAAa;IAC3BC,SAAS,EAAEA,SAAU;IACrByC,UAAU,EAAE,CAAE;IACdpC,aAAa,EAAEA;EAAc,EAC9B,CACc,CACc,CAAC;AAEtC,CAAC;AAED,MAAMqC,2BAA2B,gBAAGpE,KAAK,CAACqE,IAAI,cAC5CrE,KAAK,CAACsE,UAAU,CAACxD,mBAAmB,CACtC,CAIuB;AAEvB,SAAQsD,2BAA2B,IAAItD,mBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AUTOSCROLL_INCREMENT","AUTOSCROLL_DELAY"],"sourceRoot":"../../../../src","sources":["components/ReorderableListCore/constants.ios.ts"],"mappings":"AAAA;AACA,OAAO,MAAMA,oBAAoB,GAAG,EAAE;AACtC,OAAO,MAAMC,gBAAgB,GAAG,GAAG","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AUTOSCROLL_INCREMENT","AUTOSCROLL_DELAY"],"sourceRoot":"../../../../src","sources":["components/
|
|
1
|
+
{"version":3,"names":["AUTOSCROLL_INCREMENT","AUTOSCROLL_DELAY"],"sourceRoot":"../../../../src","sources":["components/ReorderableListCore/constants.ts"],"mappings":"AAAA;AACA,OAAO,MAAMA,oBAAoB,GAAG,CAAC;AACrC,OAAO,MAAMC,gBAAgB,GAAG,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/ReorderableListCore/index.ts"],"mappings":"AAAA,cAAc,uBAAuB","ignoreList":[]}
|