@fto-consult/expo-ui 7.4.51 → 7.4.53

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.
@@ -3,11 +3,8 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6
-
7
6
  <title id="document-title">PDF Viewer</title>
8
-
9
7
  <link rel="stylesheet" type="text/css" href="./viewer.css">
10
-
11
8
  <script src="../../node_modules/pdfobject/pdfobject.min.js"></script>
12
9
  </head>
13
10
 
@@ -26,11 +23,14 @@
26
23
  } else if(params.title && title){
27
24
  title.innerHTML = `${params.title}`
28
25
  }
26
+ alert(JSON.stringify(params)," is params heeein");
27
+ alert(params.file," is paraments fieleeeeee");
29
28
  if(params.file){
30
29
  PDFObject.embed(params.file,container,params);
31
30
  } else if(params.dataURL){
32
31
  PDFObject.embed(params.dataURL,container,params);
33
32
  }
33
+ console.log(params," is params heeein marrrrrrrrrrr ");
34
34
  </script>
35
35
  </body>
36
36
  </html>
@@ -385,9 +385,18 @@ const ELECTRON = {
385
385
  return createPDFFile(options).then(({path:mainPath,filePathUrl,fileName})=>{
386
386
  const urlPath = path.resolve(__dirname,"pdf-viewer","viewer.html");
387
387
  if(fs.existsSync(mainPath)){
388
- options.loadURL = `file://${urlPath}?file=${decodeURIComponent(filePathUrl)}&locale=fr&fileName=${fileName}`;
389
- options.showOnLoad = true;
390
- console.log("will print url ",options.loadURL,options);
388
+ const opts = {
389
+ loadURL : `file://${urlPath}?file=${decodeURIComponent(filePathUrl)}&locale=fr&fileName=${fileName}`,
390
+ showOnLoad : true,
391
+ devTools : true,
392
+ fileName
393
+ }
394
+ ["width","height"].map((v)=>{
395
+ if(v in options){
396
+ opts[v] = options;
397
+ }
398
+ })
399
+ console.log("will print url ",opts);
391
400
  return this.createPDFWindow(options)
392
401
  }
393
402
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.4.51",
3
+ "version": "7.4.53",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",