@ones-editor/editor 2.1.1-beta.22 → 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/dist/index.js CHANGED
@@ -58019,7 +58019,9 @@ $$${mathData.mathjaxText}$$
58019
58019
  }
58020
58020
  if (!(params == null ? void 0 : params.isFilter)) {
58021
58021
  commands.forEach((item) => {
58022
- item.states = disable ? ["disabled"] : [];
58022
+ if (disable) {
58023
+ item.states = ["disabled"];
58024
+ }
58023
58025
  });
58024
58026
  }
58025
58027
  return commands;
@@ -58102,7 +58104,7 @@ $$${mathData.mathjaxText}$$
58102
58104
  return [];
58103
58105
  }
58104
58106
  this.updateButtonColor(range);
58105
- return [{ ...this.colorItem, states: disable ? ["disabled"] : [] }];
58107
+ return [{ ...this.colorItem, states: disable ? ["disabled"] : [], childrenPlacement: "bottom" }];
58106
58108
  }
58107
58109
  getInsertCommands() {
58108
58110
  return [];
@@ -58162,7 +58164,9 @@ $$${mathData.mathjaxText}$$
58162
58164
  }
58163
58165
  if (!(params == null ? void 0 : params.isFilter)) {
58164
58166
  commands.forEach((item) => {
58165
- item.states = disable ? ["disabled"] : [];
58167
+ if (disable) {
58168
+ item.states = ["disabled"];
58169
+ }
58166
58170
  });
58167
58171
  }
58168
58172
  return commands;
@@ -84900,7 +84904,7 @@ ${data2.flowchartText}
84900
84904
  }
84901
84905
  }
84902
84906
  });
84903
- editor.version = "2.1.1-beta.22";
84907
+ editor.version = "2.1.1-beta.23";
84904
84908
  if (Logger$2.level === LogLevel.DEBUG) {
84905
84909
  window.setReauthFail = (fail) => {
84906
84910
  window.isReauthError = fail;
@@ -84997,7 +85001,7 @@ ${data2.flowchartText}
84997
85001
  });
84998
85002
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
84999
85003
  OnesEditorToolbar.register(editor);
85000
- editor.version = "2.1.1-beta.22";
85004
+ editor.version = "2.1.1-beta.23";
85001
85005
  return editor;
85002
85006
  }
85003
85007
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.1.1-beta.22",
3
+ "version": "2.1.1-beta.23",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",