@driveflux/pdf 1.6.70 → 1.7.0

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 (54) hide show
  1. package/dist/__mocks__/subscription.d.ts +0 -2
  2. package/dist/__mocks__/subscription.d.ts.map +1 -1
  3. package/dist/__mocks__/subscription.js +23 -33
  4. package/dist/__mocks__/subscription.js.map +1 -1
  5. package/dist/components/StandardPage.d.ts.map +1 -1
  6. package/dist/components/StandardPage.js +2 -12
  7. package/dist/components/StandardPage.js.map +1 -1
  8. package/dist/debug.js +18 -34
  9. package/dist/debug.js.map +1 -1
  10. package/dist/templates/QuotationPdf/Pricing.d.ts.map +1 -1
  11. package/dist/templates/QuotationPdf/Pricing.js +9 -5
  12. package/dist/templates/QuotationPdf/Pricing.js.map +1 -1
  13. package/dist/templates/QuotationPdf/index.js +9 -17
  14. package/dist/templates/QuotationPdf/translations.d.ts.map +1 -1
  15. package/dist/templates/QuotationPdf/translations.js +4 -0
  16. package/dist/templates/QuotationPdf/translations.js.map +1 -1
  17. package/dist/templates/SubscriptionAgreement/Confirmation.d.ts +0 -2
  18. package/dist/templates/SubscriptionAgreement/Confirmation.d.ts.map +1 -1
  19. package/dist/templates/SubscriptionAgreement/Confirmation.js +5 -5
  20. package/dist/templates/SubscriptionAgreement/Confirmation.js.map +1 -1
  21. package/dist/templates/SubscriptionAgreement/CoverPage.d.ts +1 -3
  22. package/dist/templates/SubscriptionAgreement/CoverPage.d.ts.map +1 -1
  23. package/dist/templates/SubscriptionAgreement/CoverPage.js +8 -24
  24. package/dist/templates/SubscriptionAgreement/CoverPage.js.map +1 -1
  25. package/dist/templates/SubscriptionAgreement/Details.d.ts.map +1 -1
  26. package/dist/templates/SubscriptionAgreement/Details.js +5 -73
  27. package/dist/templates/SubscriptionAgreement/Details.js.map +1 -1
  28. package/dist/templates/SubscriptionAgreement/TermsOfUse.d.ts +2 -2
  29. package/dist/templates/SubscriptionAgreement/TermsOfUse.d.ts.map +1 -1
  30. package/dist/templates/SubscriptionAgreement/TermsOfUse.js +33 -77
  31. package/dist/templates/SubscriptionAgreement/TermsOfUse.js.map +1 -1
  32. package/dist/templates/SubscriptionAgreement/TermsOfUseSubSection.d.ts.map +1 -1
  33. package/dist/templates/SubscriptionAgreement/TermsOfUseSubSection.js +1 -2
  34. package/dist/templates/SubscriptionAgreement/TermsOfUseSubSection.js.map +1 -1
  35. package/dist/templates/SubscriptionAgreement/index.d.ts +1 -5
  36. package/dist/templates/SubscriptionAgreement/index.d.ts.map +1 -1
  37. package/dist/templates/SubscriptionAgreement/index.js +16 -29
  38. package/dist/templates/SubscriptionAgreement/index.js.map +1 -1
  39. package/dist/templates/SubscriptionAgreement/translations.d.ts +0 -6
  40. package/dist/templates/SubscriptionAgreement/translations.d.ts.map +1 -1
  41. package/dist/templates/SubscriptionAgreement/translations.js +1 -7
  42. package/dist/templates/SubscriptionAgreement/translations.js.map +1 -1
  43. package/dist/templates/SubscriptionAgreement/types.d.ts +1 -2
  44. package/dist/templates/SubscriptionAgreement/types.d.ts.map +1 -1
  45. package/dist/templates/SubscriptionAgreement/utils.d.ts +0 -3
  46. package/dist/templates/SubscriptionAgreement/utils.d.ts.map +1 -1
  47. package/dist/templates/SubscriptionAgreement/utils.js +0 -33
  48. package/dist/templates/SubscriptionAgreement/utils.js.map +1 -1
  49. package/dist/utils.js +8 -15
  50. package/package.json +19 -19
  51. package/dist/__mocks__/tou.d.ts +0 -10
  52. package/dist/__mocks__/tou.d.ts.map +0 -1
  53. package/dist/__mocks__/tou.js +0 -22
  54. package/dist/__mocks__/tou.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,CAAC,MAAM,oBAAoB,GAAG,CACnC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G,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAChD,OAAO,KAAK,CAAC,aAAa,CACzB,IAAI,EACJ;gBACC,GAAG,EAAE,KAAK;gBACV,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE;aAC9B,EACD,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CACjB,CAAA;QACF,CAAC;QAED,OAAO,IAAI,CAAA;IACZ,CAAC,CAAC,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/utils.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAG,CACnC,cAA0C,EACzC,EAAE;IACH,OAAO,cAAc,EAAE,IAAI,KAAK,IAAI;QACnC,CAAC,CAAC,GAAG,cAAc,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,cAAc,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,cAAc,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE;QACrH,CAAC,CAAC,cAAc,EAAE,MAAM,IAAI,GAAG,CAAA;AACjC,CAAC,CAAA"}
package/dist/utils.js CHANGED
@@ -28,7 +28,7 @@ function _async_to_generator(fn) {
28
28
  };
29
29
  }
