@shipengine/elements 0.24.0 → 0.26.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 (74) hide show
  1. package/index.cjs +1442 -654
  2. package/index.js +1449 -668
  3. package/package.json +13 -4
  4. package/src/components/error-display/error-display.d.ts +1 -0
  5. package/src/components/error-display/error-display.styles.d.ts +19 -0
  6. package/src/components/error-display/index.d.ts +1 -0
  7. package/src/components/field/field.styles.d.ts +2 -12
  8. package/src/components/field/rate-card/rate-card.d.ts +1 -1
  9. package/src/components/history/history-card/history-card.styles.d.ts +12 -14
  10. package/src/components/history/history-card-extension/history-card-extension.d.ts +1 -0
  11. package/src/components/history/history-card-extension/history-card-extension.styles.d.ts +26 -0
  12. package/src/components/history/history-card-extension/index.d.ts +1 -0
  13. package/src/components/history/index.d.ts +1 -0
  14. package/src/components/index.d.ts +1 -0
  15. package/src/components/label/label.d.ts +1 -1
  16. package/src/components/label/label.styles.d.ts +5 -1
  17. package/src/components/label-layout/label-layout-settings.d.ts +3 -1
  18. package/src/components/link-action/link-action.d.ts +3 -1
  19. package/src/components/powered-by-shipengine/index.d.ts +1 -0
  20. package/src/components/powered-by-shipengine/powered-by-shipengine.d.ts +1 -0
  21. package/src/components/powered-by-shipengine/powered-by-shipengine.styles.d.ts +11 -0
  22. package/src/components/save-status/index.d.ts +2 -0
  23. package/src/components/save-status/save-status-styles.d.ts +43 -0
  24. package/src/components/save-status/save-status.d.ts +6 -0
  25. package/src/components/templates/index.d.ts +0 -1
  26. package/src/components/templates/rate-form/rate-form.d.ts +4 -1
  27. package/src/components/unit-settings/unit-settings.d.ts +1 -4
  28. package/src/constants/shipengine/address.d.ts +2 -0
  29. package/src/elements/configure-shipment/hooks/use-rates-form.d.ts +2 -0
  30. package/src/elements/list-carriers/list-carriers.d.ts +29 -14
  31. package/src/elements/manage-warehouses/manage-warehouses.d.ts +29 -14
  32. package/src/elements/onboarding/onboarding.d.ts +29 -14
  33. package/src/elements/purchase-label/hooks/use-load-or-create-shipment.d.ts +6 -0
  34. package/src/elements/purchase-label/purchase-label-by-shipment.d.ts +5 -2
  35. package/src/elements/purchase-label/purchase-label.d.ts +41 -20
  36. package/src/elements/view-shipment/view-shipment.d.ts +29 -14
  37. package/src/{components/templates/void-label/void-label.d.ts → elements/void-label/components/actions/actions.d.ts} +3 -3
  38. package/src/elements/void-label/components/actions/index.d.ts +1 -0
  39. package/src/elements/void-label/components/index.d.ts +2 -0
  40. package/src/elements/void-label/components/message/index.d.ts +1 -0
  41. package/src/elements/void-label/components/message/message.d.ts +6 -0
  42. package/src/elements/void-label/void-label.d.ts +29 -14
  43. package/src/factories/shipengine/wallet-history.d.ts +52 -0
  44. package/src/features/wallet-history/wallet-history.styles.d.ts +4 -0
  45. package/src/hooks/options/index.d.ts +1 -0
  46. package/src/hooks/options/use-package-options.d.ts +1 -1
  47. package/src/hooks/options/use-service-code-options.d.ts +1 -1
  48. package/src/hooks/options/use-shipment-metadata.d.ts +8 -0
  49. package/src/hooks/options/use-shipping-presets-options.d.ts +2 -1
  50. package/src/hooks/use-get-or-create-shipment.d.ts +2 -0
  51. package/src/locales/en/index.d.ts +29 -14
  52. package/src/mocks/account-settings/handlers.d.ts +8 -0
  53. package/src/mocks/account-settings/index.d.ts +1 -0
  54. package/src/mocks/index.d.ts +1 -0
  55. package/src/mocks/server.d.ts +1 -0
  56. package/src/testing/extensions/index.d.ts +2 -0
  57. package/src/testing/extensions/matchers/extend-matchers.d.ts +8 -0
  58. package/src/testing/extensions/matchers/index.d.ts +1 -0
  59. package/src/testing/extensions/matchers/matchers.d.ts +1 -0
  60. package/src/testing/extensions/matchers/to-have-loading-spinner.d.ts +2 -0
  61. package/src/testing/extensions/queries/by-icon-name.d.ts +4 -0
  62. package/src/testing/extensions/queries/index.d.ts +57 -0
  63. package/src/testing/extensions/queries/queries.d.ts +1 -0
  64. package/src/testing/index.d.ts +1 -1
  65. package/src/testing/test-utils.d.ts +292 -0
  66. package/src/utilities/error.d.ts +13 -0
  67. package/src/utilities/i18nDateUtils.d.ts +16 -0
  68. package/src/utilities/rates.d.ts +1 -1
  69. package/src/utilities/shipengine/address.d.ts +4 -0
  70. package/src/utilities/shipengine/carrier.d.ts +1 -0
  71. package/vite.config.d.ts +2 -0
  72. package/src/components/templates/void-label/index.d.ts +0 -1
  73. package/src/public-sdk.d.ts +0 -38
  74. package/src/testing/render.d.ts +0 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/elements",
