@reactuses/core 6.3.0 → 6.3.1
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/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +16 -16
package/dist/index.cjs
CHANGED
|
@@ -3669,7 +3669,7 @@ const useClipboard = ()=>{
|
|
|
3669
3669
|
useEventListener('copy', updateText);
|
|
3670
3670
|
useEventListener('cut', updateText);
|
|
3671
3671
|
// Also listen for focus events to update clipboard when window regains focus
|
|
3672
|
-
useEventListener('focus', updateText,
|
|
3672
|
+
useEventListener('focus', updateText, defaultWindow);
|
|
3673
3673
|
const copy = React.useCallback((txt)=>_async_to_generator$2(function*() {
|
|
3674
3674
|
setText(txt);
|
|
3675
3675
|
try {
|
package/dist/index.mjs
CHANGED
|
@@ -3661,7 +3661,7 @@ const useClipboard = ()=>{
|
|
|
3661
3661
|
useEventListener('copy', updateText);
|
|
3662
3662
|
useEventListener('cut', updateText);
|
|
3663
3663
|
// Also listen for focus events to update clipboard when window regains focus
|
|
3664
|
-
useEventListener('focus', updateText,
|
|
3664
|
+
useEventListener('focus', updateText, defaultWindow);
|
|
3665
3665
|
const copy = useCallback((txt)=>_async_to_generator$2(function*() {
|
|
3666
3666
|
setText(txt);
|
|
3667
3667
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reactuses/core",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.1",
|
|
4
4
|
"description": "Collection of 100+ essential React Hooks with TypeScript support, tree-shaking, and SSR compatibility. Sensors, browser APIs, state management, animations, and more.",
|
|
5
5
|
"license": "Unlicense",
|
|
6
6
|
"homepage": "https://www.reactuse.com/",
|
|
@@ -82,18 +82,6 @@
|
|
|
82
82
|
"dist",
|
|
83
83
|
"package.json"
|
|
84
84
|
],
|
|
85
|
-
"scripts": {
|
|
86
|
-
"lint": "eslint \"{hooks,tests}/**/*.{ts,tsx}\"",
|
|
87
|
-
"build": "esno scripts/build.ts",
|
|
88
|
-
"build:bunchee": "bunchee",
|
|
89
|
-
"dev": "bunchee --watch",
|
|
90
|
-
"gend": "tsx scripts/tsdoc.ts",
|
|
91
|
-
"publish:ci": "esno scripts/publish.ts",
|
|
92
|
-
"release:prepare": "bump",
|
|
93
|
-
"release": "esno scripts/release.ts",
|
|
94
|
-
"test": "jest",
|
|
95
|
-
"test:coverage": "jest --coverage"
|
|
96
|
-
},
|
|
97
85
|
"peerDependencies": {
|
|
98
86
|
"qrcode": "^1.5",
|
|
99
87
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
@@ -112,7 +100,6 @@
|
|
|
112
100
|
},
|
|
113
101
|
"devDependencies": {
|
|
114
102
|
"@jsdevtools/version-bump-prompt": "^6.1.0",
|
|
115
|
-
"@reactuses/ts-document": "workspace:*",
|
|
116
103
|
"@testing-library/dom": "^10.4.0",
|
|
117
104
|
"@testing-library/react": "^16.1.0",
|
|
118
105
|
"@types/jest": "^27.5.2",
|
|
@@ -132,6 +119,19 @@
|
|
|
132
119
|
"qrcode": "^1.5.3",
|
|
133
120
|
"react": "^19.0.0",
|
|
134
121
|
"react-dom": "^19.0.0",
|
|
135
|
-
"typescript": "^5.3.3"
|
|
122
|
+
"typescript": "^5.3.3",
|
|
123
|
+
"@reactuses/ts-document": "0.8.0"
|
|
124
|
+
},
|
|
125
|
+
"scripts": {
|
|
126
|
+
"lint": "eslint \"{hooks,tests}/**/*.{ts,tsx}\"",
|
|
127
|
+
"build": "esno scripts/build.ts",
|
|
128
|
+
"build:bunchee": "bunchee",
|
|
129
|
+
"dev": "bunchee --watch",
|
|
130
|
+
"gend": "tsx scripts/tsdoc.ts",
|
|
131
|
+
"publish:ci": "esno scripts/publish.ts",
|
|
132
|
+
"release:prepare": "bump",
|
|
133
|
+
"release": "esno scripts/release.ts",
|
|
134
|
+
"test": "jest",
|
|
135
|
+
"test:coverage": "jest --coverage"
|
|
136
136
|
}
|
|
137
|
-
}
|
|
137
|
+
}
|