@shipengine/elements 1.6.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/index.cjs +17376 -16774
  2. package/index.js +17372 -16776
  3. package/package.json +3 -3
  4. package/src/components/collapsible-panel/collapsible-panel.d.ts +6 -1
  5. package/src/components/collapsible-panel/collapsible-panel.styles.d.ts +3 -4
  6. package/src/components/display-term/display-term.d.ts +2 -2
  7. package/src/components/display-term/display-term.styles.d.ts +2 -0
  8. package/src/components/field/rate-card/cost-breakdown/cost-breakdown.d.ts +1 -1
  9. package/src/components/index.d.ts +6 -5
  10. package/src/components/templates/address-form/address-schema.d.ts +2 -0
  11. package/src/components/templates/index.d.ts +1 -1
  12. package/src/components/templates/rate-form/rate-form.d.ts +2 -1
  13. package/src/components/templates/wallet-form/wallet-form.d.ts +3 -1
  14. package/src/components/templates/wallet-form/wallet-form.styles.d.ts +3 -0
  15. package/src/components/templates/wallet-form/wallet-schema.d.ts +46 -2
  16. package/src/components/vat-form/index.d.ts +1 -0
  17. package/src/components/vat-form/vat-form-schema.d.ts +10 -0
  18. package/src/components/vat-form/vat-form.d.ts +6 -0
  19. package/src/components/vat-form/vat-form.styles.d.ts +9 -0
  20. package/src/elements/external-carriers/external-carriers.d.ts +130 -101
  21. package/src/elements/index.d.ts +2 -1
  22. package/src/elements/label-layout/label-layout-element.d.ts +107 -74
  23. package/src/elements/labels-grid/labels-grid.d.ts +107 -74
  24. package/src/elements/manage-funding/manage-funding-element.d.ts +107 -74
  25. package/src/elements/manage-warehouses/manage-warehouses.d.ts +110 -117
  26. package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +107 -74
  27. package/src/elements/purchase-label/purchase-label.d.ts +131 -81
  28. package/src/elements/shipengine-carriers/index.d.ts +1 -0
  29. package/src/elements/shipengine-carriers/shipengine-carriers.d.ts +881 -0
  30. package/src/elements/shipments-grid/shipments-grid.d.ts +107 -74
  31. package/src/elements/theme-creator/theme-creator.d.ts +107 -74
  32. package/src/elements/unit-settings/unit-settings-element.d.ts +107 -74
  33. package/src/elements/vat-settings/index.d.ts +1 -0
  34. package/src/elements/vat-settings/vat-settings-element.d.ts +818 -0
  35. package/src/elements/view-shipment/view-shipment.d.ts +121 -89
  36. package/src/elements/void-label/components/message/message.d.ts +3 -2
  37. package/src/elements/void-label/void-label.d.ts +134 -93
  38. package/src/elements/wallet-history/wallet-history-element.d.ts +107 -74
  39. package/src/features/index.d.ts +6 -5
  40. package/src/features/label-layout/label-layout.d.ts +6 -1
  41. package/src/features/label-layout/use-label-layout.d.ts +3 -3
  42. package/src/features/manage-warehouses/index.d.ts +1 -0
  43. package/src/features/manage-warehouses/manage-warehouses.d.ts +16 -1
  44. package/src/features/manage-warehouses/use-manage-warehouses.d.ts +15 -0
  45. package/src/features/shipengine-carriers/hooks/use-carrier-metadata.d.ts +13 -0
  46. package/src/features/shipengine-carriers/index.d.ts +1 -0
  47. package/src/features/shipengine-carriers/shipengine-carriers-row/index.d.ts +1 -0
  48. package/src/features/{list-carriers/list-carriers-row/list-carriers-row.d.ts → shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.d.ts} +2 -2
  49. package/src/features/shipengine-carriers/shipengine-carriers.d.ts +10 -0
  50. package/src/features/unit-settings/index.d.ts +1 -0
  51. package/src/features/unit-settings/unit-settings.d.ts +9 -1
  52. package/src/features/unit-settings/use-unit-settings.d.ts +10 -0
  53. package/src/features/vat-settings/index.d.ts +2 -0
  54. package/src/features/vat-settings/use-vat-settings.d.ts +8 -0
  55. package/src/features/vat-settings/vat-settings.d.ts +9 -0
  56. package/src/features/vat-settings/vat-settings.styles.d.ts +29 -0
  57. package/src/hooks/index.d.ts +3 -3
  58. package/src/locales/en/index.d.ts +107 -74
  59. package/src/types/carrier-metadata.d.ts +3 -0
  60. package/src/types/patch.d.ts +1 -12
  61. package/src/utilities/feature-flags.d.ts +15 -2
  62. package/src/utilities/shipengine/index.d.ts +1 -0
  63. package/src/utilities/shipengine/shipment.d.ts +11 -0
  64. package/src/workflows/account-settings/account-settings.d.ts +111 -83
  65. package/src/workflows/account-settings/use-get-panel-props.d.ts +7 -1
  66. package/src/workflows/connect-carrier/connect-carrier.d.ts +107 -74
  67. package/src/workflows/manage-wallet-workflow/index.d.ts +1 -0
  68. package/src/{elements/list-carriers/list-carriers.d.ts → workflows/manage-wallet-workflow/manage-wallet-workflow.d.ts} +122 -111
  69. package/src/workflows/manage-wallet-workflow/use-get-wallet-panel-props.d.ts +4 -0
  70. package/src/workflows/onboarding/components/account-registration-form/account-registration-form-schema.d.ts +3 -0
  71. package/src/workflows/onboarding/components/funding-and-carrier-connection-step/funding-and-carrier-connection-step.d.ts +3 -1
  72. package/src/workflows/onboarding/components/funding-and-carrier-connection-step/use-funding-and-carrier-connection-step.d.ts +2 -2
  73. package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +3 -3
  74. package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.d.ts +4 -4
  75. package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.styles.d.ts +6 -7
  76. package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.d.ts +3 -4
  77. package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.styles.d.ts +3 -0
  78. package/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts +7 -7
  79. package/src/workflows/onboarding/onboarding.d.ts +111 -79
  80. package/vite.config.d.ts +1 -1
  81. package/src/elements/list-carriers/index.d.ts +0 -1
  82. package/src/features/list-carriers/hooks/use-carrier-metadata.d.ts +0 -10
  83. package/src/features/list-carriers/index.d.ts +0 -1
  84. package/src/features/list-carriers/list-carriers-row/index.d.ts +0 -1
  85. package/src/features/list-carriers/list-carriers.d.ts +0 -9
  86. /package/src/features/{list-carriers → shipengine-carriers}/hooks/index.d.ts +0 -0
  87. /package/src/features/{list-carriers → shipengine-carriers}/hooks/use-list-connected-carriers.d.ts +0 -0
  88. /package/src/features/{list-carriers/list-carriers-row/list-carriers-row.styles.d.ts → shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.styles.d.ts} +0 -0
  89. /package/src/features/{list-carriers/list-carriers.styles.d.ts → shipengine-carriers/shipengine-carriers.styles.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/elements",
3
- "version": "1.6.0",
3
+ "version": "1.8.0",
4
4
  "peerDependencies": {
5
5
  "@shipengine/alchemy": "5.x.x",
6
6
  "@emotion/react": "11.x",
@@ -26,7 +26,7 @@
26
26
  "@rjsf/validator-ajv8": "5.16.1",
27
27
  "@shipengine/giger": "1.9.0",
28
28
  "@shipengine/giger-theme": "1.3.0",
29
- "@shipengine/js-api": "1.9.0",
29
+ "@shipengine/js-api": "1.13.0",
30
30
  "@storybook/addons": "6.5.16",
31
31
  "@storybook/components": "7.0.0-rc.1",
32
32
  "@storybook/core-events": "7.0.0-rc.1",
@@ -35,7 +35,7 @@
35
35
  "@tanstack/react-query": "4.36.1",
36
36
  "@testing-library/dom": "8.19.0",
37
37
  "@vitejs/plugin-react": "1.3.2",
38
- "axios": "0.26.1",
38
+ "axios": "0.28.1",
39
39
  "card-validator": "8.1.1",
40
40
  "copy-to-clipboard": "3.3.3",
41
41
  "date-fns": "3.6.0",
@@ -23,6 +23,11 @@ export type CollapsiblePanelProps = WithChildrenCommonProps<{
23
23
  * should display a bust state while work is being done.
24
24
  */
25
25
  isSaving?: boolean;
26
+ /**
27
+ * `nested` is an optional boolean that will be used to determine if the panel is nested
28
+ * within another panel and therfore should have a different background color and padding.
29
+ */
30
+ nested?: boolean;
26
31
  /**
27
32
  * `title` is an optional string that will be used to display the title of the panel.
28
33
  */
@@ -38,4 +43,4 @@ export type CollapsiblePanelProps = WithChildrenCommonProps<{
38
43
  *
39
44
  * @see {@link CollapsiblePanelProps | The props that are passed into the `<CollapsiblePanel />` component}
40
45
  */
41
- export declare const CollapsiblePanel: ({ errors, initialExpanded, isSaving, children, title, }: CollapsiblePanelProps) => import("@emotion/react/jsx-runtime").JSX.Element;
46
+ export declare const CollapsiblePanel: ({ errors, initialExpanded, isSaving, nested, children, title, }: CollapsiblePanelProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,11 +1,10 @@
1
1
  export declare const styles: {
2
- content: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
3
- padding: string;
2
+ getContentStyles: (nested?: boolean) => (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
3
+ padding: number;
4
4
  };
5
- header: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
5
+ getHeaderStyles: (nested?: boolean) => (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
6
6
  backgroundColor: string;
7
7
  display: "flex";
8
- height: number;
9
8
  padding: string;
10
9
  };
11
10
  icon: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
@@ -1,5 +1,5 @@
1
- import { MetadataRequiredTermWithLinks } from "../../types";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  export type DisplayTermProps = {
3
- term: MetadataRequiredTermWithLinks;
3
+ term: Pick<SE.MetadataRequiredTerm, "links">;
4
4
  };
5
5
  export declare const DisplayTerm: ({ term }: DisplayTermProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -9,10 +9,12 @@ export declare const styles: {
9
9
  "&:visited": {
10
10
  color: string;
11
11
  };
12
+ fontWeight: number;
12
13
  };
13
14
  termLink: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
14
15
  display: "flex";
15
16
  flexDirection: "column";
17
+ gap: number;
16
18
  listStyle: "none";
17
19
  };
18
20
  terms: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
@@ -5,7 +5,7 @@ export interface CostBreakdownProps {
5
5
  insuranceAmount?: SE.Money;
6
6
  otherAmount?: SE.Money;
7
7
  shippingAmount?: SE.Money;
8
- showExtendedData: boolean;
8
+ showExtendedData?: boolean;
9
9
  taxAmount?: SE.Money;
10
10
  }
11
11
  export declare const CostBreakdown: ({ showExtendedData, shippingAmount, insuranceAmount, confirmationAmount, taxAmount, otherAmount, }: CostBreakdownProps) => JSX.Element;
@@ -1,8 +1,8 @@
1
1
  export * from "./add-funds-form";
2
- export * from "./carrier-connection-card";
3
2
  export * from "./auto-funding-form";
4
3
  export * from "./button-group";
5
4
  export * from "./carrier-balance";
5
+ export * from "./carrier-connection-card";
6
6
  export * from "./carrier-icon";
7
7
  export * from "./carrier-logo";
8
8
  export * from "./collapsible-panel";
@@ -12,12 +12,14 @@ export * from "./date-range-combo";
12
12
  export * from "./date-range-select";
13
13
  export * from "./display-term";
14
14
  export * from "./drawer";
15
+ export * from "./edit-billing-form";
15
16
  export * from "./error-fallback";
16
17
  export * from "./field-label";
17
18
  export * from "./field";
18
19
  export * from "./form-portal";
19
20
  export * from "./fund-and-purchase";
20
21
  export * from "./grid-controller";
22
+ export * from "./history";
21
23
  export * from "./inline-label";
22
24
  export * from "./items-breakdown";
23
25
  export * from "./link-action";
@@ -27,13 +29,12 @@ export * from "./portal";
27
29
  export * from "./powered-by-shipengine";
28
30
  export * from "./section";
29
31
  export * from "./settings-card";
32
+ export * from "./skeleton";
30
33
  export * from "./spacer";
31
34
  export * from "./spread";
32
- export * from "./skeleton";
33
- export * from "./suspend";
34
35
  export * from "./story-notes";
36
+ export * from "./suspend";
35
37
  export * from "./tabs";
38
+ export * from "./vat-form";
36
39
  export * from "./wallet-card";
37
40
  export * from "./warehouse-form";
38
- export * from "./edit-billing-form";
39
- export * from "./history";
@@ -1,4 +1,6 @@
1
1
  import { z } from "zod";
2
+ export declare const postalCodeRegex: RegExp;
3
+ export declare const addressNameRegex: RegExp;
2
4
  export declare const addressLine1Schema: z.ZodString;
3
5
  export declare const addressLine2Schema: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
4
6
  export declare const companyNameSchema: z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>, z.ZodLiteral<"">]>, string | undefined, string | null | undefined>;
@@ -6,7 +6,7 @@ export * from "./address-parser";
6
6
  export * from "./address-preference-display";
7
7
  export * from "./address-preference-select";
8
8
  export * from "./label";
9
- export * from "../../features/list-carriers";
9
+ export * from "../../features/shipengine-carriers";
10
10
  export * from "./product-form";
11
11
  export * from "./rate-form";
12
12
  export * from "./shipment-form";
@@ -20,6 +20,7 @@ export type RateFormProps = {
20
20
  preferredRates?: PreferredRatesResponse;
21
21
  preferredServiceCodes?: string[];
22
22
  rates?: SE.Rate[];
23
+ salesOrder?: SE.SalesOrder;
23
24
  shipment?: SE.SalesOrderShipment;
24
25
  };
25
- export declare const RateForm: ({ carriers, disabled, displayableRateErrors, displayableSaveRateErrors, errors, features, isLoading, labelErrors, labels, labelsLoading, currency, displayableShipmentErrors, preferredRates, preferredServiceCodes, rates, shipment, onSave, onSelectRate, onSubmit, }: RateFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
26
+ export declare const RateForm: ({ carriers, disabled, displayableRateErrors, displayableSaveRateErrors, errors, features, isLoading, labelErrors, labels, labelsLoading, currency, displayableShipmentErrors, preferredRates, preferredServiceCodes, rates, salesOrder, shipment, onSave, onSelectRate, onSubmit, }: RateFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { SE } from "@shipengine/alchemy";
2
+ import { VatSettingsFeatures } from "../../../features";
2
3
  export type WalletFormFeatures = {};
3
4
  export type WalletPayload = {
4
5
  address: SE.Address;
@@ -8,6 +9,7 @@ export type WalletPayload = {
8
9
  export type WalletFormProps = {
9
10
  address: SE.Address;
10
11
  errors?: SE.CodedError[] | null;
12
+ features?: VatSettingsFeatures;
11
13
  onSubmit: (payload: WalletPayload) => Promise<void>;
12
14
  };
13
- export declare const WalletForm: ({ address, errors, onSubmit }: WalletFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
15
+ export declare const WalletForm: ({ address, errors, onSubmit, features }: WalletFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +1,7 @@
1
1
  export declare const styles: {
2
+ centeredText: () => {
3
+ textAlign: "center";
4
+ };
2
5
  grid: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
3
6
  margin: number;
4
7
  };
@@ -5,7 +5,7 @@ export declare const walletEmailSchemas: {
5
5
  emailRequired: z.ZodString;
6
6
  };
7
7
  export type EmailRequirementOption = keyof typeof walletEmailSchemas;
8
- export declare const getBillingAddressSchema: (emailRequirement: EmailRequirementOption) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<z.extendShape<{
8
+ export declare const getBillingAddressSchema: (emailRequirement: EmailRequirementOption) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<z.extendShape<{
9
9
  addressLine1: z.ZodString;
10
10
  addressLine2: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
11
11
  cityLocality: z.ZodString;
@@ -110,12 +110,34 @@ export declare const getBillingAddressSchema: (emailRequirement: EmailRequiremen
110
110
  name: string;
111
111
  phone: string;
112
112
  postalCode: string;
113
+ }>, {
114
+ addressLine2?: string | undefined;
115
+ email?: string | undefined;
116
+ addressLine1: string;
117
+ cityLocality: string;
118
+ companyName: string;
119
+ countryCode: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
120
+ name: string;
121
+ phone: string;
122
+ postalCode: string;
123
+ stateProvince: string;
124
+ }, {
125
+ addressLine2?: string | null | undefined;
126
+ email?: string | null | undefined;
127
+ stateProvince?: string | null | undefined;
128
+ addressLine1: string;
129
+ cityLocality: string;
130
+ companyName: string;
131
+ countryCode: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
132
+ name: string;
133
+ phone: string;
134
+ postalCode: string;
113
135
  }>;
114
136
  type BillingAddressSchema = ReturnType<typeof getBillingAddressSchema>;
115
137
  export type BillingAddressFields = z.input<BillingAddressSchema>;
116
138
  export type BillingAddressPayload = z.output<BillingAddressSchema>;
117
139
  export declare const getWalletSchema: (emailRequirement: EmailRequirementOption) => z.ZodObject<{
118
- address: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<z.extendShape<{
140
+ address: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<z.extendShape<{
119
141
  addressLine1: z.ZodString;
120
142
  addressLine2: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
121
143
  cityLocality: z.ZodString;
@@ -220,6 +242,28 @@ export declare const getWalletSchema: (emailRequirement: EmailRequirementOption)
220
242
  name: string;
221
243
  phone: string;
222
244
  postalCode: string;
245
+ }>, {
246
+ addressLine2?: string | undefined;
247
+ email?: string | undefined;
248
+ addressLine1: string;
249
+ cityLocality: string;
250
+ companyName: string;
251
+ countryCode: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
252
+ name: string;
253
+ phone: string;
254
+ postalCode: string;
255
+ stateProvince: string;
256
+ }, {
257
+ addressLine2?: string | null | undefined;
258
+ email?: string | null | undefined;
259
+ stateProvince?: string | null | undefined;
260
+ addressLine1: string;
261
+ cityLocality: string;
262
+ companyName: string;
263
+ countryCode: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
264
+ name: string;
265
+ phone: string;
266
+ postalCode: string;
223
267
  }>;
224
268
  creditCard: z.ZodEffects<z.ZodObject<{
225
269
  cvv: z.ZodEffects<z.ZodString, string, string>;
@@ -0,0 +1 @@
1
+ export * from "./vat-form";
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+ export declare const vatSchema: z.ZodObject<{
3
+ vatNumber: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ vatNumber: string;
6
+ }, {
7
+ vatNumber: string;
8
+ }>;
9
+ export type VatSchemaFields = z.input<typeof vatSchema>;
10
+ export type VatSchemaPayload = z.output<typeof vatSchema>;
@@ -0,0 +1,6 @@
1
+ export type VatFormProps = {
2
+ onCancel?: () => void;
3
+ onSuccess?: () => void;
4
+ showRegisterLaterText?: boolean;
5
+ };
6
+ export declare const VatForm: ({ onCancel, onSuccess, showRegisterLaterText }: VatFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export declare const styles: {
2
+ formSection: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
3
+ backgroundColor: string;
4
+ padding: number;
5
+ };
6
+ inlineError: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
7
+ marginBottom: number;
8
+ };
9
+ };
@@ -66,6 +66,7 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
66
66
  resultMessages: {
67
67
  approved: string;
68
68
  rejected: string;
69
+ dpdwallet: string;
69
70
  };
70
71
  refund_process: string;
71
72
  refund_rules: string;
@@ -107,15 +108,44 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
107
108
  };
108
109
  noLabels: string;
109
110
  };
111
+ "vat-settings": {
112
+ addNew: string;
113
+ vatNumber: string;
114
+ vatRegistrationTooltip: string;
115
+ vatFormText: string;
116
+ vatFormRegisterLater: string;
117
+ vatNumberInputHint: string;
118
+ vatNumberInputPlaceholder: string;
119
+ verifiedVat: string;
120
+ vatFormErrors: {
121
+ invalidFieldValue: string;
122
+ verificationFailure: string;
123
+ forbidden: string;
124
+ connectionNotSupported: string;
125
+ genericTitle: string;
126
+ genericText: string;
127
+ };
128
+ };
129
+ "shipengine-carriers": {
130
+ title: string;
131
+ headers: {
132
+ accountCarriers: string;
133
+ carriers: string;
134
+ settings: string;
135
+ };
136
+ actions: {
137
+ status: {
138
+ connected: string;
139
+ notConnected: string;
140
+ };
141
+ };
142
+ };
110
143
  "register-wallet": {
111
144
  sections: {
112
145
  setup: {
113
146
  title: string;
114
147
  subtitle: string;
115
- /**
116
- * `availableCarrierConnections` is a set of carrier codes for carriers that may be added. If this is omitted,
117
- * new carriers may not be added by this element.
118
- */
148
+ hiddenTermsSubtitle: string;
119
149
  descriptionTitle: string;
120
150
  description: string;
121
151
  };
@@ -125,6 +155,9 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
125
155
  addressSubTitle: string;
126
156
  info: string;
127
157
  };
158
+ vatSettings: {
159
+ title: string;
160
+ };
128
161
  carriers: {
129
162
  title: string;
130
163
  subtitle: string;
@@ -245,11 +278,13 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
245
278
  needToAcknowledge: string;
246
279
  };
247
280
  rates: {
281
+ requestedShippingNotification: string;
248
282
  uspsMediaMailAcknowledgement: string;
249
283
  uspsFirstClassMailAcknowledgement_leof: string;
250
284
  rateSavings: string;
251
285
  upsGroundSaverTermsAcknowledgement: string;
252
286
  dhlExpressTermsAcknowledgement: string;
287
+ noRateService: string;
253
288
  };
254
289
  requirements: {
255
290
  noWarehouse: string;
@@ -316,6 +351,8 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
316
351
  action: string;
317
352
  };
318
353
  termsAndAgreementLinkText: {
354
+ shipEngineToS: string;
355
+ auctanePrivacyPolicy: string;
319
356
  aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
320
357
  "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
321
358
  "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
@@ -327,6 +364,8 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
327
364
  aHR0cHM6Ly93d3cuc2hpcHN0YXRpb24uY29tL3Rlcm1zLXNlcnZpY2UtdW5pdGVkLWtpbmdkb20v: string;
328
365
  "aHR0cHM6Ly93d3cuZHBkLmNvLnVrL3N0YW5kYXJkX3Rlcm1zX2FuZF9jb25kaXRpb25zLmpzcA==": string;
329
366
  aHR0cHM6Ly93d3cuZ29nbG9iYWxwb3N0LmNvbS9jb25kaXRpb25z: string;
367
+ aHR0cHM6Ly93d3cucHVyb2xhdG9yLmNvbS9mci9tb2RhbGl0ZXMtZXQtY29uZGl0aW9ucy1kZS1zZXJ2aWNl: string;
368
+ aHR0cHM6Ly93d3cucHVyb2xhdG9yLmNvbS9lbi90ZXJtcy1hbmQtY29uZGl0aW9ucy1zZXJ2aWNl: string;
330
369
  };
331
370
  termsAndAgreementTitles: {
332
371
  "WW9kZWwgRGlyZWN0IC0gVGVybXMgYW5kIENvbmRpdGlvbnMgKOKAnFRlcm1z4oCdKQ==": string;
@@ -334,65 +373,8 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
334
373
  "VGVybXMgb2YgU2VydmljZSBVbml0ZWQgS2luZ2RvbQ==": string;
335
374
  RFBEIFN0YW5kYXJkIFRlcm1zIGFuZCBDb25kaXRpb25z: string;
336
375
  "R2xvYmFsUG9zdCBUZXJtcyBhbmQgQ29uZGl0aW9ucw==": string;
337
- };
338
- };
339
- "manage-defaults": {
340
- label: {
341
- title: string;
342
- letter: {
343
- title: string;
344
- description: string;
345
- };
346
- purchase: {
347
- title: string;
348
- description: string;
349
- };
350
- thermal: {
351
- title: string; /**
352
- * # ExternalCarriers Component
353
- *
354
- * @param ComponentProps The base props that will be passed into the `<ExternalCarriers />` component.
355
- *
356
- * @returns Element A React element that renders the `<ExternalCarriers />` component allowing users
357
- * to view a list of their own carrier accounts that have been connected to their ShipEngine account,
358
- * and to add additional carriers.
359
- * This component is composed in the `<AccountSettings />` Element.
360
- *
361
- * @example
362
- * ```tsx
363
- * (() => {
364
- * const features = useFeatures("Global");
365
- *
366
- * return <ExternalCarriers.Component features={features} />;
367
- * })();
368
- * ```
369
- *
370
- * <br />
371
- *
372
- * @see {@link ExternalCarriers.ComponentProps | The props that are passed into the `<ExternalCarriers />` component}
373
- * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ExternalCarriers />` component}
374
- */
375
- description: string;
376
- };
377
- };
378
- status: {
379
- saving: string;
380
- saved: string;
381
- savingFailed: string;
382
- };
383
- units: {
384
- title: string;
385
- dimensions: {
386
- title: string;
387
- standard: string;
388
- metric: string;
389
- };
390
- weight: {
391
- title: string;
392
- standard: string;
393
- g: string;
394
- kg: string;
395
- };
376
+ "UHVyb2xhdG9yIFRlcm1zIGFuZCBDb25kaXRpb25zIG9mIFNlcnZpY2U=": string;
377
+ UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
396
378
  };
397
379
  };
398
380
  "manage-warehouses": {
@@ -462,6 +444,65 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
462
444
  currentBalance: string;
463
445
  maximumBalanceAmount: string;
464
446
  };
447
+ "manage-defaults": {
448
+ label: {
449
+ title: string;
450
+ letter: {
451
+ title: string;
452
+ description: string;
453
+ };
454
+ purchase: {
455
+ title: string;
456
+ description: string;
457
+ };
458
+ thermal: {
459
+ title: string; /**
460
+ * # ExternalCarriers Component
461
+ *
462
+ * @param ComponentProps The base props that will be passed into the `<ExternalCarriers />` component.
463
+ *
464
+ * @returns Element A React element that renders the `<ExternalCarriers />` component allowing users
465
+ * to view a list of their own carrier accounts that have been connected to their ShipEngine account,
466
+ * and to add additional carriers.
467
+ * This component is composed in the `<AccountSettings />` Element.
468
+ *
469
+ * @example
470
+ * ```tsx
471
+ * (() => {
472
+ * const features = useFeatures("Global");
473
+ *
474
+ * return <ExternalCarriers.Component features={features} />;
475
+ * })();
476
+ * ```
477
+ *
478
+ * <br />
479
+ *
480
+ * @see {@link ExternalCarriers.ComponentProps | The props that are passed into the `<ExternalCarriers />` component}
481
+ * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ExternalCarriers />` component}
482
+ */
483
+ description: string;
484
+ };
485
+ };
486
+ status: {
487
+ saving: string;
488
+ saved: string;
489
+ savingFailed: string;
490
+ };
491
+ units: {
492
+ title: string;
493
+ dimensions: {
494
+ title: string;
495
+ standard: string;
496
+ metric: string;
497
+ };
498
+ weight: {
499
+ title: string;
500
+ standard: string;
501
+ g: string;
502
+ kg: string;
503
+ };
504
+ };
505
+ };
465
506
  "list-shipments": {
466
507
  title: string;
467
508
  headers: {
@@ -492,18 +533,31 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
492
533
  };
493
534
  };
494
535
  };
495
- "list-carriers": {
496
- title: string;
497
- headers: {
498
- accountCarriers: string;
499
- carriers: string;
500
- settings: string;
501
- };
536
+ "connect-carrier": {
502
537
  actions: {
503
- status: {
504
- connected: string;
505
- notConnected: string;
506
- };
538
+ cancel: string;
539
+ carrierSettings: string;
540
+ connectCarriers: string;
541
+ disconnect: string;
542
+ disconnectCarrier: string;
543
+ };
544
+ noCarriersDescription: string;
545
+ registrationForm: {
546
+ error: string;
547
+ title: string;
548
+ betaWarning: string;
549
+ };
550
+ search: string;
551
+ settingsModal: {
552
+ closeDialog: string;
553
+ header: string;
554
+ };
555
+ status: {
556
+ connected: string;
557
+ };
558
+ disconnectDropdown: {
559
+ toastTitle: string;
560
+ toastBody: string;
507
561
  };
508
562
  };
509
563
  common: {
@@ -690,6 +744,7 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
690
744
  accountSettings: string;
691
745
  carrier: string;
692
746
  carriers: string;
747
+ carrierServices: string;
693
748
  connectCarrierForm: string;
694
749
  connectingCarriers: string;
695
750
  creatingFundingSource: string;
@@ -792,33 +847,6 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
792
847
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
793
848
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
794
849
  };
795
- "connect-carrier": {
796
- actions: {
797
- cancel: string;
798
- carrierSettings: string;
799
- connectCarriers: string;
800
- disconnect: string;
801
- disconnectCarrier: string;
802
- };
803
- noCarriersDescription: string;
804
- registrationForm: {
805
- error: string;
806
- title: string;
807
- betaWarning: string;
808
- };
809
- search: string;
810
- settingsModal: {
811
- closeDialog: string;
812
- header: string;
813
- };
814
- status: {
815
- connected: string;
816
- };
817
- disconnectDropdown: {
818
- toastTitle: string;
819
- toastBody: string;
820
- };
821
- };
822
850
  "account-settings": {
823
851
  messages: {
824
852
  noFundingSources: string;
@@ -834,6 +862,7 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
834
862
  externalCarriers: string;
835
863
  labelLayout: string;
836
864
  unitSettings: string;
865
+ vatSettings: string;
837
866
  };
838
867
  };
839
868
  };