@testing-library/user-event 14.0.0-alpha.9 → 14.0.0-beta.4

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.
Files changed (140) hide show
  1. package/dist/index.d.ts +1110 -8
  2. package/dist/index.js +2824 -15
  3. package/dist/package.json +1 -0
  4. package/package.json +6 -30
  5. package/dist/clear.d.ts +0 -2
  6. package/dist/clear.js +0 -46
  7. package/dist/click.d.ts +0 -9
  8. package/dist/click.js +0 -62
  9. package/dist/document/index.d.ts +0 -10
  10. package/dist/document/index.js +0 -100
  11. package/dist/document/interceptor.d.ts +0 -15
  12. package/dist/document/interceptor.js +0 -37
  13. package/dist/document/selection.d.ts +0 -27
  14. package/dist/document/selection.js +0 -90
  15. package/dist/document/value.d.ts +0 -18
  16. package/dist/document/value.js +0 -77
  17. package/dist/hover.d.ts +0 -4
  18. package/dist/hover.js +0 -43
  19. package/dist/keyboard/getEventProps.d.ts +0 -17
  20. package/dist/keyboard/getEventProps.js +0 -33
  21. package/dist/keyboard/getNextKeyDef.d.ts +0 -19
  22. package/dist/keyboard/getNextKeyDef.js +0 -85
  23. package/dist/keyboard/index.d.ts +0 -19
  24. package/dist/keyboard/index.js +0 -78
  25. package/dist/keyboard/keyMap.d.ts +0 -5
  26. package/dist/keyboard/keyMap.js +0 -143
  27. package/dist/keyboard/keyboardImplementation.d.ts +0 -3
  28. package/dist/keyboard/keyboardImplementation.js +0 -169
  29. package/dist/keyboard/plugins/arrow.d.ts +0 -6
  30. package/dist/keyboard/plugins/arrow.js +0 -28
  31. package/dist/keyboard/plugins/character.d.ts +0 -5
  32. package/dist/keyboard/plugins/character.js +0 -166
  33. package/dist/keyboard/plugins/combination.d.ts +0 -5
  34. package/dist/keyboard/plugins/combination.js +0 -17
  35. package/dist/keyboard/plugins/control.d.ts +0 -6
  36. package/dist/keyboard/plugins/control.js +0 -52
  37. package/dist/keyboard/plugins/functional.d.ts +0 -11
  38. package/dist/keyboard/plugins/functional.js +0 -140
  39. package/dist/keyboard/plugins/index.d.ts +0 -8
  40. package/dist/keyboard/plugins/index.js +0 -42
  41. package/dist/keyboard/shared/fireChangeForInputTimeIfValid.d.ts +0 -3
  42. package/dist/keyboard/shared/fireChangeForInputTimeIfValid.js +0 -20
  43. package/dist/keyboard/shared/index.d.ts +0 -1
  44. package/dist/keyboard/shared/index.js +0 -18
  45. package/dist/keyboard/specialCharMap.d.ts +0 -22
  46. package/dist/keyboard/specialCharMap.js +0 -30
  47. package/dist/keyboard/types.d.ts +0 -80
  48. package/dist/keyboard/types.js +0 -19
  49. package/dist/paste.d.ts +0 -7
  50. package/dist/paste.js +0 -60
  51. package/dist/pointer/index.d.ts +0 -18
  52. package/dist/pointer/index.js +0 -90
  53. package/dist/pointer/keyMap.d.ts +0 -2
  54. package/dist/pointer/keyMap.js +0 -29
  55. package/dist/pointer/parseKeyDef.d.ts +0 -6
  56. package/dist/pointer/parseKeyDef.js +0 -36
  57. package/dist/pointer/pointerAction.d.ts +0 -6
  58. package/dist/pointer/pointerAction.js +0 -52
  59. package/dist/pointer/pointerMove.d.ts +0 -5
  60. package/dist/pointer/pointerMove.js +0 -136
  61. package/dist/pointer/pointerPress.d.ts +0 -7
  62. package/dist/pointer/pointerPress.js +0 -330
  63. package/dist/pointer/resolveSelectionTarget.d.ts +0 -5
  64. package/dist/pointer/resolveSelectionTarget.js +0 -75
  65. package/dist/pointer/types.d.ts +0 -72
  66. package/dist/pointer/types.js +0 -1
  67. package/dist/selectOptions.d.ts +0 -4
  68. package/dist/selectOptions.js +0 -142
  69. package/dist/setup.d.ts +0 -92
  70. package/dist/setup.js +0 -203
  71. package/dist/tab.d.ts +0 -5
  72. package/dist/tab.js +0 -12
  73. package/dist/type.d.ts +0 -14
  74. package/dist/type.js +0 -74
  75. package/dist/upload.d.ts +0 -10
  76. package/dist/upload.js +0 -92
  77. package/dist/utils/click/isClickableInput.d.ts +0 -1
  78. package/dist/utils/click/isClickableInput.js +0 -14
  79. package/dist/utils/edit/buildTimeValue.d.ts +0 -1
  80. package/dist/utils/edit/buildTimeValue.js +0 -44
  81. package/dist/utils/edit/calculateNewValue.d.ts +0 -16
  82. package/dist/utils/edit/calculateNewValue.js +0 -50
  83. package/dist/utils/edit/fireInputEvent.d.ts +0 -11
  84. package/dist/utils/edit/fireInputEvent.js +0 -65
  85. package/dist/utils/edit/getValue.d.ts +0 -1
  86. package/dist/utils/edit/getValue.js +0 -23
  87. package/dist/utils/edit/isContentEditable.d.ts +0 -7
  88. package/dist/utils/edit/isContentEditable.js +0 -25
  89. package/dist/utils/edit/isEditable.d.ts +0 -25
  90. package/dist/utils/edit/isEditable.js +0 -42
  91. package/dist/utils/edit/isValidDateValue.d.ts +0 -3
  92. package/dist/utils/edit/isValidDateValue.js +0 -12
  93. package/dist/utils/edit/isValidInputTimeValue.d.ts +0 -3
  94. package/dist/utils/edit/isValidInputTimeValue.js +0 -12
  95. package/dist/utils/edit/maxLength.d.ts +0 -1
  96. package/dist/utils/edit/maxLength.js +0 -50
  97. package/dist/utils/edit/prepareInput.d.ts +0 -4
  98. package/dist/utils/edit/prepareInput.js +0 -60
  99. package/dist/utils/focus/blur.d.ts +0 -2
  100. package/dist/utils/focus/blur.js +0 -19
  101. package/dist/utils/focus/focus.d.ts +0 -2
  102. package/dist/utils/focus/focus.js +0 -22
  103. package/dist/utils/focus/getActiveElement.d.ts +0 -1
  104. package/dist/utils/focus/getActiveElement.js +0 -26
  105. package/dist/utils/focus/getTabDestination.d.ts +0 -1
  106. package/dist/utils/focus/getTabDestination.js +0 -71
  107. package/dist/utils/focus/isFocusable.d.ts +0 -1
  108. package/dist/utils/focus/isFocusable.js +0 -12
  109. package/dist/utils/focus/selectAll.d.ts +0 -4
  110. package/dist/utils/focus/selectAll.js +0 -38
  111. package/dist/utils/focus/selection.d.ts +0 -42
  112. package/dist/utils/focus/selection.js +0 -190
  113. package/dist/utils/focus/selector.d.ts +0 -1
  114. package/dist/utils/focus/selector.js +0 -8
  115. package/dist/utils/index.d.ts +0 -31
  116. package/dist/utils/index.js +0 -408
  117. package/dist/utils/keyDef/readNextDescriptor.d.ts +0 -19
  118. package/dist/utils/keyDef/readNextDescriptor.js +0 -102
  119. package/dist/utils/misc/eventWrapper.d.ts +0 -1
  120. package/dist/utils/misc/eventWrapper.js +0 -16
  121. package/dist/utils/misc/findClosest.d.ts +0 -1
  122. package/dist/utils/misc/findClosest.js +0 -20
  123. package/dist/utils/misc/hasFormSubmit.d.ts +0 -1
  124. package/dist/utils/misc/hasFormSubmit.js +0 -10
  125. package/dist/utils/misc/hasPointerEvents.d.ts +0 -15
  126. package/dist/utils/misc/hasPointerEvents.js +0 -24
  127. package/dist/utils/misc/isDescendantOrSelf.d.ts +0 -1
  128. package/dist/utils/misc/isDescendantOrSelf.js +0 -20
  129. package/dist/utils/misc/isDisabled.d.ts +0 -1
  130. package/dist/utils/misc/isDisabled.js +0 -12
  131. package/dist/utils/misc/isElementType.d.ts +0 -5
  132. package/dist/utils/misc/isElementType.js +0 -24
  133. package/dist/utils/misc/isVisible.d.ts +0 -1
  134. package/dist/utils/misc/isVisible.js +0 -24
  135. package/dist/utils/misc/wait.d.ts +0 -1
  136. package/dist/utils/misc/wait.js +0 -10
  137. package/dist/utils/pointer/firePointerEvents.d.ts +0 -25
  138. package/dist/utils/pointer/firePointerEvents.js +0 -112
  139. package/dist/utils/pointer/mouseButtons.d.ts +0 -12
  140. package/dist/utils/pointer/mouseButtons.js +0 -45
