@shipengine/elements 2.0.0 → 2.1.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 +34 -0
- package/carrier-logo.js +1 -0
- package/components.js +1 -1
- package/constants.js +1 -1
- package/elements.js +1 -1
- package/extensions.js +1 -1
- package/formatString.js +1 -0
- package/hooks.js +1 -1
- package/index.js +1 -1
- package/package.json +15 -45
- package/pudo.js +1 -0
- package/schemas.js +1 -1
- package/src/components/actions-menu/actions-menu.d.ts +19 -0
- package/src/components/actions-menu/index.d.ts +1 -0
- package/src/components/collapsible-panel/collapsible-panel.styles.d.ts +10 -13
- package/src/components/field/checkbox-input/checkbox-input.d.ts +1 -0
- package/src/components/field/rate-card/rate-card.styles.d.ts +0 -1
- package/src/components/field/select/index.d.ts +1 -0
- package/src/components/field/select/select-with-categories.d.ts +20 -0
- package/src/components/field/select/select.d.ts +5 -10
- package/src/components/index.d.ts +1 -0
- package/src/components/templates/connected-carrier-list/connected-carrier-list.d.ts +4 -1
- package/src/components/templates/connected-carrier-list/connected-carrier-list.styles.d.ts +0 -10
- package/src/components/templates/connected-carrier-list/connected-carrier-row/connected-carrier-row.d.ts +4 -1
- package/src/components/templates/connected-carrier-list/connected-carrier-row/connected-carrier-row.styles.d.ts +19 -12
- package/src/components/templates/products-display/products-display.styles.d.ts +12 -4
- package/src/components/templates/shipment-form/sections/customs-forms/components/index.d.ts +2 -0
- package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/form/index.d.ts +3 -0
- package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/form/schema.d.ts +38 -0
- package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/form/values.d.ts +12 -0
- package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/index.d.ts +2 -0
- package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/tax-id-form.d.ts +17 -0
- package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/tax-id-list.d.ts +12 -0
- package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/tax-ids.d.ts +8 -0
- package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/tax-ids.styles.d.ts +70 -0
- package/src/components/templates/shipment-form/sections/customs-forms/customs-forms.d.ts +10 -0
- package/src/components/templates/shipment-form/sections/customs-forms/index.d.ts +1 -0
- package/src/components/templates/shipment-form/sections/index.d.ts +1 -0
- package/src/components/templates/shipment-form/shipment-form.d.ts +2 -1
- package/src/components/templates/shipment-form/shipment-form.styles.d.ts +9 -0
- package/src/components/warehouse-form/warehouse-form.d.ts +10 -3
- package/src/components/zero-state/zero-state.d.ts +6 -0
- package/src/components/zero-state/zero-state.styles.d.ts +14 -0
- package/src/elements/label-layout/label-layout-element.d.ts +43 -1
- package/src/elements/labels-grid/labels-grid.d.ts +43 -1
- package/src/elements/manage-carriers/manage-carriers.d.ts +93 -52
- package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +65 -1
- package/src/elements/manage-funding/manage-funding-element.d.ts +46 -3
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +43 -1
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +46 -3
- package/src/elements/purchase-label/hooks/use-customs.d.ts +1 -0
- package/src/elements/purchase-label/hooks/use-shipment-form.d.ts +1 -0
- package/src/elements/purchase-label/purchase-label.d.ts +68 -4
- package/src/elements/shipment-summary/shipment-summary.d.ts +47 -1
- package/src/elements/shipments-grid/shipments-grid.d.ts +43 -1
- package/src/elements/theme-creator/theme-creator.d.ts +43 -1
- package/src/elements/transaction-history/transaction-history-element.d.ts +43 -1
- package/src/elements/unit-settings/unit-settings-element.d.ts +43 -1
- package/src/elements/vat-settings/vat-settings-element.d.ts +43 -1
- package/src/elements/void-label/void-label.d.ts +57 -10
- package/src/elements-provider/elements-context-provider.d.ts +44 -0
- package/src/elements-provider/elements-provider.d.ts +6 -40
- package/src/elements-provider/index.d.ts +2 -0
- package/src/features/manage-carriers/hooks/use-list-funding-source-carriers.d.ts +1 -1
- package/src/features/manage-carriers/manage-carriers.d.ts +2 -1
- package/src/features/manage-external-carriers/index.d.ts +1 -0
- package/src/features/manage-external-carriers/manage-external-carriers.d.ts +11 -1
- package/src/features/manage-external-carriers/use-manage-external-carriers.d.ts +12 -0
- package/src/features/manage-funding/manage-funding.d.ts +4 -1
- package/src/features/payment-method-settings/payment-method-settings.d.ts +4 -1
- package/src/hooks/options/use-package-options.d.ts +1 -1
- package/src/hooks/options/use-warehouse-options.d.ts +3 -1
- package/src/index.d.ts +1 -0
- package/src/locales/en/index.d.ts +43 -1
- package/src/testing/test-utils.d.ts +0 -1
- package/src/utilities/formatString.d.ts +2 -0
- package/src/utilities/index.d.ts +1 -0
- package/src/utilities/pudo.d.ts +3 -0
- package/src/utilities/rates.d.ts +1 -3
- package/src/utilities/shipengine/carrier.d.ts +4 -1
- package/src/workflows/account-settings/account-settings.d.ts +45 -2
- package/src/workflows/account-settings/use-get-panel-props.d.ts +3 -3
- package/src/workflows/carrier-services/carrier-services.d.ts +51 -29
- package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +43 -1
- package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.d.ts +2 -1
- package/src/workflows/onboarding/onboarding.d.ts +43 -1
- package/story-notes.js +1 -0
- package/suspend-text.js +1 -0
- package/transaction-history-element.js +1 -0
- package/use-page-layout.js +1 -0
- package/use-scrub-errors.js +1 -0
- package/use-toggle.js +1 -0
- package/use-unit-settings.js +1 -0
- package/utilities.js +1 -1
- package/validation.js +1 -0
- package/wallet-form.js +1 -0
- package/warehouses.js +1 -0
- package/workflows.js +1 -1
- package/carrier-c2a5ed53.js +0 -1
- package/carrier-logo-330e926f.js +0 -1
- package/formatString-413ec7c7.js +0 -1
- package/shipment-150160e0.js +0 -1
- package/story-notes-c714d2ed.js +0 -1
- package/suspend-text-cad3a977.js +0 -1
- package/transaction-history-element-cbfe487c.js +0 -1
- package/use-page-layout-8cb5075f.js +0 -1
- package/use-scrub-errors-9870a6f3.js +0 -1
- package/use-toggle-866d7938.js +0 -1
- package/use-unit-settings-a5bae16e.js +0 -1
- package/validation-528e7834.js +0 -1
- package/wallet-form-9e4bfaea.js +0 -1
- package/warehouse-form-da6a7ac5.js +0 -34
- package/warehouses-a83188ab.js +0 -1
- /package/{address-8f8119f4.js → address.js} +0 -0
- /package/{assertions-dfa95b4d.js → assertions.js} +0 -0
- /package/{money-d4f3d7c3.js → money.js} +0 -0
- /package/{phone-87dd7bd8.js → phone.js} +0 -0
- /package/{zod-60def96c.js → zod.js} +0 -0
|
@@ -172,6 +172,7 @@ declare const _default: {
|
|
|
172
172
|
title: string;
|
|
173
173
|
};
|
|
174
174
|
};
|
|
175
|
+
noFundingSource: string;
|
|
175
176
|
};
|
|
176
177
|
"rate-details": {
|
|
177
178
|
total: string;
|
|
@@ -356,6 +357,12 @@ declare const _default: {
|
|
|
356
357
|
subtitle: string;
|
|
357
358
|
inlineMessage: string;
|
|
358
359
|
};
|
|
360
|
+
errors: {
|
|
361
|
+
noCarriers: {
|
|
362
|
+
title: string;
|
|
363
|
+
subtitle: string;
|
|
364
|
+
};
|
|
365
|
+
};
|
|
359
366
|
success: {
|
|
360
367
|
title: string;
|
|
361
368
|
subtitle: string;
|
|
@@ -401,6 +408,7 @@ declare const _default: {
|
|
|
401
408
|
returnToAddressIsDifferent: string;
|
|
402
409
|
setDefault: string;
|
|
403
410
|
shipFrom: string;
|
|
411
|
+
noWarehouses: string;
|
|
404
412
|
};
|
|
405
413
|
"manage-funding": {
|
|
406
414
|
actions: {
|
|
@@ -448,6 +456,7 @@ declare const _default: {
|
|
|
448
456
|
errors: {
|
|
449
457
|
balanceUnknown: string;
|
|
450
458
|
unableToFindBalance: string;
|
|
459
|
+
noFundingSource: string;
|
|
451
460
|
};
|
|
452
461
|
byoc: {
|
|
453
462
|
invoiceNotification: string;
|
|
@@ -547,6 +556,9 @@ declare const _default: {
|
|
|
547
556
|
toastTitle: string;
|
|
548
557
|
toastBody: string;
|
|
549
558
|
};
|
|
559
|
+
deleteCarrierErrorTitle: string;
|
|
560
|
+
deleteCarrierErrorMessage: string;
|
|
561
|
+
loadingDeletingCarrier: string;
|
|
550
562
|
};
|
|
551
563
|
common: {
|
|
552
564
|
actions: {
|
|
@@ -649,6 +661,7 @@ declare const _default: {
|
|
|
649
661
|
};
|
|
650
662
|
customs: {
|
|
651
663
|
addDeclaration: string;
|
|
664
|
+
noResults: string;
|
|
652
665
|
contents: {
|
|
653
666
|
documents: string;
|
|
654
667
|
gift: string;
|
|
@@ -656,6 +669,14 @@ declare const _default: {
|
|
|
656
669
|
returnedGoods: string;
|
|
657
670
|
sample: string;
|
|
658
671
|
};
|
|
672
|
+
taxIds: {
|
|
673
|
+
sectionTitle: string;
|
|
674
|
+
addTaxId: string;
|
|
675
|
+
sectionTitleTooltip: string;
|
|
676
|
+
entityTypeTooltipText: string;
|
|
677
|
+
entityTypeTooltipPointOne: string;
|
|
678
|
+
entityTypeTooltipPointTwo: string;
|
|
679
|
+
};
|
|
659
680
|
currencyChange: string;
|
|
660
681
|
declarations: string;
|
|
661
682
|
descriptionTooltip: {
|
|
@@ -673,6 +694,11 @@ declare const _default: {
|
|
|
673
694
|
sku: string;
|
|
674
695
|
value: string;
|
|
675
696
|
valueQuantity: string;
|
|
697
|
+
taxId: string;
|
|
698
|
+
taxIdType: string;
|
|
699
|
+
taxIdTypeValue: string;
|
|
700
|
+
taxIssuingAuthority: string;
|
|
701
|
+
entityType: string;
|
|
676
702
|
};
|
|
677
703
|
nonDelivery: {
|
|
678
704
|
returnToSender: string;
|
|
@@ -745,6 +771,8 @@ declare const _default: {
|
|
|
745
771
|
shipment: string;
|
|
746
772
|
shipments: string;
|
|
747
773
|
warehouses: string;
|
|
774
|
+
funding: string;
|
|
775
|
+
paymentMethod: string;
|
|
748
776
|
};
|
|
749
777
|
months: {
|
|
750
778
|
january: string;
|
|
@@ -823,6 +851,16 @@ declare const _default: {
|
|
|
823
851
|
gram: string;
|
|
824
852
|
kilogram: string;
|
|
825
853
|
};
|
|
854
|
+
actionsMenu: {
|
|
855
|
+
menuTitle: string;
|
|
856
|
+
actions: {
|
|
857
|
+
printLabel: string;
|
|
858
|
+
voidLabel: string;
|
|
859
|
+
printForms: string;
|
|
860
|
+
edit: string;
|
|
861
|
+
remove: string;
|
|
862
|
+
};
|
|
863
|
+
};
|
|
826
864
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
827
865
|
T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
|
|
828
866
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
|
|
@@ -838,7 +876,11 @@ declare const _default: {
|
|
|
838
876
|
};
|
|
839
877
|
"account-settings": {
|
|
840
878
|
messages: {
|
|
841
|
-
|
|
879
|
+
transactionHistory: {
|
|
880
|
+
noTransactions: string;
|
|
881
|
+
};
|
|
882
|
+
noFundingSourceDescription: string;
|
|
883
|
+
noFundingSourceAction: string;
|
|
842
884
|
};
|
|
843
885
|
title: string;
|
|
844
886
|
sections: {
|
|
@@ -6,5 +6,7 @@
|
|
|
6
6
|
* - This is a utility function that `capitalizes` the first letter of a given string.
|
|
7
7
|
*/
|
|
8
8
|
export declare const capitalizeFirstLetter: (str: string) => string;
|
|
9
|
+
export declare const capitalizeFirstLetterOfEachWord: (str: string) => string;
|
|
9
10
|
export declare const pascalize: (str: string) => string;
|
|
11
|
+
export declare const replaceSpacesWithDashes: (str?: string) => string | undefined;
|
|
10
12
|
export declare const addSpaceBetweenWords: (str: string) => string;
|
package/src/utilities/index.d.ts
CHANGED
package/src/utilities/rates.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SE } from "@shipengine/react-api";
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*
|
|
@@ -29,5 +29,3 @@ export declare const getTotalRateAmount: (rateCosts?: {
|
|
|
29
29
|
* @category Utilities
|
|
30
30
|
*/
|
|
31
31
|
export declare const overrideCarrierCodes: (carrier: string, overrides: object) => never;
|
|
32
|
-
export declare const isPudoEligibleRate: (rate: Rate) => boolean;
|
|
33
|
-
export declare const isCollectionService: (carrier: string, serviceCode: string) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SE } from "@shipengine/react-api";
|
|
1
|
+
import { MetadataCarrierProfile, SE } from "@shipengine/react-api";
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*
|
|
@@ -31,3 +31,6 @@ export declare const getCarrierIdByCarrierCode: (carriers: SE.Carrier[] | undefi
|
|
|
31
31
|
* @category Utilities
|
|
32
32
|
*/
|
|
33
33
|
export declare const getLogoOrIconByCarrierCode: (carrierCode: string, type: "logo" | "icon") => string;
|
|
34
|
+
export declare const isGlobalPostEligible: (region?: string) => boolean;
|
|
35
|
+
export declare const isSendleEligible: (region?: string) => boolean;
|
|
36
|
+
export declare const filterFundingSourceCarriers: (carriers?: MetadataCarrierProfile[], fundingSourceRegion?: string) => MetadataCarrierProfile[] | undefined;
|
|
@@ -5,8 +5,9 @@ export type ComponentProps = {
|
|
|
5
5
|
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
6
6
|
*/
|
|
7
7
|
features?: AccountSettingsFeatures;
|
|
8
|
+
onRedirectToOnboarding?: () => void;
|
|
8
9
|
};
|
|
9
|
-
export declare const Component: ({ features }: ComponentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const Component: ({ features, onRedirectToOnboarding }: ComponentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
11
|
/**
|
|
11
12
|
* # Registered Account Settings Element
|
|
12
13
|
*
|
|
@@ -207,6 +208,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
207
208
|
title: string;
|
|
208
209
|
};
|
|
209
210
|
};
|
|
211
|
+
noFundingSource: string;
|
|
210
212
|
};
|
|
211
213
|
"rate-details": {
|
|
212
214
|
total: string;
|
|
@@ -393,6 +395,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
393
395
|
subtitle: string;
|
|
394
396
|
inlineMessage: string;
|
|
395
397
|
};
|
|
398
|
+
errors: {
|
|
399
|
+
noCarriers: {
|
|
400
|
+
title: string;
|
|
401
|
+
subtitle: string;
|
|
402
|
+
};
|
|
403
|
+
};
|
|
396
404
|
success: {
|
|
397
405
|
title: string;
|
|
398
406
|
subtitle: string;
|
|
@@ -438,6 +446,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
438
446
|
returnToAddressIsDifferent: string;
|
|
439
447
|
setDefault: string;
|
|
440
448
|
shipFrom: string;
|
|
449
|
+
noWarehouses: string;
|
|
441
450
|
};
|
|
442
451
|
"manage-funding": {
|
|
443
452
|
actions: {
|
|
@@ -485,6 +494,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
485
494
|
errors: {
|
|
486
495
|
balanceUnknown: string;
|
|
487
496
|
unableToFindBalance: string;
|
|
497
|
+
noFundingSource: string;
|
|
488
498
|
};
|
|
489
499
|
byoc: {
|
|
490
500
|
invoiceNotification: string;
|
|
@@ -584,6 +594,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
584
594
|
toastTitle: string;
|
|
585
595
|
toastBody: string;
|
|
586
596
|
};
|
|
597
|
+
deleteCarrierErrorTitle: string;
|
|
598
|
+
deleteCarrierErrorMessage: string;
|
|
599
|
+
loadingDeletingCarrier: string;
|
|
587
600
|
};
|
|
588
601
|
common: {
|
|
589
602
|
actions: {
|
|
@@ -686,6 +699,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
686
699
|
};
|
|
687
700
|
customs: {
|
|
688
701
|
addDeclaration: string;
|
|
702
|
+
noResults: string;
|
|
689
703
|
contents: {
|
|
690
704
|
documents: string;
|
|
691
705
|
gift: string;
|
|
@@ -693,6 +707,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
693
707
|
returnedGoods: string;
|
|
694
708
|
sample: string;
|
|
695
709
|
};
|
|
710
|
+
taxIds: {
|
|
711
|
+
sectionTitle: string;
|
|
712
|
+
addTaxId: string;
|
|
713
|
+
sectionTitleTooltip: string;
|
|
714
|
+
entityTypeTooltipText: string;
|
|
715
|
+
entityTypeTooltipPointOne: string;
|
|
716
|
+
entityTypeTooltipPointTwo: string;
|
|
717
|
+
};
|
|
696
718
|
currencyChange: string;
|
|
697
719
|
declarations: string;
|
|
698
720
|
descriptionTooltip: {
|
|
@@ -710,6 +732,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
710
732
|
sku: string;
|
|
711
733
|
value: string;
|
|
712
734
|
valueQuantity: string;
|
|
735
|
+
taxId: string;
|
|
736
|
+
taxIdType: string;
|
|
737
|
+
taxIdTypeValue: string;
|
|
738
|
+
taxIssuingAuthority: string;
|
|
739
|
+
entityType: string;
|
|
713
740
|
};
|
|
714
741
|
nonDelivery: {
|
|
715
742
|
returnToSender: string;
|
|
@@ -782,6 +809,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
782
809
|
shipment: string;
|
|
783
810
|
shipments: string;
|
|
784
811
|
warehouses: string;
|
|
812
|
+
funding: string;
|
|
813
|
+
paymentMethod: string;
|
|
785
814
|
};
|
|
786
815
|
months: {
|
|
787
816
|
january: string;
|
|
@@ -860,6 +889,16 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
860
889
|
gram: string;
|
|
861
890
|
kilogram: string;
|
|
862
891
|
};
|
|
892
|
+
actionsMenu: {
|
|
893
|
+
menuTitle: string;
|
|
894
|
+
actions: {
|
|
895
|
+
printLabel: string;
|
|
896
|
+
voidLabel: string;
|
|
897
|
+
printForms: string;
|
|
898
|
+
edit: string;
|
|
899
|
+
remove: string;
|
|
900
|
+
};
|
|
901
|
+
};
|
|
863
902
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
864
903
|
T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
|
|
865
904
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
|
|
@@ -875,7 +914,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
875
914
|
};
|
|
876
915
|
"account-settings": {
|
|
877
916
|
messages: {
|
|
878
|
-
|
|
917
|
+
transactionHistory: {
|
|
918
|
+
noTransactions: string;
|
|
919
|
+
};
|
|
920
|
+
noFundingSourceDescription: string;
|
|
921
|
+
noFundingSourceAction: string;
|
|
879
922
|
};
|
|
880
923
|
title: string;
|
|
881
924
|
sections: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CollapsiblePanelProps } from "../../components";
|
|
2
|
-
import { UnitSettingsProps } from "../../features";
|
|
2
|
+
import { ExternalCarriersProps, UnitSettingsProps } from "../../features";
|
|
3
3
|
import { LabelLayoutSettingsProps } from "../../features/label-layout/label-layout";
|
|
4
4
|
import { ManageWarehousesProps } from "../../features/manage-warehouses/";
|
|
5
|
-
type SettingProps = LabelLayoutSettingsProps | UnitSettingsProps | ManageWarehousesProps;
|
|
6
|
-
export type SettingPropsIntersection = LabelLayoutSettingsProps & UnitSettingsProps & ManageWarehousesProps;
|
|
5
|
+
type SettingProps = ExternalCarriersProps | LabelLayoutSettingsProps | UnitSettingsProps | ManageWarehousesProps;
|
|
6
|
+
export type SettingPropsIntersection = ExternalCarriersProps & LabelLayoutSettingsProps & UnitSettingsProps & ManageWarehousesProps;
|
|
7
7
|
export declare const useGetPanelProps: () => {
|
|
8
8
|
getSettingPanelProps: (setting: string) => [panelProps?: CollapsiblePanelProps, settingProps?: SettingProps];
|
|
9
9
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
/**
|
|
3
|
-
* #
|
|
3
|
+
* # Carrier-Services Component
|
|
4
4
|
*
|
|
5
5
|
* @param ComponentProps The base props that will be passed into the `<CarrierServices />` component.
|
|
6
6
|
*
|
|
@@ -19,11 +19,14 @@
|
|
|
19
19
|
*
|
|
20
20
|
* <br />
|
|
21
21
|
*
|
|
22
|
-
* @see {@link CarrierServices.ComponentProps | The props that are passed into the `<
|
|
23
|
-
* @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<
|
|
22
|
+
* @see {@link CarrierServices.ComponentProps | The props that are passed into the `<CarrierServices />` component}
|
|
23
|
+
* @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<CarrierServices />` component}
|
|
24
24
|
*/
|
|
25
|
-
export
|
|
26
|
-
|
|
25
|
+
export type CarrierServicesProps = {
|
|
26
|
+
onRedirectToOnboarding?: () => void;
|
|
27
|
+
};
|
|
28
|
+
export declare const Component: ({ onRedirectToOnboarding }: CarrierServicesProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
27
30
|
resources?: {
|
|
28
31
|
en: {
|
|
29
32
|
"wallet-history": {
|
|
@@ -146,29 +149,6 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
146
149
|
};
|
|
147
150
|
billing: {
|
|
148
151
|
title: string;
|
|
149
|
-
/**
|
|
150
|
-
* # Manage-Wallet-Workflow Component
|
|
151
|
-
*
|
|
152
|
-
* @param ComponentProps The base props that will be passed into the `<CarrierServices />` component.
|
|
153
|
-
*
|
|
154
|
-
* @returns Element A React element that renders the `<CarrierServices />` component allowing users
|
|
155
|
-
* 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
|
|
156
|
-
* composed in the `<AccountSettings />` Element.
|
|
157
|
-
*
|
|
158
|
-
* @example
|
|
159
|
-
* ```tsx
|
|
160
|
-
* (() => {
|
|
161
|
-
* const features = useFeatures("Global");
|
|
162
|
-
*
|
|
163
|
-
* return <CarrierServices.Element features={features} />;
|
|
164
|
-
* })();
|
|
165
|
-
* ```
|
|
166
|
-
*
|
|
167
|
-
* <br />
|
|
168
|
-
*
|
|
169
|
-
* @see {@link CarrierServices.ComponentProps | The props that are passed into the `<Manage-Wallet-Workflow />` component}
|
|
170
|
-
* @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<Manage-Wallet-Workflow />` component}
|
|
171
|
-
*/
|
|
172
152
|
cardSubTitle: string;
|
|
173
153
|
addressSubTitle: string;
|
|
174
154
|
info: string;
|
|
@@ -222,6 +202,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
222
202
|
title: string;
|
|
223
203
|
};
|
|
224
204
|
};
|
|
205
|
+
noFundingSource: string;
|
|
225
206
|
};
|
|
226
207
|
"rate-details": {
|
|
227
208
|
total: string;
|
|
@@ -406,6 +387,12 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
406
387
|
subtitle: string;
|
|
407
388
|
inlineMessage: string;
|
|
408
389
|
};
|
|
390
|
+
errors: {
|
|
391
|
+
noCarriers: {
|
|
392
|
+
title: string;
|
|
393
|
+
subtitle: string;
|
|
394
|
+
};
|
|
395
|
+
};
|
|
409
396
|
success: {
|
|
410
397
|
title: string;
|
|
411
398
|
subtitle: string;
|
|
@@ -451,6 +438,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
451
438
|
returnToAddressIsDifferent: string;
|
|
452
439
|
setDefault: string;
|
|
453
440
|
shipFrom: string;
|
|
441
|
+
noWarehouses: string;
|
|
454
442
|
};
|
|
455
443
|
"manage-funding": {
|
|
456
444
|
actions: {
|
|
@@ -498,6 +486,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
498
486
|
errors: {
|
|
499
487
|
balanceUnknown: string;
|
|
500
488
|
unableToFindBalance: string;
|
|
489
|
+
noFundingSource: string;
|
|
501
490
|
};
|
|
502
491
|
byoc: {
|
|
503
492
|
invoiceNotification: string;
|
|
@@ -597,6 +586,9 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
597
586
|
toastTitle: string;
|
|
598
587
|
toastBody: string;
|
|
599
588
|
};
|
|
589
|
+
deleteCarrierErrorTitle: string;
|
|
590
|
+
deleteCarrierErrorMessage: string;
|
|
591
|
+
loadingDeletingCarrier: string;
|
|
600
592
|
};
|
|
601
593
|
common: {
|
|
602
594
|
actions: {
|
|
@@ -699,6 +691,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
699
691
|
};
|
|
700
692
|
customs: {
|
|
701
693
|
addDeclaration: string;
|
|
694
|
+
noResults: string;
|
|
702
695
|
contents: {
|
|
703
696
|
documents: string;
|
|
704
697
|
gift: string;
|
|
@@ -706,6 +699,14 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
706
699
|
returnedGoods: string;
|
|
707
700
|
sample: string;
|
|
708
701
|
};
|
|
702
|
+
taxIds: {
|
|
703
|
+
sectionTitle: string;
|
|
704
|
+
addTaxId: string;
|
|
705
|
+
sectionTitleTooltip: string;
|
|
706
|
+
entityTypeTooltipText: string;
|
|
707
|
+
entityTypeTooltipPointOne: string;
|
|
708
|
+
entityTypeTooltipPointTwo: string;
|
|
709
|
+
};
|
|
709
710
|
currencyChange: string;
|
|
710
711
|
declarations: string;
|
|
711
712
|
descriptionTooltip: {
|
|
@@ -723,6 +724,11 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
723
724
|
sku: string;
|
|
724
725
|
value: string;
|
|
725
726
|
valueQuantity: string;
|
|
727
|
+
taxId: string;
|
|
728
|
+
taxIdType: string;
|
|
729
|
+
taxIdTypeValue: string;
|
|
730
|
+
taxIssuingAuthority: string;
|
|
731
|
+
entityType: string;
|
|
726
732
|
};
|
|
727
733
|
nonDelivery: {
|
|
728
734
|
returnToSender: string;
|
|
@@ -795,6 +801,8 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
795
801
|
shipment: string;
|
|
796
802
|
shipments: string;
|
|
797
803
|
warehouses: string;
|
|
804
|
+
funding: string;
|
|
805
|
+
paymentMethod: string;
|
|
798
806
|
};
|
|
799
807
|
months: {
|
|
800
808
|
january: string;
|
|
@@ -873,6 +881,16 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
873
881
|
gram: string;
|
|
874
882
|
kilogram: string;
|
|
875
883
|
};
|
|
884
|
+
actionsMenu: {
|
|
885
|
+
menuTitle: string;
|
|
886
|
+
actions: {
|
|
887
|
+
printLabel: string;
|
|
888
|
+
voidLabel: string;
|
|
889
|
+
printForms: string;
|
|
890
|
+
edit: string;
|
|
891
|
+
remove: string;
|
|
892
|
+
};
|
|
893
|
+
};
|
|
876
894
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
877
895
|
T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
|
|
878
896
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
|
|
@@ -888,7 +906,11 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
888
906
|
};
|
|
889
907
|
"account-settings": {
|
|
890
908
|
messages: {
|
|
891
|
-
|
|
909
|
+
transactionHistory: {
|
|
910
|
+
noTransactions: string;
|
|
911
|
+
};
|
|
912
|
+
noFundingSourceDescription: string;
|
|
913
|
+
noFundingSourceAction: string;
|
|
892
914
|
};
|
|
893
915
|
title: string;
|
|
894
916
|
sections: {
|
|
@@ -209,6 +209,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
209
209
|
title: string;
|
|
210
210
|
};
|
|
211
211
|
};
|
|
212
|
+
noFundingSource: string;
|
|
212
213
|
};
|
|
213
214
|
"rate-details": {
|
|
214
215
|
total: string;
|
|
@@ -393,6 +394,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
393
394
|
subtitle: string;
|
|
394
395
|
inlineMessage: string;
|
|
395
396
|
};
|
|
397
|
+
errors: {
|
|
398
|
+
noCarriers: {
|
|
399
|
+
title: string;
|
|
400
|
+
subtitle: string;
|
|
401
|
+
};
|
|
402
|
+
};
|
|
396
403
|
success: {
|
|
397
404
|
title: string;
|
|
398
405
|
subtitle: string;
|
|
@@ -438,6 +445,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
438
445
|
returnToAddressIsDifferent: string;
|
|
439
446
|
setDefault: string;
|
|
440
447
|
shipFrom: string;
|
|
448
|
+
noWarehouses: string;
|
|
441
449
|
};
|
|
442
450
|
"manage-funding": {
|
|
443
451
|
actions: {
|
|
@@ -485,6 +493,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
485
493
|
errors: {
|
|
486
494
|
balanceUnknown: string;
|
|
487
495
|
unableToFindBalance: string;
|
|
496
|
+
noFundingSource: string;
|
|
488
497
|
};
|
|
489
498
|
byoc: {
|
|
490
499
|
invoiceNotification: string;
|
|
@@ -584,6 +593,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
584
593
|
toastTitle: string;
|
|
585
594
|
toastBody: string;
|
|
586
595
|
};
|
|
596
|
+
deleteCarrierErrorTitle: string;
|
|
597
|
+
deleteCarrierErrorMessage: string;
|
|
598
|
+
loadingDeletingCarrier: string;
|
|
587
599
|
};
|
|
588
600
|
common: {
|
|
589
601
|
actions: {
|
|
@@ -686,6 +698,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
686
698
|
};
|
|
687
699
|
customs: {
|
|
688
700
|
addDeclaration: string;
|
|
701
|
+
noResults: string;
|
|
689
702
|
contents: {
|
|
690
703
|
documents: string;
|
|
691
704
|
gift: string;
|
|
@@ -693,6 +706,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
693
706
|
returnedGoods: string;
|
|
694
707
|
sample: string;
|
|
695
708
|
};
|
|
709
|
+
taxIds: {
|
|
710
|
+
sectionTitle: string;
|
|
711
|
+
addTaxId: string;
|
|
712
|
+
sectionTitleTooltip: string;
|
|
713
|
+
entityTypeTooltipText: string;
|
|
714
|
+
entityTypeTooltipPointOne: string;
|
|
715
|
+
entityTypeTooltipPointTwo: string;
|
|
716
|
+
};
|
|
696
717
|
currencyChange: string;
|
|
697
718
|
declarations: string;
|
|
698
719
|
descriptionTooltip: {
|
|
@@ -710,6 +731,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
710
731
|
sku: string;
|
|
711
732
|
value: string;
|
|
712
733
|
valueQuantity: string;
|
|
734
|
+
taxId: string;
|
|
735
|
+
taxIdType: string;
|
|
736
|
+
taxIdTypeValue: string;
|
|
737
|
+
taxIssuingAuthority: string;
|
|
738
|
+
entityType: string;
|
|
713
739
|
};
|
|
714
740
|
nonDelivery: {
|
|
715
741
|
returnToSender: string;
|
|
@@ -782,6 +808,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
782
808
|
shipment: string;
|
|
783
809
|
shipments: string;
|
|
784
810
|
warehouses: string;
|
|
811
|
+
funding: string;
|
|
812
|
+
paymentMethod: string;
|
|
785
813
|
};
|
|
786
814
|
months: {
|
|
787
815
|
january: string;
|
|
@@ -860,6 +888,16 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
860
888
|
gram: string;
|
|
861
889
|
kilogram: string;
|
|
862
890
|
};
|
|
891
|
+
actionsMenu: {
|
|
892
|
+
menuTitle: string;
|
|
893
|
+
actions: {
|
|
894
|
+
printLabel: string;
|
|
895
|
+
voidLabel: string;
|
|
896
|
+
printForms: string;
|
|
897
|
+
edit: string;
|
|
898
|
+
remove: string;
|
|
899
|
+
};
|
|
900
|
+
};
|
|
863
901
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
864
902
|
T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
|
|
865
903
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
|
|
@@ -875,7 +913,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
875
913
|
};
|
|
876
914
|
"account-settings": {
|
|
877
915
|
messages: {
|
|
878
|
-
|
|
916
|
+
transactionHistory: {
|
|
917
|
+
noTransactions: string;
|
|
918
|
+
};
|
|
919
|
+
noFundingSourceDescription: string;
|
|
920
|
+
noFundingSourceAction: string;
|
|
879
921
|
};
|
|
880
922
|
title: string;
|
|
881
923
|
sections: {
|
|
@@ -2,6 +2,7 @@ import { SE } from "@shipengine/js-api";
|
|
|
2
2
|
export type TermsAgreementFormProps = {
|
|
3
3
|
carrierTerms: SE.MetadataRequiredTerm[];
|
|
4
4
|
hideTerms: boolean;
|
|
5
|
+
isSubmitDisabled?: boolean;
|
|
5
6
|
onSubmit: (agreement: boolean) => void;
|
|
6
7
|
};
|
|
7
|
-
export declare const TermsAgreementForm: ({ carrierTerms, hideTerms, onSubmit, }: TermsAgreementFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const TermsAgreementForm: ({ carrierTerms, hideTerms, onSubmit, isSubmitDisabled, }: TermsAgreementFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|