@ones-editor/editor 2.1.2-beta.18 → 2.1.2-beta.19
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 +2 -21
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29333,8 +29333,6 @@ ${codeText}
|
|
|
29333
29333
|
assert(logger$35, this.editor.isBlockWritable(block), `block is not writable, ${containerId}, ${blockIndex}`);
|
|
29334
29334
|
}
|
|
29335
29335
|
localUpdateBlockText(containerId, blockIndex, actions2, options) {
|
|
29336
|
-
assert(logger$35, !this.editor.readonly, "editor is readonly");
|
|
29337
|
-
this.verifyBlockWritable(containerId, blockIndex);
|
|
29338
29336
|
const blockData = this.getBlockData(containerId, blockIndex);
|
|
29339
29337
|
const oldText = blockData.text;
|
|
29340
29338
|
assert(logger$35, oldText, `no text, ${containerId}, ${blockIndex}`);
|
|
@@ -29346,7 +29344,6 @@ ${codeText}
|
|
|
29346
29344
|
return ret;
|
|
29347
29345
|
}
|
|
29348
29346
|
localUpdateBlockData(containerId, blockIndex, delta, newRange, options) {
|
|
29349
|
-
assert(logger$35, !this.editor.readonly, "editor is readonly");
|
|
29350
29347
|
const block = this.editor.getBlockByIndex(containerId, blockIndex);
|
|
29351
29348
|
if (!this.editor.isBlockWritable(block)) {
|
|
29352
29349
|
const deletedKeys = Array.from(delta.delete).filter((key) => key !== "comments");
|
|
@@ -68979,14 +68976,10 @@ ${codeText}
|
|
|
68979
68976
|
}
|
|
68980
68977
|
this.hideToolbar(editor2);
|
|
68981
68978
|
comments.showCommentList();
|
|
68982
|
-
editor2.readonly = false;
|
|
68983
68979
|
const offset = getChildOffset(block, child2);
|
|
68984
68980
|
const range = createBlockSimpleRange(this.editor, block, offset.start, offset.end);
|
|
68985
68981
|
const comment = addCommentToTextBlocks(editor2, range, comments.commentProvider);
|
|
68986
68982
|
this.localCreatedComments.set(comment.id, range);
|
|
68987
|
-
setTimeout(() => {
|
|
68988
|
-
editor2.readonly = true;
|
|
68989
|
-
}, 100);
|
|
68990
68983
|
}
|
|
68991
68984
|
}
|
|
68992
68985
|
};
|
|
@@ -69013,13 +69006,9 @@ ${codeText}
|
|
|
69013
69006
|
return;
|
|
69014
69007
|
}
|
|
69015
69008
|
editor2.selection.selectBlock(block, 0, getBlockTextLength$6(editor2, block), { noScroll: true });
|
|
69016
|
-
editor2.readonly = false;
|
|
69017
69009
|
const editorComments = editor2.getCustom("editor-comments");
|
|
69018
69010
|
editorComments.showCommentList();
|
|
69019
69011
|
addCommentToBlock$1(editor2, block, editorComments.commentProvider);
|
|
69020
|
-
setTimeout(() => {
|
|
69021
|
-
editor2.readonly = true;
|
|
69022
|
-
}, 100);
|
|
69023
69012
|
}
|
|
69024
69013
|
}
|
|
69025
69014
|
};
|
|
@@ -69052,21 +69041,13 @@ ${codeText}
|
|
|
69052
69041
|
if (isFullSelectedOneComplexBlock(editor, range)) {
|
|
69053
69042
|
const selectedBlock = range.getSelectedBlocks()[0];
|
|
69054
69043
|
if (selectedBlock) {
|
|
69055
|
-
editor.readonly = false;
|
|
69056
69044
|
const editorComments = editor.getCustom("editor-comments");
|
|
69057
69045
|
addCommentToBlock$1(editor, selectedBlock.block, editorComments.commentProvider);
|
|
69058
|
-
setTimeout(() => {
|
|
69059
|
-
editor.readonly = true;
|
|
69060
|
-
}, 100);
|
|
69061
69046
|
}
|
|
69062
69047
|
return;
|
|
69063
69048
|
}
|
|
69064
69049
|
}
|
|
69065
|
-
editor.readonly = false;
|
|
69066
69050
|
addCommentToTextBlocks(editor, range, comments.commentProvider);
|
|
69067
|
-
setTimeout(() => {
|
|
69068
|
-
editor.readonly = true;
|
|
69069
|
-
}, 100);
|
|
69070
69051
|
}
|
|
69071
69052
|
options.bar.close("clickItem");
|
|
69072
69053
|
}
|
|
@@ -88123,7 +88104,7 @@ ${data2.flowchartText}
|
|
|
88123
88104
|
}
|
|
88124
88105
|
}
|
|
88125
88106
|
});
|
|
88126
|
-
editor.version = "2.1.2-beta.
|
|
88107
|
+
editor.version = "2.1.2-beta.19";
|
|
88127
88108
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
88128
88109
|
window.setReauthFail = (fail) => {
|
|
88129
88110
|
window.isReauthError = fail;
|
|
@@ -88224,7 +88205,7 @@ ${data2.flowchartText}
|
|
|
88224
88205
|
});
|
|
88225
88206
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88226
88207
|
OnesEditorToolbar.register(editor);
|
|
88227
|
-
editor.version = "2.1.2-beta.
|
|
88208
|
+
editor.version = "2.1.2-beta.19";
|
|
88228
88209
|
return editor;
|
|
88229
88210
|
}
|
|
88230
88211
|
async function showDocVersions(editor, options, serverUrl) {
|