@fto-consult/expo-ui 6.52.2 → 6.52.4
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/babel.config.alias.js
CHANGED
@@ -13,7 +13,9 @@ module.exports = (opts)=>{
|
|
13
13
|
opts.withPouchDB = opts.withPouchDB !== false && opts.withPouchdb !== false ? true : false;
|
14
14
|
delete opts.withPouchdb;
|
15
15
|
const expoUI = require("./expo-ui-path")();
|
16
|
-
const
|
16
|
+
const euCommon = path.resolve(expoUI,"node_modules","@fto-consult","common");
|
17
|
+
const cpath = fs.existsSync(euCommon)? path.resolve(euCommon,"babel.config.alias") : "@fto-consult/common/babel.config.alias";
|
18
|
+
const r = require(`${cpath}`)(opts);
|
17
19
|
const expo = path.resolve(expoUI,"src");
|
18
20
|
r.$edocs = path.resolve(expoUI,"docs");//l'alias de la documentation
|
19
21
|
r["$edocs-components"] = path.resolve(r.$edocs,"components");
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fto-consult/expo-ui",
|
3
|
-
"version": "6.52.
|
3
|
+
"version": "6.52.4",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"main": "main",
|
6
6
|
"scripts": {
|
@@ -70,7 +70,7 @@
|
|
70
70
|
"@expo/html-elements": "^0.5.1",
|
71
71
|
"@expo/vector-icons": "^13.0.0",
|
72
72
|
"@faker-js/faker": "^8.0.2",
|
73
|
-
"@fto-consult/common": "^3.
|
73
|
+
"@fto-consult/common": "^3.47.0",
|
74
74
|
"@pchmn/expo-material3-theme": "^1.3.1",
|
75
75
|
"@react-native-async-storage/async-storage": "1.18.2",
|
76
76
|
"@react-native-community/datetimepicker": "7.2.0",
|
@@ -14,7 +14,7 @@ import DateLib from "$lib/date";
|
|
14
14
|
import {getFetchOptions} from "$cutils/filters";
|
15
15
|
import {setQueryParams} from "$cutils/uri";
|
16
16
|
import {uniqid} from "$cutils";
|
17
|
-
import apiFetch,{ getFetcherOptions } from "$capi/fetch";
|
17
|
+
import apiFetch,{ getFetcherOptions,prepareFetchOptions } from "$capi/fetch";
|
18
18
|
import Icon from "$ecomponents/Icon";
|
19
19
|
import Label from "$ecomponents/Label";
|
20
20
|
import { StyleSheet,View } from "react-native";
|
@@ -192,12 +192,12 @@ const SWRDatagridComponent = React.forwardRef((props,ref)=>{
|
|
192
192
|
if(showProgressRef.current ===false){
|
193
193
|
opts.showError = false;
|
194
194
|
}
|
195
|
+
const {url:fUrl,...rest} = prepareFetchOptions(url,opts);
|
195
196
|
if(typeof fetcher =='function'){
|
196
|
-
return fetcher(
|
197
|
+
return fetcher(fUrl,rest);
|
197
198
|
}
|
198
|
-
return apiFetch(
|
199
|
+
return apiFetch(fUrl,rest);
|
199
200
|
},
|
200
|
-
showError : false,
|
201
201
|
swrOptions : getSWROptions(swrConfig.refreshTimeout)
|
202
202
|
});
|
203
203
|
const dataRef = React.useRef(null);
|