@seafile/seafile-editor 1.0.120 → 1.0.122

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.
@@ -35,8 +35,6 @@ const ArticleInfo = _ref => {
35
35
  const resizeWidth = (0, _react.useCallback)(width => {
36
36
  if (width >= MIN_PANEL_WIDTH && width <= MAX_PANEL_WIDTH) {
37
37
  setWidth(width);
38
- const eventBus = _eventBus.default.getInstance();
39
- eventBus.dispatch(_eventTypes.INTERNAL_EVENTS.RESIZE_ARTICLE);
40
38
  }
41
39
  }, []);
42
40
  const resizeWidthEnd = (0, _react.useCallback)(width => {
@@ -45,6 +43,8 @@ const ArticleInfo = _ref => {
45
43
  ...settings,
46
44
  panelWidth: width
47
45
  }));
46
+ const eventBus = _eventBus.default.getInstance();
47
+ eventBus.dispatch(_eventTypes.INTERNAL_EVENTS.RESIZE_ARTICLE);
48
48
  }, []);
49
49
  (0, _react.useEffect)(() => {
50
50
  const settings = JSON.parse(window.localStorage.getItem('sf-editor', '{}')) || {};
@@ -77,7 +77,6 @@ const Outline = _ref => {
77
77
  }, [scrollRef]);
78
78
  (0, _react.useEffect)(() => {
79
79
  const outlineState = getOutlineSetting();
80
- console.log(outlineState);
81
80
  updateOutlineState(outlineState);
82
81
  // eslint-disable-next-line react-hooks/exhaustive-deps
83
82
  }, []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-editor",
3
- "version": "1.0.120",
3
+ "version": "1.0.122",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {