@fto-consult/expo-ui 8.26.0 → 8.28.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.
@@ -8,7 +8,7 @@ import Logo from "$ecomponents/Logo";
8
8
  import drawerSections from "$navigation/drawerSections";
9
9
  import TableDataListScreen from "$screens/TableData/TableDataListScreen";
10
10
  import TableDataScreen from "$screens/TableData/TableDataScreen";
11
- import Notifications from "$ecomponents/Notifications";
11
+ import Notifications from "$components/Notifications";
12
12
  import auth from "$src/auth";
13
13
 
14
14
  export default function AppMainEntry(){
@@ -1,5 +1,5 @@
1
1
 
2
- module.exports = {
2
+ module.exports = {
3
3
  "@emotion/native": "^11.11.0",
4
4
  "@expo/html-elements": "^0.5.1",
5
5
  "@expo/vector-icons": "^14.0.0",
@@ -7,14 +7,14 @@ module.exports = {
7
7
  "@react-native-community/netinfo": "11.1.0",
8
8
  "@react-native/assets-registry": "^0.72.0",
9
9
  "react-native-get-random-values": "~1.8.0",
10
- "@react-navigation/native": "^6.1.9",
11
- "@react-navigation/native-stack": "^6.9.17",
12
- "@react-navigation/stack": "^6.3.20",
10
+ "@react-navigation/native": "^6.1.10",
11
+ "@react-navigation/native-stack": "^6.9.18",
12
+ "@react-navigation/stack": "^6.3.21",
13
13
  "@shopify/flash-list": "1.6.3",
14
- "expo": "~50.0.5",
15
- "expo-camera": "~14.0.3",
14
+ "expo": "^50.0.7",
15
+ "expo-camera": "~14.0.5",
16
16
  "expo-clipboard": "~5.0.1",
17
- "expo-font": "~11.10.2",
17
+ "expo-font": "~11.10.3",
18
18
  "expo-image-picker": "~14.7.1",
19
19
  "expo-linking": "~6.2.2",
20
20
  "expo-sharing": "~11.10.0",
@@ -22,8 +22,8 @@ module.exports = {
22
22
  "expo-status-bar": "~1.11.1",
23
23
  "expo-system-ui": "~2.9.3",
24
24
  "expo-web-browser": "~12.8.2",
25
- "react":"18.2.0",
26
- "react-native": "0.73.2",
25
+ "react": "18.2.0",
26
+ "react-native": "0.73.4",
27
27
  "react-native-safe-area-context": "4.8.2",
28
28
  "react-native-screens": "~3.29.0",
29
29
  "react-native-svg": "14.1.0",
@@ -32,4 +32,4 @@ module.exports = {
32
32
  "react-native-reanimated": "~3.6.2",
33
33
  "react-native-view-shot": "3.8.0"
34
34
  };
35
-
35
+
package/bin/create-app.js CHANGED
@@ -75,7 +75,6 @@ module.exports = function(appName,{projectRoot:root}){
75
75
  });
76
76
  createAPPJSONFile(projectRoot,{...mainPackage,name});
77
77
  createEntryFile(projectRoot);
78
- console.log(projectRoot," is project root");
79
78
  copy(path.resolve(getAppDir(),"src"),path.resolve(projectRoot,"src"),{recursive:true,overwrite:false});
80
79
  console.log("installing dependencies ...");
81
80
  return new Promise((resolve,reject)=>{
package/bin/update.js CHANGED
@@ -11,7 +11,7 @@ if(fs.existsSync(mainJSONPath)){
11
11
  const packageDev = typeof packageObj?.dependencies =="object" && packageObj?.dependencies || {};
12
12
  const filterdDObj = {};
13
13
  dependenciesArr.filter((v,index)=>{
14
- if(!!packageDev[v]){
14
+ if(!!packageDev[v] && v !=="expo"){
15
15
  filterdDObj[v] = true;
16
16
  return true;
17
17
  }
@@ -19,29 +19,38 @@ if(fs.existsSync(mainJSONPath)){
19
19
  });
20
20
  const filteredDeps = Object.keys(filterdDObj);
21
21
  if(filteredDeps.length){
22
- const script = filteredDeps.join(" ");
23
- exec(`npm install expo`,{projectRoot}).finally(()=>{
24
- exec(`npx expo install ${script} --fix`,{projectRoot}).finally((i)=>{
25
- const newPackageJS = JSON.parse(fs.readFileSync(mainJSONPath));
26
- let hasChanged = false;
27
- if(newPackageJS?.dependencies && typeof newPackageJS?.dependencies =="object"){
28
- for(let i in dependencies){
29
- const old = dependencies[i];
30
- dependencies[i] = newPackageJS?.dependencies[i] || dependencies[i];
31
- if(!hasChanged && dependencies[i] !== old){
32
- hasChanged = true;
22
+ exec(`npm install expo@latest`,{projectRoot}).finally(()=>{
23
+ let i = -1;
24
+ const next = ()=>{
25
+ return exec(`npx expo install ${filteredDeps.join(" ")}`,{projectRoot});
26
+ i++;
27
+ if(i>= filteredDeps.length) return Promise.resolve();
28
+ const script = filteredDeps[i];
29
+ return exec(`npx expo install ${script}`,{projectRoot}).finally(next);
30
+ }
31
+ next().finally((i)=>{
32
+ //exec(`npm install`,{projectRoot}).finally(()=>{
33
+ const newPackageJS = JSON.parse(fs.readFileSync(mainJSONPath));
34
+ let hasChanged = false;
35
+ if(newPackageJS?.dependencies && typeof newPackageJS?.dependencies =="object"){
36
+ for(let i in dependencies){
37
+ const old = dependencies[i];
38
+ dependencies[i] = newPackageJS?.dependencies[i] || dependencies[i];
39
+ if(!hasChanged && dependencies[i] !== old){
40
+ hasChanged = true;
41
+ }
33
42
  }
34
43
  }
35
- }
36
- if(hasChanged){
37
- try {
38
- writeFile(dependenciesPath,`
39
- module.exports = ${JSON.stringify(dependencies,null,"\t")};
40
- `)
41
- } catch(e){
42
- console.log(e," is generated error");
44
+ if(hasChanged){
45
+ try {
46
+ writeFile(dependenciesPath,`
47
+ module.exports = ${JSON.stringify(dependencies,null,"\t")};
48
+ `)
49
+ } catch(e){
50
+ console.log(e," is generated error");
51
+ }
43
52
  }
44
- }
53
+ //})
45
54
  });
46
55
  })
47
56
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "8.26.0",
3
+ "version": "8.28.0",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -69,8 +69,8 @@
69
69
  "@emotion/react": "^11.11.1",
70
70
  "@faker-js/faker": "^8.0.2",
71
71
  "@fto-consult/common": "^4.27.1",
72
- "@fto-consult/node-utils": "^1.4.7",
73
- "apexcharts": "^3.45.2",
72
+ "@fto-consult/node-utils": "^1.5.1",
73
+ "apexcharts": "^3.46.0",
74
74
  "crypto-browserify": "^3.12.0",
75
75
  "file-saver": "^2.0.5",
76
76
  "google-libphonenumber": "^3.2.34",
@@ -83,11 +83,11 @@
83
83
  "react-dom": "^18.2.0",
84
84
  "react-native-big-list": "^1.6.1",
85
85
  "react-native-iphone-x-helper": "^1.3.1",
86
- "react-native-mime-types": "^2.4.0",
86
+ "react-native-mime-types": "^2.5.0",
87
87
  "react-native-paper": "^5.12.3",
88
- "react-native-paper-dates": "^0.21.8",
88
+ "react-native-paper-dates": "^0.21.9",
89
89
  "react-native-web": "^0.19.10",
90
- "react-virtuoso": "^4.6.3",
90
+ "react-virtuoso": "^4.7.0",
91
91
  "readable-stream": "^4.5.2",
92
92
  "sanitize-filename": "^1.6.3",
93
93
  "sharp-cli": "^2.1.0",