@driveflux/frontend-pdf 3.0.2 → 3.0.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.
Files changed (2) hide show
  1. package/dist/pdf.js +14 -6
  2. package/package.json +10 -10
package/dist/pdf.js CHANGED
@@ -64,9 +64,17 @@ function _ts_generator(thisArg, body) {
64
64
  },
65
65
  trys: [],
66
66
  ops: []
67
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
68
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
69
- return this;
67
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
68
+ return d(g, "next", {
69
+ value: verb(0)
70
+ }), d(g, "throw", {
71
+ value: verb(1)
72
+ }), d(g, "return", {
73
+ value: verb(2)
74
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
75
+ value: function() {
76
+ return this;
77
+ }
70
78
  }), g;
71
79
  function verb(n) {
72
80
  return function(v) {
@@ -156,7 +164,7 @@ import jsPDF from 'jspdf';
156
164
  *
157
165
  * @example
158
166
  * prepareElementsToDownload(element, 'receipt.pdf', { unit: 'mm' });
159
- */ export var prepareElementsToDownload = function(elements) {
167
+ */ export var prepareElementsToDownload = function prepareElementsToDownload(elements) {
160
168
  var pdfName = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 'print.pdf', options = arguments.length > 2 ? arguments[2] : void 0;
161
169
  return _async_to_generator(function() {
162
170
  var pdf;
@@ -185,7 +193,7 @@ import jsPDF from 'jspdf';
185
193
  *
186
194
  * @example
187
195
  * prepareElementsToPrint(element, 'receipt.pdf', { unit: 'mm' });
188
- */ export var prepareElementsToPrint = function(elements, options) {
196
+ */ export var prepareElementsToPrint = function prepareElementsToPrint(elements, options) {
189
197
  return _async_to_generator(function() {
190
198
  var pdf;
191
199
  return _ts_generator(this, function(_state) {
@@ -210,7 +218,7 @@ var defaultOptions = {
210
218
  unit: 'px',
211
219
  compress: true
212
220
  };
213
- var generatePdf = function(elements, options) {
221
+ var generatePdf = function generatePdf(elements, options) {
214
222
  return _async_to_generator(function() {
215
223
  var pdf, i, _style_sheet, element, originalWidth, style, canvas, data, imgProperties, pdfWidth, pdfHeight;
216
224
  return _ts_generator(this, function(_state) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@driveflux/frontend-pdf",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -13,18 +13,18 @@
13
13
  ],
14
14
  "dependencies": {
15
15
  "html2canvas": "^1.4.1",
16
- "html2canvas-pro": "^1.5.12",
17
- "jspdf": "^3.0.3"
16
+ "html2canvas-pro": "^2.0.2",
17
+ "jspdf": "^4.2.1"
18
18
  },
19
19
  "devDependencies": {
20
- "@driveflux/fab": "4.0.0",
21
- "@driveflux/tsconfig": "3.0.0",
22
- "@swc/cli": "^0.7.8",
23
- "@swc/core": "^1.13.5",
24
- "@types/lodash": "^4.17.20",
25
- "@types/node": "^24.9.1",
20
+ "@driveflux/fab": "4.0.1",
21
+ "@driveflux/tsconfig": "3.0.1",
22
+ "@swc/cli": "^0.8.1",
23
+ "@swc/core": "^1.15.33",
24
+ "@types/lodash": "^4.17.24",
25
+ "@types/node": "^25.7.0",
26
26
  "del-cli": "^7.0.0",
27
- "typescript": "^5.9.3"
27
+ "typescript": "^6.0.3"
28
28
  },
29
29
  "scripts": {
30
30
  "build": "fab",