ronds-metadata 1.2.38 → 1.2.39

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. package/es/api/index.js +83 -131
  2. package/es/comps/DynamicPorts/comps/ContextMenu.js +3 -11
  3. package/es/comps/DynamicPorts/comps/DragNode.js +2 -7
  4. package/es/comps/DynamicPorts/comps/GraphHandler/index.js +4 -5
  5. package/es/comps/DynamicPorts/comps/NodeElement.js +1 -4
  6. package/es/comps/DynamicPorts/comps/contextMenu/EdgeContextMenu/index.js +3 -6
  7. package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.js +3 -7
  8. package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.js +18 -21
  9. package/es/comps/DynamicPorts/comps/shape/edge.js +5 -18
  10. package/es/comps/DynamicPorts/comps/shape/node.js +4 -17
  11. package/es/comps/DynamicPorts/constant/index.js +2 -5
  12. package/es/comps/DynamicPorts/graph.d.ts +2 -2
  13. package/es/comps/DynamicPorts/graph.js +228 -312
  14. package/es/comps/DynamicPorts/index.js +39 -58
  15. package/es/comps/DynamicPorts/utils.js +21 -25
  16. package/es/comps/Editable/DataCell/ButtonCell.js +4 -10
  17. package/es/comps/Editable/DataCell/ColorPicker.js +2 -7
  18. package/es/comps/Editable/DataCell/Input.js +5 -14
  19. package/es/comps/Editable/DataCell/Number.js +3 -10
  20. package/es/comps/Editable/DataCell/Select.js +7 -14
  21. package/es/comps/Editable/DataCell/Switch.js +2 -7
  22. package/es/comps/Editable/comps/EditableAction.js +8 -12
  23. package/es/comps/Editable/comps/EditableCell.js +16 -26
  24. package/es/comps/Editable/comps/EditableHeardCell.js +21 -34
  25. package/es/comps/Editable/comps/EditableRow.js +49 -59
  26. package/es/comps/Editable/comps/Texty.js +36 -72
  27. package/es/comps/Editable/index.js +67 -112
  28. package/es/comps/Editable/interface.d.ts +1 -1
  29. package/es/comps/Editable/utils.js +0 -1
  30. package/es/comps/FileView/index.js +65 -101
  31. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.js +8 -13
  32. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Color.js +8 -4
  33. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Date.js +6 -2
  34. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Input.js +8 -4
  35. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/List.js +6 -11
  36. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/MutiSelect.js +6 -10
  37. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Number.js +6 -2
  38. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Obj.js +6 -11
  39. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Password.js +8 -4
  40. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Radio.js +8 -13
  41. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Select.js +6 -10
  42. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Switch.js +6 -2
  43. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Table.js +6 -11
  44. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/TextArea.js +6 -3
  45. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Upload.js +2 -5
  46. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/HOC/index.js +86 -109
  47. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.js +3 -7
  48. package/es/comps/FormGenerator/comps/Canvas/core/index.js +54 -91
  49. package/es/comps/FormGenerator/comps/Canvas/core/index.less +23 -23
  50. package/es/comps/FormGenerator/comps/Canvas/index.js +8 -15
  51. package/es/comps/FormGenerator/comps/Settings/index.js +16 -30
  52. package/es/comps/FormGenerator/comps/Sidebar/Elements.js +23 -22
  53. package/es/comps/FormGenerator/comps/Sidebar/index.js +6 -2
  54. package/es/comps/FormGenerator/index.js +3 -9
  55. package/es/comps/FormGenerator/interface.d.ts +1 -1
  56. package/es/comps/FormGenerator/settings/index.js +12 -11
  57. package/es/comps/FormGenerator/settings/ruleConfig.js +0 -1
  58. package/es/comps/FormGenerator/transformer.js +40 -105
  59. package/es/comps/Icons/index.js +4 -7
  60. package/es/comps/JsonEdit/index.js +25 -50
  61. package/es/comps/JsonView/index.js +7 -21
  62. package/es/comps/JsonView/index.less +41 -41
  63. package/es/comps/MdEdit/index.js +7 -10
  64. package/es/comps/MdEdit/index.less +6 -6
  65. package/es/comps/MdEditPro/index.d.ts +10 -0
  66. package/es/comps/MdEditPro/index.js +22 -0
  67. package/es/comps/MdEditPro/index.less +74 -0
  68. package/es/comps/MdNavbar/index.js +17 -40
  69. package/es/comps/MdNavbar/utils.js +0 -4
  70. package/es/comps/MdView/index.js +7 -11
  71. package/es/comps/MdView/index.less +353 -353
  72. package/es/comps/MetadataEdit/components/MetaFieldsEdit.js +129 -183
  73. package/es/comps/MetadataEdit/components/MetaPropsEdit.js +11 -27
  74. package/es/comps/MetadataEdit/hooks/index.js +3 -11
  75. package/es/comps/MetadataEdit/index.js +25 -58
  76. package/es/comps/MetadataEdit/index.less +10 -10
  77. package/es/comps/MetadataEdit/type.d.ts +20 -20
  78. package/es/comps/MetadataEditV2/components/MetaFieldsEdit.js +17 -33
  79. package/es/comps/MetadataEditV2/components/MetaPropsEdit.js +15 -29
  80. package/es/comps/MetadataEditV2/hooks/index.js +5 -12
  81. package/es/comps/MetadataEditV2/index.js +30 -65
  82. package/es/comps/MetadataForm/DataCell/Array.js +12 -23
  83. package/es/comps/MetadataForm/DataCell/Input.js +12 -32
  84. package/es/comps/MetadataForm/DataCell/Number.js +10 -21
  85. package/es/comps/MetadataForm/DataCell/Ref.js +87 -121
  86. package/es/comps/MetadataForm/DataCell/Select.js +127 -222
  87. package/es/comps/MetadataForm/DataCell/Switch.js +7 -14
  88. package/es/comps/MetadataForm/DataCell/layout/TableArray.js +93 -164
  89. package/es/comps/MetadataForm/HOC/index.js +20 -37
  90. package/es/comps/MetadataForm/HOC/index.less +41 -41
  91. package/es/comps/MetadataForm/hooks/index.js +12 -38
  92. package/es/comps/MetadataForm/index.js +37 -72
  93. package/es/comps/MetadataForm/interface.d.ts +3 -3
  94. package/es/comps/MetadataForm/utils.js +0 -14
  95. package/es/comps/Split/index.js +20 -22
  96. package/es/config.js +0 -4
  97. package/es/framework/RxStore/demo/index.js +9 -10
  98. package/es/framework/RxStore/hooks.d.ts +9 -9
  99. package/es/framework/RxStore/hooks.js +10 -35
  100. package/es/framework/RxStore/store.d.ts +4 -4
  101. package/es/framework/RxStore/store.js +0 -10
  102. package/es/framework/fg/index.js +18 -80
  103. package/es/framework/fg/interface.d.ts +2 -2
  104. package/es/framework/fg/utils.js +0 -10
  105. package/es/framework/graph/index.d.ts +2 -2
  106. package/es/framework/graph/index.js +55 -110
  107. package/es/framework/hooks/use-async-memo.js +3 -7
  108. package/es/framework/hooks/use-sync-scroll.js +2 -15
  109. package/es/framework/http/cache.js +25 -32
  110. package/es/framework/http/cancel.js +1 -7
  111. package/es/framework/http/index.js +22 -82
  112. package/es/framework/http/msgpack.js +0 -4
  113. package/es/framework/http/msgpack5/index.js +2 -12
  114. package/es/framework/http/msgpack5/lib/codecs/DateCodec.js +1 -13
  115. package/es/framework/http/msgpack5/lib/decoder.js +10 -68
  116. package/es/framework/http/msgpack5/lib/encoder.js +8 -36
  117. package/es/framework/http/msgpack5/lib/helpers.js +3 -2
  118. package/es/framework/http/msgpack5/lib/streams.js +0 -18
  119. package/es/framework/libs/jquery.min.js +1009 -1696
  120. package/es/framework/locale/dil8/di18n.js +4 -15
  121. package/es/framework/locale/dil8/translate.js +0 -14
  122. package/es/framework/locale/dil8/util.js +0 -3
  123. package/es/framework/locale/index.js +2 -3
  124. package/es/framework/metadata/MetadataService.js +39 -78
  125. package/es/framework/metadata/index.js +4 -70
  126. package/es/framework/metadata/types.d.ts +98 -98
  127. package/es/framework/rxjs-hooks/useMemoSubject.js +0 -2
  128. package/es/framework/rxjs-hooks/useObservable.js +2 -4
  129. package/es/framework/rxjs-hooks/useObservableState.js +8 -14
  130. package/es/index.d.ts +1 -0
  131. package/es/index.js +2 -1
  132. package/es/theme.less +79 -79
  133. package/es/utils.js +58 -97
  134. package/package.json +104 -102
