@ones-editor/editor 0.0.3-beta.176 → 0.0.3-beta.177

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.
@@ -2,7 +2,7 @@ import { CommandItemState } from '../../../../@ones-editor/core';
2
2
  import './button.scss';
3
3
  export declare function getButtonId(button: HTMLButtonElement): string;
4
4
  export declare function getParentButton(target: EventTarget): HTMLButtonElement | null;
5
- export declare function createButton(id: string, name: string, child?: string | Element, states?: CommandItemState[], tooltipId?: string): HTMLButtonElement;
5
+ export declare function createButton(id: string, name: string, child?: string | Element, states?: (CommandItemState | 'primary')[], tooltipId?: string): HTMLButtonElement;
6
6
  export declare function changeButtonName(button: HTMLButtonElement, name: string, tooltipId?: string): void;
7
7
  export declare function createSeparator(type: 'horizontal' | 'vertical'): HTMLSpanElement;
8
8
  export type ButtonOptions = Parameters<typeof createButton>;