@shipengine/elements 2.11.1 → 2.13.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 (109) hide show
  1. package/actions-menu.js +5 -5
  2. package/canada-ddp.js +1 -0
  3. package/carrier.js +1 -1
  4. package/components.js +1 -1
  5. package/elements.js +1 -1
  6. package/hooks.js +1 -1
  7. package/index.js +1 -1
  8. package/package.json +4 -4
  9. package/shipment.js +1 -1
  10. package/src/components/actions-menu/actions-menu.d.ts +2 -1
  11. package/src/components/add-funds-form/add-funds-form.d.ts +9 -1
  12. package/src/components/carrier-connection-card/carrier-connection-card.styles.d.ts +1 -1
  13. package/src/components/collapsible-panel/collapsible-panel.d.ts +15 -1
  14. package/src/components/field/date-picker/date-picker.d.ts +3 -1
  15. package/src/components/field/rate-select/rate-card/cost-breakdown/cost-breakdown.styles.d.ts +2 -1
  16. package/src/components/field/rate-select/rate-card/rate-card.styles.d.ts +1 -1
  17. package/src/components/field/select/select-with-categories.d.ts +1 -0
  18. package/src/components/grid-controller/grid-controller.styles.d.ts +8 -3
  19. package/src/components/grid-filters/components/label-id-filter/label-id-filter.styles.d.ts +1 -1
  20. package/src/components/grid-filters/grid-filters.d.ts +2 -1
  21. package/src/components/history/history-card/history-card.styles.d.ts +1 -1
  22. package/src/components/index.d.ts +1 -0
  23. package/src/components/save-status/save-status.d.ts +15 -1
  24. package/src/components/ship-from-address-form/index.d.ts +1 -0
  25. package/src/components/ship-from-address-form/ship-from-address-form-schema.d.ts +436 -0
  26. package/src/components/ship-from-address-form/ship-from-address-form.d.ts +20 -0
  27. package/src/components/ship-from-address-form/ship-from-address-form.styles.d.ts +20 -0
  28. package/src/components/templates/index.d.ts +1 -1
  29. package/src/components/templates/label-display/label-card.styles.d.ts +1 -1
  30. package/src/components/templates/rate-form/rate-form.d.ts +3 -2
  31. package/src/components/templates/shipment-form/sections/customs-forms/customs-forms.d.ts +2 -1
  32. package/src/components/templates/shipment-form/shipment-form.d.ts +10 -6
  33. package/src/components/templates/shipment-form/shipment-form.styles.d.ts +1 -0
  34. package/src/components/templates/shipment-form/shipment-schema.d.ts +41 -121
  35. package/src/components/templates/suspend-purchase/index.d.ts +1 -0
  36. package/src/components/templates/suspend-purchase/suspend-purchase.d.ts +8 -0
  37. package/src/components/templates/theme-creator/theme-creator.styles.d.ts +1 -1
  38. package/src/components/warehouse-form/warehouse-form-schema.d.ts +148 -34
  39. package/src/elements/labels-grid/hooks/use-labels-grid.d.ts +4 -0
  40. package/src/elements/labels-grid/labels-grid.d.ts +47 -23
  41. package/src/elements/manage-carriers/manage-carriers.d.ts +25 -1
  42. package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +25 -1
  43. package/src/elements/manage-funding/manage-funding-element.d.ts +25 -1
  44. package/src/elements/manage-warehouses/manage-warehouses.d.ts +25 -1
  45. package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +25 -1
  46. package/src/elements/purchase-label/configure-shipment.d.ts +3 -2
  47. package/src/elements/purchase-label/hooks/index.d.ts +0 -2
  48. package/src/elements/purchase-label/hooks/use-address.d.ts +1 -1
  49. package/src/elements/purchase-label/hooks/use-configure-shipment.d.ts +23 -12
  50. package/src/elements/purchase-label/hooks/use-customs.d.ts +1 -1
  51. package/src/elements/purchase-label/hooks/use-import-sales-order.d.ts +2 -1
  52. package/src/elements/purchase-label/hooks/use-shipment-form.d.ts +14 -5
  53. package/src/elements/purchase-label/purchase-label.d.ts +102 -49
  54. package/src/elements/select-label-layout/select-label-layout-element.d.ts +25 -1
  55. package/src/elements/shipment-summary/shipment-summary.d.ts +40 -8
  56. package/src/elements/shipments-grid/shipments-grid.d.ts +101 -21
  57. package/src/elements/theme-creator/theme-creator.d.ts +25 -1
  58. package/src/elements/transaction-history/transaction-history-element.d.ts +25 -1
  59. package/src/elements/unit-settings/unit-settings-element.d.ts +25 -1
  60. package/src/elements/vat-settings/vat-settings-element.d.ts +25 -1
  61. package/src/elements/void-label/components/actions/actions.d.ts +2 -1
  62. package/src/elements/void-label/void-label.d.ts +80 -25
  63. package/src/elements-provider/elements-context-provider.d.ts +10 -3
  64. package/src/elements-provider/elements-provider.d.ts +7 -2
  65. package/src/features/manage-carriers/index.d.ts +1 -0
  66. package/src/features/manage-carriers/manage-carriers.d.ts +12 -1
  67. package/src/features/manage-carriers/use-manage-carriers.d.ts +15 -0
  68. package/src/features/manage-funding/manage-funding.d.ts +10 -1
  69. package/src/features/vat-settings/use-vat-settings.d.ts +1 -1
  70. package/src/hooks/options/index.d.ts +1 -1
  71. package/src/hooks/options/use-insurance-provider-options.d.ts +1 -1
  72. package/src/hooks/options/use-ship-from-address-options.d.ts +19 -0
  73. package/src/hooks/options/use-shipment-metadata.d.ts +1 -0
  74. package/src/hooks/use-root-portal.d.ts +3 -2
  75. package/src/locales/en/index.d.ts +25 -1
  76. package/src/types/canada-ddp.d.ts +4 -0
  77. package/src/types/index.d.ts +2 -0
  78. package/src/types/ship-from-address.d.ts +4 -0
  79. package/src/utilities/feature-flags/types.d.ts +7 -1
  80. package/src/utilities/shipengine/address.d.ts +32 -0
  81. package/src/utilities/shipengine/sales-order.d.ts +2 -2
  82. package/src/utilities/shipengine/warehouses.d.ts +2 -1
  83. package/src/utilities/styles.d.ts +6 -2
  84. package/src/workflows/account-settings/account-settings.d.ts +25 -1
  85. package/src/workflows/account-settings/use-get-panel-props.d.ts +2 -2
  86. package/src/workflows/carrier-services/carrier-services.d.ts +75 -2
  87. package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +48 -1
  88. package/src/workflows/label-workflow/label-workflow.d.ts +10 -0
  89. package/src/workflows/onboarding/onboarding.d.ts +33 -2
  90. package/suspend-text.js +1 -1
  91. package/transaction-history-element.js +1 -1
  92. package/types.js +1 -1
  93. package/use-scrub-errors.js +1 -1
  94. package/use-toggle.js +1 -1
  95. package/use-unit-settings.js +1 -1
  96. package/usePager.js +1 -1
  97. package/utilities.js +1 -1
  98. package/validation.js +1 -1
  99. package/vat.js +1 -1
  100. package/wallet-form.js +1 -1
  101. package/workflows.js +1 -1
  102. package/src/components/templates/suspend-shipment/index.d.ts +0 -1
  103. package/src/components/templates/suspend-shipment/suspend-shipment.d.ts +0 -8
  104. package/src/elements/purchase-label/hooks/use-get-or-create-shipment.d.ts +0 -13
  105. package/src/elements/purchase-label/hooks/use-load-shipment.d.ts +0 -9
  106. package/src/elements/purchase-label/hooks/use-pending-shipment.d.ts +0 -13
  107. package/src/elements/purchase-label/purchase-label-by-sales-order.d.ts +0 -11
  108. package/src/elements/purchase-label/purchase-label-by-shipment.d.ts +0 -8
  109. package/src/hooks/options/use-warehouse-options.d.ts +0 -13
