@seafile/sdoc-editor 0.1.69-beta1 → 0.1.69-beta2

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.
@@ -54,11 +54,12 @@ var SeafileAPI = /*#__PURE__*/function () {
54
54
  }
55
55
  }, {
56
56
  key: "startRevise",
57
- value: function startRevise(repoID, path) {
57
+ value: function startRevise(repoID, fileUuid, path) {
58
58
  var url = '/api/v2.1/seadoc/revisions/';
59
59
  var form = new FormData();
60
60
  form.append('p', path);
61
61
  form.append('repo_id', repoID);
62
+ form.append('file_uuid', fileUuid);
62
63
  return this._sendPostRequest(url, form);
63
64
  }
64
65
  }]);
package/dist/context.js CHANGED
@@ -130,7 +130,8 @@ var Context = /*#__PURE__*/function () {
130
130
  value: function startRevise() {
131
131
  var repoID = this.getSetting('repoID');
132
132
  var filePath = this.getSetting('docPath');
133
- return this.api.startRevise(repoID, filePath);
133
+ var fileUuid = this.getSetting('docUuid');
134
+ return this.api.startRevise(repoID, fileUuid, filePath);
134
135
  }
135
136
  }, {
136
137
  key: "publishSdocRevision",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "0.1.69beta1",
3
+ "version": "0.1.69beta2",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",