30
30
  function _ts_generator(thisArg, body) {
31
- var f, y, t, g, _ = {
31
+ var f, y, t, _ = {
32
32
  label: 0,
33
33
  sent: function() {
34
34
  if (t[0] & 1) throw t[1];
@@ -36,12 +36,8 @@ function _ts_generator(thisArg, body) {
36
36
  },
37
37
  trys: [],
38
38
  ops: []
39
- };
40
- return g = {
41
- next: verb(0),
42
- "throw": verb(1),
43
- "return": verb(2)
44
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
39
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
40
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
45
41
  return this;
46
42
  }), g;
47
43
  function verb(n) {
@@ -54,7 +50,7 @@ function _ts_generator(thisArg, body) {
54
50
  }
55
51
  function step(op) {
56
52
  if (f) throw new TypeError("Generator is already executing.");
57
- while(_)try {
53
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
58
54
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
59
55
  if (y = 0, t) op = [
60
56
  op[0] & 2,
@@ -128,8 +124,8 @@ import ReactPDF from '@react-pdf/renderer';
128
124
  * @param document React PDF Document element
129
125
  * @param fileName DO NOT USE THIS IN NEXT.JS APP, as Vercel does not allow us to amend files. This will generate a PDF file in the given fileName
130
126
  * @returns PDF Buffer
131
- */ export var toPdf = /*#__PURE__*/ function() {
132
- var _ref = _async_to_generator(function(document, fileName) {
127
+ */ export var toPdf = function(document, fileName) {
128
+ return _async_to_generator(function() {
133
129
  var stream;
134
130
  return _ts_generator(this, function(_state) {
135
131
  switch(_state.label){
@@ -167,8 +163,5 @@ import ReactPDF from '@react-pdf/renderer';
167
163
  ];
168
164
  }
169
165
  });
170
- });
171
- return function toPdf(document, fileName) {
172
- return _ref.apply(this, arguments);
173
- };
174
- }();
166
+ })();
167
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@driveflux/pdf",
3
- "version": "1.6.70",
3
+ "version": "1.7.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -12,29 +12,29 @@
12
12
  "dist"
13
13
  ],
14
14
  "dependencies": {
15
- "@driveflux/db": "2.2.53",
16
- "@driveflux/env": "1.5.0",
17
- "@driveflux/format-money": "5.4.1",
18
- "@driveflux/time": "4.4.1",
19
- "@react-pdf/renderer": "^4.0.0",
20
- "date-fns": "^3.6.0",
21
- "nodemon": "^3.1.7",
22
- "react": "^19.0.0"
15
+ "@driveflux/db": "2.3.0",
16
+ "@driveflux/env": "1.6.0",
17
+ "@driveflux/format-money": "5.5.0",
18
+ "@driveflux/time": "4.5.0",
19
+ "@react-pdf/renderer": "^4.3.0",
20
+ "date-fns": "^4.1.0",
21
+ "nodemon": "^3.1.10",
22
+ "react": "19.1.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@babel/preset-env": "^7.25.8",
26
- "@driveflux/fab": "2.4.0",
27
- "@driveflux/tsconfig": "1.3.0",
28
- "@swc/cli": "0.4.1-nightly.20240914",
29
- "@swc/core": "1.7.39",
30
- "@types/node": "^22.7.8",
31
- "@types/react": "^18.3.11",
25
+ "@babel/preset-env": "^7.27.2",
26
+ "@driveflux/fab": "2.5.0",
27
+ "@driveflux/tsconfig": "1.4.0",
28
+ "@swc/cli": "0.7.5",
29
+ "@swc/core": "1.11.24",
30
+ "@types/node": "^22.15.16",
31
+ "@types/react": "^19.1.3",
32
32
  "del-cli": "^6.0.0",
33
- "react": "^19.0.0",
34
- "typescript": "^5.6.3"
33
+ "react": "19.1.0",
34
+ "typescript": "^5.8.3"
35
35
  },
36
36
  "peerDependencies": {
37
- "react": "^19.0.0"
37
+ "react": "19.1.0"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "fab",
@@ -1,10 +0,0 @@
1
- export declare const mockTermsOfUse: {
2
- items: {
3
- content: string;
4
- items: {
5
- content: string;
6
- items: never[];
7
- }[];
8
- }[];
9
- };
10
- //# sourceMappingURL=tou.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tou.d.ts","sourceRoot":"","sources":["../../src/__mocks__/tou.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;CAuB1B,CAAA"}
@@ -1,22 +0,0 @@
1
- export var mockTermsOfUse = {
2
- items: [
3
- {
4
- content: 'Terms of Use',
5
- items: [
6
- {
7
- content: 'These Terms of ***Use*** are NOT no yes defined and govern the relationship, rules and regulations of the interactions by FLUX and its Members.',
8
- items: []
9
- }
10
- ]
11
- },
12
- {
13
- content: 'Introduction',
14
- items: [
15
- {
16
- content: 'FLUX is an online business functioning as a technology provider that facilitates vehicle subscriptions.',
17
- items: []
18
- }
19
- ]
20
- }
21
- ]
22
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"tou.js","sourceRoot":"","sources":["../../src/__mocks__/tou.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B,KAAK,EAAE;QACN;YACC,OAAO,EAAE,cAAc;YACvB,KAAK,EAAE;gBACN;oBACC,OAAO,EACN,iJAAiJ;oBAClJ,KAAK,EAAE,EAAE;iBACT;aACD;SACD;QACD;YACC,OAAO,EAAE,cAAc;YACvB,KAAK,EAAE;gBACN;oBACC,OAAO,EACN,yGAAyG;oBAC1G,KAAK,EAAE,EAAE;iBACT;aACD;SACD;KACD;CACD,CAAA"}