@@ -1,190 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getInputRange = getInputRange;
7
- exports.hasOwnSelection = hasOwnSelection;
8
- exports.modifySelection = modifySelection;
9
- exports.setSelection = setSelection;
10
- exports.setSelectionRange = setSelectionRange;
11
- exports.updateSelectionOnFocus = updateSelectionOnFocus;
12
-
13
- var _isElementType = require("../misc/isElementType");
14
-
15
- var _document = require("../../document");
16
-
17
- var _isEditable = require("../edit/isEditable");
18
-
19
- var _isContentEditable = require("../edit/isContentEditable");
20
-
21
- /**
22
- * Backward-compatible selection.
23
- *
24
- * Handles input elements and contenteditable if it only contains a single text node.
25
- */
26
- function setSelectionRange(element, anchorOffset, focusOffset) {
27
- var _element$firstChild;
28
-
29
- if (hasOwnSelection(element)) {
30
- return setSelection({
31
- focusNode: element,
32
- anchorOffset,
33
- focusOffset
34
- });
35
- }
36
- /* istanbul ignore else */
37
-
38
-
39
- if ((0, _isContentEditable.isContentEditable)(element) && ((_element$firstChild = element.firstChild) == null ? void 0 : _element$firstChild.nodeType) === 3) {
40
- return setSelection({
41
- focusNode: element.firstChild,
42
- anchorOffset,
43
- focusOffset
44
- });
45
- }
46
- /* istanbul ignore next */
47
-
48
-
49
- throw new Error('Not implemented. The result of this interaction is unreliable.');
50
- }
51
- /**
52
- * Determine if the element has its own selection implementation
53
- * and does not interact with the Document Selection API.
54
- */
55
-
56
-
57
- function hasOwnSelection(node) {
58
- return isElement(node) && ((0, _isElementType.isElementType)(node, 'textarea') || (0, _isElementType.isElementType)(node, 'input') && node.type in _isEditable.editableInputTypes);
59
- }
60
-
61
- function isElement(node) {
62
- return node.nodeType === 1;
63
- }
64
- /**
65
- * Determine which selection logic and selection ranges to consider.
66
- */
67
-
68
-
69
- function getTargetTypeAndSelection(node) {
70
- const element = getElement(node);
71
-
72
- if (element && hasOwnSelection(element)) {
73
- return {
74
- type: 'input',
75
- selection: (0, _document.getUISelection)(element)
76
- };
77
- }
78
-
79
- const selection = element == null ? void 0 : element.ownerDocument.getSelection(); // It is possible to extend a single-range selection into a contenteditable.
80
- // This results in the range acting like a range outside of contenteditable.
81
-
82
- const isCE = (0, _isContentEditable.getContentEditable)(node) && (selection == null ? void 0 : selection.anchorNode) && (0, _isContentEditable.getContentEditable)(selection.anchorNode);
83
- return {
84
- type: isCE ? 'contenteditable' : 'default',
85
- selection
86
- };
87
- }
88
-
89
- function getElement(node) {
90
- return node.nodeType === 1 ? node : node.parentElement;
91
- }
92
- /**
93
- * Reset the Document Selection when moving focus into an element
94
- * with own selection implementation.
95
- */
96
-
97
-
98
- function updateSelectionOnFocus(element) {
99
- const selection = element.ownerDocument.getSelection();
100
- /* istanbul ignore if */
101
-
102
- if (!(selection != null && selection.focusNode)) {
103
- return;
104
- } // If the focus moves inside an element with own selection implementation,
105
- // the document selection will be this element.
106
- // But if the focused element is inside a contenteditable,
107
- // 1) a collapsed selection will be retained.
108
- // 2) other selections will be replaced by a cursor
109
- // 2.a) at the start of the first child if it is a text node
110
- // 2.b) at the start of the contenteditable.
111
-
112
-
113
- if (hasOwnSelection(element)) {
114
- const contenteditable = (0, _isContentEditable.getContentEditable)(selection.focusNode);
115
-
116
- if (contenteditable) {
117
- if (!selection.isCollapsed) {
118
- var _contenteditable$firs;
119
-
120
- const focusNode = ((_contenteditable$firs = contenteditable.firstChild) == null ? void 0 : _contenteditable$firs.nodeType) === 3 ? contenteditable.firstChild : contenteditable;
121
- selection.setBaseAndExtent(focusNode, 0, focusNode, 0);
122
- }
123
- } else {
124
- selection.setBaseAndExtent(element, 0, element, 0);
125
- }
126
- }
127
- }
128
- /**
129
- * Get the range that would be overwritten by input.
130
- */
131
-
132
-
133
- function getInputRange(focusNode) {
134
- const typeAndSelection = getTargetTypeAndSelection(focusNode);
135
-
136
- if (typeAndSelection.type === 'input') {
137
- return typeAndSelection.selection;
138
- } else if (typeAndSelection.type === 'contenteditable') {
139
- var _typeAndSelection$sel;
140
-
141
- // Multi-range on contenteditable edits the first selection instead of the last
142
- return (_typeAndSelection$sel = typeAndSelection.selection) == null ? void 0 : _typeAndSelection$sel.getRangeAt(0);
143
- }
144
- }
145
- /**
146
- * Extend/shrink the selection like with Shift+Arrows or Shift+Mouse
147
- */
148
-
149
-
150
- function modifySelection({
151
- focusNode,
152
- focusOffset
153
- }) {
154
- var _focusNode$ownerDocum, _focusNode$ownerDocum2;
155
-
156
- const typeAndSelection = getTargetTypeAndSelection(focusNode);
157
-
158
- if (typeAndSelection.type === 'input') {
159
- return (0, _document.setUISelection)(focusNode, {
160
- anchorOffset: typeAndSelection.selection.anchorOffset,
161
- focusOffset
162
- }, 'modify');
163
- }
164
-
165
- (_focusNode$ownerDocum = focusNode.ownerDocument) == null ? void 0 : (_focusNode$ownerDocum2 = _focusNode$ownerDocum.getSelection()) == null ? void 0 : _focusNode$ownerDocum2.extend(focusNode, focusOffset);
166
- }
167
- /**
168
- * Set the selection
169
- */
170
-
171
-
172
- function setSelection({
173
- focusNode,
174
- focusOffset,
175
- anchorNode = focusNode,
176
- anchorOffset = focusOffset
177
- }) {
178
- var _anchorNode$ownerDocu, _anchorNode$ownerDocu2;
179
-
180
- const typeAndSelection = getTargetTypeAndSelection(focusNode);
181
-
182
- if (typeAndSelection.type === 'input') {
183
- return (0, _document.setUISelection)(focusNode, {
184
- anchorOffset,
185
- focusOffset
186
- });
187
- }
188
-
189
- (_anchorNode$ownerDocu = anchorNode.ownerDocument) == null ? void 0 : (_anchorNode$ownerDocu2 = _anchorNode$ownerDocu.getSelection()) == null ? void 0 : _anchorNode$ownerDocu2.setBaseAndExtent(anchorNode, anchorOffset, focusNode, focusOffset);
190
- }
@@ -1 +0,0 @@
1
- export declare const FOCUSABLE_SELECTOR: string;
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.FOCUSABLE_SELECTOR = void 0;
7
- const FOCUSABLE_SELECTOR = ['input:not([type=hidden]):not([disabled])', 'button:not([disabled])', 'select:not([disabled])', 'textarea:not([disabled])', '[contenteditable=""]', '[contenteditable="true"]', 'a[href]', '[tabindex]:not([disabled])'].join(', ');
8
- exports.FOCUSABLE_SELECTOR = FOCUSABLE_SELECTOR;
@@ -1,31 +0,0 @@
1
- export * from './click/isClickableInput';
2
- export * from './edit/buildTimeValue';
3
- export * from './edit/calculateNewValue';
4
- export * from './edit/fireInputEvent';
5
- export * from './edit/getValue';
6
- export * from './edit/isContentEditable';
7
- export * from './edit/isEditable';
8
- export * from './edit/isValidDateValue';
9
- export * from './edit/isValidInputTimeValue';
10
- export * from './edit/maxLength';
11
- export * from './edit/prepareInput';
12
- export * from './focus/blur';
13
- export * from './focus/focus';
14
- export * from './focus/getActiveElement';
15
- export * from './focus/getTabDestination';
16
- export * from './focus/isFocusable';
17
- export * from './focus/selectAll';
18
- export * from './focus/selection';
19
- export * from './focus/selector';
20
- export * from './keyDef/readNextDescriptor';
21
- export * from './misc/eventWrapper';
22
- export * from './misc/findClosest';
23
- export * from './misc/isDescendantOrSelf';
24
- export * from './misc/isElementType';
25
- export * from './misc/isVisible';
26
- export * from './misc/isDisabled';
27
- export * from './misc/wait';
28
- export * from './misc/hasPointerEvents';
29
- export * from './misc/hasFormSubmit';
30
- export * from './pointer/firePointerEvents';
31
- export * from './pointer/mouseButtons';
@@ -1,408 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
-
7
- var _isClickableInput = require("./click/isClickableInput");
8
-
9
- Object.keys(_isClickableInput).forEach(function (key) {
10
- if (key === "default" || key === "__esModule") return;
11
- if (key in exports && exports[key] === _isClickableInput[key]) return;
12
- Object.defineProperty(exports, key, {
13
- enumerable: true,
14
- get: function () {
15
- return _isClickableInput[key];
16
- }
17
- });
18
- });
19
-
20
- var _buildTimeValue = require("./edit/buildTimeValue");
21
-
22
- Object.keys(_buildTimeValue).forEach(function (key) {
23
- if (key === "default" || key === "__esModule") return;
24
- if (key in exports && exports[key] === _buildTimeValue[key]) return;
25
- Object.defineProperty(exports, key, {
26
- enumerable: true,
27
- get: function () {
28
- return _buildTimeValue[key];
29
- }
30
- });
31
- });
32
-
33
- var _calculateNewValue = require("./edit/calculateNewValue");
34
-
35
- Object.keys(_calculateNewValue).forEach(function (key) {
36
- if (key === "default" || key === "__esModule") return;
37
- if (key in exports && exports[key] === _calculateNewValue[key]) return;
38
- Object.defineProperty(exports, key, {
39
- enumerable: true,
40
- get: function () {
41
- return _calculateNewValue[key];
42
- }
43
- });
44
- });
45
-
46
- var _fireInputEvent = require("./edit/fireInputEvent");
47
-
48
- Object.keys(_fireInputEvent).forEach(function (key) {
49
- if (key === "default" || key === "__esModule") return;
50
- if (key in exports && exports[key] === _fireInputEvent[key]) return;
51
- Object.defineProperty(exports, key, {
52
- enumerable: true,
53
- get: function () {
54
- return _fireInputEvent[key];
55
- }
56
- });
57
- });
58
-
59
- var _getValue = require("./edit/getValue");
60
-
61
- Object.keys(_getValue).forEach(function (key) {
62
- if (key === "default" || key === "__esModule") return;
63
- if (key in exports && exports[key] === _getValue[key]) return;
64
- Object.defineProperty(exports, key, {
65
- enumerable: true,
66
- get: function () {
67
- return _getValue[key];
68
- }
69
- });
70
- });
71
-
72
- var _isContentEditable = require("./edit/isContentEditable");
73
-
74
- Object.keys(_isContentEditable).forEach(function (key) {
75
- if (key === "default" || key === "__esModule") return;
76
- if (key in exports && exports[key] === _isContentEditable[key]) return;
77
- Object.defineProperty(exports, key, {
78
- enumerable: true,
79
- get: function () {
80
- return _isContentEditable[key];
81
- }
82
- });
83
- });
84
-
85
- var _isEditable = require("./edit/isEditable");
86
-
87
- Object.keys(_isEditable).forEach(function (key) {
88
- if (key === "default" || key === "__esModule") return;
89
- if (key in exports && exports[key] === _isEditable[key]) return;
90
- Object.defineProperty(exports, key, {
91
- enumerable: true,
92
- get: function () {
93
- return _isEditable[key];
94
- }
95
- });
96
- });
97
-
98
- var _isValidDateValue = require("./edit/isValidDateValue");
99
-
100
- Object.keys(_isValidDateValue).forEach(function (key) {
101
- if (key === "default" || key === "__esModule") return;
102
- if (key in exports && exports[key] === _isValidDateValue[key]) return;
103
- Object.defineProperty(exports, key, {
104
- enumerable: true,
105
- get: function () {
106
- return _isValidDateValue[key];
107
- }
108
- });
109
- });
110
-
111
- var _isValidInputTimeValue = require("./edit/isValidInputTimeValue");
112
-
113
- Object.keys(_isValidInputTimeValue).forEach(function (key) {
114
- if (key === "default" || key === "__esModule") return;
115
- if (key in exports && exports[key] === _isValidInputTimeValue[key]) return;
116
- Object.defineProperty(exports, key, {
117
- enumerable: true,
118
- get: function () {
119
- return _isValidInputTimeValue[key];
120
- }
121
- });
122
- });
123
-
124
- var _maxLength = require("./edit/maxLength");
125
-
126
- Object.keys(_maxLength).forEach(function (key) {
127
- if (key === "default" || key === "__esModule") return;
128
- if (key in exports && exports[key] === _maxLength[key]) return;
129
- Object.defineProperty(exports, key, {
130
- enumerable: true,
131
- get: function () {
132
- return _maxLength[key];
133
- }
134
- });
135
- });
136
-
137
- var _prepareInput = require("./edit/prepareInput");
138
-
139
- Object.keys(_prepareInput).forEach(function (key) {
140
- if (key === "default" || key === "__esModule") return;
141
- if (key in exports && exports[key] === _prepareInput[key]) return;
142
- Object.defineProperty(exports, key, {
143
- enumerable: true,
144
- get: function () {
145
- return _prepareInput[key];
146
- }
147
- });
148
- });
149
-
150
- var _blur = require("./focus/blur");
151
-
152
- Object.keys(_blur).forEach(function (key) {
153
- if (key === "default" || key === "__esModule") return;
154
- if (key in exports && exports[key] === _blur[key]) return;
155
- Object.defineProperty(exports, key, {
156
- enumerable: true,
157
- get: function () {
158
- return _blur[key];
159
- }
160
- });
161
- });
162
-
163
- var _focus = require("./focus/focus");
164
-
165
- Object.keys(_focus).forEach(function (key) {
166
- if (key === "default" || key === "__esModule") return;
167
- if (key in exports && exports[key] === _focus[key]) return;
168
- Object.defineProperty(exports, key, {
169
- enumerable: true,
170
- get: function () {
171
- return _focus[key];
172
- }
173
- });
174
- });
175
-
176
- var _getActiveElement = require("./focus/getActiveElement");
177
-
178
- Object.keys(_getActiveElement).forEach(function (key) {
179
- if (key === "default" || key === "__esModule") return;
180
- if (key in exports && exports[key] === _getActiveElement[key]) return;
181
- Object.defineProperty(exports, key, {
182
- enumerable: true,
183
- get: function () {
184
- return _getActiveElement[key];
185
- }
186
- });
187
- });
188
-
189
- var _getTabDestination = require("./focus/getTabDestination");
190
-
191
- Object.keys(_getTabDestination).forEach(function (key) {
192
- if (key === "default" || key === "__esModule") return;
193
- if (key in exports && exports[key] === _getTabDestination[key]) return;
194
- Object.defineProperty(exports, key, {
195
- enumerable: true,
196
- get: function () {
197
- return _getTabDestination[key];
198
- }
199
- });
200
- });
201
-
202
- var _isFocusable = require("./focus/isFocusable");
203
-
204
- Object.keys(_isFocusable).forEach(function (key) {
205
- if (key === "default" || key === "__esModule") return;
206
- if (key in exports && exports[key] === _isFocusable[key]) return;
207
- Object.defineProperty(exports, key, {
208
- enumerable: true,
209
- get: function () {
210
- return _isFocusable[key];
211
- }
212
- });
213
- });
214
-
215
- var _selectAll = require("./focus/selectAll");
216
-
217
- Object.keys(_selectAll).forEach(function (key) {
218
- if (key === "default" || key === "__esModule") return;
219
- if (key in exports && exports[key] === _selectAll[key]) return;
220
- Object.defineProperty(exports, key, {
221
- enumerable: true,
222
- get: function () {
223
- return _selectAll[key];
224
- }
225
- });
226
- });
227
-
228
- var _selection = require("./focus/selection");
229
-
230
- Object.keys(_selection).forEach(function (key) {
231
- if (key === "default" || key === "__esModule") return;
232
- if (key in exports && exports[key] === _selection[key]) return;
233
- Object.defineProperty(exports, key, {
234
- enumerable: true,
235
- get: function () {
236
- return _selection[key];
237
- }
238
- });
239
- });
240
-
241
- var _selector = require("./focus/selector");
242
-
243
- Object.keys(_selector).forEach(function (key) {
244
- if (key === "default" || key === "__esModule") return;
245
- if (key in exports && exports[key] === _selector[key]) return;
246
- Object.defineProperty(exports, key, {
247
- enumerable: true,
248
- get: function () {
249
- return _selector[key];
250
- }
251
- });
252
- });
253
-
254
- var _readNextDescriptor = require("./keyDef/readNextDescriptor");
255
-
256
- Object.keys(_readNextDescriptor).forEach(function (key) {
257
- if (key === "default" || key === "__esModule") return;
258
- if (key in exports && exports[key] === _readNextDescriptor[key]) return;
259
- Object.defineProperty(exports, key, {
260
- enumerable: true,
261
- get: function () {
262
- return _readNextDescriptor[key];
263
- }
264
- });
265
- });
266
-
267
- var _eventWrapper = require("./misc/eventWrapper");
268
-
269
- Object.keys(_eventWrapper).forEach(function (key) {
270
- if (key === "default" || key === "__esModule") return;
271
- if (key in exports && exports[key] === _eventWrapper[key]) return;
272
- Object.defineProperty(exports, key, {
273
- enumerable: true,
274
- get: function () {
275
- return _eventWrapper[key];
276
- }
277
- });
278
- });
279
-
280
- var _findClosest = require("./misc/findClosest");
281
-
282
- Object.keys(_findClosest).forEach(function (key) {
283
- if (key === "default" || key === "__esModule") return;
284
- if (key in exports && exports[key] === _findClosest[key]) return;
285
- Object.defineProperty(exports, key, {
286
- enumerable: true,
287
- get: function () {
288
- return _findClosest[key];
289
- }
290
- });
291
- });
292
-
293
- var _isDescendantOrSelf = require("./misc/isDescendantOrSelf");
294
-
295
- Object.keys(_isDescendantOrSelf).forEach(function (key) {
296
- if (key === "default" || key === "__esModule") return;
297
- if (key in exports && exports[key] === _isDescendantOrSelf[key]) return;
298
- Object.defineProperty(exports, key, {
299
- enumerable: true,
300
- get: function () {
301
- return _isDescendantOrSelf[key];
302
- }
303
- });
304
- });
305
-
306
- var _isElementType = require("./misc/isElementType");
307
-
308
- Object.keys(_isElementType).forEach(function (key) {
309
- if (key === "default" || key === "__esModule") return;
310
- if (key in exports && exports[key] === _isElementType[key]) return;
311
- Object.defineProperty(exports, key, {
312
- enumerable: true,
313
- get: function () {
314
- return _isElementType[key];
315
- }
316
- });
317
- });
318
-
319
- var _isVisible = require("./misc/isVisible");
320
-
321
- Object.keys(_isVisible).forEach(function (key) {
322
- if (key === "default" || key === "__esModule") return;
323
- if (key in exports && exports[key] === _isVisible[key]) return;
324
- Object.defineProperty(exports, key, {
325
- enumerable: true,
326
- get: function () {
327
- return _isVisible[key];
328
- }
329
- });
330
- });
331
-
332
- var _isDisabled = require("./misc/isDisabled");
333
-
334
- Object.keys(_isDisabled).forEach(function (key) {
335
- if (key === "default" || key === "__esModule") return;
336
- if (key in exports && exports[key] === _isDisabled[key]) return;
337
- Object.defineProperty(exports, key, {
338
- enumerable: true,
339
- get: function () {
340
- return _isDisabled[key];
341
- }
342
- });
343
- });
344
-
345
- var _wait = require("./misc/wait");
346
-
347
- Object.keys(_wait).forEach(function (key) {
348
- if (key === "default" || key === "__esModule") return;
349
- if (key in exports && exports[key] === _wait[key]) return;
350
- Object.defineProperty(exports, key, {
351
- enumerable: true,
352
- get: function () {
353
- return _wait[key];
354
- }
355
- });
356
- });
357
-
358
- var _hasPointerEvents = require("./misc/hasPointerEvents");
359
-
360
- Object.keys(_hasPointerEvents).forEach(function (key) {
361
- if (key === "default" || key === "__esModule") return;
362
- if (key in exports && exports[key] === _hasPointerEvents[key]) return;
363
- Object.defineProperty(exports, key, {
364
- enumerable: true,
365
- get: function () {
366
- return _hasPointerEvents[key];
367
- }
368
- });
369
- });
370
-
371
- var _hasFormSubmit = require("./misc/hasFormSubmit");
372
-
373
- Object.keys(_hasFormSubmit).forEach(function (key) {
374
- if (key === "default" || key === "__esModule") return;
375
- if (key in exports && exports[key] === _hasFormSubmit[key]) return;
376
- Object.defineProperty(exports, key, {
377
- enumerable: true,
378
- get: function () {
379
- return _hasFormSubmit[key];
380
- }
381
- });
382
- });
383
-
384
- var _firePointerEvents = require("./pointer/firePointerEvents");
385
-
386
- Object.keys(_firePointerEvents).forEach(function (key) {
387
- if (key === "default" || key === "__esModule") return;
388
- if (key in exports && exports[key] === _firePointerEvents[key]) return;
389
- Object.defineProperty(exports, key, {
390
- enumerable: true,
391
- get: function () {
392
- return _firePointerEvents[key];
393
- }
394
- });
395
- });
396
-
397
- var _mouseButtons = require("./pointer/mouseButtons");
398
-
399
- Object.keys(_mouseButtons).forEach(function (key) {
400
- if (key === "default" || key === "__esModule") return;
401
- if (key in exports && exports[key] === _mouseButtons[key]) return;
402
- Object.defineProperty(exports, key, {
403
- enumerable: true,
404
- get: function () {
405
- return _mouseButtons[key];
406
- }
407
- });
408
- });
@@ -1,19 +0,0 @@
1
- /**
2
- * Read the next key definition from user input
3
- *
4
- * Describe key per `{descriptor}` or `[descriptor]`.
5
- * Everything else will be interpreted as a single character as descriptor - e.g. `a`.
6
- * Brackets `{` and `[` can be escaped by doubling - e.g. `foo[[bar` translates to `foo[bar`.
7
- * A previously pressed key can be released per `{/descriptor}`.
8
- * Keeping the key pressed can be written as `{descriptor>}`.
9
- * When keeping the key pressed you can choose how long the key is pressed `{descriptor>3}`.
10
- * You can then release the key per `{descriptor>3/}` or keep it pressed and continue with the next key.
11
- */
12
- export declare function readNextDescriptor(text: string): {
13
- consumedLength: number;
14
- descriptor: string;
15
- releasePrevious: boolean;
16
- repeat: number;
17
- releaseSelf: boolean | undefined;
18
- type: string;
19
- };