@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
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { ShipEngineCarriersFeatures } from "../../features";
2
+ import { ShipEngineCarriersFeatures, VatSettingsFeatures } from "../../features";
3
3
  import { ConnectCarrier } from "../connect-carrier";
4
- export type AccountSettingsFeatures = ShipEngineCarriersFeatures & ConnectCarrier.ConnectCarrierFeatures;
4
+ export type AccountSettingsFeatures = ShipEngineCarriersFeatures & ConnectCarrier.ConnectCarrierFeatures & VatSettingsFeatures;
5
5
  /**
6
6
  * # Account Settings Component Props
7
7
  *
@@ -76,6 +76,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
76
76
  resultMessages: {
77
77
  approved: string;
78
78
  rejected: string;
79
+ dpdwallet: string;
79
80
  };
80
81
  refund_process: string;
81
82
  refund_rules: string;
@@ -117,6 +118,38 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
117
118
  };
118
119
  noLabels: string;
119
120
  };
121
+ "vat-settings": {
122
+ addNew: string;
123
+ vatNumber: string;
124
+ vatRegistrationTooltip: string;
125
+ vatFormText: string;
126
+ vatFormRegisterLater: string;
127
+ vatNumberInputHint: string;
128
+ vatNumberInputPlaceholder: string;
129
+ verifiedVat: string;
130
+ vatFormErrors: {
131
+ invalidFieldValue: string;
132
+ verificationFailure: string;
133
+ forbidden: string;
134
+ connectionNotSupported: string;
135
+ genericTitle: string;
136
+ genericText: string;
137
+ };
138
+ };
139
+ "shipengine-carriers": {
140
+ title: string;
141
+ headers: {
142
+ accountCarriers: string;
143
+ carriers: string;
144
+ settings: string;
145
+ };
146
+ actions: {
147
+ status: {
148
+ connected: string;
149
+ notConnected: string;
150
+ };
151
+ };
152
+ };
120
153
  "register-wallet": {
121
154
  sections: {
122
155
  setup: {
@@ -132,6 +165,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
132
165
  addressSubTitle: string;
133
166
  info: string;
134
167
  };
168
+ vatSettings: {
169
+ title: string;
170
+ };
135
171
  carriers: {
136
172
  title: string;
137
173
  subtitle: string;
@@ -195,9 +231,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
195
231
  customsItemsRequired: string;
196
232
  invalidAddress: string;
197
233
  noRates: string;
198
- salesOrderNotLoaded: string; /**
199
- * Feature flags controlling operation of various sub components.
200
- */
234
+ salesOrderNotLoaded: string;
201
235
  unsupportedAddress: string;
202
236
  saveRateFailedMessage: string;
203
237
  saveRateFailedTitle: string;
@@ -260,6 +294,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
260
294
  rateSavings: string;
261
295
  upsGroundSaverTermsAcknowledgement: string;
262
296
  dhlExpressTermsAcknowledgement: string;
297
+ noRateService: string;
263
298
  };
264
299
  requirements: {
265
300
  noWarehouse: string;
@@ -326,6 +361,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
326
361
  action: string;
327
362
  };
328
363
  termsAndAgreementLinkText: {
364
+ shipEngineToS: string;
365
+ auctanePrivacyPolicy: string;
329
366
  aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
330
367
  "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
331
368
  "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
@@ -350,42 +387,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
350
387
  UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
351
388
  };
352
389
  };
353
- "manage-defaults": {
354
- label: {
355
- title: string;
356
- letter: {
357
- title: string;
358
- description: string;
359
- };
360
- purchase: {
361
- title: string;
362
- description: string;
363
- };
364
- thermal: {
365
- title: string;
366
- description: string;
367
- };
368
- };
369
- status: {
370
- saving: string;
371
- saved: string;
372
- savingFailed: string;
373
- };
374
- units: {
375
- title: string;
376
- dimensions: {
377
- title: string;
378
- standard: string;
379
- metric: string;
380
- };
381
- weight: {
382
- title: string;
383
- standard: string;
384
- g: string;
385
- kg: string;
386
- };
387
- };
388
- };
389
390
  "manage-warehouses": {
390
391
  title: string;
391
392
  addNew: string;
@@ -453,6 +454,42 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
453
454
  currentBalance: string;
454
455
  maximumBalanceAmount: string;
455
456
  };
