@shipengine/elements 0.25.0 → 0.26.1
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 +1147 -663
- package/index.js +1154 -677
- package/package.json +12 -4
- package/src/components/field/field.styles.d.ts +2 -12
- package/src/components/index.d.ts +1 -0
- package/src/components/label-layout/label-layout-settings.d.ts +3 -1
- package/src/components/powered-by-shipengine/index.d.ts +1 -0
- package/src/components/powered-by-shipengine/powered-by-shipengine.d.ts +1 -0
- package/src/components/powered-by-shipengine/powered-by-shipengine.styles.d.ts +11 -0
- package/src/components/save-status/index.d.ts +2 -0
- package/src/components/save-status/save-status-styles.d.ts +43 -0
- package/src/components/save-status/save-status.d.ts +6 -0
- package/src/components/templates/index.d.ts +0 -1
- package/src/components/templates/rate-form/rate-form.d.ts +1 -0
- package/src/constants/shipengine/address.d.ts +2 -0
- package/src/elements/list-carriers/list-carriers.d.ts +28 -14
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +28 -14
- package/src/elements/onboarding/onboarding.d.ts +28 -14
- package/src/elements/purchase-label/hooks/use-load-or-create-shipment.d.ts +6 -0
- package/src/elements/purchase-label/purchase-label-by-shipment.d.ts +5 -2
- package/src/elements/purchase-label/purchase-label.d.ts +40 -20
- package/src/elements/view-shipment/view-shipment.d.ts +28 -14
- package/src/{components/templates/void-label/void-label.d.ts → elements/void-label/components/actions/actions.d.ts} +3 -3
- package/src/elements/void-label/components/actions/index.d.ts +1 -0
- package/src/elements/void-label/components/index.d.ts +2 -0
- package/src/elements/void-label/components/message/index.d.ts +1 -0
- package/src/elements/void-label/components/message/message.d.ts +6 -0
- package/src/elements/void-label/void-label.d.ts +28 -14
- package/src/hooks/options/index.d.ts +1 -0
- package/src/hooks/options/use-package-options.d.ts +1 -1
- package/src/hooks/options/use-service-code-options.d.ts +1 -1
- package/src/hooks/options/use-shipment-metadata.d.ts +8 -0
- package/src/hooks/options/use-shipping-presets-options.d.ts +2 -1
- package/src/hooks/use-get-or-create-shipment.d.ts +2 -0
- package/src/locales/en/index.d.ts +28 -14
- package/src/mocks/server.d.ts +1 -0
- package/src/testing/extensions/index.d.ts +2 -0
- package/src/testing/extensions/matchers/extend-matchers.d.ts +8 -0
- package/src/testing/extensions/matchers/index.d.ts +1 -0
- package/src/testing/extensions/matchers/matchers.d.ts +1 -0
- package/src/testing/extensions/matchers/to-have-loading-spinner.d.ts +2 -0
- package/src/testing/extensions/queries/by-icon-name.d.ts +4 -0
- package/src/testing/extensions/queries/index.d.ts +57 -0
- package/src/testing/extensions/queries/queries.d.ts +1 -0
- package/src/testing/index.d.ts +1 -1
- package/src/testing/test-utils.d.ts +292 -0
- package/src/utilities/error.d.ts +13 -0
- package/src/utilities/i18nDateUtils.d.ts +16 -0
- package/src/utilities/shipengine/address.d.ts +4 -0
- package/src/utilities/shipengine/carrier.d.ts +1 -0
- package/src/components/templates/void-label/index.d.ts +0 -1
- package/src/public-sdk.d.ts +0 -38
- package/src/testing/render.d.ts +0 -6
|
@@ -35,6 +35,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
35
35
|
confirmVoid: string;
|
|
36
36
|
viewShipment: string;
|
|
37
37
|
};
|
|
38
|
+
errorMessages: {
|
|
39
|
+
labelIdRequired: string;
|
|
40
|
+
};
|
|
38
41
|
resultMessages: {
|
|
39
42
|
approved: string;
|
|
40
43
|
rejected: string;
|
|
@@ -153,6 +156,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
153
156
|
noRates: string;
|
|
154
157
|
salesOrderNotLoaded: string;
|
|
155
158
|
unsupportedAddress: string;
|
|
159
|
+
saveRateFailedMessage: string;
|
|
160
|
+
saveRateFailedTitle: string;
|
|
156
161
|
};
|
|
157
162
|
errorTypes: {
|
|
158
163
|
results: string;
|
|
@@ -180,6 +185,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
180
185
|
shipDate: string;
|
|
181
186
|
service: string;
|
|
182
187
|
shipTo: string;
|
|
188
|
+
addShipToAddress: string;
|
|
183
189
|
warehouse: string;
|
|
184
190
|
weight: {
|
|
185
191
|
whole: string;
|
|
@@ -245,21 +251,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
245
251
|
};
|
|
246
252
|
};
|
|
247
253
|
"manage-defaults": {
|
|
248
|
-
units: {
|
|
249
|
-
title: string;
|
|
250
|
-
dimensions: {
|
|
251
|
-
title: string;
|
|
252
|
-
standard: string;
|
|
253
|
-
metric: string;
|
|
254
|
-
};
|
|
255
|
-
weight: {
|
|
256
|
-
title: string;
|
|
257
|
-
standard: string;
|
|
258
|
-
g: string;
|
|
259
|
-
kg: string;
|
|
260
|
-
};
|
|
261
|
-
};
|
|
262
254
|
label: {
|
|
255
|
+
title: string;
|
|
263
256
|
letter: {
|
|
264
257
|
title: string;
|
|
265
258
|
description: string;
|
|
@@ -272,7 +265,25 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
272
265
|
title: string;
|
|
273
266
|
description: string;
|
|
274
267
|
};
|
|
268
|
+
};
|
|
269
|
+
status: {
|
|
270
|
+
saving: string;
|
|
271
|
+
saved: string;
|
|
272
|
+
savingFailed: string;
|
|
273
|
+
};
|
|
274
|
+
units: {
|
|
275
275
|
title: string;
|
|
276
|
+
dimensions: {
|
|
277
|
+
title: string;
|
|
278
|
+
standard: string;
|
|
279
|
+
metric: string;
|
|
280
|
+
};
|
|
281
|
+
weight: {
|
|
282
|
+
title: string;
|
|
283
|
+
standard: string;
|
|
284
|
+
g: string;
|
|
285
|
+
kg: string;
|
|
286
|
+
};
|
|
276
287
|
};
|
|
277
288
|
};
|
|
278
289
|
"manage-warehouses": {
|
|
@@ -487,6 +498,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
487
498
|
autoFundingSettings: string;
|
|
488
499
|
carrier: string;
|
|
489
500
|
carriers: string;
|
|
501
|
+
label: string;
|
|
490
502
|
salesOrder: string;
|
|
491
503
|
shipment: string;
|
|
492
504
|
warehouses: string;
|
|
@@ -517,6 +529,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
517
529
|
carriers: string;
|
|
518
530
|
data: string;
|
|
519
531
|
importingSalesOrder: string;
|
|
532
|
+
label: string;
|
|
520
533
|
onboarding: string;
|
|
521
534
|
salesOrder: string;
|
|
522
535
|
shipment: string;
|
|
@@ -543,6 +556,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
543
556
|
packageCodes: {
|
|
544
557
|
package: string;
|
|
545
558
|
};
|
|
559
|
+
"powered-by": string;
|
|
546
560
|
schema: {
|
|
547
561
|
optionalLabel: string;
|
|
548
562
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SE } from "@shipengine/alchemy";
|
|
2
|
-
export type
|
|
2
|
+
export type ActionsProps = {
|
|
3
3
|
onComplete: (request: SE.VoidRequest, shipment: SE.SalesOrderShipment) => void;
|
|
4
4
|
onSubmit: () => Promise<void>;
|
|
5
5
|
onViewShipment: (shipment: SE.SalesOrderShipment) => void;
|
|
6
|
-
shipment
|
|
6
|
+
shipment: SE.SalesOrderShipment;
|
|
7
7
|
voidRequest?: SE.VoidRequest;
|
|
8
8
|
};
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const Actions: ({ onComplete, onSubmit, onViewShipment, shipment, voidRequest, }: ActionsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./actions";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./message";
|
|
@@ -30,6 +30,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
30
30
|
confirmVoid: string;
|
|
31
31
|
viewShipment: string;
|
|
32
32
|
};
|
|
33
|
+
errorMessages: {
|
|
34
|
+
labelIdRequired: string;
|
|
35
|
+
};
|
|
33
36
|
resultMessages: {
|
|
34
37
|
approved: string;
|
|
35
38
|
rejected: string;
|
|
@@ -148,6 +151,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
148
151
|
noRates: string;
|
|
149
152
|
salesOrderNotLoaded: string;
|
|
150
153
|
unsupportedAddress: string;
|
|
154
|
+
saveRateFailedMessage: string;
|
|
155
|
+
saveRateFailedTitle: string;
|
|
151
156
|
};
|
|
152
157
|
errorTypes: {
|
|
153
158
|
results: string;
|
|
@@ -175,6 +180,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
175
180
|
shipDate: string;
|
|
176
181
|
service: string;
|
|
177
182
|
shipTo: string;
|
|
183
|
+
addShipToAddress: string;
|
|
178
184
|
warehouse: string;
|
|
179
185
|
weight: {
|
|
180
186
|
whole: string;
|
|
@@ -240,21 +246,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
240
246
|
};
|
|
241
247
|
};
|
|
242
248
|
"manage-defaults": {
|
|
243
|
-
units: {
|
|
244
|
-
title: string;
|
|
245
|
-
dimensions: {
|
|
246
|
-
title: string;
|
|
247
|
-
standard: string;
|
|
248
|
-
metric: string;
|
|
249
|
-
};
|
|
250
|
-
weight: {
|
|
251
|
-
title: string;
|
|
252
|
-
standard: string;
|
|
253
|
-
g: string;
|
|
254
|
-
kg: string;
|
|
255
|
-
};
|
|
256
|
-
};
|
|
257
249
|
label: {
|
|
250
|
+
title: string;
|
|
258
251
|
letter: {
|
|
259
252
|
title: string;
|
|
260
253
|
description: string;
|
|
@@ -267,7 +260,25 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
267
260
|
title: string;
|
|
268
261
|
description: string;
|
|
269
262
|
};
|
|
263
|
+
};
|
|
264
|
+
status: {
|
|
265
|
+
saving: string;
|
|
266
|
+
saved: string;
|
|
267
|
+
savingFailed: string;
|
|
268
|
+
};
|
|
269
|
+
units: {
|
|
270
270
|
title: string;
|
|
271
|
+
dimensions: {
|
|
272
|
+
title: string;
|
|
273
|
+
standard: string;
|
|
274
|
+
metric: string;
|
|
275
|
+
};
|
|
276
|
+
weight: {
|
|
277
|
+
title: string;
|
|
278
|
+
standard: string;
|
|
279
|
+
g: string;
|
|
280
|
+
kg: string;
|
|
281
|
+
};
|
|
271
282
|
};
|
|
272
283
|
};
|
|
273
284
|
"manage-warehouses": {
|
|
@@ -482,6 +493,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
482
493
|
autoFundingSettings: string;
|
|
483
494
|
carrier: string;
|
|
484
495
|
carriers: string;
|
|
496
|
+
label: string;
|
|
485
497
|
salesOrder: string;
|
|
486
498
|
shipment: string;
|
|
487
499
|
warehouses: string;
|
|
@@ -512,6 +524,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
512
524
|
carriers: string;
|
|
513
525
|
data: string;
|
|
514
526
|
importingSalesOrder: string;
|
|
527
|
+
label: string;
|
|
515
528
|
onboarding: string;
|
|
516
529
|
salesOrder: string;
|
|
517
530
|
shipment: string;
|
|
@@ -538,6 +551,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
538
551
|
packageCodes: {
|
|
539
552
|
package: string;
|
|
540
553
|
};
|
|
554
|
+
"powered-by": string;
|
|
541
555
|
schema: {
|
|
542
556
|
optionalLabel: string;
|
|
543
557
|
};
|
|
@@ -8,6 +8,7 @@ export * from "./use-insurance-provider-options";
|
|
|
8
8
|
export * from "./use-package-options";
|
|
9
9
|
export * from "./use-rate-options";
|
|
10
10
|
export * from "./use-service-code-options";
|
|
11
|
+
export * from "./use-shipment-metadata";
|
|
11
12
|
export * from "./use-shipping-presets-options";
|
|
12
13
|
export * from "./use-state-code-options";
|
|
13
14
|
export * from "./use-warehouse-options";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SE } from "@shipengine/alchemy";
|
|
2
2
|
import { SelectCategory } from "../../components/field/select";
|
|
3
|
-
export declare const usePackageOptions: (carriers?: SE.Carrier[], customPackageTypes?: SE.CustomPackage[],
|
|
3
|
+
export declare const usePackageOptions: (carriers?: SE.Carrier[], customPackageTypes?: SE.CustomPackage[], shipment?: SE.SalesOrderShipment) => SelectCategory[] | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SE } from "@shipengine/alchemy";
|
|
2
2
|
import { SelectCategory } from "../../components/field/select";
|
|
3
|
-
export declare const useServiceCodeOptions: (carriers?: SE.Carrier[],
|
|
3
|
+
export declare const useServiceCodeOptions: (carriers?: SE.Carrier[], shipment?: SE.SalesOrderShipment) => SelectCategory[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SE } from "@shipengine/alchemy";
|
|
2
|
+
export declare const useShipmentMetadata: (shipment?: SE.SalesOrderShipment) => {
|
|
3
|
+
isContentDescriptionRequired: boolean;
|
|
4
|
+
isCustomsRequired: boolean;
|
|
5
|
+
isInternational: boolean;
|
|
6
|
+
isPoBox: boolean | undefined;
|
|
7
|
+
isUnsupportedUpsCountry: boolean | undefined;
|
|
8
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SE } from "@shipengine/alchemy";
|
|
1
2
|
import { ShippingPreset } from "../../types";
|
|
2
3
|
export type UseShippingPresetsOptionsProps = {
|
|
3
4
|
platform?: {
|
|
@@ -9,7 +10,7 @@ export type UseShippingPresetsOptionsProps = {
|
|
|
9
10
|
international: ShippingPreset[];
|
|
10
11
|
};
|
|
11
12
|
};
|
|
12
|
-
export declare const useShippingPresetsOptions: ({ platform, user }
|
|
13
|
+
export declare const useShippingPresetsOptions: ({ platform, user }?: UseShippingPresetsOptionsProps, shipment?: SE.SalesOrderShipment) => {
|
|
13
14
|
categoryName: string;
|
|
14
15
|
options: {
|
|
15
16
|
description: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -19,6 +19,9 @@ declare const _default: {
|
|
|
19
19
|
confirmVoid: string;
|
|
20
20
|
viewShipment: string;
|
|
21
21
|
};
|
|
22
|
+
errorMessages: {
|
|
23
|
+
labelIdRequired: string;
|
|
24
|
+
};
|
|
22
25
|
resultMessages: {
|
|
23
26
|
approved: string;
|
|
24
27
|
rejected: string;
|
|
@@ -137,6 +140,8 @@ declare const _default: {
|
|
|
137
140
|
noRates: string;
|
|
138
141
|
salesOrderNotLoaded: string;
|
|
139
142
|
unsupportedAddress: string;
|
|
143
|
+
saveRateFailedMessage: string;
|
|
144
|
+
saveRateFailedTitle: string;
|
|
140
145
|
};
|
|
141
146
|
errorTypes: {
|
|
142
147
|
results: string;
|
|
@@ -164,6 +169,7 @@ declare const _default: {
|
|
|
164
169
|
shipDate: string;
|
|
165
170
|
service: string;
|
|
166
171
|
shipTo: string;
|
|
172
|
+
addShipToAddress: string;
|
|
167
173
|
warehouse: string;
|
|
168
174
|
weight: {
|
|
169
175
|
whole: string;
|
|
@@ -229,21 +235,8 @@ declare const _default: {
|
|
|
229
235
|
};
|
|
230
236
|
};
|
|
231
237
|
"manage-defaults": {
|
|
232
|
-
units: {
|
|
233
|
-
title: string;
|
|
234
|
-
dimensions: {
|
|
235
|
-
title: string;
|
|
236
|
-
standard: string;
|
|
237
|
-
metric: string;
|
|
238
|
-
};
|
|
239
|
-
weight: {
|
|
240
|
-
title: string;
|
|
241
|
-
standard: string;
|
|
242
|
-
g: string;
|
|
243
|
-
kg: string;
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
238
|
label: {
|
|
239
|
+
title: string;
|
|
247
240
|
letter: {
|
|
248
241
|
title: string;
|
|
249
242
|
description: string;
|
|
@@ -256,7 +249,25 @@ declare const _default: {
|
|
|
256
249
|
title: string;
|
|
257
250
|
description: string;
|
|
258
251
|
};
|
|
252
|
+
};
|
|
253
|
+
status: {
|
|
254
|
+
saving: string;
|
|
255
|
+
saved: string;
|
|
256
|
+
savingFailed: string;
|
|
257
|
+
};
|
|
258
|
+
units: {
|
|
259
259
|
title: string;
|
|
260
|
+
dimensions: {
|
|
261
|
+
title: string;
|
|
262
|
+
standard: string;
|
|
263
|
+
metric: string;
|
|
264
|
+
};
|
|
265
|
+
weight: {
|
|
266
|
+
title: string;
|
|
267
|
+
standard: string;
|
|
268
|
+
g: string;
|
|
269
|
+
kg: string;
|
|
270
|
+
};
|
|
260
271
|
};
|
|
261
272
|
};
|
|
262
273
|
"manage-warehouses": {
|
|
@@ -471,6 +482,7 @@ declare const _default: {
|
|
|
471
482
|
autoFundingSettings: string;
|
|
472
483
|
carrier: string;
|
|
473
484
|
carriers: string;
|
|
485
|
+
label: string;
|
|
474
486
|
salesOrder: string;
|
|
475
487
|
shipment: string;
|
|
476
488
|
warehouses: string;
|
|
@@ -501,6 +513,7 @@ declare const _default: {
|
|
|
501
513
|
carriers: string;
|
|
502
514
|
data: string;
|
|
503
515
|
importingSalesOrder: string;
|
|
516
|
+
label: string;
|
|
504
517
|
onboarding: string;
|
|
505
518
|
salesOrder: string;
|
|
506
519
|
shipment: string;
|
|
@@ -527,6 +540,7 @@ declare const _default: {
|
|
|
527
540
|
packageCodes: {
|
|
528
541
|
package: string;
|
|
529
542
|
};
|
|
543
|
+
"powered-by": string;
|
|
530
544
|
schema: {
|
|
531
545
|
optionalLabel: string;
|
|
532
546
|
};
|
package/src/mocks/server.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./extend-matchers";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./to-have-loading-spinner";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MatcherOptions, queryHelpers } from "@testing-library/react";
|
|
2
|
+
import { IconNames } from "@packlink/brands";
|
|
3
|
+
export declare const queryAllByIconName: (container: HTMLElement, iconName: IconNames, options?: MatcherOptions | undefined) => HTMLElement[];
|
|
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]>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { queries } from "@testing-library/react";
|
|
2
|
+
export declare const extendedQueries: {
|
|
3
|
+
queryAllByIconName: (container: HTMLElement, iconName: import("@packlink/giger-theme/dist/lib/Icons").IconNames, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
|
|
4
|
+
queryByIconName: import("@testing-library/react").QueryBy<[dataIdValue: import("@packlink/giger-theme/dist/lib/Icons").IconNames]>;
|
|
5
|
+
getAllByIconName: import("@testing-library/react").GetAllBy<[dataIdValue: import("@packlink/giger-theme/dist/lib/Icons").IconNames]>;
|
|
6
|
+
getByIconName: import("@testing-library/react").GetBy<[dataIdValue: import("@packlink/giger-theme/dist/lib/Icons").IconNames]>;
|
|
7
|
+
findAllByIconName: import("@testing-library/react").FindAllBy<[dataIdValue: import("@packlink/giger-theme/dist/lib/Icons").IconNames]>;
|
|
8
|
+
findByIconName: import("@testing-library/react").FindBy<[dataIdValue: import("@packlink/giger-theme/dist/lib/Icons").IconNames]>;
|
|
9
|
+
getByLabelText<T extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T;
|
|
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
|
+
queryByLabelText<T_2 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T_2 | null;
|
|
12
|
+
queryAllByLabelText<T_3 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T_3[];
|
|
13
|
+
findByLabelText<T_4 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_4>;
|
|
14
|
+
findAllByLabelText<T_5 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_5[]>;
|
|
15
|
+
getByPlaceholderText<T_6 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_6;
|
|
16
|
+
getAllByPlaceholderText<T_7 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_7[];
|
|
17
|
+
queryByPlaceholderText<T_8 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_8 | null;
|
|
18
|
+
queryAllByPlaceholderText<T_9 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_9[];
|
|
19
|
+
findByPlaceholderText<T_10 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_10>;
|
|
20
|
+
findAllByPlaceholderText<T_11 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_11[]>;
|
|
21
|
+
getByText<T_12 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T_12;
|
|
22
|
+
getAllByText<T_13 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T_13[];
|
|
23
|
+
queryByText<T_14 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T_14 | null;
|
|
24
|
+
queryAllByText<T_15 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T_15[];
|
|
25
|
+
findByText<T_16 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_16>;
|
|
26
|
+
findAllByText<T_17 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_17[]>;
|
|
27
|
+
getByAltText<T_18 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_18;
|
|
28
|
+
getAllByAltText<T_19 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_19[];
|
|
29
|
+
queryByAltText<T_20 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_20 | null;
|
|
30
|
+
queryAllByAltText<T_21 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_21[];
|
|
31
|
+
findByAltText<T_22 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_22>;
|
|
32
|
+
findAllByAltText<T_23 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_23[]>;
|
|
33
|
+
getByTitle<T_24 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_24;
|
|
34
|
+
getAllByTitle<T_25 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_25[];
|
|
35
|
+
queryByTitle<T_26 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_26 | null;
|
|
36
|
+
queryAllByTitle<T_27 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_27[];
|
|
37
|
+
findByTitle<T_28 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_28>;
|
|
38
|
+
findAllByTitle<T_29 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_29[]>;
|
|
39
|
+
getByDisplayValue<T_30 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_30;
|
|
40
|
+
getAllByDisplayValue<T_31 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_31[];
|
|
41
|
+
queryByDisplayValue<T_32 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_32 | null;
|
|
42
|
+
queryAllByDisplayValue<T_33 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_33[];
|
|
43
|
+
findByDisplayValue<T_34 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_34>;
|
|
44
|
+
findAllByDisplayValue<T_35 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_35[]>;
|
|
45
|
+
getByRole<T_36 extends HTMLElement = HTMLElement>(container: HTMLElement, role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): T_36;
|
|
46
|
+
getAllByRole<T_37 extends HTMLElement = HTMLElement>(container: HTMLElement, role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): T_37[];
|
|
47
|
+
queryByRole<T_38 extends HTMLElement = HTMLElement>(container: HTMLElement, role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): T_38 | null;
|
|
48
|
+
queryAllByRole<T_39 extends HTMLElement = HTMLElement>(container: HTMLElement, role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): T_39[];
|
|
49
|
+
findByRole<T_40 extends HTMLElement = HTMLElement>(container: HTMLElement, role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_40>;
|
|
50
|
+
findAllByRole<T_41 extends HTMLElement = HTMLElement>(container: HTMLElement, role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_41[]>;
|
|
51
|
+
getByTestId<T_42 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_42;
|
|
52
|
+
getAllByTestId<T_43 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_43[];
|
|
53
|
+
queryByTestId<T_44 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_44 | null;
|
|
54
|
+
queryAllByTestId<T_45 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_45[];
|
|
55
|
+
findByTestId<T_46 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_46>;
|
|
56
|
+
findAllByTestId<T_47 extends HTMLElement = HTMLElement>(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_47[]>;
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./by-icon-name";
|
package/src/testing/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./test-utils";
|