@fto-consult/expo-ui 7.8.9 → 7.8.11
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fto-consult/expo-ui",
|
3
|
-
"version": "7.8.
|
3
|
+
"version": "7.8.11",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"scripts": {
|
6
6
|
"clear-npx-cache": "npx clear-npx-cache",
|
@@ -72,7 +72,7 @@
|
|
72
72
|
"@expo/vector-icons": "^13.0.0",
|
73
73
|
"@faker-js/faker": "^8.0.2",
|
74
74
|
"@fto-consult/common": "^3.75.2",
|
75
|
-
"@fto-consult/electron-gen": "^1.3.
|
75
|
+
"@fto-consult/electron-gen": "^1.3.7",
|
76
76
|
"@pchmn/expo-material3-theme": "^1.3.1",
|
77
77
|
"@react-native-async-storage/async-storage": "1.18.2",
|
78
78
|
"@react-native-community/datetimepicker": "7.2.0",
|
@@ -114,12 +114,12 @@
|
|
114
114
|
"react-native-iphone-x-helper": "^1.3.1",
|
115
115
|
"react-native-mime-types": "^2.4.0",
|
116
116
|
"react-native-paper": "^5.11.4",
|
117
|
-
"react-native-paper-dates": "^0.21.
|
117
|
+
"react-native-paper-dates": "^0.21.7",
|
118
118
|
"react-native-reanimated": "~3.3.0",
|
119
119
|
"react-native-safe-area-context": "4.6.3",
|
120
120
|
"react-native-screens": "~3.22.0",
|
121
121
|
"react-native-svg": "13.9.0",
|
122
|
-
"react-native-web": "^0.19.
|
122
|
+
"react-native-web": "^0.19.10",
|
123
123
|
"react-native-webview": "13.2.2",
|
124
124
|
"react-virtuoso": "^4.6.2",
|
125
125
|
"sanitize-filename": "^1.6.3",
|
@@ -13,6 +13,7 @@ import StatusBar from "$ecomponents/StatusBar";
|
|
13
13
|
import ScrollView from "$ecomponents/ScrollView";
|
14
14
|
import KeyboardAvoidingView from "$ecomponents/KeyboardAvoidingView";
|
15
15
|
import {ScreenContext,useScreen} from "$econtext/hooks";
|
16
|
+
import {isElectron} from "$cplatform";
|
16
17
|
|
17
18
|
const getDefaultTitle = (nTitle,returnStr)=>{
|
18
19
|
let titleStr = React.getTextContent(nTitle);
|
@@ -90,6 +91,9 @@ export default function MainScreenScreenWithoutAuthContainer(props) {
|
|
90
91
|
subtitle :subtitle,
|
91
92
|
title : screenTitle,
|
92
93
|
});
|
94
|
+
if(isElectron() && typeof window?.ELECTRON !== "undefined" && typeof ELECTRON?.setTitle =='function'){
|
95
|
+
ELECTRON.setTitle(screenTitle);
|
96
|
+
}
|
93
97
|
}
|
94
98
|
}, [title,subtitle]);
|
95
99
|
const fab = withFab ? <Fab
|
@@ -77,8 +77,6 @@ export default function HelpScreen(props){
|
|
77
77
|
<Link routeName={"releaseNotes"}>
|
78
78
|
<Label primary textBold style={theme.styles.mv05} >{appConfig.name+", Notes de mise à jour."}</Label>
|
79
79
|
</Link>
|
80
|
-
</View>
|
81
|
-
<View testID={testID+"_OpenLibrariesLinkContainer"} style={[theme.styles.w100,theme.styles.alignItemsCenter]}>
|
82
80
|
<OpenLibraries.Link testID={testID+"_OpenLibrariesLink"}/>
|
83
81
|
</View>
|
84
82
|
</View>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import View from "$ecomponents/View";
|
2
2
|
import Screen from "$escreen";
|
3
|
-
import {defaultStr,defaultObj,isValidUrl} from "$cutils";
|
3
|
+
import {defaultStr,defaultObj,isValidUrl,isObj,isNonNullString} from "$cutils";
|
4
4
|
import Label from "$ecomponents/Label";
|
5
5
|
import theme from "$theme";
|
6
6
|
import Link from "$ecomponents/Link";
|
@@ -10,8 +10,10 @@ import Table from "$ecomponents/Table";
|
|
10
10
|
import React from "$react";
|
11
11
|
import AutoLink from "$ecomponents/AutoLink";
|
12
12
|
import {Vertical} from "$ecomponents/AutoSizer";
|
13
|
+
const packageJSON = require("$packageJSON");
|
13
14
|
|
14
15
|
const openLibraries = require("./openLibraries");
|
16
|
+
const euPackageName = "@fto-consult/expo-ui";
|
15
17
|
|
16
18
|
const columns = {
|
17
19
|
index : {
|
@@ -33,8 +35,12 @@ const columns = {
|
|
33
35
|
}
|
34
36
|
export default function OpenLibrariesScreen({testID,...props}){
|
35
37
|
testID = defaultStr(testID,"RN_HealScreenOpenLibraries");
|
36
|
-
|
37
|
-
|
38
|
+
if(isObj(packageJSON?.dependencies)){
|
39
|
+
const devExpo = packageJSON?.dependencies[euPackageName];
|
40
|
+
const opo = isNonNullString(devExpo) ? {version:devExpo.trim().ltrim("^")} : Object.assign({},devExpo);
|
41
|
+
openLibraries[euPackageName] = Object.assign({},openLibraries[euPackageName]);
|
42
|
+
openLibraries[euPackageName] = {...openLibraries[euPackageName],...opo};
|
43
|
+
}
|
38
44
|
const data = React.useMemo(()=>{
|
39
45
|
const data = [];
|
40
46
|
Object.map(openLibraries,(lib,i,_i)=>{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module.exports = {
|
2
2
|
"@fto-consult/expo-ui": {
|
3
3
|
"name": "@fto-consult/expo-ui",
|
4
|
-
"version": "7.
|
4
|
+
"version": "7.8.10",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
7
7
|
"url": "git+https://github.com/borispipo/expo-ui.git"
|
@@ -49,12 +49,12 @@ module.exports = {
|
|
49
49
|
"license": "MIT"
|
50
50
|
},
|
51
51
|
"@fto-consult/common": {
|
52
|
-
"version": "3.
|
52
|
+
"version": "3.75.2",
|
53
53
|
"url": "https://github.com/borispipo/common#readme",
|
54
54
|
"license": "ISC"
|
55
55
|
},
|
56
56
|
"@fto-consult/electron-gen": {
|
57
|
-
"version": "1.
|
57
|
+
"version": "1.3.7",
|
58
58
|
"license": "ISC"
|
59
59
|
},
|
60
60
|
"@pchmn/expo-material3-theme": {
|
@@ -268,7 +268,7 @@ module.exports = {
|
|
268
268
|
"license": "MIT"
|
269
269
|
},
|
270
270
|
"react-native-paper-dates": {
|
271
|
-
"version": "0.21.
|
271
|
+
"version": "0.21.7",
|
272
272
|
"url": "https://github.com/web-ridge/react-native-paper-dates#readme",
|
273
273
|
"license": "MIT"
|
274
274
|
},
|
@@ -293,7 +293,7 @@ module.exports = {
|
|
293
293
|
"license": "MIT"
|
294
294
|
},
|
295
295
|
"react-native-web": {
|
296
|
-
"version": "0.19.
|
296
|
+
"version": "0.19.10",
|
297
297
|
"url": "git://github.com/necolas/react-native-web.git",
|
298
298
|
"license": "MIT"
|
299
299
|
},
|