3
- "version": "0.24.0",
3
+ "version": "0.26.0",
4
4
  "typedoc": {
5
5
  "entryPoint": "./src/index.ts",
6
6
  "readmeFile": "../../README.md",
@@ -27,21 +27,30 @@
27
27
  "@emotion/serialize": "1.1.1",
28
28
  "@faker-js/faker": "7.6.0",
29
29
  "@hookform/resolvers": "2.9.1",
30
+ "@jest/globals": "28.1.3",
30
31
  "@packlink/brands": "3.24.0",
31
32
  "@packlink/giger-theme": "1.3.1",
32
- "@shipengine/alchemy": "0.4.13",
33
- "@shipengine/js-api": "0.7.0",
33
+ "@shipengine/alchemy": "0.4.18",
34
+ "@shipengine/js-api": "0.10.0",
35
+ "@shipengine/react-api": "0.5.6",
36
+ "@storybook/addons": "6.5.16",
37
+ "@storybook/components": "7.0.0-rc.1",
38
+ "@storybook/core-events": "7.0.0-rc.1",
34
39
  "@storybook/manager-api": "7.0.0-rc.1",
35
40
  "@storybook/theming": "7.0.0-rc.1",
41
+ "@testing-library/dom": "8.19.0",
42
+ "@vitejs/plugin-react": "1.3.2",
36
43
  "axios": "0.26.1",
37
44
  "card-validator": "8.1.1",
38
45
  "copy-to-clipboard": "3.3.3",
46
+ "date-fns": "2.29.3",
47
+ "expect": "28.1.3",
39
48
  "humps": "2.0.1",
40
49
  "js-base64": "3.7.3",
41
50
  "libphonenumber-js": "1.10.14",
42
51
  "lodash": "4.17.21",
43
52
  "react": "18.2.0",
44
- "react-datepicker": "4.8.0",
53
+ "react-datepicker": "4.11.0",
45
54
  "react-dom": "18.2.0",
46
55
  "react-hook-form": "7.40.0",
47
56
  "react-query": "3.39.3",
@@ -0,0 +1 @@
1
+ export declare const ErrorDisplay: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ export declare const styles: {
2
+ errorContainer: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
3
+ alignItems: "center";
4
+ backgroundColor: string;
5
+ display: "flex";
6
+ flexDirection: "column";
7
+ paddingBottom: number;
8
+ paddingTop: number;
9
+ rowGap: number;
10
+ };
11
+ errorCTA: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
12
+ color: string;
13
+ fontSize: string;
14
+ lineHeight: string;
15
+ };
16
+ errorHeading: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
17
+ fontSize: string;
18
+ };
19
+ };
@@ -0,0 +1 @@
1
+ export * from "./error-display";
@@ -1,13 +1,3 @@
1
+ import { Interpolation } from "@emotion/serialize";
1
2
  import { Theme } from "@packlink/giger-theme";
2
- export declare const getOverrideStyles: (theme: Theme) => {
3
- "&& input, && span[role='button']": {
4
- cursor: string;
5
- fontWeight: number;
6
- };
7
- "&& input:hover": {
8
- cursor: string;
9
- };
10
- "&&.disabled input:hover": {
11
- cursor: string;
12
- };
13
- };
3
+ export declare const getOverrideStyles: (theme: Theme) => Interpolation<Theme>;
@@ -8,4 +8,4 @@ export type RateCardProps = Partial<RateOption> & WithCommonProps<{
8
8
  voided?: boolean;
9
9
  voidedAt?: string;
10
10
  }>;
