@shipengine/elements 0.39.0 → 1.0.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 (77) hide show
  1. package/index.cjs +3794 -3721
  2. package/index.js +3794 -3725
  3. package/package.json +10 -13
  4. package/src/components/carrier-logo/carrier-logo.d.ts +11 -0
  5. package/src/components/carrier-logo/index.d.ts +1 -0
  6. package/src/components/display-term/display-term.d.ts +5 -0
  7. package/src/components/display-term/display-term.styles.d.ts +23 -0
  8. package/src/components/display-term/index.d.ts +1 -0
  9. package/src/components/index.d.ts +2 -0
  10. package/src/components/loader/loader.styles.d.ts +11 -0
  11. package/src/components/templates/display-carrier-terms/display-carrier-terms.d.ts +2 -2
  12. package/src/components/templates/display-carrier-terms/display-carrier-terms.styles.d.ts +25 -0
  13. package/src/components/templates/index.d.ts +2 -6
  14. package/src/components/templates/list-carriers/list-carriers.d.ts +2 -2
  15. package/src/components/templates/rate-form/rate-form.d.ts +2 -2
  16. package/src/components/templates/warehouse-form/warehouse-form.d.ts +2 -2
  17. package/src/elements/account-settings/account-settings.d.ts +34 -29
  18. package/src/elements/configure-shipment/hooks/use-rates-form.d.ts +0 -1
  19. package/src/elements/index.d.ts +0 -1
  20. package/src/elements/list-carriers/list-carriers.d.ts +2 -2
  21. package/src/elements/purchase-label/purchase-label.d.ts +37 -10
  22. package/src/elements/view-shipment/view-shipment.d.ts +35 -18
  23. package/src/elements/void-label/void-label.d.ts +45 -36
  24. package/src/index.d.ts +1 -0
  25. package/src/locales/en/index.d.ts +34 -7
  26. package/src/types/index.d.ts +1 -0
  27. package/src/types/patch.d.ts +13 -0
  28. package/src/utilities/assertions.d.ts +2 -0
  29. package/src/utilities/feature-flags.d.ts +1 -1
  30. package/src/utilities/index.d.ts +1 -0
  31. package/src/workflows/onboarding/components/account-registration-form/account-registration-form-schema.d.ts +10 -0
  32. package/src/workflows/onboarding/components/account-registration-form/account-registration-form.d.ts +4 -0
  33. package/src/workflows/onboarding/components/account-registration-form/index.d.ts +1 -0
  34. package/src/workflows/onboarding/components/account-registration-step/account-registration-step.d.ts +5 -0
  35. package/src/workflows/onboarding/components/account-registration-step/index.d.ts +2 -0
  36. package/src/workflows/onboarding/components/account-registration-step/use-account-registration-step.d.ts +7 -0
  37. package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form-schema.d.ts +241 -0
  38. package/src/{components/templates → workflows/onboarding/components}/carrier-recovery-form/carrier-recovery-form.d.ts +4 -2
  39. package/src/workflows/onboarding/components/carrier-recovery-form/index.d.ts +1 -0
  40. package/src/workflows/onboarding/components/funding-and-carrier-connection-step/funding-and-carrier-connection-step.d.ts +9 -0
  41. package/src/{components/templates/onboarding/onboarding.styles.d.ts → workflows/onboarding/components/funding-and-carrier-connection-step/funding-and-carrier-connection-step.styles.d.ts} +1 -14
  42. package/src/workflows/onboarding/components/funding-and-carrier-connection-step/index.d.ts +2 -0
  43. package/src/workflows/onboarding/components/funding-and-carrier-connection-step/use-funding-and-carrier-connection-step.d.ts +25 -0
  44. package/src/workflows/onboarding/components/onboarding-wizard/index.d.ts +1 -0
  45. package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +27 -0
  46. package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.styles.d.ts +10 -0
  47. package/src/workflows/onboarding/components/ship-from-address-step/index.d.ts +2 -0
  48. package/src/workflows/onboarding/components/ship-from-address-step/ship-from-address-step.d.ts +7 -0
  49. package/src/workflows/onboarding/components/ship-from-address-step/use-ship-from-address-step.d.ts +9 -0
  50. package/src/workflows/onboarding/components/step-header/index.d.ts +1 -0
  51. package/src/workflows/onboarding/components/step-header/step-header.d.ts +5 -0
  52. package/src/workflows/onboarding/components/terms-agreement-form/index.d.ts +1 -0
  53. package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form-schema.d.ts +10 -0
  54. package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.d.ts +7 -0
  55. package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.styles.d.ts +24 -0
  56. package/src/workflows/onboarding/components/terms-agreement-step/index.d.ts +1 -0
  57. package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.d.ts +8 -0
  58. package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.styles.d.ts +17 -0
  59. package/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts +18 -0
  60. package/src/{elements → workflows}/onboarding/onboarding.d.ts +55 -48
  61. package/src/components/templates/carrier-recovery-form/carrier-recovery-form-schema.d.ts +0 -241
  62. package/src/components/templates/carrier-recovery-form/index.d.ts +0 -2
  63. package/src/components/templates/carrier-terms-form/carrier-terms-form-schema.d.ts +0 -10
  64. package/src/components/templates/carrier-terms-form/carrier-terms-form.d.ts +0 -6
  65. package/src/components/templates/carrier-terms-form/carrier-terms-form.styles.d.ts +0 -65
  66. package/src/components/templates/carrier-terms-form/index.d.ts +0 -1
  67. package/src/components/templates/landing-page/index.d.ts +0 -1
  68. package/src/components/templates/landing-page/landing-page-form-schema.d.ts +0 -10
  69. package/src/components/templates/landing-page/landing-page-form.d.ts +0 -4
  70. package/src/components/templates/landing-page/landing-page.d.ts +0 -5
  71. package/src/components/templates/onboarding/onboarding.d.ts +0 -42
  72. /package/src/{components/templates/onboarding → workflows}/index.d.ts +0 -0
  73. /package/src/{components/templates/landing-page/landing-page.styles.d.ts → workflows/onboarding/components/account-registration-step/account-registration-step.styles.d.ts} +0 -0
  74. /package/src/{components/templates → workflows/onboarding/components}/carrier-recovery-form/carrier-recovery-form.styles.d.ts +0 -0
  75. /package/src/{components/templates → workflows/onboarding/components}/completion-page/completion-page.d.ts +0 -0
  76. /package/src/{components/templates → workflows/onboarding/components}/completion-page/index.d.ts +0 -0
  77. /package/src/{elements → workflows}/onboarding/index.d.ts +0 -0
