@codeleap/mobile 4.2.18 → 4.3.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/dist/components/ActivityIndicator/types.d.ts +1 -1
- package/dist/components/Autocomplete/index.js +2 -1
- package/dist/components/Autocomplete/index.js.map +1 -1
- package/dist/components/Autocomplete/types.d.ts +2 -1
- package/dist/components/Avatar/index.js +3 -1
- package/dist/components/Avatar/index.js.map +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Badge/index.js.map +1 -1
- package/dist/components/Badge/types.d.ts +1 -1
- package/dist/components/Button/styles.d.ts +1 -1
- package/dist/components/Calendar/index.js +1 -1
- package/dist/components/Calendar/index.js.map +1 -1
- package/dist/components/Calendar/types.d.ts +1 -1
- package/dist/components/DatePickerModal/index.js +3 -1
- package/dist/components/DatePickerModal/index.js.map +1 -1
- package/dist/components/DatePickerModal/types.d.ts +2 -1
- package/dist/components/FileInput/index.js +1 -1
- package/dist/components/FileInput/index.js.map +1 -1
- package/dist/components/FileInput/types.d.ts +2 -1
- package/dist/components/Icon/index.js +2 -1
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/Image/index.js +2 -1
- package/dist/components/Image/index.js.map +1 -1
- package/dist/components/Image/types.d.ts +1 -1
- package/dist/components/ImageView/Spotlight.js +3 -1
- package/dist/components/ImageView/Spotlight.js.map +1 -1
- package/dist/components/ImageView/component.d.ts +1 -1
- package/dist/components/ImageView/component.js +1 -1
- package/dist/components/ImageView/component.js.map +1 -1
- package/dist/components/InputBase/index.js +2 -1
- package/dist/components/InputBase/index.js.map +1 -1
- package/dist/components/InputBase/styles.js +1 -1
- package/dist/components/InputBase/styles.js.map +1 -1
- package/dist/components/InputBase/types.d.ts +1 -1
- package/dist/components/List/index.js +2 -1
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Modal/types.d.ts +1 -1
- package/dist/components/Navigation/Navigation.js +1 -1
- package/dist/components/Navigation/Navigation.js.map +1 -1
- package/dist/components/NumberIncrement/index.js +2 -1
- package/dist/components/NumberIncrement/index.js.map +1 -1
- package/dist/components/NumberIncrement/types.d.ts +2 -1
- package/dist/components/Pager/PagerDots.d.ts +1 -1
- package/dist/components/Pager/index.js +2 -1
- package/dist/components/Pager/index.js.map +1 -1
- package/dist/components/PaginationIndicator/index.js +1 -1
- package/dist/components/PaginationIndicator/index.js.map +1 -1
- package/dist/components/PlacesAutocomplete/index.js +1 -1
- package/dist/components/PlacesAutocomplete/index.js.map +1 -1
- package/dist/components/PlacesAutocomplete/types.d.ts +1 -1
- package/dist/components/RadioInput/index.js +1 -1
- package/dist/components/RadioInput/index.js.map +1 -1
- package/dist/components/RadioInput/types.d.ts +2 -1
- package/dist/components/Scroll/index.js +2 -1
- package/dist/components/Scroll/index.js.map +1 -1
- package/dist/components/SearchInput/index.js +1 -1
- package/dist/components/SearchInput/index.js.map +1 -1
- package/dist/components/SectionFilters/index.js +2 -1
- package/dist/components/SectionFilters/index.js.map +1 -1
- package/dist/components/SectionFilters/useSectionFilters.js +2 -1
- package/dist/components/SectionFilters/useSectionFilters.js.map +1 -1
- package/dist/components/Sections/index.js +2 -1
- package/dist/components/Sections/index.js.map +1 -1
- package/dist/components/SegmentedControl/Option.d.ts +1 -1
- package/dist/components/SegmentedControl/styles.d.ts +1 -1
- package/dist/components/SegmentedControl/types.d.ts +1 -1
- package/dist/components/Select/index.js +2 -1
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/Select/types.d.ts +2 -1
- package/dist/components/Slider/index.js +2 -1
- package/dist/components/Slider/index.js.map +1 -1
- package/dist/components/SortablePhotos/useSortablePhotos.d.ts +1 -1
- package/dist/components/SortablePhotos/useSortablePhotos.js +3 -3
- package/dist/components/SortablePhotos/useSortablePhotos.js.map +1 -1
- package/dist/components/Text/index.js +1 -1
- package/dist/components/Text/index.js.map +1 -1
- package/dist/components/Text/styles.d.ts +1 -1
- package/dist/components/TextInput/index.js +3 -1
- package/dist/components/TextInput/index.js.map +1 -1
- package/dist/components/TextInput/types.d.ts +2 -1
- package/dist/components/Touchable/index.js +3 -1
- package/dist/components/Touchable/index.js.map +1 -1
- package/dist/components/Touchable/types.d.ts +1 -1
- package/dist/components/View/types.d.ts +1 -1
- package/dist/modules/types/textInputMask.d.ts +1 -1
- package/dist/utils/KeyboardAware/keyboardHooks.js +1 -1
- package/dist/utils/KeyboardAware/keyboardHooks.js.map +1 -1
- package/dist/utils/MobilePermissionManager/Permission.d.ts +19 -0
- package/dist/utils/MobilePermissionManager/Permission.js +65 -0
- package/dist/utils/MobilePermissionManager/Permission.js.map +1 -0
- package/dist/utils/MobilePermissionManager/PermissionManager.d.ts +24 -0
- package/dist/utils/MobilePermissionManager/PermissionManager.js +84 -0
- package/dist/utils/MobilePermissionManager/PermissionManager.js.map +1 -0
- package/dist/utils/MobilePermissionManager/index.d.ts +3 -0
- package/dist/utils/MobilePermissionManager/index.js +5 -0
- package/dist/utils/MobilePermissionManager/index.js.map +1 -0
- package/dist/utils/MobilePermissionManager/types.d.ts +32 -0
- package/dist/utils/MobilePermissionManager/types.js +2 -0
- package/dist/utils/MobilePermissionManager/types.js.map +1 -0
- package/dist/utils/ModalManager/components.d.ts +1 -1
- package/dist/utils/ModalManager/components.js +1 -1
- package/dist/utils/ModalManager/components.js.map +1 -1
- package/dist/utils/ModalManager/context.d.ts +1 -1
- package/dist/utils/ModalManager/context.js +2 -1
- package/dist/utils/ModalManager/context.js.map +1 -1
- package/dist/utils/NotificationManager/index.d.ts +2 -2
- package/dist/utils/NotificationManager/index.js +1 -1
- package/dist/utils/NotificationManager/index.js.map +1 -1
- package/dist/utils/NotificationManager/types.d.ts +1 -1
- package/dist/utils/PermissionManager/context.d.ts +1 -1
- package/dist/utils/PermissionManager/context.js +2 -1
- package/dist/utils/PermissionManager/context.js.map +1 -1
- package/dist/utils/PermissionManager/types.d.ts +1 -1
- package/dist/utils/StorageManager.d.ts +1 -1
- package/dist/utils/hooks.js +3 -1
- package/dist/utils/hooks.js.map +1 -1
- package/dist/utils/misc.d.ts +1 -1
- package/dist/utils/misc.js +2 -1
- package/dist/utils/misc.js.map +1 -1
- package/dist/utils/useQueryListRefresh.d.ts +2 -1
- package/dist/utils/useQueryListRefresh.js +1 -1
- package/dist/utils/useQueryListRefresh.js.map +1 -1
- package/package.json +19 -5
- package/package.json.bak +18 -4
- package/src/components/ActivityIndicator/types.ts +1 -1
- package/src/components/Autocomplete/index.tsx +3 -1
- package/src/components/Autocomplete/types.ts +2 -1
- package/src/components/Avatar/index.tsx +3 -1
- package/src/components/Badge/index.tsx +2 -2
- package/src/components/Badge/types.ts +1 -1
- package/src/components/Button/index.tsx +1 -1
- package/src/components/Button/styles.ts +1 -1
- package/src/components/Calendar/index.tsx +1 -1
- package/src/components/Calendar/types.ts +1 -2
- package/src/components/DatePickerModal/index.tsx +3 -1
- package/src/components/DatePickerModal/types.ts +2 -1
- package/src/components/FileInput/index.tsx +2 -1
- package/src/components/FileInput/types.ts +2 -1
- package/src/components/Icon/index.tsx +2 -1
- package/src/components/Image/index.tsx +2 -1
- package/src/components/Image/types.ts +1 -1
- package/src/components/ImageView/Spotlight.tsx +3 -1
- package/src/components/ImageView/component.tsx +3 -1
- package/src/components/InputBase/index.tsx +2 -1
- package/src/components/InputBase/styles.ts +1 -1
- package/src/components/InputBase/types.ts +1 -1
- package/src/components/List/index.tsx +2 -1
- package/src/components/Modal/index.tsx +1 -1
- package/src/components/Modal/types.ts +1 -1
- package/src/components/Navigation/Navigation.tsx +1 -1
- package/src/components/NumberIncrement/index.tsx +2 -1
- package/src/components/NumberIncrement/types.ts +2 -1
- package/src/components/Pager/PagerDots.tsx +1 -1
- package/src/components/Pager/index.tsx +2 -1
- package/src/components/PaginationIndicator/index.tsx +1 -1
- package/src/components/PlacesAutocomplete/index.tsx +1 -1
- package/src/components/PlacesAutocomplete/types.ts +1 -1
- package/src/components/RadioInput/index.tsx +1 -1
- package/src/components/RadioInput/types.ts +2 -1
- package/src/components/Scroll/index.tsx +2 -1
- package/src/components/SearchInput/index.tsx +1 -1
- package/src/components/SectionFilters/index.tsx +2 -1
- package/src/components/SectionFilters/useSectionFilters.tsx +2 -1
- package/src/components/Sections/index.tsx +2 -1
- package/src/components/SegmentedControl/Option.tsx +1 -1
- package/src/components/SegmentedControl/styles.ts +1 -1
- package/src/components/SegmentedControl/types.ts +1 -1
- package/src/components/Select/index.tsx +3 -3
- package/src/components/Select/types.ts +2 -1
- package/src/components/Slider/index.tsx +2 -1
- package/src/components/SortablePhotos/useSortablePhotos.ts +3 -3
- package/src/components/Text/index.tsx +1 -1
- package/src/components/Text/styles.ts +1 -1
- package/src/components/TextInput/index.tsx +3 -1
- package/src/components/TextInput/types.ts +2 -1
- package/src/components/Touchable/index.tsx +3 -1
- package/src/components/Touchable/types.ts +1 -1
- package/src/components/View/types.ts +1 -1
- package/src/modules/types/textInputMask.ts +1 -1
- package/src/utils/KeyboardAware/keyboardHooks.ts +1 -1
- package/src/utils/MobilePermissionManager/Permission.ts +79 -0
- package/src/utils/MobilePermissionManager/PermissionManager.ts +124 -0
- package/src/utils/MobilePermissionManager/index.ts +3 -0
- package/src/utils/MobilePermissionManager/types.ts +44 -0
- package/src/utils/ModalManager/components.tsx +2 -1
- package/src/utils/ModalManager/context.tsx +2 -1
- package/src/utils/NotificationManager/index.ts +2 -1
- package/src/utils/NotificationManager/types.ts +1 -1
- package/src/utils/PermissionManager/context.tsx +3 -1
- package/src/utils/PermissionManager/types.ts +1 -1
- package/src/utils/StorageManager.ts +1 -1
- package/src/utils/hooks.ts +3 -1
- package/src/utils/misc.ts +2 -1
- package/src/utils/useQueryListRefresh.ts +2 -1
- package/dist/utils/deprecated/notifications.d.ts +0 -40
- package/dist/utils/deprecated/notifications.js +0 -167
- package/dist/utils/deprecated/notifications.js.map +0 -1
- package/src/utils/deprecated/notifications.ts +0 -213
package/dist/utils/hooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../src/utils/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../src/utils/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAkB,QAAQ,EAAE,WAAW,EAAoC,UAAU,EAAa,MAAM,cAAc,CAAA;AACjJ,OAAO,EAAqB,MAAM,EAAY,gBAAgB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAE3G,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,MAAM,UAAU,eAAe,CAAC,KAAa,EAAE,IAA8C;IAC3F,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;IACvB,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAA;IAC1D,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,CAAA;IAChC,MAAM,IAAI,GAAG,KAAK,IAAI,KAAK,CAAA;IAE3B,QAAQ,CAAC,GAAG,EAAE;QACZ,6BAA6B;QAC7B,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE;YACtC,GAAG,IAAI;YACP,OAAO,EAAE,KAAK,CAAC,OA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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react-native" />
|
|
2
|
-
import { MobileFile, MobileInputFile } from '@codeleap/
|
|
2
|
+
import { MobileFile, MobileInputFile } from '@codeleap/types';
|
|
3
3
|
export declare const stringToFile: (str: string) => MobileInputFile;
|
|
4
4
|
export declare function toMultipartFile(file: MobileInputFile): MobileFile<{}>;
|
|
5
5
|
export declare function isFile(param: any): param is MobileInputFile;
|
package/dist/utils/misc.js
CHANGED
package/dist/utils/misc.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEnD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,GAAW,EAAmB,EAAE;IAC3D,IAAI,CAAC,GAAG,EAAE;QACR,OAAO;YACL,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,IAAI;SACd,CAAA;KACF;IACD,MAAM,QAAQ,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAA;IAEvC,MAAM,IAAI,GAAe;QACvB,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC,SAAS;QACnC,IAAI,EAAE,IAAI;QACV,GAAG,EAAE,GAAG;QACR,WAAW,EAAE,GAAG;KACjB,CAAA;IAED,OAAO;QACL,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,IAAI,CAAC,GAAG;KAClB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,UAAU,eAAe,CAAC,IAAqB;IACnD,4CAA4C;IAC5C,MAAM,WAAW,GAAG,IAAuB,CAAA;IAC3C,IAAI,C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AAS,CAAC,IAAI,0BAA0B,CAAA;AAC3D,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,GAAW;IACrC,MAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAA;IACrC,MAAM,QAAQ,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAA;IAE1C,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,GAAG,EAAE,GAAG;KACT,CAAA;AACH,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AnyFunction
|
|
1
|
+
import { AnyFunction } from '@codeleap/types';
|
|
2
|
+
import { UseListEffect } from '@codeleap/query';
|
|
2
3
|
type useQueryListRefresh = (listQuery: Parameters<UseListEffect>[0], options?: {
|
|
3
4
|
staleTime?: number;
|
|
4
5
|
silentRefresh?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useFocusEffect } from '@react-navigation/native';
|
|
3
|
-
import { TypeGuards } from '@codeleap/
|
|
3
|
+
import { TypeGuards } from '@codeleap/types';
|
|
4
4
|
export const useQueryListRefresh = (listQuery, options = {}) => {
|
|
5
5
|
const { staleTime = 5000, initialStale = listQuery?.query?.isStale, cancelQueryEnabled = true, refreshQueryEnabled = true, silentRefresh = false, onFocus, onBlur, } = options;
|
|
6
6
|
const staleRefetch = React.useRef(initialStale);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useQueryListRefresh.js","sourceRoot":"","sources":["../../src/utils/useQueryListRefresh.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAe,UAAU,
|
|
1
|
+
{"version":3,"file":"useQueryListRefresh.js","sourceRoot":"","sources":["../../src/utils/useQueryListRefresh.ts"],"names":[],"mappings":"AAAA,OAAO,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AAU,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;gBACjC,MAAM,EAAE,EAAE,CAAA;aACX;QACH,CAAC,CAAA;IACH,CAAC,EAAE,EAAE,CAAC,CACP,CAAA;AACH,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codeleap/mobile",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"main": "src/index.ts",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -9,16 +9,30 @@
|
|
|
9
9
|
"directory": "packages/mobile"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@codeleap/
|
|
13
|
-
"@codeleap/
|
|
12
|
+
"@codeleap/types": "4.3.0",
|
|
13
|
+
"@codeleap/utils": "4.3.0",
|
|
14
|
+
"@codeleap/hooks": "4.3.0",
|
|
15
|
+
"@codeleap/form": "4.3.0",
|
|
16
|
+
"@codeleap/i18n": "4.3.0",
|
|
17
|
+
"@codeleap/query": "4.3.0",
|
|
18
|
+
"@codeleap/logger": "4.3.0",
|
|
19
|
+
"@codeleap/config": "4.3.0",
|
|
20
|
+
"@codeleap/common": "4.3.0"
|
|
14
21
|
},
|
|
15
22
|
"scripts": {
|
|
16
23
|
"build": "tsc --build",
|
|
17
24
|
"lint": "eslint -c .eslintrc.js --fix \"./src/**/*.{ts,tsx,js,jsx}\""
|
|
18
25
|
},
|
|
19
26
|
"peerDependencies": {
|
|
20
|
-
"@codeleap/
|
|
21
|
-
"@codeleap/
|
|
27
|
+
"@codeleap/types": "4.3.0",
|
|
28
|
+
"@codeleap/utils": "4.3.0",
|
|
29
|
+
"@codeleap/hooks": "4.3.0",
|
|
30
|
+
"@codeleap/form": "4.3.0",
|
|
31
|
+
"@codeleap/i18n": "4.3.0",
|
|
32
|
+
"@codeleap/query": "4.3.0",
|
|
33
|
+
"@codeleap/logger": "4.3.0",
|
|
34
|
+
"@codeleap/styles": "4.3.0",
|
|
35
|
+
"@codeleap/common": "4.3.0",
|
|
22
36
|
"@d11/react-native-fast-image": "8.8.0",
|
|
23
37
|
"@react-native-firebase/messaging": "21.4.0",
|
|
24
38
|
"@react-navigation/bottom-tabs": "6.5.3",
|
package/package.json.bak
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codeleap/mobile",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"main": "src/index.ts",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -9,16 +9,30 @@
|
|
|
9
9
|
"directory": "packages/mobile"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@codeleap/
|
|
13
|
-
"@codeleap/
|
|
12
|
+
"@codeleap/types": "workspace:*",
|
|
13
|
+
"@codeleap/utils": "workspace:*",
|
|
14
|
+
"@codeleap/hooks": "workspace:*",
|
|
15
|
+
"@codeleap/form": "workspace:*",
|
|
16
|
+
"@codeleap/i18n": "workspace:*",
|
|
17
|
+
"@codeleap/query": "workspace:*",
|
|
18
|
+
"@codeleap/logger": "workspace:*",
|
|
19
|
+
"@codeleap/config": "workspace:*",
|
|
20
|
+
"@codeleap/common": "workspace:*"
|
|
14
21
|
},
|
|
15
22
|
"scripts": {
|
|
16
23
|
"build": "tsc --build",
|
|
17
24
|
"lint": "eslint -c .eslintrc.js --fix \"./src/**/*.{ts,tsx,js,jsx}\""
|
|
18
25
|
},
|
|
19
26
|
"peerDependencies": {
|
|
20
|
-
"@codeleap/
|
|
27
|
+
"@codeleap/types": "workspace:*",
|
|
28
|
+
"@codeleap/utils": "workspace:*",
|
|
29
|
+
"@codeleap/hooks": "workspace:*",
|
|
30
|
+
"@codeleap/form": "workspace:*",
|
|
31
|
+
"@codeleap/i18n": "workspace:*",
|
|
32
|
+
"@codeleap/query": "workspace:*",
|
|
33
|
+
"@codeleap/logger": "workspace:*",
|
|
21
34
|
"@codeleap/styles": "workspace:*",
|
|
35
|
+
"@codeleap/common": "workspace:*",
|
|
22
36
|
"@d11/react-native-fast-image": "8.8.0",
|
|
23
37
|
"@react-native-firebase/messaging": "21.4.0",
|
|
24
38
|
"@react-navigation/bottom-tabs": "6.5.3",
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React, { useCallback } from 'react'
|
|
2
|
-
import { TypeGuards
|
|
2
|
+
import { TypeGuards } from '@codeleap/types'
|
|
3
|
+
import { FormTypes } from '@codeleap/form'
|
|
4
|
+
import { onMount, useSearch } from '@codeleap/hooks'
|
|
3
5
|
import { List } from '../List'
|
|
4
6
|
import { SearchInput } from '../SearchInput'
|
|
5
7
|
import { AutocompleteProps } from './types'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsOf } from '@codeleap/types'
|
|
2
|
+
import { FormTypes } from '@codeleap/form'
|
|
2
3
|
import { StylesOf } from '../../types/utility'
|
|
3
4
|
import { GetKeyboardAwarePropsOptions } from '../../utils'
|
|
4
5
|
import { Icon } from '../Icon'
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { TypeGuards
|
|
2
|
+
import { TypeGuards } from '@codeleap/types'
|
|
3
|
+
import { useMemo } from '@codeleap/hooks'
|
|
4
|
+
import { matchInitialToColor } from '@codeleap/utils'
|
|
3
5
|
import { Image } from '../Image'
|
|
4
6
|
import { Touchable } from '../Touchable'
|
|
5
7
|
import { Text } from '../Text'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { TypeGuards } from '@codeleap/
|
|
2
|
+
import { TypeGuards } from '@codeleap/types'
|
|
3
3
|
import { Text } from '../Text'
|
|
4
|
-
import { View
|
|
4
|
+
import { View } from '../View'
|
|
5
5
|
import { BadgeContent, BadgeProps } from './types'
|
|
6
6
|
import { MobileStyleRegistry } from '../../Registry'
|
|
7
7
|
import { AnyRecord, IJSX, StyledComponentProps } from '@codeleap/styles'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { forwardRef, useState } from 'react'
|
|
2
|
-
import { GetRefType } from '@codeleap/
|
|
2
|
+
import { GetRefType } from '@codeleap/types'
|
|
3
3
|
import { ButtonParts } from './styles'
|
|
4
4
|
import { Text } from '../Text'
|
|
5
5
|
import { Touchable, TouchableProps } from '../Touchable'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { TypeGuards } from '@codeleap/
|
|
2
|
+
import { TypeGuards } from '@codeleap/types'
|
|
3
3
|
import { format } from 'date-fns'
|
|
4
4
|
// @ts-ignore
|
|
5
5
|
import { Calendar as RNCalendar, CalendarProps as RNCalendarProps, DateData } from 'react-native-calendars'
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React, { useRef } from 'react'
|
|
2
|
-
import { TypeGuards
|
|
2
|
+
import { TypeGuards } from '@codeleap/types'
|
|
3
|
+
import { useConditionalState } from '@codeleap/hooks'
|
|
4
|
+
import { useI18N } from '@codeleap/i18n'
|
|
3
5
|
import DatePicker from 'react-native-date-picker'
|
|
4
6
|
import Modal from '../Modal'
|
|
5
7
|
import { TextInput } from '../TextInput'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { StylesOf } from '@codeleap/types'
|
|
3
|
+
import { FormTypes } from '@codeleap/form'
|
|
3
4
|
import { DatePickerModalButtonCompositions, DatePickerModalComposition } from './styles'
|
|
4
5
|
import { DatePickerProps } from 'react-native-date-picker'
|
|
5
6
|
import { ButtonProps } from '../Button'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef, useImperativeHandle, useRef } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { MobileFile } from '@codeleap/types'
|
|
3
|
+
import { parseFilePathData } from '@codeleap/utils'
|
|
3
4
|
import { OSAlert } from '../../utils'
|
|
4
5
|
import ImageCropPicker, { ImageOrVideo, Options } from 'react-native-image-crop-picker'
|
|
5
6
|
import DocumentPicker from 'react-native-document-picker'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AnyRef
|
|
1
|
+
import { AnyRef } from '@codeleap/types'
|
|
2
|
+
import { FormTypes } from '@codeleap/form'
|
|
2
3
|
import { DocumentPickerOptions } from 'react-native-document-picker'
|
|
3
4
|
import { Options } from 'react-native-image-crop-picker'
|
|
4
5
|
import { OSAlert } from '../../utils'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { TypeGuards } from '@codeleap/types'
|
|
3
|
+
import { arePropsEqual } from '@codeleap/utils'
|
|
3
4
|
import { Badge } from '../Badge'
|
|
4
5
|
import { View } from '../View'
|
|
5
6
|
import { IconProps } from './types'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { TypeGuards } from '@codeleap/types'
|
|
3
|
+
import { arePropsEqual } from '@codeleap/utils'
|
|
3
4
|
import { Image as NativeImage } from 'react-native'
|
|
4
5
|
import { useImageSpotlight } from '../ImageView/Spotlight'
|
|
5
6
|
import { Touchable } from '../Touchable'
|
|
@@ -3,7 +3,7 @@ import FastImage, { Source } from '@d11/react-native-fast-image'
|
|
|
3
3
|
import { ImageProps as RNImageProps } from 'react-native'
|
|
4
4
|
import { ImageComposition } from './styles'
|
|
5
5
|
import { StyledProp } from '@codeleap/styles'
|
|
6
|
-
import { FormTypes } from '@codeleap/
|
|
6
|
+
import { FormTypes } from '@codeleap/form'
|
|
7
7
|
|
|
8
8
|
export type ImageProps =
|
|
9
9
|
Omit<RNImageProps, 'source' | 'style'> &
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React, { useContext, useState } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { ReactState, TypeGuards } from '@codeleap/types'
|
|
3
|
+
import { onUpdate, usePrevious, useUnmount } from '@codeleap/hooks'
|
|
4
|
+
import { deepEqual } from '@codeleap/utils'
|
|
3
5
|
import uuid from 'react-native-uuid'
|
|
4
6
|
import { ImageView, ImageViewProps } from './component'
|
|
5
7
|
import { ImageProps } from '../Image'
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { PropsOf } from '@codeleap/types'
|
|
3
|
+
import { onUpdate } from '@codeleap/hooks'
|
|
4
|
+
|
|
3
5
|
import _ImageView from 'react-native-image-viewing'
|
|
4
6
|
import { StatusBar } from 'react-native'
|
|
5
7
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { TypeGuards
|
|
2
|
+
import { TypeGuards } from '@codeleap/types'
|
|
3
|
+
import { getRenderedComponent } from '@codeleap/utils'
|
|
3
4
|
import { ActionIcon, ActionIconProps } from '../ActionIcon'
|
|
4
5
|
import { View } from '../View'
|
|
5
6
|
import { useInputBaseStyles } from './styles'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { TypeGuards } from '@codeleap/types'
|
|
3
|
+
import { useCallback } from '@codeleap/hooks'
|
|
3
4
|
import { ListRenderItemInfo, FlatList } from 'react-native'
|
|
4
5
|
import { View, ViewProps } from '../View'
|
|
5
6
|
import { EmptyPlaceholder } from '../EmptyPlaceholder'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { View } from '../View'
|
|
3
3
|
import { Scroll } from '../Scroll'
|
|
4
|
-
import { TypeGuards } from '@codeleap/
|
|
4
|
+
import { TypeGuards } from '@codeleap/types'
|
|
5
5
|
import { Backdrop } from '../Backdrop'
|
|
6
6
|
import { useAnimatedVariantStyles, useBackButton } from '../../utils/hooks'
|
|
7
7
|
import { Text } from '../Text'
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as React from 'react'
|
|
3
3
|
import {
|
|
4
4
|
TypeGuards,
|
|
5
|
-
} from '@codeleap/
|
|
5
|
+
} from '@codeleap/types'
|
|
6
6
|
import { Icon } from '../Icon'
|
|
7
7
|
import { NavigationProps, NavigatorType, PropTypes, TNavigators } from './types'
|
|
8
8
|
import { Navigators } from './constants'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useState, useRef } from 'react'
|
|
2
|
-
import { TypeGuards
|
|
2
|
+
import { TypeGuards } from '@codeleap/types'
|
|
3
|
+
import { useValidate } from '@codeleap/form'
|
|
3
4
|
import { forwardRef, useImperativeHandle } from 'react'
|
|
4
5
|
import { InputBase, selectInputBaseProps } from '../InputBase'
|
|
5
6
|
import { Text } from '../Text'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnyFunction } from '@codeleap/types'
|
|
2
|
+
import { yup, FormTypes } from '@codeleap/form'
|
|
2
3
|
import { NumberIncrementComposition } from './styles'
|
|
3
4
|
import { TextInputMaskProps } from '../../modules/textInputMask'
|
|
4
5
|
import { TextInputProps as RNTextInputProps } from 'react-native'
|
|
@@ -3,7 +3,8 @@ import { ReduceMotion } from 'react-native-reanimated'
|
|
|
3
3
|
import Carousel, { ICarouselInstance } from 'react-native-reanimated-carousel'
|
|
4
4
|
import { CarouselRenderItemInfo, TCarouselProps } from 'react-native-reanimated-carousel/lib/typescript/types'
|
|
5
5
|
import { Dimensions, LayoutChangeEvent } from 'react-native'
|
|
6
|
-
import {
|
|
6
|
+
import { TypeGuards } from '@codeleap/types'
|
|
7
|
+
import { onUpdate, useConditionalState } from '@codeleap/hooks'
|
|
7
8
|
import { AnyRecord, IJSX, StyledComponentProps, useNestedStylesByKey } from '@codeleap/styles'
|
|
8
9
|
import { useStylesFor } from '../../hooks'
|
|
9
10
|
import { MobileStyleRegistry } from '../../Registry'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { TypeGuards } from '@codeleap/
|
|
2
|
+
import { TypeGuards } from '@codeleap/types'
|
|
3
3
|
import { ActivityIndicator } from '../ActivityIndicator'
|
|
4
4
|
import { Text } from '../Text'
|
|
5
5
|
import { AnyRecord, useNestedStylesByKey, IJSX, StyledComponentProps } from '@codeleap/styles'
|
|
@@ -10,7 +10,7 @@ import { List } from '../List'
|
|
|
10
10
|
import { Touchable } from '../Touchable'
|
|
11
11
|
import { EmptyPlaceholder } from '../EmptyPlaceholder'
|
|
12
12
|
import { ActivityIndicator } from '../ActivityIndicator'
|
|
13
|
-
import { usePlacesAutocompleteUtils } from '@codeleap/
|
|
13
|
+
import { usePlacesAutocompleteUtils } from '@codeleap/hooks'
|
|
14
14
|
|
|
15
15
|
export * from './styles'
|
|
16
16
|
export * from './types'
|
|
@@ -4,7 +4,7 @@ import { TextInputProps } from '../TextInput'
|
|
|
4
4
|
import { FlatListProps } from '../List'
|
|
5
5
|
import { EmptyPlaceholderProps } from '../EmptyPlaceholder'
|
|
6
6
|
import { ActivityIndicatorProps } from '../ActivityIndicator'
|
|
7
|
-
import { PlaceAddress, PlaceLatLng } from '@codeleap/
|
|
7
|
+
import { PlaceAddress, PlaceLatLng } from '@codeleap/types'
|
|
8
8
|
|
|
9
9
|
export type CustomData = {
|
|
10
10
|
item?: Partial<PlaceAddress> & Partial<PlaceLatLng>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { Text } from '../Text'
|
|
3
3
|
import { Touchable } from '../Touchable'
|
|
4
|
-
import { TypeGuards } from '@codeleap/
|
|
4
|
+
import { TypeGuards } from '@codeleap/types'
|
|
5
5
|
import { View } from '../View'
|
|
6
6
|
import { InputBase, selectInputBaseProps } from '../InputBase'
|
|
7
7
|
import { RadioGroupProps, RadioOptionProps } from './types'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StylesOf } from '@codeleap/types'
|
|
2
|
+
import { FormTypes } from '@codeleap/form'
|
|
2
3
|
import { StyledProp } from '@codeleap/styles'
|
|
3
4
|
import { ReactNode } from 'react'
|
|
4
5
|
import { RadioInputComposition } from './styles'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef, useState } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { onUpdate, usePrevious } from '@codeleap/hooks'
|
|
3
|
+
import { deepEqual } from '@codeleap/utils'
|
|
3
4
|
import { ScrollView } from 'react-native'
|
|
4
5
|
import { RefreshControl } from '../RefreshControl'
|
|
5
6
|
import { useKeyboardPaddingStyle } from '../../utils'
|
|
@@ -2,7 +2,7 @@ import React, { forwardRef, useState } from 'react'
|
|
|
2
2
|
import { AppIcon } from '@codeleap/styles'
|
|
3
3
|
import { ComponentWithDefaultProps, ForwardRefComponentWithDefaultProps } from '../../types'
|
|
4
4
|
import { TextInputProps, TextInput } from '../TextInput'
|
|
5
|
-
import { TypeGuards } from '@codeleap/
|
|
5
|
+
import { TypeGuards } from '@codeleap/types'
|
|
6
6
|
import { TextInput as RNTextInput } from 'react-native'
|
|
7
7
|
|
|
8
8
|
export type SearchInputProps = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TypeGuards } from '@codeleap/types'
|
|
2
|
+
import { memoBy } from '@codeleap/utils'
|
|
2
3
|
import { Button } from '../Button'
|
|
3
4
|
import { AugmentedSectionRenderItemInfo, SectionComponentProps, Sections } from '../Sections'
|
|
4
5
|
import { Text } from '../Text'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useMemo } from 'react'
|
|
2
|
-
import { TypeGuards
|
|
2
|
+
import { TypeGuards } from '@codeleap/types'
|
|
3
|
+
import { useCallback } from '@codeleap/hooks'
|
|
3
4
|
import { SectionList, SectionListProps as RNSectionProps } from 'react-native'
|
|
4
5
|
import { View, ViewProps } from '../View'
|
|
5
6
|
import { RefreshControl } from '../RefreshControl'
|
|
@@ -3,7 +3,7 @@ import { SegmentedControlOptionProps } from './Option'
|
|
|
3
3
|
import { TransitionConfig } from '../../utils'
|
|
4
4
|
import { TextProps } from '../Text'
|
|
5
5
|
import { TouchableProps } from '../Touchable'
|
|
6
|
-
import { FormTypes } from '@codeleap/
|
|
6
|
+
import { FormTypes } from '@codeleap/form'
|
|
7
7
|
import { StyledProp } from '@codeleap/styles'
|
|
8
8
|
import { SegmentedControlComposition } from '../components'
|
|
9
9
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* eslint-disable max-lines */
|
|
2
|
+
import { TypeGuards } from '@codeleap/types'
|
|
3
|
+
import { FormTypes } from '@codeleap/form'
|
|
2
4
|
import {
|
|
3
|
-
TypeGuards,
|
|
4
|
-
FormTypes,
|
|
5
5
|
onMount,
|
|
6
6
|
onUpdate,
|
|
7
7
|
usePrevious,
|
|
8
8
|
useSearch,
|
|
9
9
|
useConditionalState,
|
|
10
|
-
} from '@codeleap/
|
|
10
|
+
} from '@codeleap/hooks'
|
|
11
11
|
import React, { useCallback, useMemo } from 'react'
|
|
12
12
|
import { List } from '../List'
|
|
13
13
|
import { TextInput } from '../TextInput'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsOf } from '@codeleap/types'
|
|
2
|
+
import { FormTypes } from '@codeleap/form'
|
|
2
3
|
import { AppIcon, StyledProp } from '@codeleap/styles'
|
|
3
4
|
import { StylesOf } from '../../types/utility'
|
|
4
5
|
import { GetKeyboardAwarePropsOptions } from '../../utils'
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { Slider as RNSlider } from '@miblanchard/react-native-slider'
|
|
3
3
|
import { StyleSheet } from 'react-native'
|
|
4
|
-
import { TypeGuards
|
|
4
|
+
import { TypeGuards } from '@codeleap/types'
|
|
5
|
+
import { onUpdate } from '@codeleap/hooks'
|
|
5
6
|
import { SliderProps, TrackMarkProps } from './types'
|
|
6
7
|
import { InputBase, selectInputBaseProps } from '../InputBase'
|
|
7
8
|
import { Text } from '../Text'
|