@seafile/sdoc-editor 0.1.154-beta3 → 0.1.154-beta5

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.
@@ -92,11 +92,11 @@ var SeafileAPI = /*#__PURE__*/function () {
92
92
  var url = 'api/v2.1/seadoc/revision/basic-version-content/' + docUuid + '/';
93
93
  return this.req.get(url);
94
94
  }
95
+
96
+ // local files
95
97
  }, {
96
98
  key: "getSdocFiles",
97
- value:
98
- // local files
99
- function getSdocFiles(docUuid, p, type) {
99
+ value: function getSdocFiles(docUuid, p, type) {
100
100
  var url = 'api/v2.1/seadoc/dir/' + docUuid + '/?p=' + p + '&type=' + type + '&doc_uuid=' + docUuid;
101
101
  return this.req.get(url);
102
102
  }
@@ -114,7 +114,7 @@ var SimpleEditor = function SimpleEditor(_ref) {
114
114
  var unsubscribeMergeDocumentError = eventBus.subscribe(EXTERNAL_EVENT.DOCUMENT_REPLACED_ERROR, onError);
115
115
  var unsubscribePublishDocumentError = eventBus.subscribe(EXTERNAL_EVENT.PUBLISH_DOCUMENT_ERROR, onError);
116
116
  var unsubscribeRemoveDocument = eventBus.subscribe(EXTERNAL_EVENT.REMOVE_DOCUMENT, onDocumentRemoved);
117
- var unsubscribeRemoveDocumentError = eventBus.subscribe(EXTERNAL_EVENT.REMOVE_DOCUMENT, onError);
117
+ var unsubscribeRemoveDocumentError = eventBus.subscribe(EXTERNAL_EVENT.REMOVE_DOCUMENT_ERROR, onError);
118
118
  return function () {
119
119
  unsubscribeMergeDocument();
120
120
  unsubscribePublishDocument();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "0.1.154beta3",
3
+ "version": "0.1.154beta5",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",