@fto-consult/expo-ui 5.11.22 → 6.0.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.
@@ -111,10 +111,13 @@ module.exports = (opts)=>{
111
111
  }
112
112
  ///on génère les librairies open sources utilisées par l'application
113
113
  const root = path.resolve(r.$src,"..");
114
+ const nModulePath = fs.existsSync(path.resolve(root,"node_modules")) && path.resolve(root,"node_modules") || fs.existsSync(path.resolve(r.$src,"node_modules")) && path.resolve(r.$src,"node_modules") || path.resolve(base,"node_modules");
115
+ const nodeModulesPath = fs.existsSync(nModulePath) ? nModulePath : path.resolve(process.cwd(),"node_modules");
114
116
  const outputPath = path.resolve(HelpScreen,"openLibraries.js");
117
+ r.$nodeModulesPath = r.$enodeModulesPath= nodeModulesPath;
115
118
  require("./find-licenses")({
116
119
  paths : [root,r["$expo-ui-root-path"]],
117
- nodeModulesPath : path.resolve(root,"node_modules"),
120
+ nodeModulesPath : nodeModulesPath,
118
121
  outputPath
119
122
  });
120
123
  const $assets = r.$assets;
package/babel.config.js CHANGED
@@ -15,10 +15,41 @@ module.exports = function(api,opts) {
15
15
  }
16
16
  /*** par défaut, les variables d'environnements sont stockés dans le fichier .env situé à la racine du projet, référencée par la prop base */
17
17
  const alias = require("./babel.config.alias")(options);
