dumi-theme-lobehub 1.12.0 → 1.13.0
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,9 +1,10 @@
|
|
|
1
1
|
import { type useSiteSearch } from 'dumi';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
type ISearchResult = ReturnType<typeof useSiteSearch>['result'];
|
|
4
|
-
|
|
5
|
-
data:
|
|
4
|
+
export interface SearchResultProps {
|
|
5
|
+
data: ISearchResult;
|
|
6
6
|
loading: boolean;
|
|
7
|
-
onItemSelect?: (
|
|
8
|
-
}
|
|
7
|
+
onItemSelect?: (item: ISearchResult[0]['hints'][0]) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const SearchResult: React.NamedExoticComponent<SearchResultProps>;
|
|
9
10
|
export default SearchResult;
|
|
@@ -20,16 +20,27 @@ export interface SiteStore {
|
|
|
20
20
|
tabMeta?: NonNullable<IRouteMeta['tabs']>[0]['meta'];
|
|
21
21
|
}
|
|
22
22
|
export declare const createStore: (initState: SiteStore) => import("zustand/traditional").UseBoundStoreWithEqualityFn<Omit<StoreApi<SiteStore>, "setState"> & {
|
|
23
|
-
setState<
|
|
23
|
+
setState(partial: SiteStore | Partial<SiteStore> | ((state: SiteStore) => SiteStore | Partial<SiteStore>), replace?: false | undefined, action?: (string | {
|
|
24
|
+
[x: string]: unknown;
|
|
25
|
+
[x: number]: unknown;
|
|
26
|
+
[x: symbol]: unknown;
|
|
24
27
|
type: string;
|
|
25
|
-
}
|
|
28
|
+
}) | undefined): void;
|
|
29
|
+
setState(state: SiteStore | ((state: SiteStore) => SiteStore), replace: true, action?: (string | {
|
|
30
|
+
[x: string]: unknown;
|
|
31
|
+
[x: number]: unknown;
|
|
32
|
+
[x: symbol]: unknown;
|
|
33
|
+
type: string;
|
|
34
|
+
}) | undefined): void;
|
|
26
35
|
}>;
|
|
27
36
|
declare const useStore: import("zustand-utils").UseContextStore<StoreApi<SiteStore>>, useStoreApi: () => {
|
|
28
|
-
setState:
|
|
37
|
+
setState: {
|
|
38
|
+
(partial: SiteStore | Partial<SiteStore> | ((state: SiteStore) => SiteStore | Partial<SiteStore>), replace?: false | undefined): void;
|
|
39
|
+
(state: SiteStore | ((state: SiteStore) => SiteStore), replace: true): void;
|
|
40
|
+
};
|
|
29
41
|
getState: () => SiteStore;
|
|
30
42
|
getInitialState: () => SiteStore;
|
|
31
43
|
subscribe: (listener: (state: SiteStore, prevState: SiteStore) => void) => () => void;
|
|
32
|
-
destroy: () => void;
|
|
33
44
|
}, Provider: ({ createStore, children }: {
|
|
34
45
|
createStore: () => StoreApi<SiteStore>;
|
|
35
46
|
children: import("react").ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dumi-theme-lobehub",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "dumi-theme-lobehub is a documentation site theme package designed for dumi2. It provides a more beautiful and user-friendly development and reading experience based on @lobehub/ui",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@floating-ui/react": "^0.
|
|
28
|
+
"@floating-ui/react": "^0.27.3",
|
|
29
29
|
"@giscus/react": "^3.1.0",
|
|
30
|
-
"@lobehub/ui": "^1.
|
|
30
|
+
"@lobehub/ui": "^1.162.0",
|
|
31
31
|
"ahooks": "^3.8.4",
|
|
32
32
|
"animated-scroll-to": "^2.3.0",
|
|
33
33
|
"antd-style": "^3.7.1",
|
|
34
|
-
"chalk": "^4.1
|
|
34
|
+
"chalk": "^5.4.1",
|
|
35
35
|
"dumi": "^2.4.17",
|
|
36
36
|
"fast-deep-equal": "^3.1.3",
|
|
37
37
|
"history": "^5.3.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"swr": "^2.3.0",
|
|
44
44
|
"url-join": "^5.0.0",
|
|
45
45
|
"use-merge-value": "^1.2.0",
|
|
46
|
-
"zustand": "^
|
|
46
|
+
"zustand": "^5.0.3",
|
|
47
47
|
"zustand-utils": "^1.3.2"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|