@ones-editor/editor 0.0.3-beta.223 → 0.0.3-beta.225

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.
@@ -1,4 +1,4 @@
1
- import { BlockElement, OnesEditor, SimpleSelectionRange } from '../../types';
1
+ import { BlockElement, OnesEditor, SelectionRange, SimpleSelectionRange } from '../../types';
2
2
  import { DocBlockText } from '../../doc';
3
3
  export declare function editorRemoveTextAttribute(editor: OnesEditor, block: BlockElement, range: SimpleSelectionRange, attributeName: string): DocBlockText;
4
4
  export declare function editorAddTextAttribute(editor: OnesEditor, block: BlockElement, range: SimpleSelectionRange, attributeName: string, value: boolean | string | number): DocBlockText;
@@ -7,4 +7,4 @@ export type SetEmptyTextBlockColor = (editor: OnesEditor, blockId: string, type:
7
7
  export declare function editorRangeSetColor(editor: OnesEditor, type: 'color' | 'backgroundColor', value: number | null, emptyBlockFun: SetEmptyTextBlockColor): void;
8
8
  export declare function editorRangeClearColor(editor: OnesEditor, value: 'clearAll' | 'clearColor' | 'clearBackground', emptyBlockFun: SetEmptyTextBlockColor): void;
9
9
  export type GetEmptyTextBlockColor = (editor: OnesEditor, blockId: string) => [number | null, number | null];
10
- export declare function editorRangeGetColor(editor: OnesEditor, emptyBlockFun: GetEmptyTextBlockColor): [number | null, number | null];
10
+ export declare function editorRangeGetColor(editor: OnesEditor, range: SelectionRange, emptyBlockFun: GetEmptyTextBlockColor): [number | null, number | null];
@@ -1,4 +1,4 @@
1
- import { OnesEditorDocRange } from '../../doc/doc';
1
+ import { DocBlock, OnesEditorDocRange } from '../../doc/doc';
2
2
  import { OnesEditor, OnesEditorUndoAction } from '../../types';
3
3
  export default class Action implements OnesEditorUndoAction {
4
4
  protected containerId: string;
@@ -10,4 +10,7 @@ export default class Action implements OnesEditorUndoAction {
10
10
  combinable(other: OnesEditorUndoAction): boolean;
11
11
  combine(other: OnesEditorUndoAction): void;
12
12
  setAfterRange(range: OnesEditorDocRange): void;
13
+ findContainerById(editor: OnesEditor, id: string): boolean;
14
+ findBlockById(editor: OnesEditor, id: string): boolean;
15
+ checkBlockData(editor: OnesEditor, blockData: DocBlock): boolean;
13
16
  }
@@ -14,7 +14,6 @@ export default class TextCommandProvider implements OnesEditorCommandProvider {
14
14
  private setCommandsStates;
15
15
  getEmptyBlockTextAttributes(editor: OnesEditor, blockId: string): DocBlockTextAttributes | undefined;
16
16
  private handleChangeColor;
17
- private handleBeforePopupPalette;
18
17
  private getEmptyTextBlockColor;
19
18
  private setEmptyTextBlockColor;
20
19
  private static toTextCommand;