package/package.json CHANGED
@@ -1,31 +1,30 @@
1
1
  {
2
2
  "name": "@shipengine/elements",
3
- "version": "0.39.0",
3
+ "version": "1.0.0",
4
4
  "peerDependencies": {
5
- "@shipengine/giger": "0.x.x",
6
- "react-i18next": "*",
7
- "i18next": "*"
5
+ "@shipengine/alchemy": "5.x.x",
6
+ "@emotion/react": "11.x",
7
+ "react-i18next": "11.x",
8
+ "i18next": "22.x",
9
+ "react": "17.x || 18.x",
10
+ "react-dom": "17.x || 18.x"
8
11
  },
9
12
  "msw": {
10
13
  "workerDirectory": "public"
11
14
  },
12
- "publishConfig": {
13
- "access": "restricted"
14
- },
15
15
  "module": "./index.js",
16
16
  "main": "./index.cjs",
17
17
  "type": "module",
18
18
  "types": "./src/index.d.ts",
19
19
  "dependencies": {
20
20
  "@emotion/css": "11.10.5",
21
- "@emotion/react": "11.10.0",
22
21
  "@emotion/serialize": "1.1.1",
23
22
  "@faker-js/faker": "7.6.0",
24
23
  "@hookform/resolvers": "2.9.1",
25
24
  "@jest/globals": "28.1.3",
26
- "@shipengine/alchemy": "4.2.2",
27
- "@shipengine/giger-theme": "0.4.0",
28
- "@shipengine/js-api": "0.39.0",
25
+ "@shipengine/giger": "1.0.1",
26
+ "@shipengine/giger-theme": "1.0.1",
27
+ "@shipengine/js-api": "0.41.2",
29
28
  "@storybook/addons": "6.5.16",
30
29
  "@storybook/components": "7.0.0-rc.1",
31
30
  "@storybook/core-events": "7.0.0-rc.1",
@@ -43,9 +42,7 @@
43
42
  "js-base64": "3.7.3",
44
43
  "libphonenumber-js": "1.10.14",
45
44
  "lodash": "4.17.21",
46
- "react": "18.2.0",
47
45
  "react-datepicker": "4.11.0",
48
- "react-dom": "18.2.0",
49
46
  "react-hook-form": "7.40.0",
50
47
  "zod": "3.19.1"
51
48
  }
@@ -0,0 +1,11 @@
1
+ declare const sizes: {
2
+ md: number;
3
+ lg: number;
4
+ xl: number;
5
+ };
6
+ export type CarrierLogoProps = {
7
+ carrierCode: string;
8
+ size?: keyof typeof sizes;
9
+ };
10
+ export declare const CarrierLogo: ({ carrierCode, size }: CarrierLogoProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
11
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./carrier-logo";
@@ -0,0 +1,5 @@
1
+ import { MetadataRequiredTermWithLinks } from "../../types";
2
+ export type DisplayTermProps = {
3
+ term: MetadataRequiredTermWithLinks;
4
+ };
5
+ export declare const DisplayTerm: ({ term }: DisplayTermProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ export declare const styles: {
2
+ container: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
3
+ display: "flex";
4
+ flexDirection: "column";
5
+ gap: number;
6
+ padding: string;
7
+ };
8
+ link: {
9
+ "&:visited": {
10
+ color: "#006fbb";
11
+ };
12
+ };
13
+ termLink: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
14
+ display: "flex";
15
+ flexDirection: "column";
16
+ listStyle: "none";
17
+ };
18
+ terms: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
19
+ display: "flex";
20
+ flexDirection: "column";
21
+ gap: number;
22
+ };
23
+ };
@@ -0,0 +1 @@
1
+ export * from "./display-term";
@@ -3,10 +3,12 @@ export * from "./add-funds-form";
3
3
  export * from "./auto-funding-form";
