@shipengine/elements 2.9.1 → 2.11.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 (144) hide show
  1. package/actions-menu.js +5 -5
  2. package/carrier.js +1 -1
  3. package/components.js +1 -1
  4. package/elements.js +1 -1
  5. package/hooks.js +1 -1
  6. package/index.js +1 -1
  7. package/package.json +3 -3
  8. package/shipment.js +1 -1
  9. package/src/components/add-funds-form/add-funds-form.d.ts +2 -1
  10. package/src/components/enable-insurance-banner/enable-insurance-banner.d.ts +8 -0
  11. package/src/components/enable-insurance-banner/enable-insurance-banner.styles.d.ts +37 -0
  12. package/src/components/enable-insurance-banner/index.d.ts +1 -0
  13. package/src/components/field/rate-card/insurance-popover/index.d.ts +1 -0
  14. package/src/components/field/rate-card/insurance-popover/insurance-popover.d.ts +11 -0
  15. package/src/components/field/rate-card/insurance-popover/insurance-popover.styles.d.ts +14 -0
  16. package/src/components/field/{rate-card → rate-select/rate-card}/cost-breakdown/cost-breakdown.styles.d.ts +0 -1
  17. package/src/components/field/rate-select/rate-card/rate-card.d.ts +16 -0
  18. package/src/components/field/rate-select/rate-card/rate-card.styles.d.ts +30 -0
  19. package/src/components/field/rate-select/rate-select.d.ts +1 -0
  20. package/src/components/fund-and-purchase/fund-and-purchase.d.ts +2 -1
  21. package/src/components/service-card/service-card.d.ts +36 -0
  22. package/src/components/service-card/service-card.styles.d.ts +68 -0
  23. package/src/components/service-point-display/service-point-display.d.ts +1 -0
  24. package/src/components/service-points/service-points.d.ts +3 -2
  25. package/src/components/service-points/service-points.styles.d.ts +6 -0
  26. package/src/components/templates/index.d.ts +2 -1
  27. package/src/components/templates/label-display/index.d.ts +1 -0
  28. package/src/components/templates/label-display/label-card.d.ts +17 -0
  29. package/src/components/templates/{label/label.styles.d.ts → label-display/label-card.styles.d.ts} +8 -2
  30. package/src/components/templates/label-display/label-display.d.ts +15 -0
  31. package/src/components/templates/rate-form/rate-form.d.ts +3 -1
  32. package/src/components/templates/rate-form/rate-form.styles.d.ts +3 -0
  33. package/src/components/templates/rate-form/rate-view.d.ts +38 -0
  34. package/src/components/templates/register-funding-source-insurance-form/index.d.ts +2 -0
  35. package/src/components/templates/register-funding-source-insurance-form/register-funding-source-insurance-form-shema.d.ts +10 -0
  36. package/src/components/templates/register-funding-source-insurance-form/register-funding-source-insurance-form.d.ts +15 -0
  37. package/src/components/templates/register-funding-source-insurance-form/register-funding-source-insurance-from.styles.d.ts +14 -0
  38. package/src/components/templates/shipment/shipment.d.ts +1 -1
  39. package/src/components/templates/shipment-form/sections/customs-forms/components/index.d.ts +1 -0
  40. package/src/components/templates/shipment-form/sections/customs-forms/components/windsor-framework/windsor-framework.d.ts +7 -0
  41. package/src/components/templates/shipment-form/sections/customs-forms/components/windsor-framework/windsor-framework.styles.d.ts +20 -0
  42. package/src/components/templates/shipment-form/sections/customs-forms/customs-forms.d.ts +2 -1
  43. package/src/components/templates/shipment-form/shipment-form.d.ts +1 -1
  44. package/src/components/templates/shipment-form/shipment-form.styles.d.ts +20 -0
  45. package/src/components/templates/shipment-form/shipment-schema.d.ts +201 -13
  46. package/src/components/templates/wallet-form/wallet-form.d.ts +2 -1
  47. package/src/elements/index.d.ts +2 -2
  48. package/src/elements/labels-grid/hooks/use-labels-grid.d.ts +5 -1
  49. package/src/elements/labels-grid/labels-grid.d.ts +92 -36
  50. package/src/elements/manage-carriers/manage-carriers.d.ts +59 -6
  51. package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +81 -27
  52. package/src/elements/manage-funding/manage-funding-element.d.ts +59 -6
  53. package/src/elements/manage-warehouses/manage-warehouses.d.ts +59 -6
  54. package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +59 -6
  55. package/src/elements/purchase-label/hooks/use-rates-form.d.ts +2 -0
  56. package/src/elements/purchase-label/hooks/use-shipment-form.d.ts +1 -1
  57. package/src/elements/purchase-label/purchase-label.d.ts +83 -22
  58. package/src/elements/select-label-layout/index.d.ts +1 -0
  59. package/src/elements/{label-layout/label-layout-element.d.ts → select-label-layout/select-label-layout-element.d.ts} +59 -6
  60. package/src/elements/shipment-summary/shipment-summary.d.ts +102 -27
  61. package/src/elements/shipments-grid/hooks/use-shipments-grid.d.ts +4 -0
  62. package/src/elements/shipments-grid/shipments-grid.d.ts +61 -13
  63. package/src/elements/theme-creator/theme-creator.d.ts +59 -6
  64. package/src/elements/transaction-history/transaction-history-element.d.ts +59 -6
  65. package/src/elements/unit-settings/unit-settings-element.d.ts +59 -6
  66. package/src/elements/vat-settings/vat-settings-element.d.ts +59 -6
  67. package/src/elements/void-label/void-label.d.ts +73 -57
  68. package/src/features/index.d.ts +1 -1
  69. package/src/features/manage-carriers/hooks/use-carrier-metadata.d.ts +2 -2
  70. package/src/features/manage-carriers/hooks/use-list-funding-source-carriers.d.ts +3 -1
  71. package/src/features/manage-carriers/manage-insurance-provider-row/index.d.ts +1 -0
  72. package/src/features/manage-carriers/manage-insurance-provider-row/info-popover.d.ts +10 -0
  73. package/src/features/manage-carriers/manage-insurance-provider-row/manage-insurance-provider-row.d.ts +7 -0
  74. package/src/features/manage-carriers/manage-insurance-provider-row/manage-insurance-provider-row.styles.d.ts +37 -0
  75. package/src/features/select-label-layout/index.d.ts +2 -0
  76. package/src/features/select-label-layout/select-label-layout.d.ts +7 -0
  77. package/src/features/{label-layout → select-label-layout}/use-label-layout.d.ts +2 -2
  78. package/src/features/unit-settings/unit-settings.d.ts +2 -2
  79. package/src/features/unit-settings/use-unit-settings.d.ts +3 -3
  80. package/src/features/vat-settings/use-vat-settings.d.ts +3 -3
  81. package/src/hooks/index.d.ts +1 -0
  82. package/src/hooks/insurance/index.d.ts +2 -0
  83. package/src/hooks/insurance/use-get-funding-source-insurance-provider.d.ts +14 -0
  84. package/src/hooks/insurance/use-manage-funding-source-insurance.d.ts +10 -0
  85. package/src/hooks/options/index.d.ts +2 -0
  86. package/src/hooks/options/use-insurance-provider-options.d.ts +8 -3
  87. package/src/hooks/options/use-movement-indicator-options.d.ts +12 -0
  88. package/src/hooks/options/use-rate-options.d.ts +4 -1
  89. package/src/hooks/options/use-windsor-framework.d.ts +9 -0
  90. package/src/index.d.ts +1 -0
  91. package/src/locales/en/index.d.ts +59 -6
  92. package/src/types/carrier-metadata.d.ts +1 -1
  93. package/src/types/index.d.ts +1 -0
  94. package/src/types/insurance-metadata.d.ts +25 -0
  95. package/src/utilities/feature-flags/types.d.ts +41 -0
  96. package/src/utilities/index.d.ts +1 -1
  97. package/src/utilities/shipengine/carrier.d.ts +16 -0
  98. package/src/utilities/shipengine/index.d.ts +1 -0
  99. package/src/utilities/shipengine/insurance.d.ts +17 -0
  100. package/src/utilities/tracking-formatter.d.ts +9 -0
  101. package/src/workflows/account-settings/account-settings.d.ts +60 -12
  102. package/src/workflows/account-settings/use-get-panel-props.d.ts +3 -3
  103. package/src/workflows/carrier-services/carrier-services.d.ts +59 -6
  104. package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +59 -6
  105. package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form-schema.d.ts +18 -18
  106. package/src/workflows/onboarding/components/confirmation-and-submission-step/use-confirmation-and-submission-step.d.ts +4 -2
  107. package/src/workflows/onboarding/components/funding-step/funding-step.d.ts +2 -1
  108. package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.d.ts +2 -1
  109. package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.d.ts +4 -3
  110. package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.styles.d.ts +4 -0
  111. package/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts +3 -3
  112. package/src/workflows/onboarding/onboarding.d.ts +60 -7
  113. package/suspend-text.js +1 -1
  114. package/transaction-history-element.js +1 -1
  115. package/use-run-once-on-true.js +1 -0
  116. package/use-scrub-errors.js +1 -1
  117. package/use-toggle.js +1 -1
  118. package/use-unit-settings.js +1 -1
  119. package/usePager.js +1 -1
  120. package/utilities.js +1 -1
  121. package/validation.js +1 -0
  122. package/vat.js +1 -1
  123. package/wallet-form.js +1 -1
  124. package/workflows.js +1 -1
  125. package/carrier-logo.js +0 -1
  126. package/src/components/field/rate-card/rate-card.d.ts +0 -19
  127. package/src/components/field/rate-card/rate-card.styles.d.ts +0 -22
  128. package/src/components/templates/label/index.d.ts +0 -1
  129. package/src/components/templates/label/label.d.ts +0 -12
  130. package/src/elements/label-layout/index.d.ts +0 -1
  131. package/src/features/label-layout/index.d.ts +0 -2
  132. package/src/features/label-layout/label-layout.d.ts +0 -7
  133. package/src/utilities/tracking-status-formatter.d.ts +0 -1
  134. package/warehouses.js +0 -1
  135. /package/src/components/field/{rate-card → rate-select/rate-card}/cost-breakdown/cost-breakdown.d.ts +0 -0
  136. /package/src/components/field/{rate-card → rate-select/rate-card}/cost-breakdown/index.d.ts +0 -0
  137. /package/src/components/field/{rate-card → rate-select/rate-card}/index.d.ts +0 -0
  138. /package/src/components/field/{rate-card → rate-select/rate-card}/rate-detail-cost-breakdown/index.d.ts +0 -0
  139. /package/src/components/field/{rate-card → rate-select/rate-card}/rate-detail-cost-breakdown/rate-detail-cost-breakdown.d.ts +0 -0
  140. /package/src/components/field/{rate-card → rate-select/rate-card}/rate-detail-cost-breakdown/rate-detail-cost-breakdown.styles.d.ts +0 -0
  141. /package/src/components/{label → history/history-card/label}/index.d.ts +0 -0
  142. /package/src/components/{label → history/history-card/label}/label.d.ts +0 -0
  143. /package/src/components/{label → history/history-card/label}/label.styles.d.ts +0 -0
  144. /package/src/features/{label-layout/label-layout.styles.d.ts → select-label-layout/select-label-layout.styles.d.ts} +0 -0