@@ -6,6 +6,11 @@ import { SE } from "@shipengine/js-api";
6
6
  * @see {@link ShipmentsGrid.Element | This prop types usage in `<ShipmentsGrid />`}
7
7
  */
8
8
  export type ShipmentsGridProps = {
9
+ /**
10
+ * `onClickCancelShipment` is a callback function that controls the display of `Cancel shipment` option and
11
+ * will be invoked when the user clicks on it.
12
+ */
13
+ onClickCancelShipment?: (shipment: SE.Shipment) => void;
9
14
  /**
10
15
  * `onRowClick` callback invoked when a row is clicked.
11
16
  */
@@ -45,7 +50,7 @@ export type ShipmentsGridProps = {
45
50
  *
46
51
  * @see {@link ShipmentsGrid.Element | The **Element** created to render `<ShipmentsGrid />`}
47
52
  */
48
- export declare const Component: ({ onRowClick, shipmentStatus, showShipmentIdFilter, showCreatedDateFilter, }: ShipmentsGridProps) => import("@emotion/react/jsx-runtime").JSX.Element;
53
+ export declare const Component: ({ onRowClick, onClickCancelShipment, shipmentStatus, showShipmentIdFilter, showCreatedDateFilter, }: ShipmentsGridProps) => import("@emotion/react/jsx-runtime").JSX.Element;
49
54
  /**
50
55
  * # Registered Shipments Grid Element
51
56
  *
@@ -99,6 +104,7 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
99
104
  };
100
105
  errorMessages: {
101
106
  labelIdRequired: string;
107
+ request_failed_to_complete: string;
102
108
  };
103
109
  resultMessages: {
104
110
  approved: string;
@@ -177,6 +183,9 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
177
183
  forbidden: string;
178
184
  connectionNotSupported: string;
179
185
  genericTitle: string;
186
+ /**
187
+ * `onRowClick` callback invoked when a row is clicked.
188
+ */
180
189
  genericText: string;
181
190
  };
182
191
  };
