@fto-consult/expo-ui 2.9.1 → 2.9.3
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/compiler.config.js +18 -20
- package/expo-ui-path.js +1 -32
- package/package.json +6 -5
- package/src/components/Countries/SelectCountry.js +2 -0
package/compiler.config.js
CHANGED
|
@@ -5,26 +5,24 @@ module.exports = function({config,isNext,nodeModulesPath,base,dir}){
|
|
|
5
5
|
nodeModulesPath = Array.isArray(nodeModulesPath)? nodeModulesPath : [];
|
|
6
6
|
config.resolve.modules = Array.isArray(config.resolve.modules)? config.resolve.modules:[]
|
|
7
7
|
config.resolve.modules = [path.resolve(dir, 'node_modules'),path.resolve(root, 'node_modules'), 'node_modules',...nodeModulesPath,...config.resolve.modules];
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
});
|
|
27
|
-
}
|
|
8
|
+
config.module.rules.push({
|
|
9
|
+
test: /\.(js|jsx|ts|tsx)$/,
|
|
10
|
+
include: [
|
|
11
|
+
dir,
|
|
12
|
+
base,
|
|
13
|
+
path.resolve(dir,"node_modules","@fto-consult"),
|
|
14
|
+
/(common)/
|
|
15
|
+
],
|
|
16
|
+
exclude:[
|
|
17
|
+
path.resolve(dir,"node_modules"),
|
|
18
|
+
path.resolve(root,"node_modules"),
|
|
19
|
+
/node_modules[/\\](?!react-native-paper|react-native|react-native-vector-icons|react-native-safe-area-view)/,
|
|
20
|
+
/(node_modules)/
|
|
21
|
+
],
|
|
22
|
+
use: {
|
|
23
|
+
loader: 'babel-loader',
|
|
24
|
+
}
|
|
25
|
+
});
|
|
28
26
|
config.plugins.push(require("@fto-consult/common/circular-dependencies"));
|
|
29
27
|
return config;
|
|
30
28
|
}
|
package/expo-ui-path.js
CHANGED
|
@@ -4,47 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
const fs = require("fs");
|
|
6
6
|
const path = require("path");
|
|
7
|
-
const { hideBin } = require('yargs/helpers')
|
|
8
|
-
const yargs = require('yargs/yargs');
|
|
9
|
-
let pathRef = {current:null};
|
|
10
|
-
const metroConfig = "metro.config";
|
|
11
7
|
///retourne le chemin vers le package @expo-ui
|
|
12
8
|
module.exports = function (...args){
|
|
13
|
-
const argv = yargs(hideBin(process.argv)).argv;
|
|
14
9
|
const suffix = path.join(...args);
|
|
15
|
-
const
|
|
16
|
-
let isBuild = isMetroConfig ? false : pathRef.current ? true : false;
|
|
17
|
-
let expoUIPath = isBuild ? pathRef.current : "@fto-consult/expo-ui";
|
|
18
|
-
if(isMetroConfig && typeof argv == 'object' && argv && !Array.isArray(argv)){
|
|
19
|
-
for(let i in argv){
|
|
20
|
-
let v = argv[i];
|
|
21
|
-
if(typeof v !='string' || !v) continue;
|
|
22
|
-
v = v.toLowerCase();
|
|
23
|
-
i = (i+'').toLocaleLowerCase();
|
|
24
|
-
if(i != '$0'){
|
|
25
|
-
if(v.includes('production') || v.includes('export') || v.includes('android')){
|
|
26
|
-
isBuild = true;
|
|
27
|
-
break;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
10
|
+
const expoUIPath = "@fto-consult/expo-ui";
|
|
32
11
|
const sep = path.sep;
|
|
33
|
-
if(isBuild){
|
|
34
|
-
if(isMetroConfig){
|
|
35
|
-
pathRef.current = expoUIPath;
|
|
36
|
-
}
|
|
37
|
-
const pp = suffix ? path.join(expoUIPath,suffix).replace(sep,"/") : expoUIPath;
|
|
38
|
-
return pp;
|
|
39
|
-
}
|
|
40
12
|
const p = require("./lookup-expo-ui-path")();
|
|
41
13
|
if(p && fs.existsSync(p)){
|
|
42
14
|
const rootPath = path.resolve(p,"..");
|
|
43
15
|
const src = path.resolve(rootPath,"src");
|
|
44
16
|
if(fs.existsSync(src) && fs.existsSync((path.resolve(rootPath,"babel.config.js")))){
|
|
45
|
-
if(isMetroConfig){
|
|
46
|
-
pathRef.current = path.resolve(p);
|
|
47
|
-
}
|
|
48
17
|
return path.resolve(p,suffix).replace(sep,(sep+sep));
|
|
49
18
|
}
|
|
50
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fto-consult/expo-ui",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.3",
|
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"resolutions": {
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"update-app-version": "node ./update-app-version.js",
|
|
44
44
|
"find-licenses": "node ./find-licenses.js",
|
|
45
45
|
"fix-dependencies": "expo doctor --fix-dependencies",
|
|
46
|
-
"delete-node-modules": "rimraf ./**/node_modules"
|
|
46
|
+
"delete-node-modules": "rimraf ./**/node_modules",
|
|
47
|
+
"modifier-url-remote-git": "git remote set-url origin 'https://borispipo@github.com/borispipo/smart-eneo.git'"
|
|
47
48
|
},
|
|
48
49
|
"repository": {
|
|
49
50
|
"type": "git",
|
|
@@ -67,7 +68,8 @@
|
|
|
67
68
|
"@expo/metro-config": "^0.4.0",
|
|
68
69
|
"@expo/vector-icons": "^13.0.0",
|
|
69
70
|
"@expo/webpack-config": "^0.17.2",
|
|
70
|
-
"@fto-consult/common": "^1.
|
|
71
|
+
"@fto-consult/common": "^1.15.2",
|
|
72
|
+
"@fto-consult/expo-ui": "^2.9.2",
|
|
71
73
|
"@gorhom/portal": "^1.0.14",
|
|
72
74
|
"@react-native-async-storage/async-storage": "~1.17.3",
|
|
73
75
|
"@react-native-community/datetimepicker": "6.5.2",
|
|
@@ -109,7 +111,6 @@
|
|
|
109
111
|
"react-native-web": "~0.18.7",
|
|
110
112
|
"react-native-webview": "11.23.1",
|
|
111
113
|
"sharp-cli": "^2.1.0",
|
|
112
|
-
"tippy.js": "^6.3.7"
|
|
113
|
-
"yargs": "^17.1.1-candidate.0"
|
|
114
|
+
"tippy.js": "^6.3.7"
|
|
114
115
|
}
|
|
115
116
|
}
|
|
@@ -7,6 +7,7 @@ import {defaultObj} from "$utils";
|
|
|
7
7
|
import PropTypes from "prop-types";
|
|
8
8
|
import {isNonNullString,isNumber,defaultStr} from "$utils";
|
|
9
9
|
import Label from "$ecomponents/Label";
|
|
10
|
+
import appConfig from "$capp/config";
|
|
10
11
|
|
|
11
12
|
/**** retourne les props du champ de type countrie */
|
|
12
13
|
export const getCountryFieldProps = (props)=>{
|
|
@@ -28,6 +29,7 @@ export const getCountryFieldProps = (props)=>{
|
|
|
28
29
|
<Label>{item.label}</Label>
|
|
29
30
|
</View>
|
|
30
31
|
},
|
|
32
|
+
defaultValue : appConfig.countryCode,
|
|
31
33
|
...defaultObj(rest),
|
|
32
34
|
}
|
|
33
35
|
}
|