@spree/dashboard-core 6.0.1 → 6.0.2
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/package.json +6 -6
- package/src/hooks/use-global-search.ts +1 -1
- package/src/lib/search-registry.ts +1 -1
- package/src/locales/vi.json +2122 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spree/dashboard-core",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "6.0.
|
|
4
|
+
"version": "6.0.2",
|
|
5
5
|
"description": "Spree Dashboard framework — registries (table, nav, slot, settings-nav), providers (auth, permission, store), admin SDK client, generic infra hooks, and the defineDashboardPlugin extension API.",
|
|
6
6
|
"author": "Vendo Connect Inc.",
|
|
7
7
|
"homepage": "https://spreecommerce.org",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"LICENSE"
|
|
50
50
|
],
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@spree/admin-sdk": ">=6.0.
|
|
53
|
-
"@spree/dashboard-ui": ">=6.0.
|
|
52
|
+
"@spree/admin-sdk": ">=6.0.2 <7.0.0-0",
|
|
53
|
+
"@spree/dashboard-ui": ">=6.0.2 <7.0.0-0",
|
|
54
54
|
"@tanstack/react-query": "^5.100.9",
|
|
55
55
|
"@tanstack/react-router": "^1.169.2",
|
|
56
56
|
"i18next": "^26.2.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"date-fns-tz": "^3.2.0",
|
|
71
71
|
"lucide-react": "^1.60.0",
|
|
72
72
|
"zod": "^4.6.7",
|
|
73
|
-
"@spree/core": "^6.0.
|
|
73
|
+
"@spree/core": "^6.0.2"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@tanstack/react-query": "^5.104.5",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"typescript": "~7.0.2",
|
|
87
87
|
"vite": "^8.3.4",
|
|
88
88
|
"vitest": "^5.0.5",
|
|
89
|
-
"@spree/
|
|
90
|
-
"@spree/
|
|
89
|
+
"@spree/admin-sdk": "^6.0.2",
|
|
90
|
+
"@spree/dashboard-ui": "^6.0.2"
|
|
91
91
|
},
|
|
92
92
|
"scripts": {
|
|
93
93
|
"lint": "biome check src",
|
|
@@ -44,7 +44,7 @@ export function useGlobalSearch(rawQuery: string) {
|
|
|
44
44
|
queries: permitted.map((entry) => ({
|
|
45
45
|
// Scope by user so a logout→login on the same store can't serve the
|
|
46
46
|
// previous user's cached results from React Query.
|
|
47
|
-
queryKey: ['
|
|
47
|
+
queryKey: ['global-search', user?.id, storeId, entry.key, query],
|
|
48
48
|
queryFn: () => entry.fetch(query, RESULT_LIMIT),
|
|
49
49
|
enabled,
|
|
50
50
|
gcTime: GC_TIME_MS,
|
|
@@ -21,7 +21,7 @@ import type { SubjectName } from './permissions'
|
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
export interface SearchResultRow {
|
|
24
|
-
/**
|
|
24
|
+
/** Item value — must be unique across the whole list; prefix with the entry key. */
|
|
25
25
|
value: string
|
|
26
26
|
/** Row contents rendered inside the `CommandItem`. */
|
|
27
27
|
content: ReactNode
|