package/es/utils.js CHANGED
@@ -1,9 +1,8 @@
1
- import _regeneratorRuntime from "@babel/runtime/regenerator";
2
1
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
2
  import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
4
3
  import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
5
4
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
6
-
5
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
7
6
  /*
8
7
  * @Author: wangxian
9
8
  * @Date: 2021-09-18 14:15:04
@@ -14,41 +13,36 @@ import { asBlob } from 'html-docx-js-typescript';
14
13
  import MarkdownIt from 'markdown-it';
15
14
  import { useCallback, useEffect, useRef } from 'react';
16
15
  /** 防抖 */
17
-
18
16
  export function useDebounce(fn, delay) {
19
17
  var dep = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
20
-
21
18
  var _useRef = useRef({
22
- fn: fn,
23
- timer: null
24
- }),
25
- current = _useRef.current;
26
-
19
+ fn: fn,
20
+ timer: null
21
+ }),
22
+ current = _useRef.current;
27
23
  useEffect(function () {
28
24
  current.fn = fn;
29
25
  return function () {
30
26
  if (current.timer) {
31
27
  clearTimeout(current.timer);
32
28
  }
33
- }; // eslint-disable-next-line
29
+ };
30
+ // eslint-disable-next-line
34
31
  }, [fn]);
35
32
  return useCallback(function f() {
36
33
  var _this = this;
37
-
38
34
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
39
35
  args[_key] = arguments[_key];
40
36
  }
41
-
42
37
  if (current.timer) {
43
38
  clearTimeout(current.timer);
44
39
  }
45
-
46
40
  current.timer = setTimeout(function () {
47
41
  var _current$fn;
48
-
49
42
  // @ts-ignore
50
43
  (_current$fn = current.fn).call.apply(_current$fn, [_this].concat(args));
51
- }, delay); // eslint-disable-next-line
44
+ }, delay);
45
+ // eslint-disable-next-line
52
46
  }, dep);
