@ones-editor/editor 2.2.8-beta.8 → 2.2.8-beta.9

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.
@@ -9,6 +9,6 @@ export declare class StandardBoxCommands implements BoxCommands {
9
9
  addProvider(provider: OnesEditorCommandProvider): void;
10
10
  get commands(): CommandItem[];
11
11
  executeCommand(editor: OnesEditor, block: BlockElement, box: BoxElement, item: CommandItem): void;
12
- static create(editor: OnesEditor): StandardBoxCommands;
13
- static mobileCreate(editor: OnesEditor): StandardBoxCommands;
12
+ static create(editor: OnesEditor, extIds?: ExtIds[]): StandardBoxCommands;
13
+ static mobileCreate(editor: OnesEditor, extIds?: ExtIds[]): StandardBoxCommands;
14
14
  }
package/dist/index.js CHANGED
@@ -48067,10 +48067,10 @@ ${codeText}
48067
48067
  const { start, end } = getChildOffset(block, box);
48068
48068
  const range = createBlockSimpleRange(editor, block, start, end);
48069
48069
  for (const provider of this.providers) {
48070
- if ((_a = provider.executeRangeCommand) == null ? void 0 : _a.call(provider, editor, range, item, {})) {
48070
+ if ((_a = provider.executeRangeCommand) == null ? void 0 : _a.call(provider, editor, range, item, { child: box })) {
48071
48071
  return;
48072
48072
  }
48073
- if ((_b = provider.executeCommand) == null ? void 0 : _b.call(provider, editor, block, range, item, {})) {
48073
+ if ((_b = provider.executeCommand) == null ? void 0 : _b.call(provider, editor, block, range, item, { child: box })) {
48074
48074
  return;
48075
48075
  }
48076
48076
  }
@@ -48078,11 +48078,11 @@ ${codeText}
48078
48078
  addCommentToBlock$1(editor, block);
48079
48079
  }
48080
48080
  }
48081
- static create(editor) {
48082
- return new StandardBoxCommands(editor);
48081
+ static create(editor, extIds) {
48082
+ return new StandardBoxCommands(editor, extIds);
48083
48083
  }
48084
- static mobileCreate(editor) {
48085
- const instance = new StandardBoxCommands(editor);
48084
+ static mobileCreate(editor, extIds) {
48085
+ const instance = new StandardBoxCommands(editor, extIds);
48086
48086
  instance.addProvider(new ClipboardProvider(editor, { withPaste: false }));
48087
48087
  return instance;
48088
48088
  }
@@ -88376,7 +88376,7 @@ ${data2.flowchartText}
88376
88376
  }
88377
88377
  }
88378
88378
  });
88379
- editor.version = "2.2.8-beta.8";
88379
+ editor.version = "2.2.8-beta.9";
88380
88380
  return editor;
88381
88381
  }
88382
88382
  function isDoc(doc2) {
@@ -88471,7 +88471,7 @@ ${data2.flowchartText}
88471
88471
  });
88472
88472
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
88473
88473
  OnesEditorToolbar.register(editor);
88474
- editor.version = "2.2.8-beta.8";
88474
+ editor.version = "2.2.8-beta.9";
88475
88475
  return editor;
88476
88476
  }
88477
88477
  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.2.8-beta.8",
3
+ "version": "2.2.8-beta.9",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",