457
+ "manage-defaults": {
458
+ label: {
459
+ title: string;
460
+ letter: {
461
+ title: string;
462
+ description: string;
463
+ };
464
+ purchase: {
465
+ title: string;
466
+ description: string;
467
+ };
468
+ thermal: {
469
+ title: string;
470
+ description: string;
471
+ };
472
+ };
473
+ status: {
474
+ saving: string;
475
+ saved: string;
476
+ savingFailed: string;
477
+ };
478
+ units: {
479
+ title: string;
480
+ dimensions: {
481
+ title: string;
482
+ standard: string;
483
+ metric: string;
484
+ };
485
+ weight: {
486
+ title: string;
487
+ standard: string;
488
+ g: string;
489
+ kg: string;
490
+ };
491
+ };
492
+ };
456
493
  "list-shipments": {
457
494
  title: string;
458
495
  headers: {
@@ -483,18 +520,31 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
483
520
  };
484
521
  };
485
522
  };
486
- "shipengine-carriers": {
487
- title: string;
488
- headers: {
489
- accountCarriers: string;
490
- carriers: string;
491
- settings: string;
492
- };
523
+ "connect-carrier": {
493
524
  actions: {
494
- status: {
495
- connected: string;
496
- notConnected: string;
497
- };
525
+ cancel: string;
526
+ carrierSettings: string;
527
+ connectCarriers: string;
528
+ disconnect: string;
529
+ disconnectCarrier: string;
530
+ };
531
+ noCarriersDescription: string;
532
+ registrationForm: {
533
+ error: string;
534
+ title: string;
535
+ betaWarning: string;
536
+ };
537
+ search: string;
538
+ settingsModal: {
539
+ closeDialog: string;
540
+ header: string;
541
+ };
542
+ status: {
543
+ connected: string;
544
+ };
545
+ disconnectDropdown: {
546
+ toastTitle: string;
547
+ toastBody: string;
498
548
  };
499
549
  };
500
550
  common: {
@@ -681,6 +731,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
681
731
  accountSettings: string;
682
732
  carrier: string;
683
733
  carriers: string;
734
+ carrierServices: string;
684
735
  connectCarrierForm: string;
685
736
  connectingCarriers: string;
686
737
  creatingFundingSource: string;
@@ -783,33 +834,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
783
834
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
784
835
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
785
836
  };
786
- "connect-carrier": {
787
- actions: {
788
- cancel: string;
789
- carrierSettings: string;
790
- connectCarriers: string;
791
- disconnect: string;
792
- disconnectCarrier: string;
793
- };
794
- noCarriersDescription: string;
795
- registrationForm: {
796
- error: string;
797
- title: string;
798
- betaWarning: string;
799
- };
800
- search: string;
801
- settingsModal: {
802
- closeDialog: string;
803
- header: string;
804
- };
805
- status: {
806
- connected: string;
807
- };
808
- disconnectDropdown: {
809
- toastTitle: string;
810
- toastBody: string;
811
- };
812
- };
813
837
  "account-settings": {
814
838
  messages: {
815
839
  noFundingSources: string;
@@ -825,6 +849,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
825
849
  externalCarriers: string;
826
850
  labelLayout: string;
827
851
  unitSettings: string;
852
+ vatSettings: string;
828
853
  };
829
854
  };
830
855
  };
@@ -73,6 +73,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
73
73
  resultMessages: {
74
74
  approved: string;
75
75
  rejected: string;
76
+ dpdwallet: string;
76
77
  };
77
78
  refund_process: string;
78
79
  refund_rules: string;
@@ -114,6 +115,38 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
114
115
  };
115
116
  noLabels: string;
116
117
  };
