ronds-metadata 1.1.8 → 1.1.11

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.
@@ -3,10 +3,11 @@ import React from "react";
3
3
  /*
4
4
  * @Author: wangxian
5
5
  * @Date: 2022-05-26 08:50:06
6
- * @LastEditTime: 2022-05-26 09:11:54
6
+ * @LastEditTime: 2022-05-28 11:10:24
7
7
  */
8
8
  import { DragSource } from 'react-dnd';
9
9
  import { GlobalOutlined } from '@ant-design/icons';
10
+ import Icon from '../../../comps/Icons';
10
11
  import { DRAGGABLE_COMPONENT } from '../constant';
11
12
  import "../index.css";
12
13
 
@@ -18,7 +19,9 @@ var InnerNodeTitle = function InnerNodeTitle(props) {
18
19
  className: "node-element"
19
20
  }, /*#__PURE__*/React.createElement("div", {
20
21
  className: "icon"
21
- }, /*#__PURE__*/React.createElement(GlobalOutlined, null)), /*#__PURE__*/React.createElement("div", {
22
+ }, (data === null || data === void 0 ? void 0 : data.icon) ? /*#__PURE__*/React.createElement(Icon, {
23
+ type: data === null || data === void 0 ? void 0 : data.icon
24
+ }) : /*#__PURE__*/React.createElement(GlobalOutlined, null)), /*#__PURE__*/React.createElement("div", {
22
25
  className: "notation"
23
26
  }, /*#__PURE__*/React.createElement("div", {
24
27
  className: "name"
@@ -4,12 +4,13 @@ import _Popover from "antd/es/popover";
4
4
  /*
5
5
  * @Author: wangxian
6
6
  * @Date: 2022-05-27 14:21:23
7
- * @LastEditTime: 2022-05-28 10:10:06
7
+ * @LastEditTime: 2022-05-30 09:45:54
8
8
  */
9
9
  import React from 'react';
10
10
  import { CompressOutlined, OneToOneOutlined, ZoomInOutlined, ZoomOutOutlined } from '@ant-design/icons';
11
11
  import classNames from 'classnames';
12
12
  import "./index.css";
13
+ import { tr } from '../../../../framework/locale';
13
14
  export var GraphHandler = function GraphHandler(props) {
14
15
  var className = props.className,
15
16
  onZoomIn = props.onZoomIn,
@@ -20,28 +21,28 @@ export var GraphHandler = function GraphHandler(props) {
20
21
  className: classNames('handler', className)
21
22
  }, /*#__PURE__*/React.createElement(_Popover, {
22
23
  overlayClassName: "popover",
23
- content: "\u653E\u5927",
24
+ content: tr('放大'),
24
25
  placement: "left"
25
26
  }, /*#__PURE__*/React.createElement("li", {
26
27
  onClick: onZoomIn,
27
28
  className: "item"
28
29
  }, /*#__PURE__*/React.createElement(ZoomInOutlined, null))), /*#__PURE__*/React.createElement(_Popover, {
29
30
  overlayClassName: "popover",
30
- content: "\u7F29\u5C0F",
31
+ content: tr('缩小'),
31
32
  placement: "left"
32
33
  }, /*#__PURE__*/React.createElement("li", {
33
34
  onClick: onZoomOut,
34
35
  className: "item"
35
36
  }, /*#__PURE__*/React.createElement(ZoomOutOutlined, null))), /*#__PURE__*/React.createElement(_Popover, {
36
37
  overlayClassName: "popover",
37
- content: "\u5B9E\u9645\u5C3A\u5BF8",
38
+ content: tr('实际尺寸'),
38
39
  placement: "left"
39
40
  }, /*#__PURE__*/React.createElement("li", {
40
41
  onClick: onRealContent,
41
42
  className: "item"
42
43
  }, /*#__PURE__*/React.createElement(OneToOneOutlined, null))), /*#__PURE__*/React.createElement(_Popover, {
43
44
  overlayClassName: "popover",
44
- content: "\u9002\u5E94\u753B\u5E03",
45
+ content: tr('适应画布'),
45
46
  placement: "left"
46
47
  }, /*#__PURE__*/React.createElement("li", {
47
48
  onClick: onFitContent,
@@ -3,20 +3,24 @@ import React from "react";
3
3
  /*
4
4
  * @Author: wangxian
5
5
  * @Date: 2022-05-24 08:50:16
6
- * @LastEditTime: 2022-05-26 16:37:24
6
+ * @LastEditTime: 2022-05-28 11:09:22
7
7
  */
8
8
  import { GlobalOutlined } from '@ant-design/icons';
9
9
  import "../index.css";
10
+ import Icon from '../../../comps/Icons';
10
11
 
11
12
  var NodeElement = function NodeElement(props) {
12
13
  var node = props.node;
13
14
  var data = (node === null || node === void 0 ? void 0 : node.getData()) || {};
14
- var name = data.name;
15
+ var name = data.name,
16
+ icon = data.icon;
15
17
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
16
18
  className: "node-element"
17
19
  }, /*#__PURE__*/React.createElement("div", {
18
- className: 'icon'
19
- }, /*#__PURE__*/React.createElement(GlobalOutlined, null)), /*#__PURE__*/React.createElement("div", {
20
+ className: "icon"
21
+ }, icon ? /*#__PURE__*/React.createElement(Icon, {
22
+ type: icon
23
+ }) : /*#__PURE__*/React.createElement(GlobalOutlined, null)), /*#__PURE__*/React.createElement("div", {
20
24
  className: "notation"
21
25
  }, /*#__PURE__*/React.createElement("div", {
22
26
  className: "name"
@@ -5,13 +5,15 @@
5
5
  width: 180px;
6
6
  height: 32px;
7
7
  overflow: hidden;
8
- background-color: #fff;
8
+ background-color: var(--ronds-metadata-color-bg-4);
9
+ color: var(--ronds-metadata-color-text-1);
9
10
  border-radius: 4px;
10
11
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
11
12
  }
12
13
  .node-element.selected,
13
14
  .node-element:hover {
14
- background-color: rgba(243, 249, 255, 0.92);
15
+ background-color: var(--ronds-metadata-color-bg-4);
16
+ color: var(--ronds-metadata-color-text-1);
15
17
  border: 1px solid #1890ff;
16
18
  box-shadow: 0 0 3px 3px rgba(64, 169, 255, 0.2);
17
19
  }
@@ -31,7 +33,7 @@
31
33
  justify-content: center;
32
34
  width: 32px;
33
35
  height: 32px;
34
- background-color: rgba(229, 238, 255, 0.85);
36
+ background-color: var(--ronds-metadata-color-bg-2);
35
37
  border-radius: 4px 0 0 4px;
36
38
  }
37
39
  .node-element .notation {
@@ -46,7 +48,7 @@
46
48
  }
47
49
  .node-element .notation .name {
48
50
  overflow-x: hidden;
49
- color: rgba(0, 0, 0, 0.65);
51
+ color: var(--ronds-metadata-color-text-1);
50
52
  font-size: 12px;
51
53
  white-space: nowrap;
52
54
  text-overflow: ellipsis;
@@ -77,7 +79,7 @@
77
79
  display: block;
78
80
  }
79
81
  .dynamic-ports .x6-node-selected .node-element {
80
- background-color: rgba(243, 249, 255, 0.92);
82
+ background-color: var(--ronds-metadata-color-bg-4);
81
83
  border: 1px solid #1890ff;
82
84
  box-shadow: 0 0 3px 3px rgba(64, 169, 255, 0.2);
83
85
  }
@@ -4,13 +4,41 @@ export declare namespace NDPGraph {
4
4
  edges: Edge[];
5
5
  }
6
6
  interface Node {
7
+ /**
8
+ * 图渲染的主键id
9
+ */
7
10
  id: string;
11
+ /**
12
+ * 原始组件库的id
13
+ */
8
14
  libId?: string;
15
+ /**
16
+ * 图标
17
+ */
18
+ icon?: string;
19
+ /**
20
+ * 名称
21
+ */
9
22
  name: string;
23
+ /**
24
+ * 输入引脚
25
+ */
10
26
  inPorts: InPort[];
27
+ /**
28
+ * 输出引脚
29
+ */
11
30
  outPorts: OutPort[];
31
+ /**
32
+ * position x
33
+ */
12
34
  x: number;
35
+ /**
36
+ * position y
37
+ */
13
38
  y: number;
39
+ /**
40
+ * 附带参数信息
41
+ */
14
42
  param?: Param;
15
43
  }
16
44
  interface Edge {
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * @Author: wangxian
3
3
  * @Date: 2022-05-24 16:10:46
4
- * @LastEditTime: 2022-05-26 10:47:42
4
+ * @LastEditTime: 2022-05-30 09:44:45
5
5
  */
6
6
  export {};
@@ -22,6 +22,7 @@ export declare function formatNodeInfoToNodeMeta(nodeData: NDPGraph.Node, inputP
22
22
  y: number;
23
23
  id: string;
24
24
  libId?: string;
25
+ icon?: string;
25
26
  name: string;
26
27
  inPorts: NDPGraph.InPort[];
27
28
  outPorts: NDPGraph.OutPort[];
@@ -32,6 +33,7 @@ export declare function formatNodeInfoToNodeMeta(nodeData: NDPGraph.Node, inputP
32
33
  };
33
34
  zIndex: number;
34
35
  libId?: string;
36
+ icon?: string;
35
37
  name: string;
36
38
  inPorts: NDPGraph.InPort[];
37
39
  outPorts: NDPGraph.OutPort[];
@@ -55,6 +57,7 @@ export declare function formatGraphData(graphData: NDPGraph.GraphData): {
55
57
  y: number;
56
58
  id: string;
57
59
  libId?: string;
60
+ icon?: string;
58
61
  name: string;
59
62
  inPorts: NDPGraph.InPort[];
60
63
  outPorts: NDPGraph.OutPort[];
@@ -65,6 +68,7 @@ export declare function formatGraphData(graphData: NDPGraph.GraphData): {
65
68
  };
66
69
  zIndex: number;
67
70
  libId?: string;
71
+ icon?: string;
68
72
  name: string;
69
73
  inPorts: NDPGraph.InPort[];
70
74
  outPorts: NDPGraph.OutPort[];
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import '../../framework/libs/iconfont/iconfont.css';
3
+ interface Props {
4
+ /**
5
+ * 图标类型
6
+ */
7
+ type: string;
8
+ /**
9
+ * class样式
10
+ */
11
+ className?: string;
12
+ /**
13
+ * style
14
+ */
15
+ style?: React.CSSProperties;
16
+ }
17
+ declare const Icon: React.FC<Props>;
18
+ export default Icon;
@@ -0,0 +1,23 @@
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import React from "react";
3
+
4
+ /*
5
+ * @Author: wangxian
6
+ * @Date: 2022-05-28 11:04:20
7
+ * @LastEditTime: 2022-05-28 11:15:23
8
+ */
9
+ import '../../framework/libs/iconfont/iconfont.css';
10
+
11
+ var Icon = function Icon(props) {
12
+ var type = props.type,
13
+ _props$className = props.className,
14
+ className = _props$className === void 0 ? '' : _props$className,
15
+ _props$style = props.style,
16
+ style = _props$style === void 0 ? {} : _props$style;
17
+ return /*#__PURE__*/React.createElement("span", {
18
+ className: "fa fa-".concat(type, " ").concat(className),
19
+ style: _objectSpread({}, style)
20
+ });
21
+ };
22
+
23
+ export default Icon;
@@ -1,20 +1,20 @@
1
- export interface IMetaFileds {
2
- id: string;
3
- type: 'object';
4
- properties: any[];
5
- value: any;
6
- }
7
-
8
- export type ITypeStatus = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array';
9
-
10
- export type IMetaProperty = {
11
- /**
12
- * 属性的名称
13
- */
14
- id: string;
15
- /**
16
- * 类型
17
- */
18
- type: string;
19
- enum?: any[];
20
- };
1
+ export interface IMetaFileds {
2
+ id: string;
3
+ type: 'object';
4
+ properties: any[];
5
+ value: any;
6
+ }
7
+
8
+ export type ITypeStatus = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array';
9
+
10
+ export type IMetaProperty = {
11
+ /**
12
+ * 属性的名称
13
+ */
14
+ id: string;
15
+ /**
16
+ * 类型
17
+ */
18
+ type: string;
19
+ enum?: any[];
20
+ };
@@ -12,5 +12,9 @@ declare const _default: {
12
12
  请输入title: string;
13
13
  确认会删除该列: string;
14
14
  当前值无修改: string;
15
+ 放大: string;
16
+ 缩小: string;
17
+ 实际尺寸: string;
18
+ 适应画布: string;
15
19
  };
16
20
  export default _default;
@@ -1,3 +1,8 @@
1
+ /*
2
+ * @Author: wangxian
3
+ * @Date: 2022-05-09 11:53:44
4
+ * @LastEditTime: 2022-05-28 10:21:09
5
+ */
1
6
  export default {
2
7
  操作: 'Operation',
3
8
  添加一行: 'Add New Line',
@@ -11,5 +16,9 @@ export default {
11
16
  请输入key: 'Please enter key',
12
17
  请输入title: 'Please enter title',
13
18
  确认会删除该列: 'Confirm will delete the column?',
14
- 当前值无修改: 'No change to current value'
19
+ 当前值无修改: 'No change to current value',
20
+ 放大: 'Enlarge',
21
+ 缩小: 'zoom out',
22
+ 实际尺寸: 'Actual size',
23
+ 适应画布: 'Fit to canvas'
15
24
  };
@@ -12,5 +12,9 @@ declare const _default: {
12
12
  请输入title: string;
13
13
  确认会删除该列: string;
14
14
  当前值无修改: string;
15
+ 放大: string;
16
+ 缩小: string;
17
+ 实际尺寸: string;
18
+ 适应画布: string;
15
19
  };
16
20
  export default _default;
@@ -1,3 +1,8 @@
1
+ /*
2
+ * @Author: wangxian
3
+ * @Date: 2022-05-09 11:53:44
4
+ * @LastEditTime: 2022-05-28 10:19:25
5
+ */
1
6
  export default {
2
7
  操作: '操作',
3
8
  添加一行: '添加一行',
@@ -11,5 +16,9 @@ export default {
11
16
  请输入key: '请输入key',
12
17
  请输入title: '请输入title',
13
18
  确认会删除该列: '确认会删除该列?',
14
- 当前值无修改: '当前值无修改'
19
+ 当前值无修改: '当前值无修改',
20
+ 放大: '放大',
21
+ 缩小: '缩小',
22
+ 实际尺寸: '实际尺寸',
23
+ 适应画布: '适应画布'
15
24
  };
package/es/config.js CHANGED
@@ -3,7 +3,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
3
  /*
4
4
  * @Author: wangxian
5
5
  * @Date: 2021-09-18 14:15:04
6
- * @LastEditTime: 2022-05-10 08:41:39
6
+ * @LastEditTime: 2022-05-30 08:43:00
7
7
  */
8
8
  import { BehaviorSubject } from 'rxjs/internal/BehaviorSubject';
9
9
  import { distinctUntilChanged } from 'rxjs/internal/operators/distinctUntilChanged';
@@ -0,0 +1,203 @@
1
+ @font-face {
2
+ font-family: "fa"; /* Project id 2247093 */
3
+ src: url('iconfont.woff2?t=1653875373166') format('woff2'),
4
+ url('iconfont.woff?t=1653875373166') format('woff'),
5
+ url('iconfont.ttf?t=1653875373166') format('truetype');
6
+ }
7
+
8
+ .fa {
9
+ font-family: "fa" !important;
10
+ font-size: 16px;
11
+ font-style: normal;
12
+ -webkit-font-smoothing: antialiased;
13
+ -moz-osx-font-smoothing: grayscale;
14
+ }
15
+
16
+ .fa-ai:before {
17
+ content: "\e887";
18
+ }
19
+
20
+ .fa-signal:before {
21
+ content: "\ec4a";
22
+ }
23
+
24
+ .fa-circle:before {
25
+ content: "\e660";
26
+ }
27
+
28
+ .fa-scan:before {
29
+ content: "\e6df";
30
+ }
31
+
32
+ .fa-py:before {
33
+ content: "\e916";
34
+ }
35
+
36
+ .fa-Redis:before {
37
+ content: "\e669";
38
+ }
39
+
40
+ .fa-hezi:before {
41
+ content: "\e60b";
42
+ }
43
+
44
+ .fa-message:before {
45
+ content: "\e637";
46
+ }
47
+
48
+ .fa-shujuku:before {
49
+ content: "\e645";
50
+ }
51
+
52
+ .fa-hourglass:before {
53
+ content: "\e66b";
54
+ }
55
+
56
+ .fa-Bucket:before {
57
+ content: "\e8ce";
58
+ }
59
+
60
+ .fa-RondsLake:before {
61
+ content: "\e8a2";
62
+ }
63
+
64
+ .fa-Schema:before {
65
+ content: "\e62a";
66
+ }
67
+
68
+ .fa-Minio:before {
69
+ content: "\e64e";
70
+ }
71
+
72
+ .fa-color:before {
73
+ content: "\e678";
74
+ }
75
+
76
+ .fa-Neo4j:before {
77
+ content: "\e612";
78
+ }
79
+
80
+ .fa-knowledge:before {
81
+ content: "\e621";
82
+ }
83
+
84
+ .fa-evaluate:before {
85
+ content: "\e608";
86
+ }
87
+
88
+ .fa-json1:before {
89
+ content: "\e7bd";
90
+ }
91
+
92
+ .fa-result:before {
93
+ content: "\e64c";
94
+ }
95
+
96
+ .fa-analysis:before {
97
+ content: "\e72e";
98
+ }
99
+
100
+ .fa-select:before {
101
+ content: "\e701";
102
+ }
103
+
104
+ .fa-Http:before {
105
+ content: "\e668";
106
+ }
107
+
108
+ .fa-question:before {
109
+ content: "\e60e";
110
+ }
111
+
112
+ .fa-monitor:before {
113
+ content: "\e61f";
114
+ }
115
+
116
+ .fa-algorithm_lab:before {
117
+ content: "\e607";
118
+ }
119
+
120
+ .fa-engine:before {
121
+ content: "\e610";
122
+ }
123
+
124
+ .fa-user:before {
125
+ content: "\e713";
126
+ }
127
+
128
+ .fa-logout:before {
129
+ content: "\e611";
130
+ }
131
+
132
+ .fa-screen:before {
133
+ content: "\e606";
134
+ }
135
+
136
+ .fa-password:before {
137
+ content: "\e605";
138
+ }
139
+
140
+ .fa-news:before {
141
+ content: "\e638";
142
+ }
143
+
144
+ .fa-record:before {
145
+ content: "\e648";
146
+ }
147
+
148
+ .fa-home:before {
149
+ content: "\e609";
150
+ }
151
+
152
+ .fa-json:before {
153
+ content: "\e61a";
154
+ }
155
+
156
+ .fa-code:before {
157
+ content: "\e654";
158
+ }
159
+
160
+ .fa-diagram:before {
161
+ content: "\e60a";
162
+ }
163
+
164
+ .fa-setting:before {
165
+ content: "\e84b";
166
+ }
167
+
168
+ .fa-datasource:before {
169
+ content: "\e62e";
170
+ }
171
+
172
+ .fa-stream:before {
173
+ content: "\ec56";
174
+ }
175
+
176
+ .fa-Kafka:before {
177
+ content: "\e64f";
178
+ }
179
+
180
+ .fa-Table:before {
181
+ content: "\e72d";
182
+ }
183
+
184
+ .fa-PostgreSql:before {
185
+ content: "\e63b";
186
+ }
187
+
188
+ .fa-link:before {
189
+ content: "\e636";
190
+ }
191
+
192
+ .fa-LocalFileSystem:before {
193
+ content: "\e600";
194
+ }
195
+
196
+ .fa-Cassandra:before {
197
+ content: "\e74f";
198
+ }
199
+
200
+ .fa-DataBase:before {
201
+ content: "\e797";
202
+ }
203
+
package/es/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export { default as MdEditor } from './comps/MdEdit';
9
9
  export { default as Editable } from './comps/Editable';
10
10
  export { default as DynamicPorts } from './comps/DynamicPorts';
11
11
  export { default as DragNode } from './comps/DynamicPorts/comps/DragNode';
12
+ export { default as Icon } from './comps/Icons';
12
13
  export * from './framework/metadata/index';
13
14
  export { default as http, addInterceptor } from './framework/http/index';
14
15
  export { default as useMemoSubject } from './framework/rxjs-hooks/useMemoSubject';
package/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * @Author:wangxian
3
3
  * @Date: 2021-09-18 14:15:04
4
- * @LastEditTime: 2022-05-26 09:02:38
4
+ * @LastEditTime: 2022-05-28 11:18:17
5
5
  */
6
6
  import "./theme.css";
7
7
  export { default as MetadataEdit } from './comps/MetadataEdit';
@@ -14,6 +14,7 @@ export { default as MdEditor } from './comps/MdEdit';
14
14
  export { default as Editable } from './comps/Editable';
15
15
  export { default as DynamicPorts } from './comps/DynamicPorts';
16
16
  export { default as DragNode } from './comps/DynamicPorts/comps/DragNode';
17
+ export { default as Icon } from './comps/Icons';
17
18
  export * from './framework/metadata/index';
18
19
  export { default as http, addInterceptor } from './framework/http/index';
19
20
  export { default as useMemoSubject } from './framework/rxjs-hooks/useMemoSubject';
package/es/theme.css CHANGED
@@ -1,5 +1,8 @@
1
1
  .ronds-metadata-dark {
2
2
  --ronds-metadata-color-border-1: #314162;
3
+ --ronds-metadata-color-bg-2: #0d1f40;
4
+ --ronds-metadata-color-bg-4: #1c3771;
5
+ --ronds-metadata-color-text-1: #ffffff;
3
6
  }
4
7
  .ronds-metadata-dark ::-webkit-scrollbar {
5
8
  width: 6px;
@@ -26,6 +29,9 @@
26
29
  }
27
30
  .ronds-metadata-normal {
28
31
  --ronds-metadata-color-border-1: #d9d9d9;
32
+ --ronds-metadata-color-bg-2: rgba(229, 238, 255, 0.85);
33
+ --ronds-metadata-color-bg-4: #ffffff;
34
+ --ronds-metadata-color-text-1: #1d2129;
29
35
  }
30
36
  .ronds-metadata-normal ::-webkit-scrollbar {
31
37
  width: 6px;
package/package.json CHANGED
@@ -1,85 +1,86 @@
1
- {
2
- "public": true,
3
- "name": "ronds-metadata",
4
- "version": "1.1.8",
5
- "scripts": {
6
- "start": "dumi dev",
7
- "docs:build": "dumi build",
8
- "docs:deploy": "gh-pages -d docs-dist",
9
- "build": "father-build",
10
- "deploy": "npm run docs:build && npm run docs:deploy",
11
- "release": "npm run build && npm publish",
12
- "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
13
- "test": "umi-test",
14
- "test:coverage": "umi-test --coverage"
15
- },
16
- "main": "es",
17
- "module": "es",
18
- "types": "es/index.d.ts",
19
- "gitHooks": {
20
- "pre-commit": "lint-staged"
21
- },
22
- "lint-staged": {
23
- "*.{js,jsx,less,md,json}": [
24
- "prettier --write"
25
- ],
26
- "*.ts?(x)": [
27
- "prettier --parser=typescript --write"
28
- ]
29
- },
30
- "files": [
31
- "/es"
32
- ],
33
- "dependencies": {
34
- "@antv/x6": "^1.32.2",
35
- "@antv/x6-react-shape": "^1.6.0",
36
- "@babel/helper-create-regexp-features-plugin": "^7.12.13",
37
- "@babel/runtime": "^7.11.2",
38
- "@popperjs/core": "^2.4.4",
39
- "ahooks": "^3.4.0",
40
- "axios": "^0.21.4",
41
- "babel-plugin-import": "^1.13.3",
42
- "babel-plugin-transform-remove-console": "^6.9.4",
43
- "bl": "^5.0.0",
44
- "codemirror": "^5.63.0",
45
- "highlight.js": "11.3.1",
46
- "immer": "^9.0.14",
47
- "lodash": "^4.17.21",
48
- "markdown-it": "^12.3.2",
49
- "markdown-it-emoji": "^2.0.0",
50
- "qs": "^6.10.1",
51
- "react": "^17.0.2",
52
- "react-dnd": "^11.1.3",
53
- "react-dnd-html5-backend": "^11.1.3",
54
- "react-markdown-editor-lite": "^1.3.2",
55
- "react-popper": "^2.2.3",
56
- "rxjs": "^7.5.4"
57
- },
58
- "peerDependencies": {
59
- "antd": ">=4.1.5",
60
- "react": ">=16.14.0",
61
- "react-dom": ">=16.14.0",
62
- "react-router": ">=5.0.0",
63
- "styled-components": ">=4.1.1"
64
- },
65
- "devDependencies": {
66
- "@types/react": "^17.0.2",
67
- "@types/react-dom": "^17.0.2",
68
- "@types/react-router": "^5.1.8",
69
- "@types/react-window": "^1.8.2",
70
- "@types/styled-components": "^5.1.2",
71
- "@umijs/test": "^3.0.5",
72
- "antd": "^4.18.1",
73
- "babel-loader": "^8.1.0",
74
- "css-loader": "^4.2.2",
75
- "dumi": "^1.0.16",
76
- "father-build": "^1.17.2",
77
- "gh-pages": "^3.0.0",
78
- "less-loader": "^7.0.0",
79
- "lint-staged": "^10.0.7",
80
- "prettier": "^2.2.1",
81
- "style-loader": "^1.2.1",
82
- "webpack-cli": "^3.3.12",
83
- "yorkie": "^2.0.0"
84
- }
85
- }
1
+ {
2
+ "public": true,
3
+ "name": "ronds-metadata",
4
+ "version": "1.1.11",
5
+ "scripts": {
6
+ "start": "dumi dev",
7
+ "docs:build": "dumi build",
8
+ "docs:deploy": "gh-pages -d docs-dist",
9
+ "build": "father-build",
10
+ "deploy": "npm run docs:build && npm run docs:deploy",
11
+ "release": "npm run build && npm publish",
12
+ "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
13
+ "test": "umi-test",
14
+ "test:coverage": "umi-test --coverage"
15
+ },
16
+ "main": "es",
17
+ "module": "es",
18
+ "types": "es/index.d.ts",
19
+ "gitHooks": {
20
+ "pre-commit": "lint-staged"
21
+ },
22
+ "lint-staged": {
23
+ "*.{js,jsx,less,md,json}": [
24
+ "prettier --write"
25
+ ],
26
+ "*.ts?(x)": [
27
+ "prettier --parser=typescript --write"
28
+ ]
29
+ },
30
+ "files": [
31
+ "/es"
32
+ ],
33
+ "dependencies": {
34
+ "@antv/x6": "^1.32.2",
35
+ "@antv/x6-react-shape": "^1.6.0",
36
+ "@babel/helper-create-regexp-features-plugin": "^7.12.13",
37
+ "@babel/runtime": "^7.11.2",
38
+ "@popperjs/core": "^2.4.4",
39
+ "ahooks": "^3.4.0",
40
+ "axios": "^0.21.4",
41
+ "babel-plugin-import": "^1.13.3",
42
+ "babel-plugin-transform-remove-console": "^6.9.4",
43
+ "bl": "^5.0.0",
44
+ "codemirror": "^5.63.0",
45
+ "highlight.js": "11.3.1",
46
+ "immer": "^9.0.14",
47
+ "lodash": "^4.17.21",
48
+ "markdown-it": "^12.3.2",
49
+ "markdown-it-emoji": "^2.0.0",
50
+ "qs": "^6.10.1",
51
+ "react": "^17.0.2",
52
+ "react-dnd": "^11.1.3",
53
+ "react-dnd-html5-backend": "^11.1.3",
54
+ "react-markdown-editor-lite": "^1.3.2",
55
+ "react-popper": "^2.2.3",
56
+ "rxjs": "^7.5.4"
57
+ },
58
+ "peerDependencies": {
59
+ "antd": ">=4.1.5",
60
+ "react": ">=16.14.0",
61
+ "react-dom": ">=16.14.0",
62
+ "react-router": ">=5.0.0",
63
+ "styled-components": ">=4.1.1"
64
+ },
65
+ "devDependencies": {
66
+ "@types/react": "^17.0.2",
67
+ "@types/react-dom": "^17.0.2",
68
+ "@types/react-router": "^5.1.8",
69
+ "@types/react-window": "^1.8.2",
70
+ "@types/styled-components": "^5.1.2",
71
+ "@umijs/test": "^3.0.5",
72
+ "antd": "^4.18.1",
73
+ "babel-loader": "^8.1.0",
74
+ "css-loader": "^4.2.2",
75
+ "dumi": "^1.0.16",
76
+ "father-build": "^1.17.2",
77
+ "gh-pages": "^3.0.0",
78
+ "less-loader": "^7.0.0",
79
+ "lint-staged": "^10.0.7",
80
+ "prettier": "^2.2.1",
81
+ "style-loader": "^1.2.1",
82
+ "webpack-cli": "^3.3.12",
83
+ "copy-to-clipboard": "^3.3.1",
84
+ "yorkie": "^2.0.0"
85
+ }
86
+ }