@ones-editor/editor 1.1.16-beta.10 → 1.1.16-beta.11

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
@@ -37003,6 +37003,7 @@ ${codeText}
37003
37003
  this.emit("selectionChange", this, "");
37004
37004
  });
37005
37005
  __publicField(this, "handleItemClick", (event) => {
37006
+ var _a, _b;
37006
37007
  const elem = this.getParentCommandItemElement(event.target);
37007
37008
  if (!elem) {
37008
37009
  return;
@@ -37024,6 +37025,9 @@ ${codeText}
37024
37025
  }
37025
37026
  this.emit("click", this, item, elem);
37026
37027
  if (this.options.autoClose) {
37028
+ if ((_b = (_a = this.options).beforeClose) == null ? void 0 : _b.call(_a, event)) {
37029
+ return;
37030
+ }
37027
37031
  this.close("clickItem");
37028
37032
  }
37029
37033
  });
@@ -75865,7 +75869,7 @@ ${data.flowchartText}
75865
75869
  }
75866
75870
  }
75867
75871
  });
75868
- editor.version = "1.1.16-beta.10";
75872
+ editor.version = "1.1.16-beta.11";
75869
75873
  return editor;
75870
75874
  }
75871
75875
  function isDoc(doc2) {
@@ -75947,7 +75951,7 @@ ${data.flowchartText}
75947
75951
  });
75948
75952
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
75949
75953
  OnesEditorToolbar.register(editor);
75950
- editor.version = "1.1.16-beta.10";
75954
+ editor.version = "1.1.16-beta.11";
75951
75955
  return editor;
75952
75956
  }
75953
75957
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "1.1.16-beta.10",
3
+ "version": "1.1.16-beta.11",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",