@driveflux/pdf 1.7.1 → 2.0.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 (69) hide show
  1. package/dist/__mocks__/quotation.js +10 -11
  2. package/dist/__mocks__/subscription.d.ts +2 -0
  3. package/dist/__mocks__/subscription.d.ts.map +1 -1
  4. package/dist/__mocks__/subscription.js +408 -140
  5. package/dist/__mocks__/subscription.js.map +1 -1
  6. package/dist/__mocks__/tou.d.ts +10 -0
  7. package/dist/__mocks__/tou.d.ts.map +1 -0
  8. package/dist/__mocks__/tou.js +22 -0
  9. package/dist/__mocks__/tou.js.map +1 -0
  10. package/dist/components/FluxLogo.js +62 -3
  11. package/dist/components/StandardPage.js +97 -8
  12. package/dist/debug.js +207 -27
  13. package/dist/debug.js.map +1 -1
  14. package/dist/index.js +0 -1
  15. package/dist/templates/QuotationPdf/CustomerSubscriptionSection.js +145 -27
  16. package/dist/templates/QuotationPdf/GFV.js +49 -12
  17. package/dist/templates/QuotationPdf/Header.js +63 -5
  18. package/dist/templates/QuotationPdf/Pricing.d.ts.map +1 -1
  19. package/dist/templates/QuotationPdf/Pricing.js +574 -208
  20. package/dist/templates/QuotationPdf/Pricing.js.map +1 -1
  21. package/dist/templates/QuotationPdf/QuotationPdfPage.js +23 -3
  22. package/dist/templates/QuotationPdf/SectionBoxNew.js +34 -4
  23. package/dist/templates/QuotationPdf/TermsSection.js +42 -5
  24. package/dist/templates/QuotationPdf/VehiclePhotos.js +54 -24
  25. package/dist/templates/QuotationPdf/index.js +189 -10
  26. package/dist/templates/QuotationPdf/translations.d.ts.map +1 -1
  27. package/dist/templates/QuotationPdf/translations.js +34 -23
  28. package/dist/templates/QuotationPdf/translations.js.map +1 -1
  29. package/dist/templates/QuotationPdf/utils.js +59 -29
  30. package/dist/templates/SubscriptionAgreement/Confirmation.d.ts +2 -0
  31. package/dist/templates/SubscriptionAgreement/Confirmation.d.ts.map +1 -1
  32. package/dist/templates/SubscriptionAgreement/Confirmation.js +66 -11
  33. package/dist/templates/SubscriptionAgreement/Confirmation.js.map +1 -1
  34. package/dist/templates/SubscriptionAgreement/CoverPage.d.ts +3 -1
  35. package/dist/templates/SubscriptionAgreement/CoverPage.d.ts.map +1 -1
  36. package/dist/templates/SubscriptionAgreement/CoverPage.js +94 -11
  37. package/dist/templates/SubscriptionAgreement/CoverPage.js.map +1 -1
  38. package/dist/templates/SubscriptionAgreement/CoverPageSection.js +16 -5
  39. package/dist/templates/SubscriptionAgreement/Details.d.ts.map +1 -1
  40. package/dist/templates/SubscriptionAgreement/Details.js +140 -46
  41. package/dist/templates/SubscriptionAgreement/Details.js.map +1 -1
  42. package/dist/templates/SubscriptionAgreement/Footer.js +48 -6
  43. package/dist/templates/SubscriptionAgreement/Header.js +35 -5
  44. package/dist/templates/SubscriptionAgreement/LabelValue.js +25 -3
  45. package/dist/templates/SubscriptionAgreement/SubscriptionAgreementPage.js +26 -3
  46. package/dist/templates/SubscriptionAgreement/TermsOfUse.d.ts +2 -2
  47. package/dist/templates/SubscriptionAgreement/TermsOfUse.d.ts.map +1 -1
  48. package/dist/templates/SubscriptionAgreement/TermsOfUse.js +94 -4
  49. package/dist/templates/SubscriptionAgreement/TermsOfUse.js.map +1 -1
  50. package/dist/templates/SubscriptionAgreement/TermsOfUseSubSection.js +97 -9
  51. package/dist/templates/SubscriptionAgreement/index.d.ts +5 -1
  52. package/dist/templates/SubscriptionAgreement/index.d.ts.map +1 -1
  53. package/dist/templates/SubscriptionAgreement/index.js +245 -14
  54. package/dist/templates/SubscriptionAgreement/index.js.map +1 -1
  55. package/dist/templates/SubscriptionAgreement/translations.d.ts +6 -0
  56. package/dist/templates/SubscriptionAgreement/translations.d.ts.map +1 -1
  57. package/dist/templates/SubscriptionAgreement/translations.js +199 -192
  58. package/dist/templates/SubscriptionAgreement/translations.js.map +1 -1
  59. package/dist/templates/SubscriptionAgreement/types.d.ts +2 -1
  60. package/dist/templates/SubscriptionAgreement/types.d.ts.map +1 -1
  61. package/dist/templates/SubscriptionAgreement/types.js +1 -2
  62. package/dist/templates/SubscriptionAgreement/utils.js +3 -5
  63. package/dist/templates/index.js +0 -1
  64. package/dist/theme/colors.js +44 -63
  65. package/dist/theme/index.js +0 -1
  66. package/dist/types.js +1 -2
  67. package/dist/utils.js +159 -16
  68. package/dist/watch.js +3 -4
  69. package/package.json +7 -7
