dumi-theme-lobehub 1.10.7 → 1.10.9
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/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { SiteThemeConfig } from "./types";
|
|
1
2
|
export { siteSelectors, type SiteStore, useSiteStore } from './store';
|
|
2
3
|
export * from './types';
|
|
3
4
|
export { styles } from "./store/initialState";
|
|
5
|
+
export declare const defineThemeConfig: (config: SiteThemeConfig) => SiteThemeConfig;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { siteSelectors, useSiteStore } from "./store";
|
|
2
2
|
export * from "./types";
|
|
3
3
|
export { styles } from "./store/initialState";
|
|
4
|
-
var defineThemeConfig = function defineThemeConfig(config) {
|
|
4
|
+
export var defineThemeConfig = function defineThemeConfig(config) {
|
|
5
5
|
return config;
|
|
6
6
|
};
|
|
7
7
|
module.exports = {
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { ThemeProvider } from '@lobehub/ui';
|
|
2
|
+
import { extractStaticStyle } from 'antd-style';
|
|
2
3
|
import isEqual from 'fast-deep-equal';
|
|
3
4
|
import { memo } from 'react';
|
|
4
5
|
import GlobalStyle from "./GlobalStyle";
|
|
5
6
|
import { siteSelectors, useSiteStore, useThemeStore } from "../../store";
|
|
6
7
|
import _customToken from "../../styles/customToken";
|
|
8
|
+
|
|
9
|
+
//@ts-ignore
|
|
7
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
global.__ANTD_CACHE__ = extractStaticStyle.cache;
|
|
9
13
|
export default /*#__PURE__*/memo(function (_ref) {
|
|
10
14
|
var children = _ref.children;
|
|
11
15
|
var themeMode = useThemeStore(function (st) {
|
|
@@ -13,9 +17,11 @@ export default /*#__PURE__*/memo(function (_ref) {
|
|
|
13
17
|
});
|
|
14
18
|
var userToken = useSiteStore(siteSelectors.token, isEqual);
|
|
15
19
|
return /*#__PURE__*/_jsxs(ThemeProvider, {
|
|
20
|
+
cache: extractStaticStyle.cache,
|
|
16
21
|
customToken: function customToken(themeToken) {
|
|
17
22
|
return Object.assign({}, _customToken(themeToken), userToken);
|
|
18
23
|
},
|
|
24
|
+
prefixCls: 'site',
|
|
19
25
|
themeMode: themeMode,
|
|
20
26
|
children: [/*#__PURE__*/_jsx(GlobalStyle, {}), children]
|
|
21
27
|
});
|
package/dist/slots/Hero/index.js
CHANGED
|
@@ -5,6 +5,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { Hero as H } from '@lobehub/ui';
|
|
8
|
+
import { Link } from 'dumi';
|
|
8
9
|
import { memo } from 'react';
|
|
9
10
|
import { heroSelectors, useSiteStore } from "../../store";
|
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -17,6 +18,7 @@ var Hero = /*#__PURE__*/memo(function () {
|
|
|
17
18
|
description = _useSiteStore2[1],
|
|
18
19
|
actions = _useSiteStore2[2];
|
|
19
20
|
return /*#__PURE__*/_jsx(H, {
|
|
21
|
+
Link: Link,
|
|
20
22
|
actions: actions,
|
|
21
23
|
description: description,
|
|
22
24
|
title: title
|
|
@@ -6,7 +6,6 @@ export var initialThemeConfig = {
|
|
|
6
6
|
icon: 'https://lobehub.com/favicon-32x32.png',
|
|
7
7
|
shortcut: 'https://lobehub.com/favicon.ico'
|
|
8
8
|
},
|
|
9
|
-
manifest: 'https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/site.webmanifest',
|
|
10
9
|
openGraph: {
|
|
11
10
|
siteName: 'LobeHub'
|
|
12
11
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dumi-theme-lobehub",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.9",
|
|
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",
|