@seafile/sdoc-editor 1.0.11 → 1.0.13

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.
@@ -14,7 +14,7 @@ export const getOutlineSetting = () => {
14
14
  } = config;
15
15
  return outlineOpen;
16
16
  };
17
- const setOutlineSetting = isShown => {
17
+ export const setOutlineSetting = isShown => {
18
18
  const currentValue = localStorage.getItem('sdoc');
19
19
  const config = currentValue ? JSON.parse(currentValue) : {};
20
20
  config['outlineOpen'] = isShown;
@@ -8,6 +8,7 @@ import withNodeId from '../basic-sdk/node-id';
8
8
  import { withSocketIO } from '../basic-sdk/socket';
9
9
  import { TITLE } from '../basic-sdk/extension/constants';
10
10
  import WikiEditor from '../basic-sdk/editor/wiki-editor';
11
+ import { setOutlineSetting } from '../basic-sdk/outline';
11
12
  import '../assets/css/simple-viewer.css';
12
13
  const SdocWikiViewer = _ref => {
13
14
  let {
@@ -42,6 +43,7 @@ const SdocWikiViewer = _ref => {
42
43
  }, [docUuid]);
43
44
  useEffect(() => {
44
45
  validEditor.openConnection();
46
+ setOutlineSetting(false);
45
47
  return () => {
46
48
  validEditor.closeConnection();
47
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",