@shipengine/elements 2.0.0 → 2.1.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 (118) hide show
  1. package/actions-menu.js +34 -0
  2. package/carrier-logo.js +1 -0
  3. package/components.js +1 -1
  4. package/constants.js +1 -1
  5. package/elements.js +1 -1
  6. package/extensions.js +1 -1
  7. package/formatString.js +1 -0
  8. package/hooks.js +1 -1
  9. package/index.js +1 -1
  10. package/package.json +15 -45
  11. package/pudo.js +1 -0
  12. package/schemas.js +1 -1
  13. package/src/components/actions-menu/actions-menu.d.ts +19 -0
  14. package/src/components/actions-menu/index.d.ts +1 -0
  15. package/src/components/collapsible-panel/collapsible-panel.styles.d.ts +10 -13
  16. package/src/components/field/checkbox-input/checkbox-input.d.ts +1 -0
  17. package/src/components/field/rate-card/rate-card.styles.d.ts +0 -1
  18. package/src/components/field/select/index.d.ts +1 -0
  19. package/src/components/field/select/select-with-categories.d.ts +20 -0
  20. package/src/components/field/select/select.d.ts +5 -10
  21. package/src/components/index.d.ts +1 -0
  22. package/src/components/templates/connected-carrier-list/connected-carrier-list.d.ts +4 -1
  23. package/src/components/templates/connected-carrier-list/connected-carrier-list.styles.d.ts +0 -10
  24. package/src/components/templates/connected-carrier-list/connected-carrier-row/connected-carrier-row.d.ts +4 -1
  25. package/src/components/templates/connected-carrier-list/connected-carrier-row/connected-carrier-row.styles.d.ts +19 -12
  26. package/src/components/templates/products-display/products-display.styles.d.ts +12 -4
  27. package/src/components/templates/shipment-form/sections/customs-forms/components/index.d.ts +2 -0
  28. package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/form/index.d.ts +3 -0
  29. package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/form/schema.d.ts +38 -0
  30. package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/form/values.d.ts +12 -0
  31. package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/index.d.ts +2 -0
  32. package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/tax-id-form.d.ts +17 -0
  33. package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/tax-id-list.d.ts +12 -0
  34. package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/tax-ids.d.ts +8 -0
  35. package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/tax-ids.styles.d.ts +70 -0
  36. package/src/components/templates/shipment-form/sections/customs-forms/customs-forms.d.ts +10 -0
  37. package/src/components/templates/shipment-form/sections/customs-forms/index.d.ts +1 -0
  38. package/src/components/templates/shipment-form/sections/index.d.ts +1 -0
  39. package/src/components/templates/shipment-form/shipment-form.d.ts +2 -1
  40. package/src/components/templates/shipment-form/shipment-form.styles.d.ts +9 -0
  41. package/src/components/warehouse-form/warehouse-form.d.ts +10 -3
  42. package/src/components/zero-state/zero-state.d.ts +6 -0
  43. package/src/components/zero-state/zero-state.styles.d.ts +14 -0
  44. package/src/elements/label-layout/label-layout-element.d.ts +43 -1
  45. package/src/elements/labels-grid/labels-grid.d.ts +43 -1
  46. package/src/elements/manage-carriers/manage-carriers.d.ts +93 -52
  47. package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +65 -1
  48. package/src/elements/manage-funding/manage-funding-element.d.ts +46 -3
  49. package/src/elements/manage-warehouses/manage-warehouses.d.ts +43 -1
  50. package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +46 -3
  51. package/src/elements/purchase-label/hooks/use-customs.d.ts +1 -0
  52. package/src/elements/purchase-label/hooks/use-shipment-form.d.ts +1 -0
  53. package/src/elements/purchase-label/purchase-label.d.ts +68 -4
  54. package/src/elements/shipment-summary/shipment-summary.d.ts +47 -1
  55. package/src/elements/shipments-grid/shipments-grid.d.ts +43 -1
  56. package/src/elements/theme-creator/theme-creator.d.ts +43 -1
  57. package/src/elements/transaction-history/transaction-history-element.d.ts +43 -1
  58. package/src/elements/unit-settings/unit-settings-element.d.ts +43 -1
  59. package/src/elements/vat-settings/vat-settings-element.d.ts +43 -1
  60. package/src/elements/void-label/void-label.d.ts +57 -10
  61. package/src/elements-provider/elements-context-provider.d.ts +44 -0
  62. package/src/elements-provider/elements-provider.d.ts +6 -40
  63. package/src/elements-provider/index.d.ts +2 -0
  64. package/src/features/manage-carriers/hooks/use-list-funding-source-carriers.d.ts +1 -1
  65. package/src/features/manage-carriers/manage-carriers.d.ts +2 -1
  66. package/src/features/manage-external-carriers/index.d.ts +1 -0
  67. package/src/features/manage-external-carriers/manage-external-carriers.d.ts +11 -1
  68. package/src/features/manage-external-carriers/use-manage-external-carriers.d.ts +12 -0
  69. package/src/features/manage-funding/manage-funding.d.ts +4 -1
  70. package/src/features/payment-method-settings/payment-method-settings.d.ts +4 -1
  71. package/src/hooks/options/use-package-options.d.ts +1 -1
  72. package/src/hooks/options/use-warehouse-options.d.ts +3 -1
  73. package/src/index.d.ts +1 -0
  74. package/src/locales/en/index.d.ts +43 -1
  75. package/src/testing/test-utils.d.ts +0 -1
  76. package/src/utilities/formatString.d.ts +2 -0
  77. package/src/utilities/index.d.ts +1 -0
  78. package/src/utilities/pudo.d.ts +3 -0
  79. package/src/utilities/rates.d.ts +1 -3
  80. package/src/utilities/shipengine/carrier.d.ts +4 -1
  81. package/src/workflows/account-settings/account-settings.d.ts +45 -2
  82. package/src/workflows/account-settings/use-get-panel-props.d.ts +3 -3
  83. package/src/workflows/carrier-services/carrier-services.d.ts +51 -29
  84. package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +43 -1
  85. package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.d.ts +2 -1
  86. package/src/workflows/onboarding/onboarding.d.ts +43 -1
  87. package/story-notes.js +1 -0
  88. package/suspend-text.js +1 -0
  89. package/transaction-history-element.js +1 -0
  90. package/use-page-layout.js +1 -0
  91. package/use-scrub-errors.js +1 -0
  92. package/use-toggle.js +1 -0
  93. package/use-unit-settings.js +1 -0
  94. package/utilities.js +1 -1
  95. package/validation.js +1 -0
  96. package/wallet-form.js +1 -0
  97. package/warehouses.js +1 -0
  98. package/workflows.js +1 -1
  99. package/carrier-c2a5ed53.js +0 -1
  100. package/carrier-logo-330e926f.js +0 -1
  101. package/formatString-413ec7c7.js +0 -1
  102. package/shipment-150160e0.js +0 -1
  103. package/story-notes-c714d2ed.js +0 -1
  104. package/suspend-text-cad3a977.js +0 -1
  105. package/transaction-history-element-cbfe487c.js +0 -1
  106. package/use-page-layout-8cb5075f.js +0 -1
  107. package/use-scrub-errors-9870a6f3.js +0 -1
  108. package/use-toggle-866d7938.js +0 -1
  109. package/use-unit-settings-a5bae16e.js +0 -1
  110. package/validation-528e7834.js +0 -1
  111. package/wallet-form-9e4bfaea.js +0 -1
  112. package/warehouse-form-da6a7ac5.js +0 -34
  113. package/warehouses-a83188ab.js +0 -1
  114. /package/{address-8f8119f4.js → address.js} +0 -0
  115. /package/{assertions-dfa95b4d.js → assertions.js} +0 -0
  116. /package/{money-d4f3d7c3.js → money.js} +0 -0
  117. /package/{phone-87dd7bd8.js → phone.js} +0 -0
  118. /package/{zod-60def96c.js → zod.js} +0 -0
