@ones-editor/editor 2.1.1-beta.21 → 2.1.1-beta.23
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 +11 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -56842,6 +56842,7 @@ $$${mathData.mathjaxText}$$
|
|
|
56842
56842
|
if (!options.insertBlockCommandItems) {
|
|
56843
56843
|
return;
|
|
56844
56844
|
}
|
|
56845
|
+
injectBlockOptions(options.insertBlockCommandItems, options);
|
|
56845
56846
|
commands.push(...options.insertBlockCommandItems);
|
|
56846
56847
|
});
|
|
56847
56848
|
for (const provider of this.providers) {
|
|
@@ -58010,7 +58011,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58010
58011
|
return [];
|
|
58011
58012
|
}
|
|
58012
58013
|
let commands;
|
|
58013
|
-
if (getBlockTextLength$6(editor, block) === 0) {
|
|
58014
|
+
if (getBlockTextLength$6(editor, block) === 0 || !isTextKindBlock(editor, block)) {
|
|
58014
58015
|
commands = getCommands$1([]);
|
|
58015
58016
|
} else {
|
|
58016
58017
|
const subText2 = getSubText(editor, block, range);
|
|
@@ -58018,7 +58019,9 @@ $$${mathData.mathjaxText}$$
|
|
|
58018
58019
|
}
|
|
58019
58020
|
if (!(params == null ? void 0 : params.isFilter)) {
|
|
58020
58021
|
commands.forEach((item) => {
|
|
58021
|
-
|
|
58022
|
+
if (disable) {
|
|
58023
|
+
item.states = ["disabled"];
|
|
58024
|
+
}
|
|
58022
58025
|
});
|
|
58023
58026
|
}
|
|
58024
58027
|
return commands;
|
|
@@ -58101,7 +58104,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58101
58104
|
return [];
|
|
58102
58105
|
}
|
|
58103
58106
|
this.updateButtonColor(range);
|
|
58104
|
-
return [{ ...this.colorItem, states: disable ? ["disabled"] : [] }];
|
|
58107
|
+
return [{ ...this.colorItem, states: disable ? ["disabled"] : [], childrenPlacement: "bottom" }];
|
|
58105
58108
|
}
|
|
58106
58109
|
getInsertCommands() {
|
|
58107
58110
|
return [];
|
|
@@ -58161,7 +58164,9 @@ $$${mathData.mathjaxText}$$
|
|
|
58161
58164
|
}
|
|
58162
58165
|
if (!(params == null ? void 0 : params.isFilter)) {
|
|
58163
58166
|
commands.forEach((item) => {
|
|
58164
|
-
|
|
58167
|
+
if (disable) {
|
|
58168
|
+
item.states = ["disabled"];
|
|
58169
|
+
}
|
|
58165
58170
|
});
|
|
58166
58171
|
}
|
|
58167
58172
|
return commands;
|
|
@@ -84899,7 +84904,7 @@ ${data2.flowchartText}
|
|
|
84899
84904
|
}
|
|
84900
84905
|
}
|
|
84901
84906
|
});
|
|
84902
|
-
editor.version = "2.1.1-beta.
|
|
84907
|
+
editor.version = "2.1.1-beta.23";
|
|
84903
84908
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
84904
84909
|
window.setReauthFail = (fail) => {
|
|
84905
84910
|
window.isReauthError = fail;
|
|
@@ -84996,7 +85001,7 @@ ${data2.flowchartText}
|
|
|
84996
85001
|
});
|
|
84997
85002
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
84998
85003
|
OnesEditorToolbar.register(editor);
|
|
84999
|
-
editor.version = "2.1.1-beta.
|
|
85004
|
+
editor.version = "2.1.1-beta.23";
|
|
85000
85005
|
return editor;
|
|
85001
85006
|
}
|
|
85002
85007
|
async function showDocVersions(editor, options, serverUrl) {
|