@fto-consult/expo-ui 7.4.2 → 7.4.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/electron/index.js CHANGED
@@ -276,10 +276,11 @@ ipcMain.on("electron-toggle-dev-tools",function(event,value) {
276
276
 
277
277
 
278
278
  app.whenReady().then(() => {
279
+ const readOpts = {toggleDevTools,window:win,win};
279
280
  if(typeof mainProcess.whenReady =='function'){
280
- mainProcess.whenReady();
281
+ mainProcess.whenReady(readOpts);
281
282
  } else if(typeof mainProcess.appOnReady =='function'){
282
- mainProcess.appOnReady();
283
+ mainProcess.appOnReady(readOpts);
283
284
  }
284
285
  globalShortcut.register('CommandOrControl+F12', () => {
285
286
  toggleDevTools();
@@ -10,12 +10,17 @@
10
10
  module.exports = {
11
11
  /*****
12
12
  @must return Instance of Browser window
13
+ width: 500, height: 400, transparent: true, frame: false,
14
+ alwaysOnTop: true
13
15
  */
14
- splashScreen : function(){
16
+ splashScreen : function({width, height, transparent, frame, alwaysOnTop}){
15
17
  return null;
16
18
  },
17
- /*** this function is called when app is ready */
18
- whenReady : function(){
19
+ /*** this function is called when app is ready
20
+ toggleDevTools : {function},la fonction permettant de toggle les outils de developements
21
+ window : {BrowserWindow}, le browser window principal de l'application
22
+ */
23
+ whenReady : function({toggleDevTools,window,win}){
19
24
 
20
25
  }
21
26
  }
@@ -5,7 +5,7 @@ module.exports = {
5
5
  copy : require("./copy"),
6
6
  electronDir : path.resolve(__dirname, ".."),
7
7
  exec : require("./exec"),
8
- thowError : (...args)=>{
8
+ throwError : (...args)=>{
9
9
  console.error(...args);
10
10
  process.exit(-1);
11
11
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.4.2",
3
+ "version": "7.4.3",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "main",
6
6
  "scripts": {