@antv/dumi-theme-antv 0.3.0-beta.16 → 0.3.0-beta.17

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.
@@ -15,7 +15,7 @@ import { get } from 'lodash-es';
15
15
  import React, { useContext } from 'react';
16
16
  import { ErrorBoundary } from 'react-error-boundary';
17
17
  import { ThemeAntVContext } from "../../context";
18
- import { CodeRunner } from "dumi/theme/slots/CodeRunner";
18
+ import { CodeRunner } from "../../slots/CodeRunner";
19
19
  import styles from "./index.module.less";
20
20
 
21
21
  /**
@@ -6,13 +6,13 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
6
6
 
7
7
  import React from 'react';
8
8
  import { useLocale, useSiteData, FormattedMessage } from 'dumi';
9
- import { SEO } from "dumi/theme/slots/SEO";
10
- import { Header } from "dumi/theme/slots/Header";
9
+ import { SEO } from "../../slots/SEO";
10
+ import { Header } from "../../slots/Header";
11
11
  import { Detail } from 'dumi/theme/slots/Detail';
12
- import { Features } from "dumi/theme/slots/Features";
13
- import { Cases } from "dumi/theme/slots/Cases";
14
- import { Companies } from "dumi/theme/slots/Companies";
15
- import { Footer } from "dumi/theme/slots/Footer";
12
+ import { Features } from "../../slots/Features";
13
+ import { Cases } from "../../slots/Cases";
14
+ import { Companies } from "../../slots/Companies";
15
+ import { Footer } from "../../slots/Footer";
16
16
  /**
17
17
  * Index 路由下的入口
18
18
  * - 获取数据
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { ManualContent } from "dumi/theme/slots/ManualContent";
3
- import { Header } from "dumi/theme/slots/Header";
4
- import { Footer } from "dumi/theme/slots/Footer";
2
+ import { ManualContent } from "../../slots/ManualContent";
3
+ import { Header } from "../../slots/Header";
4
+ import { Footer } from "../../slots/Footer";
5
5
 
6
6
  /**
7
7
  * Manual 路由下的入口
package/dist/pages/404.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { SEO } from "dumi/theme/slots/SEO";
3
- import { Header } from "dumi/theme/slots/Header";
4
- import { NotFound as NotFoundPage } from "dumi/theme/slots/404";
5
- import { Footer } from "dumi/theme/slots/Footer";
2
+ import { SEO } from "../slots/SEO";
3
+ import { Header } from "../slots/Header";
4
+ import { NotFound as NotFoundPage } from "../slots/404";
5
+ import { Footer } from "../slots/Footer";
6
6
  /**
7
7
  * 404 页面
8
8
  */
@@ -15,10 +15,10 @@ import { useParams, useLocation, useNavigate } from 'react-router-dom';
15
15
  import { get } from 'lodash-es';
16
16
  import { Layout } from 'antd';
17
17
  import { useLocale, useSiteData } from 'dumi';
18
- import { SEO } from "dumi/theme/slots/SEO";
19
- import { Header } from "dumi/theme/slots/Header";
20
- import { ExampleSider } from "dumi/theme/slots/ExampleSider";
21
- import { CodeRunner } from "dumi/theme/slots/CodeRunner";
18
+ import { SEO } from "../../slots/SEO";
19
+ import { Header } from "../../slots/Header";
20
+ import { ExampleSider } from "../../slots/ExampleSider";
21
+ import { CodeRunner } from "../../slots/CodeRunner";
22
22
  import { getDemoInfo } from "../../slots/CodeRunner/utils";
23
23
  import { ThemeAntVContext } from "../../context";
24
24
  import styles from "./index.module.less";
@@ -15,9 +15,9 @@ import { useContext, useEffect } from 'react';
15
15
  import { useNavigate } from 'react-router-dom';
16
16
  import { BackTop, Layout as AntLayout } from 'antd';
17
17
  import { useLocale } from 'dumi';
18
- import { SEO } from "dumi/theme/slots/SEO";
19
- import { Header } from "dumi/theme/slots/Header";
20
- import { Footer } from "dumi/theme/slots/Footer";
18
+ import { SEO } from "../../slots/SEO";
19
+ import { Header } from "../../slots/Header";
20
+ import { Footer } from "../../slots/Footer";
21
21
  import NavigatorBanner from "../../slots/Header/Products/NavigatorBanner";
22
22
  import { VerticalAlignTopOutlined } from '@ant-design/icons';
23
23
  import { Article } from "./components/Article";
@@ -17,7 +17,7 @@ import { debounce, noop } from 'lodash-es';
17
17
  import { bind, clear } from 'size-sensor';
18
18
  import { replaceInsertCss, execute, compile } from "./utils";
19
19
  import { Toolbar, EDITOR_TABS } from "./Toolbar";
20
- import { Loading } from "dumi/theme/slots/Loading";
20
+ import { Loading } from "../Loading";
21
21
  import styles from "./index.module.less";
22
22
  loader.config({
23
23
  'vs/nls': {
@@ -14,11 +14,11 @@ import React, { useState } from 'react';
14
14
  import { useSiteData, useLocale } from 'dumi';
15
15
  import { noop } from 'lodash-es';
16
16
  import SplitPane from 'react-split-pane';
17
- import { CodeEditor } from "dumi/theme/slots/CodeEditor";
18
- import { CodePreview } from "dumi/theme/slots/CodePreview";
17
+ import { CodeEditor } from "../CodeEditor";
18
+ import { CodePreview } from "../CodePreview";
19
19
  import { CodeHeader } from "../CodePreview/CodeHeader";
20
20
  import { getDemoInfo } from "./utils";
21
- import { NotFound } from "dumi/theme/slots/404";
21
+ import { NotFound } from "../404";
22
22
  import { ic } from "../hooks";
23
23
 
24
24
  /**
@@ -85,7 +85,10 @@ export var Features = function Features(_ref) {
85
85
  className: styles.content
86
86
  }, /*#__PURE__*/React.createElement("div", {
87
87
  key: "content"
88
- }, /*#__PURE__*/React.createElement("div", {
88
+ }, title && /*#__PURE__*/React.createElement("p", {
89
+ key: "title",
90
+ className: styles.title
91
+ }, title), /*#__PURE__*/React.createElement("div", {
89
92
  key: "block",
90
93
  className: styles.cardsContainer
91
94
  }, /*#__PURE__*/React.createElement(Row, {
@@ -27,11 +27,11 @@ import { useNavigate } from "react-router-dom";
27
27
  import { EditOutlined, MenuFoldOutlined, MenuUnfoldOutlined, VerticalAlignTopOutlined } from '@ant-design/icons';
28
28
  import readingTime from 'reading-time';
29
29
  import URI from 'uri-parse';
30
- import { SEO } from "dumi/theme/slots/SEO";
30
+ import { SEO } from "../SEO";
31
31
  import { getBaseRoute, getIndexRoute, getOpenKeys, getNavigateUrl } from "./utils";
32
32
  import { NavigatorBanner } from "./NavigatorBanner";
33
33
  import ReadingTime from "./ReadingTime";
34
- import { ContentTable } from "dumi/theme/slots/ContentTable";
34
+ import { ContentTable } from "../ContentTable";
35
35
  import { useScrollToTop } from "../hooks";
36
36
  import 'rc-drawer/assets/index.css';
37
37
  import styles from "./index.module.less";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/dumi-theme-antv",
3
- "version": "0.3.0-beta.16",
3
+ "version": "0.3.0-beta.17",
4
4
  "description": "AntV website theme based on dumi2.",
5
5
  "types": "dist/types.d.ts",
6
6
  "scripts": {