@primer/behaviors 1.10.3 → 1.11.0-rc.44fb6ed
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/dist/cjs/focus-zone.js +3 -0
- package/dist/esm/focus-zone.mjs +3 -0
- package/package.json +10 -10
package/dist/cjs/focus-zone.js
CHANGED
|
@@ -465,6 +465,9 @@ function focusZone(container, settings) {
|
|
|
465
465
|
}
|
|
466
466
|
keyboardEventRecipient.addEventListener('keydown', event => {
|
|
467
467
|
var _a;
|
|
468
|
+
if ((event.metaKey || event.ctrlKey) && (event.key === 'ArrowLeft' || event.key === 'ArrowRight')) {
|
|
469
|
+
return;
|
|
470
|
+
}
|
|
468
471
|
if (event.key in KEY_TO_DIRECTION) {
|
|
469
472
|
const keyBit = KEY_TO_BIT[event.key];
|
|
470
473
|
if (!event.defaultPrevented &&
|
package/dist/esm/focus-zone.mjs
CHANGED
|
@@ -463,6 +463,9 @@ function focusZone(container, settings) {
|
|
|
463
463
|
}
|
|
464
464
|
keyboardEventRecipient.addEventListener('keydown', event => {
|
|
465
465
|
var _a;
|
|
466
|
+
if ((event.metaKey || event.ctrlKey) && (event.key === 'ArrowLeft' || event.key === 'ArrowRight')) {
|
|
467
|
+
return;
|
|
468
|
+
}
|
|
466
469
|
if (event.key in KEY_TO_DIRECTION) {
|
|
467
470
|
const keyBit = KEY_TO_BIT[event.key];
|
|
468
471
|
if (!event.defaultPrevented &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/behaviors",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0-rc.44fb6ed",
|
|
4
4
|
"description": "Shared behaviors for JavaScript components",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -72,17 +72,17 @@
|
|
|
72
72
|
],
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@arethetypeswrong/cli": "^0.18.0",
|
|
75
|
-
"@changesets/changelog-github": "^0.
|
|
76
|
-
"@changesets/cli": "^
|
|
75
|
+
"@changesets/changelog-github": "^1.0.0",
|
|
76
|
+
"@changesets/cli": "^3.0.0",
|
|
77
77
|
"@github/prettier-config": "^0.0.6",
|
|
78
78
|
"@rollup/plugin-typescript": "^12.1.0",
|
|
79
79
|
"@rollup/wasm-node": "^4.19.1",
|
|
80
|
-
"@size-limit/preset-small-lib": "^
|
|
81
|
-
"@storybook/react-vite": "10.
|
|
80
|
+
"@size-limit/preset-small-lib": "^13.0.1",
|
|
81
|
+
"@storybook/react-vite": "10.6.0",
|
|
82
82
|
"@testing-library/react": "^16.0.0",
|
|
83
83
|
"@testing-library/user-event": "^14.5.1",
|
|
84
84
|
"@types/jest": "^30.0.0",
|
|
85
|
-
"@types/node": "^
|
|
85
|
+
"@types/node": "^26.0.0",
|
|
86
86
|
"@types/react": "^19.0.1",
|
|
87
87
|
"@types/react-dom": "^19.2.3",
|
|
88
88
|
"clsx": "^2.1.1",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"eslint": "^8.50.0",
|
|
92
92
|
"eslint-plugin-github": "^5.0.0",
|
|
93
93
|
"eslint-plugin-prettier": "^5.0.0",
|
|
94
|
-
"eslint-plugin-storybook": "10.
|
|
94
|
+
"eslint-plugin-storybook": "10.6.0",
|
|
95
95
|
"jest": "^30.0.4",
|
|
96
96
|
"jest-environment-jsdom": "^30.0.4",
|
|
97
97
|
"prettier": "^3.0.3",
|
|
@@ -99,9 +99,9 @@
|
|
|
99
99
|
"react-dom": "^19.0.0",
|
|
100
100
|
"rimraf": "^6.0.1",
|
|
101
101
|
"rollup": "^4.18.0",
|
|
102
|
-
"size-limit": "^
|
|
103
|
-
"storybook": "10.
|
|
102
|
+
"size-limit": "^13.0.1",
|
|
103
|
+
"storybook": "10.6.0",
|
|
104
104
|
"tslib": "^2.8.1",
|
|
105
|
-
"typescript": "^6.0.
|
|
105
|
+
"typescript": "^6.0.3"
|
|
106
106
|
}
|
|
107
107
|
}
|