11
- export declare const RateCard: ({ carrierCode, carrierFriendlyName, carrierNickname, children, className, confirmationAmount, deliveryDays, insuranceAmount, isAcknowledged, messages, onClick, onClickAcknowledgement, otherAmount, rateId, requiresAcknowledgement, selected, serviceCode, serviceType, shippingAmount, taxAmount, voided, voidedAt, }: RateCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export declare const RateCard: ({ carrierCode, carrierFriendlyName, carrierNickname, children, className, confirmationAmount, deliveryDays, insuranceAmount, isAcknowledged, messages, onClick, onClickAcknowledgement, otherAmount, rateId, requiresAcknowledgement, selected, serviceCode, packageType, serviceType, shippingAmount, taxAmount, voided, voidedAt, }: RateCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,9 +1,4 @@
1
- export declare const styles: (isReload?: boolean) => {
2
- amountTypography: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
3
- color: string;
4
- fontSize: string;
5
- marginLeft: string;
6
- };
1
+ export declare const styles: {
7
2
  balanceTypography: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
8
3
  color: string;
9
4
  marginLeft: string;
@@ -12,6 +7,7 @@ export declare const styles: (isReload?: boolean) => {
12
7
  "&:last-child": {
13
8
  alignItems: "flex-end";
14
9
  };
10
+ alignItems: "flex-start";
15
11
  display: "flex";
16
12
  flexDirection: "column";
17
13
  justifyContent: "space-between";
@@ -20,10 +16,6 @@ export declare const styles: (isReload?: boolean) => {
20
16
  cardContainer: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
21
17
  display: "flex";
22
18
  justifyContent: "space-between";
23
- padding: string;
24
- };
25
- carrierRow: {
26
- display: "flex";
27
19
  };
28
20
  carrierTypography: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
29
21
  color: string;
@@ -33,12 +25,18 @@ export declare const styles: (isReload?: boolean) => {
33
25
  dateTypography: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
34
26
  color: string;
35
27
  };
36
- providerTypography: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
28
+ getAmountTypography: (isReload?: boolean) => (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
37
29
  color: string;
38
- fontWeight: number;
30
+ fontSize: string;
31
+ marginLeft: string;
39
32
  };
40
- tagText: {
41
- textAlign: "center";
33
+ getTransactionTypeTypography: (transactionType?: string) => (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
34
+ color: string;
42
35
  textTransform: "capitalize";
43
36
  };
37
+ transactionDetails: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
38
+ alignItems: "center";
39
+ columnGap: number;
40
+ display: "flex";
41
+ };
44
42
  };
@@ -0,0 +1 @@
1
+ export declare const HistoryCardExtension: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,26 @@
1
+ export declare const styles: {
2
+ chevronTypography: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
3
+ color: string;
4
+ };
5
+ detailsBottomContainer: {
6
+ backgroundColor: "#f4f6f8";
7
+ padding: string;
8
+ };
9
+ detailsRow: {
10
+ display: "flex";
11
+ justifyContent: "space-between";
12
+ };
13
+ detailsTypography: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
14
+ color: string;
15
+ };
16
+ headingContainer: {
17
+ alignItems: "center";
18
+ display: "flex";
19
+ justifyContent: "space-between";
20
+ };
21
+ loadingStateContainer: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
22
+ display: "flex";
23
+ flexDirection: "column";
24
+ rowGap: number;
25
+ };
26
+ };
@@ -0,0 +1 @@
1
+ export * from "./history-card-extension";
@@ -1 +1,2 @@
1
1
  export * from "./history-card";
2
+ export * from "./history-card-extension";
@@ -18,6 +18,7 @@ export * from "./link-action";
18
18
  export * from "./loader";
19
19
  export * from "./manage-funding";
20
20
  export * from "./portal";
21
+ export * from "./powered-by-shipengine";
21
22
  export * from "./section";
22
23
  export * from "./spacer";
23
24
  export * from "./spread";
@@ -1,7 +1,7 @@
1
1
  import { WithConditionalCSSProp } from "@emotion/react/types/jsx-namespace";
2
2
  import { ITypographyProps, WithChildrenCommonProps } from "@packlink/giger";