4
4
  export * from "./button-group";
5
5
  export * from "./carrier-balance";
6
+ export * from "./carrier-logo";
6
7
  export * from "./copy";
7
8
  export * from "./cube";
8
9
  export * from "./date-range-combo";
9
10
  export * from "./date-range-select";
11
+ export * from "./display-term";
10
12
  export * from "./error-fallback";
11
13
  export * from "./field";
12
14
  export * from "./field-label";
@@ -0,0 +1,11 @@
1
+ export declare const styles: {
2
+ container: {
3
+ alignItems: "center";
4
+ display: "flex";
5
+ flexDirection: "column";
6
+ height: string;
7
+ justifyContent: "center";
8
+ textAlign: "center";
9
+ width: string;
10
+ };
11
+ };
@@ -1,6 +1,6 @@
1
1
  import { CarrierTerms } from "../../../types";
2
- interface DisplayCarrierTermsParams {
2
+ interface DisplayCarrierTermsProps {
3
3
  carrierTerms: CarrierTerms;
4
4
  }
5
- export declare const DisplayCarrierTerms: (c: DisplayCarrierTermsParams) => import("@emotion/react/jsx-runtime").JSX.Element;
5
+ export declare const DisplayCarrierTerms: (props: DisplayCarrierTermsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
6
6
  export {};
@@ -0,0 +1,25 @@
1
+ export declare const styles: {
2
+ link: {
3
+ "&:visited": {
4
+ color: "#006fbb";
5
+ };
6
+ border: string;
7
+ };
8
+ links: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
9
+ border: string;
10
+ display: "flex";
11
+ flexDirection: "column";
12
+ gap: number;
13
+ paddingBottom: number;
14
+ paddingTop: number;
15
+ };
16
+ listItems: {
17
+ border: string;
18
+ listStyle: "none";
19
+ };
20
+ terms: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
21
+ display: "flex";
22
+ flexDirection: "column";
23
+ gap: number;
24
+ };
25
+ };
@@ -3,15 +3,13 @@ export * from "./add-carrier-form";
3
3
  export * from "./address-display";
4
4
  export * from "./address-form";
5
5
  export * from "./address-parser";
6
+ export * from "../address-preference-context";
6
7
  export * from "./address-preference-display";
7
- export * from "./carrier-recovery-form";
8
- export * from "./carrier-terms-form";
8
+ export * from "./address-preference-select";
9
9
  export * from "./customs-item-form";
10
10
  export * from "./label";
11
- export * from "./landing-page";
12
11
  export * from "./list-carriers";
13
12
  export * from "./manage-warehouses";
14
- export * from "./onboarding";
15
13
  export * from "./rate-form";
16
14
  export * from "./suspend-sales-order";
17
15
  export * from "./shipment-form";
