react-native-reorderable-list 0.13.0 → 0.14.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 +69 -9
- package/lib/commonjs/components/NestedReorderableList.js +2 -0
- package/lib/commonjs/components/NestedReorderableList.js.map +1 -1
- package/lib/commonjs/components/ReorderableList.js +4 -3
- package/lib/commonjs/components/ReorderableList.js.map +1 -1
- package/lib/commonjs/components/{ReorderableListCore/useReorderableListCore.js → ReorderableListCore.js} +187 -96
- package/lib/commonjs/components/ReorderableListCore.js.map +1 -0
- package/lib/commonjs/components/ScrollViewContainer.js +26 -7
- package/lib/commonjs/components/ScrollViewContainer.js.map +1 -1
- package/lib/commonjs/components/{ReorderableListCore/animationDefaults.js → constants.js} +26 -2
- package/lib/commonjs/components/constants.js.map +1 -0
- package/lib/commonjs/contexts/ScrollViewContainerContext.js.map +1 -1
- package/lib/module/components/NestedReorderableList.js +2 -0
- package/lib/module/components/NestedReorderableList.js.map +1 -1
- package/lib/module/components/ReorderableList.js +4 -3
- package/lib/module/components/ReorderableList.js.map +1 -1
- package/lib/module/components/{ReorderableListCore/useReorderableListCore.js → ReorderableListCore.js} +188 -95
- package/lib/module/components/ReorderableListCore.js.map +1 -0
- package/lib/module/components/ScrollViewContainer.js +28 -8
- package/lib/module/components/ScrollViewContainer.js.map +1 -1
- package/lib/module/components/constants.js +52 -0
- package/lib/module/components/constants.js.map +1 -0
- package/lib/module/contexts/ScrollViewContainerContext.js.map +1 -1
- package/lib/typescript/components/NestedReorderableList.d.ts.map +1 -1
- package/lib/typescript/components/ReorderableList.d.ts.map +1 -1
- package/lib/typescript/components/{ReorderableListCore/ReorderableListCore.d.ts → ReorderableListCore.d.ts} +2 -1
- package/lib/typescript/components/ReorderableListCore.d.ts.map +1 -0
- package/lib/typescript/components/ScrollViewContainer.d.ts +2 -1
- package/lib/typescript/components/ScrollViewContainer.d.ts.map +1 -1
- package/lib/typescript/components/{ReorderableListCore/animationDefaults.d.ts → constants.d.ts} +6 -1
- package/lib/typescript/components/constants.d.ts.map +1 -0
- package/lib/typescript/contexts/ScrollViewContainerContext.d.ts +1 -0
- package/lib/typescript/contexts/ScrollViewContainerContext.d.ts.map +1 -1
- package/lib/typescript/types/props.d.ts +9 -0
- package/lib/typescript/types/props.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/NestedReorderableList.tsx +2 -0
- package/src/components/ReorderableList.tsx +3 -2
- package/src/components/{ReorderableListCore/useReorderableListCore.ts → ReorderableListCore.tsx} +321 -184
- package/src/components/ScrollViewContainer.tsx +44 -13
- package/src/components/{ReorderableListCore/animationDefaults.ts → constants.ts} +34 -0
- package/src/contexts/ScrollViewContainerContext.ts +1 -0
- package/src/types/props.ts +9 -0
- package/lib/commonjs/components/ReorderableListCore/ReorderableListCore.js +0 -121
- package/lib/commonjs/components/ReorderableListCore/ReorderableListCore.js.map +0 -1
- package/lib/commonjs/components/ReorderableListCore/animationDefaults.js.map +0 -1
- package/lib/commonjs/components/ReorderableListCore/autoscrollConfig.js +0 -31
- package/lib/commonjs/components/ReorderableListCore/autoscrollConfig.js.map +0 -1
- package/lib/commonjs/components/ReorderableListCore/index.js +0 -17
- package/lib/commonjs/components/ReorderableListCore/index.js.map +0 -1
- package/lib/commonjs/components/ReorderableListCore/useReorderableListCore.js.map +0 -1
- package/lib/module/components/ReorderableListCore/ReorderableListCore.js +0 -114
- package/lib/module/components/ReorderableListCore/ReorderableListCore.js.map +0 -1
- package/lib/module/components/ReorderableListCore/animationDefaults.js +0 -28
- package/lib/module/components/ReorderableListCore/animationDefaults.js.map +0 -1
- package/lib/module/components/ReorderableListCore/autoscrollConfig.js +0 -25
- package/lib/module/components/ReorderableListCore/autoscrollConfig.js.map +0 -1
- package/lib/module/components/ReorderableListCore/index.js +0 -2
- package/lib/module/components/ReorderableListCore/index.js.map +0 -1
- package/lib/module/components/ReorderableListCore/useReorderableListCore.js.map +0 -1
- package/lib/typescript/components/ReorderableListCore/ReorderableListCore.d.ts.map +0 -1
- package/lib/typescript/components/ReorderableListCore/animationDefaults.d.ts.map +0 -1
- package/lib/typescript/components/ReorderableListCore/autoscrollConfig.d.ts +0 -6
- package/lib/typescript/components/ReorderableListCore/autoscrollConfig.d.ts.map +0 -1
- package/lib/typescript/components/ReorderableListCore/index.d.ts +0 -2
- package/lib/typescript/components/ReorderableListCore/index.d.ts.map +0 -1
- package/lib/typescript/components/ReorderableListCore/useReorderableListCore.d.ts +0 -183
- package/lib/typescript/components/ReorderableListCore/useReorderableListCore.d.ts.map +0 -1
- package/src/components/ReorderableListCore/ReorderableListCore.tsx +0 -175
- package/src/components/ReorderableListCore/autoscrollConfig.ts +0 -31
- package/src/components/ReorderableListCore/index.ts +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useEffect","useMemo","useState","unstable_batchedUpdates","Gesture","State","Easing","runOnJS","runOnUI","scrollTo","useAnimatedReaction","useAnimatedRef","useAnimatedScrollHandler","useSharedValue","withDelay","withTiming","OPACITY_ANIMATION_CONFIG_DEFAULT","SCALE_ANIMATION_CONFIG_DEFAULT","AUTOSCROLL_CONFIG","ReorderableListState","version","split","hasAutomaticBatching","length","parseInt","useReorderableListCore","ref","autoscrollThreshold","autoscrollThresholdOffset","autoscrollSpeedScale","autoscrollDelay","autoscrollActivationDelta","animationDuration","onReorder","onDragStart","onDragEnd","onLayout","onIndexChange","scrollViewContainerRef","scrollViewHeightY","scrollViewScrollOffsetY","scrollViewScrollEnabled","initialScrollEnabled","initialScrollViewScrollEnabled","nestedScrollable","cellAnimations","shouldUpdateActiveItem","panActivateAfterLongPress","panEnabled","flatListRef","activeIndex","setActiveIndex","scrollEnabled","gestureState","UNDETERMINED","currentY","currentTranslationY","currentItemDragCenterY","startItemDragCenterY","flatListScrollOffsetY","flatListHeightY","nestedFlatListPositionY","dragScrollTranslationY","dragInitialScrollOffsetY","scrollViewDragScrollTranslationY","scrollViewDragInitialScrollOffsetY","draggedHeight","itemOffset","itemHeight","autoscrollTrigger","lastAutoscrollTrigger","dragY","currentIndex","draggedIndex","state","IDLE","dragEndHandlers","startY","duration","scaleDefault","opacityDefault","dragDirection","lastDragDirectionPivot","autoscrollDelta","value","listContextValue","transform","scale","opacity","setDragDirection","e","direction","velocityY","absoluteY","Math","abs","setCurrentItemDragCenterY","itemCenter","itemY","translationY","panGestureHandler","Pan","onBegin","y","onUpdate","DRAGGED","RELEASED","onEnd","onFinalize","panGestureHandlerWithOptions","activateAfterLongPress","enabled","gestureHandler","Simultaneous","Native","setScrollEnabled","_flatListRef$current","current","setNativeProps","_scrollViewContainerR","resetSharedValues","resetSharedValuesAfterAnimations","setTimeout","reorder","fromIndex","toIndex","updateState","from","to","recomputeLayout","itemDirection","index1","index2","newOffset1","newHeight1","newOffset2","newHeight2","computeCurrentIndex","relativeDragCenterY","currentOffset","currentHeight","currentCenter","max","possibleIndex","min","possibleOffset","possibleCenter","distanceFromCurrent","distanceFromPossible","setCurrentIndex","newIndex","index","runDefaultDragAnimations","type","scaleConfig","toValue","opacityConfig","ACTIVE","BEGAN","AUTOSCROLL","handlers","Array","isArray","forEach","fn","currentItemOffset","currentItemHeight","draggedItemOffset","draggedItemHeight","newTopPosition","easing","out","ease","calculateHiddenArea","top","bottom","calculateThresholdArea","hiddenArea","offsetTop","offsetBottom","threshold","visibleHeight","area","calculateThresholdAreaParent","shouldScrollParent","thresholdAreaParent","scrollDirection","thresholdArea","autoscrollIncrement","increment","scrollOffset","listRef","handleScroll","contentOffset","startDrag","handleFlatListLayout","nativeEvent","layout","height","handleRef"],"sourceRoot":"../../../../src","sources":["components/ReorderableListCore/useReorderableListCore.ts"],"mappings":"AAAA,OAAOA,KAAK,IAAGC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAO,OAAO;AACtE,SAIEC,uBAAuB,QAClB,cAAc;AAErB,SACEC,OAAO,EAGPC,KAAK,QACA,8BAA8B;AACrC,SAEEC,MAAM,EAENC,OAAO,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CAAC,CAAC;EACf,CAAC,EACD,CAAC7B,uBAAuB,EAAED,eAAe,EAAExB,QAAQ,CACrD,CAAC;EAED,MAAMmK,SAAS,GAAInH,KAAkB,IAAK;IACxCnC,WAAW,CAACmC,KAAK,CAAC;IAElB,IAAI,OAAO1D,GAAG,KAAK,UAAU,EAAE;MAC7BA,GAAG,CAAC0D,KAAK,CAAC;IACZ,CAAC,MAAM,IAAI1D,GAAG,EAAE;MACdA,GAAG,CAAC2F,OAAO,GAAGjC,KAAK;IACrB;EACF,CAAC;EAED,OAAO;IACL4B,cAAc;IACdgF,YAAY;IACZG,oBAAoB;IACpBI,SAAS;IACTL,SAAS;IACT7G,gBAAgB;IAChBlB,UAAU;IACVC,UAAU;IACVK,YAAY;IACZF,KAAK;IACLO;EACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReorderableListCore.d.ts","sourceRoot":"","sources":["../../../../src/components/ReorderableListCore/ReorderableListCore.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAClD,OAAO,EAEL,QAAQ,EAGR,UAAU,EACX,MAAM,cAAc,CAAC;AAEtB,OAAO,EAGL,aAAa,EACd,MAAM,8BAA8B,CAAC;AACtC,OAAiB,EACf,WAAW,EAEZ,MAAM,yBAAyB,CAAC;AAKjC,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AAStD,UAAU,wBAAwB,CAAC,CAAC,CAAE,SAAQ,oBAAoB,CAAC,CAAC,CAAC;IAEnE,sBAAsB,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC;IAChE,iBAAiB,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACnD,uBAAuB,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACzD,uBAAuB,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;IAC1D,kBAAkB,EAAE,aAAa,GAAG,SAAS,CAAC;IAC9C,8BAA8B,EAAE,OAAO,GAAG,SAAS,CAAC;IACpD,UAAU,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC,aAAa,EAAE,OAAO,GAAG,SAAS,CAAC;CACpC;AA6HD,QAAA,MAAM,2BAA2B;;MAM5B,MAAM,YAAY,CAAC;AAExB,OAAO,EAAC,2BAA2B,IAAI,mBAAmB,EAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"animationDefaults.d.ts","sourceRoot":"","sources":["../../../../src/components/ReorderableListCore/animationDefaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAKjE,UAAU,eAAe;IACvB,KAAK,EAAE,gBAAgB,GAAG;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CAAC;IAC5C,GAAG,EAAE,gBAAgB,GAAG;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,CAAC;CAC3C;AAED,eAAO,MAAM,8BAA8B,EAAE,eAW5C,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,eAW9C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"autoscrollConfig.d.ts","sourceRoot":"","sources":["../../../../src/components/ReorderableListCore/autoscrollConfig.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,SAAS,SACqD,CAAC;AAE5E,eAAO,MAAM,iBAAiB;;;CAU5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ReorderableListCore/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FlatList, LayoutChangeEvent, ScrollView } from 'react-native';
|
|
3
|
-
import { SharedValue } from 'react-native-reanimated';
|
|
4
|
-
import { ReorderableListCellAnimations, ReorderableListDragEndEvent, ReorderableListDragStartEvent, ReorderableListIndexChangeEvent } from '../../types';
|
|
5
|
-
import type { ReorderableListReorderEvent } from '../../types';
|
|
6
|
-
interface UseReorderableListCoreArgs<T> {
|
|
7
|
-
ref: React.ForwardedRef<FlatList<T>>;
|
|
8
|
-
autoscrollThreshold: number;
|
|
9
|
-
autoscrollThresholdOffset: {
|
|
10
|
-
top?: number;
|
|
11
|
-
bottom?: number;
|
|
12
|
-
} | undefined;
|
|
13
|
-
autoscrollSpeedScale: number;
|
|
14
|
-
autoscrollDelay: number;
|
|
15
|
-
autoscrollActivationDelta: number;
|
|
16
|
-
animationDuration: number;
|
|
17
|
-
onReorder: (event: ReorderableListReorderEvent) => void;
|
|
18
|
-
onDragStart?: (event: ReorderableListDragStartEvent) => void;
|
|
19
|
-
onDragEnd?: (event: ReorderableListDragEndEvent) => void;
|
|
20
|
-
onIndexChange?: (event: ReorderableListIndexChangeEvent) => void;
|
|
21
|
-
onLayout?: (event: LayoutChangeEvent) => void;
|
|
22
|
-
scrollViewContainerRef: React.RefObject<ScrollView> | undefined;
|
|
23
|
-
scrollViewHeightY: SharedValue<number> | undefined;
|
|
24
|
-
scrollViewScrollOffsetY: SharedValue<number> | undefined;
|
|
25
|
-
scrollViewScrollEnabled: SharedValue<boolean> | undefined;
|
|
26
|
-
initialScrollEnabled: boolean | undefined;
|
|
27
|
-
initialScrollViewScrollEnabled: boolean | undefined;
|
|
28
|
-
nestedScrollable: boolean | undefined;
|
|
29
|
-
cellAnimations: ReorderableListCellAnimations | undefined;
|
|
30
|
-
shouldUpdateActiveItem: boolean | undefined;
|
|
31
|
-
panEnabled: boolean;
|
|
32
|
-
panActivateAfterLongPress: number | undefined;
|
|
33
|
-
}
|
|
34
|
-
export declare const useReorderableListCore: <T>({ ref, autoscrollThreshold, autoscrollThresholdOffset, autoscrollSpeedScale, autoscrollDelay, autoscrollActivationDelta, animationDuration, onReorder, onDragStart, onDragEnd, onLayout, onIndexChange, scrollViewContainerRef, scrollViewHeightY, scrollViewScrollOffsetY, scrollViewScrollEnabled, initialScrollEnabled, initialScrollViewScrollEnabled, nestedScrollable, cellAnimations, shouldUpdateActiveItem, panActivateAfterLongPress, panEnabled, }: UseReorderableListCoreArgs<T>) => {
|
|
35
|
-
gestureHandler: import("react-native-gesture-handler/lib/typescript/handlers/gestures/gestureComposition").SimultaneousGesture;
|
|
36
|
-
handleScroll: import("react-native-reanimated").ScrollHandlerProcessed<Record<string, unknown>>;
|
|
37
|
-
handleFlatListLayout: (e: LayoutChangeEvent) => void;
|
|
38
|
-
handleRef: (value: FlatList<T>) => void;
|
|
39
|
-
startDrag: (index: number) => void;
|
|
40
|
-
listContextValue: {
|
|
41
|
-
draggedHeight: SharedValue<number>;
|
|
42
|
-
currentIndex: SharedValue<number>;
|
|
43
|
-
draggedIndex: SharedValue<number>;
|
|
44
|
-
dragEndHandlers: SharedValue<((from: number, to: number) => void)[][]>;
|
|
45
|
-
activeIndex: number;
|
|
46
|
-
cellAnimations: {
|
|
47
|
-
transform: readonly import("../../types").MaximumOneOf<import("../../types").SharedValueOrType<import("../../types").Transforms>>[] | undefined;
|
|
48
|
-
opacity: number | SharedValue<number> | undefined;
|
|
49
|
-
pointerEvents?: "box-none" | "none" | "box-only" | "auto" | SharedValue<"box-none" | "none" | "box-only" | "auto" | undefined> | undefined;
|
|
50
|
-
filter?: string | readonly import("react-native").FilterFunction[] | SharedValue<string | readonly import("react-native").FilterFunction[] | undefined> | undefined;
|
|
51
|
-
backfaceVisibility?: "visible" | "hidden" | SharedValue<"visible" | "hidden" | undefined> | undefined;
|
|
52
|
-
backgroundColor?: import("react-native").ColorValue | SharedValue<import("react-native").ColorValue | undefined> | undefined;
|
|
53
|
-
borderBlockColor?: import("react-native").ColorValue | SharedValue<import("react-native").ColorValue | undefined> | undefined;
|
|
54
|
-
borderBlockEndColor?: import("react-native").ColorValue | SharedValue<import("react-native").ColorValue | undefined> | undefined;
|
|
55
|
-
borderBlockStartColor?: import("react-native").ColorValue | SharedValue<import("react-native").ColorValue | undefined> | undefined;
|
|
56
|
-
borderBottomColor?: import("react-native").ColorValue | SharedValue<import("react-native").ColorValue | undefined> | undefined;
|
|
57
|
-
borderBottomEndRadius?: string | import("react-native").AnimatableNumericValue | SharedValue<string | import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
58
|
-
borderBottomLeftRadius?: string | import("react-native").AnimatableNumericValue | SharedValue<string | import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
59
|
-
borderBottomRightRadius?: string | import("react-native").AnimatableNumericValue | SharedValue<string | import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
60
|
-
borderBottomStartRadius?: string | import("react-native").AnimatableNumericValue | SharedValue<string | import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
61
|
-
borderColor?: import("react-native").ColorValue | SharedValue<import("react-native").ColorValue | undefined> | undefined;
|
|
62
|
-
borderCurve?: "circular" | "continuous" | SharedValue<"circular" | "continuous" | undefined> | undefined;
|
|
63
|
-
borderEndColor?: import("react-native").ColorValue | SharedValue<import("react-native").ColorValue | undefined> | undefined;
|
|
64
|
-
borderEndEndRadius?: string | import("react-native").AnimatableNumericValue | SharedValue<string | import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
65
|
-
borderEndStartRadius?: string | import("react-native").AnimatableNumericValue | SharedValue<string | import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
66
|
-
borderLeftColor?: import("react-native").ColorValue | SharedValue<import("react-native").ColorValue | undefined> | undefined;
|
|
67
|
-
borderRadius?: string | import("react-native").AnimatableNumericValue | SharedValue<string | import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
68
|
-
borderRightColor?: import("react-native").ColorValue | SharedValue<import("react-native").ColorValue | undefined> | undefined;
|
|
69
|
-
borderStartColor?: import("react-native").ColorValue | SharedValue<import("react-native").ColorValue | undefined> | undefined;
|
|
70
|
-
borderStartEndRadius?: string | import("react-native").AnimatableNumericValue | SharedValue<string | import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
71
|
-
borderStartStartRadius?: string | import("react-native").AnimatableNumericValue | SharedValue<string | import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
72
|
-
borderStyle?: "solid" | "dotted" | "dashed" | SharedValue<"solid" | "dotted" | "dashed" | undefined> | undefined;
|
|
73
|
-
borderTopColor?: import("react-native").ColorValue | SharedValue<import("react-native").ColorValue | undefined> | undefined;
|
|
74
|
-
borderTopEndRadius?: string | import("react-native").AnimatableNumericValue | SharedValue<string | import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
75
|
-
borderTopLeftRadius?: string | import("react-native").AnimatableNumericValue | SharedValue<string | import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
76
|
-
borderTopRightRadius?: string | import("react-native").AnimatableNumericValue | SharedValue<string | import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
77
|
-
borderTopStartRadius?: string | import("react-native").AnimatableNumericValue | SharedValue<string | import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
78
|
-
elevation?: number | SharedValue<number | undefined> | undefined;
|
|
79
|
-
isolation?: "auto" | "isolate" | SharedValue<"auto" | "isolate" | undefined> | undefined;
|
|
80
|
-
cursor?: import("react-native").CursorValue | SharedValue<import("react-native").CursorValue | undefined> | undefined;
|
|
81
|
-
boxShadow?: string | readonly import("react-native").BoxShadowValue[] | SharedValue<string | readonly import("react-native").BoxShadowValue[] | undefined> | undefined;
|
|
82
|
-
alignContent?: "center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | "space-evenly" | SharedValue<"center" | "flex-start" | "flex-end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined> | undefined;
|
|
83
|
-
alignItems?: import("react-native").FlexAlignType | SharedValue<import("react-native").FlexAlignType | undefined> | undefined;
|
|
84
|
-
alignSelf?: "auto" | import("react-native").FlexAlignType | SharedValue<"auto" | import("react-native").FlexAlignType | undefined> | undefined;
|
|
85
|
-
aspectRatio?: string | number | SharedValue<string | number | undefined> | undefined;
|
|
86
|
-
borderBottomWidth?: number | SharedValue<number | undefined> | undefined;
|
|
87
|
-
borderEndWidth?: number | SharedValue<number | undefined> | undefined;
|
|
88
|
-
borderLeftWidth?: number | SharedValue<number | undefined> | undefined;
|
|
89
|
-
borderRightWidth?: number | SharedValue<number | undefined> | undefined;
|
|
90
|
-
borderStartWidth?: number | SharedValue<number | undefined> | undefined;
|
|
91
|
-
borderTopWidth?: number | SharedValue<number | undefined> | undefined;
|
|
92
|
-
borderWidth?: number | SharedValue<number | undefined> | undefined;
|
|
93
|
-
bottom?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
94
|
-
display?: "flex" | "none" | SharedValue<"flex" | "none" | undefined> | undefined;
|
|
95
|
-
end?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
96
|
-
flex?: number | SharedValue<number | undefined> | undefined;
|
|
97
|
-
flexBasis?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
98
|
-
flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | SharedValue<"row" | "column" | "row-reverse" | "column-reverse" | undefined> | undefined;
|
|
99
|
-
rowGap?: string | number | SharedValue<string | number | undefined> | undefined;
|
|
100
|
-
gap?: string | number | SharedValue<string | number | undefined> | undefined;
|
|
101
|
-
columnGap?: string | number | SharedValue<string | number | undefined> | undefined;
|
|
102
|
-
flexGrow?: number | SharedValue<number | undefined> | undefined;
|
|
103
|
-
flexShrink?: number | SharedValue<number | undefined> | undefined;
|
|
104
|
-
flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | SharedValue<"wrap" | "nowrap" | "wrap-reverse" | undefined> | undefined;
|
|
105
|
-
height?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
106
|
-
justifyContent?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | SharedValue<"center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | undefined> | undefined;
|
|
107
|
-
left?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
108
|
-
margin?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
109
|
-
marginBottom?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
110
|
-
marginEnd?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
111
|
-
marginHorizontal?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
112
|
-
marginLeft?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
113
|
-
marginRight?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
114
|
-
marginStart?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
115
|
-
marginTop?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
116
|
-
marginVertical?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
117
|
-
maxHeight?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
118
|
-
maxWidth?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
119
|
-
minHeight?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
120
|
-
minWidth?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
121
|
-
overflow?: "visible" | "hidden" | "scroll" | SharedValue<"visible" | "hidden" | "scroll" | undefined> | undefined;
|
|
122
|
-
padding?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
123
|
-
paddingBottom?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
124
|
-
paddingEnd?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
125
|
-
paddingHorizontal?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
126
|
-
paddingLeft?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
127
|
-
paddingRight?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
128
|
-
paddingStart?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
129
|
-
paddingTop?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
130
|
-
paddingVertical?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
131
|
-
position?: "absolute" | "relative" | "static" | SharedValue<"absolute" | "relative" | "static" | undefined> | undefined;
|
|
132
|
-
right?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
133
|
-
start?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
134
|
-
top?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
135
|
-
width?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
136
|
-
zIndex?: number | SharedValue<number | undefined> | undefined;
|
|
137
|
-
direction?: "inherit" | "ltr" | "rtl" | SharedValue<"inherit" | "ltr" | "rtl" | undefined> | undefined;
|
|
138
|
-
inset?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
139
|
-
insetBlock?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
140
|
-
insetBlockEnd?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
141
|
-
insetBlockStart?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
142
|
-
insetInline?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
143
|
-
insetInlineEnd?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
144
|
-
insetInlineStart?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
145
|
-
marginBlock?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
146
|
-
marginBlockEnd?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
147
|
-
marginBlockStart?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
148
|
-
marginInline?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
149
|
-
marginInlineEnd?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
150
|
-
marginInlineStart?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
151
|
-
paddingBlock?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
152
|
-
paddingBlockEnd?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
153
|
-
paddingBlockStart?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
154
|
-
paddingInline?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
155
|
-
paddingInlineEnd?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
156
|
-
paddingInlineStart?: import("react-native").DimensionValue | SharedValue<import("react-native").DimensionValue | undefined> | undefined;
|
|
157
|
-
shadowColor?: import("react-native").ColorValue | SharedValue<import("react-native").ColorValue | undefined> | undefined;
|
|
158
|
-
shadowOffset?: Readonly<{
|
|
159
|
-
width: number;
|
|
160
|
-
height: number;
|
|
161
|
-
}> | SharedValue<Readonly<{
|
|
162
|
-
width: number;
|
|
163
|
-
height: number;
|
|
164
|
-
}> | undefined> | undefined;
|
|
165
|
-
shadowOpacity?: import("react-native").AnimatableNumericValue | SharedValue<import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
166
|
-
shadowRadius?: number | SharedValue<number | undefined> | undefined;
|
|
167
|
-
transformOrigin?: string | (string | number)[] | SharedValue<string | (string | number)[] | undefined> | undefined;
|
|
168
|
-
transformMatrix?: number[] | SharedValue<number[] | undefined> | undefined;
|
|
169
|
-
rotation?: import("react-native").AnimatableNumericValue | SharedValue<import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
170
|
-
scaleX?: import("react-native").AnimatableNumericValue | SharedValue<import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
171
|
-
scaleY?: import("react-native").AnimatableNumericValue | SharedValue<import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
172
|
-
translateX?: import("react-native").AnimatableNumericValue | SharedValue<import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
173
|
-
translateY?: import("react-native").AnimatableNumericValue | SharedValue<import("react-native").AnimatableNumericValue | undefined> | undefined;
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
itemOffset: SharedValue<number[]>;
|
|
177
|
-
itemHeight: SharedValue<number[]>;
|
|
178
|
-
draggedIndex: SharedValue<number>;
|
|
179
|
-
dragY: SharedValue<number>;
|
|
180
|
-
duration: SharedValue<number>;
|
|
181
|
-
};
|
|
182
|
-
export {};
|
|
183
|
-
//# sourceMappingURL=useReorderableListCore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useReorderableListCore.d.ts","sourceRoot":"","sources":["../../../../src/components/ReorderableListCore/useReorderableListCore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AACvE,OAAO,EACL,QAAQ,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AAC,GAAG,SAAS,CAAC;IAC1D,oBAAoB,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1C,8BAA8B,EAAE,OAAO,GAAG,SAAS,CAAC;IACpD,gBAAgB,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,cAAc,EAAE,6BAA6B,GAAG,SAAS,CAAC;IAC1D,sBAAsB,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5C,UAAU,EAAE,OAAO,CAAC;IACpB,yBAAyB,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/C;AAED,eAAO,MAAM,sBAAsB;;;;;uBAisBvB,MAAM;;;;;6CA3oBN,MAAM,MAAM,MAAM,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2tBtC,CAAC"}
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import React, {useCallback, useMemo} from 'react';
|
|
2
|
-
import {
|
|
3
|
-
CellRendererProps,
|
|
4
|
-
FlatList,
|
|
5
|
-
FlatListProps,
|
|
6
|
-
Platform,
|
|
7
|
-
ScrollView,
|
|
8
|
-
} from 'react-native';
|
|
9
|
-
|
|
10
|
-
import {
|
|
11
|
-
Gesture,
|
|
12
|
-
GestureDetector,
|
|
13
|
-
NativeGesture,
|
|
14
|
-
} from 'react-native-gesture-handler';
|
|
15
|
-
import Animated, {
|
|
16
|
-
SharedValue,
|
|
17
|
-
useComposedEventHandler,
|
|
18
|
-
} from 'react-native-reanimated';
|
|
19
|
-
|
|
20
|
-
import {AUTOSCROLL_CONFIG} from './autoscrollConfig';
|
|
21
|
-
import {useReorderableListCore} from './useReorderableListCore';
|
|
22
|
-
import {ReorderableListContext} from '../../contexts';
|
|
23
|
-
import type {ReorderableListProps} from '../../types';
|
|
24
|
-
import {ReorderableListCell} from '../ReorderableListCell';
|
|
25
|
-
|
|
26
|
-
const AnimatedFlatList = Animated.createAnimatedComponent(
|
|
27
|
-
FlatList,
|
|
28
|
-
) as unknown as <T>(
|
|
29
|
-
props: FlatListProps<T> & {ref?: React.Ref<FlatList<T>>},
|
|
30
|
-
) => React.ReactElement;
|
|
31
|
-
|
|
32
|
-
interface ReorderableListCoreProps<T> extends ReorderableListProps<T> {
|
|
33
|
-
// not optional but undefined to avoid forgetting to pass a prop
|
|
34
|
-
scrollViewContainerRef: React.RefObject<ScrollView> | undefined;
|
|
35
|
-
scrollViewHeightY: SharedValue<number> | undefined;
|
|
36
|
-
scrollViewScrollOffsetY: SharedValue<number> | undefined;
|
|
37
|
-
scrollViewScrollEnabled: SharedValue<boolean> | undefined;
|
|
38
|
-
outerScrollGesture: NativeGesture | undefined;
|
|
39
|
-
initialScrollViewScrollEnabled: boolean | undefined;
|
|
40
|
-
scrollable: boolean | undefined;
|
|
41
|
-
scrollEnabled: boolean | undefined;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const ReorderableListCore = <T,>(
|
|
45
|
-
{
|
|
46
|
-
autoscrollThreshold = 0.1,
|
|
47
|
-
autoscrollThresholdOffset,
|
|
48
|
-
autoscrollSpeedScale = 1,
|
|
49
|
-
autoscrollDelay = AUTOSCROLL_CONFIG.delay,
|
|
50
|
-
autoscrollActivationDelta = 5,
|
|
51
|
-
animationDuration = 200,
|
|
52
|
-
onLayout,
|
|
53
|
-
onReorder,
|
|
54
|
-
onScroll,
|
|
55
|
-
onDragStart,
|
|
56
|
-
onDragEnd,
|
|
57
|
-
onIndexChange,
|
|
58
|
-
scrollViewContainerRef,
|
|
59
|
-
scrollViewHeightY,
|
|
60
|
-
scrollViewScrollOffsetY,
|
|
61
|
-
scrollViewScrollEnabled,
|
|
62
|
-
initialScrollViewScrollEnabled,
|
|
63
|
-
scrollable,
|
|
64
|
-
outerScrollGesture,
|
|
65
|
-
cellAnimations,
|
|
66
|
-
shouldUpdateActiveItem,
|
|
67
|
-
panEnabled = true,
|
|
68
|
-
panActivateAfterLongPress,
|
|
69
|
-
...rest
|
|
70
|
-
}: ReorderableListCoreProps<T>,
|
|
71
|
-
ref: React.ForwardedRef<FlatList<T>>,
|
|
72
|
-
) => {
|
|
73
|
-
const {
|
|
74
|
-
gestureHandler,
|
|
75
|
-
handleScroll,
|
|
76
|
-
handleFlatListLayout,
|
|
77
|
-
handleRef,
|
|
78
|
-
startDrag,
|
|
79
|
-
listContextValue,
|
|
80
|
-
itemOffset,
|
|
81
|
-
itemHeight,
|
|
82
|
-
dragY,
|
|
83
|
-
draggedIndex,
|
|
84
|
-
duration,
|
|
85
|
-
} = useReorderableListCore({
|
|
86
|
-
ref,
|
|
87
|
-
autoscrollThreshold,
|
|
88
|
-
autoscrollThresholdOffset,
|
|
89
|
-
autoscrollSpeedScale,
|
|
90
|
-
autoscrollDelay,
|
|
91
|
-
autoscrollActivationDelta,
|
|
92
|
-
animationDuration,
|
|
93
|
-
onLayout,
|
|
94
|
-
onReorder,
|
|
95
|
-
onDragStart,
|
|
96
|
-
onDragEnd,
|
|
97
|
-
onIndexChange,
|
|
98
|
-
scrollViewContainerRef,
|
|
99
|
-
scrollViewHeightY,
|
|
100
|
-
scrollViewScrollOffsetY,
|
|
101
|
-
scrollViewScrollEnabled,
|
|
102
|
-
// flatlist will default to true if we pass explicitly undefined,
|
|
103
|
-
// but internally we would treat it as false, so we force true
|
|
104
|
-
initialScrollEnabled:
|
|
105
|
-
typeof rest.scrollEnabled === 'undefined' ? true : rest.scrollEnabled,
|
|
106
|
-
initialScrollViewScrollEnabled:
|
|
107
|
-
typeof initialScrollViewScrollEnabled === 'undefined'
|
|
108
|
-
? true
|
|
109
|
-
: initialScrollViewScrollEnabled,
|
|
110
|
-
nestedScrollable: scrollable,
|
|
111
|
-
cellAnimations,
|
|
112
|
-
shouldUpdateActiveItem,
|
|
113
|
-
panEnabled,
|
|
114
|
-
panActivateAfterLongPress,
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
const combinedGesture = useMemo(() => {
|
|
118
|
-
// android is able to handle nested scroll view, but not the full height ones like iOS
|
|
119
|
-
if (outerScrollGesture && !(Platform.OS === 'android' && scrollable)) {
|
|
120
|
-
return Gesture.Simultaneous(outerScrollGesture, gestureHandler);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
return gestureHandler;
|
|
124
|
-
}, [scrollable, outerScrollGesture, gestureHandler]);
|
|
125
|
-
|
|
126
|
-
const composedScrollHandler = useComposedEventHandler([
|
|
127
|
-
handleScroll,
|
|
128
|
-
onScroll || null,
|
|
129
|
-
]);
|
|
130
|
-
|
|
131
|
-
const renderAnimatedCell = useCallback(
|
|
132
|
-
({cellKey, ...props}: CellRendererProps<T>) => (
|
|
133
|
-
<ReorderableListCell
|
|
134
|
-
{...props}
|
|
135
|
-
// forces remount with key change on reorder
|
|
136
|
-
key={`${cellKey}+${props.index}`}
|
|
137
|
-
itemOffset={itemOffset}
|
|
138
|
-
itemHeight={itemHeight}
|
|
139
|
-
dragY={dragY}
|
|
140
|
-
draggedIndex={draggedIndex}
|
|
141
|
-
animationDuration={duration}
|
|
142
|
-
startDrag={startDrag}
|
|
143
|
-
/>
|
|
144
|
-
),
|
|
145
|
-
[itemOffset, itemHeight, dragY, draggedIndex, duration, startDrag],
|
|
146
|
-
);
|
|
147
|
-
|
|
148
|
-
return (
|
|
149
|
-
<ReorderableListContext.Provider value={listContextValue}>
|
|
150
|
-
<GestureDetector gesture={combinedGesture}>
|
|
151
|
-
<AnimatedFlatList
|
|
152
|
-
{...rest}
|
|
153
|
-
ref={handleRef}
|
|
154
|
-
CellRendererComponent={renderAnimatedCell}
|
|
155
|
-
onLayout={handleFlatListLayout}
|
|
156
|
-
onScroll={composedScrollHandler}
|
|
157
|
-
scrollEventThrottle={1}
|
|
158
|
-
horizontal={false}
|
|
159
|
-
removeClippedSubviews={false}
|
|
160
|
-
numColumns={1}
|
|
161
|
-
/>
|
|
162
|
-
</GestureDetector>
|
|
163
|
-
</ReorderableListContext.Provider>
|
|
164
|
-
);
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
const MemoizedReorderableListCore = React.memo(
|
|
168
|
-
React.forwardRef(ReorderableListCore),
|
|
169
|
-
) as <T>(
|
|
170
|
-
props: ReorderableListCoreProps<T> & {
|
|
171
|
-
ref?: React.ForwardedRef<FlatList<T> | null>;
|
|
172
|
-
},
|
|
173
|
-
) => React.ReactElement;
|
|
174
|
-
|
|
175
|
-
export {MemoizedReorderableListCore as ReorderableListCore};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import {Platform} from 'react-native';
|
|
2
|
-
|
|
3
|
-
const IOS_CONFIG = {
|
|
4
|
-
delay: 80,
|
|
5
|
-
increment: 100,
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const ANDROID_FABRIC_CONFIG = {
|
|
9
|
-
delay: 50,
|
|
10
|
-
increment: 80,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const ANDROID_PAPER_CONFIG = {
|
|
14
|
-
delay: 10,
|
|
15
|
-
increment: 4,
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const IS_FABRIC =
|
|
19
|
-
global && typeof global === 'object' && 'nativeFabricUIManager' in global;
|
|
20
|
-
|
|
21
|
-
export const AUTOSCROLL_CONFIG = Platform.select({
|
|
22
|
-
// autoscroll behaves differently with Fabric and Paper on Android
|
|
23
|
-
android: IS_FABRIC ? ANDROID_FABRIC_CONFIG : ANDROID_PAPER_CONFIG,
|
|
24
|
-
ios: IOS_CONFIG,
|
|
25
|
-
|
|
26
|
-
// unsupported platforms
|
|
27
|
-
web: IOS_CONFIG,
|
|
28
|
-
macos: IOS_CONFIG,
|
|
29
|
-
windows: IOS_CONFIG,
|
|
30
|
-
native: IOS_CONFIG,
|
|
31
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ReorderableListCore';
|