@codeleap/mobile 4.2.6 → 4.2.8
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.
|
@@ -56,7 +56,7 @@ var SectionComponent = (0, common_1.memoBy)(function (props) {
|
|
|
56
56
|
}, ['renderWith']);
|
|
57
57
|
function SectionFilters(props) {
|
|
58
58
|
var _a;
|
|
59
|
-
var _b = __assign(__assign({}, SectionFilters.defaultProps), props), sections = _b.sections, RenderItem = _b.renderItem, renderSectionHeader = _b.renderSectionHeader, renderSectionFooter = _b.renderSectionFooter, rest = __rest(_b, ["sections", "renderItem", "renderSectionHeader", "renderSectionFooter"]);
|
|
59
|
+
var _b = __assign(__assign({}, SectionFilters.defaultProps), props), sections = _b.sections, RenderItem = _b.renderItem, renderSectionHeader = _b.renderSectionHeader, renderSectionFooter = _b.renderSectionFooter, children = _b.children, rest = __rest(_b, ["sections", "renderItem", "renderSectionHeader", "renderSectionFooter", "children"]);
|
|
60
60
|
var handle = (_a = props.handle) !== null && _a !== void 0 ? _a : (0, useSectionFilters_1.useSectionFilters)(props);
|
|
61
61
|
var renderItem = function (section) {
|
|
62
62
|
var _a;
|
|
@@ -71,6 +71,7 @@ function SectionFilters(props) {
|
|
|
71
71
|
};
|
|
72
72
|
return (<context_1.SectionsFilterContext.Provider value={handle}>
|
|
73
73
|
<Sections_1.Sections {...rest} sections={sections} renderItem={renderItem} renderSectionHeader={function (props) { return <SectionComponent {...props} renderWith={renderSectionHeader}/>; }} renderSectionFooter={function (props) { return <SectionComponent {...props} renderWith={renderSectionFooter}/>; }}/>
|
|
74
|
+
{children}
|
|
74
75
|
</context_1.SectionsFilterContext.Provider>);
|
|
75
76
|
}
|
|
76
77
|
exports.SectionFilters = SectionFilters;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/SectionFilters/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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B,CAAqB;CAC1B,CAAA"}
|
|
@@ -4,7 +4,7 @@ import { FileInputImageSource } from '../FileInput';
|
|
|
4
4
|
import { SortablePhoto, SortablePhotosProps } from './types';
|
|
5
5
|
export declare const useSortablePhotos: <T extends SortablePhoto>(props: SortablePhotosProps<T>) => {
|
|
6
6
|
input: {
|
|
7
|
-
openFilePicker: (imageSource?: FileInputImageSource, options?: Partial<import("react-native-image-crop-picker").Options>) => Promise<import("@codeleap/common/
|
|
7
|
+
openFilePicker: (imageSource?: FileInputImageSource, options?: Partial<import("react-native-image-crop-picker").Options>) => Promise<import("@codeleap/common/src/tools/Form/types").AnyFile[]>;
|
|
8
8
|
ref: import("react").MutableRefObject<import("../FileInput").FileInputRef>;
|
|
9
9
|
};
|
|
10
10
|
handlePressPhoto: (currentData: T[], photo: T, order: number) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codeleap/mobile",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.8",
|
|
4
4
|
"main": "src/index.ts",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
"directory": "packages/mobile"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@codeleap/common": "4.2.
|
|
13
|
-
"@codeleap/config": "4.2.
|
|
12
|
+
"@codeleap/common": "4.2.8",
|
|
13
|
+
"@codeleap/config": "4.2.8"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "tsc --build",
|
|
17
17
|
"lint": "eslint -c .eslintrc.js --fix \"./src/**/*.{ts,tsx,js,jsx}\""
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@codeleap/common": "4.2.
|
|
21
|
-
"@codeleap/styles": "4.2.
|
|
20
|
+
"@codeleap/common": "4.2.8",
|
|
21
|
+
"@codeleap/styles": "4.2.8",
|
|
22
22
|
"@d11/react-native-fast-image": "8.8.0",
|
|
23
23
|
"@react-native-firebase/messaging": "14.4.0",
|
|
24
24
|
"@react-navigation/bottom-tabs": "6.5.3",
|
package/package.json.bak
CHANGED
|
@@ -32,6 +32,7 @@ export function SectionFilters<T extends TSectionFilterItem = TSectionFilterItem
|
|
|
32
32
|
renderItem: RenderItem,
|
|
33
33
|
renderSectionHeader,
|
|
34
34
|
renderSectionFooter,
|
|
35
|
+
children,
|
|
35
36
|
...rest
|
|
36
37
|
} = {
|
|
37
38
|
...SectionFilters.defaultProps,
|
|
@@ -70,6 +71,7 @@ export function SectionFilters<T extends TSectionFilterItem = TSectionFilterItem
|
|
|
70
71
|
renderSectionHeader={(props) => <SectionComponent {...props} renderWith={renderSectionHeader} />}
|
|
71
72
|
renderSectionFooter={(props) => <SectionComponent {...props} renderWith={renderSectionFooter} />}
|
|
72
73
|
/>
|
|
74
|
+
{children}
|
|
73
75
|
</SectionsFilterContext.Provider>
|
|
74
76
|
)
|
|
75
77
|
}
|