53
47
  }
54
48
  /**
@@ -60,34 +54,30 @@ export function useDebounce(fn, delay) {
60
54
  * @param {DependencyList} [dep=[]]
61
55
  * @returns
62
56
  */
63
-
64
57
  export function useThrottle(fn, delay) {
65
58
  var dep = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
66
-
67
59
  var _useRef2 = useRef({
68
- fn: fn,
69
- timer: null
70
- }),
71
- current = _useRef2.current;
72
-
60
+ fn: fn,
61
+ timer: null
62
+ }),
63
+ current = _useRef2.current;
73
64
  useEffect(function () {
74
- current.fn = fn; // eslint-disable-next-line
65
+ current.fn = fn;
66
+ // eslint-disable-next-line
75
67
  }, [fn]);
76
68
  return useCallback(function f() {
77
69
  if (!current.timer) {
78
70
  var _current$fn2;
79
-
80
71
  current.timer = setTimeout(function () {
81
72
  delete current.timer;
82
- }, delay); // @ts-ignore
83
-
73
+ }, delay);
74
+ // @ts-ignore
84
75
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
85
76
  args[_key2] = arguments[_key2];
86
77
  }
87
-
88
78
  (_current$fn2 = current.fn).call.apply(_current$fn2, [this].concat(args));
89
- } // eslint-disable-next-line
90
-
79
+ }
80
+ // eslint-disable-next-line
91
81
  }, dep);
92
82
  }
