@seafile/seafile-sdoc-editor 3.0.76 → 3.0.78
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.
|
@@ -22,7 +22,8 @@ var SdocWikiEditor = function SdocWikiEditor(_ref) {
|
|
|
22
22
|
collaborators = _ref.collaborators,
|
|
23
23
|
showComment = _ref.showComment,
|
|
24
24
|
isShowRightPanel = _ref.isShowRightPanel,
|
|
25
|
-
setEditor = _ref.setEditor
|
|
25
|
+
setEditor = _ref.setEditor,
|
|
26
|
+
mathJaxSource = _ref.mathJaxSource;
|
|
26
27
|
_sdocEditor.context.initApi();
|
|
27
28
|
var validEditor = (0, _react.useMemo)(function () {
|
|
28
29
|
var defaultEditor = (0, _sdocEditor.createWikiEditor)();
|
|
@@ -102,7 +103,8 @@ var SdocWikiEditor = function SdocWikiEditor(_ref) {
|
|
|
102
103
|
isWikiReadOnly: isWikiReadOnly,
|
|
103
104
|
scrollRef: scrollRef,
|
|
104
105
|
showComment: showComment,
|
|
105
|
-
isShowRightPanel: isShowRightPanel
|
|
106
|
+
isShowRightPanel: isShowRightPanel,
|
|
107
|
+
mathJaxSource: mathJaxSource
|
|
106
108
|
})))));
|
|
107
109
|
};
|
|
108
110
|
var _default = exports["default"] = (0, _reactI18next.withTranslation)('sdoc-editor')(SdocWikiEditor);
|
|
@@ -26,7 +26,8 @@ var SimpleEditor = function SimpleEditor(_ref) {
|
|
|
26
26
|
t = _ref.t,
|
|
27
27
|
_ref$plugins = _ref.plugins,
|
|
28
28
|
plugins = _ref$plugins === void 0 ? [] : _ref$plugins,
|
|
29
|
-
collaborators = _ref.collaborators
|
|
29
|
+
collaborators = _ref.collaborators,
|
|
30
|
+
mathJaxSource = _ref.mathJaxSource;
|
|
30
31
|
_sdocEditor.context.initApi();
|
|
31
32
|
var editorRef = (0, _react.useRef)(null);
|
|
32
33
|
var _useDocument = (0, _hooks.useDocument)(),
|
|
@@ -145,14 +146,16 @@ var SimpleEditor = function SimpleEditor(_ref) {
|
|
|
145
146
|
ref: editorRef,
|
|
146
147
|
isReloading: isReloading,
|
|
147
148
|
document: document,
|
|
148
|
-
showComment: showComment
|
|
149
|
+
showComment: showComment,
|
|
150
|
+
mathJaxSource: mathJaxSource
|
|
149
151
|
}), isSdocRevision && !isPublished && /*#__PURE__*/_react["default"].createElement(_sdocEditor.RevisionEditor, {
|
|
150
152
|
ref: editorRef,
|
|
151
153
|
isReloading: isReloading,
|
|
152
154
|
document: document,
|
|
153
155
|
revisionContent: revisionContent,
|
|
154
156
|
isShowChanges: isShowChanges,
|
|
155
|
-
didMountCallback: setDiffChanges
|
|
157
|
+
didMountCallback: setDiffChanges,
|
|
158
|
+
mathJaxSource: mathJaxSource
|
|
156
159
|
}), isSdocRevision && isPublished && /*#__PURE__*/_react["default"].createElement(_sdocEditor.PublishedRevisionDiffViewer, {
|
|
157
160
|
revisionContent: revisionContent,
|
|
158
161
|
isShowChanges: isShowChanges,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/seafile-sdoc-editor",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.78",
|
|
4
4
|
"author": "shuntian <978987373@qq.com>",
|
|
5
5
|
"homepage": "https://github.com/seafileltd/sea-sdoc-editor#readme",
|
|
6
6
|
"license": "ISC",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"description": "",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@seafile/print-js": "1.6.6",
|
|
32
|
-
"@seafile/sdoc-editor": "^3.0.
|
|
32
|
+
"@seafile/sdoc-editor": "^3.0.78",
|
|
33
33
|
"classnames": "2.3.2",
|
|
34
34
|
"dayjs": "1.10.7"
|
|
35
35
|
},
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "bbda01e681bef4b6ffc952f145768951ef6025cf"
|
|
49
49
|
}
|