@@ -1,4 +1,4 @@
1
- export const quotation = {
1
+ export var quotation = {
2
2
  id: 'QU9HLAPJ9',
3
3
  vehicleId: 'V8AR2D4ZC',
4
4
  plan: 'plan36',
@@ -16,7 +16,7 @@ export const quotation = {
16
16
  type: 'user',
17
17
  name: 'dddd',
18
18
  email: null,
19
- address: null,
19
+ address: null
20
20
  },
21
21
  fees: {
22
22
  subscriptionFee: 1610,
@@ -40,8 +40,8 @@ export const quotation = {
40
40
  extraCharges: [],
41
41
  amountBeforeTax: 2322,
42
42
  taxAmount: 185.76,
43
- amountAfterTax: 2507.76,
44
- },
43
+ amountAfterTax: 2507.76
44
+ }
45
45
  },
46
46
  images: [
47
47
  {
@@ -54,7 +54,7 @@ export const quotation = {
54
54
  small: null,
55
55
  medium: null,
56
56
  large: null,
57
- description: null,
57
+ description: null
58
58
  },
59
59
  {
60
60
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles-v8-ar2-d4-zc-images-whats-app-image-2024-09-19-at-12-47-23-pm.jpeg',
@@ -66,7 +66,7 @@ export const quotation = {
66
66
  small: null,
67
67
  medium: null,
68
68
  large: null,
69
- description: null,
69
+ description: null
70
70
  },
71
71
  {
72
72
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles-v8-ar2-d4-zc-images-whats-app-image-2024-09-19-at-12-48-30-pm-1.jpeg',
@@ -78,7 +78,7 @@ export const quotation = {
78
78
  small: null,
79
79
  medium: null,
80
80
  large: null,
81
- description: null,
81
+ description: null
82
82
  },
83
83
  {
84
84
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles-v8-ar2-d4-zc-images-whats-app-image-2024-09-19-at-12-48-31-pm.jpeg',
@@ -90,9 +90,8 @@ export const quotation = {
90
90
  small: null,
91
91
  medium: null,
92
92
  large: null,
93
- description: null,
94
- },
93
+ description: null
94
+ }
95
95
  ],
96
- quotationPdf: 'https://dev-flux-admin.s3.ap-southeast-1.amazonaws.com/quotations/QU9HLAPJ9.pdf',
96
+ quotationPdf: 'https://dev-flux-admin.s3.ap-southeast-1.amazonaws.com/quotations/QU9HLAPJ9.pdf'
97
97
  };
98
- //# sourceMappingURL=quotation.js.map
@@ -1,3 +1,5 @@
1
+ import type { SubscriptionSignature } from '@driveflux/db';
1
2
  import type { SubscriptionForAgreement } from '../templates/SubscriptionAgreement/types';
2
3
  export declare const subscription: SubscriptionForAgreement;
4
+ export declare const signature: SubscriptionSignature;
3
5
  //# sourceMappingURL=subscription.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/__mocks__/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAA;AAExF,eAAO,MAAM,YAAY,EAAE,wBAi1B1B,CAAA"}
1
+ {"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/__mocks__/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAE1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAA;AAExF,eAAO,MAAM,YAAY,EAAE,wBA8zB1B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,qBA2BvB,CAAA"}