@legendapp/list 3.0.0-beta.32 → 3.0.0-beta.34
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 +7 -1
- package/animated.d.ts +605 -6
- package/animated.js +2 -2
- package/animated.mjs +1 -1
- package/index.d.ts +503 -118
- package/index.js +607 -275
- package/index.mjs +607 -275
- package/index.native.js +348 -189
- package/index.native.mjs +347 -188
- package/keyboard-controller.d.ts +616 -6
- package/keyboard-controller.js +2 -2
- package/keyboard-controller.mjs +1 -1
- package/keyboard.d.ts +204 -8
- package/keyboard.js +68 -53
- package/keyboard.mjs +71 -55
- package/{index.d.mts → list-react-native.d.ts} +138 -42
- package/list-react-native.js +4348 -0
- package/list-react-native.mjs +4318 -0
- package/{index.native.d.mts → list-react.d.ts} +195 -42
- package/list-react.js +4709 -0
- package/list-react.mjs +4679 -0
- package/package.json +52 -1
- package/reanimated.d.ts +605 -7
- package/reanimated.js +180 -12
- package/reanimated.mjs +177 -9
- package/section-list.d.ts +615 -14
- package/section-list.js +6 -6
- package/section-list.mjs +1 -1
- package/animated.d.mts +0 -9
- package/animated.native.d.mts +0 -9
- package/animated.native.d.ts +0 -9
- package/animated.native.js +0 -9
- package/animated.native.mjs +0 -7
- package/index.native.d.ts +0 -817
- package/keyboard-controller.d.mts +0 -12
- package/keyboard-controller.native.d.mts +0 -12
- package/keyboard-controller.native.d.ts +0 -12
- package/keyboard-controller.native.js +0 -69
- package/keyboard-controller.native.mjs +0 -48
- package/keyboard.d.mts +0 -13
- package/keyboard.native.d.mts +0 -13
- package/keyboard.native.d.ts +0 -13
- package/keyboard.native.js +0 -399
- package/keyboard.native.mjs +0 -377
- package/reanimated.d.mts +0 -18
- package/reanimated.native.d.mts +0 -18
- package/reanimated.native.d.ts +0 -18
- package/reanimated.native.js +0 -89
- package/reanimated.native.mjs +0 -65
- package/section-list.d.mts +0 -112
- package/section-list.native.d.mts +0 -112
- package/section-list.native.d.ts +0 -112
- package/section-list.native.js +0 -293
- package/section-list.native.mjs +0 -271
package/section-list.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var reactNative = require('react-native');
|
|
5
|
-
var
|
|
4
|
+
var reactNative$1 = require('react-native');
|
|
5
|
+
var reactNative = require('@legendapp/list/react-native');
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -139,8 +139,8 @@ function resolveSeparatorComponent(component, props) {
|
|
|
139
139
|
const Component = component;
|
|
140
140
|
return /* @__PURE__ */ React__namespace.createElement(Component, { ...props });
|
|
141
141
|
}
|
|
142
|
-
var SectionList =
|
|
143
|
-
|
|
142
|
+
var SectionList = reactNative.typedMemo(
|
|
143
|
+
reactNative.typedForwardRef(function SectionListInner(props, ref) {
|
|
144
144
|
const {
|
|
145
145
|
sections,
|
|
146
146
|
renderItem: renderItemProp,
|
|
@@ -148,7 +148,7 @@ var SectionList = list.typedMemo(
|
|
|
148
148
|
renderSectionFooter,
|
|
149
149
|
ItemSeparatorComponent,
|
|
150
150
|
SectionSeparatorComponent,
|
|
151
|
-
stickySectionHeadersEnabled = reactNative.Platform.OS === "ios",
|
|
151
|
+
stickySectionHeadersEnabled = reactNative$1.Platform.OS === "ios",
|
|
152
152
|
keyExtractor,
|
|
153
153
|
extraData,
|
|
154
154
|
onViewableItemsChanged,
|
|
@@ -273,7 +273,7 @@ var SectionList = list.typedMemo(
|
|
|
273
273
|
[scrollToLocation]
|
|
274
274
|
);
|
|
275
275
|
return /* @__PURE__ */ React__namespace.createElement(
|
|
276
|
-
|
|
276
|
+
reactNative.LegendList,
|
|
277
277
|
{
|
|
278
278
|
...restProps,
|
|
279
279
|
columnWrapperStyle: void 0,
|
package/section-list.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Platform } from 'react-native';
|
|
3
|
-
import { typedMemo, typedForwardRef, LegendList } from '@legendapp/list';
|
|
3
|
+
import { typedMemo, typedForwardRef, LegendList } from '@legendapp/list/react-native';
|
|
4
4
|
|
|
5
5
|
// src/section-list/SectionList.tsx
|
|
6
6
|
|
package/animated.d.mts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as _legendapp_list from '@legendapp/list';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { Animated } from 'react-native';
|
|
4
|
-
|
|
5
|
-
declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: _legendapp_list.LegendListProps<T> & React.RefAttributes<_legendapp_list.LegendListRef>) => React.ReactNode) & {
|
|
6
|
-
displayName?: string;
|
|
7
|
-
}>;
|
|
8
|
-
|
|
9
|
-
export { AnimatedLegendList };
|
package/animated.native.d.mts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as _legendapp_list from '@legendapp/list';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { Animated } from 'react-native';
|
|
4
|
-
|
|
5
|
-
declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: _legendapp_list.LegendListProps<T> & React.RefAttributes<_legendapp_list.LegendListRef>) => React.ReactNode) & {
|
|
6
|
-
displayName?: string;
|
|
7
|
-
}>;
|
|
8
|
-
|
|
9
|
-
export { AnimatedLegendList };
|
package/animated.native.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as _legendapp_list from '@legendapp/list';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { Animated } from 'react-native';
|
|
4
|
-
|
|
5
|
-
declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: _legendapp_list.LegendListProps<T> & React.RefAttributes<_legendapp_list.LegendListRef>) => React.ReactNode) & {
|
|
6
|
-
displayName?: string;
|
|
7
|
-
}>;
|
|
8
|
-
|
|
9
|
-
export { AnimatedLegendList };
|
package/animated.native.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var reactNative = require('react-native');
|
|
4
|
-
var list = require('@legendapp/list');
|
|
5
|
-
|
|
6
|
-
// src/integrations/animated.tsx
|
|
7
|
-
var AnimatedLegendList = reactNative.Animated.createAnimatedComponent(list.LegendList);
|
|
8
|
-
|
|
9
|
-
exports.AnimatedLegendList = AnimatedLegendList;
|
package/animated.native.mjs
DELETED