@@ -282,11 +291,6 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
282
291
  special_goods: string;
283
292
  pickup: string;
284
293
  location_fee: string;
285
- /**
286
- * # Shipments Grid Props
287
- *
288
- * @see {@link ShipmentsGrid.Element | This prop types usage in `<ShipmentsGrid />`}
289
- */
290
294
  oversize: string;
291
295
  returns: string;
292
296
  notifications: string;
@@ -335,6 +339,27 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
335
339
  fields: {
336
340
  "requires-additional-handling": string;
337
341
  addOns: string;
342
+ /**
343
+ * # Shipments Grid Component
344
+ *
345
+ * - The `<ShipmentsGrid />` component is used to view the user's list of shipments.
346
+ *
347
+ * @param ShipmentsGridProps The base props that will be passed into the `<ShipmentsGrid />` component.
348
+ *
349
+ * @returns Element An EmotionJSX.Element that will render the `<ShipmentsGrid />` component.
350
+ *
351
+ * @example
352
+ * You can see how the `<Component />` is used in the `createElement` function call below.
353
+ * ```tsx
354
+ * export const Element = createElement(Component, ErrorFallback, {
355
+ * resources: { en },
356
+ * });
357
+ * ```
358
+ *
359
+ * <br />
360
+ *
361
+ * @see {@link ShipmentsGrid.Element | The **Element** created to render `<ShipmentsGrid />`}
362
+ */
338
363
  contentDescription: string;
339
364
  confirmation: string;
340
365
  dimensions: {
@@ -461,6 +486,11 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
461
486
  };
462
487
  warehouse: {
463
488
  title: string;
489
+ /**
490
+ * # Shipments Grid Props
491
+ *
492
+ * @see {@link ShipmentsGrid.Element | This prop types usage in `<ShipmentsGrid />`}
493
+ */
464
494
  subtitle: string;
465
495
  inlineMessage: string;
466
496
  };
@@ -478,7 +508,9 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
478
508
  termsAndAgreementLinkText: {
479
509
  shipEngineToS: string;
480
510
  auctanePrivacyPolicy: string;
481
- aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
511
+ aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string; /**
512
+ * `showShipmentIdFilter` controls the display of the shipmentId search filter
513
+ */
482
514
  "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
483
515
  "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
484
516
  "aHR0cHM6Ly93d3cudXBzLmNvbS91cy9lbi9zdXBwb3J0L3NoaXBwaW5nLXN1cHBvcnQvc2hpcHBpbmctc3BlY2lhbC1jYXJlLXJlZ3VsYXRlZC1pdGVtcy9wcm9oaWJpdGVkLWl0ZW1zLnBhZ2U=": string;
@@ -608,9 +640,6 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
608
640
  metric: string;
609
641
  };
610
642
  weight: {
611
- /**
612
- * `onRowClick` callback invoked when a row is clicked.
613
- */
614
643
  title: string;
615
644
  standard: string;
616
645
  g: string;
@@ -650,9 +679,7 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
650
679
  };
651
680
  errorMessages: {
652
681
  title: string;
653
- subtitle: string; /**
654
- * `showCreatedDateFilter` controls the display of the Created Date filter
655
- */
682
+ subtitle: string;
656
683
  };
657
684
  };
