@ones-editor/editor 2.6.7 → 2.6.9-beta.1

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
@@ -10759,7 +10759,7 @@ var __publicField = (obj, key, value) => {
10759
10759
  if (parsedShortcut.key.length === 1) {
10760
10760
  return parsedShortcut.key === event.key.toUpperCase();
10761
10761
  }
10762
- return parsedShortcut.key.toUpperCase() === event.key.toUpperCase() || parsedShortcut.key.toUpperCase() === event.code.toUpperCase();
10762
+ return parsedShortcut.key.toUpperCase() === event.key.toUpperCase() || !(event.isComposing === false && event.key.toLowerCase() === "process") && parsedShortcut.key.toUpperCase() === event.code.toUpperCase();
10763
10763
  }
10764
10764
  function updateUrl(url, query2) {
10765
10765
  return queryString.stringifyUrl({
@@ -66182,7 +66182,7 @@ ${codeText}
66182
66182
  const blocks = editor.doc.getContainerBlocks(getContainerId(editor.rootContainer));
66183
66183
  assert(logger$1o, blocks.length > 0, "root container is empty");
66184
66184
  const firstBlock = blocks[0];
66185
- if (firstBlock.type !== "text" && !this.options.hideTitle) {
66185
+ if (!isTextKindBlockType(editor, firstBlock.type) && !this.options.hideTitle) {
66186
66186
  const blockData = createTextBlockData("", { heading: (_a = this.options.headingLevel) != null ? _a : 1 });
66187
66187
  const newBlock = editor.insertBlock(getContainerId(editor.rootContainer), 0, blockData, editor.selection.range.toDocRange());
66188
66188
  newBlock.setAttribute("data-document-title", "");
@@ -66191,7 +66191,7 @@ ${codeText}
66191
66191
  if (!this.options.hideTitle) {
66192
66192
  assert(logger$1o, firstBlock.text, "invalid text block");
66193
66193
  const block = editor.getBlockById(firstBlock.id);
66194
- if (hasAttributes(firstBlock.text) || firstBlock.quoted || firstBlock.heading !== this.options.headingLevel) {
66194
+ if (hasAttributes(firstBlock.text) || firstBlock.quoted || firstBlock.heading !== this.options.headingLevel || firstBlock.type !== "text") {
66195
66195
  const text2 = editor.getBlockString(block);
66196
66196
  const blockData = createTextBlockData(text2, { heading: (_b = this.options.headingLevel) != null ? _b : 1, quoted: false });
66197
66197
  const focusedBlock = editor.selection.focusedBlock;
@@ -92478,7 +92478,7 @@ ${data2.plantumlText}
92478
92478
  }
92479
92479
  }
92480
92480
  });
92481
- editor.version = "2.6.7";
92481
+ editor.version = "2.6.9-beta.1";
92482
92482
  return editor;
92483
92483
  }
92484
92484
  function isDoc(doc2) {
@@ -92591,7 +92591,7 @@ ${data2.plantumlText}
92591
92591
  }
92592
92592
  });
92593
92593
  OnesEditorToolbar.register(editor);
92594
- editor.version = "2.6.7";
92594
+ editor.version = "2.6.9-beta.1";
92595
92595
  return editor;
92596
92596
  }
92597
92597
  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.6.7",
3
+ "version": "2.6.9-beta.1",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {