dumi-theme-lobehub 1.11.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
- declare const SearchResult: React.NamedExoticComponent<{
5
- data: import("dumi/dist/client/theme-api/useSiteSearch").ISearchResult;
4
+ export interface SearchResultProps {
5
+ data: ISearchResult;
6
6
  loading: boolean;
7
- onItemSelect?: ((item: ISearchResult[0]['hints'][0]) => void) | undefined;
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<A extends string | {
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
- }>(partial: SiteStore | Partial<SiteStore> | ((state: SiteStore) => SiteStore | Partial<SiteStore>), replace?: boolean | undefined, action?: A | undefined): void;
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: (partial: SiteStore | Partial<SiteStore> | ((state: SiteStore) => SiteStore | Partial<SiteStore>), replace?: boolean | undefined) => void;
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.11.0",
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,31 +25,30 @@
25
25
  "dist"
26
26
  ],
27
27
  "dependencies": {
28
- "@floating-ui/react": "^0.26.28",
28
+ "@floating-ui/react": "^0.27.3",
29
+ "@giscus/react": "^3.1.0",
30
+ "@lobehub/ui": "^1.162.0",
31
+ "ahooks": "^3.8.4",
29
32
  "animated-scroll-to": "^2.3.0",
30
- "chalk": "^4.1.2",
33
+ "antd-style": "^3.7.1",
34
+ "chalk": "^5.4.1",
35
+ "dumi": "^2.4.17",
36
+ "fast-deep-equal": "^3.1.3",
31
37
  "history": "^5.3.0",
38
+ "lodash-es": "^4.17.21",
39
+ "lucide-react": "^0.469.0",
40
+ "polished": "^4.3.1",
32
41
  "rc-footer": "^0.6.8",
42
+ "react-layout-kit": "^1.9.1",
43
+ "swr": "^2.3.0",
44
+ "url-join": "^5.0.0",
33
45
  "use-merge-value": "^1.2.0",
34
- "zustand": "^4.5.5",
46
+ "zustand": "^5.0.3",
35
47
  "zustand-utils": "^1.3.2"
36
48
  },
37
49
  "peerDependencies": {
38
- "@babel/runtime": "^7.0.0",
39
- "@giscus/react": "^3.0.0",
40
- "@lobehub/ui": "^1.160.0",
41
- "ahooks": "^3.8.0",
42
- "antd": "^5.22.0",
43
- "antd-style": "^3.7.0",
44
- "dumi": "^2.4.0",
45
- "fast-deep-equal": "^3.0.0",
46
- "lodash-es": "^4.0.0",
47
- "lucide-react": "^0.469.0",
48
- "polished": "^4.0.0",
50
+ "antd": "^5.23.0",
49
51
  "react": "^18.0.0 || ^19.0.0",
50
- "react-dom": "^18.0.0 || ^19.0.0",
51
- "react-layout-kit": "^1.0.0",
52
- "swr": "^2.3.0",
53
- "url-join": "^5.0.0"
52
+ "react-dom": "^18.0.0 || ^19.0.0"
54
53
  }
55
54
  }