658
685
  "list-labels": {
@@ -667,6 +694,8 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
667
694
  status: string;
668
695
  trackingStatus: string;
669
696
  labelId: string;
697
+ externalOrderId: string;
698
+ externalShipmentId: string;
670
699
  };
671
700
  empty: {
672
701
  title: string;
@@ -678,7 +707,10 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
678
707
  button: string;
679
708
  };
680
709
  status: {
681
- voided: string;
710
+ voided: string; /**
711
+ * `onClickCancelShipment` is a callback function that controls the display of `Cancel shipment` option and
712
+ * will be invoked when the user clicks on it.
713
+ */
682
714
  error: string;
683
715
  completed: string;
684
716
  processing: string;
@@ -717,11 +749,13 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
717
749
  search: string;
718
750
  settingsModal: {
719
751
  closeDialog: string;
720
- header: string; /**
721
- * `onRowClick` callback invoked when a row is clicked.
722
- */
752
+ header: string;
723
753
  };
724
754
  status: {
755
+ /**
756
+ * `onClickCancelShipment` is a callback function that controls the display of `Cancel shipment` option and
757
+ * will be invoked when the user clicks on it.
758
+ */
725
759
  connected: string;
726
760
  };
727
761
  disconnectDropdown: {
@@ -762,7 +796,10 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
762
796
  addressLine2: string;
763
797
  cityLocality: string;
764
798
  stateProvince: string;
765
- postalCode: string;
799
+ postalCode: string; /**
800
+ * `onClickCancelShipment` is a callback function that controls the display of `Cancel shipment` option and
801
+ * will be invoked when the user clicks on it.
802
+ */
766
803
  phone: string;
767
804
  email: string;
768
805
  addressResidentialIndicator: string;
@@ -781,7 +818,9 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
781
818
  modified: string;
782
819
  title: string;
783
820
  originalAddress: string;
784
- matchedAddress: string;
821
+ matchedAddress: string; /**
822
+ * `showShipmentIdFilter` controls the display of the shipmentId search filter
823
+ */
785
824
  unableToValidate: string;
786
825
  use: {
787
826
  originalAddress: string;
@@ -789,7 +828,27 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
789
828
  };
790
829
  };
791
830
  validation: {
792
- notValidated: string;
831
+ notValidated: string; /**
832
+ * # Shipments Grid Component
833
+ *
834
+ * - The `<ShipmentsGrid />` component is used to view the user's list of shipments.
835
+ *
836
+ * @param ShipmentsGridProps The base props that will be passed into the `<ShipmentsGrid />` component.
837
+ *
838
+ * @returns Element An EmotionJSX.Element that will render the `<ShipmentsGrid />` component.
839
+ *
840
+ * @example
841
+ * You can see how the `<Component />` is used in the `createElement` function call below.
842
+ * ```tsx
843
+ * export const Element = createElement(Component, ErrorFallback, {
844
+ * resources: { en },
845
+ * });
846
+ * ```
847
+ *
848
+ * <br />
849
+ *
850
+ * @see {@link ShipmentsGrid.Element | The **Element** created to render `<ShipmentsGrid />`}
851
+ */
793
852
  validated: string;
794
853
  };
795
854
  };
@@ -863,6 +922,7 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
863
922
  description: string;
864
923
  harmonizedTariffCode: string;
865
924
  ifDeliveryFails: string;
925
+ dutiesTaxes: string;
866
926
  quantity: string;
867
927
  sku: string;
868
928
  value: string;
@@ -877,6 +937,17 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
877
937
  returnToSender: string;
878
938
  treatAsAbandoned: string;
879
939
  };
940
+ canadaDeliveredDuty: {
941
+ senderPrepay: string;
942
+ recipientPays: string;
943
+ tooltip: {
944
+ title: string;
945
+ restriction: string;
946
+ requirement1: string;
947
+ requirement2: string;
948
+ requirement3: string;
949
+ };
950
+ };
880
951
  removeAllDeclarations: string;
