@shipengine/elements 1.7.0 → 1.9.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/address-8f8119f4.js +1 -0
- package/carrier-2abb4760.js +1 -0
- package/carrier-logo-1b6c767e.js +1 -0
- package/components.js +1 -0
- package/constants.js +1 -0
- package/elements.js +1 -0
- package/extensions.js +1 -0
- package/feature-flags-3e03717c.js +1 -0
- package/formatString-413ec7c7.js +1 -0
- package/hooks.js +1 -0
- package/index.js +1 -25135
- package/money-fbc4d0b3.js +1 -0
- package/package.json +48 -6
- package/payment-method-settings-element-595cc38d.js +1 -0
- package/phone-87dd7bd8.js +1 -0
- package/schemas.js +1 -0
- package/shipment-90d35708.js +1 -0
- package/src/components/address-preference-context/address-preference-context.d.ts +5 -2
- package/src/components/carrier-icon/carrier-icon.d.ts +9 -9
- package/src/components/carrier-logo/carrier-logo.d.ts +2 -1
- package/src/components/collapsible-panel/collapsible-panel.styles.d.ts +2 -3
- package/src/components/display-term/display-term.d.ts +2 -2
- package/src/components/display-term/display-term.styles.d.ts +2 -0
- package/src/components/field/date-picker/date-picker.d.ts +1 -1
- package/src/components/field/rate-card/rate-card.d.ts +2 -1
- package/src/components/field/rate-card/rate-card.styles.d.ts +0 -1
- package/src/components/field/rate-select/rate-select.d.ts +6 -1
- package/src/components/fund-and-purchase/fund-and-purchase.d.ts +4 -1
- package/src/components/here-map/here-map.d.ts +16 -0
- package/src/components/here-map/here-map.styles.d.ts +23 -0
- package/src/components/index.d.ts +7 -5
- package/src/components/modal/modal.d.ts +2 -1
- package/src/components/rate-details/index.d.ts +1 -0
- package/src/components/rate-details/rate-details.d.ts +17 -0
- package/src/components/rate-details/rate-details.styles.d.ts +23 -0
- package/src/components/search-bar/index.d.ts +1 -0
- package/src/components/search-bar/search-bar.d.ts +8 -0
- package/src/components/service-point-display/operating-hours.d.ts +6 -0
- package/src/components/service-point-display/operating-hours.styles.d.ts +44 -0
- package/src/components/service-point-display/service-point-display.d.ts +6 -6
- package/src/components/service-point-display/service-point-display.styles.d.ts +13 -19
- package/src/components/service-points/service-points.d.ts +2 -1
- package/src/components/tabs/tabs.d.ts +5 -1
- package/src/components/tabs/tabs.styles.d.ts +3 -2
- package/src/components/templates/index.d.ts +1 -1
- package/src/components/templates/label/label.styles.d.ts +21 -1
- package/src/components/templates/product-form/product-form-schema.d.ts +12 -0
- package/src/components/templates/pudo-rate-tabs/index.d.ts +0 -1
- package/src/components/templates/pudo-rate-tabs/pudo-list-view/pudo-list-view.d.ts +5 -0
- package/src/components/templates/pudo-rate-tabs/pudo-map-view/pudo-map-view.d.ts +15 -0
- package/src/components/templates/pudo-rate-tabs/pudo-rate-tabs.d.ts +17 -15
- package/src/components/templates/rate-form/rate-form.d.ts +10 -2
- package/src/components/templates/register-funding-source-carrier-form/index.d.ts +2 -0
- package/src/components/templates/register-funding-source-carrier-form/register-funding-source-carrier-form.d.ts +13 -0
- package/src/components/templates/register-funding-source-carrier-form/register-funding-source-carrier-form.styles.d.ts +25 -0
- package/src/components/templates/{add-carrier-form/add-carrier-form-schema.d.ts → register-funding-source-carrier-form/register-funding-source-carrier-schema.d.ts} +42 -88
- package/src/components/templates/shipment/shipment.d.ts +2 -1
- package/src/components/templates/wallet-form/wallet-form.d.ts +3 -1
- package/src/components/templates/wallet-form/wallet-form.styles.d.ts +3 -0
- package/src/components/vat-form/index.d.ts +1 -0
- package/src/components/vat-form/vat-form-schema.d.ts +10 -0
- package/src/components/vat-form/vat-form.d.ts +6 -0
- package/src/components/vat-form/vat-form.styles.d.ts +9 -0
- package/src/elements/external-carriers/external-carriers.d.ts +198 -101
- package/src/elements/label-layout/label-layout-element.d.ts +150 -77
- package/src/elements/labels-grid/labels-grid.d.ts +150 -77
- package/src/elements/manage-funding/manage-funding-element.d.ts +150 -77
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +150 -77
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +150 -77
- package/src/elements/purchase-label/configure-shipment.d.ts +2 -1
- package/src/elements/purchase-label/hooks/use-rates-form.d.ts +5 -0
- package/src/elements/purchase-label/purchase-label.d.ts +170 -80
- package/src/elements/shipengine-carriers/shipengine-carriers.d.ts +173 -100
- package/src/elements/shipments-grid/shipments-grid.d.ts +150 -77
- package/src/elements/theme-creator/theme-creator.d.ts +150 -77
- package/src/elements/theme-creator/themeData/themeData.d.ts +0 -1
- package/src/elements/unit-settings/unit-settings-element.d.ts +150 -77
- package/src/elements/vat-settings/index.d.ts +1 -0
- package/src/elements/vat-settings/vat-settings-element.d.ts +864 -0
- package/src/elements/view-shipment/view-shipment.d.ts +181 -100
- package/src/elements/void-label/components/actions/actions.d.ts +3 -3
- package/src/elements/void-label/components/message/message.d.ts +3 -2
- package/src/elements/void-label/void-label.d.ts +183 -96
- package/src/elements/wallet-history/wallet-history-element.d.ts +150 -77
- package/src/factories/shipengine/label.d.ts +2 -0
- package/src/features/external-carriers/external-carriers.d.ts +2 -1
- package/src/features/index.d.ts +5 -4
- package/src/features/shipengine-carriers/hooks/index.d.ts +2 -1
- package/src/features/shipengine-carriers/hooks/use-carrier-metadata.d.ts +2 -13
- package/src/features/shipengine-carriers/hooks/{use-list-connected-carriers.d.ts → use-list-funding-source-carriers.d.ts} +3 -3
- package/src/features/shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.d.ts +9 -7
- package/src/features/unit-settings/unit-settings.d.ts +2 -2
- package/src/features/unit-settings/use-unit-settings.d.ts +1 -1
- package/src/features/vat-settings/index.d.ts +2 -0
- package/src/features/vat-settings/use-vat-settings.d.ts +8 -0
- package/src/features/vat-settings/vat-settings.d.ts +9 -0
- package/src/features/vat-settings/vat-settings.styles.d.ts +29 -0
- package/src/hooks/here-map/init.d.ts +6 -0
- package/src/hooks/here-map/use-here-map-ui.d.ts +10 -0
- package/src/hooks/here-map/use-here-map.d.ts +5 -0
- package/src/hooks/index.d.ts +3 -3
- package/src/hooks/options/use-service-points.d.ts +5 -3
- package/src/locales/en/index.d.ts +150 -77
- package/src/testing/test-utils.d.ts +1 -0
- package/src/types/carrier-metadata.d.ts +7 -11
- package/src/types/index.d.ts +0 -1
- package/src/utilities/date.d.ts +1 -2
- package/src/utilities/feature-flags.d.ts +12 -2
- package/src/utilities/shipengine/carrier.d.ts +8 -0
- package/src/utilities/shipengine/index.d.ts +1 -0
- package/src/utilities/shipengine/shipment.d.ts +11 -0
- package/src/workflows/account-settings/account-settings.d.ts +153 -82
- package/src/workflows/connect-carrier/connect-carrier.d.ts +150 -77
- package/src/workflows/manage-wallet-workflow/manage-wallet-workflow.d.ts +155 -81
- package/src/workflows/onboarding/components/account-registration-form/account-registration-form-schema.d.ts +3 -0
- package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form.d.ts +3 -4
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/funding-and-carrier-connection-step.d.ts +3 -1
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/use-funding-and-carrier-connection-step.d.ts +2 -3
- package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +2 -2
- package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.d.ts +3 -4
- package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.styles.d.ts +6 -7
- package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.d.ts +3 -4
- package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.styles.d.ts +3 -0
- package/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts +5 -10
- package/src/workflows/onboarding/onboarding.d.ts +151 -78
- package/story-notes-ce2d8cca.js +1 -0
- package/suspend-text-c8c7b6b6.js +1 -0
- package/types.js +1 -0
- package/use-page-layout-93ffae78.js +1 -0
- package/use-scrub-errors-2c4db406.js +1 -0
- package/use-toggle-838d2ebd.js +1 -0
- package/utilities.js +1 -0
- package/validation-b941a548.js +1 -0
- package/vite.config.d.ts +1 -1
- package/wallet-form-3981400b.js +1 -0
- package/wallet-history-5b34c856.js +1 -0
- package/warehouse-form-c0b3ea78.js +34 -0
- package/warehouses-dfcdce23.js +1 -0
- package/workflows.js +1 -0
- package/zod-60def96c.js +1 -0
- package/index.cjs +0 -25349
- package/src/components/templates/add-carrier-form/add-carrier-form-test.d.ts +0 -1
- package/src/components/templates/add-carrier-form/add-carrier-form.d.ts +0 -10
- package/src/components/templates/add-carrier-form/index.d.ts +0 -2
- package/src/components/templates/pudo-rate-tabs/service-points-search-bar/index.d.ts +0 -1
- package/src/components/templates/pudo-rate-tabs/service-points-search-bar/service-points-search-bar.d.ts +0 -6
- package/src/types/patch.d.ts +0 -13
|
@@ -25,7 +25,7 @@ export type ComponentProps = {
|
|
|
25
25
|
* (() => {
|
|
26
26
|
* const features = useFeatures("Global");
|
|
27
27
|
*
|
|
28
|
-
* return <
|
|
28
|
+
* return <ManageWalletWorkflow.Element features={features} />;
|
|
29
29
|
* })();
|
|
30
30
|
* ```
|
|
31
31
|
*
|
|
@@ -71,6 +71,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
71
71
|
resultMessages: {
|
|
72
72
|
approved: string;
|
|
73
73
|
rejected: string;
|
|
74
|
+
dpdwallet: string;
|
|
74
75
|
};
|
|
75
76
|
refund_process: string;
|
|
76
77
|
refund_rules: string;
|
|
@@ -90,6 +91,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
90
91
|
schedulePickup: string;
|
|
91
92
|
showItems: string;
|
|
92
93
|
void: string;
|
|
94
|
+
download: string;
|
|
93
95
|
};
|
|
94
96
|
fields: {
|
|
95
97
|
dimensions: string;
|
|
@@ -109,9 +111,42 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
109
111
|
multipleShippingServices: string;
|
|
110
112
|
sections: {
|
|
111
113
|
labels: string;
|
|
114
|
+
shipmentSummary: string;
|
|
112
115
|
};
|
|
113
116
|
noLabels: string;
|
|
114
117
|
};
|
|
118
|
+
"vat-settings": {
|
|
119
|
+
addNew: string;
|
|
120
|
+
vatNumber: string;
|
|
121
|
+
vatRegistrationTooltip: string;
|
|
122
|
+
vatFormText: string;
|
|
123
|
+
vatFormRegisterLater: string;
|
|
124
|
+
vatNumberInputHint: string;
|
|
125
|
+
vatNumberInputPlaceholder: string;
|
|
126
|
+
verifiedVat: string;
|
|
127
|
+
vatFormErrors: {
|
|
128
|
+
invalidFieldValue: string;
|
|
129
|
+
verificationFailure: string;
|
|
130
|
+
forbidden: string;
|
|
131
|
+
connectionNotSupported: string;
|
|
132
|
+
genericTitle: string;
|
|
133
|
+
genericText: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
"shipengine-carriers": {
|
|
137
|
+
title: string;
|
|
138
|
+
headers: {
|
|
139
|
+
accountCarriers: string;
|
|
140
|
+
carriers: string;
|
|
141
|
+
settings: string;
|
|
142
|
+
};
|
|
143
|
+
actions: {
|
|
144
|
+
status: {
|
|
145
|
+
connected: string;
|
|
146
|
+
notConnected: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
115
150
|
"register-wallet": {
|
|
116
151
|
sections: {
|
|
117
152
|
setup: {
|
|
@@ -124,11 +159,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
124
159
|
billing: {
|
|
125
160
|
title: string;
|
|
126
161
|
cardSubTitle: string;
|
|
127
|
-
addressSubTitle: string;
|
|
128
|
-
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
129
|
-
*/
|
|
162
|
+
addressSubTitle: string;
|
|
130
163
|
info: string;
|
|
131
164
|
};
|
|
165
|
+
vatSettings: {
|
|
166
|
+
title: string;
|
|
167
|
+
};
|
|
132
168
|
carriers: {
|
|
133
169
|
title: string;
|
|
134
170
|
subtitle: string;
|
|
@@ -165,8 +201,48 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
165
201
|
};
|
|
166
202
|
};
|
|
167
203
|
"register-carrier": {
|
|
168
|
-
formTitle:
|
|
169
|
-
|
|
204
|
+
formTitle: {
|
|
205
|
+
default: string;
|
|
206
|
+
new: string;
|
|
207
|
+
edit: string;
|
|
208
|
+
};
|
|
209
|
+
notifications: {
|
|
210
|
+
error: {
|
|
211
|
+
title: string;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
"rate-details": {
|
|
216
|
+
total: string;
|
|
217
|
+
subtotal: string;
|
|
218
|
+
registerVat: string;
|
|
219
|
+
concepts: {
|
|
220
|
+
confirmation: string;
|
|
221
|
+
uncategorized: string;
|
|
222
|
+
shipping: string;
|
|
223
|
+
insurance: string;
|
|
224
|
+
confirm: string;
|
|
225
|
+
discount: string;
|
|
226
|
+
fuel_charge: string;
|
|
227
|
+
additional_fees: string;
|
|
228
|
+
tariff: string;
|
|
229
|
+
tax: string;
|
|
230
|
+
delivery: string;
|
|
231
|
+
handling: string;
|
|
232
|
+
special_goods: string;
|
|
233
|
+
pickup: string;
|
|
234
|
+
location_fee: string;
|
|
235
|
+
oversize: string;
|
|
236
|
+
returns: string;
|
|
237
|
+
notifications: string;
|
|
238
|
+
tip: string;
|
|
239
|
+
duties_and_taxes: string;
|
|
240
|
+
brokerage_fee: string;
|
|
241
|
+
admin_fee: string;
|
|
242
|
+
adjustment: string;
|
|
243
|
+
auctane_service_fee: string;
|
|
244
|
+
product_price: string;
|
|
245
|
+
};
|
|
170
246
|
};
|
|
171
247
|
"purchase-label": {
|
|
172
248
|
title: string;
|
|
@@ -255,6 +331,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
255
331
|
rateSavings: string;
|
|
256
332
|
upsGroundSaverTermsAcknowledgement: string;
|
|
257
333
|
dhlExpressTermsAcknowledgement: string;
|
|
334
|
+
noRateService: string;
|
|
258
335
|
};
|
|
259
336
|
requirements: {
|
|
260
337
|
noWarehouse: string;
|
|
@@ -278,7 +355,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
278
355
|
today: string;
|
|
279
356
|
viewMap: string;
|
|
280
357
|
otherLocations: string;
|
|
281
|
-
|
|
358
|
+
noServicePointsForService: string;
|
|
359
|
+
error: string;
|
|
360
|
+
paperless: string;
|
|
361
|
+
localTimeDisclaimer: string;
|
|
282
362
|
};
|
|
283
363
|
shipToAddressFormFields: string;
|
|
284
364
|
sections: {
|
|
@@ -305,6 +385,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
305
385
|
messageLine2: string;
|
|
306
386
|
};
|
|
307
387
|
stepLabel: {
|
|
388
|
+
/**
|
|
389
|
+
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
390
|
+
*/
|
|
308
391
|
accountRegistration: string;
|
|
309
392
|
termsAgreement: string;
|
|
310
393
|
shipFromAddress: string;
|
|
@@ -321,6 +404,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
321
404
|
action: string;
|
|
322
405
|
};
|
|
323
406
|
termsAndAgreementLinkText: {
|
|
407
|
+
shipEngineToS: string;
|
|
408
|
+
auctanePrivacyPolicy: string;
|
|
324
409
|
aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
|
|
325
410
|
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
|
|
326
411
|
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
|
|
@@ -345,42 +430,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
345
430
|
UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
|
|
346
431
|
};
|
|
347
432
|
};
|
|
348
|
-
"manage-defaults": {
|
|
349
|
-
label: {
|
|
350
|
-
title: string;
|
|
351
|
-
letter: {
|
|
352
|
-
title: string;
|
|
353
|
-
description: string;
|
|
354
|
-
};
|
|
355
|
-
purchase: {
|
|
356
|
-
title: string;
|
|
357
|
-
description: string;
|
|
358
|
-
};
|
|
359
|
-
thermal: {
|
|
360
|
-
title: string;
|
|
361
|
-
description: string;
|
|
362
|
-
};
|
|
363
|
-
};
|
|
364
|
-
status: {
|
|
365
|
-
saving: string;
|
|
366
|
-
saved: string;
|
|
367
|
-
savingFailed: string;
|
|
368
|
-
};
|
|
369
|
-
units: {
|
|
370
|
-
title: string;
|
|
371
|
-
dimensions: {
|
|
372
|
-
title: string;
|
|
373
|
-
standard: string;
|
|
374
|
-
metric: string;
|
|
375
|
-
};
|
|
376
|
-
weight: {
|
|
377
|
-
title: string;
|
|
378
|
-
standard: string;
|
|
379
|
-
g: string;
|
|
380
|
-
kg: string;
|
|
381
|
-
};
|
|
382
|
-
};
|
|
383
|
-
};
|
|
384
433
|
"manage-warehouses": {
|
|
385
434
|
title: string;
|
|
386
435
|
addNew: string;
|
|
@@ -448,6 +497,42 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
448
497
|
currentBalance: string;
|
|
449
498
|
maximumBalanceAmount: string;
|
|
450
499
|
};
|
|
500
|
+
"manage-defaults": {
|
|
501
|
+
label: {
|
|
502
|
+
title: string;
|
|
503
|
+
letter: {
|
|
504
|
+
title: string;
|
|
505
|
+
description: string;
|
|
506
|
+
};
|
|
507
|
+
purchase: {
|
|
508
|
+
title: string;
|
|
509
|
+
description: string;
|
|
510
|
+
};
|
|
511
|
+
thermal: {
|
|
512
|
+
title: string;
|
|
513
|
+
description: string;
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
status: {
|
|
517
|
+
saving: string;
|
|
518
|
+
saved: string;
|
|
519
|
+
savingFailed: string;
|
|
520
|
+
};
|
|
521
|
+
units: {
|
|
522
|
+
title: string;
|
|
523
|
+
dimensions: {
|
|
524
|
+
title: string;
|
|
525
|
+
standard: string;
|
|
526
|
+
metric: string;
|
|
527
|
+
};
|
|
528
|
+
weight: {
|
|
529
|
+
title: string;
|
|
530
|
+
standard: string;
|
|
531
|
+
g: string;
|
|
532
|
+
kg: string;
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
};
|
|
451
536
|
"list-shipments": {
|
|
452
537
|
title: string;
|
|
453
538
|
headers: {
|
|
@@ -478,18 +563,31 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
478
563
|
};
|
|
479
564
|
};
|
|
480
565
|
};
|
|
481
|
-
"
|
|
482
|
-
title: string;
|
|
483
|
-
headers: {
|
|
484
|
-
accountCarriers: string;
|
|
485
|
-
carriers: string;
|
|
486
|
-
settings: string;
|
|
487
|
-
};
|
|
566
|
+
"connect-carrier": {
|
|
488
567
|
actions: {
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
568
|
+
cancel: string;
|
|
569
|
+
carrierSettings: string;
|
|
570
|
+
connectCarriers: string;
|
|
571
|
+
disconnect: string;
|
|
572
|
+
disconnectCarrier: string;
|
|
573
|
+
};
|
|
574
|
+
noCarriersDescription: string;
|
|
575
|
+
registrationForm: {
|
|
576
|
+
error: string;
|
|
577
|
+
title: string;
|
|
578
|
+
betaWarning: string;
|
|
579
|
+
};
|
|
580
|
+
search: string;
|
|
581
|
+
settingsModal: {
|
|
582
|
+
closeDialog: string;
|
|
583
|
+
header: string;
|
|
584
|
+
};
|
|
585
|
+
status: {
|
|
586
|
+
connected: string;
|
|
587
|
+
};
|
|
588
|
+
disconnectDropdown: {
|
|
589
|
+
toastTitle: string;
|
|
590
|
+
toastBody: string;
|
|
493
591
|
};
|
|
494
592
|
};
|
|
495
593
|
common: {
|
|
@@ -676,6 +774,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
676
774
|
accountSettings: string;
|
|
677
775
|
carrier: string;
|
|
678
776
|
carriers: string;
|
|
777
|
+
carrierServices: string;
|
|
679
778
|
connectCarrierForm: string;
|
|
680
779
|
connectingCarriers: string;
|
|
681
780
|
creatingFundingSource: string;
|
|
@@ -766,6 +865,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
766
865
|
gram: string;
|
|
767
866
|
kilogram: string;
|
|
768
867
|
};
|
|
868
|
+
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
769
869
|
T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
|
|
770
870
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
|
|
771
871
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkNTAuCg==": string;
|
|
@@ -778,33 +878,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
778
878
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
|
|
779
879
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
|
|
780
880
|
};
|
|
781
|
-
"connect-carrier": {
|
|
782
|
-
actions: {
|
|
783
|
-
cancel: string;
|
|
784
|
-
carrierSettings: string;
|
|
785
|
-
connectCarriers: string;
|
|
786
|
-
disconnect: string;
|
|
787
|
-
disconnectCarrier: string;
|
|
788
|
-
};
|
|
789
|
-
noCarriersDescription: string;
|
|
790
|
-
registrationForm: {
|
|
791
|
-
error: string;
|
|
792
|
-
title: string;
|
|
793
|
-
betaWarning: string;
|
|
794
|
-
};
|
|
795
|
-
search: string;
|
|
796
|
-
settingsModal: {
|
|
797
|
-
closeDialog: string;
|
|
798
|
-
header: string;
|
|
799
|
-
};
|
|
800
|
-
status: {
|
|
801
|
-
connected: string;
|
|
802
|
-
};
|
|
803
|
-
disconnectDropdown: {
|
|
804
|
-
toastTitle: string;
|
|
805
|
-
toastBody: string;
|
|
806
|
-
};
|
|
807
|
-
};
|
|
808
881
|
"account-settings": {
|
|
809
882
|
messages: {
|
|
810
883
|
noFundingSources: string;
|
|
@@ -820,6 +893,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
820
893
|
externalCarriers: string;
|
|
821
894
|
labelLayout: string;
|
|
822
895
|
unitSettings: string;
|
|
896
|
+
vatSettings: string;
|
|
823
897
|
};
|
|
824
898
|
};
|
|
825
899
|
};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const accountRegistrationFormSchema: z.ZodObject<{
|
|
3
|
+
agreeToTerms: z.ZodLiteral<boolean>;
|
|
3
4
|
email: z.ZodString;
|
|
4
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
agreeToTerms: boolean;
|
|
5
7
|
email: string;
|
|
6
8
|
}, {
|
|
9
|
+
agreeToTerms: boolean;
|
|
7
10
|
email: string;
|
|
8
11
|
}>;
|
|
9
12
|
export type AccountRegistrationFormFields = z.input<typeof accountRegistrationFormSchema>;
|
package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { SE } from "@shipengine/alchemy";
|
|
2
|
-
import {
|
|
2
|
+
import { CarrierMetadataFromFundingSource } from "../../../../types";
|
|
3
3
|
import { CarrierRecoveryFormPayload } from "./carrier-recovery-form-schema";
|
|
4
4
|
export type CarrierRecoveryFormProps = {
|
|
5
5
|
address?: SE.Address;
|
|
6
|
-
|
|
7
|
-
carrierMetadata: CarrierMetadata;
|
|
6
|
+
carrierMetadata: CarrierMetadataFromFundingSource;
|
|
8
7
|
errors?: SE.CodedError[] | null;
|
|
9
8
|
fundingSourceId: string;
|
|
10
9
|
onSkip?: () => void;
|
|
11
10
|
onSubmit: (fundingSourceId: string, payload: CarrierRecoveryFormPayload) => Promise<void>;
|
|
12
11
|
};
|
|
13
|
-
export declare const CarrierRecoveryForm: ({ address,
|
|
12
|
+
export declare const CarrierRecoveryForm: ({ address, carrierMetadata, errors, fundingSourceId, onSkip, onSubmit, }: CarrierRecoveryFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { SE } from "@shipengine/alchemy";
|
|
2
2
|
import { WalletPayload } from "../../../../components/templates/wallet-form";
|
|
3
|
+
import { VatSettingsFeatures } from "../../../../features";
|
|
3
4
|
export type FundingAndCarrierConnectionStepProps = {
|
|
4
5
|
address: SE.Address;
|
|
5
6
|
createFundingSourceErrors: SE.CodedError[] | null;
|
|
7
|
+
features?: VatSettingsFeatures;
|
|
6
8
|
onSubmit: (payload: WalletPayload) => Promise<void>;
|
|
7
9
|
registerCarrierErrors: SE.CodedError[] | null;
|
|
8
10
|
};
|
|
9
|
-
export declare const FundingAndCarrierConnectionStep: ({ address, createFundingSourceErrors, onSubmit, registerCarrierErrors, }: FundingAndCarrierConnectionStepProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
export declare const FundingAndCarrierConnectionStep: ({ address, createFundingSourceErrors, onSubmit, registerCarrierErrors, features, }: FundingAndCarrierConnectionStepProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { SE } from "@shipengine/alchemy";
|
|
2
2
|
import { WalletPayload } from "../../../../components/templates/wallet-form";
|
|
3
|
-
import { CarrierProfile, MetadataRequiredTermWithLinks } from "../../../../types";
|
|
4
3
|
type UseFundingAndCarrierConnectionStepProps = {
|
|
5
4
|
isUpsEnabled: boolean;
|
|
6
5
|
onStepComplete: () => void;
|
|
7
6
|
};
|
|
8
7
|
export declare const useFundingAndCarrierConnectionStep: ({ isUpsEnabled, onStepComplete, }: UseFundingAndCarrierConnectionStepProps) => {
|
|
9
8
|
createFundingAndCarrierConnectionSubmissionHandler: ({ carrierProfiles, defaultWarehouse, email, fundingSourceTerms, }: {
|
|
10
|
-
carrierProfiles:
|
|
9
|
+
carrierProfiles: SE.MetadataCarrierProfile[];
|
|
11
10
|
defaultWarehouse: SE.Warehouse;
|
|
12
11
|
email: string;
|
|
13
|
-
fundingSourceTerms:
|
|
12
|
+
fundingSourceTerms: SE.MetadataRequiredTerm[];
|
|
14
13
|
}) => ({ address, creditCard, iovationBlackbox }: WalletPayload) => Promise<void>;
|
|
15
14
|
createFundingSourceErrors: SE.CodedError[] | null;
|
|
16
15
|
fundingSourceId: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SE } from "@shipengine/alchemy";
|
|
2
|
-
import { ShipEngineCarriersFeatures } from "../../../../features";
|
|
2
|
+
import { ShipEngineCarriersFeatures, VatSettingsFeatures } from "../../../../features";
|
|
3
3
|
import { ShipFromAddressStepProps } from "../ship-from-address-step";
|
|
4
4
|
export type ValidateWarehouse = {
|
|
5
5
|
type: "warehouse";
|
|
@@ -17,7 +17,7 @@ export type OnboardingWizardFeatures = ShipEngineCarriersFeatures & {
|
|
|
17
17
|
presentation: {
|
|
18
18
|
poweredByShipEngine?: boolean;
|
|
19
19
|
};
|
|
20
|
-
};
|
|
20
|
+
} & VatSettingsFeatures;
|
|
21
21
|
export type OnboardingWizardProps = {
|
|
22
22
|
defaultShipFromAddress?: ShipFromAddressStepProps["defaultShipFromAddress"];
|
|
23
23
|
features?: Partial<OnboardingWizardFeatures>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SE } from "@shipengine/alchemy";
|
|
2
2
|
export type TermsAgreementFormProps = {
|
|
3
|
-
carrierTerms:
|
|
4
|
-
fundingSourceTerms: MetadataRequiredTermWithLinks[];
|
|
3
|
+
carrierTerms: SE.MetadataRequiredTerm[];
|
|
5
4
|
hideTerms: boolean;
|
|
6
5
|
onSubmit: (agreement: boolean) => void;
|
|
7
6
|
};
|
|
8
|
-
export declare const TermsAgreementForm: ({ carrierTerms,
|
|
7
|
+
export declare const TermsAgreementForm: ({ carrierTerms, hideTerms, onSubmit, }: TermsAgreementFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.styles.d.ts
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
export declare const styles: {
|
|
2
|
-
closeButton: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
3
|
-
marginRight: number;
|
|
4
|
-
};
|
|
5
2
|
container: {
|
|
6
3
|
alignItems: "center";
|
|
7
4
|
display: "flex";
|
|
8
5
|
flexDirection: "column";
|
|
9
6
|
justifyContent: "center";
|
|
7
|
+
textAlign: "left";
|
|
10
8
|
};
|
|
11
9
|
expanderLink: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
12
10
|
alignItems: "center";
|
|
13
11
|
display: "inline-flex";
|
|
14
12
|
fontWeight: number;
|
|
15
13
|
};
|
|
14
|
+
fullWidth: {
|
|
15
|
+
width: string;
|
|
16
|
+
};
|
|
16
17
|
termsWell: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
17
18
|
backgroundColor: string;
|
|
18
19
|
marginBottom: number;
|
|
19
|
-
padding:
|
|
20
|
-
|
|
21
|
-
termTypeDivider: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
22
|
-
margin: string;
|
|
20
|
+
padding: number;
|
|
21
|
+
width: string;
|
|
23
22
|
};
|
|
24
23
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SE } from "@shipengine/alchemy";
|
|
2
2
|
export type TermsAgreementStepProps = {
|
|
3
3
|
carrierCodes: string[];
|
|
4
|
-
carrierTerms:
|
|
5
|
-
fundingSourceTerms: MetadataRequiredTermWithLinks[];
|
|
4
|
+
carrierTerms: SE.MetadataRequiredTerm[];
|
|
6
5
|
onSubmit: (agreement: boolean) => void;
|
|
7
6
|
};
|
|
8
|
-
export declare const TermsAgreementStep: ({ carrierCodes, carrierTerms,
|
|
7
|
+
export declare const TermsAgreementStep: ({ carrierCodes, carrierTerms, onSubmit, }: TermsAgreementStepProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
package/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SE } from "@shipengine/alchemy";
|
|
2
2
|
export type UseTermsAgreementStepProps = {
|
|
3
3
|
enabledCarriers: string[];
|
|
4
4
|
onStepComplete: () => void;
|
|
5
5
|
};
|
|
6
6
|
export declare const useTermsAgreementStep: ({ enabledCarriers, onStepComplete, }: UseTermsAgreementStepProps) => {
|
|
7
7
|
carrierCodes: string[] | undefined;
|
|
8
|
-
carrierProfiles:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
requiredTerms: import("@shipengine/alchemy").MetadataRequiredTerm[];
|
|
13
|
-
}[] | undefined;
|
|
14
|
-
carrierTerms: MetadataRequiredTermWithLinks[] | undefined;
|
|
15
|
-
fundingSourceMetadata: import("@tanstack/react-query").UseQueryResult<import("@shipengine/alchemy").MetadataResponse, import("@shipengine/alchemy").CodedError[]>;
|
|
16
|
-
fundingSourceTerms: MetadataRequiredTermWithLinks[] | undefined;
|
|
8
|
+
carrierProfiles: SE.MetadataCarrierProfile[] | undefined;
|
|
9
|
+
carrierTerms: SE.MetadataRequiredTerm[] | undefined;
|
|
10
|
+
fundingSourceMetadata: import("@tanstack/react-query").UseQueryResult<SE.MetadataResponse, SE.CodedError[]>;
|
|
11
|
+
fundingSourceTerms: SE.MetadataRequiredTerm[] | undefined;
|
|
17
12
|
handleSubmitTermsAgreement: () => void;
|
|
18
13
|
};
|