@shipengine/elements 2.4.0 → 2.5.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 +1 -1
- package/components.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/src/components/actions-menu/actions-menu.d.ts +2 -1
- package/src/components/error-state/error-state.d.ts +6 -0
- package/src/{workflows/onboarding/components/account-registration-step/account-registration-step.styles.d.ts → components/error-state/error-state.styles.d.ts} +9 -5
- package/src/components/error-state/index.d.ts +1 -0
- package/src/components/index.d.ts +1 -0
- package/src/components/templates/address-display/address-display.d.ts +2 -1
- package/src/components/templates/wallet-form/wallet-form.d.ts +1 -1
- package/src/components/warehouse-form/warehouse-form-schema.d.ts +4 -1
- package/src/components/warehouse-form/warehouse-form.d.ts +2 -1
- package/src/elements/label-layout/label-layout-element.d.ts +44 -15
- package/src/elements/labels-grid/hooks/use-labels-grid.d.ts +1 -0
- package/src/elements/labels-grid/labels-grid.d.ts +79 -44
- package/src/elements/labels-grid/labels-grid.styles.d.ts +7 -1
- package/src/elements/manage-carriers/manage-carriers.d.ts +44 -15
- package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +66 -16
- package/src/elements/manage-funding/manage-funding-element.d.ts +44 -15
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +44 -15
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +44 -15
- package/src/elements/purchase-label/purchase-label.d.ts +54 -28
- package/src/elements/shipment-summary/shipment-summary.d.ts +51 -19
- package/src/elements/shipments-grid/hooks/use-shipments-grid.d.ts +161 -0
- package/src/elements/shipments-grid/shipments-grid.d.ts +128 -23
- package/src/elements/shipments-grid/shipments-grid.styles.d.ts +11 -0
- package/src/elements/theme-creator/theme-creator.d.ts +44 -15
- package/src/elements/transaction-history/transaction-history-element.d.ts +44 -15
- package/src/elements/unit-settings/unit-settings-element.d.ts +44 -15
- package/src/elements/vat-settings/vat-settings-element.d.ts +44 -15
- package/src/elements/void-label/void-label.d.ts +56 -26
- package/src/locales/en/index.d.ts +44 -15
- package/src/workflows/account-settings/account-settings.d.ts +44 -15
- package/src/workflows/carrier-services/carrier-services.d.ts +44 -15
- package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +44 -15
- package/src/workflows/label-workflow/label-workflow.d.ts +10 -29
- package/src/workflows/onboarding/components/confirmation-and-submission-step/confirmation-and-submission-step.d.ts +12 -0
- package/src/workflows/onboarding/components/confirmation-and-submission-step/index.d.ts +2 -0
- package/src/workflows/onboarding/components/confirmation-and-submission-step/use-confirmation-and-submission-step.d.ts +19 -0
- package/src/workflows/onboarding/components/funding-step/funding-step.d.ts +7 -0
- package/src/workflows/onboarding/components/funding-step/index.d.ts +1 -0
- package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +1 -2
- package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.styles.d.ts +3 -0
- package/src/workflows/onboarding/components/ship-from-address-step/index.d.ts +0 -1
- package/src/workflows/onboarding/components/ship-from-address-step/ship-from-address-step.d.ts +3 -2
- package/src/workflows/onboarding/components/step-header/step-header.d.ts +3 -2
- package/src/workflows/onboarding/components/{funding-and-carrier-connection-step/funding-and-carrier-connection-step.styles.d.ts → step-header/step-header.styles.d.ts} +5 -8
- package/src/workflows/onboarding/components/welcome-page/index.d.ts +1 -0
- package/src/workflows/onboarding/components/welcome-page/welcome-page.d.ts +4 -0
- package/src/workflows/onboarding/onboarding.d.ts +46 -19
- package/suspend-text.js +1 -1
- package/transaction-history-element.js +1 -1
- package/use-unit-settings.js +1 -1
- package/usePager.js +1 -1
- package/wallet-form.js +1 -1
- package/workflows.js +1 -1
- package/src/workflows/onboarding/components/account-registration-form/account-registration-form-schema.d.ts +0 -13
- package/src/workflows/onboarding/components/account-registration-form/account-registration-form.d.ts +0 -4
- package/src/workflows/onboarding/components/account-registration-form/index.d.ts +0 -1
- package/src/workflows/onboarding/components/account-registration-step/account-registration-step.d.ts +0 -5
- package/src/workflows/onboarding/components/account-registration-step/index.d.ts +0 -2
- package/src/workflows/onboarding/components/account-registration-step/use-account-registration-step.d.ts +0 -7
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/funding-and-carrier-connection-step.d.ts +0 -9
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/index.d.ts +0 -2
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/use-funding-and-carrier-connection-step.d.ts +0 -25
- package/src/workflows/onboarding/components/ship-from-address-step/use-ship-from-address-step.d.ts +0 -9
|
@@ -143,7 +143,6 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
143
143
|
setup: {
|
|
144
144
|
title: string;
|
|
145
145
|
subtitle: string;
|
|
146
|
-
hiddenTermsSubtitle: string;
|
|
147
146
|
descriptionTitle: string;
|
|
148
147
|
description: string;
|
|
149
148
|
};
|
|
@@ -151,7 +150,6 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
151
150
|
title: string;
|
|
152
151
|
cardSubTitle: string;
|
|
153
152
|
addressSubTitle: string;
|
|
154
|
-
info: string;
|
|
155
153
|
};
|
|
156
154
|
vatSettings: {
|
|
157
155
|
title: string;
|
|
@@ -165,7 +163,6 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
165
163
|
title: string;
|
|
166
164
|
};
|
|
167
165
|
info: {
|
|
168
|
-
title: string;
|
|
169
166
|
description: string;
|
|
170
167
|
};
|
|
171
168
|
poBox: {
|
|
@@ -366,18 +363,15 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
366
363
|
};
|
|
367
364
|
onboarding: {
|
|
368
365
|
title: string;
|
|
369
|
-
|
|
370
|
-
accountRegistration: {
|
|
371
|
-
action: string;
|
|
366
|
+
confirmation: {
|
|
372
367
|
title: string;
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
messageLine2: string;
|
|
368
|
+
warehouse: string;
|
|
369
|
+
billingAddress: string;
|
|
370
|
+
paymentMethod: string;
|
|
371
|
+
action: string;
|
|
378
372
|
};
|
|
379
373
|
stepLabel: {
|
|
380
|
-
|
|
374
|
+
confirmation: string;
|
|
381
375
|
termsAgreement: string;
|
|
382
376
|
shipFromAddress: string;
|
|
383
377
|
fundingAndCarrierConnection: string;
|
|
@@ -424,6 +418,14 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
424
418
|
"UHVyb2xhdG9yIFRlcm1zIGFuZCBDb25kaXRpb25zIG9mIFNlcnZpY2U=": string;
|
|
425
419
|
UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
|
|
426
420
|
};
|
|
421
|
+
tooltip: {
|
|
422
|
+
warehouse: string;
|
|
423
|
+
};
|
|
424
|
+
welcomePage: {
|
|
425
|
+
title: string;
|
|
426
|
+
message: string;
|
|
427
|
+
action: string;
|
|
428
|
+
};
|
|
427
429
|
};
|
|
428
430
|
"manage-warehouses": {
|
|
429
431
|
title: string;
|
|
@@ -532,18 +534,38 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
532
534
|
};
|
|
533
535
|
"list-shipments": {
|
|
534
536
|
title: string;
|
|
537
|
+
none: string;
|
|
535
538
|
headers: {
|
|
536
539
|
created: string;
|
|
537
|
-
|
|
540
|
+
modified: string;
|
|
541
|
+
shipping: string;
|
|
538
542
|
shipmentId: string;
|
|
539
|
-
|
|
540
|
-
|
|
543
|
+
parcels: string;
|
|
544
|
+
recipient: string;
|
|
545
|
+
status: string;
|
|
546
|
+
};
|
|
547
|
+
status: {
|
|
548
|
+
cancelled: string;
|
|
549
|
+
purchased: string;
|
|
550
|
+
readyToBuy: string;
|
|
551
|
+
processing: string;
|
|
541
552
|
};
|
|
542
553
|
actions: {
|
|
543
554
|
download: {
|
|
544
555
|
pdf: string;
|
|
545
556
|
};
|
|
546
557
|
};
|
|
558
|
+
emptyState: {
|
|
559
|
+
title: string;
|
|
560
|
+
subtitle: string;
|
|
561
|
+
filtersTitle: string;
|
|
562
|
+
filtersSubtitle: string;
|
|
563
|
+
viewAll: string;
|
|
564
|
+
};
|
|
565
|
+
errorMessages: {
|
|
566
|
+
title: string;
|
|
567
|
+
subtitle: string;
|
|
568
|
+
};
|
|
547
569
|
};
|
|
548
570
|
"list-labels": {
|
|
549
571
|
title: string;
|
|
@@ -577,6 +599,10 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
577
599
|
void: string;
|
|
578
600
|
printForms: string;
|
|
579
601
|
};
|
|
602
|
+
errorMessages: {
|
|
603
|
+
title: string;
|
|
604
|
+
subtitle: string;
|
|
605
|
+
};
|
|
580
606
|
};
|
|
581
607
|
"connect-carrier": {
|
|
582
608
|
actions: {
|
|
@@ -777,6 +803,7 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
777
803
|
emailIsRequired: string;
|
|
778
804
|
unknown: string;
|
|
779
805
|
noRatesAvailable: string;
|
|
806
|
+
refreshAndTryAgain: string;
|
|
780
807
|
};
|
|
781
808
|
errorTypes: {
|
|
782
809
|
accountStatus: string;
|
|
@@ -891,6 +918,7 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
891
918
|
agreeToTerms: string;
|
|
892
919
|
carriersTitle: string;
|
|
893
920
|
fundingSourceTitle: string;
|
|
921
|
+
shipEngineTitle: string;
|
|
894
922
|
};
|
|
895
923
|
weight: {
|
|
896
924
|
ounces: string;
|
|
@@ -915,6 +943,7 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
|
915
943
|
printForms: string;
|
|
916
944
|
edit: string;
|
|
917
945
|
remove: string;
|
|
946
|
+
viewDetails: string;
|
|
918
947
|
};
|
|
919
948
|
};
|
|
920
949
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
@@ -150,7 +150,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
150
150
|
setup: {
|
|
151
151
|
title: string;
|
|
152
152
|
subtitle: string;
|
|
153
|
-
hiddenTermsSubtitle: string;
|
|
154
153
|
descriptionTitle: string;
|
|
155
154
|
description: string;
|
|
156
155
|
};
|
|
@@ -158,7 +157,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
158
157
|
title: string;
|
|
159
158
|
cardSubTitle: string;
|
|
160
159
|
addressSubTitle: string;
|
|
161
|
-
info: string;
|
|
162
160
|
};
|
|
163
161
|
vatSettings: {
|
|
164
162
|
title: string;
|
|
@@ -172,7 +170,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
172
170
|
title: string;
|
|
173
171
|
};
|
|
174
172
|
info: {
|
|
175
|
-
title: string;
|
|
176
173
|
description: string;
|
|
177
174
|
};
|
|
178
175
|
poBox: {
|
|
@@ -373,18 +370,15 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
373
370
|
};
|
|
374
371
|
onboarding: {
|
|
375
372
|
title: string;
|
|
376
|
-
|
|
377
|
-
accountRegistration: {
|
|
378
|
-
action: string;
|
|
373
|
+
confirmation: {
|
|
379
374
|
title: string;
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
messageLine2: string;
|
|
375
|
+
warehouse: string;
|
|
376
|
+
billingAddress: string;
|
|
377
|
+
paymentMethod: string;
|
|
378
|
+
action: string;
|
|
385
379
|
};
|
|
386
380
|
stepLabel: {
|
|
387
|
-
|
|
381
|
+
confirmation: string;
|
|
388
382
|
termsAgreement: string;
|
|
389
383
|
shipFromAddress: string;
|
|
390
384
|
fundingAndCarrierConnection: string;
|
|
@@ -431,6 +425,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
431
425
|
"UHVyb2xhdG9yIFRlcm1zIGFuZCBDb25kaXRpb25zIG9mIFNlcnZpY2U=": string;
|
|
432
426
|
UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
|
|
433
427
|
};
|
|
428
|
+
tooltip: {
|
|
429
|
+
warehouse: string;
|
|
430
|
+
};
|
|
431
|
+
welcomePage: {
|
|
432
|
+
title: string;
|
|
433
|
+
message: string;
|
|
434
|
+
action: string;
|
|
435
|
+
};
|
|
434
436
|
};
|
|
435
437
|
"manage-warehouses": {
|
|
436
438
|
title: string;
|
|
@@ -539,18 +541,38 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
539
541
|
};
|
|
540
542
|
"list-shipments": {
|
|
541
543
|
title: string;
|
|
544
|
+
none: string;
|
|
542
545
|
headers: {
|
|
543
546
|
created: string;
|
|
544
|
-
|
|
547
|
+
modified: string;
|
|
548
|
+
shipping: string;
|
|
545
549
|
shipmentId: string;
|
|
546
|
-
|
|
547
|
-
|
|
550
|
+
parcels: string;
|
|
551
|
+
recipient: string;
|
|
552
|
+
status: string;
|
|
553
|
+
};
|
|
554
|
+
status: {
|
|
555
|
+
cancelled: string;
|
|
556
|
+
purchased: string;
|
|
557
|
+
readyToBuy: string;
|
|
558
|
+
processing: string;
|
|
548
559
|
};
|
|
549
560
|
actions: {
|
|
550
561
|
download: {
|
|
551
562
|
pdf: string;
|
|
552
563
|
};
|
|
553
564
|
};
|
|
565
|
+
emptyState: {
|
|
566
|
+
title: string;
|
|
567
|
+
subtitle: string;
|
|
568
|
+
filtersTitle: string;
|
|
569
|
+
filtersSubtitle: string;
|
|
570
|
+
viewAll: string;
|
|
571
|
+
};
|
|
572
|
+
errorMessages: {
|
|
573
|
+
title: string;
|
|
574
|
+
subtitle: string;
|
|
575
|
+
};
|
|
554
576
|
};
|
|
555
577
|
"list-labels": {
|
|
556
578
|
title: string;
|
|
@@ -584,6 +606,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
584
606
|
void: string;
|
|
585
607
|
printForms: string;
|
|
586
608
|
};
|
|
609
|
+
errorMessages: {
|
|
610
|
+
title: string;
|
|
611
|
+
subtitle: string;
|
|
612
|
+
};
|
|
587
613
|
};
|
|
588
614
|
"connect-carrier": {
|
|
589
615
|
actions: {
|
|
@@ -784,6 +810,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
784
810
|
emailIsRequired: string;
|
|
785
811
|
unknown: string;
|
|
786
812
|
noRatesAvailable: string;
|
|
813
|
+
refreshAndTryAgain: string;
|
|
787
814
|
};
|
|
788
815
|
errorTypes: {
|
|
789
816
|
accountStatus: string;
|
|
@@ -898,6 +925,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
898
925
|
agreeToTerms: string;
|
|
899
926
|
carriersTitle: string;
|
|
900
927
|
fundingSourceTitle: string;
|
|
928
|
+
shipEngineTitle: string;
|
|
901
929
|
};
|
|
902
930
|
weight: {
|
|
903
931
|
ounces: string;
|
|
@@ -922,6 +950,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
922
950
|
printForms: string;
|
|
923
951
|
edit: string;
|
|
924
952
|
remove: string;
|
|
953
|
+
viewDetails: string;
|
|
925
954
|
};
|
|
926
955
|
};
|
|
927
956
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
@@ -27,7 +27,7 @@ export type LabelWorkflowProps = {
|
|
|
27
27
|
/**
|
|
28
28
|
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
29
29
|
*/
|
|
30
|
-
features
|
|
30
|
+
features?: PurchaseLabelFeatures & ShipmentSummaryFeatures;
|
|
31
31
|
/**
|
|
32
32
|
* `multiplexedId` is the unique pattern of props that help index which Element is being displayed.
|
|
33
33
|
*/
|
|
@@ -39,37 +39,14 @@ export type LabelWorkflowProps = {
|
|
|
39
39
|
externalOrderId: string;
|
|
40
40
|
})) | {
|
|
41
41
|
salesOrderId: string;
|
|
42
|
+
} | {
|
|
43
|
+
externalShipmentId: string;
|
|
42
44
|
} | {
|
|
43
45
|
shipmentId: string;
|
|
44
46
|
} | {
|
|
45
47
|
oneOff: true;
|
|
46
48
|
};
|
|
47
49
|
};
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
*
|
|
51
|
-
* # Label Workflow Component
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* ```tsx
|
|
55
|
-
* const {
|
|
56
|
-
* labelId,
|
|
57
|
-
* multiplexedId,
|
|
58
|
-
* isVoidingLabel,
|
|
59
|
-
* shipmentId,
|
|
60
|
-
* setLabelId,
|
|
61
|
-
* setShipmentId,
|
|
62
|
-
* setIsVoidingLabel,
|
|
63
|
-
* } = useLabelWorkflow({
|
|
64
|
-
* _labelId,
|
|
65
|
-
* _multiplexedId,
|
|
66
|
-
* });
|
|
67
|
-
* ```
|
|
68
|
-
*
|
|
69
|
-
* <br />
|
|
70
|
-
*
|
|
71
|
-
* @see {@link LabelWorkflow.Element | The `<LabelWorkflow.Element />` component using this hook}
|
|
72
|
-
*/
|
|
73
50
|
export declare const useLabelWorkflow: ({ _multiplexedId, }: {
|
|
74
51
|
_callbacks?: {
|
|
75
52
|
/**
|
|
@@ -88,13 +65,15 @@ export declare const useLabelWorkflow: ({ _multiplexedId, }: {
|
|
|
88
65
|
externalOrderId: string;
|
|
89
66
|
})) | {
|
|
90
67
|
salesOrderId: string;
|
|
68
|
+
} | {
|
|
69
|
+
externalShipmentId: string;
|
|
91
70
|
} | {
|
|
92
71
|
shipmentId: string;
|
|
93
72
|
} | {
|
|
94
73
|
oneOff: true;
|
|
95
74
|
};
|
|
96
75
|
}) => {
|
|
97
|
-
|
|
76
|
+
element: "purchaseLabel" | "shipmentSummary" | "voidLabel" | undefined;
|
|
98
77
|
labelId: string | undefined;
|
|
99
78
|
multiplexedId: ({
|
|
100
79
|
orderSourceCode: string;
|
|
@@ -104,13 +83,15 @@ export declare const useLabelWorkflow: ({ _multiplexedId, }: {
|
|
|
104
83
|
externalOrderId: string;
|
|
105
84
|
})) | {
|
|
106
85
|
salesOrderId: string;
|
|
86
|
+
} | {
|
|
87
|
+
externalShipmentId: string;
|
|
107
88
|
} | {
|
|
108
89
|
shipmentId: string;
|
|
109
90
|
} | {
|
|
110
91
|
oneOff: true;
|
|
111
92
|
};
|
|
112
|
-
|
|
113
|
-
setLabelId: (
|
|
93
|
+
setElement: import("react").Dispatch<import("react").SetStateAction<"purchaseLabel" | "shipmentSummary" | "voidLabel" | undefined>>;
|
|
94
|
+
setLabelId: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
|
|
114
95
|
setShipmentId: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
|
|
115
96
|
shipmentId: string | undefined;
|
|
116
97
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SE } from "@shipengine/js-api";
|
|
2
|
+
import { WarehousePayload } from "../../../../components";
|
|
3
|
+
import { WalletPayload } from "../../../../components/templates";
|
|
4
|
+
export type ConfirmationAndSubmissionStepProps = {
|
|
5
|
+
createFundingSourceErrors: SE.CodedError[] | null;
|
|
6
|
+
onEdit: (step: number) => void;
|
|
7
|
+
onSubmit: (wallet: WalletPayload, warehouse: WarehousePayload) => Promise<void>;
|
|
8
|
+
registerCarrierErrors: SE.CodedError[] | null;
|
|
9
|
+
walletPayload: WalletPayload;
|
|
10
|
+
warehousePayload: WarehousePayload;
|
|
11
|
+
};
|
|
12
|
+
export declare const ConfirmationAndSubmissionStep: ({ createFundingSourceErrors, onSubmit, onEdit, registerCarrierErrors, walletPayload, warehousePayload, }: ConfirmationAndSubmissionStepProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SE } from "@shipengine/react-api";
|
|
2
|
+
import { WarehousePayload } from "../../../../components";
|
|
3
|
+
import { WalletPayload } from "../../../../components/templates/wallet-form";
|
|
4
|
+
type UseConfirmationAndSubmissionProps = {
|
|
5
|
+
onStepComplete: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const useConfirmationAndSubmissionStep: ({ onStepComplete, }: UseConfirmationAndSubmissionProps) => {
|
|
8
|
+
createFundingSourceErrors: SE.CodedError[] | null;
|
|
9
|
+
createOnboardingSubmissionHandler: ({ carrierProfiles, fundingSourceTerms, }: {
|
|
10
|
+
carrierProfiles: SE.MetadataCarrierProfile[];
|
|
11
|
+
fundingSourceTerms: SE.MetadataRequiredTerm[];
|
|
12
|
+
}) => ({ address, creditCard, iovationBlackbox }: WalletPayload, warehousePayload: WarehousePayload) => Promise<void>;
|
|
13
|
+
isCreatingFundingSource: boolean;
|
|
14
|
+
isRegisteringCarriers: boolean;
|
|
15
|
+
isRegisteringCarriersSuccess: boolean;
|
|
16
|
+
registerCarrierErrors: SE.CodedError[] | null;
|
|
17
|
+
resetMutations: () => void;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SE } from "@shipengine/react-api";
|
|
2
|
+
import { WalletPayload } from "../../../../components/templates/wallet-form";
|
|
3
|
+
export type FundingStepProps = {
|
|
4
|
+
address: SE.Address;
|
|
5
|
+
onSubmit: (payload: WalletPayload) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const FundingStep: ({ address, onSubmit, }: FundingStepProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./funding-step";
|
|
@@ -15,6 +15,5 @@ export type ValidateAddress = ValidateWarehouse | ValidateBilling;
|
|
|
15
15
|
export type OnboardingWizardProps = {
|
|
16
16
|
defaultShipFromAddress?: ShipFromAddressStepProps["defaultShipFromAddress"];
|
|
17
17
|
onComplete: () => void;
|
|
18
|
-
partnerName?: string;
|
|
19
18
|
};
|
|
20
|
-
export declare const OnboardingWizard: ({ defaultShipFromAddress, onComplete: onWizardComplete,
|
|
19
|
+
export declare const OnboardingWizard: ({ defaultShipFromAddress, onComplete: onWizardComplete, }: OnboardingWizardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
package/src/workflows/onboarding/components/ship-from-address-step/ship-from-address-step.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { SE } from "@shipengine/react-api";
|
|
|
2
2
|
import { WarehousePayload } from "../../../../components";
|
|
3
3
|
export type ShipFromAddressStepProps = {
|
|
4
4
|
defaultShipFromAddress?: Pick<SE.Warehouse, "name" | "isDefault" | "originAddress" | "returnAddress">;
|
|
5
|
-
onSubmit: (payload: WarehousePayload) =>
|
|
5
|
+
onSubmit: (payload: WarehousePayload) => void;
|
|
6
|
+
warehousePayload?: WarehousePayload;
|
|
6
7
|
};
|
|
7
|
-
export declare const ShipFromAddressStep: ({ defaultShipFromAddress, onSubmit, }: ShipFromAddressStepProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const ShipFromAddressStep: ({ defaultShipFromAddress, warehousePayload, onSubmit, }: ShipFromAddressStepProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type StepHeaderProps = {
|
|
2
|
-
subtitle
|
|
2
|
+
subtitle?: string;
|
|
3
3
|
title: string;
|
|
4
|
+
tooltipMessage?: string;
|
|
4
5
|
};
|
|
5
|
-
export declare const StepHeader: ({ title, subtitle }: StepHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const StepHeader: ({ title, subtitle, tooltipMessage }: StepHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
export declare const styles: {
|
|
2
|
+
header: () => {
|
|
3
|
+
alignItems: "center";
|
|
4
|
+
display: "flex";
|
|
5
|
+
justifyContent: "center";
|
|
6
|
+
};
|
|
2
7
|
iconTooltip: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
3
8
|
color: string;
|
|
4
|
-
display: "inline-block";
|
|
5
9
|
marginLeft: number;
|
|
6
|
-
verticalAlign: string;
|
|
7
10
|
};
|
|
8
11
|
tooltipContainer: {
|
|
9
12
|
maxWidth: string;
|
|
10
13
|
textAlign: "left";
|
|
11
14
|
};
|
|
12
|
-
walletFormHeader: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
13
|
-
margin: number;
|
|
14
|
-
};
|
|
15
|
-
walletFormTitle: {
|
|
16
|
-
textAlign: "center";
|
|
17
|
-
};
|
|
18
15
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./welcome-page";
|
|
@@ -12,8 +12,6 @@ export type ComponentProps = {
|
|
|
12
12
|
defaultShipFromAddress?: OnboardingWizardProps["defaultShipFromAddress"];
|
|
13
13
|
/** Invoked when the onboarding process is completed. */
|
|
14
14
|
onComplete: () => void;
|
|
15
|
-
/** The partner responsible for the currently onboarding seller. This is typically the name of the entity that owns the host application. */
|
|
16
|
-
partnerName?: OnboardingWizardProps["partnerName"];
|
|
17
15
|
};
|
|
18
16
|
/**
|
|
19
17
|
* # Onboarding Component
|
|
@@ -48,7 +46,7 @@ export type ComponentProps = {
|
|
|
48
46
|
*
|
|
49
47
|
* @see {@link Onboarding.Element | The **Element** created to render `<Onboarding />`}
|
|
50
48
|
*/
|
|
51
|
-
export declare const Component: ({ defaultShipFromAddress, onComplete
|
|
49
|
+
export declare const Component: ({ defaultShipFromAddress, onComplete }: ComponentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
52
50
|
/**
|
|
53
51
|
* # Registered Onboarding Element
|
|
54
52
|
*
|
|
@@ -188,7 +186,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
188
186
|
setup: {
|
|
189
187
|
title: string;
|
|
190
188
|
subtitle: string;
|
|
191
|
-
hiddenTermsSubtitle: string;
|
|
192
189
|
descriptionTitle: string;
|
|
193
190
|
description: string;
|
|
194
191
|
};
|
|
@@ -196,7 +193,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
196
193
|
title: string;
|
|
197
194
|
cardSubTitle: string;
|
|
198
195
|
addressSubTitle: string;
|
|
199
|
-
info: string;
|
|
200
196
|
};
|
|
201
197
|
vatSettings: {
|
|
202
198
|
title: string;
|
|
@@ -210,7 +206,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
210
206
|
title: string;
|
|
211
207
|
};
|
|
212
208
|
info: {
|
|
213
|
-
title: string;
|
|
214
209
|
description: string;
|
|
215
210
|
};
|
|
216
211
|
poBox: {
|
|
@@ -411,18 +406,15 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
411
406
|
};
|
|
412
407
|
onboarding: {
|
|
413
408
|
title: string;
|
|
414
|
-
|
|
415
|
-
accountRegistration: {
|
|
416
|
-
action: string;
|
|
409
|
+
confirmation: {
|
|
417
410
|
title: string;
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
messageLine2: string;
|
|
411
|
+
warehouse: string;
|
|
412
|
+
billingAddress: string;
|
|
413
|
+
paymentMethod: string;
|
|
414
|
+
action: string;
|
|
423
415
|
};
|
|
424
416
|
stepLabel: {
|
|
425
|
-
|
|
417
|
+
confirmation: string;
|
|
426
418
|
termsAgreement: string;
|
|
427
419
|
shipFromAddress: string;
|
|
428
420
|
fundingAndCarrierConnection: string;
|
|
@@ -469,6 +461,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
469
461
|
"UHVyb2xhdG9yIFRlcm1zIGFuZCBDb25kaXRpb25zIG9mIFNlcnZpY2U=": string;
|
|
470
462
|
UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
|
|
471
463
|
};
|
|
464
|
+
tooltip: {
|
|
465
|
+
warehouse: string;
|
|
466
|
+
};
|
|
467
|
+
welcomePage: {
|
|
468
|
+
title: string;
|
|
469
|
+
message: string;
|
|
470
|
+
action: string;
|
|
471
|
+
};
|
|
472
472
|
};
|
|
473
473
|
"manage-warehouses": {
|
|
474
474
|
title: string;
|
|
@@ -577,18 +577,38 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
577
577
|
};
|
|
578
578
|
"list-shipments": {
|
|
579
579
|
title: string;
|
|
580
|
+
none: string;
|
|
580
581
|
headers: {
|
|
581
582
|
created: string;
|
|
582
|
-
|
|
583
|
+
modified: string;
|
|
584
|
+
shipping: string;
|
|
583
585
|
shipmentId: string;
|
|
584
|
-
|
|
585
|
-
|
|
586
|
+
parcels: string;
|
|
587
|
+
recipient: string;
|
|
588
|
+
status: string;
|
|
589
|
+
};
|
|
590
|
+
status: {
|
|
591
|
+
cancelled: string;
|
|
592
|
+
purchased: string;
|
|
593
|
+
readyToBuy: string;
|
|
594
|
+
processing: string;
|
|
586
595
|
};
|
|
587
596
|
actions: {
|
|
588
597
|
download: {
|
|
589
598
|
pdf: string;
|
|
590
599
|
};
|
|
591
600
|
};
|
|
601
|
+
emptyState: {
|
|
602
|
+
title: string;
|
|
603
|
+
subtitle: string;
|
|
604
|
+
filtersTitle: string;
|
|
605
|
+
filtersSubtitle: string;
|
|
606
|
+
viewAll: string;
|
|
607
|
+
};
|
|
608
|
+
errorMessages: {
|
|
609
|
+
title: string;
|
|
610
|
+
subtitle: string;
|
|
611
|
+
};
|
|
592
612
|
};
|
|
593
613
|
"list-labels": {
|
|
594
614
|
title: string;
|
|
@@ -622,6 +642,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
622
642
|
void: string;
|
|
623
643
|
printForms: string;
|
|
624
644
|
};
|
|
645
|
+
errorMessages: {
|
|
646
|
+
title: string;
|
|
647
|
+
subtitle: string;
|
|
648
|
+
};
|
|
625
649
|
};
|
|
626
650
|
"connect-carrier": {
|
|
627
651
|
actions: {
|
|
@@ -687,7 +711,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
687
711
|
countryCode: string;
|
|
688
712
|
addressLine1: string;
|
|
689
713
|
addressLine2: string;
|
|
690
|
-
cityLocality: string;
|
|
714
|
+
cityLocality: string;
|
|
691
715
|
stateProvince: string;
|
|
692
716
|
postalCode: string;
|
|
693
717
|
phone: string;
|
|
@@ -829,6 +853,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
829
853
|
emailIsRequired: string;
|
|
830
854
|
unknown: string;
|
|
831
855
|
noRatesAvailable: string;
|
|
856
|
+
refreshAndTryAgain: string;
|
|
832
857
|
};
|
|
833
858
|
errorTypes: {
|
|
834
859
|
accountStatus: string;
|
|
@@ -943,6 +968,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
943
968
|
agreeToTerms: string;
|
|
944
969
|
carriersTitle: string;
|
|
945
970
|
fundingSourceTitle: string;
|
|
971
|
+
shipEngineTitle: string;
|
|
946
972
|
};
|
|
947
973
|
weight: {
|
|
948
974
|
ounces: string;
|
|
@@ -967,6 +993,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
967
993
|
printForms: string;
|
|
968
994
|
edit: string;
|
|
969
995
|
remove: string;
|
|
996
|
+
viewDetails: string;
|
|
970
997
|
};
|
|
971
998
|
};
|
|
972
999
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|