3
3
  export type LabelProps = WithChildrenCommonProps<{
4
- spacing?: number;
4
+ spacing?: number | "spread";
5
5
  text: string;
6
6
  textProps?: WithConditionalCSSProp<ITypographyProps<"span">>;
7
7
  variant?: LabelVariant;
@@ -1,9 +1,13 @@
1
1
  import { LabelProps } from "./label";
2
- export declare const styles: (variant?: LabelProps["variant"], spacing?: number) => {
2
+ export declare const styles: ({ variant, spacing, }: {
3
+ spacing: LabelProps["spacing"];
4
+ variant: LabelProps["variant"];
5
+ }) => {
3
6
  labelContainer: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
4
7
  alignItems: "center";
5
8
  display: "flex";
6
9
  flexDirection: "column" | "row" | "row-reverse";
7
10
  gap: number;
11
+ justifyContent: "flex-start" | "space-between;";
8
12
  };
9
13
  };
@@ -1,5 +1,7 @@
1
1
  import { SE } from "@shipengine/alchemy";
2
2
  export type LabelLayoutSettingsProps = {
3
+ errors: SE.CodedError[] | null;
4
+ isSaving: boolean;
3
5
  onChange: (layout: SE.LabelLayout) => void;
4
6
  };
5
- export declare const LabelLayoutSettings: ({ onChange }: LabelLayoutSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
7
+ export declare const LabelLayoutSettings: ({ errors, isSaving, onChange }: LabelLayoutSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -5,10 +5,12 @@ declare const icons: {
5
5
  readonly checkFilled: IconNames.CHECK_FILLED;
6
6
  readonly copy: IconNames.COPY;
7
7
  readonly download: IconNames.DOWNLOAD;
8
+ readonly retry: IconNames.CIRCULAR_ARROW;
8
9
  };
9
10
  export type LinkActionProps = {
10
11
  icon?: keyof typeof icons;
12
+ isBold?: boolean;
11
13
  title: string;
12
14
  } & ILinkProps;
13
- export declare const LinkAction: ({ css, icon, isDisabled, isLoading, title, ...props }: LinkActionProps) => import("@emotion/react/jsx-runtime").JSX.Element;
15
+ export declare const LinkAction: ({ css, icon, isDisabled, isLoading, title, isBold, ...props }: LinkActionProps) => import("@emotion/react/jsx-runtime").JSX.Element;
14
16
  export {};
@@ -0,0 +1 @@
1
+ export * from './powered-by-shipengine';
@@ -0,0 +1 @@
1
+ export declare const PoweredByShipEngine: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ export declare const styles: {
2
+ poweredByShipEngine: {
3
+ display: "flex";
4
+ alignItems: "center";
5
+ justifyContent: "center";
6
+ textAlign: "center";
7
+ margin: string;
8
+ gap: string;
9
+ color: "#818F9C";
10
+ };
11
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./save-status";
2
+ export * from "./save-status-styles";
@@ -0,0 +1,43 @@
1
+ export declare const colors: {
2
+ green: string;
3
+ grey: string;
4
+ red: string;
5
+ };
6
+ export declare const styles: {
7
+ checkmark: () => {
8
+ animation: `${string} forwards`;
9
+ borderRadius: string;
10
+ height: string;
11
+ stroke: "#fff";
12
+ width: string;
13
+ };
14
+ checkmarkCheck: () => {
15
+ animation: `${string} 1s forwards`;
16
+ strokeDasharray: string;
17
+ strokeDashoffset: string;
18
+ };
19
+ container: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
20
+ alignItems: "center";
21
+ animation: `${string} 2.5s ease-in-out forwards`;
22
+ display: "flex";
23
+ justifyContent: "flex-start";
24
+ padding: string;
25
+ };
26
+ saved: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
27
+ color: string;
28
+ marginLeft: string;
29
+ };
30
+ saving: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
31
+ marginLeft: string;
32
+ };
33
+ savingContainer: () => {
34
+ alignItems: "center";
35
+ color: string;
36
+ display: "flex";
37
+ justifyContent: "flex-start";
38
+ };
39
+ savingFailed: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
40
+ color: "#EE3B3F";
41
+ marginLeft: string;
42
+ };
43
+ };
@@ -0,0 +1,6 @@
1
+ import { SE } from "@shipengine/alchemy";
2
+ export type SaveStatusProps = {
3
+ errors: SE.CodedError[] | null;
4
+ isSaving: boolean;
5
+ };
6
+ export declare const SaveStatus: ({ errors, isSaving }: SaveStatusProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -17,7 +17,6 @@ export * from "./shipment-form";
17
17
  export * from "./shipment";
18
18
  export * from "./suspend-shipment";
19
19
  export * from "./warehouse-form";
20
- export * from "./void-label";
21
20
  export * from "./wallet-form";
22
21
  export * from "../address-preference-context";
23
22
  export * from "./address-preference-select";
@@ -2,6 +2,7 @@ import { SE } from "@shipengine/alchemy";
2
2
  export type RateFormFeatures = {
3
3
  enableFunding?: boolean;
4
4
  enableGlobalPostFiltering?: boolean;
5
+ labelLayout?: boolean;
5
6
  nicknameRate?: boolean;
6
7
  saveRate?: boolean;
7
8
  };
@@ -14,6 +15,8 @@ export type RateFormProps = {
14
15
  features?: RateFormFeatures;
15
16
  isLoading?: boolean;
16
17
  labelErrors?: SE.CodedError[];
18
+ labels?: SE.Label[];
19
+ labelsLoading?: boolean;
17
20
  onSave?: (rate: Pick<SE.Rate, "carrierId" | "serviceCode">) => Promise<void> | void;
18
21
  onSelectRate?: (rateId: string) => void;
19
22
  onSubmit?: (rateId: string) => Promise<void> | void;
@@ -21,4 +24,4 @@ export type RateFormProps = {
21
24
  rates?: SE.Rate[];
22
25
  shipment?: SE.SalesOrderShipment;
23
26
  };
24
- export declare const RateForm: ({ carriers, disabled, errors, displayableErrors, displayableLabelErrors, features, labelErrors, isLoading, onSave, onSelectRate, onSubmit, rates, shipment, outOfBandDisplayableErrors, }: RateFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
27
+ export declare const RateForm: ({ carriers, disabled, errors, displayableErrors, displayableLabelErrors, features, labelErrors, labels, labelsLoading, isLoading, onSave, onSelectRate, onSubmit, rates, shipment, outOfBandDisplayableErrors, }: RateFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +1 @@
1
- export type UnitSettingsProps = {
2
- onChange?: () => void;
3
- };
4
- export declare const UnitSettings: ({ onChange }: UnitSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
1
+ export declare const UnitSettings: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -2,6 +2,7 @@ export type CountryRules = {
2
2
  hasEuCustomsRules?: boolean;
3
3
  hasProvinces?: boolean;
4
4
  isUnitedStatesTerritory?: boolean;
5
+ isUnsupportedByUps?: boolean;
5
6
  supportsByoa?: boolean;
6
7
  };
7
8
  export declare class Country<T extends string, U extends string> {
@@ -11,6 +12,7 @@ export declare class Country<T extends string, U extends string> {
11
12
  hasProvinces: boolean;
12
13
  isUnitedStatesTerritory: boolean;
13
14
  supportsByoa: boolean;
15
+ isUnsupportedByUps: boolean;
14
16
  constructor(name: T, code: U, rules?: CountryRules);
15
17
  }
16
18
  export declare const countries: readonly [Country<"Afghanistan", "AF">, Country<"Aland Islands", "AX">, Country<"Albania", "AL">, Country<"Algeria", "DZ">, Country<"American Samoa", "AS">, Country<"Andorra", "AD">, Country<"Angola", "AO">, Country<"Anguilla", "AI">, Country<"Antarctica", "AQ">, Country<"Antigua Barbuda", "AG">, Country<"Argentina", "AR">, Country<"Armenia", "AM">, Country<"Aruba", "AW">, Country<"Australia", "AU">, Country<"Austria", "AT">, Country<"Azerbaijan", "AZ">, Country<"Bahamas", "BS">, Country<"Bahrain", "BH">, Country<"Bangladesh", "BD">, Country<"Barbados", "BB">, Country<"Belarus", "BY">, Country<"Belgium", "BE">, Country<"Belize", "BZ">, Country<"Benin", "BJ">, Country<"Bermuda", "BM">, Country<"Bhutan", "BT">, Country<"Bolivia", "BO">, Country<"Bonaire, Sint Eustatius And Saba", "BQ">, Country<"Bosnia and Herzegovina", "BA">, Country<"Botswana", "BW">, Country<"Brazil", "BR">, Country<"British Indian Ocean Territory", "IO">, Country<"British Virgin Islands", "VG">, Country<"Brunei Darussalam", "BN">, Country<"Bulgaria", "BG">, Country<"Burkina Faso", "BF">, Country<"Burundi", "BI">, Country<"Canada", "CA">, Country<"Cambodia", "KH">, Country<"Cameroon", "CM">, Country<"Cape Verde Islands", "CV">, Country<"Cayman Islands", "KY">, Country<"Central African Republic", "CF">, Country<"Chad", "TD">, Country<"Chile", "CL">, Country<"China", "CN">, Country<"Christmas Island", "CX">, Country<"Cocos(Keeling) Islands", "CC">, Country<"Colombia", "CO">, Country<"Comoros", "KM">, Country<"Congo", "CG">, Country<"Congo, The Democratic Republic of", "CD">, Country<"Cook Islands", "CK">, Country<"Costa Rica", "CR">, Country<"Croatia", "HR">, Country<"Cuba", "CU">, Country<"Curacao", "CW">, Country<"Cyprus", "CY">, Country<"Czech Republic", "CZ">, Country<"Denmark", "DK">, Country<"Djibouti", "DJ">, Country<"Dominica", "DM">, Country<"Dominican Republic", "DO">, Country<"Ecuador", "EC">, Country<"Egypt", "EG">, Country<"El Salvador", "SV">, Country<"Equatorial Guinea", "GQ">, Country<"Eritrea", "ER">, Country<"Estonia", "EE">, Country<"Ethiopia", "ET">, Country<"Falkland Islands", "FK">, Country<"Faroe Islands", "FO">, Country<"Federated States of Micronesia", "FM">, Country<"Fiji", "FJ">, Country<"Finland", "FI">, Country<"France", "FR">, Country<"French Guiana", "GF">, Country<"French Polynesia", "PF">, Country<"French Southern Territories", "TF">, Country<"Gabon", "GA">, Country<"Gambia", "GM">, Country<"Georgia", "GE">, Country<"Germany", "DE">, Country<"Ghana", "GH">, Country<"Gibraltar", "GI">, Country<"Greece", "GR">, Country<"Greenland", "GL">, Country<"Grenada", "GD">, Country<"Guadeloupe", "GP">, Country<"Guam", "GU">, Country<"Guatemala", "GT">, Country<"Guernsey", "GG">, Country<"Guinea", "GN">, Country<"Guinea - Bissau", "GW">, Country<"Guyana", "GY">, Country<"Haiti", "HT">, Country<"Holy See", "VA">, Country<"Honduras", "HN">, Country<"Hong Kong", "HK">, Country<"Hungary", "HU">, Country<"Iceland", "IS">, Country<"India", "IN">, Country<"Indonesia", "ID">, Country<"Iran", "IR">, Country<"Iraq", "IQ">, Country<"Ireland", "IE">, Country<"Isle of Man", "IM">, Country<"Israel", "IL">, Country<"Italy", "IT">, Country<"Ivory Coast", "CI">, Country<"Jamaica", "JM">, Country<"Japan", "JP">, Country<"Jersey", "JE">, Country<"Jordan", "JO">, Country<"Kazakhstan", "KZ">, Country<"Kenya", "KE">, Country<"Kiribati", "KI">, Country<"Korea, Republic of", "KR">, Country<"Kuwait", "KW">, Country<"Kyrgyzstan", "KG">, Country<"Laos", "LA">, Country<"Latvia", "LV">, Country<"Lebanon", "LB">, Country<"Lesotho", "LS">, Country<"Liberia", "LR">, Country<"Libya", "LY">, Country<"Liechtenstein", "LI">, Country<"Lithuania", "LT">, Country<"Luxembourg", "LU">, Country<"Macao", "MO">, Country<"Macedonia", "MK">, Country<"Madagascar", "MG">, Country<"Malawi", "MW">, Country<"Malaysia", "MY">, Country<"Maldives", "MV">, Country<"Mali", "ML">, Country<"Malta", "MT">, Country<"Marshall Islands", "MH">, Country<"Martinique", "MQ">, Country<"Mauritania", "MR">, Country<"Mauritius0", "MU">, Country<"Mayotte", "YT">, Country<"Mexico", "MX">, Country<"Moldova", "MD">, Country<"Monaco", "MC">, Country<"Mongolia", "MN">, Country<"Montenegro", "ME">, Country<"Montserrat", "MS">, Country<"Morocco", "MA">, Country<"Mozambique", "MZ">, Country<"Myanmar", "MM">, Country<"Namibia", "NA">, Country<"Nauru", "NR">, Country<"Nepal", "NP">, Country<"Netherlands", "NL">, Country<"Netherlands Antilles", "AN">, Country<"New Caledonia", "NC">, Country<"New Zealand", "NZ">, Country<"Nicaragua", "NI">, Country<"Niger", "NE">, Country<"Nigeria", "NG">, Country<"Niue", "NU">, Country<"Norfolk Island", "NF">, Country<"North Korea", "KP">, Country<"Northern Mariana Islands", "MP">, Country<"Norway", "NO">, Country<"Oman", "OM">, Country<"Pakistan", "PK">, Country<"Palau", "PW">, Country<"Palestinian Territory", "PS">, Country<"Panama", "PA">, Country<"Papua New Guinea", "PG">, Country<"Paraguay", "PY">, Country<"Peru", "PE">, Country<"Philippines", "PH">, Country<"Pitcairn Island", "PN">, Country<"Poland", "PL">, Country<"Portugal", "PT">, Country<"Puerto Rico", "PR">, Country<"Qatar", "QA">, Country<"Reunion", "RE">, Country<"Romania", "RO">, Country<"Russia", "RU">, Country<"Rwanda", "RW">, Country<"Saint Barthelemy", "BL">, Country<"Saint Helena", "SH">, Country<"Saint Kitts and Nevis", "KN">, Country<"Saint Lucia", "LC">, Country<"Saint Martin", "MF">, Country<"Saint Pierre and Miquelon", "PM">, Country<"Saint Vincent & the Grenadines", "VC">, Country<"Samoa", "WS">, Country<"San Marino", "SM">, Country<"Sao Tome and Principe", "ST">, Country<"Saudi Arabia", "SA">, Country<"Senegal", "SN">, Country<"Serbia", "RS">, Country<"Seychelles", "SC">, Country<"Sierra Leone", "SL">, Country<"Singapore", "SG">, Country<"Sint Maarten(Dutch)", "SX">, Country<"Slovakia", "SK">, Country<"Slovenia", "SI">, Country<"Solomon Islands", "SB">, Country<"Somalia", "SO">, Country<"South Africa", "ZA">, Country<"South Georgia & the South Sandwich Islands", "GS">, Country<"South Sudan", "SS">, Country<"Spain", "ES">, Country<"Sri Lanka", "LK">, Country<"Sudan", "SD">, Country<"Suriname", "SR">, Country<"Svalbard & Jan Mayen Islands", "SJ">, Country<"Swaziland", "SZ">, Country<"Sweden", "SE">, Country<"Switzerland", "CH">, Country<"Syria", "SY">, Country<"Taiwan", "TW">, Country<"Tajikistan", "TJ">, Country<"Tanzania", "TZ">, Country<"Thailand", "TH">, Country<"Timor - Leste(formerly East Timor)", "TL">, Country<"Togo", "TG">, Country<"Tokelau", "TK">, Country<"Tonga", "TO">, Country<"Trinidad and Tobago", "TT">, Country<"Tunisia", "TN">, Country<"Turkey", "TR">, Country<"Turkmenistan", "TM">, Country<"Turks and Caicos Islands", "TC">, Country<"Tuvalu", "TV">, Country<"Uganda", "UG">, Country<"Ukraine", "UA">, Country<"United Arab Emirates", "AE">, Country<"United Kingdom", "GB">, Country<"United States Virgin Islands", "VI">, Country<"U.S. Minor Outlying Islands", "UM">, Country<"United States of America", "US">, Country<"Uruguay", "UY">, Country<"Uzbekistan", "UZ">, Country<"Vanuatu", "VU">, Country<"Venezuela", "VE">, Country<"Vietnam", "VN">, Country<"Wallis and Futuna Islands", "WF">, Country<"Western Sahara", "EH">, Country<"Yemen", "YE">, Country<"Zambia", "ZM">, Country<"Zimbabwe", "ZW">];
@@ -17,6 +17,8 @@ export declare const useRatesForm: ({ onBeforeLabelCreate, onLabelCreateFailure,
17
17
  errors: SE.CodedError[] | undefined;
18
18
  isLoading: boolean;
19
19
  labelErrors: SE.CodedError[] | undefined;
20
+ labels: SE.Label[] | undefined;
21
+ labelsLoading: boolean;
20
22
  onSave: ({ carrierId, serviceCode }: Pick<SE.Rate, "carrierId" | "serviceCode">) => Promise<void>;
21
23
  onSubmit: (rateId: string) => Promise<void>;
22
24
  rates: SE.Rate[] | undefined;
@@ -23,6 +23,9 @@ export declare const Element: ({ resources, ...props }: object & {
23
23
  confirmVoid: string;
24
24
  viewShipment: string;
25
25
  };
26
+ errorMessages: {
27
+ labelIdRequired: string;
28
+ };
26
29
  resultMessages: {
27
30
  approved: string;
28
31
  rejected: string;
@@ -168,6 +171,7 @@ export declare const Element: ({ resources, ...props }: object & {
168
171
  shipDate: string;
169
172
  service: string;
170
173
  shipTo: string;
174
+ addShipToAddress: string;
171
175
  warehouse: string;
172
176
  weight: {
173
177
  whole: string;
@@ -194,6 +198,7 @@ export declare const Element: ({ resources, ...props }: object & {
194
198
  };
195
199
  rates: {
196
200
  uspsMediaMailAcknowledgement: string;
201
+ uspsFirstClassMailAcknowledgement_leof: string;
197
202
  };
198
203
  shipToAddressFormFields: string;
199
204
  sections: {
@@ -232,21 +237,8 @@ export declare const Element: ({ resources, ...props }: object & {
232
237
  };
233
238
  };
234
239
  "manage-defaults": {
235
- units: {
236
- title: string;
237
- dimensions: {
238
- title: string;
239
- standard: string;
240
- metric: string;
241
- };
242
- weight: {
243
- title: string;
244
- standard: string;
245
- g: string;
246
- kg: string;
247
- };
248
- };
249
240
  label: {
241
+ title: string;
250
242
  letter: {
251
243
  title: string;
252
244
  description: string;
@@ -259,7 +251,25 @@ export declare const Element: ({ resources, ...props }: object & {
259
251
  title: string;
260
252
  description: string;
261
253
  };
254
+ };
255
+ status: {
256
+ saving: string;
257
+ saved: string;
258
+ savingFailed: string;
259
+ };
260
+ units: {
262
261
  title: string;
262
+ dimensions: {
263
+ title: string;
264
+ standard: string;
265
+ metric: string;
266
+ };
267
+ weight: {
268
+ title: string;
269
+ standard: string;
270
+ g: string;
271
+ kg: string;
272
+ };
263
273
  };
264
274
  };
265
275
  "manage-warehouses": {
@@ -470,9 +480,11 @@ export declare const Element: ({ resources, ...props }: object & {
470
480
  invalidNameOrCompany: string;
471
481
  noWarehouses: string;
472
482
  unableToLoad: {
483
+ accountSettings: string;
473
484
  autoFundingSettings: string;
474
485
  carrier: string;
475
486
  carriers: string;
487
+ label: string;
476
488
  salesOrder: string;
477
489
  shipment: string;
478
490
  warehouses: string;
@@ -498,10 +510,12 @@ export declare const Element: ({ resources, ...props }: object & {
498
510
  thirdParty: string;
499
511
  };
500
512
  loading: {
513
+ accountSettings: string;
501
514
  carrier: string;
502
515
  carriers: string;
503
516
  data: string;
504
517
  importingSalesOrder: string;
518
+ label: string;
505
519
  onboarding: string;
506
520
  salesOrder: string;
507
521
  shipment: string;
@@ -528,6 +542,7 @@ export declare const Element: ({ resources, ...props }: object & {
528
542
  packageCodes: {
529
543
  package: string;
530
544
  };
545
+ "powered-by": string;
531
546
  schema: {
532
547
  optionalLabel: string;
533
548
  };
@@ -27,6 +27,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
27
27
  confirmVoid: string;
28
28
  viewShipment: string;
29
29
  };
30
+ errorMessages: {
31
+ labelIdRequired: string;
32
+ };
30
33
  resultMessages: {
31
34
  approved: string;
32
35
  rejected: string;
@@ -172,6 +175,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
172
175
  shipDate: string;
173
176
  service: string;
174
177
  shipTo: string;
178
+ addShipToAddress: string;
175
179
  warehouse: string;
176
180
  weight: {
177
181
  whole: string;
@@ -198,6 +202,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
198
202
  };
199
203
  rates: {
200
204
  uspsMediaMailAcknowledgement: string;
205
+ uspsFirstClassMailAcknowledgement_leof: string;
201
206
  };
202
207
  shipToAddressFormFields: string;
203
208
  sections: {
@@ -236,21 +241,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
236
241
  };
237
242
  };
238
243
  "manage-defaults": {
239
- units: {
240
- title: string;
241
- dimensions: {
242
- title: string;
243
- standard: string;
244
- metric: string;
245
- };
246
- weight: {
247
- title: string;
248
- standard: string;
249
- g: string;
250
- kg: string;
251
- };
252
- };
253
244
  label: {
245
+ title: string;
254
246
  letter: {
255
247
  title: string;
256
248
  description: string;
@@ -263,7 +255,25 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
263
255
  title: string;
264
256
  description: string;
265
257
  };
258
+ };
259
+ status: {
260
+ saving: string;
261
+ saved: string;
262
+ savingFailed: string;
263
+ };
264
+ units: {
266
265
  title: string;
266
+ dimensions: {
267
+ title: string;
268
+ standard: string;
269
+ metric: string;
270
+ };
271
+ weight: {
272
+ title: string;
273
+ standard: string;
274
+ g: string;
275
+ kg: string;
276
+ };
267
277
  };
268
278
  };
269
279
  "manage-warehouses": {
@@ -474,9 +484,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
474
484
  invalidNameOrCompany: string;
475
485
  noWarehouses: string;
476
486
  unableToLoad: {
487
+ accountSettings: string;
477
488
  autoFundingSettings: string;
478
489
  carrier: string;
479
490
  carriers: string;
491
+ label: string;
480
492
  salesOrder: string;
481
493
  shipment: string;
482
494
  warehouses: string;
@@ -502,10 +514,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
502
514
  thirdParty: string;
503
515
  };
504
516
  loading: {
517
+ accountSettings: string;
505
518
  carrier: string;
506
519
  carriers: string;
507
520
  data: string;
508
521
  importingSalesOrder: string;
522
+ label: string;
509
523
  onboarding: string;
510
524
  salesOrder: string;
511
525
  shipment: string;
@@ -532,6 +546,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
532
546
  packageCodes: {
533
547
  package: string;
534
548
  };
549
+ "powered-by": string;
535
550
  schema: {
536
551
  optionalLabel: string;
537
552
  };