@seafile/seafile-sdoc-editor 2.0.106 → 2.0.108

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.
@@ -27,6 +27,7 @@ var EXTERNAL_EVENT = exports.EXTERNAL_EVENT = {
27
27
  CREATE_SDOC_FILE: _sdocEditor.INTERNAL_EVENT.CREATE_SDOC_FILE,
28
28
  CREATE_WIKI_PAGE: _sdocEditor.INTERNAL_EVENT.CREATE_WIKI_PAGE,
29
29
  UNSEEN_NOTIFICATIONS_COUNT: _sdocEditor.INTERNAL_EVENT.UNSEEN_NOTIFICATIONS_COUNT,
30
+ TRANSFER_PREVIEW_FILE_ID: _sdocEditor.INTERNAL_EVENT.TRANSFER_PREVIEW_FILE_ID,
30
31
  // document
31
32
  IMAGE_COLUMN_TOGGLE: _sdocEditor.INTERNAL_EVENT.IMAGE_COLUMN_TOGGLE,
32
33
  COLLABORATORS_UPDATED: 'collaborators_updated',
@@ -44,11 +44,11 @@ var SdocWikiEditor = function SdocWikiEditor(_ref) {
44
44
  // eslint-disable-next-line react-hooks/exhaustive-deps
45
45
  }, [docUuid]);
46
46
  (0, _react.useEffect)(function () {
47
- if (setEditor && validEditor && isShowRightPanel) {
47
+ if (setEditor && validEditor) {
48
48
  validEditor.editorType = _sdocEditor.WIKI_EDITOR;
49
49
  setEditor(validEditor);
50
50
  }
51
- }, [setEditor, validEditor, isShowRightPanel]);
51
+ }, [setEditor, validEditor]);
52
52
  (0, _react.useEffect)(function () {
53
53
  if (isWikiReadOnly) return;
54
54
  validEditor.openConnection();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-sdoc-editor",
3
- "version": "2.0.106",
3
+ "version": "2.0.108",
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": "^2.0.189",
32
+ "@seafile/sdoc-editor": "^2.0.191",
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": "59450c9add50eee2fd988db15cc9b11091a09034"
48
+ "gitHead": "c558ebae65cc4325ebc6ad0d4989ae889d4f420d"
49
49
  }