@shipengine/elements 1.7.0 → 1.8.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 (57) hide show
  1. package/index.cjs +15309 -14863
  2. package/index.js +15310 -14867
  3. package/package.json +3 -3
  4. package/src/components/collapsible-panel/collapsible-panel.styles.d.ts +2 -3
  5. package/src/components/display-term/display-term.d.ts +2 -2
  6. package/src/components/display-term/display-term.styles.d.ts +2 -0
  7. package/src/components/index.d.ts +6 -5
  8. package/src/components/templates/wallet-form/wallet-form.d.ts +3 -1
  9. package/src/components/templates/wallet-form/wallet-form.styles.d.ts +3 -0
  10. package/src/components/vat-form/index.d.ts +1 -0
  11. package/src/components/vat-form/vat-form-schema.d.ts +10 -0
  12. package/src/components/vat-form/vat-form.d.ts +6 -0
  13. package/src/components/vat-form/vat-form.styles.d.ts +9 -0
  14. package/src/elements/external-carriers/external-carriers.d.ts +124 -97
  15. package/src/elements/label-layout/label-layout-element.d.ts +101 -74
  16. package/src/elements/labels-grid/labels-grid.d.ts +101 -74
  17. package/src/elements/manage-funding/manage-funding-element.d.ts +101 -74
  18. package/src/elements/manage-warehouses/manage-warehouses.d.ts +101 -74
  19. package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +101 -74
  20. package/src/elements/purchase-label/purchase-label.d.ts +121 -77
  21. package/src/elements/shipengine-carriers/shipengine-carriers.d.ts +124 -97
  22. package/src/elements/shipments-grid/shipments-grid.d.ts +101 -74
  23. package/src/elements/theme-creator/theme-creator.d.ts +101 -74
  24. package/src/elements/unit-settings/unit-settings-element.d.ts +101 -74
  25. package/src/elements/vat-settings/index.d.ts +1 -0
  26. package/src/elements/vat-settings/vat-settings-element.d.ts +818 -0
  27. package/src/elements/view-shipment/view-shipment.d.ts +111 -83
  28. package/src/elements/void-label/components/message/message.d.ts +3 -2
  29. package/src/elements/void-label/void-label.d.ts +128 -92
  30. package/src/elements/wallet-history/wallet-history-element.d.ts +101 -74
  31. package/src/features/index.d.ts +5 -4
  32. package/src/features/unit-settings/unit-settings.d.ts +2 -2
  33. package/src/features/unit-settings/use-unit-settings.d.ts +1 -1
  34. package/src/features/vat-settings/index.d.ts +2 -0
  35. package/src/features/vat-settings/use-vat-settings.d.ts +8 -0
  36. package/src/features/vat-settings/vat-settings.d.ts +9 -0
  37. package/src/features/vat-settings/vat-settings.styles.d.ts +29 -0
  38. package/src/hooks/index.d.ts +3 -3
  39. package/src/locales/en/index.d.ts +101 -74
  40. package/src/types/patch.d.ts +1 -12
  41. package/src/utilities/feature-flags.d.ts +10 -0
  42. package/src/utilities/shipengine/index.d.ts +1 -0
  43. package/src/utilities/shipengine/shipment.d.ts +11 -0
  44. package/src/workflows/account-settings/account-settings.d.ts +104 -79
  45. package/src/workflows/connect-carrier/connect-carrier.d.ts +101 -74
  46. package/src/workflows/manage-wallet-workflow/manage-wallet-workflow.d.ts +106 -78
  47. package/src/workflows/onboarding/components/account-registration-form/account-registration-form-schema.d.ts +3 -0
  48. package/src/workflows/onboarding/components/funding-and-carrier-connection-step/funding-and-carrier-connection-step.d.ts +3 -1
  49. package/src/workflows/onboarding/components/funding-and-carrier-connection-step/use-funding-and-carrier-connection-step.d.ts +2 -2
  50. package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +2 -2
  51. package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.d.ts +3 -4
  52. package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.styles.d.ts +6 -7
  53. package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.d.ts +3 -4
  54. package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.styles.d.ts +3 -0
  55. package/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts +7 -7
  56. package/src/workflows/onboarding/onboarding.d.ts +101 -74
  57. package/vite.config.d.ts +1 -1
@@ -36,6 +36,7 @@ export declare const Element: ({ resources, ...props }: object & {
36
36
  resultMessages: {
37
37
  approved: string;
38
38
  rejected: string;
39
+ dpdwallet: string;
39
40
  };
40
41
  refund_process: string;
41
42
  refund_rules: string;
@@ -77,6 +78,38 @@ export declare const Element: ({ resources, ...props }: object & {
77
78
  };
78
79
  noLabels: string;
79
80
  };
81
+ "vat-settings": {
82
+ addNew: string;
83
+ vatNumber: string;
84
+ vatRegistrationTooltip: string;
85
+ vatFormText: string;
86
+ vatFormRegisterLater: string;
87
+ vatNumberInputHint: string;
88
+ vatNumberInputPlaceholder: string;
89
+ verifiedVat: string;
90
+ vatFormErrors: {
91
+ invalidFieldValue: string;
92
+ verificationFailure: string;
93
+ forbidden: string;
94
+ connectionNotSupported: string;
95
+ genericTitle: string;
96
+ genericText: string;
97
+ };
98
+ };
99
+ "shipengine-carriers": {
100
+ title: string;
101
+ headers: {
102
+ accountCarriers: string;
103
+ carriers: string;
104
+ settings: string;
105
+ };
106
+ actions: {
107
+ status: {
108
+ connected: string;
109
+ notConnected: string;
110
+ };
111
+ };
112
+ };
80
113
  "register-wallet": {
81
114
  sections: {
82
115
  setup: {
@@ -92,6 +125,9 @@ export declare const Element: ({ resources, ...props }: object & {
92
125
  addressSubTitle: string;
93
126
  info: string;
94
127
  };
128
+ vatSettings: {
129
+ title: string;
130
+ };
95
131
  carriers: {
96
132
  title: string;
97
133
  subtitle: string;
@@ -218,6 +254,7 @@ export declare const Element: ({ resources, ...props }: object & {
218
254
  rateSavings: string;
219
255
  upsGroundSaverTermsAcknowledgement: string;
220
256
  dhlExpressTermsAcknowledgement: string;
257
+ noRateService: string;
221
258
  };
222
259
  requirements: {
223
260
  noWarehouse: string;
@@ -284,6 +321,8 @@ export declare const Element: ({ resources, ...props }: object & {
284
321
  action: string;
285
322
  };
286
323
  termsAndAgreementLinkText: {
324
+ shipEngineToS: string;
325
+ auctanePrivacyPolicy: string;
287
326
  aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
288
327
  "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
289
328
  "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
@@ -308,42 +347,6 @@ export declare const Element: ({ resources, ...props }: object & {
308
347
  UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
309
348
  };
310
349
  };
311
- "manage-defaults": {
312
- label: {
313
- title: string;
314
- letter: {
315
- title: string;
316
- description: string;
317
- };
318
- purchase: {
319
- title: string;
320
- description: string;
321
- };
322
- thermal: {
323
- title: string;
324
- description: string;
325
- };
326
- };
327
- status: {
328
- saving: string;
329
- saved: string;
330
- savingFailed: string;
331
- };
332
- units: {
333
- title: string;
334
- dimensions: {
335
- title: string;
336
- standard: string;
337
- metric: string;
338
- };
339
- weight: {
340
- title: string;
341
- standard: string;
342
- g: string;
343
- kg: string;
344
- };
345
- };
346
- };
347
350
  "manage-warehouses": {
348
351
  title: string;
349
352
  addNew: string;
@@ -411,6 +414,42 @@ export declare const Element: ({ resources, ...props }: object & {
411
414
  currentBalance: string;
412
415
  maximumBalanceAmount: string;
413
416
  };
417
+ "manage-defaults": {
418
+ label: {
419
+ title: string;
420
+ letter: {
421
+ title: string;
422
+ description: string;
423
+ };
424
+ purchase: {
425
+ title: string;
426
+ description: string;
427
+ };
428
+ thermal: {
429
+ title: string;
430
+ description: string;
431
+ };
432
+ };
433
+ status: {
434
+ saving: string;
435
+ saved: string;
436
+ savingFailed: string;
437
+ };
438
+ units: {
439
+ title: string;
440
+ dimensions: {
441
+ title: string;
442
+ standard: string;
443
+ metric: string;
444
+ };
445
+ weight: {
446
+ title: string;
447
+ standard: string;
448
+ g: string;
449
+ kg: string;
450
+ };
451
+ };
452
+ };
414
453
  "list-shipments": {
415
454
  title: string;
416
455
  headers: {
@@ -441,18 +480,31 @@ export declare const Element: ({ resources, ...props }: object & {
441
480
  };
442
481
  };
443
482
  };
444
- "shipengine-carriers": {
445
- title: string;
446
- headers: {
447
- accountCarriers: string;
448
- carriers: string;
449
- settings: string;
450
- };
483
+ "connect-carrier": {
451
484
  actions: {
452
- status: {
453
- connected: string;
454
- notConnected: string;
455
- };
485
+ cancel: string;
486
+ carrierSettings: string;
487
+ connectCarriers: string;
488
+ disconnect: string;
489
+ disconnectCarrier: string;
490
+ };
491
+ noCarriersDescription: string;
492
+ registrationForm: {
493
+ error: string;
494
+ title: string;
495
+ betaWarning: string;
496
+ };
497
+ search: string;
498
+ settingsModal: {
499
+ closeDialog: string;
500
+ header: string;
501
+ };
502
+ status: {
503
+ connected: string;
504
+ };
505
+ disconnectDropdown: {
506
+ toastTitle: string;
507
+ toastBody: string;
456
508
  };
457
509
  };
458
510
  common: {
@@ -639,6 +691,7 @@ export declare const Element: ({ resources, ...props }: object & {
639
691
  accountSettings: string;
640
692
  carrier: string;
641
693
  carriers: string;
694
+ carrierServices: string;
642
695
  connectCarrierForm: string;
643
696
  connectingCarriers: string;
644
697
  creatingFundingSource: string;
@@ -741,33 +794,6 @@ export declare const Element: ({ resources, ...props }: object & {
741
794
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
742
795
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
743
796
  };
744
- "connect-carrier": {
745
- actions: {
746
- cancel: string;
747
- carrierSettings: string;
748
- connectCarriers: string;
749
- disconnect: string;
750
- disconnectCarrier: string;
751
- };
752
- noCarriersDescription: string;
753
- registrationForm: {
754
- error: string;
755
- title: string;
756
- betaWarning: string;
757
- };
758
- search: string;
759
- settingsModal: {
760
- closeDialog: string;
761
- header: string;
762
- };
763
- status: {
764
- connected: string;
765
- };
766
- disconnectDropdown: {
767
- toastTitle: string;
768
- toastBody: string;
769
- };
770
- };
771
797
  "account-settings": {
772
798
  messages: {
773
799
  noFundingSources: string;
@@ -783,6 +809,7 @@ export declare const Element: ({ resources, ...props }: object & {
783
809
  externalCarriers: string;
784
810
  labelLayout: string;
785
811
  unitSettings: string;
812
+ vatSettings: string;
786
813
  };
787
814
  };
788
815
  };
@@ -54,6 +54,7 @@ export declare const Element: ({ resources, ...props }: object & {
54
54
  resultMessages: {
55
55
  approved: string;
56
56
  rejected: string;
57
+ dpdwallet: string;
57
58
  };
58
59
  refund_process: string;
59
60
  refund_rules: string;
@@ -95,6 +96,38 @@ export declare const Element: ({ resources, ...props }: object & {
95
96
  };
96
97
  noLabels: string;
97
98
  };
99
+ "vat-settings": {
100
+ addNew: string;
101
+ vatNumber: string;
102
+ vatRegistrationTooltip: string;
103
+ vatFormText: string;
104
+ vatFormRegisterLater: string;
105
+ vatNumberInputHint: string;
106
+ vatNumberInputPlaceholder: string;
107
+ verifiedVat: string;
108
+ vatFormErrors: {
109
+ invalidFieldValue: string;
110
+ verificationFailure: string;
111
+ forbidden: string;
112
+ connectionNotSupported: string;
113
+ genericTitle: string;
114
+ genericText: string;
115
+ };
116
+ };
117
+ "shipengine-carriers": {
118
+ title: string;
119
+ headers: {
120
+ accountCarriers: string;
121
+ carriers: string;
122
+ settings: string;
123
+ };
124
+ actions: {
125
+ status: {
126
+ connected: string;
127
+ notConnected: string;
128
+ };
129
+ };
130
+ };
98
131
  "register-wallet": {
99
132
  sections: {
100
133
  setup: {
@@ -110,6 +143,9 @@ export declare const Element: ({ resources, ...props }: object & {
110
143
  addressSubTitle: string;
111
144
  info: string;
112
145
  };
146
+ vatSettings: {
147
+ title: string;
148
+ };
113
149
  carriers: {
114
150
  title: string;
115
151
  subtitle: string;
@@ -236,6 +272,7 @@ export declare const Element: ({ resources, ...props }: object & {
236
272
  rateSavings: string;
237
273
  upsGroundSaverTermsAcknowledgement: string;
238
274
  dhlExpressTermsAcknowledgement: string;
275
+ noRateService: string;
239
276
  };
240
277
  requirements: {
241
278
  noWarehouse: string;
@@ -302,6 +339,8 @@ export declare const Element: ({ resources, ...props }: object & {
302
339
  action: string;
303
340
  };
304
341
  termsAndAgreementLinkText: {
342
+ shipEngineToS: string;
343
+ auctanePrivacyPolicy: string;
305
344
  aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
306
345
  "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
307
346
  "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
@@ -326,42 +365,6 @@ export declare const Element: ({ resources, ...props }: object & {
326
365
  UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
327
366
  };
328
367
  };
329
- "manage-defaults": {
330
- label: {
331
- title: string;
332
- letter: {
333
- title: string;
334
- description: string;
335
- };
336
- purchase: {
337
- title: string;
338
- description: string;
339
- };
340
- thermal: {
341
- title: string;
342
- description: string;
343
- };
344
- };
345
- status: {
346
- saving: string;
347
- saved: string;
348
- savingFailed: string;
349
- };
350
- units: {
351
- title: string;
352
- dimensions: {
353
- title: string;
354
- standard: string;
355
- metric: string;
356
- };
357
- weight: {
358
- title: string;
359
- standard: string;
360
- g: string;
361
- kg: string;
362
- };
363
- };
364
- };
365
368
  "manage-warehouses": {
366
369
  title: string;
367
370
  addNew: string;
@@ -429,6 +432,42 @@ export declare const Element: ({ resources, ...props }: object & {
429
432
  currentBalance: string;
430
433
  maximumBalanceAmount: string;
431
434
  };
435
+ "manage-defaults": {
436
+ label: {
437
+ title: string;
438
+ letter: {
439
+ title: string;
440
+ description: string;
441
+ };
442
+ purchase: {
443
+ title: string;
444
+ description: string;
445
+ };
446
+ thermal: {
447
+ title: string;
448
+ description: string;
449
+ };
450
+ };
451
+ status: {
452
+ saving: string;
453
+ saved: string;
454
+ savingFailed: string;
455
+ };
456
+ units: {
457
+ title: string;
458
+ dimensions: {
459
+ title: string;
460
+ standard: string;
461
+ metric: string;
462
+ };
463
+ weight: {
464
+ title: string;
465
+ standard: string;
466
+ g: string;
467
+ kg: string;
468
+ };
469
+ };
470
+ };
432
471
  "list-shipments": {
433
472
  title: string;
434
473
  headers: {
@@ -459,18 +498,31 @@ export declare const Element: ({ resources, ...props }: object & {
459
498
  };
460
499
  };
461
500
  };
462
- "shipengine-carriers": {
463
- title: string;
464
- headers: {
465
- accountCarriers: string;
466
- carriers: string;
467
- settings: string;
468
- };
501
+ "connect-carrier": {
469
502
  actions: {
470
- status: {
471
- connected: string;
472
- notConnected: string;
473
- };
503
+ cancel: string;
504
+ carrierSettings: string;
505
+ connectCarriers: string;
506
+ disconnect: string;
507
+ disconnectCarrier: string;
508
+ };
509
+ noCarriersDescription: string;
510
+ registrationForm: {
511
+ error: string;
512
+ title: string;
513
+ betaWarning: string;
514
+ };
515
+ search: string;
516
+ settingsModal: {
517
+ closeDialog: string;
518
+ header: string;
519
+ };
520
+ status: {
521
+ connected: string;
522
+ };
523
+ disconnectDropdown: {
524
+ toastTitle: string;
525
+ toastBody: string;
474
526
  };
475
527
  };
476
528
  common: {
@@ -657,6 +709,7 @@ export declare const Element: ({ resources, ...props }: object & {
657
709
  accountSettings: string;
658
710
  carrier: string;
659
711
  carriers: string;
712
+ carrierServices: string;
660
713
  connectCarrierForm: string;
661
714
  connectingCarriers: string;
662
715
  creatingFundingSource: string;
@@ -759,33 +812,6 @@ export declare const Element: ({ resources, ...props }: object & {
759
812
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
760
813
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
761
814
  };
762
- "connect-carrier": {
763
- actions: {
764
- cancel: string;
765
- carrierSettings: string;
766
- connectCarriers: string;
767
- disconnect: string;
768
- disconnectCarrier: string;
769
- };
770
- noCarriersDescription: string;
771
- registrationForm: {
772
- error: string;
773
- title: string;
774
- betaWarning: string;
775
- };
776
- search: string;
777
- settingsModal: {
778
- closeDialog: string;
779
- header: string;
780
- };
781
- status: {
782
- connected: string;
783
- };
784
- disconnectDropdown: {
785
- toastTitle: string;
786
- toastBody: string;
787
- };
788
- };
789
815
  "account-settings": {
790
816
  messages: {
791
817
  noFundingSources: string;
@@ -801,6 +827,7 @@ export declare const Element: ({ resources, ...props }: object & {
801
827
  externalCarriers: string;
802
828
  labelLayout: string;
803
829
  unitSettings: string;
830
+ vatSettings: string;
804
831
  };
805
832
  };
806
833
  };