poi-plugin-quest-info-2
Advanced tools
Comparing version
# poi-plugin-quest-info-2 | ||
## 0.10.0 | ||
### Minor Changes | ||
- 5e2ba3a: Highlight search results | ||
## 0.9.15 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "poi-plugin-quest-info-2", | ||
"version": "0.9.15", | ||
"version": "0.10.0", | ||
"private": false, | ||
@@ -40,2 +40,3 @@ "description": "show quest info", | ||
"moize": "^6.1.1", | ||
"react-highlight-words": "^0.20.0", | ||
"react-use": "^17.3.1", | ||
@@ -55,2 +56,3 @@ "react-virtualized-auto-sizer": "^1.0.6", | ||
"@types/pangu": "^3.3.0", | ||
"@types/react-highlight-words": "^0.16.4", | ||
"@types/react-virtualized-auto-sizer": "^1.0.1", | ||
@@ -57,0 +59,0 @@ "@types/react-window": "^1.8.5", |
import { useCallback } from 'react' | ||
import { useThrottle } from 'react-use' | ||
import { useStore } from './store' | ||
@@ -18,1 +19,13 @@ | ||
} | ||
export const useStableSearchWords = () => { | ||
const { searchInput } = useSearchInput() | ||
const throttledSearchInput = useThrottle(searchInput) | ||
const searchKeywords = throttledSearchInput | ||
.split(' ') | ||
// Remove empty string | ||
.filter((i) => !!i) | ||
.map((i) => i.toUpperCase()) | ||
return searchKeywords | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1971230
0.05%51362
0.07%5
25%36
2.86%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed