@shipengine/elements 2.18.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 +3 -3
- 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/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/elements/labels-grid/hooks/use-labels-grid.d.ts +9 -54
- 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 +30 -32
- package/src/elements/shipments-grid/shipments-grid.d.ts +24 -32
- package/src/elements/theme-creator/theme-creator.d.ts +21 -0
- 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 +39 -8
- 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/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 +1 -1
- package/src/utilities/shipengine/address.d.ts +1 -1
- 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 +32 -24
- package/src/workflows/label-workflow/label-workflow.d.ts +21 -0
- package/src/workflows/onboarding/onboarding.d.ts +29 -11
- 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/use-toggle.js +0 -1
|
@@ -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;
|
|
@@ -266,29 +269,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
266
269
|
auctane_service_fee: string;
|
|
267
270
|
product_price: string;
|
|
268
271
|
};
|
|
269
|
-
};
|
|
270
|
-
* # ConnectExternalCarrier Component
|
|
271
|
-
*
|
|
272
|
-
* @param ComponentProps The base props that will be passed into the `<ConnectExternalCarrier />` component.
|
|
273
|
-
*
|
|
274
|
-
* @returns Element A React element that renders the `<ConnectExternalCarrier />` component allowing users
|
|
275
|
-
* to connect their own existing carrier account. If no carrier is provided, the user may
|
|
276
|
-
* select from a list of carriers specified by `features.availableCarrierConnections`.
|
|
277
|
-
* This component is composed in the `<AccountSettings />` Element.
|
|
278
|
-
*
|
|
279
|
-
* @example
|
|
280
|
-
* ```tsx
|
|
281
|
-
* (() => {
|
|
282
|
-
* const features = useFeatures("CarrierConnections");
|
|
283
|
-
*
|
|
284
|
-
* return <ConnectExternalCarrier.Component features={features} />;
|
|
285
|
-
* })();
|
|
286
|
-
* ```
|
|
287
|
-
*
|
|
288
|
-
* <br />
|
|
289
|
-
*
|
|
290
|
-
* @see {@link ConnectExternalCarrier.ComponentProps | The props that are passed into the `<ConnectExternalCarrier />` component}
|
|
291
|
-
*/
|
|
272
|
+
};
|
|
292
273
|
"purchase-label": {
|
|
293
274
|
title: string;
|
|
294
275
|
actions: {
|
|
@@ -598,7 +579,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
598
579
|
metric: string;
|
|
599
580
|
};
|
|
600
581
|
weight: {
|
|
601
|
-
title: string;
|
|
582
|
+
title: string; /**
|
|
583
|
+
* # ConnectExternalCarrier Props
|
|
584
|
+
*
|
|
585
|
+
* @see {@link ConnectExternalCarrier.Component | The `<ConnectExternalCarrier />` component}
|
|
586
|
+
*/
|
|
602
587
|
standard: string;
|
|
603
588
|
g: string;
|
|
604
589
|
kg: string;
|
|
@@ -673,8 +658,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
673
658
|
trackingStatus: {
|
|
674
659
|
unknown: string;
|
|
675
660
|
inTransit: string;
|
|
661
|
+
in_transit: string;
|
|
676
662
|
delivered: string;
|
|
677
663
|
error: string;
|
|
664
|
+
voided: string;
|
|
678
665
|
};
|
|
679
666
|
actions: {
|
|
680
667
|
title: string;
|
|
@@ -694,6 +681,17 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
694
681
|
connectCarriers: string;
|
|
695
682
|
disconnect: string;
|
|
696
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;
|
|
697
695
|
};
|
|
698
696
|
noCarriersDescription: string;
|
|
699
697
|
registrationForm: {
|
|
@@ -740,6 +738,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
740
738
|
address: {
|
|
741
739
|
fields: {
|
|
742
740
|
name: string;
|
|
741
|
+
fullName: string;
|
|
743
742
|
company: string;
|
|
744
743
|
county: string;
|
|
745
744
|
countryCode: string;
|
|
@@ -747,6 +746,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
747
746
|
addressLine2: string;
|
|
748
747
|
cityLocality: string;
|
|
749
748
|
stateProvince: string;
|
|
749
|
+
/**
|
|
750
|
+
* # ConnectExternalCarrier Props
|
|
751
|
+
*
|
|
752
|
+
* @see {@link ConnectExternalCarrier.Component | The `<ConnectExternalCarrier />` component}
|
|
753
|
+
*/
|
|
750
754
|
postalCode: string;
|
|
751
755
|
phone: string;
|
|
752
756
|
email: string;
|
|
@@ -902,6 +906,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
902
906
|
unknown: string;
|
|
903
907
|
noRatesAvailable: string;
|
|
904
908
|
refreshAndTryAgain: string;
|
|
909
|
+
updateShipFromAddress: string;
|
|
905
910
|
windsorFramework: {
|
|
906
911
|
doNotConform: string;
|
|
907
912
|
pleaseAddTheFollowingTaxIds: string;
|
|
@@ -920,6 +925,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
920
925
|
saveRate: string;
|
|
921
926
|
security: string;
|
|
922
927
|
shipmentStatus: string;
|
|
928
|
+
shipFromAddress: string;
|
|
923
929
|
system: string;
|
|
924
930
|
unknown: string;
|
|
925
931
|
validation: string;
|
|
@@ -933,6 +939,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
933
939
|
shipmentId: string;
|
|
934
940
|
labelId: string;
|
|
935
941
|
labelIdFilter: string;
|
|
942
|
+
filteredTrackingStatus: string;
|
|
943
|
+
more: string;
|
|
936
944
|
createdDate: string;
|
|
937
945
|
shipmentIdFilter: string;
|
|
938
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;
|
|
@@ -95,6 +95,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
95
95
|
thisMonth: string;
|
|
96
96
|
lastMonth: string;
|
|
97
97
|
};
|
|
98
|
+
category: {
|
|
99
|
+
fundsAdded: string;
|
|
100
|
+
};
|
|
98
101
|
};
|
|
99
102
|
"void-label": {
|
|
100
103
|
title: string;
|
|
@@ -731,8 +734,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
731
734
|
trackingStatus: {
|
|
732
735
|
unknown: string;
|
|
733
736
|
inTransit: string;
|
|
737
|
+
in_transit: string;
|
|
734
738
|
delivered: string;
|
|
735
739
|
error: string;
|
|
740
|
+
voided: string;
|
|
736
741
|
};
|
|
737
742
|
actions: {
|
|
738
743
|
title: string;
|
|
@@ -752,17 +757,21 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
752
757
|
connectCarriers: string;
|
|
753
758
|
disconnect: string;
|
|
754
759
|
disconnectCarrier: string;
|
|
760
|
+
downloadEula: string;
|
|
761
|
+
};
|
|
762
|
+
customForms: {
|
|
763
|
+
fedex: {
|
|
764
|
+
eulaName: string;
|
|
765
|
+
disclaimerFooter: string;
|
|
766
|
+
};
|
|
767
|
+
};
|
|
768
|
+
eula: {
|
|
769
|
+
toContinue: string;
|
|
770
|
+
iAgree: string;
|
|
755
771
|
};
|
|
756
|
-
/**
|
|
757
|
-
* # Onboarding Component Props
|
|
758
|
-
*
|
|
759
|
-
* - These are the base props that will be passed into the `<Onboarding />` component.
|
|
760
|
-
*
|
|
761
|
-
* @see {@link Onboarding.Component | This prop types usage in the `<Onboarding />` component}
|
|
762
|
-
*/
|
|
763
772
|
noCarriersDescription: string;
|
|
764
773
|
registrationForm: {
|
|
765
|
-
error: string;
|
|
774
|
+
error: string;
|
|
766
775
|
title: string;
|
|
767
776
|
betaWarning: string;
|
|
768
777
|
};
|
|
@@ -805,12 +814,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
805
814
|
address: {
|
|
806
815
|
fields: {
|
|
807
816
|
name: string;
|
|
817
|
+
fullName: string;
|
|
808
818
|
company: string;
|
|
809
819
|
county: string;
|
|
810
820
|
countryCode: string;
|
|
811
821
|
addressLine1: string;
|
|
812
|
-
addressLine2: string;
|
|
813
|
-
cityLocality: string;
|
|
822
|
+
addressLine2: string; /** Invoked when the final ShipEngine modifications for the seller are complete */
|
|
823
|
+
cityLocality: string;
|
|
814
824
|
stateProvince: string;
|
|
815
825
|
postalCode: string;
|
|
816
826
|
phone: string;
|
|
@@ -884,7 +894,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
884
894
|
};
|
|
885
895
|
customs: {
|
|
886
896
|
addDeclaration: string;
|
|
887
|
-
noResults: string;
|
|
897
|
+
noResults: string; /**
|
|
898
|
+
* # Onboarding Element Props
|
|
899
|
+
*
|
|
900
|
+
* @see {@link Onboarding.Element | See the full type that `typeof Element` will return}
|
|
901
|
+
*/
|
|
888
902
|
contents: {
|
|
889
903
|
documents: string;
|
|
890
904
|
gift: string;
|
|
@@ -967,6 +981,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
967
981
|
unknown: string;
|
|
968
982
|
noRatesAvailable: string;
|
|
969
983
|
refreshAndTryAgain: string;
|
|
984
|
+
updateShipFromAddress: string;
|
|
970
985
|
windsorFramework: {
|
|
971
986
|
doNotConform: string;
|
|
972
987
|
pleaseAddTheFollowingTaxIds: string;
|
|
@@ -985,6 +1000,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
985
1000
|
saveRate: string;
|
|
986
1001
|
security: string;
|
|
987
1002
|
shipmentStatus: string;
|
|
1003
|
+
shipFromAddress: string;
|
|
988
1004
|
system: string;
|
|
989
1005
|
unknown: string;
|
|
990
1006
|
validation: string;
|
|
@@ -998,6 +1014,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
998
1014
|
shipmentId: string;
|
|
999
1015
|
labelId: string;
|
|
1000
1016
|
labelIdFilter: string;
|
|
1017
|
+
filteredTrackingStatus: string;
|
|
1018
|
+
more: string;
|
|
1001
1019
|
createdDate: string;
|
|
1002
1020
|
shipmentIdFilter: string;
|
|
1003
1021
|
createdDateFilter: string;
|
package/styles.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{THEME_ID as t}from"@shipengine/giger";const a=t=>"string"==typeof t,e=t=>t.reduce(((t,a)=>{const e=t.findIndex((t=>{var e,i,r,u;return t.rateDetailType===a.rateDetailType&&(null===(e=t.rateDetailAttributes)||void 0===e?void 0:e.taxPercentage)===(null===(i=a.rateDetailAttributes)||void 0===i?void 0:i.taxPercentage)&&(null===(r=t.rateDetailAttributes)||void 0===r?void 0:r.taxType)===(null===(u=a.rateDetailAttributes)||void 0===u?void 0:u.taxType)}));return e<0?t.push({amount:a.amount.amount,currency:a.amount.currency,rateDetailAttributes:a.rateDetailAttributes,rateDetailType:a.rateDetailType}):t[e].amount+=a.amount.amount,t}),[]),i=t=>t.reduce(((t,a)=>(t.total+=a.amount,t.subtotal+=a.amount,"tax"===a.rateDetailType?(t.hasTax=!0,t.subtotal-=a.amount,t.tax.push(a)):t.items.push(a),t)),{hasTax:!1,items:[],subtotal:0,tax:[],total:0}),r=t=>t,u=a=>a&&t in a?a[t]:a;export{e as a,r as b,i as c,a as i,u as s};
|
package/suspend-text.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{J as e,K as t,M as n,N as a,O as i,Q as o,U as r,X as s,Y as c,Z as l,_ as p,$ as d,G as g,a0 as h,a1 as m,z as u,t as b}from"./actions-menu.js";import{jsxs as y,jsx as f,Fragment as C}from"@emotion/react/jsx-runtime";import{useState as w,useRef as O,useCallback as x}from"react";import{useTranslation as v,Trans as j}from"react-i18next";import{Divider as T,Typography as S,Icon as I,Button as k,ButtonVariant as E,IconSize as D,DropdownOptionList as P,Option as _,Pagination as R,Skeleton as M,SkeletonAnimation as W,SkeletonVariant as z}from"@shipengine/giger";import{IconNames as A}from"@shipengine/giger-theme";import{b as B,s as N}from"./styles.js";var H=Object.freeze({__proto__:null,CheckboxInput:e,CreditCardInput:t,DatePicker:n,ExpirationInput:a,InputGroup:i,transform:o,MoneyInput:r,NumberInput:s,RateSelect:c,SelectAutoComplete:l,Select:p,SelectWithCategories:d,SubmitButton:g,Switch:h,TextArea:m,TextInput:u});const V=B({chevronTypography:e=>({color:N(e).palette.secondary.main}),detailsBottomContainer:e=>({backgroundColor:N(e).palette.white,padding:"8px"}),detailsRow:{display:"flex",justifyContent:"space-between"},detailsTypography:e=>({color:N(e).palette.black}),headingContainer:{alignItems:"center",display:"flex",justifyContent:"space-between"},loadingStateContainer:e=>({display:"flex",flexDirection:"column",rowGap:N(e).spacing(2)})}),X=({transactionDetails:e})=>{const{t:t}=v(),[n,a]=w(!1);return y("div",{children:[f(b,{multiplier:2}),f(T,{}),f(b,{multiplier:1}),y("div",{children:[y("div",Object.assign({css:V.headingContainer},{children:[f(S,Object.assign({css:V.detailsTypography},{children:t("wallet-history:details.inaccurateWeight")})),f("div",Object.assign({onClick:()=>a(!n),onKeyDown:e=>{"Enter"===e.key&&a(!n)},role:"button",tabIndex:0},{children:f(I,n?{css:V.chevronTypography,name:A.CHEVRON_TOP}:{css:V.chevronTypography,name:A.CHEVRON_BOTTOM})}))]})),n&&f(b,{multiplier:1}),n&&f(S,Object.assign({css:V.detailsTypography},{children:e}))]})]})},G=B({footer:{"> *":{borderTop:"0 !important"},alignItems:"center",display:"flex",justifyContent:"space-between",width:"100%"},leftFooter:e=>({display:"flex",margin:N(e).spacing(2),span:{fontWeight:N(e).typography.fontWeight.bold}}),rowCount:e=>({alignItems:"center",display:"flex",marginRight:N(e).spacing(4),whiteSpace:"pre"}),rowCountDropDown:{"> * > *":{justifyContent:"center !important"}},rowsActions:e=>({"#selected-row":{":hover":{backgroundColor:"transparent"},borderRadius:N(e).borderRadius.XS,color:N(e).palette.black,padding:N(e).spacing(1),paddingRight:N(e).spacing(.5)},alignItems:"baseline",display:"flex",span:{alignSelf:"center"}})}),K=[5,10,25,50],U=({currentPageSize:e,pagingData:t,rowCountSelection:n=K,onPageSelect:a,onPageSizeSelect:i})=>{const[o,r]=w(!1),s=O(null),{t:c}=v(),l=x((()=>r((e=>!e))),[]);return y("div",Object.assign({css:G.footer},{children:[y("div",Object.assign({css:G.leftFooter},{children:[f("div",Object.assign({css:G.rowCount},{children:f(j,{components:[f("b",{style:{fontWeight:"bold"}},"1")],count:t.total,i18nKey:"common:grid.row-count",values:{firstIndex:0!==t.total?1+(t.page-1)*e:0,lastIndex:Math.min(t.total,t.page*e)}})})),y("div",Object.assign({css:G.rowsActions},{children:[c("common:grid.rows"),f(k,Object.assign({id:"selected-row",onClick:()=>l(),ref:s,variant:E.TEXT},{children:e})),f(I,o?{name:A.CHEVRON_TOP,onClick:()=>l(),size:D.SIZE_MEDIUM}:{name:A.CHEVRON_BOTTOM,onClick:()=>l(),size:D.SIZE_MEDIUM}),f(P,Object.assign({css:G.rowCountDropDown,dropdownWidth:"max-content",isOpen:o,onChange:()=>l(),onClickAway:e=>{var t;(null===(t=s.current)||void 0===t?void 0:t.contains(e.target))||l()},placement:"bottom",reference:s.current},{children:n.map((e=>f(_,Object.assign({onClick:()=>i(e),value:String(e)},{children:e}),e)))}))]}))]})),f("div",{children:f(R,{boundaryPagesToShow:5,currentPage:t.page,onPageChange:a,totalPages:t.pages})})]}))},Z=({children:e,notes:t})=>y(C,{children:[y("div",Object.assign({css:()=>({backgroundColor:"lightsteelblue",marginBottom:"16px",padding:"16px",paddingLeft:"32px"})},{children:[f(S,Object.assign({variant:"heading5"},{children:"Story notes:"})),f("ul",Object.assign({css:e=>({"> li":{marginTop:N(e).spacing(1)}})},{children:t.map((e=>f("li",{children:e},e)))}))]})),f("hr",{css:()=>({backgroundColor:"transparent",borderTop:"1px dotted lightgrey",marginBottom:"16px"})}),e]}),F=({children:e,loading:t})=>t?f(M,{animation:W.WAVE,variant:z.TEXT}):f("span",{children:e});export{X as H,U as P,Z as S,F as a,H as f};
|