@destyler/focus-visible 0.1.0 → 0.2.0-beta.5

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.
@@ -1,6 +1,10 @@
1
1
  import { getDocument, getEventTarget, getWindow, isMac } from "@destyler/dom";
2
2
 
3
3
  //#region src/focus-visible.ts
4
+ /**
5
+ * Credit: Huge props to the team at Adobe for inspiring this implementation.
6
+ * https://github.com/adobe/react-spectrum/blob/main/packages/%40react-aria/interactions/src/useFocusVisible.ts
7
+ */
4
8
  const FOCUS_VISIBLE_INPUT_KEYS = {
5
9
  Tab: true,
6
10
  Escape: true
package/package.json CHANGED
@@ -1,22 +1,31 @@
1
1
  {
2
2
  "name": "@destyler/focus-visible",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.2.0-beta.5",
5
5
  "description": "",
6
6
  "author": "Elone Hoo <elonehoo@gmail.com>",
7
7
  "license": "MIT",
8
+ "homepage": "https://github.com/destyler/destyler",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/destyler/destyler.git",
12
+ "directory": "packages/shareds/focus-visible"
13
+ },
8
14
  "exports": {
9
- ".": "./dist/index.js"
15
+ ".": "./dist/index.mjs"
10
16
  },
11
- "main": "dist/index.js",
12
- "module": "dist/index.js",
13
- "types": "dist/index.d.ts",
17
+ "main": "dist/index.mjs",
18
+ "module": "dist/index.mjs",
19
+ "types": "dist/index.d.mts",
14
20
  "files": [
15
21
  "*.d.ts",
16
22
  "dist"
17
23
  ],
18
24
  "dependencies": {
19
- "@destyler/dom": "0.1.0"
25
+ "@destyler/dom": "0.2.0-beta.5"
26
+ },
27
+ "publishConfig": {
28
+ "access": "public"
20
29
  },
21
30
  "scripts": {
22
31
  "clear": "rimraf ./dist",
File without changes