dumi-theme-lobehub 3.0.0 → 3.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.
@@ -1,11 +1,14 @@
1
1
  var _templateObject;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import { createGlobalStyle } from 'antd-style';
4
- var GlobalStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n #root {\n min-height: 100vh;\n background: ", ";\n }\n\n #nprogress {\n .bar {\n background: ", ";\n }\n\n .peg {\n display: none !important;\n }\n\n .spinner {\n display: none;\n }\n }\n"])), function (_ref) {
4
+ var GlobalStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n html, body {\n background: ", ";\n }\n\n #root {\n min-height: 100vh;\n background: ", ";\n }\n\n #nprogress {\n .bar {\n background: ", ";\n }\n\n .peg {\n display: none !important;\n }\n\n .spinner {\n display: none;\n }\n }\n"])), function (_ref) {
5
5
  var theme = _ref.theme;
6
6
  return theme.colorBgContainerSecondary;
7
7
  }, function (_ref2) {
8
8
  var theme = _ref2.theme;
9
+ return theme.colorBgContainerSecondary;
10
+ }, function (_ref3) {
11
+ var theme = _ref3.theme;
9
12
  return theme.colorText;
10
13
  });
11
14
  export default GlobalStyle;
@@ -1,8 +1,14 @@
1
1
  var _templateObject;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import { createGlobalStyle } from 'antd-style';
4
- var GlobalStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n #root {\n min-height: 100vh;\n }\n\n #nprogress {\n .bar {\n background: ", ";\n }\n\n .peg {\n display: none !important;\n }\n\n .spinner {\n display: none;\n }\n }\n"])), function (_ref) {
4
+ var GlobalStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n html, body {\n background: ", ";\n }\n\n #root {\n min-height: 100vh;\n background: ", ";\n }\n\n #nprogress {\n .bar {\n background: ", ";\n }\n\n .peg {\n display: none !important;\n }\n\n .spinner {\n display: none;\n }\n }\n"])), function (_ref) {
5
5
  var theme = _ref.theme;
6
+ return theme.colorBgContainerSecondary;
7
+ }, function (_ref2) {
8
+ var theme = _ref2.theme;
9
+ return theme.colorBgContainerSecondary;
10
+ }, function (_ref3) {
11
+ var theme = _ref3.theme;
6
12
  return theme.colorText;
7
13
  });
8
14
  export default GlobalStyle;
@@ -1,6 +1,7 @@
1
1
  import { ThemeProvider } from '@lobehub/ui';
2
2
  import 'antd/dist/reset.css';
3
3
  import isEqual from 'fast-deep-equal';
4
+ import { LazyMotion, domMax } from 'motion/react';
4
5
  import { memo } from 'react';
5
6
  import { siteSelectors, useSiteStore, useThemeStore } from "../../store";
6
7
  import _customToken from "../../styles/customToken";
@@ -23,7 +24,10 @@ export default /*#__PURE__*/memo(function (_ref) {
23
24
  },
24
25
  themeMode: themeMode,
25
26
  children: [/*#__PURE__*/_jsx(AntdStaticMethods, {}), /*#__PURE__*/_jsx(ConfigProvider, {
26
- children: children
27
+ children: /*#__PURE__*/_jsx(LazyMotion, {
28
+ features: domMax,
29
+ children: children
30
+ })
27
31
  })]
28
32
  })
29
33
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dumi-theme-lobehub",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
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",
@@ -27,14 +27,15 @@
27
27
  "dependencies": {
28
28
  "@floating-ui/react": "^0.27.16",
29
29
  "@giscus/react": "^3.1.0",
30
- "@lobehub/ui": "^3.1.0",
30
+ "@lobehub/ui": "^3.4.6",
31
31
  "ahooks": "^3.9.6",
32
32
  "animated-scroll-to": "^2.3.2",
33
- "antd-style": "^3.7.1",
33
+ "antd-style": "^4.0.0",
34
34
  "chalk": "^5.6.2",
35
35
  "fast-deep-equal": "^3.1.3",
36
36
  "lodash-es": "^4.17.22",
37
37
  "lucide-react": "^0.562.0",
38
+ "motion": "^12.23.26",
38
39
  "polished": "^4.3.1",
39
40
  "rc-footer": "^0.6.8",
40
41
  "react-layout-kit": "^2.0.1",