@ones-editor/editor 2.1.1-beta.15 → 2.1.1-beta.16

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
@@ -29753,8 +29753,16 @@ ${codeText}
29753
29753
  function getBlockCommands(providers, editor, block, range, source) {
29754
29754
  const commandsMap = /* @__PURE__ */ new Map();
29755
29755
  setBlockCommandsMap(providers, editor, block, range, commandsMap);
29756
- const commands = flatCommands(commandsMap);
29756
+ let commands = flatCommands(commandsMap);
29757
29757
  injectSource(commands, [source]);
29758
+ providers.forEach((provider) => {
29759
+ if (provider.filterCommands) {
29760
+ const ret = provider.filterCommands(editor, block, range, commands);
29761
+ if (ret) {
29762
+ commands = ret;
29763
+ }
29764
+ }
29765
+ });
29758
29766
  return commands;
29759
29767
  }
29760
29768
  const logger$2W = getLogger("abstract-command-providers");
@@ -84878,7 +84886,7 @@ ${data2.flowchartText}
84878
84886
  }
84879
84887
  }
84880
84888
  });
84881
- editor.version = "2.1.1-beta.15";
84889
+ editor.version = "2.1.1-beta.16";
84882
84890
  if (Logger$2.level === LogLevel.DEBUG) {
84883
84891
  window.setReauthFail = (fail) => {
84884
84892
  window.isReauthError = fail;
@@ -84975,7 +84983,7 @@ ${data2.flowchartText}
84975
84983
  });
84976
84984
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
84977
84985
  OnesEditorToolbar.register(editor);
84978
- editor.version = "2.1.1-beta.15";
84986
+ editor.version = "2.1.1-beta.16";
84979
84987
  return editor;
84980
84988
  }
84981
84989
  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.15",
3
+ "version": "2.1.1-beta.16",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",