@teamias/rex-design 0.0.12 → 0.0.14

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.
Files changed (34) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +0 -0
  3. package/dist/components/action-buttons/index.d.ts +1 -1
  4. package/dist/components/action-buttons/index.js +2 -2
  5. package/dist/components/base-form/demo/BaseFormCustomContent.js +5 -5
  6. package/dist/components/base-form/index.d.ts +1 -1
  7. package/dist/components/base-form/index.js +2 -2
  8. package/dist/components/base-form/modules/dependencyUtils.d.ts +1 -1
  9. package/dist/components/base-form/modules/handlerData.d.ts +1 -1
  10. package/dist/components/base-form/modules/handlerData.js +1 -1
  11. package/dist/components/base-form/modules/renderComponentNode.js +18 -13
  12. package/dist/components/base-form/modules/valuesToFields.js +4 -4
  13. package/dist/components/base-list-table/demo/NoData.js +44 -45
  14. package/dist/components/base-list-table/demo/VirtualDemo.js +348 -349
  15. package/dist/components/base-table/base-table.d.ts +6 -1
  16. package/dist/components/base-table/base-table.js +55 -24
  17. package/dist/components/base-table/components/BaseTableRow.js +8 -8
  18. package/dist/components/base-table/demo/BaseTableAll.js +35 -28
  19. package/dist/components/base-table/demo/BaseTableBasic.js +22 -23
  20. package/dist/components/base-table/demo/BaseTableRowSelect.js +22 -23
  21. package/dist/components/base-table/demo/tableData.js +172 -172
  22. package/dist/components/data-cell/style/index.js +1 -1
  23. package/dist/components/icons/assets/icon-park--arrow-up.svg +0 -0
  24. package/dist/components/icons/assets/svg-spinners--blocks-shuffle-3.svg +0 -0
  25. package/dist/components/media-viewer/style/index.d.ts +1 -1
  26. package/dist/components/media-viewer/style/index.js +3 -3
  27. package/dist/components/tiptap-editor/demo/index.js +4 -1
  28. package/dist/components/tiptap-editor/tiptap-editor.d.ts +3 -3
  29. package/dist/components/tiptap-editor/tiptap-editor.js +11 -12
  30. package/dist/hooks/use-state-data/demo/index.js +0 -1
  31. package/dist/locales/en-US.json +0 -0
  32. package/dist/locales/zh-CN.json +0 -0
  33. package/dist/types/svg.d.ts +1 -1
  34. package/package.json +1 -1
