@shipengine/elements 2.9.1 → 2.11.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/carrier.js +1 -1
- package/components.js +1 -1
- package/elements.js +1 -1
- package/hooks.js +1 -1
- package/index.js +1 -1
- package/package.json +3 -3
- package/shipment.js +1 -1
- package/src/components/add-funds-form/add-funds-form.d.ts +2 -1
- package/src/components/enable-insurance-banner/enable-insurance-banner.d.ts +8 -0
- package/src/components/enable-insurance-banner/enable-insurance-banner.styles.d.ts +37 -0
- package/src/components/enable-insurance-banner/index.d.ts +1 -0
- package/src/components/field/rate-card/insurance-popover/index.d.ts +1 -0
- package/src/components/field/rate-card/insurance-popover/insurance-popover.d.ts +11 -0
- package/src/components/field/rate-card/insurance-popover/insurance-popover.styles.d.ts +14 -0
- package/src/components/field/{rate-card → rate-select/rate-card}/cost-breakdown/cost-breakdown.styles.d.ts +0 -1
- package/src/components/field/rate-select/rate-card/rate-card.d.ts +16 -0
- package/src/components/field/rate-select/rate-card/rate-card.styles.d.ts +30 -0
- package/src/components/field/rate-select/rate-select.d.ts +1 -0
- package/src/components/fund-and-purchase/fund-and-purchase.d.ts +2 -1
- package/src/components/service-card/service-card.d.ts +36 -0
- package/src/components/service-card/service-card.styles.d.ts +68 -0
- package/src/components/service-point-display/service-point-display.d.ts +1 -0
- package/src/components/service-points/service-points.d.ts +3 -2
- package/src/components/service-points/service-points.styles.d.ts +6 -0
- package/src/components/templates/index.d.ts +2 -1
- package/src/components/templates/label-display/index.d.ts +1 -0
- package/src/components/templates/label-display/label-card.d.ts +17 -0
- package/src/components/templates/{label/label.styles.d.ts → label-display/label-card.styles.d.ts} +8 -2
- package/src/components/templates/label-display/label-display.d.ts +15 -0
- package/src/components/templates/rate-form/rate-form.d.ts +3 -1
- package/src/components/templates/rate-form/rate-form.styles.d.ts +3 -0
- package/src/components/templates/rate-form/rate-view.d.ts +38 -0
- package/src/components/templates/register-funding-source-insurance-form/index.d.ts +2 -0
- package/src/components/templates/register-funding-source-insurance-form/register-funding-source-insurance-form-shema.d.ts +10 -0
- package/src/components/templates/register-funding-source-insurance-form/register-funding-source-insurance-form.d.ts +15 -0
- package/src/components/templates/register-funding-source-insurance-form/register-funding-source-insurance-from.styles.d.ts +14 -0
- package/src/components/templates/shipment/shipment.d.ts +1 -1
- package/src/components/templates/shipment-form/sections/customs-forms/components/index.d.ts +1 -0
- package/src/components/templates/shipment-form/sections/customs-forms/components/windsor-framework/windsor-framework.d.ts +7 -0
- package/src/components/templates/shipment-form/sections/customs-forms/components/windsor-framework/windsor-framework.styles.d.ts +20 -0
- package/src/components/templates/shipment-form/sections/customs-forms/customs-forms.d.ts +2 -1
- package/src/components/templates/shipment-form/shipment-form.d.ts +1 -1
- package/src/components/templates/shipment-form/shipment-form.styles.d.ts +20 -0
- package/src/components/templates/shipment-form/shipment-schema.d.ts +201 -13
- package/src/components/templates/wallet-form/wallet-form.d.ts +2 -1
- package/src/elements/index.d.ts +2 -2
- package/src/elements/labels-grid/hooks/use-labels-grid.d.ts +5 -1
- package/src/elements/labels-grid/labels-grid.d.ts +92 -36
- package/src/elements/manage-carriers/manage-carriers.d.ts +59 -6
- package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +81 -27
- package/src/elements/manage-funding/manage-funding-element.d.ts +59 -6
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +59 -6
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +59 -6
- package/src/elements/purchase-label/hooks/use-rates-form.d.ts +2 -0
- package/src/elements/purchase-label/hooks/use-shipment-form.d.ts +1 -1
- package/src/elements/purchase-label/purchase-label.d.ts +83 -22
- package/src/elements/select-label-layout/index.d.ts +1 -0
- package/src/elements/{label-layout/label-layout-element.d.ts → select-label-layout/select-label-layout-element.d.ts} +59 -6
- package/src/elements/shipment-summary/shipment-summary.d.ts +102 -27
- package/src/elements/shipments-grid/hooks/use-shipments-grid.d.ts +4 -0
- package/src/elements/shipments-grid/shipments-grid.d.ts +61 -13
- package/src/elements/theme-creator/theme-creator.d.ts +59 -6
- package/src/elements/transaction-history/transaction-history-element.d.ts +59 -6
- package/src/elements/unit-settings/unit-settings-element.d.ts +59 -6
- package/src/elements/vat-settings/vat-settings-element.d.ts +59 -6
- package/src/elements/void-label/void-label.d.ts +73 -57
- package/src/features/index.d.ts +1 -1
- package/src/features/manage-carriers/hooks/use-carrier-metadata.d.ts +2 -2
- package/src/features/manage-carriers/hooks/use-list-funding-source-carriers.d.ts +3 -1
- package/src/features/manage-carriers/manage-insurance-provider-row/index.d.ts +1 -0
- package/src/features/manage-carriers/manage-insurance-provider-row/info-popover.d.ts +10 -0
- package/src/features/manage-carriers/manage-insurance-provider-row/manage-insurance-provider-row.d.ts +7 -0
- package/src/features/manage-carriers/manage-insurance-provider-row/manage-insurance-provider-row.styles.d.ts +37 -0
- package/src/features/select-label-layout/index.d.ts +2 -0
- package/src/features/select-label-layout/select-label-layout.d.ts +7 -0
- package/src/features/{label-layout → select-label-layout}/use-label-layout.d.ts +2 -2
- package/src/features/unit-settings/unit-settings.d.ts +2 -2
- package/src/features/unit-settings/use-unit-settings.d.ts +3 -3
- package/src/features/vat-settings/use-vat-settings.d.ts +3 -3
- package/src/hooks/index.d.ts +1 -0
- package/src/hooks/insurance/index.d.ts +2 -0
- package/src/hooks/insurance/use-get-funding-source-insurance-provider.d.ts +14 -0
- package/src/hooks/insurance/use-manage-funding-source-insurance.d.ts +10 -0
- package/src/hooks/options/index.d.ts +2 -0
- package/src/hooks/options/use-insurance-provider-options.d.ts +8 -3
- package/src/hooks/options/use-movement-indicator-options.d.ts +12 -0
- package/src/hooks/options/use-rate-options.d.ts +4 -1
- package/src/hooks/options/use-windsor-framework.d.ts +9 -0
- package/src/index.d.ts +1 -0
- package/src/locales/en/index.d.ts +59 -6
- package/src/types/carrier-metadata.d.ts +1 -1
- package/src/types/index.d.ts +1 -0
- package/src/types/insurance-metadata.d.ts +25 -0
- package/src/utilities/feature-flags/types.d.ts +41 -0
- package/src/utilities/index.d.ts +1 -1
- package/src/utilities/shipengine/carrier.d.ts +16 -0
- package/src/utilities/shipengine/index.d.ts +1 -0
- package/src/utilities/shipengine/insurance.d.ts +17 -0
- package/src/utilities/tracking-formatter.d.ts +9 -0
- package/src/workflows/account-settings/account-settings.d.ts +60 -12
- package/src/workflows/account-settings/use-get-panel-props.d.ts +3 -3
- package/src/workflows/carrier-services/carrier-services.d.ts +59 -6
- package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +59 -6
- package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form-schema.d.ts +18 -18
- package/src/workflows/onboarding/components/confirmation-and-submission-step/use-confirmation-and-submission-step.d.ts +4 -2
- package/src/workflows/onboarding/components/funding-step/funding-step.d.ts +2 -1
- package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.d.ts +2 -1
- package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.d.ts +4 -3
- package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.styles.d.ts +4 -0
- package/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts +3 -3
- package/src/workflows/onboarding/onboarding.d.ts +60 -7
- package/suspend-text.js +1 -1
- package/transaction-history-element.js +1 -1
- package/use-run-once-on-true.js +1 -0
- package/use-scrub-errors.js +1 -1
- package/use-toggle.js +1 -1
- package/use-unit-settings.js +1 -1
- package/usePager.js +1 -1
- package/utilities.js +1 -1
- package/validation.js +1 -0
- package/vat.js +1 -1
- package/wallet-form.js +1 -1
- package/workflows.js +1 -1
- package/carrier-logo.js +0 -1
- package/src/components/field/rate-card/rate-card.d.ts +0 -19
- package/src/components/field/rate-card/rate-card.styles.d.ts +0 -22
- package/src/components/templates/label/index.d.ts +0 -1
- package/src/components/templates/label/label.d.ts +0 -12
- package/src/elements/label-layout/index.d.ts +0 -1
- package/src/features/label-layout/index.d.ts +0 -2
- package/src/features/label-layout/label-layout.d.ts +0 -7
- package/src/utilities/tracking-status-formatter.d.ts +0 -1
- package/warehouses.js +0 -1
- /package/src/components/field/{rate-card → rate-select/rate-card}/cost-breakdown/cost-breakdown.d.ts +0 -0
- /package/src/components/field/{rate-card → rate-select/rate-card}/cost-breakdown/index.d.ts +0 -0
- /package/src/components/field/{rate-card → rate-select/rate-card}/index.d.ts +0 -0
- /package/src/components/field/{rate-card → rate-select/rate-card}/rate-detail-cost-breakdown/index.d.ts +0 -0
- /package/src/components/field/{rate-card → rate-select/rate-card}/rate-detail-cost-breakdown/rate-detail-cost-breakdown.d.ts +0 -0
- /package/src/components/field/{rate-card → rate-select/rate-card}/rate-detail-cost-breakdown/rate-detail-cost-breakdown.styles.d.ts +0 -0
- /package/src/components/{label → history/history-card/label}/index.d.ts +0 -0
- /package/src/components/{label → history/history-card/label}/label.d.ts +0 -0
- /package/src/components/{label → history/history-card/label}/label.styles.d.ts +0 -0
- /package/src/features/{label-layout/label-layout.styles.d.ts → select-label-layout/select-label-layout.styles.d.ts} +0 -0
|
@@ -53,6 +53,7 @@ declare const _default: {
|
|
|
53
53
|
showItems: string;
|
|
54
54
|
void: string;
|
|
55
55
|
download: string;
|
|
56
|
+
fileClaim: string;
|
|
56
57
|
};
|
|
57
58
|
fields: {
|
|
58
59
|
dimensions: string;
|
|
@@ -68,6 +69,20 @@ declare const _default: {
|
|
|
68
69
|
insuredValue: string;
|
|
69
70
|
deliveryConfirmation: string;
|
|
70
71
|
};
|
|
72
|
+
insurance: {
|
|
73
|
+
parcelguard: {
|
|
74
|
+
title: string;
|
|
75
|
+
description: string;
|
|
76
|
+
cta: {
|
|
77
|
+
title: string;
|
|
78
|
+
description: string;
|
|
79
|
+
};
|
|
80
|
+
registerSuccess: {
|
|
81
|
+
title: string;
|
|
82
|
+
description: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
71
86
|
highVolumeForms: string;
|
|
72
87
|
multipleShippingServices: string;
|
|
73
88
|
sections: {
|
|
@@ -110,12 +125,6 @@ declare const _default: {
|
|
|
110
125
|
};
|
|
111
126
|
"register-wallet": {
|
|
112
127
|
sections: {
|
|
113
|
-
setup: {
|
|
114
|
-
title: string;
|
|
115
|
-
subtitle: string;
|
|
116
|
-
descriptionTitle: string;
|
|
117
|
-
description: string;
|
|
118
|
-
};
|
|
119
128
|
billing: {
|
|
120
129
|
title: string;
|
|
121
130
|
cardSubTitle: string;
|
|
@@ -128,6 +137,17 @@ declare const _default: {
|
|
|
128
137
|
title: string;
|
|
129
138
|
subtitle: string;
|
|
130
139
|
};
|
|
140
|
+
insuranceProviders: {
|
|
141
|
+
parcelguard: {
|
|
142
|
+
description: string;
|
|
143
|
+
terms: string;
|
|
144
|
+
termsLink: string;
|
|
145
|
+
popover: {
|
|
146
|
+
title: string;
|
|
147
|
+
description: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
131
151
|
notifications: {
|
|
132
152
|
error: {
|
|
133
153
|
title: string;
|
|
@@ -222,6 +242,7 @@ declare const _default: {
|
|
|
222
242
|
};
|
|
223
243
|
cta: {
|
|
224
244
|
addPackageDetails: string;
|
|
245
|
+
parcelguard: string;
|
|
225
246
|
};
|
|
226
247
|
errorMessages: {
|
|
227
248
|
customsItemsRequired: string;
|
|
@@ -292,6 +313,17 @@ declare const _default: {
|
|
|
292
313
|
dhlExpressTermsAcknowledgement: string;
|
|
293
314
|
noRateService: string;
|
|
294
315
|
};
|
|
316
|
+
windsorFramework: {
|
|
317
|
+
movementIndicator: string;
|
|
318
|
+
movementIndicators: {
|
|
319
|
+
b2c: string;
|
|
320
|
+
c2b: string;
|
|
321
|
+
c2c: string;
|
|
322
|
+
b2b: string;
|
|
323
|
+
};
|
|
324
|
+
notAtRisk: string;
|
|
325
|
+
notAtRiskShipmentTootip: string;
|
|
326
|
+
};
|
|
295
327
|
requirements: {
|
|
296
328
|
noWarehouse: string;
|
|
297
329
|
noCarrier: string;
|
|
@@ -322,6 +354,7 @@ declare const _default: {
|
|
|
322
354
|
shipToAddressFormFields: string;
|
|
323
355
|
sections: {
|
|
324
356
|
customsForm: string;
|
|
357
|
+
windsorFramework: string;
|
|
325
358
|
shipment: string;
|
|
326
359
|
rate_one: string;
|
|
327
360
|
rate_other: string;
|
|
@@ -346,6 +379,10 @@ declare const _default: {
|
|
|
346
379
|
shipFromAddress: string;
|
|
347
380
|
fundingAndCarrierConnection: string;
|
|
348
381
|
};
|
|
382
|
+
termsAgreement: {
|
|
383
|
+
title: string;
|
|
384
|
+
subtitle: string;
|
|
385
|
+
};
|
|
349
386
|
warehouse: {
|
|
350
387
|
title: string;
|
|
351
388
|
subtitle: string;
|
|
@@ -622,6 +659,7 @@ declare const _default: {
|
|
|
622
659
|
continue: string;
|
|
623
660
|
delete: string;
|
|
624
661
|
edit: string;
|
|
662
|
+
enable: string;
|
|
625
663
|
hide: string;
|
|
626
664
|
parse: string;
|
|
627
665
|
purchase: string;
|
|
@@ -782,6 +820,14 @@ declare const _default: {
|
|
|
782
820
|
unknown: string;
|
|
783
821
|
noRatesAvailable: string;
|
|
784
822
|
refreshAndTryAgain: string;
|
|
823
|
+
windsorFramework: {
|
|
824
|
+
doNotConform: string;
|
|
825
|
+
pleaseAddTheFollowingTaxIds: string;
|
|
826
|
+
windsorFrameworkDefaultMessage: string;
|
|
827
|
+
shipperEori: string;
|
|
828
|
+
recipientEori: string;
|
|
829
|
+
ukims: string;
|
|
830
|
+
};
|
|
785
831
|
};
|
|
786
832
|
errorTypes: {
|
|
787
833
|
accountStatus: string;
|
|
@@ -795,6 +841,7 @@ declare const _default: {
|
|
|
795
841
|
system: string;
|
|
796
842
|
unknown: string;
|
|
797
843
|
validation: string;
|
|
844
|
+
windsorFramework: string;
|
|
798
845
|
};
|
|
799
846
|
grid: {
|
|
800
847
|
"row-count_one": string;
|
|
@@ -821,8 +868,10 @@ declare const _default: {
|
|
|
821
868
|
insuranceProviders: {
|
|
822
869
|
carrier: string;
|
|
823
870
|
none: string;
|
|
871
|
+
parcelguard: string;
|
|
824
872
|
shipsurance: string;
|
|
825
873
|
thirdParty: string;
|
|
874
|
+
x_cover: string;
|
|
826
875
|
};
|
|
827
876
|
loading: {
|
|
828
877
|
accountSettings: string;
|
|
@@ -900,6 +949,9 @@ declare const _default: {
|
|
|
900
949
|
platform: string;
|
|
901
950
|
user: string;
|
|
902
951
|
};
|
|
952
|
+
tags: {
|
|
953
|
+
new: string;
|
|
954
|
+
};
|
|
903
955
|
terms: {
|
|
904
956
|
fields: {
|
|
905
957
|
agreement: string;
|
|
@@ -907,6 +959,7 @@ declare const _default: {
|
|
|
907
959
|
agreeToTerms: string;
|
|
908
960
|
carriersTitle: string;
|
|
909
961
|
fundingSourceTitle: string;
|
|
962
|
+
insuranceProvidersTitle: string;
|
|
910
963
|
shipEngineTitle: string;
|
|
911
964
|
};
|
|
912
965
|
weight: {
|
|
@@ -29,7 +29,7 @@ export type CarrierTerms = {
|
|
|
29
29
|
export type CarrierWithFriendlyName = {
|
|
30
30
|
name: string;
|
|
31
31
|
};
|
|
32
|
-
export type
|
|
32
|
+
export type ElementsCarrierMetadata = Record<string, CarrierWithFriendlyName>;
|
|
33
33
|
export type CarrierMetadataFromFundingSource = {
|
|
34
34
|
carrierProfile: SE.MetadataCarrierProfile;
|
|
35
35
|
friendlyName: string;
|
package/src/types/index.d.ts
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SE } from "@shipengine/react-api";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*
|
|
5
|
+
* # Insurance Metadata - Insurance Provider With Friendly Name
|
|
6
|
+
*/
|
|
7
|
+
export type InsuranceProviderWithFriendlyName = {
|
|
8
|
+
friendlyName: "ParcelGuard" | "XCover";
|
|
9
|
+
provider: SE.FundingSourceInsuranceProvider;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*
|
|
14
|
+
* # Insurance Metadata - Insurance Provider Profile
|
|
15
|
+
*/
|
|
16
|
+
export type InsuranceProviderProfile = {
|
|
17
|
+
agreedToTerms?: boolean;
|
|
18
|
+
terms: SE.MetadataOptionalTerm;
|
|
19
|
+
} & InsuranceProviderWithFriendlyName;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*
|
|
23
|
+
* # Insurance Metadata - Insurance Provider Record
|
|
24
|
+
*/
|
|
25
|
+
export type InsuranceProviderRecord = Record<string, InsuranceProviderWithFriendlyName>;
|
|
@@ -42,6 +42,10 @@ export type ShipmentFormFeatures = {
|
|
|
42
42
|
* varying shipment configurations. This is useful for rate shopping.
|
|
43
43
|
*/
|
|
44
44
|
browseRates?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Enables the `carrier insurance` feature, allowing users to select carrier insurance when insuring their shipment.
|
|
47
|
+
*/
|
|
48
|
+
includeCarrierInsurance?: boolean;
|
|
45
49
|
/**
|
|
46
50
|
* Enables the `shipsurance insurance` feature, allowing users to select Shipsurance when insuring their shipment.
|
|
47
51
|
*/
|
|
@@ -64,6 +68,10 @@ export type ShipmentSummaryFeatures = {
|
|
|
64
68
|
schedulePickup?: boolean;
|
|
65
69
|
};
|
|
66
70
|
export type PurchaseLabelFeatures = {
|
|
71
|
+
/**
|
|
72
|
+
* Feature still in beta. When enabled, the Windsor Framework will display forms, messaging, and error messages if a shipment requires specific Windsor Framework features.
|
|
73
|
+
*/
|
|
74
|
+
betaEnableWindsorFramework?: boolean;
|
|
67
75
|
/**
|
|
68
76
|
* List of all supported `countries` available in ShipEngine Elements.
|
|
69
77
|
*/
|
|
@@ -115,6 +123,34 @@ export type AccountSettingsFeatures = {
|
|
|
115
123
|
*/
|
|
116
124
|
showVatSettings?: boolean;
|
|
117
125
|
};
|
|
126
|
+
export type LabelColumnName = "shipmentId" | "labelId" | "packages" | "recipient" | "shippingService" | "createdDate" | "shipDate" | "status" | "trackingStatus";
|
|
127
|
+
export type BaseLabelColumnConfig = {
|
|
128
|
+
/**
|
|
129
|
+
* The name identifying the column
|
|
130
|
+
*/
|
|
131
|
+
name: Exclude<LabelColumnName, "shipmentId" | "labelId">;
|
|
132
|
+
};
|
|
133
|
+
export type FilterableLabelColumnConfig = {
|
|
134
|
+
/**
|
|
135
|
+
* Allow filtering by this column
|
|
136
|
+
*/
|
|
137
|
+
allowFilter?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* The name identifying the column
|
|
140
|
+
*/
|
|
141
|
+
name: Extract<LabelColumnName, "shipmentId" | "labelId">;
|
|
142
|
+
};
|
|
143
|
+
export type LabelColumnConfig = BaseLabelColumnConfig | FilterableLabelColumnConfig;
|
|
144
|
+
export type LabelsGridFeatures = {
|
|
145
|
+
/**
|
|
146
|
+
* Configure label grid columns
|
|
147
|
+
*/
|
|
148
|
+
columns?: LabelColumnConfig[];
|
|
149
|
+
/**
|
|
150
|
+
* Configure label grid columns
|
|
151
|
+
*/
|
|
152
|
+
showActions?: boolean;
|
|
153
|
+
};
|
|
118
154
|
export type GlobalFeatures = {
|
|
119
155
|
/**
|
|
120
156
|
* 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.
|
|
@@ -124,6 +160,10 @@ export type GlobalFeatures = {
|
|
|
124
160
|
* list of all walleted carriers that are enabled for use in Elements.
|
|
125
161
|
*/
|
|
126
162
|
enabledShipEngineCarriers?: EnabledShipEngineCarriers;
|
|
163
|
+
/**
|
|
164
|
+
* Enable parcel guard related features for the different parts of UI
|
|
165
|
+
*/
|
|
166
|
+
enableParcelGuard?: boolean;
|
|
127
167
|
/**
|
|
128
168
|
* Use Elements in Sandbox mode. Requires a sandbox partner.
|
|
129
169
|
*/
|
|
@@ -140,6 +180,7 @@ export type GlobalFeatures = {
|
|
|
140
180
|
export type ElementsFeatureFlags = {
|
|
141
181
|
accountSettingsFeatures?: AccountSettingsFeatures;
|
|
142
182
|
globalFeatures?: GlobalFeatures;
|
|
183
|
+
labelsGridFeatures?: LabelsGridFeatures;
|
|
143
184
|
purchaseLabelFeatures?: PurchaseLabelFeatures;
|
|
144
185
|
shipmentSummaryFeatures?: ShipmentSummaryFeatures;
|
|
145
186
|
};
|
package/src/utilities/index.d.ts
CHANGED
|
@@ -13,6 +13,6 @@ export * from "./rate-details";
|
|
|
13
13
|
export * from "./rates";
|
|
14
14
|
export * from "./shipengine";
|
|
15
15
|
export * from "./styles";
|
|
16
|
-
export * from "./tracking-
|
|
16
|
+
export * from "./tracking-formatter";
|
|
17
17
|
export * from "./validation";
|
|
18
18
|
export * from "./vat";
|
|
@@ -15,6 +15,22 @@ export declare const isUspsCarrier: (carrierCode: string) => boolean;
|
|
|
15
15
|
* @category Utilities
|
|
16
16
|
*/
|
|
17
17
|
export declare const isUpsCarrier: (carrierCode: string) => boolean;
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
*
|
|
21
|
+
* # Carrier Utilities - isYodelCarrier
|
|
22
|
+
*
|
|
23
|
+
* @category Utilities
|
|
24
|
+
*/
|
|
25
|
+
export declare const isYodelCarrier: (carrierCode: string) => boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*
|
|
29
|
+
* # Carrier Utilities - isEvriCarrier
|
|
30
|
+
*
|
|
31
|
+
* @category Utilities
|
|
32
|
+
*/
|
|
33
|
+
export declare const isEvriCarrier: (carrierCode: string) => boolean;
|
|
18
34
|
/**
|
|
19
35
|
* @internal
|
|
20
36
|
*
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SE } from "@shipengine/react-api";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*
|
|
5
|
+
* # Insurance Utilities - getInsuranceProviderWithFriendlyName
|
|
6
|
+
*
|
|
7
|
+
* @category Utilities
|
|
8
|
+
*/
|
|
9
|
+
export declare const getInsuranceProviderWithFriendlyName: (termType: string) => import("../../types").InsuranceProviderWithFriendlyName;
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*
|
|
13
|
+
* # Insurance Utilities - getIsInsuraceProviderAccepted
|
|
14
|
+
*
|
|
15
|
+
* @category Utilities
|
|
16
|
+
*/
|
|
17
|
+
export declare const getIsInsuraceProviderAccepted: (termType: string, acceptedTerms?: SE.Term[]) => boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const trackingStatusFormatter: (status: string) => string | undefined;
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*
|
|
5
|
+
* # Format Tracking Number Utility Function
|
|
6
|
+
*
|
|
7
|
+
* - This is a utility function that formats the tracking number to display only the last 25 characters, in reverse truncated fashion as the last numbers of a tracking number are the most unique/important.
|
|
8
|
+
*/
|
|
9
|
+
export declare const formatTrackingNumber: (trackingNumber: string) => string;
|
|
@@ -89,6 +89,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
89
89
|
showItems: string;
|
|
90
90
|
void: string;
|
|
91
91
|
download: string;
|
|
92
|
+
fileClaim: string;
|
|
92
93
|
};
|
|
93
94
|
fields: {
|
|
94
95
|
dimensions: string;
|
|
@@ -104,6 +105,20 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
104
105
|
insuredValue: string;
|
|
105
106
|
deliveryConfirmation: string;
|
|
106
107
|
};
|
|
108
|
+
insurance: {
|
|
109
|
+
parcelguard: {
|
|
110
|
+
title: string;
|
|
111
|
+
description: string;
|
|
112
|
+
cta: {
|
|
113
|
+
title: string;
|
|
114
|
+
description: string;
|
|
115
|
+
};
|
|
116
|
+
registerSuccess: {
|
|
117
|
+
title: string;
|
|
118
|
+
description: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
107
122
|
highVolumeForms: string;
|
|
108
123
|
multipleShippingServices: string;
|
|
109
124
|
sections: {
|
|
@@ -123,9 +138,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
123
138
|
verifiedVat: string;
|
|
124
139
|
vatFormErrors: {
|
|
125
140
|
invalidFieldValue: string;
|
|
126
|
-
verificationFailure: string;
|
|
127
|
-
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
128
|
-
*/
|
|
141
|
+
verificationFailure: string;
|
|
129
142
|
forbidden: string;
|
|
130
143
|
connectionNotSupported: string;
|
|
131
144
|
genericTitle: string;
|
|
@@ -148,12 +161,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
148
161
|
};
|
|
149
162
|
"register-wallet": {
|
|
150
163
|
sections: {
|
|
151
|
-
setup: {
|
|
152
|
-
title: string;
|
|
153
|
-
subtitle: string;
|
|
154
|
-
descriptionTitle: string;
|
|
155
|
-
description: string;
|
|
156
|
-
};
|
|
157
164
|
billing: {
|
|
158
165
|
title: string;
|
|
159
166
|
cardSubTitle: string;
|
|
@@ -166,6 +173,17 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
166
173
|
title: string;
|
|
167
174
|
subtitle: string;
|
|
168
175
|
};
|
|
176
|
+
insuranceProviders: {
|
|
177
|
+
parcelguard: {
|
|
178
|
+
description: string;
|
|
179
|
+
terms: string;
|
|
180
|
+
termsLink: string;
|
|
181
|
+
popover: {
|
|
182
|
+
title: string;
|
|
183
|
+
description: string;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
};
|
|
169
187
|
notifications: {
|
|
170
188
|
error: {
|
|
171
189
|
title: string;
|
|
@@ -260,6 +278,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
260
278
|
};
|
|
261
279
|
cta: {
|
|
262
280
|
addPackageDetails: string;
|
|
281
|
+
parcelguard: string;
|
|
263
282
|
};
|
|
264
283
|
errorMessages: {
|
|
265
284
|
customsItemsRequired: string;
|
|
@@ -330,6 +349,17 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
330
349
|
dhlExpressTermsAcknowledgement: string;
|
|
331
350
|
noRateService: string;
|
|
332
351
|
};
|
|
352
|
+
windsorFramework: {
|
|
353
|
+
movementIndicator: string;
|
|
354
|
+
movementIndicators: {
|
|
355
|
+
b2c: string;
|
|
356
|
+
c2b: string;
|
|
357
|
+
c2c: string;
|
|
358
|
+
b2b: string;
|
|
359
|
+
};
|
|
360
|
+
notAtRisk: string;
|
|
361
|
+
notAtRiskShipmentTootip: string;
|
|
362
|
+
};
|
|
333
363
|
requirements: {
|
|
334
364
|
noWarehouse: string;
|
|
335
365
|
noCarrier: string;
|
|
@@ -360,6 +390,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
360
390
|
shipToAddressFormFields: string;
|
|
361
391
|
sections: {
|
|
362
392
|
customsForm: string;
|
|
393
|
+
windsorFramework: string;
|
|
363
394
|
shipment: string;
|
|
364
395
|
rate_one: string;
|
|
365
396
|
rate_other: string;
|
|
@@ -384,6 +415,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
384
415
|
shipFromAddress: string;
|
|
385
416
|
fundingAndCarrierConnection: string;
|
|
386
417
|
};
|
|
418
|
+
termsAgreement: {
|
|
419
|
+
title: string;
|
|
420
|
+
subtitle: string;
|
|
421
|
+
};
|
|
387
422
|
warehouse: {
|
|
388
423
|
title: string;
|
|
389
424
|
subtitle: string;
|
|
@@ -660,6 +695,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
660
695
|
continue: string;
|
|
661
696
|
delete: string;
|
|
662
697
|
edit: string;
|
|
698
|
+
enable: string;
|
|
663
699
|
hide: string;
|
|
664
700
|
parse: string;
|
|
665
701
|
purchase: string;
|
|
@@ -820,6 +856,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
820
856
|
unknown: string;
|
|
821
857
|
noRatesAvailable: string;
|
|
822
858
|
refreshAndTryAgain: string;
|
|
859
|
+
windsorFramework: {
|
|
860
|
+
doNotConform: string;
|
|
861
|
+
pleaseAddTheFollowingTaxIds: string;
|
|
862
|
+
windsorFrameworkDefaultMessage: string;
|
|
863
|
+
shipperEori: string;
|
|
864
|
+
recipientEori: string;
|
|
865
|
+
ukims: string;
|
|
866
|
+
};
|
|
823
867
|
};
|
|
824
868
|
errorTypes: {
|
|
825
869
|
accountStatus: string;
|
|
@@ -833,6 +877,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
833
877
|
system: string;
|
|
834
878
|
unknown: string;
|
|
835
879
|
validation: string;
|
|
880
|
+
windsorFramework: string;
|
|
836
881
|
};
|
|
837
882
|
grid: {
|
|
838
883
|
"row-count_one": string;
|
|
@@ -859,8 +904,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
859
904
|
insuranceProviders: {
|
|
860
905
|
carrier: string;
|
|
861
906
|
none: string;
|
|
907
|
+
parcelguard: string;
|
|
862
908
|
shipsurance: string;
|
|
863
909
|
thirdParty: string;
|
|
910
|
+
x_cover: string;
|
|
864
911
|
};
|
|
865
912
|
loading: {
|
|
866
913
|
accountSettings: string;
|
|
@@ -938,6 +985,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
938
985
|
platform: string;
|
|
939
986
|
user: string;
|
|
940
987
|
};
|
|
988
|
+
tags: {
|
|
989
|
+
new: string;
|
|
990
|
+
};
|
|
941
991
|
terms: {
|
|
942
992
|
fields: {
|
|
943
993
|
agreement: string;
|
|
@@ -945,6 +995,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
945
995
|
agreeToTerms: string;
|
|
946
996
|
carriersTitle: string;
|
|
947
997
|
fundingSourceTitle: string;
|
|
998
|
+
insuranceProvidersTitle: string;
|
|
948
999
|
shipEngineTitle: string;
|
|
949
1000
|
};
|
|
950
1001
|
weight: {
|
|
@@ -1005,9 +1056,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
1005
1056
|
externalCarriers: string;
|
|
1006
1057
|
labelLayout: string;
|
|
1007
1058
|
unitSettings: string;
|
|
1008
|
-
/**
|
|
1009
|
-
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
1010
|
-
*/
|
|
1011
1059
|
vatSettings: string;
|
|
1012
1060
|
};
|
|
1013
1061
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CollapsiblePanelProps } from "../../components";
|
|
2
2
|
import { ExternalCarriersProps, UnitSettingsProps } from "../../features";
|
|
3
|
-
import { LabelLayoutSettingsProps } from "../../features/label-layout/label-layout";
|
|
4
3
|
import { ManageWarehousesProps } from "../../features/manage-warehouses/";
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { SelectLabelLayoutSettingsProps } from "../../features/select-label-layout/select-label-layout";
|
|
5
|
+
type SettingProps = ExternalCarriersProps | SelectLabelLayoutSettingsProps | UnitSettingsProps | ManageWarehousesProps;
|
|
6
|
+
export type SettingPropsIntersection = ExternalCarriersProps & SelectLabelLayoutSettingsProps & UnitSettingsProps & ManageWarehousesProps;
|
|
7
7
|
export declare const useGetPanelProps: () => {
|
|
8
8
|
getSettingPanelProps: (setting: string) => [panelProps?: CollapsiblePanelProps, settingProps?: SettingProps];
|
|
9
9
|
};
|