881
952
  total: string;
882
953
  };
@@ -1026,6 +1097,9 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
1026
1097
  tooManyCharacters: string;
1027
1098
  requiredShipmentId: string;
1028
1099
  requiredLabelId: string;
1100
+ heightExceeded: string;
1101
+ widthExceeded: string;
1102
+ lengthExceeded: string;
1029
1103
  };
1030
1104
  shippingPresets: {
1031
1105
  apply: string;
@@ -1069,6 +1143,7 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
1069
1143
  edit: string;
1070
1144
  remove: string;
1071
1145
  viewDetails: string;
1146
+ cancelShipment: string;
1072
1147
  };
1073
1148
  };
1074
1149
  ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
@@ -1099,7 +1174,12 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
1099
1174
  transactionHistory: string;
1100
1175
  adjustmentHistory: string;
1101
1176
  warehouses: string;
1102
- carriers: string;
1177
+ carriers: {
1178
+ title: string;
1179
+ customStatusMessages: {
1180
+ success: string;
1181
+ };
1182
+ };
1103
1183
  externalCarriers: string;
1104
1184
  labelLayout: string;
1105
1185
  unitSettings: string;
@@ -45,6 +45,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
45
45
  };
46
46
  errorMessages: {
47
47
  labelIdRequired: string;
48
+ request_failed_to_complete: string;
48
49
  };
49
50
  resultMessages: {
50
51
  approved: string;
@@ -603,6 +604,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
603
604
  status: string;
604
605
  trackingStatus: string;
605
606
  labelId: string;
607
+ externalOrderId: string;
608
+ externalShipmentId: string;
606
609
  };
607
610
  empty: {
608
611
  title: string;
@@ -797,6 +800,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
797
800
  description: string;
798
801
  harmonizedTariffCode: string;
799
802
  ifDeliveryFails: string;
803
+ dutiesTaxes: string;
800
804
  quantity: string;
801
805
  sku: string;
802
806
  value: string;
@@ -811,6 +815,17 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
811
815
  returnToSender: string;
812
816
  treatAsAbandoned: string;
813
817
  };
818
+ canadaDeliveredDuty: {
819
+ senderPrepay: string;
820
+ recipientPays: string;
821
+ tooltip: {
822
+ title: string;
823
+ restriction: string;
824
+ requirement1: string;
825
+ requirement2: string;
826
+ requirement3: string;
827
+ };
828
+ };
814
829
  removeAllDeclarations: string;
815
830
  total: string;
816
831
  };
@@ -960,6 +975,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
960
975
  tooManyCharacters: string;
961
976
  requiredShipmentId: string;
962
977
  requiredLabelId: string;
978
+ heightExceeded: string;
979
+ widthExceeded: string;
980
+ lengthExceeded: string;
963
981
  };
964
982
  shippingPresets: {
965
983
  apply: string;
@@ -1003,6 +1021,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
1003
1021
  edit: string;
1004
1022
  remove: string;
1005
1023
  viewDetails: string;
1024
+ cancelShipment: string;
1006
1025
  };
1007
1026
  };
1008
1027
  ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
@@ -1033,7 +1052,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
1033
1052
  transactionHistory: string;
1034
1053
  adjustmentHistory: string;
1035
1054
  warehouses: string;
1036
- carriers: string;
1055
+ carriers: {
1056
+ title: string;
1057
+ customStatusMessages: {
1058
+ success: string;
1059
+ };
1060
+ };
1037
1061
  externalCarriers: string;
1038
1062
  labelLayout: string;
1039
1063
  unitSettings: string;
