@seafile/sdoc-editor 2.0.11 → 2.0.12
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/basic-sdk/comment/components/comment-editor.js +2 -4
- package/dist/basic-sdk/comment/components/comment-item-wrapper.js +1 -4
- package/dist/basic-sdk/editor/editable-article.js +1 -4
- package/dist/basic-sdk/extension/commons/color-menu/index.js +2 -6
- package/dist/basic-sdk/extension/commons/menu/menu-item.js +2 -6
- package/dist/basic-sdk/extension/commons/more-dropdown/index.js +2 -6
- package/dist/basic-sdk/extension/plugins/ai/ai-menu/menu-item.js +2 -6
- package/dist/basic-sdk/extension/plugins/font/menu/font-family/index.js +2 -6
- package/dist/basic-sdk/extension/plugins/font/menu/font-size/font-size-scale.js +2 -6
- package/dist/basic-sdk/extension/plugins/font/menu/font-size/index.js +2 -6
- package/dist/basic-sdk/extension/plugins/seatable-tables/formatter/index.js +2 -2
- package/dist/basic-sdk/extension/plugins/seatable-tables/op-menu/index.css +1 -1
- package/dist/basic-sdk/extension/plugins/seatable-tables/op-menu/index.js +1 -3
- package/dist/basic-sdk/extension/plugins/seatable-tables/seatable-settings/dtable-search-input/index.js +2 -2
- package/dist/basic-sdk/extension/plugins/seatable-tables/seatable-settings/filter-setter/filter-popover-widgets/department-filter/selected-departments.js +6 -9
- package/dist/basic-sdk/extension/plugins/seatable-tables/seatable-settings/filter-setter/filter-popover.js +1 -1
- package/dist/basic-sdk/extension/plugins/table/dialogs/custom-table-size-dialog/number-input.js +8 -14
- package/dist/basic-sdk/extension/plugins/text-align/menu/index.js +2 -6
- package/dist/basic-sdk/extension/toolbar/comment-editor-toolbar/index.js +1 -4
- package/dist/basic-sdk/extension/toolbar/header-toolbar/insert-toolbar/index.js +2 -6
- package/dist/basic-sdk/extension/toolbar/insert-element-toolbar/index.js +2 -5
- package/dist/basic-sdk/extension/toolbar/side-toolbar/insert-block-menu.js +1 -4
- package/dist/basic-sdk/layout/editor-content.js +3 -8
- package/dist/basic-sdk/views/sdoc-wiki-viewer.js +1 -5
- package/package.json +1 -1
|
@@ -27,13 +27,14 @@ const getSubmitTip = (type, content) => {
|
|
|
27
27
|
if (content) return 'Save';
|
|
28
28
|
return type === 'comment' ? 'Comment' : 'Reply';
|
|
29
29
|
};
|
|
30
|
+
const DEFAULT_PLACEHOLDER = 'Enter_comment_shift_enter_for_new_line_Enter_to_send';
|
|
30
31
|
const CommentEditor = _ref => {
|
|
31
32
|
let {
|
|
32
33
|
type,
|
|
33
34
|
className,
|
|
34
35
|
content,
|
|
35
36
|
commentContent,
|
|
36
|
-
placeholder,
|
|
37
|
+
placeholder = DEFAULT_PLACEHOLDER,
|
|
37
38
|
insertContent,
|
|
38
39
|
updateContent,
|
|
39
40
|
setIsEditing,
|
|
@@ -159,7 +160,4 @@ const CommentEditor = _ref => {
|
|
|
159
160
|
onCancel: onCancel
|
|
160
161
|
}));
|
|
161
162
|
};
|
|
162
|
-
CommentEditor.defaultProps = {
|
|
163
|
-
placeholder: 'Enter_comment_shift_enter_for_new_line_Enter_to_send'
|
|
164
|
-
};
|
|
165
163
|
var _default = exports.default = CommentEditor;
|
|
@@ -19,7 +19,7 @@ var _constants = require("../constants");
|
|
|
19
19
|
var _commentDeletePopover = _interopRequireDefault(require("./comment-delete-popover"));
|
|
20
20
|
const CommentItemWrapper = _ref => {
|
|
21
21
|
let {
|
|
22
|
-
container,
|
|
22
|
+
container = 'sdoc-comment-list-container',
|
|
23
23
|
editor,
|
|
24
24
|
element,
|
|
25
25
|
isActive,
|
|
@@ -309,7 +309,4 @@ const CommentItemWrapper = _ref => {
|
|
|
309
309
|
parentDom: listRef.current
|
|
310
310
|
}));
|
|
311
311
|
};
|
|
312
|
-
CommentItemWrapper.defaultProps = {
|
|
313
|
-
container: 'sdoc-comment-list-container'
|
|
314
|
-
};
|
|
315
312
|
var _default = exports.default = CommentItemWrapper;
|
|
@@ -27,7 +27,7 @@ var _helpers = require("../extension/plugins/table/helpers");
|
|
|
27
27
|
var _useForceUpdate = _interopRequireDefault(require("../../basic-sdk/hooks/use-force-update"));
|
|
28
28
|
const EditableArticle = _ref => {
|
|
29
29
|
let {
|
|
30
|
-
showComment,
|
|
30
|
+
showComment = true,
|
|
31
31
|
editor,
|
|
32
32
|
slateValue,
|
|
33
33
|
updateSlateValue
|
|
@@ -239,7 +239,4 @@ const EditableArticle = _ref => {
|
|
|
239
239
|
type: "editor"
|
|
240
240
|
})));
|
|
241
241
|
};
|
|
242
|
-
EditableArticle.defaultProps = {
|
|
243
|
-
showComment: true
|
|
244
|
-
};
|
|
245
242
|
var _default = exports.default = EditableArticle;
|
|
@@ -19,11 +19,11 @@ var _tooltip = _interopRequireDefault(require("../../../../components/tooltip"))
|
|
|
19
19
|
require("./index.css");
|
|
20
20
|
const ColorMenu = _ref => {
|
|
21
21
|
let {
|
|
22
|
+
isRichEditor = true,
|
|
23
|
+
className = 'menu-group-item',
|
|
22
24
|
ariaLabel,
|
|
23
25
|
iconClass,
|
|
24
26
|
id,
|
|
25
|
-
isRichEditor,
|
|
26
|
-
className,
|
|
27
27
|
popoverClassName,
|
|
28
28
|
disabled,
|
|
29
29
|
t,
|
|
@@ -213,8 +213,4 @@ const ColorMenu = _ref => {
|
|
|
213
213
|
onChange: onChange
|
|
214
214
|
}))))));
|
|
215
215
|
};
|
|
216
|
-
ColorMenu.defaultProps = {
|
|
217
|
-
isRichEditor: true,
|
|
218
|
-
className: 'menu-group-item'
|
|
219
|
-
};
|
|
220
216
|
var _default = exports.default = (0, _reactI18next.withTranslation)('sdoc-editor')(ColorMenu);
|
|
@@ -13,12 +13,12 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
var _constants = require("../../constants");
|
|
14
14
|
const MenuItem = _ref => {
|
|
15
15
|
let {
|
|
16
|
+
isRichEditor = true,
|
|
17
|
+
className = 'menu-group-item',
|
|
16
18
|
disabled,
|
|
17
19
|
isActive,
|
|
18
|
-
isRichEditor,
|
|
19
20
|
type,
|
|
20
21
|
onMouseDown,
|
|
21
|
-
className,
|
|
22
22
|
iconClass,
|
|
23
23
|
id,
|
|
24
24
|
text,
|
|
@@ -57,8 +57,4 @@ const MenuItem = _ref => {
|
|
|
57
57
|
target: id
|
|
58
58
|
}, t(text)));
|
|
59
59
|
};
|
|
60
|
-
MenuItem.defaultProps = {
|
|
61
|
-
isRichEditor: true,
|
|
62
|
-
className: 'menu-group-item'
|
|
63
|
-
};
|
|
64
60
|
var _default = exports.default = MenuItem;
|
|
@@ -10,9 +10,9 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
10
10
|
var _reactstrap = require("reactstrap");
|
|
11
11
|
const MoreDropdown = _ref => {
|
|
12
12
|
let {
|
|
13
|
-
|
|
13
|
+
isRichEditor = true,
|
|
14
|
+
className = 'menu-group-item',
|
|
14
15
|
disabled,
|
|
15
|
-
isRichEditor,
|
|
16
16
|
children
|
|
17
17
|
} = _ref;
|
|
18
18
|
const validClassName = (0, _classnames.default)(className, 'sdoc-more-text-button', {
|
|
@@ -41,8 +41,4 @@ const MoreDropdown = _ref => {
|
|
|
41
41
|
className: "menu-group"
|
|
42
42
|
}, children)));
|
|
43
43
|
};
|
|
44
|
-
MoreDropdown.defaultProps = {
|
|
45
|
-
isRichEditor: true,
|
|
46
|
-
className: 'menu-group-item'
|
|
47
|
-
};
|
|
48
44
|
var _default = exports.default = MoreDropdown;
|
|
@@ -13,12 +13,12 @@ var _tooltip = _interopRequireDefault(require("../../../../../components/tooltip
|
|
|
13
13
|
var _aiIcon = _interopRequireDefault(require("../ai-icon"));
|
|
14
14
|
const MenuItem = _ref => {
|
|
15
15
|
let {
|
|
16
|
+
isRichEditor = true,
|
|
17
|
+
className = 'menu-group-item',
|
|
16
18
|
disabled,
|
|
17
19
|
isActive,
|
|
18
|
-
isRichEditor,
|
|
19
20
|
type,
|
|
20
21
|
onMouseDown,
|
|
21
|
-
className,
|
|
22
22
|
iconClass,
|
|
23
23
|
id,
|
|
24
24
|
text,
|
|
@@ -55,8 +55,4 @@ const MenuItem = _ref => {
|
|
|
55
55
|
target: id
|
|
56
56
|
}, t(text)));
|
|
57
57
|
};
|
|
58
|
-
MenuItem.defaultProps = {
|
|
59
|
-
isRichEditor: true,
|
|
60
|
-
className: 'menu-group-item'
|
|
61
|
-
};
|
|
62
58
|
var _default = exports.default = MenuItem;
|
|
@@ -20,9 +20,9 @@ var _objectUtils = _interopRequireDefault(require("../../../../../utils/object-u
|
|
|
20
20
|
require("./index.css");
|
|
21
21
|
const FontFamily = _ref => {
|
|
22
22
|
let {
|
|
23
|
+
isRichEditor = true,
|
|
24
|
+
className = 'menu-group-item',
|
|
23
25
|
editor,
|
|
24
|
-
isRichEditor,
|
|
25
|
-
className,
|
|
26
26
|
readonly
|
|
27
27
|
} = _ref;
|
|
28
28
|
const [recentUsedFonts, setRecentUsedFonts] = (0, _react.useState)(_localStorageUtils.default.getItem(_constants.RECENT_USED_FONTS_KEY, []));
|
|
@@ -142,8 +142,4 @@ const FontFamily = _ref => {
|
|
|
142
142
|
});
|
|
143
143
|
}))));
|
|
144
144
|
};
|
|
145
|
-
FontFamily.defaultProps = {
|
|
146
|
-
isRichEditor: true,
|
|
147
|
-
className: 'menu-group-item'
|
|
148
|
-
};
|
|
149
145
|
var _default = exports.default = FontFamily;
|
|
@@ -10,11 +10,11 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
10
10
|
var _tooltip = _interopRequireDefault(require("../../../../../../components/tooltip"));
|
|
11
11
|
const FontSizeScale = _ref => {
|
|
12
12
|
let {
|
|
13
|
+
isRichEditor = true,
|
|
14
|
+
className = 'menu-group-item',
|
|
13
15
|
children,
|
|
14
16
|
id,
|
|
15
|
-
className,
|
|
16
17
|
disabled,
|
|
17
|
-
isRichEditor,
|
|
18
18
|
onClick,
|
|
19
19
|
tipMessage
|
|
20
20
|
} = _ref;
|
|
@@ -35,8 +35,4 @@ const FontSizeScale = _ref => {
|
|
|
35
35
|
target: id
|
|
36
36
|
}, tipMessage));
|
|
37
37
|
};
|
|
38
|
-
FontSizeScale.defaultProps = {
|
|
39
|
-
isRichEditor: true,
|
|
40
|
-
className: 'menu-group-item'
|
|
41
|
-
};
|
|
42
38
|
var _default = exports.default = FontSizeScale;
|
|
@@ -16,8 +16,8 @@ var _tooltip = _interopRequireDefault(require("../../../../../../components/tool
|
|
|
16
16
|
require("./index.css");
|
|
17
17
|
const FontSize = _ref => {
|
|
18
18
|
let {
|
|
19
|
-
isRichEditor,
|
|
20
|
-
className,
|
|
19
|
+
isRichEditor = true,
|
|
20
|
+
className = 'menu-group-item',
|
|
21
21
|
editor,
|
|
22
22
|
readonly
|
|
23
23
|
} = _ref;
|
|
@@ -100,8 +100,4 @@ const FontSize = _ref => {
|
|
|
100
100
|
}), item.name);
|
|
101
101
|
}))));
|
|
102
102
|
};
|
|
103
|
-
FontSize.defaultProps = {
|
|
104
|
-
isRichEditor: true,
|
|
105
|
-
className: 'menu-group-item'
|
|
106
|
-
};
|
|
107
103
|
var _default = exports.default = FontSize;
|
|
@@ -282,7 +282,7 @@ class CellFormatter extends _react.default.Component {
|
|
|
282
282
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, this.renderFormatter());
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
|
-
CellFormatter
|
|
285
|
+
(0, _defineProperty2.default)(CellFormatter, "defaultProps", {
|
|
286
286
|
isSample: true
|
|
287
|
-
};
|
|
287
|
+
});
|
|
288
288
|
var _default = exports.default = (0, _reactI18next.withTranslation)('sdoc-editor')(CellFormatter);
|
|
@@ -130,9 +130,7 @@ function OpMenu(_ref3) {
|
|
|
130
130
|
(0, _helpers.updateSeaTableTable)(editor, filterData);
|
|
131
131
|
seaTableRef.current['filterData'] = {};
|
|
132
132
|
}
|
|
133
|
-
|
|
134
|
-
setIsShowFilter(false);
|
|
135
|
-
}, 1000);
|
|
133
|
+
setIsShowFilter(false);
|
|
136
134
|
}
|
|
137
135
|
if (item === 'tableSort') {
|
|
138
136
|
if (sortsData && Object.keys(sortsData).length > 0) {
|
|
@@ -131,9 +131,9 @@ class DtableSearchInput extends _react.Component {
|
|
|
131
131
|
}), this.renderClear());
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
DtableSearchInput
|
|
134
|
+
(0, _defineProperty2.default)(DtableSearchInput, "defaultProps", {
|
|
135
135
|
wait: 100,
|
|
136
136
|
disabled: false,
|
|
137
137
|
value: ''
|
|
138
|
-
};
|
|
138
|
+
});
|
|
139
139
|
var _default = exports.default = DtableSearchInput;
|
|
@@ -9,15 +9,15 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _reactI18next = require("react-i18next");
|
|
10
10
|
var _dtableUtils = require("dtable-utils");
|
|
11
11
|
var _departmentUtils = require("./_department-utils");
|
|
12
|
-
function SelectedDepartments(
|
|
12
|
+
function SelectedDepartments(_ref) {
|
|
13
|
+
let {
|
|
14
|
+
value,
|
|
15
|
+
removeDepartment,
|
|
16
|
+
isShowRemoveIcon = false
|
|
17
|
+
} = _ref;
|
|
13
18
|
const {
|
|
14
19
|
departments = []
|
|
15
20
|
} = window.seafile || window.seafileConfig;
|
|
16
|
-
const {
|
|
17
|
-
value,
|
|
18
|
-
removeDepartment,
|
|
19
|
-
isShowRemoveIcon
|
|
20
|
-
} = props;
|
|
21
21
|
const {
|
|
22
22
|
t
|
|
23
23
|
} = (0, _reactI18next.useTranslation)('sdoc-editor');
|
|
@@ -85,7 +85,4 @@ function SelectedDepartments(props) {
|
|
|
85
85
|
}) : null;
|
|
86
86
|
return dom;
|
|
87
87
|
}
|
|
88
|
-
SelectedDepartments.defaultProps = {
|
|
89
|
-
isShowRemoveIcon: false
|
|
90
|
-
};
|
|
91
88
|
var _default = exports.default = SelectedDepartments;
|
|
@@ -158,7 +158,7 @@ class FilterPopover extends _react.Component {
|
|
|
158
158
|
boundariesElement: document.body
|
|
159
159
|
}, _ref => {
|
|
160
160
|
let {
|
|
161
|
-
scheduleUpdate
|
|
161
|
+
update: scheduleUpdate
|
|
162
162
|
} = _ref;
|
|
163
163
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
164
164
|
ref: ref => this.dtablePopoverRef = ref,
|
package/dist/basic-sdk/extension/plugins/table/dialogs/custom-table-size-dialog/number-input.js
CHANGED
|
@@ -7,16 +7,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactstrap = require("reactstrap");
|
|
10
|
-
function NumberInput(
|
|
11
|
-
|
|
10
|
+
function NumberInput(_ref) {
|
|
11
|
+
let {
|
|
12
12
|
value,
|
|
13
13
|
onChange,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} =
|
|
14
|
+
className,
|
|
15
|
+
min = 0,
|
|
16
|
+
step = 1,
|
|
17
|
+
max = Infinity,
|
|
18
|
+
readOnly = false
|
|
19
|
+
} = _ref;
|
|
20
20
|
return /*#__PURE__*/_react.default.createElement(_reactstrap.Input, {
|
|
21
21
|
type: "number",
|
|
22
22
|
className: className,
|
|
@@ -28,10 +28,4 @@ function NumberInput(props) {
|
|
|
28
28
|
onChange: onChange
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
NumberInput.defaultProps = {
|
|
32
|
-
min: 0,
|
|
33
|
-
step: 1,
|
|
34
|
-
max: Infinity,
|
|
35
|
-
readOnly: false
|
|
36
|
-
};
|
|
37
31
|
var _default = exports.default = NumberInput;
|
|
@@ -16,8 +16,8 @@ var _tooltip = _interopRequireDefault(require("../../../../../components/tooltip
|
|
|
16
16
|
require("./index.css");
|
|
17
17
|
const TextAlignMenu = _ref => {
|
|
18
18
|
let {
|
|
19
|
-
isRichEditor,
|
|
20
|
-
className,
|
|
19
|
+
isRichEditor = true,
|
|
20
|
+
className = 'menu-group-item',
|
|
21
21
|
editor,
|
|
22
22
|
readonly
|
|
23
23
|
} = _ref;
|
|
@@ -95,8 +95,4 @@ const TextAlignMenu = _ref => {
|
|
|
95
95
|
}));
|
|
96
96
|
}))));
|
|
97
97
|
};
|
|
98
|
-
TextAlignMenu.defaultProps = {
|
|
99
|
-
isRichEditor: true,
|
|
100
|
-
className: 'menu-group-item'
|
|
101
|
-
};
|
|
102
98
|
var _default = exports.default = (0, _reactI18next.withTranslation)('sdoc-editor')(TextAlignMenu);
|
|
@@ -19,7 +19,7 @@ var _menu4 = _interopRequireDefault(require("../../plugins/blockquote/menu"));
|
|
|
19
19
|
const CommentEditorToolbar = _ref => {
|
|
20
20
|
let {
|
|
21
21
|
editor,
|
|
22
|
-
readonly,
|
|
22
|
+
readonly = false,
|
|
23
23
|
onSubmit,
|
|
24
24
|
submitBtnText,
|
|
25
25
|
onCancel
|
|
@@ -61,7 +61,4 @@ const CommentEditorToolbar = _ref => {
|
|
|
61
61
|
onCancel: onCancel
|
|
62
62
|
})));
|
|
63
63
|
};
|
|
64
|
-
CommentEditorToolbar.defaultProps = {
|
|
65
|
-
readonly: false
|
|
66
|
-
};
|
|
67
64
|
var _default = exports.default = CommentEditorToolbar;
|
|
@@ -24,8 +24,8 @@ var _constants = require("../../../../constants");
|
|
|
24
24
|
require("./index.css");
|
|
25
25
|
const InsertToolbar = _ref => {
|
|
26
26
|
let {
|
|
27
|
-
isRichEditor,
|
|
28
|
-
className,
|
|
27
|
+
isRichEditor = true,
|
|
28
|
+
className = 'menu-group-item',
|
|
29
29
|
editor,
|
|
30
30
|
readonly
|
|
31
31
|
} = _ref;
|
|
@@ -103,8 +103,4 @@ const InsertToolbar = _ref => {
|
|
|
103
103
|
className: "sdoc-dropdown-menu-divider"
|
|
104
104
|
}), editor.columns && /*#__PURE__*/_react.default.createElement(_menu7.default, props), editor.tables && /*#__PURE__*/_react.default.createElement(_menu8.default, props), !editor.tables && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_menu5.default, props), /*#__PURE__*/_react.default.createElement(_menu6.default, props)))));
|
|
105
105
|
};
|
|
106
|
-
InsertToolbar.defaultProps = {
|
|
107
|
-
isRichEditor: true,
|
|
108
|
-
className: 'menu-group-item'
|
|
109
|
-
};
|
|
110
106
|
var _default = exports.default = InsertToolbar;
|
|
@@ -30,7 +30,7 @@ var _utils = require("../../utils");
|
|
|
30
30
|
require("./style.css");
|
|
31
31
|
const QuickInsertBlockMenu = _ref => {
|
|
32
32
|
let {
|
|
33
|
-
insertPosition,
|
|
33
|
+
insertPosition = _constants.INSERT_POSITION.CURRENT,
|
|
34
34
|
slateNode,
|
|
35
35
|
callback,
|
|
36
36
|
isEmptyNode,
|
|
@@ -277,7 +277,7 @@ const QuickInsertBlockMenu = _ref => {
|
|
|
277
277
|
delete items[_constants.VIDEO];
|
|
278
278
|
}
|
|
279
279
|
return items;
|
|
280
|
-
}, [quickInsertMenuSearchMap, isDisableImage, onInsertImageToggle, isDisableVideo, onInsertVideoToggle, editor, createTable, callback, handleClosePopover, openLinkDialog, onInsertCodeBlock, isDisableCallout, onInsertCheckList, isEmptyNode, onInsertCallout, onInsertList, onInsert, createMultiColumn]);
|
|
280
|
+
}, [quickInsertMenuSearchMap, isDisableImage, onInsertImageToggle, isDisableVideo, onInsertVideoToggle, isDisableTable, editor, createTable, callback, handleClosePopover, openLinkDialog, onInsertCodeBlock, isDisableCallout, onInsertCheckList, isEmptyNode, onInsertCallout, onInsertList, onInsert, createMultiColumn]);
|
|
281
281
|
const getSelectItemDom = selectIndex => {
|
|
282
282
|
const dropDownItemWrapper = downDownWrapperRef.current;
|
|
283
283
|
const searchedDropDownItemWrapper = [];
|
|
@@ -405,7 +405,4 @@ const QuickInsertBlockMenu = _ref => {
|
|
|
405
405
|
className: "sdoc-dropdown-menu-item-no-results"
|
|
406
406
|
}, t('No_results'))));
|
|
407
407
|
};
|
|
408
|
-
QuickInsertBlockMenu.defaultProps = {
|
|
409
|
-
insertPosition: _constants.INSERT_POSITION.CURRENT
|
|
410
|
-
};
|
|
411
408
|
var _default = exports.default = (0, _reactI18next.withTranslation)('sdoc-editor')(QuickInsertBlockMenu);
|
|
@@ -26,7 +26,7 @@ var _helper = require("../../plugins/callout/helper");
|
|
|
26
26
|
var _helper2 = require("../../plugins/multi-column/helper");
|
|
27
27
|
const InsertBlockMenu = _ref => {
|
|
28
28
|
let {
|
|
29
|
-
insertPosition,
|
|
29
|
+
insertPosition = _constants.INSERT_POSITION.CURRENT,
|
|
30
30
|
slateNode,
|
|
31
31
|
isNodeEmpty,
|
|
32
32
|
insertMenuSearchMap = _constants.SIDE_INSERT_MENUS_SEARCH_MAP
|
|
@@ -204,7 +204,4 @@ const InsertBlockMenu = _ref => {
|
|
|
204
204
|
className: "sdoc-dropdown-menu-item-no-results"
|
|
205
205
|
}, t('No_results')));
|
|
206
206
|
};
|
|
207
|
-
InsertBlockMenu.defaultProps = {
|
|
208
|
-
insertPosition: _constants.INSERT_POSITION.CURRENT
|
|
209
|
-
};
|
|
210
207
|
var _default = exports.default = InsertBlockMenu;
|
|
@@ -17,12 +17,12 @@ var _fullWidthMode = require("../utils/full-width-mode");
|
|
|
17
17
|
var _constants = require("../../basic-sdk/constants");
|
|
18
18
|
const EditorContent = _ref => {
|
|
19
19
|
let {
|
|
20
|
-
readonly,
|
|
21
|
-
showOutline,
|
|
20
|
+
readonly = false,
|
|
22
21
|
children,
|
|
23
22
|
docValue,
|
|
24
23
|
editor,
|
|
25
|
-
|
|
24
|
+
showOutline = true,
|
|
25
|
+
showComment = false
|
|
26
26
|
} = _ref;
|
|
27
27
|
const scrollRef = (0, _react.useRef)(null);
|
|
28
28
|
const [scrollLeft, setScrollLeft] = (0, _react.useState)(0);
|
|
@@ -76,9 +76,4 @@ const EditorContent = _ref => {
|
|
|
76
76
|
editor: editor
|
|
77
77
|
})));
|
|
78
78
|
};
|
|
79
|
-
EditorContent.defaultProps = {
|
|
80
|
-
readonly: false,
|
|
81
|
-
showOutline: true,
|
|
82
|
-
showComment: false
|
|
83
|
-
};
|
|
84
79
|
var _default = exports.default = EditorContent;
|
|
@@ -21,7 +21,7 @@ const SDocMdViewer = _ref => {
|
|
|
21
21
|
let {
|
|
22
22
|
editor,
|
|
23
23
|
document,
|
|
24
|
-
showOutline,
|
|
24
|
+
showOutline = false,
|
|
25
25
|
scrollRef: propsScrollRef
|
|
26
26
|
} = _ref;
|
|
27
27
|
const validEditor = editor || (0, _nodeId.default)((0, _extension.createDefaultEditor)());
|
|
@@ -48,8 +48,4 @@ const SDocMdViewer = _ref => {
|
|
|
48
48
|
editor: validEditor
|
|
49
49
|
}))))));
|
|
50
50
|
};
|
|
51
|
-
SDocMdViewer.defaultProps = {
|
|
52
|
-
showToolbar: false,
|
|
53
|
-
showOutline: false
|
|
54
|
-
};
|
|
55
51
|
var _default = exports.default = SDocMdViewer;
|