@seafile/seafile-editor 1.0.120-beta → 1.0.120

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,6 +35,8 @@ 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);
38
40
  }
39
41
  }, []);
40
42
  const resizeWidthEnd = (0, _react.useCallback)(width => {
@@ -43,8 +45,6 @@ const ArticleInfo = _ref => {
43
45
  ...settings,
44
46
  panelWidth: width
45
47
  }));
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', '{}')) || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-editor",
3
- "version": "1.0.120beta",
3
+ "version": "1.0.120",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {