@ariakit/test 0.3.13 → 0.3.15
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/CHANGELOG.md +9 -0
- package/cjs/__chunks/{DWIHFDL3.cjs → 22RRPVHJ.cjs} +2 -2
- package/cjs/__chunks/{GIKCTITR.cjs → 3BQXN3A5.cjs} +3 -3
- package/cjs/__chunks/{W53ATX47.cjs → BIB7E6LN.cjs} +28 -15
- package/cjs/__chunks/{KFHFWZQN.cjs → DJWEA66K.cjs} +20 -18
- package/cjs/__chunks/{ISKAHQPC.cjs → IWPK655Z.cjs} +2 -2
- package/cjs/__chunks/{YH2W6C46.cjs → IZMYJH6V.cjs} +5 -2
- package/cjs/__chunks/{7U3THWRS.cjs → LBY37VXL.cjs} +6 -6
- package/cjs/__chunks/{K2XRALNE.cjs → ZNASNKOZ.cjs} +2 -2
- package/cjs/blur.d.cts +1 -1
- package/cjs/blur.d.ts +1 -1
- package/cjs/click.cjs +4 -4
- package/cjs/focus.cjs +2 -2
- package/cjs/index.cjs +9 -9
- package/cjs/index.d.cts +14 -14
- package/cjs/index.d.ts +14 -14
- package/cjs/mouse-down.cjs +3 -3
- package/cjs/playwright.d.cts +1 -1
- package/cjs/playwright.d.ts +1 -1
- package/cjs/press.cjs +4 -4
- package/cjs/query.cjs +2 -2
- package/cjs/query.d.cts +2 -0
- package/cjs/query.d.ts +2 -0
- package/cjs/react.cjs +9 -9
- package/cjs/react.d.cts +1 -1
- package/cjs/react.d.ts +1 -1
- package/cjs/select.cjs +4 -4
- package/cjs/tap.cjs +5 -5
- package/cjs/type.cjs +3 -3
- package/cjs/type.d.cts +1 -1
- package/cjs/type.d.ts +1 -1
- package/esm/__chunks/{2L7BSF5A.js → 6GDQHEBE.js} +28 -15
- package/esm/__chunks/{SCOSW7X5.js → 7Y66O5SI.js} +5 -5
- package/esm/__chunks/{V6672LI4.js → AVTGTEGG.js} +1 -1
- package/esm/__chunks/{YRF6BLTM.js → DMIPXMWG.js} +15 -13
- package/esm/__chunks/{2TVULPB4.js → MLBZISHH.js} +1 -1
- package/esm/__chunks/{AMV7YAJV.js → QDVGEIL5.js} +1 -1
- package/esm/__chunks/{HZKYXBIJ.js → VD2VFA32.js} +5 -2
- package/esm/__chunks/{H2ALBSTH.js → VVYOYAEF.js} +1 -1
- package/esm/blur.d.ts +1 -1
- package/esm/click.js +3 -3
- package/esm/focus.js +1 -1
- package/esm/index.d.ts +14 -14
- package/esm/index.js +8 -8
- package/esm/mouse-down.js +2 -2
- package/esm/playwright.d.ts +1 -1
- package/esm/press.js +3 -3
- package/esm/query.d.ts +2 -0
- package/esm/query.js +1 -1
- package/esm/react.d.ts +1 -1
- package/esm/react.js +8 -8
- package/esm/select.js +3 -3
- package/esm/tap.js +4 -4
- package/esm/type.d.ts +1 -1
- package/esm/type.js +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _LBY37VXLcjs = require('./LBY37VXL.cjs');
|
|
5
5
|
|
|
6
6
|
// src/tap.ts
|
|
7
7
|
function tap(element, options) {
|
|
8
|
-
return
|
|
8
|
+
return _LBY37VXLcjs.click.call(void 0, element, options, true);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _CYMYDRLScjs = require('./CYMYDRLS.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _IZMYJH6Vcjs = require('./IZMYJH6V.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _VD3ERVOFcjs = require('./VD3ERVOF.cjs');
|
|
@@ -40,11 +40,11 @@ function mouseDown(element, options) {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
if (_focus.isFocusable.call(void 0, element) && getComputedStyle(element).pointerEvents !== "none") {
|
|
43
|
-
await
|
|
43
|
+
await _IZMYJH6Vcjs.focus.call(void 0, element);
|
|
44
44
|
} else if (element.parentElement) {
|
|
45
45
|
const closestFocusable = _focus.getClosestFocusable.call(void 0, element.parentElement);
|
|
46
46
|
if (closestFocusable) {
|
|
47
|
-
await
|
|
47
|
+
await _IZMYJH6Vcjs.focus.call(void 0, closestFocusable);
|
|
48
48
|
} else {
|
|
49
49
|
await _CYMYDRLScjs.blur.call(void 0, );
|
|
50
50
|
}
|
|
@@ -8,11 +8,15 @@ var _ERFCHS75cjs = require('./ERFCHS75.cjs');
|
|
|
8
8
|
var _OVN5OYWKcjs = require('./OVN5OYWK.cjs');
|
|
9
9
|
|
|
10
10
|
// src/query.ts
|
|
11
|
+
var _misc = require('@ariakit/core/utils/misc');
|
|
11
12
|
var _dom = require('@testing-library/dom');
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
function createQueries(container = document.body) {
|
|
14
|
+
return Object.entries(_dom.queries).reduce((queries, [key, query2]) => {
|
|
15
|
+
queries[key] = (...args) => query2(container, ...args);
|
|
16
|
+
return queries;
|
|
17
|
+
}, {});
|
|
18
|
+
}
|
|
19
|
+
var documentQueries = createQueries();
|
|
16
20
|
function matchName(name, accessibleName) {
|
|
17
21
|
if (accessibleName == null)
|
|
18
22
|
return false;
|
|
@@ -42,7 +46,7 @@ function getNameOption(name, includesHidden) {
|
|
|
42
46
|
return matchName(name, label.textContent);
|
|
43
47
|
};
|
|
44
48
|
}
|
|
45
|
-
function createRoleQuery(role) {
|
|
49
|
+
function createRoleQuery(role, queries = documentQueries) {
|
|
46
50
|
const createQuery = (query3) => {
|
|
47
51
|
return (name, options) => {
|
|
48
52
|
return query3(role, _OVN5OYWKcjs.__spreadValues.call(void 0, {
|
|
@@ -85,7 +89,13 @@ function createRoleQuery(role) {
|
|
|
85
89
|
ensure
|
|
86
90
|
});
|
|
87
91
|
}
|
|
88
|
-
function
|
|
92
|
+
function createRoleQueries(queries = documentQueries) {
|
|
93
|
+
return _ERFCHS75cjs.roles.reduce((acc, role) => {
|
|
94
|
+
acc[role] = createRoleQuery(role, queries);
|
|
95
|
+
return acc;
|
|
96
|
+
}, {});
|
|
97
|
+
}
|
|
98
|
+
function createTextQuery(queries = documentQueries) {
|
|
89
99
|
const all = Object.assign(queries.queryAllByText, {
|
|
90
100
|
wait: queries.findAllByText,
|
|
91
101
|
ensure: queries.getAllByText
|
|
@@ -98,7 +108,7 @@ function createTextQuery() {
|
|
|
98
108
|
});
|
|
99
109
|
return Object.assign(queries.queryByText, { all, wait, ensure });
|
|
100
110
|
}
|
|
101
|
-
function createLabeledQuery() {
|
|
111
|
+
function createLabeledQuery(queries = documentQueries) {
|
|
102
112
|
const all = Object.assign(queries.queryAllByLabelText, {
|
|
103
113
|
wait: queries.findAllByLabelText,
|
|
104
114
|
ensure: queries.getAllByLabelText
|
|
@@ -111,14 +121,17 @@ function createLabeledQuery() {
|
|
|
111
121
|
});
|
|
112
122
|
return Object.assign(queries.queryByLabelText, { all, wait, ensure });
|
|
113
123
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
124
|
+
function createQueryObject(queries = documentQueries) {
|
|
125
|
+
return _OVN5OYWKcjs.__spreadProps.call(void 0, _OVN5OYWKcjs.__spreadValues.call(void 0, {}, createRoleQueries(queries)), {
|
|
126
|
+
text: createTextQuery(queries),
|
|
127
|
+
labeled: createLabeledQuery(queries),
|
|
128
|
+
within: (element) => {
|
|
129
|
+
_misc.invariant.call(void 0, element, "Unable to create queries for null element");
|
|
130
|
+
return createQueryObject(createQueries(element));
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
var query = createQueryObject();
|
|
122
135
|
var q = query;
|
|
123
136
|
|
|
124
137
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _ZNASNKOZcjs = require('./ZNASNKOZ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _CYMYDRLScjs = require('./CYMYDRLS.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _IZMYJH6Vcjs = require('./IZMYJH6V.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _VD3ERVOFcjs = require('./VD3ERVOF.cjs');
|
|
@@ -68,7 +68,7 @@ var keyDownMap = {
|
|
|
68
68
|
async Tab(_, { shiftKey }) {
|
|
69
69
|
const nextElement = shiftKey ? _focus.getPreviousTabbable.call(void 0, ) : _focus.getNextTabbable.call(void 0, );
|
|
70
70
|
if (nextElement) {
|
|
71
|
-
await
|
|
71
|
+
await _IZMYJH6Vcjs.focus.call(void 0, nextElement);
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
async Enter(element, options) {
|
|
@@ -85,14 +85,14 @@ var keyDownMap = {
|
|
|
85
85
|
if (_dom.isTextField.call(void 0, element)) {
|
|
86
86
|
const { value, selectionEnd } = element;
|
|
87
87
|
const end = Math.min(value.length, shiftKey ? selectionEnd != null ? selectionEnd : 0 : 0);
|
|
88
|
-
|
|
88
|
+
_dom.setSelectionRange.call(void 0, element, 0, end, "backward");
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
async End(element, { shiftKey }) {
|
|
92
92
|
if (_dom.isTextField.call(void 0, element)) {
|
|
93
93
|
const { value, selectionStart } = element;
|
|
94
94
|
const start = shiftKey ? selectionStart != null ? selectionStart : 0 : value.length;
|
|
95
|
-
|
|
95
|
+
_dom.setSelectionRange.call(void 0, element, start, value.length, "forward");
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
async ArrowLeft(element, { shiftKey }) {
|
|
@@ -102,7 +102,8 @@ var keyDownMap = {
|
|
|
102
102
|
const collapsing = !shiftKey && start !== end;
|
|
103
103
|
const nextStart = Math.max(0, collapsing ? start : start - 1);
|
|
104
104
|
const nextEnd = Math.min(value.length, shiftKey ? end : nextStart);
|
|
105
|
-
|
|
105
|
+
_dom.setSelectionRange.call(void 0,
|
|
106
|
+
element,
|
|
106
107
|
nextStart,
|
|
107
108
|
nextEnd,
|
|
108
109
|
selectionDirection || "backward"
|
|
@@ -116,7 +117,8 @@ var keyDownMap = {
|
|
|
116
117
|
const collapsing = !shiftKey && start !== end;
|
|
117
118
|
const nextEnd = Math.min(value.length, collapsing ? end : end + 1);
|
|
118
119
|
const nextStart = Math.max(0, shiftKey ? start : nextEnd);
|
|
119
|
-
|
|
120
|
+
_dom.setSelectionRange.call(void 0,
|
|
121
|
+
element,
|
|
120
122
|
nextStart,
|
|
121
123
|
nextEnd,
|
|
122
124
|
selectionDirection || "forward"
|
|
@@ -126,14 +128,14 @@ var keyDownMap = {
|
|
|
126
128
|
async ArrowUp(element, { shiftKey }) {
|
|
127
129
|
if (_dom.isTextField.call(void 0, element)) {
|
|
128
130
|
if (!shiftKey) {
|
|
129
|
-
return
|
|
131
|
+
return _dom.setSelectionRange.call(void 0, element, 0, 0);
|
|
130
132
|
} else {
|
|
131
133
|
const { selectionStart, selectionEnd, selectionDirection } = element;
|
|
132
134
|
const [start, end] = [selectionStart != null ? selectionStart : 0, selectionEnd != null ? selectionEnd : 0];
|
|
133
135
|
if (selectionDirection === "forward") {
|
|
134
|
-
|
|
136
|
+
_dom.setSelectionRange.call(void 0, element, start, start);
|
|
135
137
|
} else {
|
|
136
|
-
|
|
138
|
+
_dom.setSelectionRange.call(void 0, element, 0, end, "backward");
|
|
137
139
|
}
|
|
138
140
|
}
|
|
139
141
|
} else if (isNumberInput(element)) {
|
|
@@ -144,14 +146,14 @@ var keyDownMap = {
|
|
|
144
146
|
if (_dom.isTextField.call(void 0, element)) {
|
|
145
147
|
const length = element.value.length;
|
|
146
148
|
if (!shiftKey) {
|
|
147
|
-
|
|
149
|
+
_dom.setSelectionRange.call(void 0, element, length, length);
|
|
148
150
|
} else {
|
|
149
151
|
const { selectionStart, selectionEnd, selectionDirection } = element;
|
|
150
152
|
const [start, end] = [selectionStart != null ? selectionStart : 0, selectionEnd != null ? selectionEnd : 0];
|
|
151
153
|
if (selectionDirection === "backward") {
|
|
152
|
-
|
|
154
|
+
_dom.setSelectionRange.call(void 0, element, end, end);
|
|
153
155
|
} else {
|
|
154
|
-
|
|
156
|
+
_dom.setSelectionRange.call(void 0, element, start, length, "forward");
|
|
155
157
|
}
|
|
156
158
|
}
|
|
157
159
|
} else if (isNumberInput(element)) {
|
|
@@ -181,20 +183,20 @@ function press(key, element, options = {}) {
|
|
|
181
183
|
return;
|
|
182
184
|
if (_dom.isTextField.call(void 0, element)) {
|
|
183
185
|
if (key.length === 1) {
|
|
184
|
-
return
|
|
186
|
+
return _ZNASNKOZcjs.type.call(void 0, key, element, options);
|
|
185
187
|
} else if (key === "Delete") {
|
|
186
|
-
return
|
|
188
|
+
return _ZNASNKOZcjs.type.call(void 0, "\x7F", element, options);
|
|
187
189
|
} else if (key === "Backspace") {
|
|
188
|
-
return
|
|
190
|
+
return _ZNASNKOZcjs.type.call(void 0, "\b", element, options);
|
|
189
191
|
} else if (key === "Enter" && element.tagName === "TEXTAREA") {
|
|
190
|
-
return
|
|
192
|
+
return _ZNASNKOZcjs.type.call(void 0, "\n", element, options);
|
|
191
193
|
}
|
|
192
194
|
}
|
|
193
195
|
if (((_a = element.ownerDocument) == null ? void 0 : _a.activeElement) !== element) {
|
|
194
196
|
if (element.tagName === "BODY") {
|
|
195
197
|
await _CYMYDRLScjs.blur.call(void 0, );
|
|
196
198
|
} else {
|
|
197
|
-
await
|
|
199
|
+
await _IZMYJH6Vcjs.focus.call(void 0, element);
|
|
198
200
|
}
|
|
199
201
|
}
|
|
200
202
|
await _HQ3KUD6Fcjs.sleep.call(void 0, );
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _QCXNVFD7cjs = require('./QCXNVFD7.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _3BQXN3A5cjs = require('./3BQXN3A5.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _UWCNB4SRcjs = require('./UWCNB4SR.cjs');
|
|
@@ -32,7 +32,7 @@ function select(text, element = document.body, options) {
|
|
|
32
32
|
return;
|
|
33
33
|
const document2 = element.ownerDocument;
|
|
34
34
|
await _UWCNB4SRcjs.hover.call(void 0, element, options);
|
|
35
|
-
await
|
|
35
|
+
await _3BQXN3A5cjs.mouseDown.call(void 0, element, options);
|
|
36
36
|
await _VD3ERVOFcjs.dispatch.call(void 0,
|
|
37
37
|
element,
|
|
38
38
|
new Event("selectstart", {
|
|
@@ -18,12 +18,15 @@ function focus(element) {
|
|
|
18
18
|
return;
|
|
19
19
|
if (!_focus.isFocusable.call(void 0, element))
|
|
20
20
|
return;
|
|
21
|
-
const
|
|
21
|
+
const htmlElement = element;
|
|
22
|
+
const activeElement = _dom.getActiveElement.call(void 0,
|
|
23
|
+
htmlElement
|
|
24
|
+
);
|
|
22
25
|
if (activeElement == null ? void 0 : activeElement.dirty) {
|
|
23
26
|
await _VD3ERVOFcjs.dispatch.change(activeElement);
|
|
24
27
|
activeElement.dirty = false;
|
|
25
28
|
}
|
|
26
|
-
|
|
29
|
+
htmlElement.focus();
|
|
27
30
|
await _BXOTZFAKcjs.flushMicrotasks.call(void 0, );
|
|
28
31
|
});
|
|
29
32
|
}
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
var _QCXNVFD7cjs = require('./QCXNVFD7.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _3BQXN3A5cjs = require('./3BQXN3A5.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _UWCNB4SRcjs = require('./UWCNB4SR.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _IZMYJH6Vcjs = require('./IZMYJH6V.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var _VD3ERVOFcjs = require('./VD3ERVOF.cjs');
|
|
@@ -30,7 +30,7 @@ var _focus = require('@ariakit/core/utils/focus');
|
|
|
30
30
|
var _misc = require('@ariakit/core/utils/misc');
|
|
31
31
|
function getClosestLabel(element) {
|
|
32
32
|
if (!_focus.isFocusable.call(void 0, element)) {
|
|
33
|
-
return
|
|
33
|
+
return element.closest("label");
|
|
34
34
|
}
|
|
35
35
|
return null;
|
|
36
36
|
}
|
|
@@ -49,7 +49,7 @@ async function clickLabel(element, options) {
|
|
|
49
49
|
if (input) {
|
|
50
50
|
input.disabled = isInputDisabled;
|
|
51
51
|
if (defaultAllowed && _focus.isFocusable.call(void 0, input)) {
|
|
52
|
-
await
|
|
52
|
+
await _IZMYJH6Vcjs.focus.call(void 0, input);
|
|
53
53
|
await _VD3ERVOFcjs.dispatch.click(input);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -59,7 +59,7 @@ function setSelected(element, selected) {
|
|
|
59
59
|
element.selected = selected;
|
|
60
60
|
}
|
|
61
61
|
async function clickOption(element, eventOptions) {
|
|
62
|
-
const select =
|
|
62
|
+
const select = element.closest("select");
|
|
63
63
|
if (!select) {
|
|
64
64
|
await _VD3ERVOFcjs.dispatch.click(element, eventOptions);
|
|
65
65
|
return;
|
|
@@ -106,7 +106,7 @@ function click(element, options, tap = false) {
|
|
|
106
106
|
if (!_dom.isVisible.call(void 0, element))
|
|
107
107
|
return;
|
|
108
108
|
await _UWCNB4SRcjs.hover.call(void 0, element, options);
|
|
109
|
-
await
|
|
109
|
+
await _3BQXN3A5cjs.mouseDown.call(void 0, element, options);
|
|
110
110
|
while (!_dom.isVisible.call(void 0, element)) {
|
|
111
111
|
if (!element.parentElement)
|
|
112
112
|
return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _IZMYJH6Vcjs = require('./IZMYJH6V.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _VD3ERVOFcjs = require('./VD3ERVOF.cjs');
|
|
@@ -49,7 +49,7 @@ function type(text, element, options = {}) {
|
|
|
49
49
|
return;
|
|
50
50
|
if (!_focus.isFocusable.call(void 0, element))
|
|
51
51
|
return;
|
|
52
|
-
await
|
|
52
|
+
await _IZMYJH6Vcjs.focus.call(void 0, element);
|
|
53
53
|
element.dirty = true;
|
|
54
54
|
const restoreEmailInput = workAroundEmailInput(element);
|
|
55
55
|
for (const char of text) {
|
package/cjs/blur.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DirtiableElement } from "./__utils.
|
|
1
|
+
import type { DirtiableElement } from "./__utils.ts";
|
|
2
2
|
export declare function blur(element?: DirtiableElement | null): Promise<void>;
|
package/cjs/blur.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DirtiableElement } from "./__utils.
|
|
1
|
+
import type { DirtiableElement } from "./__utils.ts";
|
|
2
2
|
export declare function blur(element?: DirtiableElement | null): Promise<void>;
|
package/cjs/click.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _LBY37VXLcjs = require('./__chunks/LBY37VXL.cjs');
|
|
5
5
|
require('./__chunks/QCXNVFD7.cjs');
|
|
6
|
-
require('./__chunks/
|
|
6
|
+
require('./__chunks/3BQXN3A5.cjs');
|
|
7
7
|
require('./__chunks/UWCNB4SR.cjs');
|
|
8
8
|
require('./__chunks/CYMYDRLS.cjs');
|
|
9
|
-
require('./__chunks/
|
|
9
|
+
require('./__chunks/IZMYJH6V.cjs');
|
|
10
10
|
require('./__chunks/VD3ERVOF.cjs');
|
|
11
11
|
require('./__chunks/HQ3KUD6F.cjs');
|
|
12
12
|
require('./__chunks/BXOTZFAK.cjs');
|
|
13
13
|
require('./__chunks/OVN5OYWK.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.click =
|
|
16
|
+
exports.click = _LBY37VXLcjs.click;
|
package/cjs/focus.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _IZMYJH6Vcjs = require('./__chunks/IZMYJH6V.cjs');
|
|
5
5
|
require('./__chunks/VD3ERVOF.cjs');
|
|
6
6
|
require('./__chunks/BXOTZFAK.cjs');
|
|
7
7
|
require('./__chunks/OVN5OYWK.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.focus =
|
|
10
|
+
exports.focus = _IZMYJH6Vcjs.focus;
|
package/cjs/index.cjs
CHANGED
|
@@ -5,39 +5,39 @@ require('./__chunks/I2BROIQW.cjs');
|
|
|
5
5
|
var _LG7B6NOGcjs = require('./__chunks/LG7B6NOG.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _22RRPVHJcjs = require('./__chunks/22RRPVHJ.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _LBY37VXLcjs = require('./__chunks/LBY37VXL.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _IWPK655Zcjs = require('./__chunks/IWPK655Z.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _QCXNVFD7cjs = require('./__chunks/QCXNVFD7.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _3BQXN3A5cjs = require('./__chunks/3BQXN3A5.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _UWCNB4SRcjs = require('./__chunks/UWCNB4SR.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _BIB7E6LNcjs = require('./__chunks/BIB7E6LN.cjs');
|
|
28
28
|
require('./__chunks/ERFCHS75.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _DJWEA66Kcjs = require('./__chunks/DJWEA66K.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _ZNASNKOZcjs = require('./__chunks/ZNASNKOZ.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _CYMYDRLScjs = require('./__chunks/CYMYDRLS.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _IZMYJH6Vcjs = require('./__chunks/IZMYJH6V.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _VD3ERVOFcjs = require('./__chunks/VD3ERVOF.cjs');
|
|
@@ -62,4 +62,4 @@ require('./__chunks/OVN5OYWK.cjs');
|
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
exports.blur = _CYMYDRLScjs.blur; exports.click =
|
|
65
|
+
exports.blur = _CYMYDRLScjs.blur; exports.click = _LBY37VXLcjs.click; exports.dispatch = _VD3ERVOFcjs.dispatch; exports.focus = _IZMYJH6Vcjs.focus; exports.hover = _UWCNB4SRcjs.hover; exports.mouseDown = _3BQXN3A5cjs.mouseDown; exports.mouseUp = _QCXNVFD7cjs.mouseUp; exports.press = _DJWEA66Kcjs.press; exports.q = _BIB7E6LNcjs.q; exports.query = _BIB7E6LNcjs.query; exports.select = _IWPK655Zcjs.select; exports.sleep = _HQ3KUD6Fcjs.sleep; exports.tap = _22RRPVHJcjs.tap; exports.type = _ZNASNKOZcjs.type; exports.waitFor = _LG7B6NOGcjs.waitFor;
|
package/cjs/index.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from "./blur.
|
|
2
|
-
export * from "./click.
|
|
3
|
-
export * from "./dispatch.
|
|
4
|
-
export * from "./focus.
|
|
5
|
-
export * from "./hover.
|
|
6
|
-
export * from "./mouse-down.
|
|
7
|
-
export * from "./mouse-up.
|
|
8
|
-
export * from "./press.
|
|
9
|
-
export * from "./query.
|
|
10
|
-
export * from "./select.
|
|
11
|
-
export * from "./sleep.
|
|
12
|
-
export * from "./tap.
|
|
13
|
-
export * from "./type.
|
|
14
|
-
export * from "./wait-for.
|
|
1
|
+
export * from "./blur.ts";
|
|
2
|
+
export * from "./click.ts";
|
|
3
|
+
export * from "./dispatch.ts";
|
|
4
|
+
export * from "./focus.ts";
|
|
5
|
+
export * from "./hover.ts";
|
|
6
|
+
export * from "./mouse-down.ts";
|
|
7
|
+
export * from "./mouse-up.ts";
|
|
8
|
+
export * from "./press.ts";
|
|
9
|
+
export * from "./query.ts";
|
|
10
|
+
export * from "./select.ts";
|
|
11
|
+
export * from "./sleep.ts";
|
|
12
|
+
export * from "./tap.ts";
|
|
13
|
+
export * from "./type.ts";
|
|
14
|
+
export * from "./wait-for.ts";
|
package/cjs/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from "./blur.
|
|
2
|
-
export * from "./click.
|
|
3
|
-
export * from "./dispatch.
|
|
4
|
-
export * from "./focus.
|
|
5
|
-
export * from "./hover.
|
|
6
|
-
export * from "./mouse-down.
|
|
7
|
-
export * from "./mouse-up.
|
|
8
|
-
export * from "./press.
|
|
9
|
-
export * from "./query.
|
|
10
|
-
export * from "./select.
|
|
11
|
-
export * from "./sleep.
|
|
12
|
-
export * from "./tap.
|
|
13
|
-
export * from "./type.
|
|
14
|
-
export * from "./wait-for.
|
|
1
|
+
export * from "./blur.ts";
|
|
2
|
+
export * from "./click.ts";
|
|
3
|
+
export * from "./dispatch.ts";
|
|
4
|
+
export * from "./focus.ts";
|
|
5
|
+
export * from "./hover.ts";
|
|
6
|
+
export * from "./mouse-down.ts";
|
|
7
|
+
export * from "./mouse-up.ts";
|
|
8
|
+
export * from "./press.ts";
|
|
9
|
+
export * from "./query.ts";
|
|
10
|
+
export * from "./select.ts";
|
|
11
|
+
export * from "./sleep.ts";
|
|
12
|
+
export * from "./tap.ts";
|
|
13
|
+
export * from "./type.ts";
|
|
14
|
+
export * from "./wait-for.ts";
|
package/cjs/mouse-down.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _3BQXN3A5cjs = require('./__chunks/3BQXN3A5.cjs');
|
|
5
5
|
require('./__chunks/CYMYDRLS.cjs');
|
|
6
|
-
require('./__chunks/
|
|
6
|
+
require('./__chunks/IZMYJH6V.cjs');
|
|
7
7
|
require('./__chunks/VD3ERVOF.cjs');
|
|
8
8
|
require('./__chunks/BXOTZFAK.cjs');
|
|
9
9
|
require('./__chunks/OVN5OYWK.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.mouseDown =
|
|
12
|
+
exports.mouseDown = _3BQXN3A5cjs.mouseDown;
|
package/cjs/playwright.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FrameLocator, Locator, Page } from "@playwright/test";
|
|
2
|
-
import type { AriaRole } from "./__aria-role.
|
|
2
|
+
import type { AriaRole } from "./__aria-role.ts";
|
|
3
3
|
type RoleQuery = (name?: string | RegExp, options?: Parameters<Page["getByRole"]>[1]) => Locator;
|
|
4
4
|
type RoleQueries = Record<AriaRole, RoleQuery>;
|
|
5
5
|
export declare function query(locator: Page | Locator | FrameLocator): RoleQueries;
|
package/cjs/playwright.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FrameLocator, Locator, Page } from "@playwright/test";
|
|
2
|
-
import type { AriaRole } from "./__aria-role.
|
|
2
|
+
import type { AriaRole } from "./__aria-role.ts";
|
|
3
3
|
type RoleQuery = (name?: string | RegExp, options?: Parameters<Page["getByRole"]>[1]) => Locator;
|
|
4
4
|
type RoleQueries = Record<AriaRole, RoleQuery>;
|
|
5
5
|
export declare function query(locator: Page | Locator | FrameLocator): RoleQueries;
|
package/cjs/press.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./__chunks/
|
|
4
|
+
var _DJWEA66Kcjs = require('./__chunks/DJWEA66K.cjs');
|
|
5
|
+
require('./__chunks/ZNASNKOZ.cjs');
|
|
6
6
|
require('./__chunks/CYMYDRLS.cjs');
|
|
7
|
-
require('./__chunks/
|
|
7
|
+
require('./__chunks/IZMYJH6V.cjs');
|
|
8
8
|
require('./__chunks/VD3ERVOF.cjs');
|
|
9
9
|
require('./__chunks/HQ3KUD6F.cjs');
|
|
10
10
|
require('./__chunks/BXOTZFAK.cjs');
|
|
11
11
|
require('./__chunks/OVN5OYWK.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.press =
|
|
14
|
+
exports.press = _DJWEA66Kcjs.press;
|
package/cjs/query.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _BIB7E6LNcjs = require('./__chunks/BIB7E6LN.cjs');
|
|
6
6
|
require('./__chunks/ERFCHS75.cjs');
|
|
7
7
|
require('./__chunks/OVN5OYWK.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.q =
|
|
11
|
+
exports.q = _BIB7E6LNcjs.q; exports.query = _BIB7E6LNcjs.query;
|
package/cjs/query.d.cts
CHANGED
|
@@ -24,6 +24,7 @@ export declare const query: {
|
|
|
24
24
|
all: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
+
within: (element?: HTMLElement | null) => any;
|
|
27
28
|
alert: ((name?: string | RegExp, options?: ByRoleOptions) => HTMLElement | null) & {
|
|
28
29
|
includesHidden: (name?: string | RegExp, options?: ByRoleOptions) => HTMLElement | null;
|
|
29
30
|
all: ((name?: string | RegExp, options?: ByRoleOptions) => HTMLElement[]) & {
|
|
@@ -2018,6 +2019,7 @@ export declare const q: {
|
|
|
2018
2019
|
all: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
|
|
2019
2020
|
};
|
|
2020
2021
|
};
|
|
2022
|
+
within: (element?: HTMLElement | null) => any;
|
|
2021
2023
|
alert: ((name?: string | RegExp, options?: ByRoleOptions) => HTMLElement | null) & {
|
|
2022
2024
|
includesHidden: (name?: string | RegExp, options?: ByRoleOptions) => HTMLElement | null;
|
|
2023
2025
|
all: ((name?: string | RegExp, options?: ByRoleOptions) => HTMLElement[]) & {
|
package/cjs/query.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export declare const query: {
|
|
|
24
24
|
all: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
+
within: (element?: HTMLElement | null) => any;
|
|
27
28
|
alert: ((name?: string | RegExp, options?: ByRoleOptions) => HTMLElement | null) & {
|
|
28
29
|
includesHidden: (name?: string | RegExp, options?: ByRoleOptions) => HTMLElement | null;
|
|
29
30
|
all: ((name?: string | RegExp, options?: ByRoleOptions) => HTMLElement[]) & {
|
|
@@ -2018,6 +2019,7 @@ export declare const q: {
|
|
|
2018
2019
|
all: (<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => T_9[]) & ((id: import("@testing-library/dom").Matcher, options?: import("@testing-library/dom").SelectorMatcherOptions | undefined) => HTMLElement[]);
|
|
2019
2020
|
};
|
|
2020
2021
|
};
|
|
2022
|
+
within: (element?: HTMLElement | null) => any;
|
|
2021
2023
|
alert: ((name?: string | RegExp, options?: ByRoleOptions) => HTMLElement | null) & {
|
|
2022
2024
|
includesHidden: (name?: string | RegExp, options?: ByRoleOptions) => HTMLElement | null;
|
|
2023
2025
|
all: ((name?: string | RegExp, options?: ByRoleOptions) => HTMLElement[]) & {
|