@grapesjs/studio-sdk-plugins 1.0.5 → 1.0.6

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.
@@ -19,7 +19,13 @@ export declare const cssStringToCssObject: (cssString: string) => Record<string,
19
19
  export declare const cssObjectToCssString: (cssObject: Record<string, string>) => string;
20
20
  export declare function chainCommands(...commands: Command[]): Command;
21
21
  export declare const focusCursor: (view: EditorView, opts?: CustomRteOptions) => void;
22
- export declare const getCommands: (view: EditorView) => {
22
+ export declare const getCommands: (view: EditorView, editor: Editor) => {
23
+ text: {
24
+ selected: () => string;
25
+ replace: (newText: string, opts?: {
26
+ select?: boolean;
27
+ }) => void;
28
+ };
23
29
  bold: {
24
30
  toggle: () => boolean;
25
31
  isActive: () => boolean;
@@ -52,13 +58,13 @@ export declare const getCommands: (view: EditorView) => {
52
58
  }) => void;
53
59
  };
54
60
  fontSize: {
55
- get: () => any;
61
+ get: () => string;
56
62
  set: (props: {
57
63
  value: string;
58
64
  }) => void;
59
65
  };
60
66
  image: {
61
- open(editor: Editor): void;
67
+ open(): void;
62
68
  };
63
69
  heading: {
64
70
  get: () => string;