93
83
  export function deepClone(target) {
@@ -95,46 +85,36 @@ export function deepClone(target) {
95
85
  }
96
86
  export function guid() {
97
87
  var id = '',
98
- i,
99
- random,
100
- chars = 'abcdef';
88
+ i,
89
+ random,
90
+ chars = 'abcdef';
101
91
  id += chars[Math.floor(Math.random() * Math.floor(chars.length))];
102
-
103
92
  for (i = 1; i < 32; i++) {
104
93
  random = Math.random() * 16 | 0;
105
-
106
94
  if (i == 8 || i == 12 || i == 16 || i == 20) {
107
95
  id += '-';
108
96
  }
109
-
110
97
  id += (i == 12 ? 4 : i == 16 ? random & 3 | 8 : random).toString(16);
111
98
  }
112
-
113
99
  return id;
114
100
  }
115
-
116
101
  var crypto = require('crypto');
117
-
118
102
  export var md5 = function md5(data) {
119
103
  var digest = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'hex';
120
104
  return crypto.createHash('md5').update(data).digest(digest || 'base64');
121
105
  };
122
106
  export function arrayMoveMutable(array, fromIndex, toIndex) {
123
107
  var startIndex = fromIndex < 0 ? array.length + fromIndex : fromIndex;
124
-
125
108
  if (startIndex >= 0 && startIndex < array.length) {
126
109
  var endIndex = toIndex < 0 ? array.length + toIndex : toIndex;
127
-
128
110
  var _array$splice = array.splice(fromIndex, 1),
129
- _array$splice2 = _slicedToArray(_array$splice, 1),
130
- item = _array$splice2[0];
131
-
111
+ _array$splice2 = _slicedToArray(_array$splice, 1),
112
+ item = _array$splice2[0];
132
113
  array.splice(endIndex, 0, item);
133
114
  }
134
115
  }
135
116
  export function arrayMoveImmutable(array, fromIndex, toIndex) {
136
117
  var newArray = _toConsumableArray(array);
137
-
138
118
  arrayMoveMutable(newArray, fromIndex, toIndex);
139
119
  return newArray;
140
120
  }
@@ -148,28 +128,22 @@ export function arrayInsert(array, index, item) {
148
128
  * @param key 指定的数值
149
129
  * @returns {string|string|string}
150
130
  */
151
-
152
131
  export function getConstantValue(array, key, strKey, strValue) {
153
132
  var result = '';
154
133
  var _strKey = 'id';
155
134
  var _strValue = 'value';
156
-
157
135
  if (strKey) {
158
136
  _strKey = strKey;
159
137
  }
160
-
161
138
  if (strValue) {
162
139
  _strValue = strValue;
163
140
  }
164
-
165
141
  if (array) {
166
142
  var _iterator = _createForOfIteratorHelper(array),
167
- _step;
168
-
143
+ _step;
169
144
  try {
170
145
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
171
146
  var item = _step.value;
172
-
173
147
  if (key === item[_strKey]) {
174
148
  result = item[_strValue];
175
149
  }
@@ -180,7 +154,6 @@ export function getConstantValue(array, key, strKey, strValue) {
180
154
  _iterator.f();
181
155
  }
182
156
  }
183
-
184
157
  return result;
185
158
  }
186
159
  /**
@@ -188,58 +161,46 @@ export function getConstantValue(array, key, strKey, strValue) {
188
161
  * @param mdText string
189
162
  * @param fileName string
190
163
  */
191
-
192
164
  export function handleMd2Doc(_x, _x2) {
193
165
  return _handleMd2Doc.apply(this, arguments);
194
166
  }
195
-
196
167
  function _handleMd2Doc() {
197
168
  _handleMd2Doc = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(mdText, fileName) {
198
169
  var md, html, opt, blob;
199
170
  return _regeneratorRuntime.wrap(function _callee$(_context) {
200
- while (1) {
201
- switch (_context.prev = _context.next) {
202
- case 0:
203
- md = new MarkdownIt();
204
-
205
- md.renderer.rules.image = function (tokens, index, options, env, self) {
206
- var token = tokens[index];
207
-
208
- if (!token || !token.attrGet('src')) {
209
- // 如果 token 不存在,或者缺少必要的属性,则直接返回空字符串
210
- return '';
211
- }
212
-
213
- var src = token.attrGet('src');
214
- var width = '900'; // 自定义宽度
215
-
216
- var height = 'auto'; // 自适应高度
217
- // 添加自定义宽高属性
218
-
219
- token.attrSet('width', width);
220
- token.attrSet('height', height); // 渲染图片标签
221
-
222
- return self.renderToken(tokens, index, options);
223
- };
224
-
225
- html = md.render(mdText);
226
- opt = {
227
- margin: {
228
- top: 100
229
- },
230
- orientation: 'landscape'
231
- };
232
- _context.next = 6;
233
- return asBlob(html, opt);
234
-
235
- case 6:
236
- blob = _context.sent;
237
- saveAs(blob, "".concat(fileName, ".doc"));
238
-
239
- case 8:
240
- case "end":
241
- return _context.stop();
242
- }
171
+ while (1) switch (_context.prev = _context.next) {
172
+ case 0:
173
+ md = new MarkdownIt();
174
+ md.renderer.rules.image = function (tokens, index, options, env, self) {
175
+ var token = tokens[index];
176
+ if (!token || !token.attrGet('src')) {
177
+ // 如果 token 不存在,或者缺少必要的属性,则直接返回空字符串
178
+ return '';
179
+ }
180
+ var src = token.attrGet('src');
181
+ var width = '900'; // 自定义宽度
182
+ var height = 'auto'; // 自适应高度
183
+ // 添加自定义宽高属性
184
+ token.attrSet('width', width);
185
+ token.attrSet('height', height);
186
+ // 渲染图片标签
187
+ return self.renderToken(tokens, index, options);
188
+ };
189
+ html = md.render(mdText);
190
+ opt = {
191
+ margin: {
192
+ top: 100
193
+ },
194
+ orientation: 'landscape'
195
+ };
196
+ _context.next = 6;
197
+ return asBlob(html, opt);
198
+ case 6:
199
+ blob = _context.sent;
200
+ saveAs(blob, "".concat(fileName, ".doc"));
201
+ case 8:
202
+ case "end":
203
+ return _context.stop();
243
204
  }
244
205
  }, _callee);
245
206
  }));
package/package.json CHANGED
@@ -1,102 +1,104 @@
1
- {
2
- "public": true,
3
- "name": "ronds-metadata",
4
- "version": "1.2.38",
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
- "prepublishOnly": "npm run build"
16
- },
17
- "main": "es",
18
- "module": "es",
19
- "types": "es/index.d.ts",
20
- "gitHooks": {
21
- "pre-commit": "lint-staged"
22
- },
23
- "lint-staged": {
24
- "*.{js,jsx,less,md,json}": [
25
- "prettier --write"
26
- ],
27
- "*.ts?(x)": [
28
- "prettier --parser=typescript --write"
29
- ]
30
- },
31
- "files": [
32
- "/es"
33
- ],
34
- "dependencies": {
35
- "@antv/x6": "^1.32.2",
36
- "@antv/x6-react-shape": "^1.6.0",
37
- "@babel/helper-create-regexp-features-plugin": "^7.12.13",
38
- "@babel/runtime": "^7.11.2",
39
- "@popperjs/core": "^2.4.4",
40
- "@types/file-saver": "^2.0.5",
41
- "@types/markdown-it": "^12.2.3",
42
- "@types/markdown-navbar": "^1.4.0",
43
- "ahooks": "^3.4.0",
44
- "axios": "^0.21.4",
45
- "babel-plugin-import": "^1.13.3",
46
- "babel-plugin-transform-remove-console": "^6.9.4",
47
- "bl": "^5.0.0",
48
- "codemirror": "^5.63.0",
49
- "codepage": "^1.15.0",
50
- "css-element-queries": "^1.2.3",
51
- "file-saver": "^2.0.5",
52
- "github-markdown-css": "^5.1.0",
53
- "html-docx-js-typescript": "^0.1.5",
54
- "immer": "^9.0.14",
55
- "lodash": "^4.17.21",
56
- "markdown-it": "^13.0.1",
57
- "markdown-navbar": "^1.4.3",
58
- "qs": "^6.10.1",
59
- "react": "^17.0.2",
60
- "react-contenteditable": "^3.3.7",
61
- "react-dnd": "^11.1.3",
62
- "react-dnd-html5-backend": "^11.1.3",
63
- "react-jexcel": "^1.0.2",
64
- "react-markdown": "^8.0.3",
65
- "react-markdown-editor-lite": "^1.3.2",
66
- "react-popper": "^2.2.3",
67
- "react-split": "^2.0.14",
68
- "react-syntax-highlighter": "^15.5.0",
69
- "rehype-raw": "^6.1.1",
70
- "remark-gfm": "^3.0.1",
71
- "rxjs": "^7.5.4",
72
- "xlsx": "^0.18.5"
73
- },
74
- "peerDependencies": {
75
- "antd": ">=4.1.5",
76
- "react": ">=16.14.0",
77
- "react-dom": ">=16.14.0",
78
- "react-router": ">=5.0.0",
79
- "styled-components": ">=4.1.1"
80
- },
81
- "devDependencies": {
82
- "@types/react": "^17.0.2",
83
- "@types/react-dom": "^17.0.2",
84
- "@types/react-router": "^5.1.8",
85
- "@types/react-window": "^1.8.2",
86
- "@types/styled-components": "^5.1.2",
87
- "@umijs/test": "^3.0.5",
88
- "antd": "^4.18.1",
89
- "babel-loader": "^8.1.0",
90
- "copy-to-clipboard": "^3.3.1",
91
- "css-loader": "^4.2.2",
92
- "dumi": "^1.0.16",
93
- "father-build": "^1.17.2",
94
- "gh-pages": "^3.0.0",
95
- "less-loader": "^7.0.0",
96
- "lint-staged": "^10.0.7",
97
- "prettier": "^2.2.1",
98
- "style-loader": "^1.2.1",
99
- "webpack-cli": "^3.3.12",
100
- "yorkie": "^2.0.0"
101
- }
102
- }
1
+ {
2
+ "public": true,
3
+ "name": "ronds-metadata",
4
+ "version": "1.2.39",
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
+ "prepublishOnly": "npm run build"
16
+ },
17
+ "main": "es",
18
+ "module": "es",
19
+ "types": "es/index.d.ts",
20
+ "gitHooks": {
21
+ "pre-commit": "lint-staged"
22
+ },
23
+ "lint-staged": {
24
+ "*.{js,jsx,less,md,json}": [
25
+ "prettier --write"
26
+ ],
27
+ "*.ts?(x)": [
28
+ "prettier --parser=typescript --write"
29
+ ]
30
+ },
31
+ "files": [
32
+ "/es"
33
+ ],
34
+ "dependencies": {
35
+ "@antv/x6": "^1.32.2",
36
+ "@antv/x6-react-shape": "^1.6.0",
37
+ "@babel/helper-create-regexp-features-plugin": "^7.12.13",
38
+ "@babel/runtime": "^7.11.2",
39
+ "@popperjs/core": "^2.4.4",
40
+ "@types/file-saver": "^2.0.5",
41
+ "@types/markdown-it": "^12.2.3",
42
+ "@types/markdown-navbar": "^1.4.0",
43
+ "ahooks": "^3.4.0",
44
+ "axios": "^0.21.4",
45
+ "babel-plugin-import": "^1.13.3",
46
+ "babel-plugin-transform-remove-console": "^6.9.4",
47
+ "bl": "^5.0.0",
48
+ "codemirror": "^5.63.0",
49
+ "codepage": "^1.15.0",
50
+ "css-element-queries": "^1.2.3",
51
+ "file-saver": "^2.0.5",
52
+ "github-markdown-css": "^5.1.0",
53
+ "html-docx-js-typescript": "^0.1.5",
54
+ "immer": "^9.0.14",
55
+ "lodash": "^4.17.21",
56
+ "markdown-it": "^13.0.1",
57
+ "markdown-navbar": "^1.4.3",
58
+ "qs": "^6.10.1",
59
+ "react": "^17.0.2",
60
+ "react-contenteditable": "^3.3.7",
61
+ "react-dnd": "^11.1.3",
62
+ "react-dnd-html5-backend": "^11.1.3",
63
+ "react-jexcel": "^1.0.2",
64
+ "react-markdown": "^8.0.3",
65
+ "react-markdown-editor-lite": "^1.3.2",
66
+ "react-popper": "^2.2.3",
67
+ "react-split": "^2.0.14",
68
+ "react-syntax-highlighter": "^15.5.0",
69
+ "rehype-raw": "^6.1.1",
70
+ "remark-gfm": "^3.0.1",
71
+ "ronds-react-markdown": "^1.0.12",
72
+ "rxjs": "^7.5.4",
73
+ "xlsx": "^0.18.5"
74
+ },
75
+ "peerDependencies": {
76
+ "antd": ">=4.1.5",
77
+ "react": ">=16.14.0",
78
+ "react-dom": ">=16.14.0",
79
+ "react-router": ">=5.0.0",
80
+ "styled-components": ">=4.1.1"
81
+ },
82
+ "devDependencies": {
83
+ "@types/react": "^17.0.2",
84
+ "@types/react-dom": "^17.0.2",
85
+ "@types/react-router": "^5.1.8",
86
+ "@types/react-window": "^1.8.2",
87
+ "@types/styled-components": "^5.1.2",
88
+ "@umijs/test": "^3.0.5",
89
+ "antd": "^4.18.1",
90
+ "babel-loader": "^8.1.0",
91
+ "copy-to-clipboard": "^3.3.1",
92
+ "css-loader": "^4.2.2",
93
+ "dumi": "^1.0.16",
94
+ "father-build": "^1.17.2",
95
+ "file-loader": "^6.2.0",
96
+ "gh-pages": "^3.0.0",
97
+ "less-loader": "^7.0.0",
98
+ "lint-staged": "^10.0.7",
99
+ "prettier": "^2.2.1",
100
+ "style-loader": "^1.2.1",
101
+ "webpack-cli": "^3.3.12",
102
+ "yorkie": "^2.0.0"
103
+ }
104
+ }