@shipengine/elements 2.17.0 → 2.19.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.
- package/actions-menu.js +5 -5
- package/components.js +1 -1
- package/elements.js +1 -1
- package/hooks.js +1 -1
- package/index.js +1 -1
- package/package.json +4 -12
- package/src/components/add-funds-form/add-funds-form.d.ts +3 -9
- package/src/components/button-group/button-group.d.ts +4 -1
- package/src/components/date-range-combo/date-range-combo.d.ts +1 -1
- package/src/components/field/select/select-with-categories.d.ts +1 -0
- package/src/components/fund-and-purchase/fund-and-purchase.d.ts +6 -7
- package/src/components/grid-controller/grid-controller.d.ts +6 -2
- package/src/components/grid-controller/index.d.ts +1 -0
- package/src/components/grid-controller/sortable-header.d.ts +20 -0
- package/src/components/grid-filters/components/index.d.ts +1 -0
- package/src/components/grid-filters/components/tracking-status-filter/index.d.ts +1 -0
- package/src/components/grid-filters/components/tracking-status-filter/tracking-status-filter-schema.d.ts +21 -0
- package/src/components/grid-filters/components/tracking-status-filter/tracking-status-filter.d.ts +23 -0
- package/src/components/grid-filters/components/tracking-status-filter/tracking-status-filter.styles.d.ts +13 -0
- package/src/components/grid-filters/grid-filters.d.ts +4 -1
- package/src/components/history/history-card/history-card.styles.d.ts +1 -1
- package/src/components/ship-from-address-form/ship-from-address-form.d.ts +2 -1
- package/src/components/templates/connect-external-carrier-form/connect-external-carrier-form.d.ts +3 -1
- package/src/components/templates/connect-external-carrier-form/custom-forms/custom-external-carrier-form.d.ts +10 -0
- package/src/components/templates/connect-external-carrier-form/custom-forms/custom-form-fedex.d.ts +6 -0
- package/src/components/templates/connect-external-carrier-form/custom-forms/eula-clickwrap.d.ts +11 -0
- package/src/components/templates/connect-external-carrier-form/custom-forms/eula-clickwrap.styles.d.ts +20 -0
- package/src/components/templates/connect-external-carrier-form/custom-forms/index.d.ts +1 -0
- package/src/components/templates/connect-external-carrier-form/index.d.ts +1 -0
- package/src/components/templates/rate-form/rate-form.d.ts +4 -2
- package/src/components/templates/shipment-form/shipment-form.d.ts +2 -1
- package/src/components/templates/theme-creator/theme-creator.d.ts +3 -2
- package/src/create-element/element/index.d.ts +0 -1
- package/src/elements/labels-grid/hooks/use-labels-grid.d.ts +12 -51
- package/src/elements/labels-grid/labels-grid.d.ts +50 -34
- package/src/elements/manage-carriers/manage-carriers.d.ts +49 -49
- package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +43 -0
- package/src/elements/manage-funding/manage-funding-element.d.ts +24 -2
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +21 -0
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +21 -0
- package/src/elements/purchase-label/hooks/use-rates-form.d.ts +1 -0
- package/src/elements/purchase-label/hooks/use-shipment-form.d.ts +4 -4
- package/src/elements/purchase-label/purchase-label.d.ts +26 -5
- package/src/elements/select-label-layout/select-label-layout-element.d.ts +21 -0
- package/src/elements/shipment-summary/shipment-summary.d.ts +31 -36
- package/src/elements/shipments-grid/shipments-grid.d.ts +25 -36
- package/src/elements/theme-creator/theme-creator.d.ts +25 -15
- package/src/elements/transaction-history/transaction-history-element.d.ts +21 -0
- package/src/elements/unit-settings/unit-settings-element.d.ts +21 -0
- package/src/elements/vat-settings/vat-settings-element.d.ts +21 -0
- package/src/elements/void-label/void-label.d.ts +50 -9
- package/src/elements-provider/elements-context-provider.d.ts +2 -2
- package/src/elements-provider/elements-provider.d.ts +1 -2
- package/src/features/manage-carriers/manage-carriers.d.ts +6 -8
- package/src/features/manage-carriers/use-manage-carriers.d.ts +4 -7
- package/src/features/manage-funding/manage-funding.d.ts +4 -9
- package/src/hooks/index.d.ts +1 -0
- package/src/hooks/insurance/use-manage-funding-source-insurance.d.ts +1 -0
- package/src/hooks/options/use-date-range-options.d.ts +4 -1
- package/src/hooks/options/use-rate-options.d.ts +2 -1
- package/src/hooks/use-balance-services.d.ts +22 -0
- package/src/hooks/use-helpers.d.ts +4 -0
- package/src/locales/en/index.d.ts +21 -0
- package/src/utilities/feature-flags/types.d.ts +5 -1
- package/src/utilities/shipengine/address.d.ts +1 -1
- package/src/utilities/storybook-local-storage-config.d.ts +12 -0
- package/src/utilities/validation.d.ts +19 -0
- package/src/workflows/account-settings/account-settings.d.ts +21 -0
- package/src/workflows/carrier-services/carrier-services.d.ts +22 -27
- package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +31 -24
- package/src/workflows/label-workflow/label-workflow.d.ts +21 -0
- package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +2 -1
- package/src/workflows/onboarding/onboarding.d.ts +67 -84
- package/styles.js +1 -0
- package/suspend-text.js +1 -1
- package/transaction-history-element.js +1 -1
- package/use-balance-services.js +1 -0
- package/use-configure-shipment.js +1 -1
- package/use-page-layout.js +1 -1
- package/use-unit-settings.js +1 -1
- package/usePager.js +1 -1
- package/utilities.js +1 -1
- package/validation.js +1 -1
- package/wallet-form.js +1 -1
- package/warehouses.js +1 -1
- package/workflows.js +1 -1
- package/carrier.js +0 -1
- package/src/create-element/element/utils/get-emotion-cache.d.ts +0 -2
- package/src/create-element/element/utils/index.d.ts +0 -1
- package/use-toggle.js +0 -1
|
@@ -18,6 +18,9 @@ declare const _default: {
|
|
|
18
18
|
thisMonth: string;
|
|
19
19
|
lastMonth: string;
|
|
20
20
|
};
|
|
21
|
+
category: {
|
|
22
|
+
fundsAdded: string;
|
|
23
|
+
};
|
|
21
24
|
};
|
|
22
25
|
"void-label": {
|
|
23
26
|
title: string;
|
|
@@ -614,8 +617,10 @@ declare const _default: {
|
|
|
614
617
|
trackingStatus: {
|
|
615
618
|
unknown: string;
|
|
616
619
|
inTransit: string;
|
|
620
|
+
in_transit: string;
|
|
617
621
|
delivered: string;
|
|
618
622
|
error: string;
|
|
623
|
+
voided: string;
|
|
619
624
|
};
|
|
620
625
|
actions: {
|
|
621
626
|
title: string;
|
|
@@ -635,6 +640,17 @@ declare const _default: {
|
|
|
635
640
|
connectCarriers: string;
|
|
636
641
|
disconnect: string;
|
|
637
642
|
disconnectCarrier: string;
|
|
643
|
+
downloadEula: string;
|
|
644
|
+
};
|
|
645
|
+
customForms: {
|
|
646
|
+
fedex: {
|
|
647
|
+
eulaName: string;
|
|
648
|
+
disclaimerFooter: string;
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
eula: {
|
|
652
|
+
toContinue: string;
|
|
653
|
+
iAgree: string;
|
|
638
654
|
};
|
|
639
655
|
noCarriersDescription: string;
|
|
640
656
|
registrationForm: {
|
|
@@ -681,6 +697,7 @@ declare const _default: {
|
|
|
681
697
|
address: {
|
|
682
698
|
fields: {
|
|
683
699
|
name: string;
|
|
700
|
+
fullName: string;
|
|
684
701
|
company: string;
|
|
685
702
|
county: string;
|
|
686
703
|
countryCode: string;
|
|
@@ -843,6 +860,7 @@ declare const _default: {
|
|
|
843
860
|
unknown: string;
|
|
844
861
|
noRatesAvailable: string;
|
|
845
862
|
refreshAndTryAgain: string;
|
|
863
|
+
updateShipFromAddress: string;
|
|
846
864
|
windsorFramework: {
|
|
847
865
|
doNotConform: string;
|
|
848
866
|
pleaseAddTheFollowingTaxIds: string;
|
|
@@ -861,6 +879,7 @@ declare const _default: {
|
|
|
861
879
|
saveRate: string;
|
|
862
880
|
security: string;
|
|
863
881
|
shipmentStatus: string;
|
|
882
|
+
shipFromAddress: string;
|
|
864
883
|
system: string;
|
|
865
884
|
unknown: string;
|
|
866
885
|
validation: string;
|
|
@@ -874,6 +893,8 @@ declare const _default: {
|
|
|
874
893
|
shipmentId: string;
|
|
875
894
|
labelId: string;
|
|
876
895
|
labelIdFilter: string;
|
|
896
|
+
filteredTrackingStatus: string;
|
|
897
|
+
more: string;
|
|
877
898
|
createdDate: string;
|
|
878
899
|
shipmentIdFilter: string;
|
|
879
900
|
createdDateFilter: string;
|
|
@@ -144,7 +144,7 @@ export type FilterableLabelColumnConfig = {
|
|
|
144
144
|
/**
|
|
145
145
|
* The name identifying the column
|
|
146
146
|
*/
|
|
147
|
-
name: Extract<LabelColumnName, "shipmentId" | "labelId">;
|
|
147
|
+
name: Extract<LabelColumnName, "shipmentId" | "labelId" | "trackingStatus">;
|
|
148
148
|
nickname?: string;
|
|
149
149
|
};
|
|
150
150
|
export type LabelColumnConfig = BaseLabelColumnConfig | FilterableLabelColumnConfig;
|
|
@@ -159,6 +159,10 @@ export type LabelsGridFeatures = {
|
|
|
159
159
|
showActions?: boolean;
|
|
160
160
|
};
|
|
161
161
|
export type GlobalFeatures = {
|
|
162
|
+
/**
|
|
163
|
+
* Disable default usage of Shadow DOM for all elements
|
|
164
|
+
*/
|
|
165
|
+
disableShadowDOM?: boolean;
|
|
162
166
|
/**
|
|
163
167
|
* Availible "Bring your own carrier" carrier codes for carriers that may be added. If this is omitted, new carriers may not be added by this element.
|
|
164
168
|
*/
|
|
@@ -78,7 +78,7 @@ export declare const getDefaultShipFromAddress: (addresses?: ShipFromAddress[])
|
|
|
78
78
|
* @internal
|
|
79
79
|
*
|
|
80
80
|
* # Address Utilities - getSavedShipFromAddressId
|
|
81
|
-
* Gets the address ID of
|
|
81
|
+
* Gets the address ID of the Ship From Address on the shipment if it is a saved address and not a warehouse
|
|
82
82
|
*
|
|
83
83
|
* @category Utilities
|
|
84
84
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface ShipEngineLocalStorageConfig {
|
|
2
|
+
carrierId?: string;
|
|
3
|
+
labelId?: string;
|
|
4
|
+
salesOrderId?: string;
|
|
5
|
+
sellerId?: number;
|
|
6
|
+
shipmentId?: string;
|
|
7
|
+
token?: string;
|
|
8
|
+
warehouseId?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const getLocalStorageConfig: () => ShipEngineLocalStorageConfig | undefined;
|
|
11
|
+
export declare const setLocalStorageConfig: (config: ShipEngineLocalStorageConfig) => void;
|
|
12
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Resolver } from "@hookform/resolvers/zod";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
+
import { ShipFromAddress } from "../types";
|
|
3
4
|
/**
|
|
4
5
|
* @internal
|
|
5
6
|
*
|
|
@@ -16,3 +17,21 @@ export declare const errorMap: z.ZodErrorMap;
|
|
|
16
17
|
* @category Utilities
|
|
17
18
|
*/
|
|
18
19
|
export declare const validationResolver: <T extends z.ZodType<any, any, any>>(schema: T, sensitiveValues?: string[]) => ReturnType<Resolver>;
|
|
20
|
+
/**
|
|
21
|
+
* Validates a ship-from address against the shipFromAddressFormSchema.
|
|
22
|
+
*
|
|
23
|
+
* @param shipFromAddress The ship-from address to validate.
|
|
24
|
+
* @returns An object indicating validation status and any error messages.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* const result = validateShipFromAddress(myAddress);
|
|
28
|
+
* if (result.isValid) {
|
|
29
|
+
* console.log("Address is valid.");
|
|
30
|
+
* } else {
|
|
31
|
+
* console.error("Address is invalid:", result.errors);
|
|
32
|
+
* }
|
|
33
|
+
*/
|
|
34
|
+
export declare const validateShipFromAddress: (shipFromAddress: ShipFromAddress) => {
|
|
35
|
+
errors: unknown;
|
|
36
|
+
isValid: boolean;
|
|
37
|
+
};
|
|
@@ -54,6 +54,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
54
54
|
thisMonth: string;
|
|
55
55
|
lastMonth: string;
|
|
56
56
|
};
|
|
57
|
+
category: {
|
|
58
|
+
fundsAdded: string;
|
|
59
|
+
};
|
|
57
60
|
};
|
|
58
61
|
"void-label": {
|
|
59
62
|
title: string;
|
|
@@ -650,8 +653,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
650
653
|
trackingStatus: {
|
|
651
654
|
unknown: string;
|
|
652
655
|
inTransit: string;
|
|
656
|
+
in_transit: string;
|
|
653
657
|
delivered: string;
|
|
654
658
|
error: string;
|
|
659
|
+
voided: string;
|
|
655
660
|
};
|
|
656
661
|
actions: {
|
|
657
662
|
title: string;
|
|
@@ -671,6 +676,17 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
671
676
|
connectCarriers: string;
|
|
672
677
|
disconnect: string;
|
|
673
678
|
disconnectCarrier: string;
|
|
679
|
+
downloadEula: string;
|
|
680
|
+
};
|
|
681
|
+
customForms: {
|
|
682
|
+
fedex: {
|
|
683
|
+
eulaName: string;
|
|
684
|
+
disclaimerFooter: string;
|
|
685
|
+
};
|
|
686
|
+
};
|
|
687
|
+
eula: {
|
|
688
|
+
toContinue: string;
|
|
689
|
+
iAgree: string;
|
|
674
690
|
};
|
|
675
691
|
noCarriersDescription: string;
|
|
676
692
|
registrationForm: {
|
|
@@ -717,6 +733,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
717
733
|
address: {
|
|
718
734
|
fields: {
|
|
719
735
|
name: string;
|
|
736
|
+
fullName: string;
|
|
720
737
|
company: string;
|
|
721
738
|
county: string;
|
|
722
739
|
countryCode: string;
|
|
@@ -879,6 +896,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
879
896
|
unknown: string;
|
|
880
897
|
noRatesAvailable: string;
|
|
881
898
|
refreshAndTryAgain: string;
|
|
899
|
+
updateShipFromAddress: string;
|
|
882
900
|
windsorFramework: {
|
|
883
901
|
doNotConform: string;
|
|
884
902
|
pleaseAddTheFollowingTaxIds: string;
|
|
@@ -897,6 +915,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
897
915
|
saveRate: string;
|
|
898
916
|
security: string;
|
|
899
917
|
shipmentStatus: string;
|
|
918
|
+
shipFromAddress: string;
|
|
900
919
|
system: string;
|
|
901
920
|
unknown: string;
|
|
902
921
|
validation: string;
|
|
@@ -910,6 +929,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
910
929
|
shipmentId: string;
|
|
911
930
|
labelId: string;
|
|
912
931
|
labelIdFilter: string;
|
|
932
|
+
filteredTrackingStatus: string;
|
|
933
|
+
more: string;
|
|
913
934
|
createdDate: string;
|
|
914
935
|
shipmentIdFilter: string;
|
|
915
936
|
createdDateFilter: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CodedError } from "@shipengine/react-api";
|
|
3
2
|
/**
|
|
4
3
|
* # Carrier-Services Component
|
|
5
4
|
*
|
|
@@ -24,11 +23,9 @@ import { CodedError } from "@shipengine/react-api";
|
|
|
24
23
|
* @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<CarrierServices />` component}
|
|
25
24
|
*/
|
|
26
25
|
export type CarrierServicesProps = {
|
|
27
|
-
addFunds?: () => Promise<any>;
|
|
28
|
-
addFundsError?: CodedError[] | null;
|
|
29
26
|
onRedirectToOnboarding?: () => void;
|
|
30
27
|
};
|
|
31
|
-
export declare const Component: ({ onRedirectToOnboarding
|
|
28
|
+
export declare const Component: ({ onRedirectToOnboarding }: CarrierServicesProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
32
29
|
export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
33
30
|
resources?: {
|
|
34
31
|
en: {
|
|
@@ -51,6 +48,9 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
51
48
|
thisMonth: string;
|
|
52
49
|
lastMonth: string;
|
|
53
50
|
};
|
|
51
|
+
category: {
|
|
52
|
+
fundsAdded: string;
|
|
53
|
+
};
|
|
54
54
|
};
|
|
55
55
|
"void-label": {
|
|
56
56
|
title: string;
|
|
@@ -647,8 +647,10 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
647
647
|
trackingStatus: {
|
|
648
648
|
unknown: string;
|
|
649
649
|
inTransit: string;
|
|
650
|
+
in_transit: string;
|
|
650
651
|
delivered: string;
|
|
651
652
|
error: string;
|
|
653
|
+
voided: string;
|
|
652
654
|
};
|
|
653
655
|
actions: {
|
|
654
656
|
title: string;
|
|
@@ -668,6 +670,17 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
668
670
|
connectCarriers: string;
|
|
669
671
|
disconnect: string;
|
|
670
672
|
disconnectCarrier: string;
|
|
673
|
+
downloadEula: string;
|
|
674
|
+
};
|
|
675
|
+
customForms: {
|
|
676
|
+
fedex: {
|
|
677
|
+
eulaName: string;
|
|
678
|
+
disclaimerFooter: string;
|
|
679
|
+
};
|
|
680
|
+
};
|
|
681
|
+
eula: {
|
|
682
|
+
toContinue: string;
|
|
683
|
+
iAgree: string;
|
|
671
684
|
};
|
|
672
685
|
noCarriersDescription: string;
|
|
673
686
|
registrationForm: {
|
|
@@ -714,6 +727,7 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
714
727
|
address: {
|
|
715
728
|
fields: {
|
|
716
729
|
name: string;
|
|
730
|
+
fullName: string;
|
|
717
731
|
company: string;
|
|
718
732
|
county: string;
|
|
719
733
|
countryCode: string;
|
|
@@ -876,6 +890,7 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
876
890
|
unknown: string;
|
|
877
891
|
noRatesAvailable: string;
|
|
878
892
|
refreshAndTryAgain: string;
|
|
893
|
+
updateShipFromAddress: string;
|
|
879
894
|
windsorFramework: {
|
|
880
895
|
doNotConform: string;
|
|
881
896
|
pleaseAddTheFollowingTaxIds: string;
|
|
@@ -894,6 +909,7 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
894
909
|
saveRate: string;
|
|
895
910
|
security: string;
|
|
896
911
|
shipmentStatus: string;
|
|
912
|
+
shipFromAddress: string;
|
|
897
913
|
system: string;
|
|
898
914
|
unknown: string;
|
|
899
915
|
validation: string;
|
|
@@ -907,6 +923,8 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
907
923
|
shipmentId: string;
|
|
908
924
|
labelId: string;
|
|
909
925
|
labelIdFilter: string;
|
|
926
|
+
filteredTrackingStatus: string;
|
|
927
|
+
more: string;
|
|
910
928
|
createdDate: string;
|
|
911
929
|
shipmentIdFilter: string;
|
|
912
930
|
createdDateFilter: string;
|
|
@@ -1074,29 +1092,6 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
1074
1092
|
accountBalance: string;
|
|
1075
1093
|
paymentMethod: string;
|
|
1076
1094
|
transactionHistory: string;
|
|
1077
|
-
/**
|
|
1078
|
-
* # Carrier-Services Component
|
|
1079
|
-
*
|
|
1080
|
-
* @param ComponentProps The base props that will be passed into the `<CarrierServices />` component.
|
|
1081
|
-
*
|
|
1082
|
-
* @returns Element A React element that renders the `<CarrierServices />` component allowing users
|
|
1083
|
-
* to view a list of carriers that are connected to their ShipEngine account, add funds to their wallet, view transaction history, and manage their payment method. This component is
|
|
1084
|
-
* composed in the `<AccountSettings />` Element.
|
|
1085
|
-
*
|
|
1086
|
-
* @example
|
|
1087
|
-
* ```tsx
|
|
1088
|
-
* (() => {
|
|
1089
|
-
* const features = useFeatures("Global");
|
|
1090
|
-
*
|
|
1091
|
-
* return <CarrierServices.Element features={features} />;
|
|
1092
|
-
* })();
|
|
1093
|
-
* ```
|
|
1094
|
-
*
|
|
1095
|
-
* <br />
|
|
1096
|
-
*
|
|
1097
|
-
* @see {@link CarrierServices.ComponentProps | The props that are passed into the `<CarrierServices />` component}
|
|
1098
|
-
* @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<CarrierServices />` component}
|
|
1099
|
-
*/
|
|
1100
1095
|
adjustmentHistory: string;
|
|
1101
1096
|
warehouses: string;
|
|
1102
1097
|
carriers: {
|
|
@@ -55,6 +55,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
55
55
|
thisMonth: string;
|
|
56
56
|
lastMonth: string;
|
|
57
57
|
};
|
|
58
|
+
category: {
|
|
59
|
+
fundsAdded: string;
|
|
60
|
+
};
|
|
58
61
|
};
|
|
59
62
|
"void-label": {
|
|
60
63
|
title: string;
|
|
@@ -73,29 +76,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
73
76
|
dpdwallet: string;
|
|
74
77
|
};
|
|
75
78
|
refund_process: string;
|
|
76
|
-
/**
|
|
77
|
-
* # ConnectExternalCarrier Component
|
|
78
|
-
*
|
|
79
|
-
* @param ComponentProps The base props that will be passed into the `<ConnectExternalCarrier />` component.
|
|
80
|
-
*
|
|
81
|
-
* @returns Element A React element that renders the `<ConnectExternalCarrier />` component allowing users
|
|
82
|
-
* to connect their own existing carrier account. If no carrier is provided, the user may
|
|
83
|
-
* select from a list of carriers specified by `features.availableCarrierConnections`.
|
|
84
|
-
* This component is composed in the `<AccountSettings />` Element.
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* ```tsx
|
|
88
|
-
* (() => {
|
|
89
|
-
* const features = useFeatures("CarrierConnections");
|
|
90
|
-
*
|
|
91
|
-
* return <ConnectExternalCarrier.Component features={features} />;
|
|
92
|
-
* })();
|
|
93
|
-
* ```
|
|
94
|
-
*
|
|
95
|
-
* <br />
|
|
96
|
-
*
|
|
97
|
-
* @see {@link ConnectExternalCarrier.ComponentProps | The props that are passed into the `<ConnectExternalCarrier />` component}
|
|
98
|
-
*/
|
|
99
79
|
refund_rules: string;
|
|
100
80
|
resultTitles: {
|
|
101
81
|
approved: string;
|
|
@@ -599,7 +579,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
599
579
|
metric: string;
|
|
600
580
|
};
|
|
601
581
|
weight: {
|
|
602
|
-
title: string;
|
|
582
|
+
title: string; /**
|
|
583
|
+
* # ConnectExternalCarrier Props
|
|
584
|
+
*
|
|
585
|
+
* @see {@link ConnectExternalCarrier.Component | The `<ConnectExternalCarrier />` component}
|
|
586
|
+
*/
|
|
603
587
|
standard: string;
|
|
604
588
|
g: string;
|
|
605
589
|
kg: string;
|
|
@@ -674,8 +658,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
674
658
|
trackingStatus: {
|
|
675
659
|
unknown: string;
|
|
676
660
|
inTransit: string;
|
|
661
|
+
in_transit: string;
|
|
677
662
|
delivered: string;
|
|
678
663
|
error: string;
|
|
664
|
+
voided: string;
|
|
679
665
|
};
|
|
680
666
|
actions: {
|
|
681
667
|
title: string;
|
|
@@ -695,6 +681,17 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
695
681
|
connectCarriers: string;
|
|
696
682
|
disconnect: string;
|
|
697
683
|
disconnectCarrier: string;
|
|
684
|
+
downloadEula: string;
|
|
685
|
+
};
|
|
686
|
+
customForms: {
|
|
687
|
+
fedex: {
|
|
688
|
+
eulaName: string;
|
|
689
|
+
disclaimerFooter: string;
|
|
690
|
+
};
|
|
691
|
+
};
|
|
692
|
+
eula: {
|
|
693
|
+
toContinue: string;
|
|
694
|
+
iAgree: string;
|
|
698
695
|
};
|
|
699
696
|
noCarriersDescription: string;
|
|
700
697
|
registrationForm: {
|
|
@@ -741,6 +738,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
741
738
|
address: {
|
|
742
739
|
fields: {
|
|
743
740
|
name: string;
|
|
741
|
+
fullName: string;
|
|
744
742
|
company: string;
|
|
745
743
|
county: string;
|
|
746
744
|
countryCode: string;
|
|
@@ -748,6 +746,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
748
746
|
addressLine2: string;
|
|
749
747
|
cityLocality: string;
|
|
750
748
|
stateProvince: string;
|
|
749
|
+
/**
|
|
750
|
+
* # ConnectExternalCarrier Props
|
|
751
|
+
*
|
|
752
|
+
* @see {@link ConnectExternalCarrier.Component | The `<ConnectExternalCarrier />` component}
|
|
753
|
+
*/
|
|
751
754
|
postalCode: string;
|
|
752
755
|
phone: string;
|
|
753
756
|
email: string;
|
|
@@ -903,6 +906,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
903
906
|
unknown: string;
|
|
904
907
|
noRatesAvailable: string;
|
|
905
908
|
refreshAndTryAgain: string;
|
|
909
|
+
updateShipFromAddress: string;
|
|
906
910
|
windsorFramework: {
|
|
907
911
|
doNotConform: string;
|
|
908
912
|
pleaseAddTheFollowingTaxIds: string;
|
|
@@ -921,6 +925,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
921
925
|
saveRate: string;
|
|
922
926
|
security: string;
|
|
923
927
|
shipmentStatus: string;
|
|
928
|
+
shipFromAddress: string;
|
|
924
929
|
system: string;
|
|
925
930
|
unknown: string;
|
|
926
931
|
validation: string;
|
|
@@ -934,6 +939,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
934
939
|
shipmentId: string;
|
|
935
940
|
labelId: string;
|
|
936
941
|
labelIdFilter: string;
|
|
942
|
+
filteredTrackingStatus: string;
|
|
943
|
+
more: string;
|
|
937
944
|
createdDate: string;
|
|
938
945
|
shipmentIdFilter: string;
|
|
939
946
|
createdDateFilter: string;
|
|
@@ -122,6 +122,9 @@ export declare const Element: ({ resources, ...props }: Omit<PurchaseLabel.Purch
|
|
|
122
122
|
thisMonth: string;
|
|
123
123
|
lastMonth: string;
|
|
124
124
|
};
|
|
125
|
+
category: {
|
|
126
|
+
fundsAdded: string;
|
|
127
|
+
};
|
|
125
128
|
};
|
|
126
129
|
"void-label": {
|
|
127
130
|
title: string;
|
|
@@ -729,8 +732,10 @@ export declare const Element: ({ resources, ...props }: Omit<PurchaseLabel.Purch
|
|
|
729
732
|
trackingStatus: {
|
|
730
733
|
unknown: string;
|
|
731
734
|
inTransit: string;
|
|
735
|
+
in_transit: string;
|
|
732
736
|
delivered: string;
|
|
733
737
|
error: string;
|
|
738
|
+
voided: string;
|
|
734
739
|
};
|
|
735
740
|
actions: {
|
|
736
741
|
title: string;
|
|
@@ -750,6 +755,17 @@ export declare const Element: ({ resources, ...props }: Omit<PurchaseLabel.Purch
|
|
|
750
755
|
connectCarriers: string;
|
|
751
756
|
disconnect: string;
|
|
752
757
|
disconnectCarrier: string;
|
|
758
|
+
downloadEula: string;
|
|
759
|
+
};
|
|
760
|
+
customForms: {
|
|
761
|
+
fedex: {
|
|
762
|
+
eulaName: string;
|
|
763
|
+
disclaimerFooter: string;
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
eula: {
|
|
767
|
+
toContinue: string;
|
|
768
|
+
iAgree: string;
|
|
753
769
|
};
|
|
754
770
|
noCarriersDescription: string;
|
|
755
771
|
registrationForm: {
|
|
@@ -796,6 +812,7 @@ export declare const Element: ({ resources, ...props }: Omit<PurchaseLabel.Purch
|
|
|
796
812
|
address: {
|
|
797
813
|
fields: {
|
|
798
814
|
name: string;
|
|
815
|
+
fullName: string;
|
|
799
816
|
company: string;
|
|
800
817
|
county: string;
|
|
801
818
|
countryCode: string;
|
|
@@ -958,6 +975,7 @@ export declare const Element: ({ resources, ...props }: Omit<PurchaseLabel.Purch
|
|
|
958
975
|
unknown: string;
|
|
959
976
|
noRatesAvailable: string;
|
|
960
977
|
refreshAndTryAgain: string;
|
|
978
|
+
updateShipFromAddress: string;
|
|
961
979
|
windsorFramework: {
|
|
962
980
|
doNotConform: string;
|
|
963
981
|
pleaseAddTheFollowingTaxIds: string;
|
|
@@ -976,6 +994,7 @@ export declare const Element: ({ resources, ...props }: Omit<PurchaseLabel.Purch
|
|
|
976
994
|
saveRate: string;
|
|
977
995
|
security: string;
|
|
978
996
|
shipmentStatus: string;
|
|
997
|
+
shipFromAddress: string;
|
|
979
998
|
system: string;
|
|
980
999
|
unknown: string;
|
|
981
1000
|
validation: string;
|
|
@@ -989,6 +1008,8 @@ export declare const Element: ({ resources, ...props }: Omit<PurchaseLabel.Purch
|
|
|
989
1008
|
shipmentId: string;
|
|
990
1009
|
labelId: string;
|
|
991
1010
|
labelIdFilter: string;
|
|
1011
|
+
filteredTrackingStatus: string;
|
|
1012
|
+
more: string;
|
|
992
1013
|
createdDate: string;
|
|
993
1014
|
shipmentIdFilter: string;
|
|
994
1015
|
createdDateFilter: string;
|
|
@@ -16,5 +16,6 @@ export type OnboardingWizardProps = {
|
|
|
16
16
|
defaultShipFromAddress?: ShipFromAddressStepProps["defaultShipFromAddress"];
|
|
17
17
|
onComplete: () => void;
|
|
18
18
|
onSellerOnboarded?: () => void;
|
|
19
|
+
skipWelcomePage?: boolean;
|
|
19
20
|
};
|
|
20
|
-
export declare const OnboardingWizard: ({ defaultShipFromAddress, onComplete: onWizardComplete, onSellerOnboarded, }: OnboardingWizardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const OnboardingWizard: ({ defaultShipFromAddress, onComplete: onWizardComplete, onSellerOnboarded, skipWelcomePage, }: OnboardingWizardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|