@tiptap/react 2.0.0-beta.89 → 2.0.0-beta.93

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.
@@ -3,7 +3,7 @@ import { EditorView } from 'prosemirror-view';
3
3
  import { Schema, MarkType, NodeType } from 'prosemirror-model';
4
4
  import ExtensionManager from './ExtensionManager';
5
5
  import EventEmitter from './EventEmitter';
6
- import { EditorOptions, CanCommands, ChainedCommands, SingleCommands, TextSerializer, EditorEvents } from './types';
6
+ import { EditorOptions, CanCommands, ChainedCommands, JSONContent, SingleCommands, TextSerializer, EditorEvents } from './types';
7
7
  import * as extensions from './extensions';
8
8
  export { extensions };
9
9
  export interface HTMLElement {
@@ -114,7 +114,7 @@ export declare class Editor extends EventEmitter<EditorEvents> {
114
114
  /**
115
115
  * Get the document as JSON.
116
116
  */
117
- getJSON(): Record<string, any>;
117
+ getJSON(): JSONContent;
118
118
  /**
119
119
  * Get the document as HTML.
120
120
  */
@@ -21,4 +21,4 @@ declare module '@tiptap/core' {
21
21
  }
22
22
  }
23
23
  export declare const inputRegex: RegExp;
24
- export declare const Blockquote: Node<BlockquoteOptions, unknown>;
24
+ export declare const Blockquote: Node<BlockquoteOptions, any>;
@@ -24,4 +24,4 @@ export declare const starInputRegex: RegExp;
24
24
  export declare const starPasteRegex: RegExp;
25
25
  export declare const underscoreInputRegex: RegExp;
26
26
  export declare const underscorePasteRegex: RegExp;
27
- export declare const Bold: Mark<BoldOptions, unknown>;
27
+ export declare const Bold: Mark<BoldOptions, any>;
@@ -13,4 +13,4 @@ declare module '@tiptap/core' {
13
13
  }
14
14
  }
15
15
  export declare const inputRegex: RegExp;
16
- export declare const BulletList: Node<BulletListOptions, unknown>;
16
+ export declare const BulletList: Node<BulletListOptions, any>;
@@ -22,4 +22,4 @@ declare module '@tiptap/core' {
22
22
  }
23
23
  export declare const inputRegex: RegExp;
24
24
  export declare const pasteRegex: RegExp;
25
- export declare const Code: Mark<CodeOptions, unknown>;
25
+ export declare const Code: Mark<CodeOptions, any>;
@@ -23,4 +23,4 @@ declare module '@tiptap/core' {
23
23
  }
24
24
  export declare const backtickInputRegex: RegExp;
25
25
  export declare const tildeInputRegex: RegExp;
26
- export declare const CodeBlock: Node<CodeBlockOptions, unknown>;
26
+ export declare const CodeBlock: Node<CodeBlockOptions, any>;
@@ -3,4 +3,4 @@ export interface CodeBlockLowlightOptions extends CodeBlockOptions {
3
3
  lowlight: any;
4
4
  defaultLanguage: string | null | undefined;
5
5
  }
6
- export declare const CodeBlockLowlight: import("@tiptap/core").Node<CodeBlockLowlightOptions, unknown>;
6
+ export declare const CodeBlockLowlight: import("@tiptap/core").Node<CodeBlockLowlightOptions, any>;
@@ -22,5 +22,5 @@ declare module '@tiptap/core' {
22
22
  };
23
23
  }
24
24
  }
25
- export declare const Heading: Node<HeadingOptions, unknown>;
25
+ export declare const Heading: Node<HeadingOptions, any>;
26
26
  export {};
@@ -27,4 +27,4 @@ declare module '@tiptap/core' {
27
27
  }
28
28
  export declare const inputRegex: RegExp;
29
29
  export declare const pasteRegex: RegExp;
30
- export declare const Highlight: Mark<HighlightOptions, unknown>;
30
+ export declare const Highlight: Mark<HighlightOptions, any>;
@@ -12,4 +12,4 @@ declare module '@tiptap/core' {
12
12
  };
13
13
  }
14
14
  }
15
- export declare const HorizontalRule: Node<HorizontalRuleOptions, unknown>;
15
+ export declare const HorizontalRule: Node<HorizontalRuleOptions, any>;
@@ -18,4 +18,4 @@ declare module '@tiptap/core' {
18
18
  }
19
19
  }
20
20
  export declare const inputRegex: RegExp;
21
- export declare const Image: Node<ImageOptions, unknown>;
21
+ export declare const Image: Node<ImageOptions, any>;
@@ -24,4 +24,4 @@ export declare const starInputRegex: RegExp;
24
24
  export declare const starPasteRegex: RegExp;
25
25
  export declare const underscoreInputRegex: RegExp;
26
26
  export declare const underscorePasteRegex: RegExp;
27
- export declare const Italic: Mark<ItalicOptions, unknown>;
27
+ export declare const Italic: Mark<ItalicOptions, any>;
@@ -37,4 +37,4 @@ declare module '@tiptap/core' {
37
37
  };
38
38
  }
39
39
  }
40
- export declare const Link: Mark<LinkOptions, unknown>;
40
+ export declare const Link: Mark<LinkOptions, any>;
@@ -13,4 +13,4 @@ declare module '@tiptap/core' {
13
13
  }
14
14
  }
15
15
  export declare const inputRegex: RegExp;
16
- export declare const OrderedList: Node<OrderedListOptions, unknown>;
16
+ export declare const OrderedList: Node<OrderedListOptions, any>;
@@ -22,4 +22,4 @@ declare module '@tiptap/core' {
22
22
  }
23
23
  export declare const inputRegex: RegExp;
24
24
  export declare const pasteRegex: RegExp;
25
- export declare const Strike: Mark<StrikeOptions, unknown>;
25
+ export declare const Strike: Mark<StrikeOptions, any>;
@@ -4,4 +4,4 @@ export interface TaskItemOptions {
4
4
  HTMLAttributes: Record<string, any>;
5
5
  }
6
6
  export declare const inputRegex: RegExp;
7
- export declare const TaskItem: Node<TaskItemOptions, unknown>;
7
+ export declare const TaskItem: Node<TaskItemOptions, any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/react",
3
3
  "description": "React components for tiptap",
4
- "version": "2.0.0-beta.89",
4
+ "version": "2.0.0-beta.93",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -32,8 +32,8 @@
32
32
  "react-dom": "^17.0.0"
33
33
  },
34
34
  "dependencies": {
35
- "@tiptap/extension-bubble-menu": "^2.0.0-beta.46",
36
- "@tiptap/extension-floating-menu": "^2.0.0-beta.40",
35
+ "@tiptap/extension-bubble-menu": "^2.0.0-beta.49",
36
+ "@tiptap/extension-floating-menu": "^2.0.0-beta.44",
37
37
  "prosemirror-view": "^1.22.0"
38
38
  },
39
39
  "repository": {
@@ -41,5 +41,5 @@
41
41
  "url": "https://github.com/ueberdosis/tiptap",
42
42
  "directory": "packages/react"
43
43
  },
44
- "gitHead": "926cfcd6025c6a333ed0b53b9a687c238a9a69b3"
44
+ "gitHead": "b88480470d292c87560cb5f1956477e6da2e0467"
45
45
  }
@@ -1 +0,0 @@
1
- export default function removeElement(element: HTMLElement): void;