@@ -0,0 +1,70 @@
1
+ export declare const styles: {
2
+ addTaxIdLink: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
3
+ alignSelf: "end";
4
+ fontWeight: number;
5
+ };
6
+ addTaxIdLinkOpened: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
7
+ ":hover": {
8
+ color: string;
9
+ };
10
+ color: string;
11
+ };
12
+ addTaxIdTitleWrapper: () => {
13
+ alignItems: "center";
14
+ display: "flex";
15
+ };
16
+ iconTooltip: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
17
+ color: string;
18
+ marginLeft: number;
19
+ };
20
+ section: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
21
+ marginBottom: number;
22
+ };
23
+ taxIdFormSection: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
24
+ backgroundColor: string;
25
+ padding: number;
26
+ };
27
+ taxIdList: () => {
28
+ listStyle: "none";
29
+ };
30
+ taxIdListItem: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
31
+ ":first-of-type:nth-last-child(n+2)": {
32
+ borderBottomLeftRadius: number;
33
+ borderBottomRightRadius: number;
34
+ };
35
+ ":not(:first-of-type)": {
36
+ borderTop: number;
37
+ borderTopLeftRadius: number;
38
+ borderTopRightRadius: number;
39
+ };
40
+ ":not(:first-of-type):not(:last-child)": {
41
+ borderBottomLeftRadius: number;
42
+ borderBottomRightRadius: number;
43
+ };
44
+ border: string;
45
+ borderRadius: string;
46
+ display: "flex";
47
+ justifyContent: "space-between";
48
+ padding: number;
49
+ };
50
+ taxIdListItemAuthorityTag: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
51
+ marginRight: number;
52
+ };
53
+ taxIdListItemAuthorityText: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
54
+ color: string;
55
+ };
56
+ taxIdListItemAuthorityWrapper: () => {
57
+ alignItems: "center";
58
+ display: "flex";
59
+ };
60
+ taxIdListItemIdentifier: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
61
+ marginRight: number;
62
+ };
63
+ tooltipContainer: () => {
64
+ textAlign: "left";
65
+ width: number;
66
+ };
67
+ tooltipList: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
68
+ paddingLeft: number;
69
+ };
70
+ };
@@ -0,0 +1,10 @@
1
+ import { UseFormReturn } from "react-hook-form";
2
+ import { SE } from "@shipengine/react-api";
3
+ import { ShipmentFormProps } from "../../shipment-form";
4
+ import { ShipmentFormFields } from "../../shipment-schema";
5
+ type CustomsFormsProps = {
6
+ form: UseFormReturn<ShipmentFormFields>;
7
+ shipment: SE.SalesOrderShipment;
8
+ } & Pick<ShipmentFormProps, "currency" | "onDirty" | "onUpdateCustoms" | "onUpdateTaxableIds">;
9
+ export declare const CustomsForms: ({ form, currency, onUpdateCustoms, onUpdateTaxableIds, shipment, onDirty, }: CustomsFormsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1 @@
1
+ export { CustomsForms } from "./customs-forms";
@@ -0,0 +1 @@
1
+ export { CustomsForms } from "./customs-forms";
@@ -35,6 +35,7 @@ export type ShipmentFormProps = {
35
35
  onSubmitParseShipTo: (payload: AddressParserPayload) => Promise<SE.AddressExtraction | undefined>;
36
36
  onToggleAddressPreferenceDisclosure?: AddressPreferenceDisplayProps["onToggleDisclosure"];
37
37
  onUpdateCustoms?: (customs: SE.Customs, products: SE.Product[]) => Promise<SE.SalesOrderShipment | undefined>;
38
+ onUpdateTaxableIds?: (taxIds: SE.TaxIdentifier[], onError: (errors: SE.CodedError[]) => void) => Promise<SE.SalesOrderShipment>;
38
39
  parseAddressErrors?: SE.CodedError[];
39
40
  resetParseAddress?: () => void;
40
41
  salesOrder?: SE.SalesOrder;
@@ -48,4 +49,4 @@ export type CharsetWarning = {
48
49
  message: string;
49
50
  title?: string;
50
51
  };
51
- export declare const ShipmentForm: ({ accountSettings, addressLoading, addressPreference, charsetWarning, carriers, customPackageTypes, currency, features, hydrateRef, insuranceAccount, isLoading, onApplyPreset, onChangeAddress, onChangeMode, onChangeWarehouse, onDirty, onSubmit, onSubmitParseShipTo, onToggleAddressPreferenceDisclosure, onUpdateCustoms, parseAddressErrors, resetParseAddress, salesOrder, shipment, shippingPresets, warehouseId, warehouses, }: ShipmentFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
52
+ export declare const ShipmentForm: ({ accountSettings, addressLoading, addressPreference, charsetWarning, carriers, customPackageTypes, currency, features, hydrateRef, insuranceAccount, isLoading, onApplyPreset, onChangeAddress, onChangeMode, onChangeWarehouse, onDirty, onSubmit, onSubmitParseShipTo, onToggleAddressPreferenceDisclosure, onUpdateCustoms, onUpdateTaxableIds, parseAddressErrors, resetParseAddress, salesOrder, shipment, shippingPresets, warehouseId, warehouses, }: ShipmentFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export declare const styles: {
2
+ header: {
3
+ textAlign: "left";
4
+ };
5
+ well: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
6
+ backgroundColor: string;
7
+ padding: number;
8
+ };
9
+ };
@@ -1,6 +1,7 @@
1
+ /// <reference types="react" />
1
2
  import { SE } from "@shipengine/react-api";
2
3
  export type WarehousePayload = Partial<SE.Warehouse> & Pick<SE.Warehouse, "name" | "originAddress" | "isDefault">;
3
- export type WarehouseFormProps = {
4
+ export type WarehouseFormProps<T = undefined> = {
4
5
  onCancel?: () => void;
5
6
  onDelete?: () => void;
6
7
  onSubmit: (payload: WarehousePayload) => void;
@@ -8,5 +9,11 @@ export type WarehouseFormProps = {
8
9
  submitButtonTitle: string;
9
10
  useStrictSchema?: boolean;
10
11
  warehouse?: SE.Warehouse | Pick<SE.Warehouse, "name" | "isDefault" | "originAddress" | "returnAddress">;
11
- };
12
- export declare const WarehouseForm: ({ onCancel, onDelete, onSubmit, submitButtonTitle, warehouse, shouldForceDefault, useStrictSchema, }: WarehouseFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
12
+ } & ({
13
+ formId: string;
14
+ portalRef: React.RefObject<T>;
15
+ } | {
16
+ formId?: string;
17
+ portalRef?: never;
18
+ });
19
+ export declare const WarehouseForm: <T extends Element>({ onCancel, formId, onDelete, onSubmit, portalRef, submitButtonTitle, warehouse, shouldForceDefault, useStrictSchema, }: WarehouseFormProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { LinkActionProps } from "../link-action";
2
+ export type ZeroStateProps = {
3
+ description?: string;
4
+ showLinkAction?: LinkActionProps;
5
+ };
6
+ export declare const ZeroState: ({ description, showLinkAction }: ZeroStateProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ export declare const styles: {
2
+ container: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
3
+ alignItems: "center";
4
+ borderColor: string;
5
+ borderRadius: string;
6
+ borderStyle: "dashed";
7
+ borderWidth: string;
8
+ display: "flex";
9
+ flexDirection: "column";
10
+ gap: number;
11
+ padding: string;
12
+ textAlign: "center";
13
+ };
14
+ };
@@ -176,6 +176,7 @@ export declare const Element: ({ resources, ...props }: object & {
176
176
  title: string;
177
177
  };
178
178
  };
179
+ noFundingSource: string;
179
180
  };
180
181
  "rate-details": {
181
182
  total: string;
@@ -360,6 +361,12 @@ export declare const Element: ({ resources, ...props }: object & {
360
361
  subtitle: string;
361
362
  inlineMessage: string;
362
363
  };
364
+ errors: {
365
+ noCarriers: {
366
+ title: string;
367
+ subtitle: string;
368
+ };
369
+ };
363
370
  success: {
364
371
  title: string;
365
372
  subtitle: string;
@@ -405,6 +412,7 @@ export declare const Element: ({ resources, ...props }: object & {
405
412
  returnToAddressIsDifferent: string;
406
413
  setDefault: string;
407
414
  shipFrom: string;
415
+ noWarehouses: string;
408
416
  };
409
417
  "manage-funding": {
410
418
  actions: {
@@ -452,6 +460,7 @@ export declare const Element: ({ resources, ...props }: object & {
452
460
  errors: {
453
461
  balanceUnknown: string;
454
462
  unableToFindBalance: string;
463
+ noFundingSource: string;
455
464
  };
456
465
  byoc: {
457
466
  invoiceNotification: string;
@@ -551,6 +560,9 @@ export declare const Element: ({ resources, ...props }: object & {
551
560
  toastTitle: string;
552
561
  toastBody: string;
553
562
  };
563
+ deleteCarrierErrorTitle: string;
564
+ deleteCarrierErrorMessage: string;
565
+ loadingDeletingCarrier: string;
554
566
  };
555
567
  common: {
556
568
  actions: {
@@ -653,6 +665,7 @@ export declare const Element: ({ resources, ...props }: object & {
653
665
  };
654
666
  customs: {
655
667
  addDeclaration: string;
668
+ noResults: string;
656
669
  contents: {
657
670
  documents: string;
658
671
  gift: string;
@@ -660,6 +673,14 @@ export declare const Element: ({ resources, ...props }: object & {
660
673
  returnedGoods: string;
661
674
  sample: string;
662
675
  };
676
+ taxIds: {
677
+ sectionTitle: string;
678
+ addTaxId: string;
679
+ sectionTitleTooltip: string;
680
+ entityTypeTooltipText: string;
681
+ entityTypeTooltipPointOne: string;
682
+ entityTypeTooltipPointTwo: string;
683
+ };
663
684
  currencyChange: string;
664
685
  declarations: string;
665
686
  descriptionTooltip: {
@@ -677,6 +698,11 @@ export declare const Element: ({ resources, ...props }: object & {
677
698
  sku: string;
678
699
  value: string;
679
700
  valueQuantity: string;
701
+ taxId: string;
702
+ taxIdType: string;
703
+ taxIdTypeValue: string;
704
+ taxIssuingAuthority: string;
705
+ entityType: string;
680
706
  };
681
707
  nonDelivery: {
682
708
  returnToSender: string;
@@ -749,6 +775,8 @@ export declare const Element: ({ resources, ...props }: object & {
749
775
  shipment: string;
750
776
  shipments: string;
751
777
  warehouses: string;
778
+ funding: string;
779
+ paymentMethod: string;
752
780
  };
753
781
  months: {
754
782
  january: string;
@@ -827,6 +855,16 @@ export declare const Element: ({ resources, ...props }: object & {
827
855
  gram: string;
828
856
  kilogram: string;
829
857
  };
858
+ actionsMenu: {
859
+ menuTitle: string;
860
+ actions: {
861
+ printLabel: string;
862
+ voidLabel: string;
863
+ printForms: string;
864
+ edit: string;
865
+ remove: string;
866
+ };
867
+ };
830
868
  ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
831
869
  T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
832
870
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
@@ -842,7 +880,11 @@ export declare const Element: ({ resources, ...props }: object & {
842
880
  };
843
881
  "account-settings": {
844
882
  messages: {
845
- noFundingSources: string;
883
+ transactionHistory: {
884
+ noTransactions: string;
885
+ };
886
+ noFundingSourceDescription: string;
887
+ noFundingSourceAction: string;
846
888
  };
847
889
  title: string;
848
890
  sections: {
@@ -178,6 +178,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
178
178
  title: string;
179
179
  };
180
180
  };
181
+ noFundingSource: string;
181
182
  };
182
183
  "rate-details": {
183
184
  total: string;
@@ -362,6 +363,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
362
363
  subtitle: string;
363
364
  inlineMessage: string;
364
365
  };
366
+ errors: {
367
+ noCarriers: {
368
+ title: string;
369
+ subtitle: string;
370
+ };
371
+ };
365
372
  success: {
366
373
  title: string;
367
374
  subtitle: string;
@@ -407,6 +414,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
407
414
  returnToAddressIsDifferent: string;
408
415
  setDefault: string;
409
416
  shipFrom: string;
417
+ noWarehouses: string;
410
418
  };
411
419
  "manage-funding": {
412
420
  actions: {
@@ -454,6 +462,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
454
462
  errors: {
455
463
  balanceUnknown: string;
456
464
  unableToFindBalance: string;
465
+ noFundingSource: string;
457
466
  };
458
467
  byoc: {
459
468
  invoiceNotification: string;
@@ -553,6 +562,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
553
562
  toastTitle: string;
554
563
  toastBody: string;
555
564
  };
565
+ deleteCarrierErrorTitle: string;
566
+ deleteCarrierErrorMessage: string;
567
+ loadingDeletingCarrier: string;
556
568
  };
557
569
  common: {
558
570
  actions: {
@@ -655,6 +667,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
655
667
  };
656
668
  customs: {
657
669
  addDeclaration: string;
670
+ noResults: string;
658
671
  contents: {
659
672
  documents: string;
660
673
  gift: string;
@@ -662,6 +675,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
662
675
  returnedGoods: string;
663
676
  sample: string;
664
677
  };
678
+ taxIds: {
679
+ sectionTitle: string;
680
+ addTaxId: string;
681
+ sectionTitleTooltip: string;
682
+ entityTypeTooltipText: string;
683
+ entityTypeTooltipPointOne: string;
684
+ entityTypeTooltipPointTwo: string;
685
+ };
665
686
  currencyChange: string;
666
687
  declarations: string;
667
688
  descriptionTooltip: {
@@ -679,6 +700,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
679
700
  sku: string;
680
701
  value: string;
681
702
  valueQuantity: string;
703
+ taxId: string;
704
+ taxIdType: string;
705
+ taxIdTypeValue: string;
706
+ taxIssuingAuthority: string;
707
+ entityType: string;
682
708
  };
683
709
  nonDelivery: {
684
710
  returnToSender: string;
@@ -751,6 +777,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
751
777
  shipment: string;
752
778
  shipments: string;
753
779
  warehouses: string;
780
+ funding: string;
781
+ paymentMethod: string;
754
782
  };
755
783
  months: {
756
784
  january: string;
@@ -829,6 +857,16 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
829
857
  gram: string;
830
858
  kilogram: string;
831
859
  };
860
+ actionsMenu: {
861
+ menuTitle: string;
862
+ actions: {
863
+ printLabel: string;
864
+ voidLabel: string;
865
+ printForms: string;
866
+ edit: string;
867
+ remove: string;
868
+ };
869
+ };
832
870
  ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
833
871
  T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
834
872
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
@@ -844,7 +882,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
844
882
  };
845
883
  "account-settings": {
846
884
  messages: {
847
- noFundingSources: string;
885
+ transactionHistory: {
886
+ noTransactions: string;
887
+ };
888
+ noFundingSourceDescription: string;
889
+ noFundingSourceAction: string;
848
890
  };
849
891
  title: string;
850
892
  sections: {
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
+ import { ShipEngineCarriersProps } from "../../features/manage-carriers";
2
3
  /**
3
- * # ShipEngine-Carriers Element
4
+ * # Manage-Carriers Element
4
5
  *
5
6
  * @param ComponentProps The base props that will be passed into the `<ManageCarriers />` component.
6
7
  *
@@ -22,8 +23,8 @@
22
23
  * @see {@link ManageCarriers.ComponentProps | The props that are passed into the `<ManageCarriers />` component}
23
24
  * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ManageCarriers />` component}
24
25
  */
25
- export declare const Component: () => import("@emotion/react/jsx-runtime").JSX.Element;
26
- export declare const Element: ({ resources, ...props }: object & {
26
+ export declare const Component: ({ onRedirectToOnboarding }: ShipEngineCarriersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
27
+ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps & {
27
28
  resources?: {
28
29
  en: {
29
30
  "wallet-history": {
@@ -197,8 +198,31 @@ export declare const Element: ({ resources, ...props }: object & {
197
198
  notifications: {
198
199
  error: {
199
200
  title: string;
200
- };
201
+ }; /**
202
+ * # Manage-Carriers Element
203
+ *
204
+ * @param ComponentProps The base props that will be passed into the `<ManageCarriers />` component.
205
+ *
206
+ * @returns Element A React element that renders the `<ManageCarriers />` component allowing users
207
+ * to view a list of carriers that are connected to their ShipEngine account. This component is
208
+ * composed in the `<AccountSettings />` Element.
209
+ *
210
+ * @example
211
+ * ```tsx
212
+ * (() => {
213
+ * const features = useFeatures("Global");
214
+ *
215
+ * return <ManageCarriers.Element features={features} />;
216
+ * })();
217
+ * ```
218
+ *
219
+ * <br />
220
+ *
221
+ * @see {@link ManageCarriers.ComponentProps | The props that are passed into the `<ManageCarriers />` component}
222
+ * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ManageCarriers />` component}
223
+ */
201
224
  };
225
+ noFundingSource: string;
202
226
  };
203
227
  "rate-details": {
204
228
  total: string;
@@ -383,6 +407,12 @@ export declare const Element: ({ resources, ...props }: object & {
383
407
  subtitle: string;
384
408
  inlineMessage: string;
385
409
  };
410
+ errors: {
411
+ noCarriers: {
412
+ title: string;
413
+ subtitle: string;
414
+ };
415
+ };
386
416
  success: {
387
417
  title: string;
388
418
  subtitle: string;
@@ -428,6 +458,7 @@ export declare const Element: ({ resources, ...props }: object & {
428
458
  returnToAddressIsDifferent: string;
429
459
  setDefault: string;
430
460
  shipFrom: string;
461
+ noWarehouses: string;
431
462
  };
432
463
  "manage-funding": {
433
464
  actions: {
@@ -437,29 +468,6 @@ export declare const Element: ({ resources, ...props }: object & {
437
468
  saveRule: string;
438
469
  };
439
470
  autoFunding: {
440
- /**
441
- * # ShipEngine-Carriers Element
442
- *
443
- * @param ComponentProps The base props that will be passed into the `<ManageCarriers />` component.
444
- *
445
- * @returns Element A React element that renders the `<ManageCarriers />` component allowing users
446
- * to view a list of carriers that are connected to their ShipEngine account. This component is
447
- * composed in the `<AccountSettings />` Element.
448
- *
449
- * @example
450
- * ```tsx
451
- * (() => {
452
- * const features = useFeatures("Global");
453
- *
454
- * return <ManageCarriers.Element features={features} />;
455
- * })();
456
- * ```
457
- *
458
- * <br />
459
- *
460
- * @see {@link ManageCarriers.ComponentProps | The props that are passed into the `<ManageCarriers />` component}
461
- * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ManageCarriers />` component}
462
- */
463
471
  edit: string;
464
472
  editSettings: string;
465
473
  error: {
@@ -498,6 +506,7 @@ export declare const Element: ({ resources, ...props }: object & {
498
506
  errors: {
499
507
  balanceUnknown: string;
500
508
  unableToFindBalance: string;
509
+ noFundingSource: string;
501
510
  };
502
511
  byoc: {
503
512
  invoiceNotification: string;
@@ -513,29 +522,6 @@ export declare const Element: ({ resources, ...props }: object & {
513
522
  description: string;
514
523
  };
515
524
  purchase: {
516
- /**
517
- * # ShipEngine-Carriers Element
518
- *
519
- * @param ComponentProps The base props that will be passed into the `<ManageCarriers />` component.
520
- *
521
- * @returns Element A React element that renders the `<ManageCarriers />` component allowing users
522
- * to view a list of carriers that are connected to their ShipEngine account. This component is
523
- * composed in the `<AccountSettings />` Element.
524
- *
525
- * @example
526
- * ```tsx
527
- * (() => {
528
- * const features = useFeatures("Global");
529
- *
530
- * return <ManageCarriers.Element features={features} />;
531
- * })();
532
- * ```
533
- *
534
- * <br />
535
- *
536
- * @see {@link ManageCarriers.ComponentProps | The props that are passed into the `<ManageCarriers />` component}
537
- * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ManageCarriers />` component}
538
- */
539
525
  title: string;
540
526
  description: string;
541
527
  };
@@ -620,6 +606,9 @@ export declare const Element: ({ resources, ...props }: object & {
620
606
  toastTitle: string;
621
607
  toastBody: string;
622
608
  };
609
+ deleteCarrierErrorTitle: string;
610
+ deleteCarrierErrorMessage: string;
611
+ loadingDeletingCarrier: string;
623
612
  };
624
613
  common: {
625
614
  actions: {
@@ -630,7 +619,29 @@ export declare const Element: ({ resources, ...props }: object & {
630
619
  connect: string;
631
620
  continue: string;
632
621
  delete: string;
633
- edit: string;
622
+ edit: string; /**
623
+ * # Manage-Carriers Element
624
+ *
625
+ * @param ComponentProps The base props that will be passed into the `<ManageCarriers />` component.
626
+ *
627
+ * @returns Element A React element that renders the `<ManageCarriers />` component allowing users
628
+ * to view a list of carriers that are connected to their ShipEngine account. This component is
629
+ * composed in the `<AccountSettings />` Element.
630
+ *
631
+ * @example
632
+ * ```tsx
633
+ * (() => {
634
+ * const features = useFeatures("Global");
635
+ *
636
+ * return <ManageCarriers.Element features={features} />;
637
+ * })();
638
+ * ```
639
+ *
640
+ * <br />
641
+ *
642
+ * @see {@link ManageCarriers.ComponentProps | The props that are passed into the `<ManageCarriers />` component}
643
+ * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ManageCarriers />` component}
644
+ */
634
645
  hide: string;
635
646
  parse: string;
636
647
  purchase: string;
@@ -722,6 +733,7 @@ export declare const Element: ({ resources, ...props }: object & {
722
733
  };
723
734
  customs: {
724
735
  addDeclaration: string;
736
+ noResults: string;
725
737
  contents: {
726
738
  documents: string;
727
739
  gift: string;
@@ -729,6 +741,14 @@ export declare const Element: ({ resources, ...props }: object & {
729
741
  returnedGoods: string;
730
742
  sample: string;
731
743
  };
744
+ taxIds: {
745
+ sectionTitle: string;
746
+ addTaxId: string;
747
+ sectionTitleTooltip: string;
748
+ entityTypeTooltipText: string;
749
+ entityTypeTooltipPointOne: string;
750
+ entityTypeTooltipPointTwo: string;
751
+ };
732
752
  currencyChange: string;
733
753
  declarations: string;
734
754
  descriptionTooltip: {
@@ -746,6 +766,11 @@ export declare const Element: ({ resources, ...props }: object & {
746
766
  sku: string;
747
767
  value: string;
748
768
  valueQuantity: string;
769
+ taxId: string;
770
+ taxIdType: string;
771
+ taxIdTypeValue: string;
772
+ taxIssuingAuthority: string;
773
+ entityType: string;
749
774
  };
750
775
  nonDelivery: {
751
776
  returnToSender: string;
@@ -818,6 +843,8 @@ export declare const Element: ({ resources, ...props }: object & {
818
843
  shipment: string;
819
844
  shipments: string;
820
845
  warehouses: string;
846
+ funding: string;
847
+ paymentMethod: string;
821
848
  };
822
849
  months: {
823
850
  january: string;
@@ -896,6 +923,16 @@ export declare const Element: ({ resources, ...props }: object & {
896
923
  gram: string;
897
924
  kilogram: string;
898
925
  };
926
+ actionsMenu: {
927
+ menuTitle: string;
928
+ actions: {
929
+ printLabel: string;
930
+ voidLabel: string;
931
+ printForms: string;
932
+ edit: string;
933
+ remove: string;
934
+ };
935
+ };
899
936
  ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
900
937
  T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
901
938
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
@@ -911,7 +948,11 @@ export declare const Element: ({ resources, ...props }: object & {
911
948
  };
912
949
  "account-settings": {
913
950
  messages: {
914
- noFundingSources: string;
951
+ transactionHistory: {
952
+ noTransactions: string;
953
+ };
954
+ noFundingSourceDescription: string;
955
+ noFundingSourceAction: string;
915
956
  };
916
957
  title: string;
917
958
  sections: {