@shipengine/elements 0.38.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 +4520 -4443
- package/index.js +4519 -4446
- package/package.json +11 -14
- package/src/components/add-funds-form/add-funds-form.styles.d.ts +3 -3
- package/src/components/auto-funding-form/auto-funding-form.styles.d.ts +1 -1
- package/src/components/carrier-balance/carrier-balance.styles.d.ts +1 -1
- package/src/components/carrier-logo/carrier-logo.d.ts +11 -0
- package/src/components/carrier-logo/index.d.ts +1 -0
- package/src/components/collapsible-panel/collapsible-panel.d.ts +1 -1
- package/src/components/collapsible-panel/collapsible-panel.styles.d.ts +4 -4
- package/src/components/date-range-select/date-range-select.styles.d.ts +1 -1
- package/src/components/disclosure/disclosure.styles.d.ts +3 -3
- 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/error-display/error-display.styles.d.ts +3 -3
- package/src/components/field/checkbox-input/checkbox-input.d.ts +1 -1
- package/src/components/field/credit-card-input/credit-card-input.d.ts +1 -1
- package/src/components/field/date-picker/date-picker.styles.d.ts +1 -1
- package/src/components/field/expiration-input/expiration-input.d.ts +1 -1
- package/src/components/field/field.styles.d.ts +1 -1
- package/src/components/field/money-input/money-input.d.ts +1 -1
- package/src/components/field/number-input/number-input.d.ts +1 -1
- package/src/components/field/rate-card/cost-breakdown/cost-breakdown.styles.d.ts +1 -1
- package/src/components/field/rate-card/rate-card.d.ts +1 -1
- package/src/components/field/rate-card/rate-card.styles.d.ts +1 -1
- package/src/components/field/rate-select/rate-select.styles.d.ts +1 -1
- package/src/components/field/select-auto-complete/select-auto-complete.d.ts +1 -1
- package/src/components/field/submit-button/submit-button.d.ts +1 -1
- package/src/components/field/switch/switch.d.ts +1 -1
- package/src/components/field/text-area/text-area.d.ts +1 -1
- package/src/components/field/text-input/text-input.d.ts +1 -1
- package/src/components/fund-and-purchase/fund-and-purchase.styles.d.ts +3 -3
- package/src/components/history/history-card/history-card.styles.d.ts +8 -8
- package/src/components/history/history-card-extension/history-card-extension.styles.d.ts +3 -3
- package/src/components/index.d.ts +2 -0
- package/src/components/inline-label/inline-label.d.ts +1 -1
- package/src/components/inline-label/inline-label.styles.d.ts +1 -1
- package/src/components/items-breakdown/items-breakdown.styles.d.ts +6 -6
- package/src/components/label/label.d.ts +1 -1
- package/src/components/label/label.styles.d.ts +1 -1
- package/src/components/label-layout/label-layout.styles.d.ts +12 -12
- package/src/components/link-action/link-action.d.ts +2 -2
- package/src/components/loader/loader.d.ts +1 -1
- package/src/components/loader/loader.styles.d.ts +11 -0
- package/src/components/preset-descriptor/preset-descriptor.styles.d.ts +1 -1
- package/src/components/save-status/save-status-styles.d.ts +4 -4
- package/src/components/section/section.d.ts +1 -1
- package/src/components/section/section.styles.d.ts +4 -4
- package/src/components/settings-card/settings-card.styles.d.ts +5 -5
- package/src/components/spacer/spacer.d.ts +1 -1
- package/src/components/templates/account-settings/account-settings.d.ts +0 -1
- package/src/components/templates/address-form/address-fields.styles.d.ts +1 -1
- package/src/components/templates/customs-items-display/customs-items-display.styles.d.ts +16 -16
- 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/edit-billing-form/edit-billing-form.styles.d.ts +3 -3
- package/src/components/templates/index.d.ts +2 -6
- package/src/components/templates/label/label.styles.d.ts +2 -2
- package/src/components/templates/list-carriers/list-carriers.d.ts +2 -2
- package/src/components/templates/list-carriers/list-carriers.styles.d.ts +3 -3
- package/src/components/templates/list-carriers-row/list-carriers-row.styles.d.ts +3 -3
- package/src/components/templates/manage-warehouses/manage-warehouse.styles.d.ts +2 -2
- package/src/components/templates/rate-form/rate-form.d.ts +2 -2
- package/src/components/templates/rate-form/rate-form.styles.d.ts +1 -1
- package/src/components/templates/suspend-sales-order/suspend-sales-order.d.ts +1 -1
- package/src/components/templates/suspend-shipment/suspend-shipment.d.ts +1 -1
- package/src/components/templates/wallet-card/wallet-card.styles.d.ts +1 -1
- package/src/components/templates/wallet-form/wallet-form.styles.d.ts +1 -1
- package/src/components/templates/warehouse-form/warehouse-form.d.ts +2 -2
- package/src/elements/account-settings/account-settings.d.ts +35 -38
- package/src/elements/configure-shipment/hooks/use-rates-form.d.ts +0 -1
- package/src/elements/configure-shipment/hooks/use-request-preferred-rates.d.ts +1 -1
- package/src/elements/configure-shipment/hooks/use-request-rates.d.ts +1 -1
- package/src/elements/index.d.ts +0 -1
- package/src/elements/list-carriers/hooks/use-list-connected-carriers.d.ts +1 -1
- package/src/elements/list-carriers/list-carriers.d.ts +2 -2
- package/src/elements/purchase-label/hooks/use-load-shipment.d.ts +1 -1
- package/src/elements/purchase-label/purchase-label.d.ts +37 -10
- package/src/elements/view-shipment/view-shipment.d.ts +34 -11
- package/src/elements/void-label/void-label.d.ts +45 -36
- package/src/features/wallet-history/wallet-history.styles.d.ts +11 -11
- package/src/hooks/use-get-or-create-shipment.d.ts +1 -1
- package/src/index.d.ts +1 -0
- package/src/locales/en/index.d.ts +34 -7
- package/src/testing/extensions/queries/by-icon-name.d.ts +1 -1
- package/src/testing/extensions/queries/index.d.ts +6 -6
- package/src/testing/test-utils.d.ts +1 -2
- 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/utilities/styles.d.ts +1 -1
- 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/{components/templates/landing-page/landing-page.styles.d.ts → workflows/onboarding/components/account-registration-step/account-registration-step.styles.d.ts} +1 -1
- 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/{components/templates → workflows/onboarding/components}/carrier-recovery-form/carrier-recovery-form.styles.d.ts +1 -1
- 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/workflows/onboarding/components/funding-and-carrier-connection-step/funding-and-carrier-connection-step.styles.d.ts +18 -0
- 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/onboarding.styles.d.ts +0 -31
- /package/src/{components/templates/onboarding → workflows}/index.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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const styles: {
|
|
2
|
-
action: (theme: import("@
|
|
2
|
+
action: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
3
3
|
minWidth: number;
|
|
4
4
|
placeContent: "center";
|
|
5
5
|
width: number;
|
|
6
6
|
};
|
|
7
|
-
displayStateContainer: (theme: import("@
|
|
7
|
+
displayStateContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
8
8
|
"& > *:not(:last-child)::after": {
|
|
9
9
|
borderBottom: string;
|
|
10
10
|
content: "\"\"";
|
|
@@ -16,17 +16,17 @@ export declare const styles: {
|
|
|
16
16
|
flexDirection: "column";
|
|
17
17
|
listStyle: "none";
|
|
18
18
|
};
|
|
19
|
-
emptyStateContainer: (theme: import("@
|
|
19
|
+
emptyStateContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
20
20
|
backgroundColor: string;
|
|
21
21
|
padding: number;
|
|
22
22
|
textAlign: "center";
|
|
23
23
|
};
|
|
24
|
-
gridContainer: (theme: import("@
|
|
24
|
+
gridContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
25
25
|
display: "flex";
|
|
26
26
|
justifyContent: "space-between";
|
|
27
27
|
placeItems: "center";
|
|
28
28
|
};
|
|
29
|
-
linkAction: (theme: import("@
|
|
29
|
+
linkAction: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
30
30
|
textAlign: "end";
|
|
31
31
|
};
|
|
32
32
|
pagination: {
|
|
@@ -38,7 +38,7 @@ export declare const styles: {
|
|
|
38
38
|
};
|
|
39
39
|
textAlign: "center";
|
|
40
40
|
};
|
|
41
|
-
skeletonCard: (theme: import("@
|
|
41
|
+
skeletonCard: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
42
42
|
backgroundColor: "#e3dfdf1f";
|
|
43
43
|
display: "flex";
|
|
44
44
|
justifyContent: "space-between";
|
|
@@ -49,28 +49,28 @@ export declare const styles: {
|
|
|
49
49
|
flexDirection: "column";
|
|
50
50
|
justifyContent: "space-between";
|
|
51
51
|
};
|
|
52
|
-
skeletonCardColumnRight: (theme: import("@
|
|
52
|
+
skeletonCardColumnRight: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
53
53
|
alignItems: "flex-end";
|
|
54
54
|
display: "flex";
|
|
55
55
|
flexDirection: "column";
|
|
56
56
|
justifyContent: "space-between";
|
|
57
57
|
rowGap: number;
|
|
58
58
|
};
|
|
59
|
-
skeletonCardList: (theme: import("@
|
|
59
|
+
skeletonCardList: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
60
60
|
display: "flex";
|
|
61
61
|
flexDirection: "column";
|
|
62
62
|
rowGap: number;
|
|
63
63
|
};
|
|
64
|
-
skeletonCardLogo: (theme: import("@
|
|
64
|
+
skeletonCardLogo: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
65
65
|
alignItems: "center";
|
|
66
66
|
columnGap: number;
|
|
67
67
|
display: "flex";
|
|
68
68
|
};
|
|
69
|
-
skeletonCardTransactionRow: (theme: import("@
|
|
69
|
+
skeletonCardTransactionRow: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
70
70
|
columnGap: string;
|
|
71
71
|
display: "flex";
|
|
72
72
|
};
|
|
73
|
-
skeletonPagination: (theme: import("@
|
|
73
|
+
skeletonPagination: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
74
74
|
alignItems: "center";
|
|
75
75
|
display: "flex";
|
|
76
76
|
justifyContent: "space-between";
|
|
@@ -2,6 +2,6 @@ import { SalesOrderShipment } from "@shipengine/alchemy";
|
|
|
2
2
|
export declare const useGetOrCreateShipment: (onShipmentUpdated: ((shipment: SalesOrderShipment) => void | Promise<void>) | undefined, shipmentId?: string) => {
|
|
3
3
|
errors: import("@shipengine/alchemy").CodedError[] | undefined;
|
|
4
4
|
isLoading: boolean;
|
|
5
|
-
refetchShipment: <TPageData>(options?: (import("
|
|
5
|
+
refetchShipment: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<SalesOrderShipment, import("@shipengine/alchemy").CodedError[]>>;
|
|
6
6
|
shipment: SalesOrderShipment | undefined;
|
|
7
7
|
};
|
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { MatcherOptions, queryHelpers } from "@testing-library/react";
|
|
2
|
-
import { IconNames } from "@
|
|
2
|
+
import { IconNames } from "@shipengine/giger-theme";
|
|
3
3
|
export declare const queryAllByIconName: (container: HTMLElement, iconName: IconNames, options?: MatcherOptions | undefined) => HTMLElement[];
|
|
4
4
|
export declare const queryByIconName: queryHelpers.QueryBy<[dataIdValue: IconNames]>, getAllByIconName: queryHelpers.GetAllBy<[dataIdValue: IconNames]>, getByIconName: queryHelpers.GetBy<[dataIdValue: IconNames]>, findAllByIconName: queryHelpers.FindAllBy<[dataIdValue: IconNames]>, findByIconName: queryHelpers.FindBy<[dataIdValue: IconNames]>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { queries } from "@testing-library/react";
|
|
2
2
|
export declare const extendedQueries: {
|
|
3
|
-
queryAllByIconName: (container: HTMLElement, iconName: import("@
|
|
4
|
-
queryByIconName: import("@testing-library/react").QueryBy<[dataIdValue: import("@
|
|
5
|
-
getAllByIconName: import("@testing-library/react").GetAllBy<[dataIdValue: import("@
|
|
6
|
-
getByIconName: import("@testing-library/react").GetBy<[dataIdValue: import("@
|
|
7
|
-
findAllByIconName: import("@testing-library/react").FindAllBy<[dataIdValue: import("@
|
|
8
|
-
findByIconName: import("@testing-library/react").FindBy<[dataIdValue: import("@
|
|
3
|
+
queryAllByIconName: (container: HTMLElement, iconName: import("@shipengine/giger-theme/dist/lib/Icons").IconNames, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
4
|
+
queryByIconName: import("@testing-library/react").QueryBy<[dataIdValue: import("@shipengine/giger-theme/dist/lib/Icons").IconNames]>;
|
|
5
|
+
getAllByIconName: import("@testing-library/react").GetAllBy<[dataIdValue: import("@shipengine/giger-theme/dist/lib/Icons").IconNames]>;
|
|
6
|
+
getByIconName: import("@testing-library/react").GetBy<[dataIdValue: import("@shipengine/giger-theme/dist/lib/Icons").IconNames]>;
|
|
7
|
+
findAllByIconName: import("@testing-library/react").FindAllBy<[dataIdValue: import("@shipengine/giger-theme/dist/lib/Icons").IconNames]>;
|
|
8
|
+
findByIconName: import("@testing-library/react").FindBy<[dataIdValue: import("@shipengine/giger-theme/dist/lib/Icons").IconNames]>;
|
|
9
9
|
getByLabelText<T extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T;
|
|
10
10
|
getAllByLabelText<T_1 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T_1[];
|
|
11
11
|
queryByLabelText<T_2 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T_2 | null;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { prettyFormat as __ } from "@testing-library/dom/types/pretty-dom";
|
|
3
2
|
import { UserEvent } from "@testing-library/user-event/dist/types/setup/setup";
|
|
4
|
-
import { IconNames, Theme } from "@
|
|
3
|
+
import { IconNames, Theme } from "@shipengine/giger-theme";
|
|
5
4
|
import server, { baseUrl } from "../mocks/server";
|
|
6
5
|
declare const theme: Theme;
|
|
7
6
|
declare const delayedFn: () => Promise<void>;
|
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Interpolation } from "@emotion/serialize";
|
|
2
|
-
import { Theme } from "@
|
|
2
|
+
import { Theme } from "@shipengine/giger-theme";
|
|
3
3
|
/**
|
|
4
4
|
* The verbose typing is necessary to get around TypeScript's limitations on contextual inference
|
|
5
5
|
* with generics. https://stackoverflow.com/questions/75999792/ide-autocompletion-broken-with-typescript-mapped-type-conditionals
|
|
@@ -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
|
+
};
|