118
+ "vat-settings": {
119
+ addNew: string;
120
+ vatNumber: string;
121
+ vatRegistrationTooltip: string;
122
+ vatFormText: string;
123
+ vatFormRegisterLater: string;
124
+ vatNumberInputHint: string;
125
+ vatNumberInputPlaceholder: string;
126
+ verifiedVat: string;
127
+ vatFormErrors: {
128
+ invalidFieldValue: string;
129
+ verificationFailure: string;
130
+ forbidden: string;
131
+ connectionNotSupported: string;
132
+ genericTitle: string;
133
+ genericText: string;
134
+ };
135
+ };
136
+ "shipengine-carriers": {
137
+ title: string;
138
+ headers: {
139
+ accountCarriers: string;
140
+ carriers: string;
141
+ settings: string;
142
+ };
143
+ actions: {
144
+ status: {
145
+ connected: string;
146
+ notConnected: string;
147
+ };
148
+ };
149
+ };
117
150
  "register-wallet": {
118
151
  sections: {
119
152
  setup: {
@@ -129,6 +162,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
129
162
  addressSubTitle: string;
130
163
  info: string;
131
164
  };
165
+ vatSettings: {
166
+ title: string;
167
+ };
132
168
  carriers: {
133
169
  title: string;
134
170
  subtitle: string;
@@ -255,6 +291,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
255
291
  rateSavings: string;
256
292
  upsGroundSaverTermsAcknowledgement: string;
257
293
  dhlExpressTermsAcknowledgement: string;
294
+ noRateService: string;
258
295
  };
259
296
  requirements: {
260
297
  noWarehouse: string;
@@ -321,6 +358,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
321
358
  action: string;
322
359
  };
323
360
  termsAndAgreementLinkText: {
361
+ shipEngineToS: string;
362
+ auctanePrivacyPolicy: string;
324
363
  aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
325
364
  "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
326
365
  "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
@@ -345,42 +384,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
345
384
  UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
346
385
  };
347
386
  };
348
- "manage-defaults": {
349
- label: {
350
- title: string;
351
- letter: {
352
- title: string;
353
- description: string;
354
- };
355
- purchase: {
356
- title: string;
357
- description: string;
358
- };
359
- thermal: {
360
- title: string;
361
- description: string;
362
- };
363
- };
364
- status: {
365
- saving: string;
366
- saved: string;
367
- savingFailed: string;
368
- };
369
- units: {
370
- title: string;
371
- dimensions: {
372
- title: string;
373
- standard: string;
374
- metric: string;
375
- };
376
- weight: {
377
- title: string;
378
- standard: string;
379
- g: string;
380
- kg: string;
381
- };
382
- };
383
- };
384
387
  "manage-warehouses": {
385
388
  title: string;
386
389
  addNew: string;
@@ -448,6 +451,42 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
448
451
  currentBalance: string;
449
452
  maximumBalanceAmount: string;
450
453
  };
454
+ "manage-defaults": {
455
+ label: {
456
+ title: string;
457
+ letter: {
458
+ title: string;
459
+ description: string;
460
+ };
461
+ purchase: {
462
+ title: string;
463
+ description: string;
464
+ };
465
+ thermal: {
466
+ title: string;
467
+ description: string;
468
+ };
469
+ };
470
+ status: {
471
+ saving: string;
472
+ saved: string;
473
+ savingFailed: string;
474
+ };
475
+ units: {
476
+ title: string;
477
+ dimensions: {
478
+ title: string;
479
+ standard: string;
480
+ metric: string;
481
+ };
482
+ weight: {
483
+ title: string;
484
+ standard: string;
485
+ g: string;
486
+ kg: string;
487
+ };
488
+ };
489
+ };
451
490
  "list-shipments": {
452
491
  title: string;
453
492
  headers: {
@@ -478,18 +517,31 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
478
517
  };
479
518
  };
480
519
  };
481
- "shipengine-carriers": {
482
- title: string;
483
- headers: {
484
- accountCarriers: string;
485
- carriers: string;
486
- settings: string;
487
- };
520
+ "connect-carrier": {
488
521
  actions: {
489
- status: {
490
- connected: string;
491
- notConnected: string;
492
- };
522
+ cancel: string;
523
+ carrierSettings: string;
524
+ connectCarriers: string;
525
+ disconnect: string;
526
+ disconnectCarrier: string;
527
+ };
528
+ noCarriersDescription: string;
529
+ registrationForm: {
530
+ error: string;
531
+ title: string;
532
+ betaWarning: string;
533
+ };
534
+ search: string;
535
+ settingsModal: {
536
+ closeDialog: string;
537
+ header: string;
538
+ };
539
+ status: {
540
+ connected: string;
541
+ };
542
+ disconnectDropdown: {
543
+ toastTitle: string;
544
+ toastBody: string;
493
545
  };
494
546
  };
495
547
  common: {
@@ -699,6 +751,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
699
751
  accountSettings: string;
700
752
  carrier: string;
701
753
  carriers: string;
754
+ carrierServices: string;
702
755
  connectCarrierForm: string;
703
756
  connectingCarriers: string;
704
757
  creatingFundingSource: string;
@@ -801,33 +854,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
801
854
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
802
855
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
803
856
  };
804
- "connect-carrier": {
805
- actions: {
806
- cancel: string;
807
- carrierSettings: string;
808
- connectCarriers: string;
809
- disconnect: string;
810
- disconnectCarrier: string;
811
- };
812
- noCarriersDescription: string;
813
- registrationForm: {
814
- error: string;
815
- title: string;
816
- betaWarning: string;
817
- };
818
- search: string;
819
- settingsModal: {
820
- closeDialog: string;
821
- header: string;
822
- };
823
- status: {
824
- connected: string;
825
- };
826
- disconnectDropdown: {
827
- toastTitle: string;
828
- toastBody: string;
829
- };
830
- };
831
857
  "account-settings": {
832
858
  messages: {
833
859
  noFundingSources: string;
@@ -843,6 +869,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
843
869
  externalCarriers: string;
844
870
  labelLayout: string;
845
871
  unitSettings: string;
872
+ vatSettings: string;
846
873
  };
847
874
  };
848
875
  };