@medicus.ai/medicus-report-pdf-generator 1.3.27 → 1.3.29

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.
@@ -7,7 +7,7 @@ const path = require("path");
7
7
  const LocaleService = require('../app/services/localeService.js');
8
8
  const i18n = require('../app/i18n_wellbeing.config.js');
9
9
  const puppeteer = require("puppeteer");
10
- const hummus = require('hummus');
10
+ const hummus = require('muhammara');
11
11
  const memoryStreams = require('memory-streams');
12
12
 
13
13
  var localeService = new LocaleService(i18n);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const fs = require("fs"), {promisify: promisify} = require("util"), {JSDOM: JSDOM} = require("jsdom"),
3
- fetch = require("node-fetch"), hummus = require("hummus"), memoryStreams = require("memory-streams"),
3
+ fetch = require("node-fetch"), hummus = require("muhammara"), memoryStreams = require("memory-streams"),
4
4
  path = require("path"), LocaleService = require("../app/services/localeService.js"),
5
5
  i18n = require("../app/i18n.config.js"), puppeteer = require("puppeteer");
6
6
  var Chart = require("chart.js"), QRCode = require("qrcode"), localeService = new LocaleService(i18n);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medicus.ai/medicus-report-pdf-generator",
3
- "version": "1.3.27",
3
+ "version": "1.3.29",
4
4
  "description": "Nasco corporate report - latest update in 12/10/2023 - Fix HRC for bionext",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,17 +13,14 @@
13
13
  "babel-register": "^6.26.0",
14
14
  "big-text.js": "^1.0.1",
15
15
  "body-parser": "^1.18.3",
16
- "canvas": "^2.11.2",
17
- "canvas-constructor": "^3.2.0",
18
16
  "chart.js": "^2.7.3",
19
17
  "express": "^4.16.4",
20
- "get-canvas-context": "^1.0.2",
21
- "hummus": "1.0.111",
22
18
  "i18n": "^0.8.3",
23
19
  "i18n-nodejs": "^3.0.0",
24
20
  "jquery": "^3.3.1",
25
- "jsdom": "^13.1.0",
21
+ "jsdom": "^16.7.0",
26
22
  "memory-streams": "^0.1.3",
23
+ "muhammara": "6.0.6",
27
24
  "node-fetch": "^2.3.0",
28
25
  "node-pdftk": "^2.0.2",
29
26
  "node-qpdf2": "^6.0.0",
@@ -43,5 +40,11 @@
43
40
  "babel-preset-es2015": "^6.24.1",
44
41
  "babel-preset-stage-0": "^6.24.1",
45
42
  "webpack": "^4.28.4"
43
+ },
44
+ "allowScripts": {
45
+ "puppeteer": true,
46
+ "muhammara": true,
47
+ "core-js": false,
48
+ "fsevents": false
46
49
  }
47
50
  }
@@ -26,6 +26,17 @@
26
26
  .score-main .section.panel .panel-title[style*="width:"] {
27
27
  float: left !important;
28
28
  }
29
+
30
+ /* Report summary (prescription table): the shared sheet makes #report-summary
31
+ a shrink-to-fit floated box (~half the page width), so a wide prescription
32
+ table overflows past the box's right border (the bordered card no longer
33
+ contains it). Let the box span the full content width so the table sits
34
+ inside it. Mirrors the same fix in rtl_no_pages.html. */
35
+ .score-main #report-summary {
36
+ display: block !important;
37
+ float: none !important;
38
+ width: 100% !important;
39
+ }
29
40
  </style>
30
41
  <script>
31
42
  var IS_ARABIC = false;