prosemirror-codemirror-block 0.5.2 → 0.5.4

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.
Files changed (2) hide show
  1. package/dist/utils.d.ts +5 -5
  2. package/package.json +1 -1
package/dist/utils.d.ts CHANGED
@@ -17,9 +17,9 @@ export declare const maybeEscape: (unit: "char" | "line", dir: -1 | 1, cm: Edito
17
17
  export declare const backspaceHandler: (pmView: PMEditorView, view: EditorView) => boolean;
18
18
  export declare const setMode: (lang: string, cmView: EditorView, settings: CodeBlockSettings, languageConf: Compartment) => Promise<void>;
19
19
  export declare const setTheme: (cmView: EditorView, themeConfig: Compartment, theme: Array<ThemeItem | undefined>) => Promise<void>;
20
- export declare const createCodeBlock: (state: EditorState, dispatch: (tr: Transaction) => void | undefined, attributes: object) => boolean;
21
- export declare const removeCodeBlock: (state: EditorState, dispatch: (tr: Transaction) => void | undefined) => boolean;
22
- export declare const toggleCodeBlock: (state: EditorState, dispatch: (tr: Transaction) => void | undefined, attributes: object) => boolean;
20
+ export declare const createCodeBlock: (state: EditorState, dispatch: ((tr: Transaction) => void) | undefined, attributes: object) => boolean;
21
+ export declare const removeCodeBlock: (state: EditorState, dispatch: ((tr: Transaction) => void) | undefined) => boolean;
22
+ export declare const toggleCodeBlock: (state: EditorState, dispatch: ((tr: Transaction) => void) | undefined, attributes: object) => boolean;
23
23
  export declare const codeBlockArrowHandlers: {
24
24
  ArrowLeft: Command;
25
25
  ArrowRight: Command;
@@ -27,12 +27,12 @@ export declare const codeBlockArrowHandlers: {
27
27
  ArrowDown: Command;
28
28
  };
29
29
  export declare const codeBlockToggleShortcut: {
30
- "Mod-Alt-c": (state: EditorState, dispatch: (tr: Transaction) => void | undefined, attributes: object) => boolean;
30
+ "Mod-Alt-c": (state: EditorState, dispatch: ((tr: Transaction) => void) | undefined, attributes: object) => boolean;
31
31
  };
32
32
  export declare const codeBlockKeymap: {
33
33
  ArrowLeft: Command;
34
34
  ArrowRight: Command;
35
35
  ArrowUp: Command;
36
36
  ArrowDown: Command;
37
- "Mod-Alt-c": (state: EditorState, dispatch: (tr: Transaction) => void | undefined, attributes: object) => boolean;
37
+ "Mod-Alt-c": (state: EditorState, dispatch: ((tr: Transaction) => void) | undefined, attributes: object) => boolean;
38
38
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prosemirror-codemirror-block",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "ProseMirror CodeMirror code block plugin",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",