@@ -1,22 +1,22 @@
1
1
  export var tableData = {
2
2
  items: [{
3
- "key": "parent_1075",
4
- "id": [{
5
- "type": "text",
6
- "props": {
7
- "value": 1075,
8
- "width": 200
3
+ key: 'parent_1075',
4
+ id: [{
5
+ type: 'text',
6
+ props: {
7
+ value: 1075,
8
+ width: 200
9
9
  },
10
- "extra": {
11
- "colSpan": 28
10
+ extra: {
11
+ colSpan: 28
12
12
  }
13
13
  }],
14
- "store_name": [{
15
- "type": "text",
16
- "props": {
17
- "label": "目的仓",
18
- "value": "国内备货仓国内备货仓国内备货仓国内备货仓",
19
- "width": 200
14
+ store_name: [{
15
+ type: 'text',
16
+ props: {
17
+ label: '目的仓',
18
+ value: '国内备货仓国内备货仓国内备货仓国内备货仓',
19
+ width: 200
20
20
  }
21
21
  }, {
22
22
  type: 'group-v2',
@@ -33,254 +33,254 @@ export var tableData = {
33
33
  }]
34
34
  }
35
35
  }],
36
- "planuser": [{
37
- "type": "text",
38
- "props": {
39
- "label": "计划员",
40
- "value": "",
41
- "width": 200
36
+ planuser: [{
37
+ type: 'text',
38
+ props: {
39
+ label: '计划员',
40
+ value: '',
41
+ width: 200
42
42
  }
43
43
  }],
44
- "label": [{
45
- "type": "tag",
46
- "props": {
47
- "value": "加工"
44
+ label: [{
45
+ type: 'tag',
46
+ props: {
47
+ value: '加工'
48
48
  }
49
49
  }]
50
50
  }, {
51
- "key": "1075_1102",
52
- "id": 1075,
53
- "detail_id": 1102,
54
- "is_checkbox": 2,
55
- "status_name": [{
56
- "type": "text",
57
- "props": {
58
- "value": 1075
51
+ key: '1075_1102',
52
+ id: 1075,
53
+ detail_id: 1102,
54
+ is_checkbox: 2,
55
+ status_name: [{
56
+ type: 'text',
57
+ props: {
58
+ value: 1075
59
59
  },
60
- "extra": {
61
- "rowSpan": 2
60
+ extra: {
61
+ rowSpan: 2
62
62
  }
63
63
  }, {
64
- "type": "tag",
65
- "props": {
66
- "value": "待处理"
64
+ type: 'tag',
65
+ props: {
66
+ value: '待处理'
67
67
  }
68
68
  }],
69
- "goods_spu_info": [{
70
- "type": "text",
71
- "props": {
72
- "label": "SPU",
73
- "value": {
74
- "type": "link",
75
- "props": {
76
- "label": "CO576911",
77
- "value": "/",
69
+ goods_spu_info: [{
70
+ type: 'text',
71
+ props: {
72
+ label: 'SPU',
73
+ value: {
74
+ type: 'link',
75
+ props: {
76
+ label: 'CO576911',
77
+ value: '/',
78
78
  ellipsis: 1,
79
79
  copyable: true
80
80
  }
81
81
  }
82
82
  },
83
- "extra": {
84
- "rowSpan": 2
83
+ extra: {
84
+ rowSpan: 2
85
85
  }
86
86
  }, {
87
- "type": "text",
88
- "props": {
89
- "label": "品名",
90
- "value": "跨境新款车载垃圾桶带盖多功能车家两用置物收纳桶迷你汽车垃圾桶",
87
+ type: 'text',
88
+ props: {
89
+ label: '品名',
90
+ value: '跨境新款车载垃圾桶带盖多功能车家两用置物收纳桶迷你汽车垃圾桶',
91
91
  ellipsis: 2,
92
92
  copyable: true
93
93
  }
94
94
  }, {
95
- "type": "text",
96
- "props": {
97
- "label": "买手",
98
- "value": "222"
95
+ type: 'text',
96
+ props: {
97
+ label: '买手',
98
+ value: '222'
99
99
  }
100
100
  }],
101
- "store_name": [{
102
- "type": "text",
103
- "props": {
104
- "value": "国内备货仓"
101
+ store_name: [{
102
+ type: 'text',
103
+ props: {
104
+ value: '国内备货仓'
105
105
  }
106
106
  }],
107
- "goods_image": [{
108
- "type": "img",
109
- "props": {
110
- "value": "http://image.spocoo.com/881a5f295d399a1bfab9cd9a03173801.jpg"
107
+ goods_image: [{
108
+ type: 'img',
109
+ props: {
110
+ value: 'http://image.spocoo.com/881a5f295d399a1bfab9cd9a03173801.jpg'
111
111
  }
112
112
  }],
113
- "goods_sku_info": [{
114
- "type": "link",
115
- "props": {
116
- "label": "CO576911_01",
117
- "value": "/"
113
+ goods_sku_info: [{
114
+ type: 'link',
115
+ props: {
116
+ label: 'CO576911_01',
117
+ value: '/'
118
118
  }
119
119
  }, {
120
- "type": "text",
121
- "props": {
122
- "value": "跨境新款车载垃圾桶带盖多功能车家两用置物收纳桶迷你汽车垃圾桶 黑色"
120
+ type: 'text',
121
+ props: {
122
+ value: '跨境新款车载垃圾桶带盖多功能车家两用置物收纳桶迷你汽车垃圾桶 黑色'
123
123
  }
124
124
  }, {
125
- "type": "tag",
126
- "props": {
127
- "value": "",
128
- "color": "red"
125
+ type: 'tag',
126
+ props: {
127
+ value: '',
128
+ color: 'red'
129
129
  }
130
130
  }],
131
- "planuser": [{
132
- "type": "text",
133
- "props": {
134
- "value": ""
131
+ planuser: [{
132
+ type: 'text',
133
+ props: {
134
+ value: ''
135
135
  }
136
136
  }],
137
- "factory": [{
138
- "type": "link",
139
- "props": {
140
- "label": "CO576911_01",
141
- "value": "/"
137
+ factory: [{
138
+ type: 'link',
139
+ props: {
140
+ label: 'CO576911_01',
141
+ value: '/'
142
142
  }
143
143
  }],
144
- "asin": [{
145
- "type": "text",
146
- "props": {
147
- "value": "0 / 0"
144
+ asin: [{
145
+ type: 'text',
146
+ props: {
147
+ value: '0 / 0'
148
148
  }
149
149
  }, {
150
- "type": "link-group",
151
- "props": {
150
+ type: 'link-group',
151
+ props: {
152
152
  separator: '----',
153
153
  items: [{
154
- "label": "ssss",
154
+ label: 'ssss',
155
155
  value: 'http://',
156
156
  action: 'url',
157
157
  style: {
158
158
  color: 'red'
159
159
  }
160
160
  }, {
161
- "label": "ssss",
161
+ label: 'ssss',
162
162
  value: 'http://',
163
163
  action: 'url'
164
164
  }]
165
165
  }
166
166
  }],
167
- "goods_sales": [{
168
- "type": "text",
169
- "props": {
170
- "value": "0 / 0 / 0 / / "
167
+ goods_sales: [{
168
+ type: 'text',
169
+ props: {
170
+ value: '0 / 0 / 0 / / '
171
171
  }
172
172
  }],
173
- "goods_dms": [{
174
- "type": "text",
175
- "props": {
176
- "value": "0 / 0"
173
+ goods_dms: [{
174
+ type: 'text',
175
+ props: {
176
+ value: '0 / 0'
177
177
  }
178
178
  }],
179
- "gross_margin": [{
180
- "type": "text",
181
- "props": {
182
- "value": "0 / 0 / 0 / 0 / 0"
179
+ gross_margin: [{
180
+ type: 'text',
181
+ props: {
182
+ value: '0 / 0 / 0 / 0 / 0'
183
183
  }
184
184
  }],
185
- "goods_rma": [{
186
- "type": "text",
187
- "props": {
188
- "value": "0 / 0 / 0 / 0 / 0"
185
+ goods_rma: [{
186
+ type: 'text',
187
+ props: {
188
+ value: '0 / 0 / 0 / 0 / 0'
189
189
  }
190
190
  }],
191
- "goods_stock": [{
192
- "type": "text",
193
- "props": {
194
- "value": 0
191
+ goods_stock: [{
192
+ type: 'text',
193
+ props: {
194
+ value: 0
195
195
  }
196
196
  }],
197
- "usable_stock": [{
198
- "type": "text",
199
- "props": {
200
- "value": 0
197
+ usable_stock: [{
198
+ type: 'text',
199
+ props: {
200
+ value: 0
201
201
  }
202
202
  }],
203
- "having_stock": [{
204
- "type": "text",
205
- "props": {
206
- "value": 0
203
+ having_stock: [{
204
+ type: 'text',
205
+ props: {
206
+ value: 0
207
207
  }
208
208
  }],
209
- "unsellable_stock": [{
210
- "type": "text",
211
- "props": {
212
- "value": 0
209
+ unsellable_stock: [{
210
+ type: 'text',
211
+ props: {
212
+ value: 0
213
213
  }
214
214
  }],
215
- "plan_quantity": [{
216
- "type": "text",
217
- "props": {
218
- "value": 0
215
+ plan_quantity: [{
216
+ type: 'text',
217
+ props: {
218
+ value: 0
219
219
  }
220
220
  }],
221
- "process_ing_quantity": [{
222
- "type": "text",
223
- "props": {
224
- "value": 0
221
+ process_ing_quantity: [{
222
+ type: 'text',
223
+ props: {
224
+ value: 0
225
225
  }
226
226
  }],
227
- "ship_wait_quantity": [{
228
- "type": "text",
229
- "props": {
230
- "value": 0
227
+ ship_wait_quantity: [{
228
+ type: 'text',
229
+ props: {
230
+ value: 0
231
231
  }
232
232
  }],
233
- "shiping_num": [{
234
- "type": "text",
235
- "props": {
236
- "value": 0
233
+ shiping_num: [{
234
+ type: 'text',
235
+ props: {
236
+ value: 0
237
237
  }
238
238
  }],
239
- "overseas_stock": [{
240
- "type": "text",
241
- "props": {
242
- "value": 0
239
+ overseas_stock: [{
240
+ type: 'text',
241
+ props: {
242
+ value: 0
243
243
  }
244
244
  }],
245
- "shiped_error_quantity": [{
246
- "type": "text",
247
- "props": {
248
- "value": 0
245
+ shiped_error_quantity: [{
246
+ type: 'text',
247
+ props: {
248
+ value: 0
249
249
  }
250
250
  }],
251
- "time_info": [{
252
- "type": "text",
253
- "props": {
254
- "value": "1970-01-01 08:00:00(黄盛)"
251
+ time_info: [{
252
+ type: 'text',
253
+ props: {
254
+ value: '1970-01-01 08:00:00(黄盛)'
255
255
  }
256
256
  }, {
257
- "type": "text",
258
- "props": {
259
- "value": "2025-03-12 15:54:26(黄盛)"
257
+ type: 'text',
258
+ props: {
259
+ value: '2025-03-12 15:54:26(黄盛)'
260
260
  }
261
261
  }],
262
- "p_remark": [{
263
- "type": "text",
264
- "props": {
265
- "value": ""
262
+ p_remark: [{
263
+ type: 'text',
264
+ props: {
265
+ value: ''
266
266
  }
267
267
  }],
268
- "quantity": [{
269
- "type": "text",
270
- "props": {
271
- "value": 0
268
+ quantity: [{
269
+ type: 'text',
270
+ props: {
271
+ value: 0
272
272
  }
273
273
  }],
274
- "quantity_modify": [{
275
- "type": "text",
276
- "props": {
277
- "value": 103
274
+ quantity_modify: [{
275
+ type: 'text',
276
+ props: {
277
+ value: 103
278
278
  }
279
279
  }],
280
- "bom_data": [{
281
- "type": "text",
282
- "props": {
283
- "value": "0 / 0"
280
+ bom_data: [{
281
+ type: 'text',
282
+ props: {
283
+ value: '0 / 0'
284
284
  }
285
285
  }]
286
286
  }],
@@ -6,7 +6,7 @@ export var Wrapper = styled.div.withConfig({
6
6
  export var DataCellRowText = styled.div.withConfig({
7
7
  displayName: "DataCellRowText",
8
8
  componentId: "rex-design-aaf4__sc-9eukro-1"
9
- })(["&.data-cell-row-text{display:inline-flex;gap:1px;width:100%;align-items:flex-start;>.ant-typography{margin:0;margin-left:2px;opacity:0;z-index:-1;transition:.2s;position:relative;}&:hover > .ant-typography{opacity:1;z-index:initial;}}&.data-cell-group-v2-box{display:flex;width:100%;gap:1px;align-items:flex-start;div:has(.data-cell-group-v2-value-item),a:has(.data-cell-group-v2-value-item){.data-cell-group-v2-value-item + .ant-typography{margin:0;margin-left:2px;opacity:0;z-index:-1;transition:.2s;position:relative;}&:hover > .ant-typography{opacity:1;z-index:initial;}}}"]);
9
+ })(["&.data-cell-row-text{display:inline-flex;gap:1px;width:100%;align-items:flex-start;> .ant-typography{margin:0;margin-left:2px;opacity:0;z-index:-1;transition:0.2s;position:relative;}&:hover > .ant-typography{opacity:1;z-index:initial;}}&.data-cell-group-v2-box{display:flex;width:100%;gap:1px;align-items:flex-start;div:has(.data-cell-group-v2-value-item),a:has(.data-cell-group-v2-value-item){.data-cell-group-v2-value-item + .ant-typography{margin:0;margin-left:2px;opacity:0;z-index:-1;transition:0.2s;position:relative;}&:hover > .ant-typography{opacity:1;z-index:initial;}}}"]);
10
10
  export var DataCellRowTextLabel = styled.span.withConfig({
11
11
  displayName: "DataCellRowTextLabel",
12
12
  componentId: "rex-design-aaf4__sc-9eukro-2"
@@ -1,4 +1,4 @@
1
- import { Image as AntdImage, Carousel as AntdCarousel } from 'antd';
1
+ import { Carousel as AntdCarousel, Image as AntdImage } from 'antd';
2
2
  import React from 'react';
3
3
  export declare const CustomAntdImage: React.FC<React.ComponentProps<typeof AntdImage>>;
4
4
  export declare const CustomAntdCarousel: React.FC<React.ComponentProps<typeof AntdCarousel>>;
@@ -4,10 +4,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
- import styled from 'styled-components';
8
- import { Image as AntdImage, Carousel as AntdCarousel } from 'antd';
9
- import classNames from "classnames";
7
+ import { Carousel as AntdCarousel, Image as AntdImage } from 'antd';
8
+ import classNames from 'classnames';
10
9
  import React from 'react';
10
+ import styled from 'styled-components';
11
11
 
12
12
  // 修改为显式类型声明
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -17,6 +17,9 @@ export default (function () {
17
17
  messages: _objectSpread({}, crush(enUS))
18
18
  })
19
19
  },
20
- children: /*#__PURE__*/_jsx(TiptapEditor, {})
20
+ children: /*#__PURE__*/_jsx(TiptapEditor, {
21
+ readOnly: true,
22
+ defaultValue: "<p>Hello World</p>"
23
+ })
21
24
  });
22
25
  });
@@ -1,5 +1,4 @@
1
- import { EditorContent, Extensions, useEditor } from '@tiptap/react';
2
- import { GetProps } from 'antd';
1
+ import { Extensions, useEditor } from '@tiptap/react';
3
2
  import { FC, ReactNode } from 'react';
4
3
  /**
5
4
  * https://v2.tiptap.dev/docs/editor/extensions/nodes/task-item
@@ -34,7 +33,8 @@ export interface TiptapEditorProps {
34
33
  /**
35
34
  * @desc 传递给 EditorContent 的属性
36
35
  */
37
- editorContentProps?: Omit<GetProps<typeof EditorContent>, 'editor'>;
36
+ /** 是否只读 */
37
+ readOnly?: boolean;
38
38
  }
39
39
  interface IConfigItem {
40
40
  title: string;
@@ -1,9 +1,3 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
1
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
2
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
3
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -36,7 +30,6 @@ import { Box } from "./styles";
36
30
  * https://v2.tiptap.dev/docs/editor/extensions/nodes/task-item
37
31
  */
38
32
  import { jsx as _jsx } from "react/jsx-runtime";
39
- import { Fragment as _Fragment } from "react/jsx-runtime";
40
33
  import { jsxs as _jsxs } from "react/jsx-runtime";
41
34
  export var TiptapEditor = function TiptapEditor(_ref) {
42
35
  var _ref$type = _ref.type,
@@ -52,9 +45,11 @@ export var TiptapEditor = function TiptapEditor(_ref) {
52
45
  preventLineBreaks = _ref.preventLineBreaks,
53
46
  renderToolBar = _ref.renderToolBar,
54
47
  extensions = _ref.extensions,
55
- editorContentProps = _ref.editorContentProps;
48
+ _ref$readOnly = _ref.readOnly,
49
+ readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly;
56
50
  var intl = useIntl();
57
51
  var editor = useEditor({
52
+ editable: !readOnly,
58
53
  extensions: [].concat(_toConsumableArray(extensions || []), [BulletList, OrderedList, StarterKit.configure({
59
54
  paragraph: {
60
55
  HTMLAttributes: {
@@ -476,6 +471,9 @@ export var TiptapEditor = function TiptapEditor(_ref) {
476
471
  editor === null || editor === void 0 || editor.destroy();
477
472
  };
478
473
  }, []);
474
+ useEffect(function () {
475
+ editor === null || editor === void 0 || editor.setEditable(!readOnly);
476
+ }, [readOnly]);
479
477
  useEffect(function () {
480
478
  if (type === 'text') {
481
479
  if (value && value === (editor === null || editor === void 0 ? void 0 : editor.getText())) return;
@@ -493,7 +491,8 @@ export var TiptapEditor = function TiptapEditor(_ref) {
493
491
  }, 0);
494
492
  },
495
493
  children: [function () {
496
- if (hiddenToolBar) return /*#__PURE__*/_jsx(_Fragment, {});
494
+ // || !editor?.isEditable
495
+ // if (hiddenToolBar) return <></>;
497
496
  var oldNode = /*#__PURE__*/_jsx(Flex, {
498
497
  wrap: true,
499
498
  gap: "small",
@@ -503,7 +502,7 @@ export var TiptapEditor = function TiptapEditor(_ref) {
503
502
  borderBottom: '1px solid #ddd',
504
503
  background: '#f8f8f8'
505
504
  },
506
- children: config.map(function (item, index) {
505
+ children: (hiddenToolBar || !(editor !== null && editor !== void 0 && editor.isEditable) ? [] : config).map(function (item, index) {
507
506
  if (item.key === 'divider') {
508
507
  return /*#__PURE__*/_jsx(Divider, {
509
508
  type: "vertical"
@@ -529,8 +528,8 @@ export var TiptapEditor = function TiptapEditor(_ref) {
529
528
  return renderToolBar(oldNode, editor, config);
530
529
  }
531
530
  return oldNode;
532
- }(), /*#__PURE__*/_jsx(EditorContent, _objectSpread(_objectSpread({}, editorContentProps), {}, {
531
+ }(), /*#__PURE__*/_jsx(EditorContent, {
533
532
  editor: editor
534
- }))]
533
+ })]
535
534
  });
536
535
  };
@@ -3,7 +3,6 @@ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyri
3
3
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
4
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
5
  import { useStateData } from "../use-state-data";
6
- import React from 'react';
7
6
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
7
  import { jsx as _jsx } from "react/jsx-runtime";
9
8
  export default (function () {
File without changes
File without changes
@@ -1,4 +1,4 @@
1
1
  declare module '*.svg' {
2
2
  const content: string;
3
3
  export default content;
4
- }
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamias/rex-design",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",