@ones-editor/editor 2.1.1-beta.21 → 2.1.1-beta.22

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
@@ -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);
@@ -84899,7 +84900,7 @@ ${data2.flowchartText}
84899
84900
  }
84900
84901
  }
84901
84902
  });
84902
- editor.version = "2.1.1-beta.21";
84903
+ editor.version = "2.1.1-beta.22";
84903
84904
  if (Logger$2.level === LogLevel.DEBUG) {
84904
84905
  window.setReauthFail = (fail) => {
84905
84906
  window.isReauthError = fail;
@@ -84996,7 +84997,7 @@ ${data2.flowchartText}
84996
84997
  });
84997
84998
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
84998
84999
  OnesEditorToolbar.register(editor);
84999
- editor.version = "2.1.1-beta.21";
85000
+ editor.version = "2.1.1-beta.22";
85000
85001
  return editor;
85001
85002
  }
85002
85003
  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.21",
3
+ "version": "2.1.1-beta.22",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",