@antv/dumi-theme-antv 0.3.0-beta.4 → 0.3.0-beta.6

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/types.d.ts CHANGED
@@ -2,3 +2,85 @@ export interface IThemeConfig {
2
2
  [key: string]: any;
3
3
  }
4
4
  export declare type Status = 'responded' | 'error' | 'timeout';
5
+ /**
6
+ * 配置文件中的国际化配置
7
+ */
8
+ export declare type IC = string | {
9
+ zh: string;
10
+ en: string;
11
+ };
12
+ export interface TreeNode {
13
+ /**
14
+ * id
15
+ */
16
+ id: string;
17
+ /**
18
+ * 孩子节点 key
19
+ */
20
+ childrenKey?: string;
21
+ /**
22
+ * 标题(支持国际化)
23
+ */
24
+ title: {
25
+ zh: string;
26
+ en: string;
27
+ };
28
+ [key: string]: any;
29
+ }
30
+ /** 案例 DEMO */
31
+ export interface Demo extends TreeNode {
32
+ /**
33
+ * 截图
34
+ */
35
+ screenshot: string;
36
+ /**
37
+ * TypeScript 源码文件
38
+ */
39
+ source: string;
40
+ /**
41
+ * DEMO 代码文件名称
42
+ */
43
+ filename: string;
44
+ /**
45
+ * 衍生属性,通过 topic.id + example.id + demo.id 可以计算获取
46
+ */
47
+ relativePath?: string;
48
+ /**
49
+ * 是否为新品
50
+ */
51
+ isNew?: boolean;
52
+ /**
53
+ * 目标 example
54
+ */
55
+ targetExample?: Example;
56
+ /**
57
+ * 目标主题
58
+ */
59
+ targetTopic?: ExampleTopic;
60
+ }
61
+ /** 示例 */
62
+ export interface Example extends TreeNode {
63
+ /**
64
+ * 图标
65
+ */
66
+ icon: string;
67
+ /**
68
+ * DEMO
69
+ */
70
+ demos: Demo[];
71
+ }
72
+ /** 案例主题 */
73
+ export interface ExampleTopic extends TreeNode {
74
+ /**
75
+ * 图标
76
+ */
77
+ icon: string;
78
+ /**
79
+ * slug 和 id 一样,兼容旧配置
80
+ */
81
+ slug?: string;
82
+ /**
83
+ * 所有案例
84
+ */
85
+ examples: Example[];
86
+ }
package/dist/typings.d.ts CHANGED
@@ -22,104 +22,3 @@ declare module '\*.svg' {
22
22
  const content: any;
23
23
  export default content;
24
24
  }
25
-
26
- declare namespace ExamplesPage {
27
- export interface TreeNode {
28
- /**
29
- * id
30
- */
31
- id: string;
32
-
33
- /**
34
- * 孩子节点 key
35
- */
36
- childrenKey?: string;
37
-
38
- /**
39
- * 标题(支持国际化)
40
- */
41
- title: {
42
- zh: string;
43
- en: string;
44
- };
45
-
46
- [key: string]: any;
47
- }
48
-
49
- /** 案例 DEMO */
50
- export interface Demo extends TreeNode {
51
- /**
52
- * 截图
53
- */
54
- screenshot: string;
55
-
56
- /**
57
- * TypeScript 源码文件
58
- */
59
- source: string;
60
-
61
- /**
62
- * DEMO 代码文件名称
63
- */
64
- filename: string;
65
-
66
- /**
67
- * 衍生属性,通过 topic.id + example.id + demo.id 可以计算获取
68
- */
69
- relativePath?: string;
70
-
71
- /**
72
- * 是否为新品
73
- */
74
- isNew?: boolean;
75
-
76
- /**
77
- * 目标 example
78
- */
79
- targetExample?: ExamplesPage.Example;
80
-
81
- /**
82
- * 目标主题
83
- */
84
- targetTopic?: ExamplesPage.ExampleTopic;
85
- }
86
-
87
- /** 示例 */
88
- export interface Example extends TreeNode {
89
- /**
90
- * 图标
91
- */
92
- icon: string;
93
-
94
- /**
95
- * DEMO
96
- */
97
- demos: Demo[];
98
- }
99
-
100
- /** 案例主题 */
101
- export interface ExampleTopic extends TreeNode {
102
- /**
103
- * 图标
104
- */
105
- icon: string;
106
-
107
- /**
108
- * slug 和 id 一样,兼容旧配置
109
- */
110
- slug?: string;
111
-
112
- /**
113
- * 所有案例
114
- */
115
- examples: Example[];
116
- }
117
- }
118
-
119
- /**
120
- * 配置文件中的国际化配置
121
- */
122
- declare type IC = string | {
123
- zh: string;
124
- en: string;
125
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/dumi-theme-antv",
3
- "version": "0.3.0-beta.4",
3
+ "version": "0.3.0-beta.6",
4
4
  "description": "AntV website theme based on dumi2.",
5
5
  "types": "dist/types.d.ts",
6
6
  "scripts": {
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * Loading
4
- */
5
- export declare const Loading: () => JSX.Element;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- /**
3
- * Loading
4
- */
5
-
6
- export var Loading = function Loading() {
7
- return /*#__PURE__*/React.createElement(React.Fragment, null, "404");
8
- };