@depup/testing-library__user-event 14.6.4-depup.0 → 14.6.6-depup.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/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/testing-library__user-event
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [@testing-library/user-event](https://www.npmjs.com/package/@testing-library/user-event) @ 14.6.4 |
17
- | Processed | 2026-08-12 |
16
+ | Original | [@testing-library/user-event](https://www.npmjs.com/package/@testing-library/user-event) @ 14.6.6 |
17
+ | Processed | 2026-08-22 |
18
18
  | Smoke test | failed |
19
19
  | Deps updated | 0 |
20
20
 
package/changes.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "bumped": {},
3
- "timestamp": "2026-08-12T00:27:37.696Z",
3
+ "timestamp": "2026-08-22T08:07:17.039Z",
4
4
  "totalUpdated": 0
5
5
  }
@@ -6,6 +6,7 @@ var isElementType = require('../../utils/misc/isElementType.js');
6
6
  require('../../utils/dataTransfer/Clipboard.js');
7
7
  var isContentEditable = require('../../utils/edit/isContentEditable.js');
8
8
  var isEditable = require('../../utils/edit/isEditable.js');
9
+ var getActiveElement = require('../../utils/focus/getActiveElement.js');
9
10
  var getTabDestination = require('../../utils/focus/getTabDestination.js');
10
11
  var selection = require('../../utils/focus/selection.js');
11
12
  var focus = require('../focus.js');
@@ -110,7 +111,9 @@ const keydownBehavior = {
110
111
  },
111
112
  Tab: (event, target, instance)=>{
112
113
  return ()=>{
113
- const dest = getTabDestination.getTabDestination(target, instance.system.keyboard.modifiers.Shift);
114
+ const dest = getTabDestination.getTabDestination(// get target here because target would be stale, it's the element that keydown happened on, but
115
+ // focus may have been moved to another element so that browser tab behaviour picks up from there
116
+ getActiveElement.getActiveElementOrBody(instance.config.document), instance.system.keyboard.modifiers.Shift);
114
117
  focus.focusElement(dest);
115
118
  if (selection.hasOwnSelection(dest)) {
116
119
  UI.setUISelection(dest, {
@@ -185,7 +185,7 @@ function initPointerEvent(event, { pointerId, width, height, pressure, tangentia
185
185
  tiltX: sanitizeNumber(tiltX),
186
186
  tiltY: sanitizeNumber(tiltY),
187
187
  twist: sanitizeNumber(twist),
188
- pointerType: String(pointerType),
188
+ pointerType: String(pointerType !== null && pointerType !== void 0 ? pointerType : ''),
189
189
  isPrimary: Boolean(isPrimary)
190
190
  });
191
191
  }
@@ -4,6 +4,7 @@ import { isElementType } from '../../utils/misc/isElementType.js';
4
4
  import '../../utils/dataTransfer/Clipboard.js';
5
5
  import { isContentEditable } from '../../utils/edit/isContentEditable.js';
6
6
  import { isEditable } from '../../utils/edit/isEditable.js';
7
+ import { getActiveElementOrBody } from '../../utils/focus/getActiveElement.js';
7
8
  import { getTabDestination } from '../../utils/focus/getTabDestination.js';
8
9
  import { hasOwnSelection } from '../../utils/focus/selection.js';
9
10
  import { focusElement } from '../focus.js';
@@ -108,7 +109,9 @@ const keydownBehavior = {
108
109
  },
109
110
  Tab: (event, target, instance)=>{
110
111
  return ()=>{
111
- const dest = getTabDestination(target, instance.system.keyboard.modifiers.Shift);
112
+ const dest = getTabDestination(// get target here because target would be stale, it's the element that keydown happened on, but
113
+ // focus may have been moved to another element so that browser tab behaviour picks up from there
114
+ getActiveElementOrBody(instance.config.document), instance.system.keyboard.modifiers.Shift);
112
115
  focusElement(dest);
113
116
  if (hasOwnSelection(dest)) {
114
117
  setUISelection(dest, {
@@ -183,7 +183,7 @@ function initPointerEvent(event, { pointerId, width, height, pressure, tangentia
183
183
  tiltX: sanitizeNumber(tiltX),
184
184
  tiltY: sanitizeNumber(tiltY),
185
185
  twist: sanitizeNumber(twist),
186
- pointerType: String(pointerType),
186
+ pointerType: String(pointerType !== null && pointerType !== void 0 ? pointerType : ''),
187
187
  isPrimary: Boolean(isPrimary)
188
188
  });
189
189
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depup/testing-library__user-event",
3
- "version": "14.6.4-depup.0",
3
+ "version": "14.6.6-depup.0",
4
4
  "description": "Fire events the same way the user does (with updated dependencies)",
5
5
  "keywords": [
6
6
  "@testing-library/user-event",
@@ -124,8 +124,8 @@
124
124
  "changes": {},
125
125
  "depsUpdated": 0,
126
126
  "originalPackage": "@testing-library/user-event",
127
- "originalVersion": "14.6.4",
128
- "processedAt": "2026-08-12T00:28:04.992Z",
127
+ "originalVersion": "14.6.6",
128
+ "processedAt": "2026-08-22T08:07:48.858Z",
129
129
  "smokeTest": "failed"
130
130
  }
131
131
  }