@driveflux/pdf 1.2.25 → 1.2.27
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.
- package/dist/__mocks__/subscription.d.ts.map +1 -1
- package/dist/__mocks__/subscription.js +10 -1
- package/dist/debug.js +3 -3
- package/dist/templates/QuotationPdf/Pricing.d.ts.map +1 -1
- package/dist/templates/QuotationPdf/Pricing.js +174 -184
- package/dist/templates/QuotationPdf/index.js +1 -1
- package/dist/templates/SubscriptionAgreement/index.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +9 -9
- package/dist/cjs/package.json +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/__mocks__/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AAE5D,eAAO,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/__mocks__/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AAE5D,eAAO,MAAM,YAAY,EAAE,wBAw0B1B,CAAA"}
|
|
@@ -65,6 +65,7 @@ export var subscription = {
|
|
|
65
65
|
ipAddress: null
|
|
66
66
|
},
|
|
67
67
|
id: 'S5Y9TWWSK',
|
|
68
|
+
// subscriptionTag: 'new',
|
|
68
69
|
object: 'subscription',
|
|
69
70
|
version: 3,
|
|
70
71
|
started: true,
|
|
@@ -183,6 +184,12 @@ export var subscription = {
|
|
|
183
184
|
groups: [
|
|
184
185
|
'member'
|
|
185
186
|
],
|
|
187
|
+
maritalStatus: null,
|
|
188
|
+
emergencyContactName: null,
|
|
189
|
+
emergencyPhoneNumber: null,
|
|
190
|
+
jobTitle: null,
|
|
191
|
+
industry: null,
|
|
192
|
+
estimatedSalary: 10000.2,
|
|
186
193
|
permissions: [
|
|
187
194
|
{
|
|
188
195
|
action: 'read',
|
|
@@ -529,6 +536,7 @@ export var subscription = {
|
|
|
529
536
|
activeSubscriptionId: 'S5Y9TWWSK',
|
|
530
537
|
createdAt: new Date('2024-04-01T08:15:04.448Z'),
|
|
531
538
|
updatedAt: new Date('2024-05-21T07:17:58.621Z'),
|
|
539
|
+
listedAt: new Date('2024-06-21T07:17:58.621Z'),
|
|
532
540
|
metadata: {},
|
|
533
541
|
addresses: {
|
|
534
542
|
return: {
|
|
@@ -1070,5 +1078,6 @@ export var subscription = {
|
|
|
1070
1078
|
metadata: {},
|
|
1071
1079
|
expiryNoticeSent: false,
|
|
1072
1080
|
phases: []
|
|
1073
|
-
}
|
|
1081
|
+
},
|
|
1082
|
+
subscriptionTag: 'new'
|
|
1074
1083
|
};
|
package/dist/debug.js
CHANGED
|
@@ -127,7 +127,7 @@ import { quotation } from './__mocks__/quotation.js';
|
|
|
127
127
|
import { subscription } from './__mocks__/subscription.js';
|
|
128
128
|
import { generateSubscriptionAgreementPdf } from './templates/SubscriptionAgreement/index.js';
|
|
129
129
|
import { generateQuotationPdf } from './templates/index.js';
|
|
130
|
-
var debugSubscriptionAgreement = function() {
|
|
130
|
+
var debugSubscriptionAgreement = /*#__PURE__*/ function() {
|
|
131
131
|
var _ref = _async_to_generator(function() {
|
|
132
132
|
return _ts_generator(this, function(_state) {
|
|
133
133
|
switch(_state.label){
|
|
@@ -156,7 +156,7 @@ var debugSubscriptionAgreement = function() {
|
|
|
156
156
|
return _ref.apply(this, arguments);
|
|
157
157
|
};
|
|
158
158
|
}();
|
|
159
|
-
var debugQuotation = function() {
|
|
159
|
+
var debugQuotation = /*#__PURE__*/ function() {
|
|
160
160
|
var _ref = _async_to_generator(function() {
|
|
161
161
|
return _ts_generator(this, function(_state) {
|
|
162
162
|
switch(_state.label){
|
|
@@ -190,7 +190,7 @@ var debugCases = [
|
|
|
190
190
|
debugSubscriptionAgreement(),
|
|
191
191
|
debugQuotation()
|
|
192
192
|
];
|
|
193
|
-
var debug = function() {
|
|
193
|
+
var debug = /*#__PURE__*/ function() {
|
|
194
194
|
var _ref = _async_to_generator(function() {
|
|
195
195
|
var results;
|
|
196
196
|
return _ts_generator(this, function(_state) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pricing.d.ts","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/Pricing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAG9C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAEhE,KAAK,KAAK,GAAG;IACZ,SAAS,EAAE,SAAS,CAAA;IACpB,CAAC,CAAC,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAA;CACtC,CAAA;AAED,QAAA,MAAM,OAAO,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"Pricing.d.ts","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/Pricing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAG9C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG/B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAEhE,KAAK,KAAK,GAAG;IACZ,SAAS,EAAE,SAAS,CAAA;IACpB,CAAC,CAAC,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAA;CACtC,CAAA;AAED,QAAA,MAAM,OAAO,EAAE,EAAE,CAAC,KAAK,CAyVtB,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -104,44 +104,12 @@ var Pricing = function(param) {
|
|
|
104
104
|
]
|
|
105
105
|
}, fee.key);
|
|
106
106
|
}),
|
|
107
|
-
quotation.fees.extraCharges.length > 0 &&
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
return /*#__PURE__*/ _jsxs(View, {
|
|
114
|
-
style: {
|
|
115
|
-
justifyContent: 'space-between',
|
|
116
|
-
flexDirection: 'row',
|
|
117
|
-
rowGap: 8
|
|
118
|
-
},
|
|
119
|
-
children: [
|
|
120
|
-
/*#__PURE__*/ _jsxs(Text, {
|
|
121
|
-
style: {
|
|
122
|
-
paddingRight: 4,
|
|
123
|
-
letterSpacing: 1,
|
|
124
|
-
color: colors.primary3
|
|
125
|
-
},
|
|
126
|
-
children: [
|
|
127
|
-
t === null || t === void 0 ? void 0 : t.fees.extraCharge,
|
|
128
|
-
" - ",
|
|
129
|
-
charge.description
|
|
130
|
-
]
|
|
131
|
-
}),
|
|
132
|
-
/*#__PURE__*/ _jsx(Text, {
|
|
133
|
-
style: {
|
|
134
|
-
color: colors.primary3,
|
|
135
|
-
letterSpacing: 1
|
|
136
|
-
},
|
|
137
|
-
children: charge.amount.toFixed(2)
|
|
138
|
-
})
|
|
139
|
-
]
|
|
140
|
-
}, i);
|
|
141
|
-
})
|
|
142
|
-
}),
|
|
143
|
-
quotation.fees.couponCode !== null && quotation.fees.couponType === 'upfront' && /*#__PURE__*/ _jsx(_Fragment, {
|
|
144
|
-
children: /*#__PURE__*/ _jsxs(View, {
|
|
107
|
+
quotation.fees.extraCharges.length > 0 && quotation.fees.extraCharges.filter(function(charge) {
|
|
108
|
+
return charge.amount > 0;
|
|
109
|
+
}).filter(function(charge) {
|
|
110
|
+
return charge.type === 'upfront';
|
|
111
|
+
}).map(function(charge, i) {
|
|
112
|
+
return /*#__PURE__*/ _jsxs(View, {
|
|
145
113
|
style: {
|
|
146
114
|
justifyContent: 'space-between',
|
|
147
115
|
flexDirection: 'row',
|
|
@@ -155,20 +123,48 @@ var Pricing = function(param) {
|
|
|
155
123
|
color: colors.primary3
|
|
156
124
|
},
|
|
157
125
|
children: [
|
|
158
|
-
t === null || t === void 0 ? void 0 : t.fees.
|
|
126
|
+
t === null || t === void 0 ? void 0 : t.fees.extraCharge,
|
|
159
127
|
" - ",
|
|
160
|
-
|
|
128
|
+
charge.description
|
|
161
129
|
]
|
|
162
130
|
}),
|
|
163
131
|
/*#__PURE__*/ _jsx(Text, {
|
|
164
132
|
style: {
|
|
165
|
-
color: colors.
|
|
133
|
+
color: colors.primary3,
|
|
166
134
|
letterSpacing: 1
|
|
167
135
|
},
|
|
168
|
-
children:
|
|
136
|
+
children: charge.amount.toFixed(2)
|
|
169
137
|
})
|
|
170
138
|
]
|
|
171
|
-
})
|
|
139
|
+
}, i);
|
|
140
|
+
}),
|
|
141
|
+
quotation.fees.couponCode !== null && quotation.fees.couponType === 'upfront' && /*#__PURE__*/ _jsxs(View, {
|
|
142
|
+
style: {
|
|
143
|
+
justifyContent: 'space-between',
|
|
144
|
+
flexDirection: 'row',
|
|
145
|
+
rowGap: 8
|
|
146
|
+
},
|
|
147
|
+
children: [
|
|
148
|
+
/*#__PURE__*/ _jsxs(Text, {
|
|
149
|
+
style: {
|
|
150
|
+
paddingRight: 4,
|
|
151
|
+
letterSpacing: 1,
|
|
152
|
+
color: colors.primary3
|
|
153
|
+
},
|
|
154
|
+
children: [
|
|
155
|
+
t === null || t === void 0 ? void 0 : t.fees.promo,
|
|
156
|
+
" - ",
|
|
157
|
+
quotation.fees.couponCode
|
|
158
|
+
]
|
|
159
|
+
}),
|
|
160
|
+
/*#__PURE__*/ _jsx(Text, {
|
|
161
|
+
style: {
|
|
162
|
+
color: colors.accent4,
|
|
163
|
+
letterSpacing: 1
|
|
164
|
+
},
|
|
165
|
+
children: (_quotation_fees_discountAmount = quotation.fees.discountAmount) === null || _quotation_fees_discountAmount === void 0 ? void 0 : _quotation_fees_discountAmount.toFixed(2)
|
|
166
|
+
})
|
|
167
|
+
]
|
|
172
168
|
}),
|
|
173
169
|
/*#__PURE__*/ _jsxs(View, {
|
|
174
170
|
style: {
|
|
@@ -235,42 +231,10 @@ var Pricing = function(param) {
|
|
|
235
231
|
]
|
|
236
232
|
}, fee.key);
|
|
237
233
|
}),
|
|
238
|
-
quotation.fees.extraCharges.length > 0 &&
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
return /*#__PURE__*/ _jsxs(View, {
|
|
243
|
-
style: {
|
|
244
|
-
justifyContent: 'space-between',
|
|
245
|
-
flexDirection: 'row',
|
|
246
|
-
rowGap: 8
|
|
247
|
-
},
|
|
248
|
-
children: [
|
|
249
|
-
/*#__PURE__*/ _jsxs(Text, {
|
|
250
|
-
style: {
|
|
251
|
-
paddingRight: 4,
|
|
252
|
-
letterSpacing: 1,
|
|
253
|
-
color: colors.primary3
|
|
254
|
-
},
|
|
255
|
-
children: [
|
|
256
|
-
t === null || t === void 0 ? void 0 : t.fees.extraCharge,
|
|
257
|
-
" - ",
|
|
258
|
-
charge.description
|
|
259
|
-
]
|
|
260
|
-
}),
|
|
261
|
-
/*#__PURE__*/ _jsx(Text, {
|
|
262
|
-
style: {
|
|
263
|
-
color: colors.primary3,
|
|
264
|
-
letterSpacing: 1
|
|
265
|
-
},
|
|
266
|
-
children: charge.amount.toFixed(2)
|
|
267
|
-
})
|
|
268
|
-
]
|
|
269
|
-
}, i);
|
|
270
|
-
})
|
|
271
|
-
}),
|
|
272
|
-
quotation.fees.couponCode !== null && quotation.fees.couponType === 'monthly' && /*#__PURE__*/ _jsx(_Fragment, {
|
|
273
|
-
children: /*#__PURE__*/ _jsxs(View, {
|
|
234
|
+
quotation.fees.extraCharges.length > 0 && quotation.fees.extraCharges.filter(function(charge) {
|
|
235
|
+
return charge.type === 'monthly';
|
|
236
|
+
}).map(function(charge, i) {
|
|
237
|
+
return /*#__PURE__*/ _jsxs(View, {
|
|
274
238
|
style: {
|
|
275
239
|
justifyContent: 'space-between',
|
|
276
240
|
flexDirection: 'row',
|
|
@@ -284,20 +248,48 @@ var Pricing = function(param) {
|
|
|
284
248
|
color: colors.primary3
|
|
285
249
|
},
|
|
286
250
|
children: [
|
|
287
|
-
t === null || t === void 0 ? void 0 : t.fees.
|
|
251
|
+
t === null || t === void 0 ? void 0 : t.fees.extraCharge,
|
|
288
252
|
" - ",
|
|
289
|
-
|
|
253
|
+
charge.description
|
|
290
254
|
]
|
|
291
255
|
}),
|
|
292
256
|
/*#__PURE__*/ _jsx(Text, {
|
|
293
257
|
style: {
|
|
294
|
-
color: colors.
|
|
258
|
+
color: colors.primary3,
|
|
295
259
|
letterSpacing: 1
|
|
296
260
|
},
|
|
297
|
-
children:
|
|
261
|
+
children: charge.amount.toFixed(2)
|
|
298
262
|
})
|
|
299
263
|
]
|
|
300
|
-
})
|
|
264
|
+
}, i);
|
|
265
|
+
}),
|
|
266
|
+
quotation.fees.couponCode !== null && quotation.fees.couponType === 'monthly' && /*#__PURE__*/ _jsxs(View, {
|
|
267
|
+
style: {
|
|
268
|
+
justifyContent: 'space-between',
|
|
269
|
+
flexDirection: 'row',
|
|
270
|
+
rowGap: 8
|
|
271
|
+
},
|
|
272
|
+
children: [
|
|
273
|
+
/*#__PURE__*/ _jsxs(Text, {
|
|
274
|
+
style: {
|
|
275
|
+
paddingRight: 4,
|
|
276
|
+
letterSpacing: 1,
|
|
277
|
+
color: colors.primary3
|
|
278
|
+
},
|
|
279
|
+
children: [
|
|
280
|
+
t === null || t === void 0 ? void 0 : t.fees.promo,
|
|
281
|
+
" - ",
|
|
282
|
+
quotation.fees.couponCode
|
|
283
|
+
]
|
|
284
|
+
}),
|
|
285
|
+
/*#__PURE__*/ _jsx(Text, {
|
|
286
|
+
style: {
|
|
287
|
+
color: colors.accent4,
|
|
288
|
+
letterSpacing: 1
|
|
289
|
+
},
|
|
290
|
+
children: (_quotation_fees_discountAmount1 = quotation.fees.discountAmount) === null || _quotation_fees_discountAmount1 === void 0 ? void 0 : _quotation_fees_discountAmount1.toFixed(2)
|
|
291
|
+
})
|
|
292
|
+
]
|
|
301
293
|
}),
|
|
302
294
|
/*#__PURE__*/ _jsxs(View, {
|
|
303
295
|
style: {
|
|
@@ -325,106 +317,104 @@ var Pricing = function(param) {
|
|
|
325
317
|
})
|
|
326
318
|
]
|
|
327
319
|
}),
|
|
328
|
-
bottomContent: /*#__PURE__*/
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
]
|
|
427
|
-
})
|
|
320
|
+
bottomContent: /*#__PURE__*/ _jsxs(View, {
|
|
321
|
+
style: {
|
|
322
|
+
rowGap: 16
|
|
323
|
+
},
|
|
324
|
+
children: [
|
|
325
|
+
/*#__PURE__*/ _jsx(Text, {
|
|
326
|
+
style: {
|
|
327
|
+
textTransform: 'uppercase',
|
|
328
|
+
fontSize: 12,
|
|
329
|
+
fontWeight: 'bold',
|
|
330
|
+
letterSpacing: 1
|
|
331
|
+
},
|
|
332
|
+
children: t === null || t === void 0 ? void 0 : t.fees.dueToday.title
|
|
333
|
+
}),
|
|
334
|
+
/*#__PURE__*/ _jsx(Text, {
|
|
335
|
+
style: {
|
|
336
|
+
color: colors.primary3,
|
|
337
|
+
letterSpacing: 1
|
|
338
|
+
},
|
|
339
|
+
children: t === null || t === void 0 ? void 0 : t.fees.dueToday.description
|
|
340
|
+
}),
|
|
341
|
+
/*#__PURE__*/ _jsxs(View, {
|
|
342
|
+
style: {
|
|
343
|
+
justifyContent: 'space-between',
|
|
344
|
+
flexDirection: 'row'
|
|
345
|
+
},
|
|
346
|
+
children: [
|
|
347
|
+
/*#__PURE__*/ _jsxs(Text, {
|
|
348
|
+
style: {
|
|
349
|
+
letterSpacing: 1,
|
|
350
|
+
color: colors.primary3
|
|
351
|
+
},
|
|
352
|
+
children: [
|
|
353
|
+
' ',
|
|
354
|
+
t === null || t === void 0 ? void 0 : t.fees.dueToday.subTotal
|
|
355
|
+
]
|
|
356
|
+
}),
|
|
357
|
+
/*#__PURE__*/ _jsx(Text, {
|
|
358
|
+
style: {
|
|
359
|
+
letterSpacing: 1,
|
|
360
|
+
color: colors.primary3
|
|
361
|
+
},
|
|
362
|
+
children: quotation.fees.amountBeforeTax.toFixed(2)
|
|
363
|
+
})
|
|
364
|
+
]
|
|
365
|
+
}),
|
|
366
|
+
/*#__PURE__*/ _jsxs(View, {
|
|
367
|
+
style: {
|
|
368
|
+
justifyContent: 'space-between',
|
|
369
|
+
flexDirection: 'row'
|
|
370
|
+
},
|
|
371
|
+
children: [
|
|
372
|
+
/*#__PURE__*/ _jsxs(Text, {
|
|
373
|
+
style: {
|
|
374
|
+
letterSpacing: 1,
|
|
375
|
+
color: colors.primary3
|
|
376
|
+
},
|
|
377
|
+
children: [
|
|
378
|
+
' ',
|
|
379
|
+
t === null || t === void 0 ? void 0 : t.fees.dueToday.serviceFee
|
|
380
|
+
]
|
|
381
|
+
}),
|
|
382
|
+
/*#__PURE__*/ _jsx(Text, {
|
|
383
|
+
style: {
|
|
384
|
+
letterSpacing: 1,
|
|
385
|
+
color: colors.primary3
|
|
386
|
+
},
|
|
387
|
+
children: quotation.fees.taxAmount.toFixed(2)
|
|
388
|
+
})
|
|
389
|
+
]
|
|
390
|
+
}),
|
|
391
|
+
/*#__PURE__*/ _jsxs(View, {
|
|
392
|
+
style: {
|
|
393
|
+
backgroundColor: colors.primary1,
|
|
394
|
+
borderTop: "1px solid ".concat(colors.primary1),
|
|
395
|
+
justifyContent: 'space-between',
|
|
396
|
+
flexDirection: 'row',
|
|
397
|
+
padding: 4
|
|
398
|
+
},
|
|
399
|
+
children: [
|
|
400
|
+
/*#__PURE__*/ _jsx(Text, {
|
|
401
|
+
style: {
|
|
402
|
+
letterSpacing: 1,
|
|
403
|
+
paddingRight: 4,
|
|
404
|
+
fontWeight: 'bold'
|
|
405
|
+
},
|
|
406
|
+
children: t === null || t === void 0 ? void 0 : t.fees.dueToday.grandTotal
|
|
407
|
+
}),
|
|
408
|
+
/*#__PURE__*/ _jsx(Text, {
|
|
409
|
+
style: {
|
|
410
|
+
letterSpacing: 1,
|
|
411
|
+
fontWeight: 'bold'
|
|
412
|
+
},
|
|
413
|
+
children: formatMoney(quotation.fees.amountAfterTax)
|
|
414
|
+
})
|
|
415
|
+
]
|
|
416
|
+
})
|
|
417
|
+
]
|
|
428
418
|
})
|
|
429
419
|
})
|
|
430
420
|
});
|
|
@@ -132,7 +132,7 @@ import Pricing from './Pricing.js';
|
|
|
132
132
|
import QuotationPdfPage from './QuotationPdfPage.js';
|
|
133
133
|
import TermsSection from './TermsSection.js';
|
|
134
134
|
import { useTranslations } from './translations.js';
|
|
135
|
-
export var generateQuotationPdf = function() {
|
|
135
|
+
export var generateQuotationPdf = /*#__PURE__*/ function() {
|
|
136
136
|
var _ref = _async_to_generator(function(param, fileName) {
|
|
137
137
|
var _param_locale, locale, quotation;
|
|
138
138
|
return _ts_generator(this, function(_state) {
|
|
@@ -184,7 +184,7 @@ import Details from './Details.js';
|
|
|
184
184
|
import SubscriptionAgreementPage from './SubscriptionAgreementPage.js';
|
|
185
185
|
import TermsOfUse from './TermsOfUse.js';
|
|
186
186
|
import { useTranslations } from './translations.js';
|
|
187
|
-
export var generateSubscriptionAgreementPdf = function() {
|
|
187
|
+
export var generateSubscriptionAgreementPdf = /*#__PURE__*/ function() {
|
|
188
188
|
var _ref = _async_to_generator(function(param, fileName) {
|
|
189
189
|
var _param_locale, locale, subscription;
|
|
190
190
|
return _ts_generator(this, function(_state) {
|
package/dist/utils.js
CHANGED
|
@@ -128,7 +128,7 @@ import ReactPDF from '@react-pdf/renderer';
|
|
|
128
128
|
* @param document React PDF Document element
|
|
129
129
|
* @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
130
|
* @returns PDF Buffer
|
|
131
|
-
*/ export var toPdf = function() {
|
|
131
|
+
*/ export var toPdf = /*#__PURE__*/ function() {
|
|
132
132
|
var _ref = _async_to_generator(function(document, fileName) {
|
|
133
133
|
var stream;
|
|
134
134
|
return _ts_generator(this, function(_state) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@driveflux/pdf",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.27",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -12,26 +12,26 @@
|
|
|
12
12
|
"dist"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@driveflux/db": "1.6.
|
|
15
|
+
"@driveflux/db": "1.6.5",
|
|
16
16
|
"@driveflux/env": "1.2.2",
|
|
17
17
|
"@driveflux/format-money": "5.2.1",
|
|
18
18
|
"@driveflux/time": "4.2.1",
|
|
19
19
|
"@react-pdf/renderer": "^3.4.4",
|
|
20
20
|
"date-fns": "^3.6.0",
|
|
21
|
-
"nodemon": "^3.1.
|
|
21
|
+
"nodemon": "^3.1.6",
|
|
22
22
|
"react": "^18.3.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@babel/preset-env": "^7.
|
|
25
|
+
"@babel/preset-env": "^7.25.4",
|
|
26
26
|
"@driveflux/fab": "2.2.1",
|
|
27
27
|
"@driveflux/tsconfig": "1.2.1",
|
|
28
|
-
"@swc/cli": "
|
|
29
|
-
"@swc/core": "1.7.
|
|
30
|
-
"@types/node": "^
|
|
31
|
-
"@types/react": "^18.3.
|
|
28
|
+
"@swc/cli": "0.4.1-nightly.20240914",
|
|
29
|
+
"@swc/core": "1.7.26",
|
|
30
|
+
"@types/node": "^22.5.5",
|
|
31
|
+
"@types/react": "^18.3.8",
|
|
32
32
|
"del-cli": "^5.1.0",
|
|
33
33
|
"react": "^18.3.1",
|
|
34
|
-
"typescript": "^5.
|
|
34
|
+
"typescript": "^5.6.2"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": "^18.3.1"
|
package/dist/cjs/package.json
DELETED