dumi-theme-lobehub 4.0.2 → 4.1.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,3 +1,4 @@
1
+ /// <reference path="../types/dumi-compat.d.ts" />
1
2
  import type { IApi } from 'dumi';
2
3
  declare const SSRPlugin: (api: IApi) => void;
3
4
  export default SSRPlugin;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="@/types/dumi-compat" />
2
3
  import { useRouteMeta } from 'dumi';
3
4
  type IContentTabs = ReturnType<typeof useRouteMeta>['tabs'];
4
5
  export interface ContentTabsProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="@/types/dumi-compat" />
1
2
  import { type IPreviewerProps } from 'dumi';
2
3
  import { type FC, type ReactNode } from 'react';
3
4
  export interface PreviewerActionsProps extends IPreviewerProps {
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="@/types/dumi-compat" />
2
3
  import { type useSiteSearch } from 'dumi';
3
4
  type ISearchResult = ReturnType<typeof useSiteSearch>['result'];
4
5
  export interface SearchResultProps {
@@ -0,0 +1,37 @@
1
+ declare module 'dumi' {
2
+ import type { IRouteMeta } from 'dumi/dist/client/theme-api/types';
3
+
4
+ export type { ClientLoader, History } from '@umijs/renderer-react';
5
+ export function getRouteMetaById(id: string): IRouteMeta | Promise<IRouteMeta>;
6
+ export {
7
+ createBrowserHistory,
8
+ createHashHistory,
9
+ createMemoryHistory,
10
+ createSearchParams,
11
+ generatePath,
12
+ Helmet,
13
+ HelmetProvider,
14
+ Link,
15
+ matchPath,
16
+ matchRoutes,
17
+ Navigate,
18
+ NavLink,
19
+ resolvePath,
20
+ useLocation,
21
+ useMatch,
22
+ useNavigate,
23
+ useOutlet,
24
+ useOutletContext,
25
+ useParams,
26
+ useResolvedPath,
27
+ useRoutes,
28
+ useSearchParams,
29
+ } from '@umijs/renderer-react';
30
+ export { defineConfig } from 'dumi/dist';
31
+ export * from 'dumi/dist/client/theme-api';
32
+ export type { IApi } from 'dumi/dist/types';
33
+ export { useIntl } from 'react-intl';
34
+ import type { History as RouterHistory } from 'history';
35
+
36
+ export const history: RouterHistory;
37
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dumi-theme-lobehub",
3
- "version": "4.0.2",
3
+ "version": "4.1.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",