@ones-editor/editor 3.0.16-beta.4 → 3.0.16-beta.5
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.
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +20 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -73170,11 +73170,15 @@ ${codeText}
|
|
|
73170
73170
|
const server = (_b = (_a = doc2.getServerMeta) == null ? void 0 : _a.call(doc2)) == null ? void 0 : _b.apiServer;
|
|
73171
73171
|
assert(logger$17, server, "apiServer is not set");
|
|
73172
73172
|
const api = `${server}/${version}/comments/${commentId}`;
|
|
73173
|
+
const data2 = {
|
|
73174
|
+
comment: commentDoc
|
|
73175
|
+
};
|
|
73176
|
+
if (shouldUseOldVersionSilent(editor)) {
|
|
73177
|
+
data2.silent = true;
|
|
73178
|
+
}
|
|
73173
73179
|
return doc2.request(api, {
|
|
73174
73180
|
method: "put",
|
|
73175
|
-
data:
|
|
73176
|
-
comment: commentDoc
|
|
73177
|
-
}
|
|
73181
|
+
data: data2
|
|
73178
73182
|
});
|
|
73179
73183
|
}
|
|
73180
73184
|
function deleteCommentFromOldDoc(editor, version, commentId) {
|
|
@@ -73182,7 +73186,10 @@ ${codeText}
|
|
|
73182
73186
|
const doc2 = editor.doc;
|
|
73183
73187
|
const server = (_b = (_a = doc2.getServerMeta) == null ? void 0 : _a.call(doc2)) == null ? void 0 : _b.apiServer;
|
|
73184
73188
|
assert(logger$17, server, "apiServer is not set");
|
|
73185
|
-
|
|
73189
|
+
let api = `${server}/${version}/comments/${commentId}`;
|
|
73190
|
+
if (shouldUseOldVersionSilent(editor)) {
|
|
73191
|
+
api += "?silent=true";
|
|
73192
|
+
}
|
|
73186
73193
|
return doc2.request(api, {
|
|
73187
73194
|
method: "delete"
|
|
73188
73195
|
});
|
|
@@ -73193,11 +73200,15 @@ ${codeText}
|
|
|
73193
73200
|
const server = (_b = (_a = doc2.getServerMeta) == null ? void 0 : _a.call(doc2)) == null ? void 0 : _b.apiServer;
|
|
73194
73201
|
assert(logger$17, server, "apiServer is not set");
|
|
73195
73202
|
const api = `${server}/${version}/comments/${commentId}/resolver`;
|
|
73203
|
+
const data2 = {
|
|
73204
|
+
resolver
|
|
73205
|
+
};
|
|
73206
|
+
if (shouldUseOldVersionSilent(editor)) {
|
|
73207
|
+
data2.silent = true;
|
|
73208
|
+
}
|
|
73196
73209
|
return doc2.request(api, {
|
|
73197
73210
|
method: "put",
|
|
73198
|
-
data:
|
|
73199
|
-
resolver
|
|
73200
|
-
}
|
|
73211
|
+
data: data2
|
|
73201
73212
|
});
|
|
73202
73213
|
}
|
|
73203
73214
|
getLogger("resolved-comment-item");
|
|
@@ -97011,7 +97022,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97011
97022
|
}
|
|
97012
97023
|
}
|
|
97013
97024
|
});
|
|
97014
|
-
editor.version = "3.0.16-beta.
|
|
97025
|
+
editor.version = "3.0.16-beta.5";
|
|
97015
97026
|
return editor;
|
|
97016
97027
|
}
|
|
97017
97028
|
function isDoc(doc2) {
|
|
@@ -97145,7 +97156,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97145
97156
|
OnesEditorDropTarget.register(editor);
|
|
97146
97157
|
OnesEditorTocProvider.register(editor);
|
|
97147
97158
|
OnesEditorExclusiveBlock.register(editor);
|
|
97148
|
-
editor.version = "3.0.16-beta.
|
|
97159
|
+
editor.version = "3.0.16-beta.5";
|
|
97149
97160
|
return editor;
|
|
97150
97161
|
}
|
|
97151
97162
|
async function showDocVersions(editor, options, serverUrl) {
|