@@ -32,6 +32,7 @@ export declare const Element: ({ resources, ...props }: object & {
32
32
  };
33
33
  errorMessages: {
34
34
  labelIdRequired: string;
35
+ request_failed_to_complete: string;
35
36
  };
36
37
  resultMessages: {
37
38
  approved: string;
@@ -590,6 +591,8 @@ export declare const Element: ({ resources, ...props }: object & {
590
591
  status: string;
591
592
  trackingStatus: string;
592
593
  labelId: string;
594
+ externalOrderId: string;
595
+ externalShipmentId: string;
593
596
  };
594
597
  empty: {
595
598
  title: string;
@@ -784,6 +787,7 @@ export declare const Element: ({ resources, ...props }: object & {
784
787
  description: string;
785
788
  harmonizedTariffCode: string;
786
789
  ifDeliveryFails: string;
790
+ dutiesTaxes: string;
787
791
  quantity: string;
788
792
  sku: string;
789
793
  value: string;
@@ -798,6 +802,17 @@ export declare const Element: ({ resources, ...props }: object & {
798
802
  returnToSender: string;
799
803
  treatAsAbandoned: string;
800
804
  };
805
+ canadaDeliveredDuty: {
806
+ senderPrepay: string;
807
+ recipientPays: string;
808
+ tooltip: {
809
+ title: string;
810
+ restriction: string;
811
+ requirement1: string;
812
+ requirement2: string;
813
+ requirement3: string;
814
+ };
815
+ };
801
816
  removeAllDeclarations: string;
802
817
  total: string;
803
818
  };
@@ -947,6 +962,9 @@ export declare const Element: ({ resources, ...props }: object & {
947
962
  tooManyCharacters: string;
948
963
  requiredShipmentId: string;
949
964
  requiredLabelId: string;
965
+ heightExceeded: string;
966
+ widthExceeded: string;
967
+ lengthExceeded: string;
950
968
  };
951
969
  shippingPresets: {
952
970
  apply: string;
@@ -990,6 +1008,7 @@ export declare const Element: ({ resources, ...props }: object & {
990
1008
  edit: string;
991
1009
  remove: string;
992
1010
  viewDetails: string;
1011
+ cancelShipment: string;
993
1012
  };
994
1013
  };
995
1014
  ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
@@ -1020,7 +1039,12 @@ export declare const Element: ({ resources, ...props }: object & {
1020
1039
  transactionHistory: string;
1021
1040
  adjustmentHistory: string;
1022
1041
  warehouses: string;
1023
- carriers: string;
1042
+ carriers: {
1043
+ title: string;
1044
+ customStatusMessages: {
1045
+ success: string;
1046
+ };
1047
+ };
1024
1048
  externalCarriers: string;
1025
1049
  labelLayout: string;
1026
1050
  unitSettings: string;
@@ -32,6 +32,7 @@ export declare const Element: ({ resources, ...props }: object & {
32
32
  };
33
33
  errorMessages: {
34
34
  labelIdRequired: string;
35
+ request_failed_to_complete: string;
35
36
  };
36
37
  resultMessages: {
37
38
  approved: string;
@@ -590,6 +591,8 @@ export declare const Element: ({ resources, ...props }: object & {
590
591
  status: string;
591
592
  trackingStatus: string;
592
593
  labelId: string;
594
+ externalOrderId: string;
595
+ externalShipmentId: string;
593
596
  };
594
597
  empty: {
595
598
  title: string;
@@ -784,6 +787,7 @@ export declare const Element: ({ resources, ...props }: object & {
784
787
  description: string;
785
788
  harmonizedTariffCode: string;
786
789
  ifDeliveryFails: string;
790
+ dutiesTaxes: string;
787
791
  quantity: string;
788
792
  sku: string;
789
793
  value: string;
@@ -798,6 +802,17 @@ export declare const Element: ({ resources, ...props }: object & {
798
802
  returnToSender: string;
799
803
  treatAsAbandoned: string;
800
804
  };
805
+ canadaDeliveredDuty: {
806
+ senderPrepay: string;
807
+ recipientPays: string;
808
+ tooltip: {
809
+ title: string;
810
+ restriction: string;
811
+ requirement1: string;
812
+ requirement2: string;
813
+ requirement3: string;
814
+ };
815
+ };
801
816
  removeAllDeclarations: string;
802
817
  total: string;
803
818
  };
@@ -947,6 +962,9 @@ export declare const Element: ({ resources, ...props }: object & {
947
962
  tooManyCharacters: string;
948
963
  requiredShipmentId: string;
949
964
  requiredLabelId: string;
965
+ heightExceeded: string;
966
+ widthExceeded: string;
967
+ lengthExceeded: string;
950
968
  };
951
969
  shippingPresets: {
952
970
  apply: string;
@@ -990,6 +1008,7 @@ export declare const Element: ({ resources, ...props }: object & {
990
1008
  edit: string;
991
1009
  remove: string;
992
1010
  viewDetails: string;
1011
+ cancelShipment: string;
993
1012
  };
994
1013
  };
995
1014
  ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
@@ -1020,7 +1039,12 @@ export declare const Element: ({ resources, ...props }: object & {
1020
1039
  transactionHistory: string;
1021
1040
  adjustmentHistory: string;
1022
1041
  warehouses: string;
1023
- carriers: string;
1042
+ carriers: {
1043
+ title: string;
1044
+ customStatusMessages: {
1045
+ success: string;
1046
+ };
1047
+ };
1024
1048
  externalCarriers: string;
1025
1049
  labelLayout: string;
1026
1050
  unitSettings: string;
@@ -32,6 +32,7 @@ export declare const Element: ({ resources, ...props }: object & {
32
32
  };
33
33
  errorMessages: {
34
34
  labelIdRequired: string;
35
+ request_failed_to_complete: string;
35
36
  };
36
37
  resultMessages: {
37
38
  approved: string;
@@ -590,6 +591,8 @@ export declare const Element: ({ resources, ...props }: object & {
590
591
  status: string;
591
592
  trackingStatus: string;
592
593
  labelId: string;
594
+ externalOrderId: string;
595
+ externalShipmentId: string;
593
596
  };
594
597
  empty: {
595
598
  title: string;
@@ -784,6 +787,7 @@ export declare const Element: ({ resources, ...props }: object & {
784
787
  description: string;
785
788
  harmonizedTariffCode: string;
786
789
  ifDeliveryFails: string;
790
+ dutiesTaxes: string;
787
791
  quantity: string;
788
792
  sku: string;
789
793
  value: string;
@@ -798,6 +802,17 @@ export declare const Element: ({ resources, ...props }: object & {
798
802
  returnToSender: string;
799
803
  treatAsAbandoned: string;
800
804
  };
805
+ canadaDeliveredDuty: {
806
+ senderPrepay: string;
807
+ recipientPays: string;
808
+ tooltip: {
809
+ title: string;
810
+ restriction: string;
811
+ requirement1: string;
812
+ requirement2: string;
813
+ requirement3: string;
814
+ };
815
+ };
801
816
  removeAllDeclarations: string;
802
817
  total: string;
803
818
  };
@@ -947,6 +962,9 @@ export declare const Element: ({ resources, ...props }: object & {
947
962
  tooManyCharacters: string;
948
963
  requiredShipmentId: string;
949
964
  requiredLabelId: string;
965
+ heightExceeded: string;
966
+ widthExceeded: string;
967
+ lengthExceeded: string;
950
968
  };
951
969
  shippingPresets: {
952
970
  apply: string;
@@ -990,6 +1008,7 @@ export declare const Element: ({ resources, ...props }: object & {
990
1008
  edit: string;
991
1009
  remove: string;
992
1010
  viewDetails: string;
1011
+ cancelShipment: string;
993
1012
  };
994
1013
  };
995
1014
  ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
@@ -1020,7 +1039,12 @@ export declare const Element: ({ resources, ...props }: object & {
1020
1039
  transactionHistory: string;
1021
1040
  adjustmentHistory: string;
1022
1041
  warehouses: string;
1023
- carriers: string;
1042
+ carriers: {
1043
+ title: string;
1044
+ customStatusMessages: {
1045
+ success: string;
1046
+ };
1047
+ };
1024
1048
  externalCarriers: string;
1025
1049
  labelLayout: string;
1026
1050
  unitSettings: string;
@@ -1,9 +1,10 @@
1
1
  import { SE } from "@shipengine/react-api";
2
2
  export type ActionsProps = {
3
3
  onComplete?: (request: SE.VoidRequest, shipment: SE.SalesOrderShipment) => void;
4
+ onFail?: () => Promise<void> | void;
4
5
  onSubmit?: () => Promise<void>;
5
6
  onViewShipment?: (shipment: SE.SalesOrderShipment) => void;
6
7
  shipment: SE.SalesOrderShipment;
7
8
  voidRequest?: SE.VoidRequest;
8
9
  };
9
- export declare const Actions: ({ onComplete, onSubmit, onViewShipment, shipment, voidRequest, }: ActionsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
+ export declare const Actions: ({ onComplete, onSubmit, onViewShipment, shipment, voidRequest, onFail, }: ActionsProps) => import("@emotion/react/jsx-runtime").JSX.Element;