@@ -83,6 +83,7 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
83
83
  showItems: string;
84
84
  void: string;
85
85
  download: string;
86
+ fileClaim: string;
86
87
  };
87
88
  fields: {
88
89
  dimensions: string;
@@ -98,6 +99,20 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
98
99
  insuredValue: string;
99
100
  deliveryConfirmation: string;
100
101
  };
102
+ insurance: {
103
+ parcelguard: {
104
+ title: string;
105
+ description: string;
106
+ cta: {
107
+ title: string;
108
+ description: string;
109
+ };
110
+ registerSuccess: {
111
+ title: string;
112
+ description: string;
113
+ };
114
+ };
115
+ };
101
116
  highVolumeForms: string;
102
117
  multipleShippingServices: string;
103
118
  sections: {
@@ -140,12 +155,6 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
140
155
  };
141
156
  "register-wallet": {
142
157
  sections: {
143
- setup: {
144
- title: string;
145
- subtitle: string;
146
- descriptionTitle: string;
147
- description: string;
148
- };
149
158
  billing: {
150
159
  title: string;
151
160
  cardSubTitle: string;
@@ -158,6 +167,17 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
158
167
  title: string;
159
168
  subtitle: string;
160
169
  };
170
+ insuranceProviders: {
171
+ parcelguard: {
172
+ description: string;
173
+ terms: string;
174
+ termsLink: string;
175
+ popover: {
176
+ title: string;
177
+ description: string;
178
+ };
179
+ };
180
+ };
161
181
  notifications: {
162
182
  error: {
163
183
  title: string;
@@ -252,6 +272,7 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
252
272
  };
253
273
  cta: {
254
274
  addPackageDetails: string;
275
+ parcelguard: string;
255
276
  };
256
277
  errorMessages: {
257
278
  customsItemsRequired: string;
@@ -322,6 +343,17 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
322
343
  dhlExpressTermsAcknowledgement: string;
323
344
  noRateService: string;
324
345
  };
346
+ windsorFramework: {
347
+ movementIndicator: string;
348
+ movementIndicators: {
349
+ b2c: string;
350
+ c2b: string;
351
+ c2c: string;
352
+ b2b: string;
353
+ };
354
+ notAtRisk: string;
355
+ notAtRiskShipmentTootip: string;
356
+ };
325
357
  requirements: {
326
358
  noWarehouse: string;
327
359
  noCarrier: string;
@@ -352,6 +384,7 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
352
384
  shipToAddressFormFields: string;
353
385
  sections: {
354
386
  customsForm: string;
387
+ windsorFramework: string;
355
388
  shipment: string;
356
389
  rate_one: string;
357
390
  rate_other: string;
@@ -376,6 +409,10 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
376
409
  shipFromAddress: string;
377
410
  fundingAndCarrierConnection: string;
378
411
  };
412
+ termsAgreement: {
413
+ title: string;
414
+ subtitle: string;
415
+ };
379
416
  warehouse: {
380
417
  title: string;
381
418
  subtitle: string;
@@ -652,6 +689,7 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
652
689
  continue: string;
653
690
  delete: string;
654
691
  edit: string;
692
+ enable: string;
655
693
  hide: string;
656
694
  parse: string;
657
695
  purchase: string;
@@ -812,6 +850,14 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
812
850
  unknown: string;
813
851
  noRatesAvailable: string;
814
852
  refreshAndTryAgain: string;
853
+ windsorFramework: {
854
+ doNotConform: string;
855
+ pleaseAddTheFollowingTaxIds: string;
856
+ windsorFrameworkDefaultMessage: string;
857
+ shipperEori: string;
858
+ recipientEori: string;
859
+ ukims: string;
860
+ };
815
861
  };
816
862
  errorTypes: {
817
863
  accountStatus: string;
@@ -825,6 +871,7 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
825
871
  system: string;
826
872
  unknown: string;
827
873
  validation: string;
874
+ windsorFramework: string;
828
875
  };
829
876
  grid: {
830
877
  "row-count_one": string;
@@ -851,8 +898,10 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
851
898
  insuranceProviders: {
852
899
  carrier: string;
853
900
  none: string;
901
+ parcelguard: string;
854
902
  shipsurance: string;
855
903
  thirdParty: string;
904
+ x_cover: string;
856
905
  };
857
906
  loading: {
858
907
  accountSettings: string;
@@ -930,6 +979,9 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
930
979
  platform: string;
931
980
  user: string;
932
981
  };
982
+ tags: {
983
+ new: string;
984
+ };
933
985
  terms: {
934
986
  fields: {
935
987
  agreement: string;
@@ -937,6 +989,7 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
937
989
  agreeToTerms: string;
938
990
  carriersTitle: string;
939
991
  fundingSourceTitle: string;
992
+ insuranceProvidersTitle: string;
940
993
  shipEngineTitle: string;
941
994
  };
942
995
  weight: {
@@ -90,6 +90,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
90
90
  showItems: string;
91
91
  void: string;
92
92
  download: string;
93
+ fileClaim: string;
93
94
  };
94
95
  fields: {
95
96
  dimensions: string;
@@ -105,6 +106,20 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
105
106
  insuredValue: string;
106
107
  deliveryConfirmation: string;
107
108
  };
109
+ insurance: {
110
+ parcelguard: {
111
+ title: string;
112
+ description: string;
113
+ cta: {
114
+ title: string;
115
+ description: string;
116
+ };
117
+ registerSuccess: {
118
+ title: string;
119
+ description: string;
120
+ };
121
+ };
122
+ };
108
123
  highVolumeForms: string;
109
124
  multipleShippingServices: string;
110
125
  sections: {
@@ -147,12 +162,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
147
162
  };
148
163
  "register-wallet": {
149
164
  sections: {
150
- setup: {
151
- title: string;
152
- subtitle: string;
153
- descriptionTitle: string;
154
- description: string;
155
- };
156
165
  billing: {
157
166
  title: string;
158
167
  cardSubTitle: string;
@@ -165,6 +174,17 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
165
174
  title: string;
166
175
  subtitle: string;
167
176
  };
177
+ insuranceProviders: {
178
+ parcelguard: {
179
+ description: string;
180
+ terms: string;
181
+ termsLink: string;
182
+ popover: {
183
+ title: string;
184
+ description: string;
185
+ };
186
+ };
187
+ };
168
188
  notifications: {
169
189
  error: {
170
190
  title: string;
@@ -259,6 +279,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
259
279
  };
260
280
  cta: {
261
281
  addPackageDetails: string;
282
+ parcelguard: string;
262
283
  };
263
284
  errorMessages: {
264
285
  customsItemsRequired: string;
@@ -329,6 +350,17 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
329
350
  dhlExpressTermsAcknowledgement: string;
330
351
  noRateService: string;
331
352
  };
353
+ windsorFramework: {
354
+ movementIndicator: string;
355
+ movementIndicators: {
356
+ b2c: string;
357
+ c2b: string;
358
+ c2c: string;
359
+ b2b: string;
360
+ };
361
+ notAtRisk: string;
362
+ notAtRiskShipmentTootip: string;
363
+ };
332
364
  requirements: {
333
365
  noWarehouse: string;
334
366
  noCarrier: string;
@@ -359,6 +391,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
359
391
  shipToAddressFormFields: string;
360
392
  sections: {
361
393
  customsForm: string;
394
+ windsorFramework: string;
362
395
  shipment: string;
363
396
  rate_one: string;
364
397
  rate_other: string;
@@ -383,6 +416,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
383
416
  shipFromAddress: string;
384
417
  fundingAndCarrierConnection: string;
385
418
  };
419
+ termsAgreement: {
420
+ title: string;
421
+ subtitle: string;
422
+ };
386
423
  warehouse: {
387
424
  title: string;
388
425
  subtitle: string;
@@ -659,6 +696,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
659
696
  continue: string;
660
697
  delete: string;
661
698
  edit: string;
699
+ enable: string;
662
700
  hide: string;
663
701
  parse: string;
664
702
  purchase: string;
@@ -819,6 +857,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
819
857
  unknown: string;
820
858
  noRatesAvailable: string;
821
859
  refreshAndTryAgain: string;
860
+ windsorFramework: {
861
+ doNotConform: string;
862
+ pleaseAddTheFollowingTaxIds: string;
863
+ windsorFrameworkDefaultMessage: string;
864
+ shipperEori: string;
865
+ recipientEori: string;
866
+ ukims: string;
867
+ };
822
868
  };
823
869
  errorTypes: {
824
870
  accountStatus: string;
@@ -832,6 +878,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
832
878
  system: string;
833
879
  unknown: string;
834
880
  validation: string;
881
+ windsorFramework: string;
835
882
  };
836
883
  grid: {
837
884
  "row-count_one": string;
@@ -858,8 +905,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
858
905
  insuranceProviders: {
859
906
  carrier: string;
860
907
  none: string;
908
+ parcelguard: string;
861
909
  shipsurance: string;
862
910
  thirdParty: string;
911
+ x_cover: string;
863
912
  };
864
913
  loading: {
865
914
  accountSettings: string;
@@ -937,6 +986,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
937
986
  platform: string;
938
987
  user: string;
939
988
  };
989
+ tags: {
990
+ new: string;
991
+ };
940
992
  terms: {
941
993
  fields: {
942
994
  agreement: string;
@@ -944,6 +996,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
944
996
  agreeToTerms: string;
945
997
  carriersTitle: string;
946
998
  fundingSourceTitle: string;
999
+ insuranceProvidersTitle: string;
947
1000
  shipEngineTitle: string;
948
1001
  };
949
1002
  weight: {