18
+ const $ecomponents = alias.$ecomponents|| null;
19
+ const eAppex = $ecomponents && path.resolve($ecomponents,"Chart","appexChart");
20
+ if(eAppex && fs.existsSync(eAppex)){
21
+ const appexPathHtml = path.resolve(eAppex,"index.html");
22
+ const $eelectron = alias.$eelectron || null;
23
+ const expoRoot = alias["$expo-ui-root-path"] || null;
24
+ const expoRootModulesP = expoRoot && fs.existsSync(path.resolve(expoRoot,"node_modules")) && path.resolve(expoRoot,"node_modules") || null;
25
+ const aDistPath = path.join("apexcharts","dist","apexcharts.min.js");
26
+ const nodeModulesPath = expoRootModulesP && fs.existsSync(path.resolve(expoRootModulesP,aDistPath)) ? expoRootModulesP : alias.$enodeModulesPath;
27
+ if(nodeModulesPath && fs.existsSync(nodeModulesPath) && $eelectron && fs.existsSync($eelectron)){
28
+ const writeFilePath = path.resolve($eelectron,"utils","writeFile.js");
29
+ const appexDistPath = path.resolve(nodeModulesPath,"apexcharts","dist","apexcharts.min.js");
30
+ if(fs.existsSync(writeFilePath) && fs.existsSync(appexDistPath)){
31
+ const jsContent = fs.readFileSync(appexDistPath, 'utf8')
32
+ const writeFile = require(`${writeFilePath}`);
33
+ //overite appex chart html file
34
+ writeFile(appexPathHtml,`
35
+ <html>
36
+ <head>
37
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
38
+ <script>${jsContent}</script>
39
+ </head>
40
+ <body>
41
+ </body>
42
+ </html>
43
+ `);
44
+ console.log("appexchart file overwrited*******************")
45
+ }
46
+ }
47
+ }
48
+
18
49
  return {
19
50
  presets: [
20
- ['babel-preset-expo'],
21
- ["@babel/preset-react", {"runtime": "automatic"}],
51
+ ['babel-preset-expo']/*,
52
+ ["@babel/preset-react", {"runtime": "automatic"}],*/
22
53
  ],
23
54
  plugins : [
24
55
  ["inline-dotenv",inlineDovOptions],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "5.11.22",
3
+ "version": "6.0.0",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -59,29 +59,29 @@
59
59
  "homepage": "https://github.com/borispipo/expo-ui#readme",
60
60
  "dependencies": {
61
61
  "@emotion/native": "^11.11.0",
62
- "@expo/html-elements": "^0.2.0",
62
+ "@expo/html-elements": "^0.5.1",
63
63
  "@expo/vector-icons": "^13.0.0",
64
64
  "@fto-consult/common": "^3.18.31",
65
65
  "@gorhom/portal": "^1.0.14",
66
66
  "@pchmn/expo-material3-theme": "^1.0.1",
67
- "@react-native-async-storage/async-storage": "^1.17.11",
68
- "@react-native-community/datetimepicker": "^6.7.3",
69
- "@react-native-community/netinfo": "^9.3.7",
67
+ "@react-native-async-storage/async-storage": "1.18.2",
68
+ "@react-native-community/datetimepicker": "7.2.0",
69
+ "@react-native-community/netinfo": "9.3.10",
70
70
  "@react-native/assets-registry": "^0.72.0",
71
71
  "@react-navigation/native": "^6.1.6",
72
72
  "@react-navigation/native-stack": "^6.9.12",
73
- "@shopify/flash-list": "^1.4.0",
74
- "apexcharts": "^3.40.0",
75
- "expo": "^48.0.19",
76
- "expo-camera": "^13.2.1",
77
- "expo-clipboard": "^4.1.2",
73
+ "@shopify/flash-list": "1.4.3",
74
+ "apexcharts": "^3.41.0",
75
+ "expo": "^49.0.0",
76
+ "expo-camera": "~13.4.2",
77
+ "expo-clipboard": "~4.3.0",
78
78
  "expo-font": "^11.1.1",
79
- "expo-image-picker": "^14.1.1",
80
- "expo-linking": "^4.0.1",
81
- "expo-sqlite": "^11.1.1",
82
- "expo-status-bar": "^1.4.4",
83
- "expo-system-ui": "^2.2.1",
84
- "expo-web-browser": "^12.1.1",
79
+ "expo-image-picker": "~14.3.1",
80
+ "expo-linking": "~5.0.2",
81
+ "expo-sqlite": "~11.3.1",
82
+ "expo-status-bar": "~1.6.0",
83
+ "expo-system-ui": "~2.4.0",
84
+ "expo-web-browser": "~12.3.2",
85
85
  "file-saver": "^2.0.5",
86
86
  "fs-extra": "^11.1.1",
87
87
  "google-libphonenumber": "^3.2.32",
@@ -91,29 +91,27 @@
91
91
  "react": "^18.2.0",
92
92
  "react-content-loader": "^6.2.1",
93
93
  "react-dom": "^18.2.0",
94
- "react-native": "^0.71.3",
94
+ "react-native": "0.72.1",
95
95
  "react-native-big-list": "^1.6.1",
96
- "react-native-blob-util": "^0.17.0",
97
- "react-native-gesture-handler": "~2.9.0",
96
+ "react-native-blob-util": "^0.18.3",
97
+ "react-native-gesture-handler": "~2.12.0",
98
98
  "react-native-iphone-x-helper": "^1.3.1",
99
- "react-native-mime-types": "^2.3.0",
100
- "react-native-paper": "^5.9.0",
99
+ "react-native-mime-types": "^2.4.0",
100
+ "react-native-paper": "^5.9.1",
101
101
  "react-native-paper-dates": "^0.18.12",
102
- "react-native-reanimated": "~2.14.4",
103
- "react-native-safe-area-context": "^4.5.3",
104
- "react-native-screens": "^3.20.0",
105
- "react-native-svg": "13.4.0",
106
- "react-native-web": "~0.18.7",
107
- "react-native-webview": "^11.26.0",
102
+ "react-native-reanimated": "~3.3.0",
103
+ "react-native-safe-area-context": "4.6.3",
104
+ "react-native-screens": "~3.22.0",
105
+ "react-native-svg": "13.9.0",
106
+ "react-native-web": "~0.19.6",
107
+ "react-native-webview": "13.2.2",
108
108
  "react-virtuoso": "^4.3.11",
109
- "sharp-cli": "^2.1.0",
109
+ "sharp-cli": "^4.1.1",
110
110
  "tippy.js": "^6.3.7",
111
111
  "websql": "^2.0.3",
112
112
  "xlsx": "^0.18.5"
113
113
  },
114
114
  "devDependencies": {
115
- "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
116
- "@babel/preset-react": "^7.18.6",
117
115
  "@expo/metro-config": "^0.7.1",
118
116
  "@expo/webpack-config": "^18.0.1",
119
117
  "babel-plugin-inline-dotenv": "^1.7.0",
package/readMe.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ## Installation des dépendences, packages de dévéloppement
2
2
 
3
3
  ```javascript
4
- npm i --D @babel/plugin-proposal-export-namespace-from @babel/preset-react babel-plugin-inline-dotenv babel-plugin-module-resolver babel-plugin-transform-inline-environment-variables @expo/metro-config @expo/webpack-config
4
+ npm i --D @babel/preset-react babel-plugin-inline-dotenv babel-plugin-module-resolver babel-plugin-transform-inline-environment-variables @expo/metro-config @expo/webpack-config
5
5
  ```
6
6
 
7
7
  ## **#ELECTRON**
@@ -5,6 +5,7 @@ import {isMobileOrTabletMedia} from "$cplatform/dimensions";
5
5
  import {MAX_WIDTH} from "$ecomponents/Dialog/utils";
6
6
  import {extendObj,defaultObj,isObj,defaultBool,defaultStr} from "$cutils";
7
7
  import grid from "$theme/grid";
8
+ import theme from "$theme";
8
9
  import {isDesktopMedia} from "$cdimensions";
9
10
 
10
11
  let dialogProviderRef = null;
@@ -72,6 +73,7 @@ const FormDataDialogProvider = React.forwardRef((props,innerRef)=>{
72
73
  text : 'Annuler',
73
74
  icon : 'close',
74
75
  isCancelButton : true,
76
+ error : true,
75
77
  ...defaultObj(closeAction),
76
78
  onPress : context.close,
77
79
  isAction : false,