@shipengine/elements 0.39.0 → 1.0.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/index.cjs +3794 -3721
- package/index.js +3794 -3725
- package/package.json +10 -13
- package/src/components/carrier-logo/carrier-logo.d.ts +11 -0
- package/src/components/carrier-logo/index.d.ts +1 -0
- package/src/components/display-term/display-term.d.ts +5 -0
- package/src/components/display-term/display-term.styles.d.ts +23 -0
- package/src/components/display-term/index.d.ts +1 -0
- package/src/components/index.d.ts +2 -0
- package/src/components/loader/loader.styles.d.ts +11 -0
- package/src/components/templates/display-carrier-terms/display-carrier-terms.d.ts +2 -2
- package/src/components/templates/display-carrier-terms/display-carrier-terms.styles.d.ts +25 -0
- package/src/components/templates/index.d.ts +2 -6
- package/src/components/templates/list-carriers/list-carriers.d.ts +2 -2
- package/src/components/templates/rate-form/rate-form.d.ts +2 -2
- package/src/components/templates/warehouse-form/warehouse-form.d.ts +2 -2
- package/src/elements/account-settings/account-settings.d.ts +34 -29
- package/src/elements/configure-shipment/hooks/use-rates-form.d.ts +0 -1
- package/src/elements/index.d.ts +0 -1
- package/src/elements/list-carriers/list-carriers.d.ts +2 -2
- package/src/elements/purchase-label/purchase-label.d.ts +37 -10
- package/src/elements/view-shipment/view-shipment.d.ts +35 -18
- package/src/elements/void-label/void-label.d.ts +45 -36
- package/src/index.d.ts +1 -0
- package/src/locales/en/index.d.ts +34 -7
- package/src/types/index.d.ts +1 -0
- package/src/types/patch.d.ts +13 -0
- package/src/utilities/assertions.d.ts +2 -0
- package/src/utilities/feature-flags.d.ts +1 -1
- package/src/utilities/index.d.ts +1 -0
- package/src/workflows/onboarding/components/account-registration-form/account-registration-form-schema.d.ts +10 -0
- package/src/workflows/onboarding/components/account-registration-form/account-registration-form.d.ts +4 -0
- package/src/workflows/onboarding/components/account-registration-form/index.d.ts +1 -0
- package/src/workflows/onboarding/components/account-registration-step/account-registration-step.d.ts +5 -0
- package/src/workflows/onboarding/components/account-registration-step/index.d.ts +2 -0
- package/src/workflows/onboarding/components/account-registration-step/use-account-registration-step.d.ts +7 -0
- package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form-schema.d.ts +241 -0
- package/src/{components/templates → workflows/onboarding/components}/carrier-recovery-form/carrier-recovery-form.d.ts +4 -2
- package/src/workflows/onboarding/components/carrier-recovery-form/index.d.ts +1 -0
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/funding-and-carrier-connection-step.d.ts +9 -0
- package/src/{components/templates/onboarding/onboarding.styles.d.ts → workflows/onboarding/components/funding-and-carrier-connection-step/funding-and-carrier-connection-step.styles.d.ts} +1 -14
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/index.d.ts +2 -0
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/use-funding-and-carrier-connection-step.d.ts +25 -0
- package/src/workflows/onboarding/components/onboarding-wizard/index.d.ts +1 -0
- package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +27 -0
- package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.styles.d.ts +10 -0
- package/src/workflows/onboarding/components/ship-from-address-step/index.d.ts +2 -0
- package/src/workflows/onboarding/components/ship-from-address-step/ship-from-address-step.d.ts +7 -0
- package/src/workflows/onboarding/components/ship-from-address-step/use-ship-from-address-step.d.ts +9 -0
- package/src/workflows/onboarding/components/step-header/index.d.ts +1 -0
- package/src/workflows/onboarding/components/step-header/step-header.d.ts +5 -0
- package/src/workflows/onboarding/components/terms-agreement-form/index.d.ts +1 -0
- package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form-schema.d.ts +10 -0
- package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.d.ts +7 -0
- package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.styles.d.ts +24 -0
- package/src/workflows/onboarding/components/terms-agreement-step/index.d.ts +1 -0
- package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.d.ts +8 -0
- package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.styles.d.ts +17 -0
- package/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts +18 -0
- package/src/{elements → workflows}/onboarding/onboarding.d.ts +55 -48
- package/src/components/templates/carrier-recovery-form/carrier-recovery-form-schema.d.ts +0 -241
- package/src/components/templates/carrier-recovery-form/index.d.ts +0 -2
- package/src/components/templates/carrier-terms-form/carrier-terms-form-schema.d.ts +0 -10
- package/src/components/templates/carrier-terms-form/carrier-terms-form.d.ts +0 -6
- package/src/components/templates/carrier-terms-form/carrier-terms-form.styles.d.ts +0 -65
- package/src/components/templates/carrier-terms-form/index.d.ts +0 -1
- package/src/components/templates/landing-page/index.d.ts +0 -1
- package/src/components/templates/landing-page/landing-page-form-schema.d.ts +0 -10
- package/src/components/templates/landing-page/landing-page-form.d.ts +0 -4
- package/src/components/templates/landing-page/landing-page.d.ts +0 -5
- package/src/components/templates/onboarding/onboarding.d.ts +0 -42
- /package/src/{components/templates/onboarding → workflows}/index.d.ts +0 -0
- /package/src/{components/templates/landing-page/landing-page.styles.d.ts → workflows/onboarding/components/account-registration-step/account-registration-step.styles.d.ts} +0 -0
- /package/src/{components/templates → workflows/onboarding/components}/carrier-recovery-form/carrier-recovery-form.styles.d.ts +0 -0
- /package/src/{components/templates → workflows/onboarding/components}/completion-page/completion-page.d.ts +0 -0
- /package/src/{components/templates → workflows/onboarding/components}/completion-page/index.d.ts +0 -0
- /package/src/{elements → workflows}/onboarding/index.d.ts +0 -0
|
@@ -327,7 +327,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
327
327
|
onboarding: {
|
|
328
328
|
title: string;
|
|
329
329
|
inlineTitle: string;
|
|
330
|
-
|
|
330
|
+
accountRegistration: {
|
|
331
331
|
action: string;
|
|
332
332
|
title: string;
|
|
333
333
|
subtitle: string;
|
|
@@ -336,15 +336,18 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
336
336
|
partnerMessageLine1: string;
|
|
337
337
|
messageLine2: string;
|
|
338
338
|
};
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
339
|
+
stepLabel: {
|
|
340
|
+
accountRegistration: string;
|
|
341
|
+
termsAgreement: string;
|
|
342
|
+
shipFromAddress: string;
|
|
343
|
+
fundingAndCarrierConnection: string;
|
|
344
344
|
};
|
|
345
345
|
warehouse: {
|
|
346
346
|
title: string;
|
|
347
|
-
subtitle: string;
|
|
347
|
+
subtitle: string; /**
|
|
348
|
+
* `onComplete` is a callback function that will be invoked when the request to void a given
|
|
349
|
+
* shipping label is completed.
|
|
350
|
+
*/
|
|
348
351
|
inlineMessage: string;
|
|
349
352
|
};
|
|
350
353
|
success: {
|
|
@@ -352,6 +355,22 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
352
355
|
subtitle: string;
|
|
353
356
|
action: string;
|
|
354
357
|
};
|
|
358
|
+
termsAndAgreementLinkText: {
|
|
359
|
+
aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
|
|
360
|
+
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
|
|
361
|
+
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
|
|
362
|
+
"aHR0cHM6Ly93d3cudXBzLmNvbS91cy9lbi9zdXBwb3J0L3NoaXBwaW5nLXN1cHBvcnQvc2hpcHBpbmctc3BlY2lhbC1jYXJlLXJlZ3VsYXRlZC1pdGVtcy9wcm9oaWJpdGVkLWl0ZW1zLnBhZ2U=": string;
|
|
363
|
+
aHR0cHM6Ly93d3cudXBzLmNvbS9hc3NldHMvcmVzb3VyY2VzL21lZGlhL2VuX1VTL1VQU19EQVBfVEMucGRm: string;
|
|
364
|
+
"aHR0cHM6Ly93d3cudXBzLmNvbS9hc3NldHMvcmVzb3VyY2VzL21lZGlhL2VuX1VTL1VUQS5wZGY=": string;
|
|
365
|
+
"aHR0cHM6Ly93d3cuZXZyaS5jb20vdGVybXMtYW5kLWNvbmRpdGlvbnM=": string;
|
|
366
|
+
"aHR0cHM6Ly93d3cueW9kZWxkaXJlY3QuY28udWsvY29udGVudC9hYm91dC10ZXJtcw==": string;
|
|
367
|
+
aHR0cHM6Ly93d3cuc2hpcHN0YXRpb24uY29tL3Rlcm1zLXNlcnZpY2UtdW5pdGVkLWtpbmdkb20v: string;
|
|
368
|
+
};
|
|
369
|
+
termsAndAgreementTitles: {
|
|
370
|
+
"WW9kZWwgRGlyZWN0IC0gVGVybXMgYW5kIENvbmRpdGlvbnMgKOKAnFRlcm1z4oCdKQ==": string;
|
|
371
|
+
"RXZyaSBTZW5kIFRlcm1zICYgQ29uZGl0aW9ucw==": string;
|
|
372
|
+
"VGVybXMgb2YgU2VydmljZSBVbml0ZWQgS2luZ2RvbQ==": string;
|
|
373
|
+
};
|
|
355
374
|
};
|
|
356
375
|
"manage-defaults": {
|
|
357
376
|
label: {
|
|
@@ -489,11 +508,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
489
508
|
fields: {
|
|
490
509
|
name: string;
|
|
491
510
|
company: string;
|
|
511
|
+
county: string;
|
|
492
512
|
countryCode: string;
|
|
493
513
|
addressLine1: string;
|
|
494
|
-
addressLine2: string;
|
|
495
|
-
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
496
|
-
*/
|
|
514
|
+
addressLine2: string;
|
|
497
515
|
cityLocality: string;
|
|
498
516
|
stateProvince: string;
|
|
499
517
|
postalCode: string;
|
|
@@ -515,6 +533,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
515
533
|
modified: string;
|
|
516
534
|
title: string;
|
|
517
535
|
originalAddress: string;
|
|
536
|
+
/**
|
|
537
|
+
* `onViewShipment` is a callback function that will be invoked when the user clicks the
|
|
538
|
+
* `View Shipment` button. This will take you back to the
|
|
539
|
+
* {@link ViewShipment.Element | `View Shipment Element`} for the given shipment, where you
|
|
540
|
+
* will be able to see the voided label listed.
|
|
541
|
+
*/
|
|
518
542
|
matchedAddress: string;
|
|
519
543
|
unableToValidate: string;
|
|
520
544
|
use: {
|
|
@@ -527,31 +551,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
527
551
|
validated: string;
|
|
528
552
|
};
|
|
529
553
|
};
|
|
530
|
-
/**
|
|
531
|
-
* # Void Label Component
|
|
532
|
-
*
|
|
533
|
-
* - The `<VoidLabel />` component is used to void a given shipping label. When a label is voided,
|
|
534
|
-
* you then get the option to view the associated shipment via the `View Shipment` Element, or
|
|
535
|
-
* you can purchase another label for the shipment via the `Purchase Label` Element.
|
|
536
|
-
*
|
|
537
|
-
* @param ComponentProps The base props that will be passed into the `<VoidLabel />` component.
|
|
538
|
-
*
|
|
539
|
-
* @returns Element An EmotionJSX.Element that will render the `<VoidLabel />` component
|
|
540
|
-
* with all the appropriate wrappers.
|
|
541
|
-
*
|
|
542
|
-
* @example
|
|
543
|
-
* You can see how the `<Component />` is used in the `createElement` function call below.
|
|
544
|
-
* ```tsx
|
|
545
|
-
* export const Element = alchemy.createElement(Component, ErrorFallback, {
|
|
546
|
-
* css: { height: "100%", maxWidth: "800px", minWidth: "440px", width: "100%" },
|
|
547
|
-
* resources: { en },
|
|
548
|
-
* });
|
|
549
|
-
* ```
|
|
550
|
-
*
|
|
551
|
-
* <br />
|
|
552
|
-
*
|
|
553
|
-
* @see {@link VoidLabel.Element | The **Element** created to render `<VoidLabel />`}
|
|
554
|
-
*/
|
|
555
554
|
billing: {
|
|
556
555
|
fields: {
|
|
557
556
|
differentBillingAddress: string;
|
|
@@ -630,6 +629,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
630
629
|
autoFundingSettings: string;
|
|
631
630
|
carrier: string;
|
|
632
631
|
carriers: string;
|
|
632
|
+
fundingSourceMetadata: string;
|
|
633
633
|
label: string;
|
|
634
634
|
salesOrder: string;
|
|
635
635
|
shipment: string;
|
|
@@ -637,7 +637,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
637
637
|
};
|
|
638
638
|
unknown: string;
|
|
639
639
|
noRatesAvailable: string;
|
|
640
|
-
saveRateError: string;
|
|
641
640
|
};
|
|
642
641
|
errorTypes: {
|
|
643
642
|
accountStatus: string;
|
|
@@ -663,6 +662,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
663
662
|
carrier: string;
|
|
664
663
|
carriers: string;
|
|
665
664
|
connectingCarriers: string;
|
|
665
|
+
creatingFundingSource: string;
|
|
666
666
|
data: string;
|
|
667
667
|
importingSalesOrder: string;
|
|
668
668
|
label: string;
|
|
@@ -724,6 +724,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
724
724
|
platform: string;
|
|
725
725
|
user: string;
|
|
726
726
|
};
|
|
727
|
+
terms: {
|
|
728
|
+
fields: {
|
|
729
|
+
agreement: string;
|
|
730
|
+
};
|
|
731
|
+
agreeToTerms: string;
|
|
732
|
+
carriersTitle: string;
|
|
733
|
+
fundingSourceTitle: string;
|
|
734
|
+
};
|
|
727
735
|
weight: {
|
|
728
736
|
ounces: string;
|
|
729
737
|
pounds_one: string;
|
|
@@ -739,6 +747,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
739
747
|
gram: string;
|
|
740
748
|
kilogram: string;
|
|
741
749
|
};
|
|
750
|
+
T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
|
|
742
751
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
|
|
743
752
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkNTAuCg==": string;
|
|
744
753
|
QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnN1ZmZpY2llbnQgYWNjb3VudCBiYWxhbmNlLiBBY2NvdW50IGV4Y2VwdGlvbiBFeGNlcHRpb24gd2l0aCBjb2RlIDB4MDA1NjAxMDE7IG1vZHVsZSA4NiwgY2F0ZWdvcnkgMSwgaXRlbSAx: string;
|
package/src/index.d.ts
CHANGED
|
@@ -226,7 +226,7 @@ declare const _default: {
|
|
|
226
226
|
onboarding: {
|
|
227
227
|
title: string;
|
|
228
228
|
inlineTitle: string;
|
|
229
|
-
|
|
229
|
+
accountRegistration: {
|
|
230
230
|
action: string;
|
|
231
231
|
title: string;
|
|
232
232
|
subtitle: string;
|
|
@@ -235,11 +235,11 @@ declare const _default: {
|
|
|
235
235
|
partnerMessageLine1: string;
|
|
236
236
|
messageLine2: string;
|
|
237
237
|
};
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
238
|
+
stepLabel: {
|
|
239
|
+
accountRegistration: string;
|
|
240
|
+
termsAgreement: string;
|
|
241
|
+
shipFromAddress: string;
|
|
242
|
+
fundingAndCarrierConnection: string;
|
|
243
243
|
};
|
|
244
244
|
warehouse: {
|
|
245
245
|
title: string;
|
|
@@ -251,6 +251,22 @@ declare const _default: {
|
|
|
251
251
|
subtitle: string;
|
|
252
252
|
action: string;
|
|
253
253
|
};
|
|
254
|
+
termsAndAgreementLinkText: {
|
|
255
|
+
aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
|
|
256
|
+
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
|
|
257
|
+
"aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
|
|
258
|
+
"aHR0cHM6Ly93d3cudXBzLmNvbS91cy9lbi9zdXBwb3J0L3NoaXBwaW5nLXN1cHBvcnQvc2hpcHBpbmctc3BlY2lhbC1jYXJlLXJlZ3VsYXRlZC1pdGVtcy9wcm9oaWJpdGVkLWl0ZW1zLnBhZ2U=": string;
|
|
259
|
+
aHR0cHM6Ly93d3cudXBzLmNvbS9hc3NldHMvcmVzb3VyY2VzL21lZGlhL2VuX1VTL1VQU19EQVBfVEMucGRm: string;
|
|
260
|
+
"aHR0cHM6Ly93d3cudXBzLmNvbS9hc3NldHMvcmVzb3VyY2VzL21lZGlhL2VuX1VTL1VUQS5wZGY=": string;
|
|
261
|
+
"aHR0cHM6Ly93d3cuZXZyaS5jb20vdGVybXMtYW5kLWNvbmRpdGlvbnM=": string;
|
|
262
|
+
"aHR0cHM6Ly93d3cueW9kZWxkaXJlY3QuY28udWsvY29udGVudC9hYm91dC10ZXJtcw==": string;
|
|
263
|
+
aHR0cHM6Ly93d3cuc2hpcHN0YXRpb24uY29tL3Rlcm1zLXNlcnZpY2UtdW5pdGVkLWtpbmdkb20v: string;
|
|
264
|
+
};
|
|
265
|
+
termsAndAgreementTitles: {
|
|
266
|
+
"WW9kZWwgRGlyZWN0IC0gVGVybXMgYW5kIENvbmRpdGlvbnMgKOKAnFRlcm1z4oCdKQ==": string;
|
|
267
|
+
"RXZyaSBTZW5kIFRlcm1zICYgQ29uZGl0aW9ucw==": string;
|
|
268
|
+
"VGVybXMgb2YgU2VydmljZSBVbml0ZWQgS2luZ2RvbQ==": string;
|
|
269
|
+
};
|
|
254
270
|
};
|
|
255
271
|
"manage-defaults": {
|
|
256
272
|
label: {
|
|
@@ -388,6 +404,7 @@ declare const _default: {
|
|
|
388
404
|
fields: {
|
|
389
405
|
name: string;
|
|
390
406
|
company: string;
|
|
407
|
+
county: string;
|
|
391
408
|
countryCode: string;
|
|
392
409
|
addressLine1: string;
|
|
393
410
|
addressLine2: string;
|
|
@@ -502,6 +519,7 @@ declare const _default: {
|
|
|
502
519
|
autoFundingSettings: string;
|
|
503
520
|
carrier: string;
|
|
504
521
|
carriers: string;
|
|
522
|
+
fundingSourceMetadata: string;
|
|
505
523
|
label: string;
|
|
506
524
|
salesOrder: string;
|
|
507
525
|
shipment: string;
|
|
@@ -509,7 +527,6 @@ declare const _default: {
|
|
|
509
527
|
};
|
|
510
528
|
unknown: string;
|
|
511
529
|
noRatesAvailable: string;
|
|
512
|
-
saveRateError: string;
|
|
513
530
|
};
|
|
514
531
|
errorTypes: {
|
|
515
532
|
accountStatus: string;
|
|
@@ -535,6 +552,7 @@ declare const _default: {
|
|
|
535
552
|
carrier: string;
|
|
536
553
|
carriers: string;
|
|
537
554
|
connectingCarriers: string;
|
|
555
|
+
creatingFundingSource: string;
|
|
538
556
|
data: string;
|
|
539
557
|
importingSalesOrder: string;
|
|
540
558
|
label: string;
|
|
@@ -596,6 +614,14 @@ declare const _default: {
|
|
|
596
614
|
platform: string;
|
|
597
615
|
user: string;
|
|
598
616
|
};
|
|
617
|
+
terms: {
|
|
618
|
+
fields: {
|
|
619
|
+
agreement: string;
|
|
620
|
+
};
|
|
621
|
+
agreeToTerms: string;
|
|
622
|
+
carriersTitle: string;
|
|
623
|
+
fundingSourceTitle: string;
|
|
624
|
+
};
|
|
599
625
|
weight: {
|
|
600
626
|
ounces: string;
|
|
601
627
|
pounds_one: string;
|
|
@@ -611,6 +637,7 @@ declare const _default: {
|
|
|
611
637
|
gram: string;
|
|
612
638
|
kilogram: string;
|
|
613
639
|
};
|
|
640
|
+
T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
|
|
614
641
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
|
|
615
642
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkNTAuCg==": string;
|
|
616
643
|
QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnN1ZmZpY2llbnQgYWNjb3VudCBiYWxhbmNlLiBBY2NvdW50IGV4Y2VwdGlvbiBFeGNlcHRpb24gd2l0aCBjb2RlIDB4MDA1NjAxMDE7IG1vZHVsZSA4NiwgY2F0ZWdvcnkgMSwgaXRlbSAx: string;
|
package/src/types/index.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MetadataRequiredTerm, MetadataResponse } from "@shipengine/alchemy";
|
|
2
|
+
interface TermsLink {
|
|
3
|
+
link: string;
|
|
4
|
+
locale: string;
|
|
5
|
+
title: string;
|
|
6
|
+
}
|
|
7
|
+
export interface MetadataTermsLinks {
|
|
8
|
+
links: TermsLink[];
|
|
9
|
+
}
|
|
10
|
+
export interface MetadataRequiredTermWithLinks extends MetadataRequiredTerm, MetadataTermsLinks {
|
|
11
|
+
}
|
|
12
|
+
export type CarrierProfile = MetadataResponse["defaultRegionProfile"]["carrierProfiles"][number];
|
|
13
|
+
export {};
|
|
@@ -146,7 +146,7 @@ export declare const featureFlags: {
|
|
|
146
146
|
* `enabledCarriers` is a list of all `carriers` that are enabled for use in ShipEngine
|
|
147
147
|
* Elements.
|
|
148
148
|
*/
|
|
149
|
-
readonly enabledCarriers: readonly ["stamps_com", "
|
|
149
|
+
readonly enabledCarriers: readonly ["stamps_com", "ups_walleted", "dhl_express_walleted", "ups", "hermes", "yodel_walleted"];
|
|
150
150
|
};
|
|
151
151
|
/**
|
|
152
152
|
* All global `presentation` related feature flags.
|
package/src/utilities/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const accountRegistrationFormSchema: z.ZodObject<{
|
|
3
|
+
email: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
email: string;
|
|
6
|
+
}, {
|
|
7
|
+
email: string;
|
|
8
|
+
}>;
|
|
9
|
+
export type AccountRegistrationFormFields = z.input<typeof accountRegistrationFormSchema>;
|
|
10
|
+
export type AccountRegistrationFormPayload = z.output<typeof accountRegistrationFormSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./account-registration-form";
|
package/src/workflows/onboarding/components/account-registration-step/account-registration-step.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type AccountRegistrationStepProps = {
|
|
2
|
+
onSubmit: (payload: string) => void;
|
|
3
|
+
partnerName?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const AccountRegistrationStep: ({ onSubmit, partnerName, }: AccountRegistrationStepProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type UseAccountRegistrationStepProps = {
|
|
2
|
+
onStepComplete: () => void;
|
|
3
|
+
};
|
|
4
|
+
export declare const useAccountRegistrationStep: ({ onStepComplete }: UseAccountRegistrationStepProps) => {
|
|
5
|
+
email: string | undefined;
|
|
6
|
+
handleSubmitAccountRegistration: (email: string) => void;
|
|
7
|
+
};
|