@@ -19,5 +17,3 @@ export * from "./shipment";
19
17
  export * from "./suspend-shipment";
20
18
  export * from "./warehouse-form";
21
19
  export * from "./wallet-form";
22
- export * from "../address-preference-context";
23
- export * from "./address-preference-select";
@@ -1,8 +1,8 @@
1
1
  import { CarrierConnection, CodedError } from "@shipengine/alchemy";
2
2
  import { ConnectedCarrierMetadata } from "../../../elements/list-carriers/hooks/use-list-connected-carriers";
3
3
  export type ListCarriersFeatures = {
4
- carriers?: {
5
- enabledCarriers: string[];
4
+ carriers: {
5
+ enabledCarriers: ("stamps_com" | "ups_walleted" | "ups" | "dhl_express_walleted" | "dhl_express_worldwide" | "hermes" | "yodel_walleted")[];
6
6
  };
7
7
  };
8
8
  export type ListCarriersProps = {
@@ -5,6 +5,7 @@ export type RateFormProps = {
5
5
  disabled?: boolean;
6
6
  displayableRateErrors?: string[];
7
7
  displayableSaveRateErrors?: string[];
8
+ displayableShipmentErrors?: string[];
8
9
  errors?: SE.CodedError[];
9
10
  features?: ConfigureShipmentFeatures;
10
11
  isLoading?: boolean;
@@ -14,10 +15,9 @@ export type RateFormProps = {
14
15
  onSave?: (rate: Pick<SE.Rate, "carrierId" | "serviceCode">) => Promise<void> | void;
15
16
  onSelectRate?: (rateId: string) => void;
16
17
  onSubmit?: (rateId: string) => Promise<void> | void;
17
- outOfBandDisplayableErrors?: string[];
18
18
  preferredRates?: PreferredRatesResponse;
19
19
  preferredServiceCodes?: string[];
20
20
  rates?: SE.Rate[];
21
21
  shipment?: SE.SalesOrderShipment;
22
22
  };
23
- export declare const RateForm: ({ carriers, disabled, displayableRateErrors, displayableSaveRateErrors, errors, features, isLoading, labelErrors, labels, labelsLoading, onSave, onSelectRate, onSubmit, outOfBandDisplayableErrors, preferredRates, preferredServiceCodes, rates, shipment, }: RateFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
23
+ export declare const RateForm: ({ carriers, disabled, displayableRateErrors, displayableSaveRateErrors, errors, features, isLoading, labelErrors, labels, labelsLoading, onSave, onSelectRate, onSubmit, displayableShipmentErrors, preferredRates, preferredServiceCodes, rates, shipment, }: RateFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,11 +1,11 @@
1
1
  import { SE } from "@shipengine/alchemy";
2
2
  import { WarehousePayload } from "../manage-warehouses";
3
3
  export type WarehouseFormProps = {
4
- isOnboarding?: boolean;
5
4
  onCancel?: () => void;
6
5
  onDelete?: () => void;
7
6
  onSubmit: (payload: WarehousePayload) => void;
7
+ shouldForceDefault?: boolean;
8
8
  submitButtonTitle: string;
9
9
  warehouse?: SE.Warehouse | Pick<SE.Warehouse, "name" | "isDefault" | "originAddress" | "returnAddress">;
10
10
  };
11
- export declare const WarehouseForm: ({ isOnboarding, onCancel, onDelete, onSubmit, submitButtonTitle, warehouse, }: WarehouseFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export declare const WarehouseForm: ({ onCancel, onDelete, onSubmit, submitButtonTitle, warehouse, shouldForceDefault, }: WarehouseFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -290,7 +290,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
290
290
  onboarding: {
291
291
  title: string;
292
292
  inlineTitle: string;
293
- landing: {
293
+ accountRegistration: {
294
294
  action: string;
295
295
  title: string;
296
296
  subtitle: string;
@@ -299,33 +299,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
299
299
  partnerMessageLine1: string;
300
300
  messageLine2: string;
301
301
  };
302
- steps: {
303
- register: string;
304
- carriers: string;
305
- /**
306
- * # Account Settings Component
307
- *
308
- * - The `<AccountSettings />` component is used to display the user's account settings, as well as
309
- * allowing them to make changes to various aspects of their account.
310
- *
311
- * @returns Element An EmotionJSX.Element that will render the `<AccountSettings />` component
312
- * with all the appropriate wrappers.
313
- *
314
- * @example
315
- * You can see how the `<Component />` is used in the `createElement` function call below.
316
- * ```tsx
317
- * export const Element = alchemy.createElement(Component, ErrorFallback, {
318
- * css: { height: "100%", maxWidth: "800px", minWidth: "440px", width: "100%" },
319
- * resources: { en },
320
- * });
321
- * ```
322
- *
323
- * <br />
324
- *
325
- * @see {@link AccountSettings.Element | The **Element** created to render `<AccountSettings />`}
326
- */
327
- addresses: string;
328
- billing: string;
302
+ stepLabel: {
303
+ accountRegistration: string;
304
+ termsAgreement: string;
305
+ shipFromAddress: string;
306
+ fundingAndCarrierConnection: string;
329
307
  };
330
308
  warehouse: {
331
309
  title: string;
@@ -337,6 +315,22 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
337
315
  subtitle: string;
338
316
  action: string;
339
317
  };
318
+ termsAndAgreementLinkText: {
319
+ aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
320
+ "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
321
+ "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
322
+ "aHR0cHM6Ly93d3cudXBzLmNvbS91cy9lbi9zdXBwb3J0L3NoaXBwaW5nLXN1cHBvcnQvc2hpcHBpbmctc3BlY2lhbC1jYXJlLXJlZ3VsYXRlZC1pdGVtcy9wcm9oaWJpdGVkLWl0ZW1zLnBhZ2U=": string;
323
+ aHR0cHM6Ly93d3cudXBzLmNvbS9hc3NldHMvcmVzb3VyY2VzL21lZGlhL2VuX1VTL1VQU19EQVBfVEMucGRm: string;
324
+ "aHR0cHM6Ly93d3cudXBzLmNvbS9hc3NldHMvcmVzb3VyY2VzL21lZGlhL2VuX1VTL1VUQS5wZGY=": string;
325
+ "aHR0cHM6Ly93d3cuZXZyaS5jb20vdGVybXMtYW5kLWNvbmRpdGlvbnM=": string;
326
+ "aHR0cHM6Ly93d3cueW9kZWxkaXJlY3QuY28udWsvY29udGVudC9hYm91dC10ZXJtcw==": string;
327
+ aHR0cHM6Ly93d3cuc2hpcHN0YXRpb24uY29tL3Rlcm1zLXNlcnZpY2UtdW5pdGVkLWtpbmdkb20v: string;
328
+ };
329
+ termsAndAgreementTitles: {
330
+ "WW9kZWwgRGlyZWN0IC0gVGVybXMgYW5kIENvbmRpdGlvbnMgKOKAnFRlcm1z4oCdKQ==": string;
331
+ "RXZyaSBTZW5kIFRlcm1zICYgQ29uZGl0aW9ucw==": string;
332
+ "VGVybXMgb2YgU2VydmljZSBVbml0ZWQgS2luZ2RvbQ==": string;
333
+ };
340
334
  };
341
335
  "manage-defaults": {
342
336
  label: {
@@ -484,6 +478,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
484
478
  fields: {
485
479
  name: string;
486
480
  company: string;
481
+ county: string;
487
482
  countryCode: string;
488
483
  addressLine1: string;
489
484
  addressLine2: string;
@@ -598,6 +593,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
598
593
  autoFundingSettings: string;
599
594
  carrier: string;
600
595
  carriers: string;
596
+ fundingSourceMetadata: string;
601
597
  label: string;
602
598
  salesOrder: string;
603
599
  shipment: string;
@@ -605,7 +601,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
605
601
  };
606
602
  unknown: string;
607
603
  noRatesAvailable: string;
608
- saveRateError: string;
609
604
  };
610
605
  errorTypes: {
611
606
  accountStatus: string;
@@ -631,6 +626,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
631
626
  carrier: string;
632
627
  carriers: string;
633
628
  connectingCarriers: string;
629
+ creatingFundingSource: string;
634
630
  data: string;
635
631
  importingSalesOrder: string;
636
632
  label: string;
@@ -692,6 +688,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
692
688
  platform: string;
693
689
  user: string;
694
690
  };
691
+ terms: {
692
+ fields: {
693
+ agreement: string;
694
+ };
695
+ agreeToTerms: string;
696
+ carriersTitle: string;
697
+ fundingSourceTitle: string;
698
+ };
695
699
  weight: {
696
700
  ounces: string;
697
701
  pounds_one: string;
@@ -707,6 +711,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
707
711
  gram: string;
708
712
  kilogram: string;
709
713
  };
714
+ T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
710
715
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
711
716
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkNTAuCg==": string;
712
717
  QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnN1ZmZpY2llbnQgYWNjb3VudCBiYWxhbmNlLiBBY2NvdW50IGV4Y2VwdGlvbiBFeGNlcHRpb24gd2l0aCBjb2RlIDB4MDA1NjAxMDE7IG1vZHVsZSA4NiwgY2F0ZWdvcnkgMSwgaXRlbSAx: string;
@@ -24,7 +24,6 @@ export type UseRatesFormProps = {
24
24
  export declare const useRatesForm: ({ getPreferredRates, onBeforeRateSaved, onBeforeLabelCreate, onLabelCreateFailure, onLabelCreateSuccess, onRateSaved, onRatesCalculated, onShipmentUpdated, printLabelLayout, shipment, }: UseRatesFormProps) => {
25
25
  carriers: SE.Carrier[] | undefined;
26
26
  displayableRateErrors: string[] | undefined;
27
- displayableSaveRateErrors: string[] | undefined;
28
27
  errors: SE.CodedError[] | undefined;
29
28
  isLoading: boolean;
30
29
  labelErrors: string[] | undefined;
@@ -1,7 +1,6 @@
1
1
  export * from "./account-settings";
2
2
  export * from "./list-carriers";
3
3
  export * from "./manage-warehouses";
4
- export * from "./onboarding";
5
4
  export * from "./purchase-label";
6
5
  export * from "./view-shipment";
7
6
  export * from "./void-label";
@@ -1,4 +1,4 @@
1
- import { OnboardingProps } from "../../components/templates/onboarding";
1
+ import { ListCarriersFeatures } from "../../components/templates/list-carriers";
2
2
  /**
3
3
  * # List-Carriers Props
4
4
  *
@@ -8,7 +8,7 @@ export type ComponentProps = {
8
8
  /**
9
9
  * `features` is a set of feature flags you would like to enable or disable in this component.
10
10
  */
11
- features?: OnboardingProps["features"];
11
+ features?: ListCarriersFeatures;
12
12
  };
13
13
  /**
14
14
  * # List-Carriers Component
@@ -432,7 +432,7 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
432
432
  onboarding: {
433
433
  title: string;
434
434
  inlineTitle: string;
435
- landing: {
435
+ accountRegistration: {
436
436
  action: string;
437
437
  title: string;
438
438
  subtitle: string;
@@ -441,11 +441,11 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
441
441
  partnerMessageLine1: string;
442
442
  messageLine2: string;
443
443
  };
444
- steps: {
445
- register: string;
446
- carriers: string;
447
- addresses: string;
448
- billing: string;
444
+ stepLabel: {
445
+ accountRegistration: string;
446
+ termsAgreement: string;
447
+ shipFromAddress: string;
448
+ fundingAndCarrierConnection: string;
449
449
  };
450
450
  warehouse: {
451
451
  title: string;
@@ -453,13 +453,29 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
453
453
  inlineMessage: string;
454
454
  };
455
455
  success: {
456
- /**
457
- * `features` is a set of feature flags you would like to enable or disable in this component.
458
- */
459
456
  title: string;
460
457
  subtitle: string;
461
458
  action: string;
462
459
  };
460
+ termsAndAgreementLinkText: {
461
+ aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
462
+ "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
463
+ "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
464
+ "aHR0cHM6Ly93d3cudXBzLmNvbS91cy9lbi9zdXBwb3J0L3NoaXBwaW5nLXN1cHBvcnQvc2hpcHBpbmctc3BlY2lhbC1jYXJlLXJlZ3VsYXRlZC1pdGVtcy9wcm9oaWJpdGVkLWl0ZW1zLnBhZ2U=": string;
465
+ aHR0cHM6Ly93d3cudXBzLmNvbS9hc3NldHMvcmVzb3VyY2VzL21lZGlhL2VuX1VTL1VQU19EQVBfVEMucGRm: string;
466
+ "aHR0cHM6Ly93d3cudXBzLmNvbS9hc3NldHMvcmVzb3VyY2VzL21lZGlhL2VuX1VTL1VUQS5wZGY=": string;
467
+ "aHR0cHM6Ly93d3cuZXZyaS5jb20vdGVybXMtYW5kLWNvbmRpdGlvbnM=": string;
468
+ "aHR0cHM6Ly93d3cueW9kZWxkaXJlY3QuY28udWsvY29udGVudC9hYm91dC10ZXJtcw==": string;
469
+ aHR0cHM6Ly93d3cuc2hpcHN0YXRpb24uY29tL3Rlcm1zLXNlcnZpY2UtdW5pdGVkLWtpbmdkb20v: string;
470
+ };
471
+ termsAndAgreementTitles: {
472
+ "WW9kZWwgRGlyZWN0IC0gVGVybXMgYW5kIENvbmRpdGlvbnMgKOKAnFRlcm1z4oCdKQ==": string;
473
+ "RXZyaSBTZW5kIFRlcm1zICYgQ29uZGl0aW9ucw==": string;
474
+ "VGVybXMgb2YgU2VydmljZSBVbml0ZWQgS2luZ2RvbQ==": string;
475
+ }; /**
476
+ * `onBeforeRateSave` is an async/sync callback function that will be invoked before each time a user
477
+ * saves a rate.
478
+ */
463
479
  };
464
480
  "manage-defaults": {
465
481
  label: {
@@ -597,6 +613,7 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
597
613
  fields: {
598
614
  name: string;
599
615
  company: string;
616
+ county: string;
600
617
  countryCode: string;
601
618
  addressLine1: string;
602
619
  addressLine2: string;
@@ -711,6 +728,7 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
711
728
  autoFundingSettings: string;
712
729
  carrier: string;
713
730
  carriers: string;
731
+ fundingSourceMetadata: string;
714
732
  label: string;
715
733
  salesOrder: string;
716
734
  shipment: string;
@@ -718,7 +736,6 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
718
736
  };
719
737
  unknown: string;
720
738
  noRatesAvailable: string;
721
- saveRateError: string;
722
739
  };
723
740
  errorTypes: {
724
741
  accountStatus: string;
@@ -744,6 +761,7 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
744
761
  carrier: string;
745
762
  carriers: string;
746
763
  connectingCarriers: string;
764
+ creatingFundingSource: string;
747
765
  data: string;
748
766
  importingSalesOrder: string;
749
767
  label: string;
@@ -805,6 +823,14 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
805
823
  platform: string;
806
824
  user: string;
807
825
  };
826
+ terms: {
827
+ fields: {
828
+ agreement: string;
829
+ };
830
+ agreeToTerms: string;
831
+ carriersTitle: string;
832
+ fundingSourceTitle: string;
833
+ };
808
834
  weight: {
809
835
  ounces: string;
810
836
  pounds_one: string;
@@ -820,6 +846,7 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
820
846
  gram: string;
821
847
  kilogram: string;
822
848
  };
849
+ T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
823
850
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
824
851
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkNTAuCg==": string;
825
852
  QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnN1ZmZpY2llbnQgYWNjb3VudCBiYWxhbmNlLiBBY2NvdW50IGV4Y2VwdGlvbiBFeGNlcHRpb24gd2l0aCBjb2RlIDB4MDA1NjAxMDE7IG1vZHVsZSA4NiwgY2F0ZWdvcnkgMSwgaXRlbSAx: string;
@@ -329,7 +329,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
329
329
  onboarding: {
330
330
  title: string;
331
331
  inlineTitle: string;
332
- landing: {
332
+ accountRegistration: {
333
333
  action: string;
334
334
  title: string;
335
335
  subtitle: string;
@@ -338,11 +338,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
338
338
  partnerMessageLine1: string;
339
339
  messageLine2: string;
340
340
  };
341
- steps: {
342
- register: string;
343
- carriers: string;
344
- addresses: string;
345
- billing: string;
341
+ stepLabel: {
342
+ accountRegistration: string;
343
+ termsAgreement: string;
344
+ shipFromAddress: string;
345
+ fundingAndCarrierConnection: string;
346
346
  };
347
347
  warehouse: {
348
348
  title: string;
@@ -354,6 +354,22 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
354
354
  subtitle: string;
355
355
  action: string;
356
356
  };
357
+ termsAndAgreementLinkText: {
358
+ aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
359
+ "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
360
+ "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
361
+ "aHR0cHM6Ly93d3cudXBzLmNvbS91cy9lbi9zdXBwb3J0L3NoaXBwaW5nLXN1cHBvcnQvc2hpcHBpbmctc3BlY2lhbC1jYXJlLXJlZ3VsYXRlZC1pdGVtcy9wcm9oaWJpdGVkLWl0ZW1zLnBhZ2U=": string;
362
+ aHR0cHM6Ly93d3cudXBzLmNvbS9hc3NldHMvcmVzb3VyY2VzL21lZGlhL2VuX1VTL1VQU19EQVBfVEMucGRm: string;
363
+ "aHR0cHM6Ly93d3cudXBzLmNvbS9hc3NldHMvcmVzb3VyY2VzL21lZGlhL2VuX1VTL1VUQS5wZGY=": string;
364
+ "aHR0cHM6Ly93d3cuZXZyaS5jb20vdGVybXMtYW5kLWNvbmRpdGlvbnM=": string;
365
+ "aHR0cHM6Ly93d3cueW9kZWxkaXJlY3QuY28udWsvY29udGVudC9hYm91dC10ZXJtcw==": string;
366
+ aHR0cHM6Ly93d3cuc2hpcHN0YXRpb24uY29tL3Rlcm1zLXNlcnZpY2UtdW5pdGVkLWtpbmdkb20v: string;
367
+ };
368
+ termsAndAgreementTitles: {
369
+ "WW9kZWwgRGlyZWN0IC0gVGVybXMgYW5kIENvbmRpdGlvbnMgKOKAnFRlcm1z4oCdKQ==": string;
370
+ "RXZyaSBTZW5kIFRlcm1zICYgQ29uZGl0aW9ucw==": string;
371
+ "VGVybXMgb2YgU2VydmljZSBVbml0ZWQgS2luZ2RvbQ==": string;
372
+ };
357
373
  };
358
374
  "manage-defaults": {
359
375
  label: {
@@ -497,6 +513,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
497
513
  fields: {
498
514
  name: string;
499
515
  company: string;
516
+ county: string;
500
517
  countryCode: string;
501
518
  addressLine1: string;
502
519
  addressLine2: string;
@@ -505,10 +522,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
505
522
  postalCode: string;
506
523
  phone: string;
507
524
  email: string;
508
- /**
509
- * `onClickPrintLabel` is a callback function that will be invoked when the user clicks the
510
- * `Print Label` button.
511
- */
512
525
  addressResidentialIndicator: string;
513
526
  };
514
527
  noResults: string;
@@ -613,14 +626,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
613
626
  unableToLoad: {
614
627
  accountSettings: string;
615
628
  autoFundingSettings: string;
616
- carrier: string; /**
617
- * # View Shipment Element Props
618
- *
619
- * - These are the base props that will be passed into the `<ViewShipment />` element.
620
- *
621
- * @see {@link ViewShipment.Element | See the full type that `typeof Element` will return}
622
- */
629
+ carrier: string;
623
630
  carriers: string;
631
+ fundingSourceMetadata: string;
624
632
  label: string;
625
633
  salesOrder: string;
626
634
  shipment: string;
@@ -628,7 +636,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
628
636
  };
629
637
  unknown: string;
630
638
  noRatesAvailable: string;
631
- saveRateError: string;
632
639
  };
633
640
  errorTypes: {
634
641
  accountStatus: string;
@@ -654,6 +661,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
654
661
  carrier: string;
655
662
  carriers: string;
656
663
  connectingCarriers: string;
664
+ creatingFundingSource: string;
657
665
  data: string;
658
666
  importingSalesOrder: string;
659
667
  label: string;
@@ -715,6 +723,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
715
723
  platform: string;
716
724
  user: string;
717
725
  };
726
+ terms: {
727
+ fields: {
728
+ agreement: string;
729
+ };
730
+ agreeToTerms: string;
731
+ carriersTitle: string;
732
+ fundingSourceTitle: string;
733
+ };
718
734
  weight: {
719
735
  ounces: string;
720
736
  pounds_one: string;
@@ -730,6 +746,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
730
746
  gram: string;
731
747
  kilogram: string;
732
748
  };
749
+ T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
733
750
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
734
751
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkNTAuCg==": string;
735
752
  QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnN1ZmZpY2llbnQgYWNjb3VudCBiYWxhbmNlLiBBY2NvdW50IGV4Y2VwdGlvbiBFeGNlcHRpb24gd2l0aCBjb2RlIDB4MDA1NjAxMDE7IG1vZHVsZSA4NiwgY2F0ZWdvcnkgMSwgaXRlbSAx: string;