@tiptap/vue-2 2.0.0-beta.73 → 2.0.0-beta.74

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.
@@ -309,6 +309,15 @@ declare module '@tiptap/core' {
309
309
  storage: Storage;
310
310
  parent: ParentConfig<NodeConfig<Options, Storage>>['code'];
311
311
  }) => NodeSpec['code']);
312
+ /**
313
+ * Whitespace
314
+ */
315
+ whitespace?: NodeSpec['whitespace'] | ((this: {
316
+ name: string;
317
+ options: Options;
318
+ storage: Storage;
319
+ parent: ParentConfig<NodeConfig<Options, Storage>>['whitespace'];
320
+ }) => NodeSpec['whitespace']);
312
321
  /**
313
322
  * Defining
314
323
  */
@@ -1,6 +1,6 @@
1
1
  import { Extension } from '@tiptap/core';
2
2
  import '@tiptap/extension-text-style';
3
- declare type FontFamilyOptions = {
3
+ export declare type FontFamilyOptions = {
4
4
  types: string[];
5
5
  };
6
6
  declare module '@tiptap/core' {
@@ -18,4 +18,3 @@ declare module '@tiptap/core' {
18
18
  }
19
19
  }
20
20
  export declare const FontFamily: Extension<FontFamilyOptions, any>;
21
- export {};
@@ -7,11 +7,8 @@ export interface ReactRendererOptions {
7
7
  as?: string;
8
8
  className?: string;
9
9
  }
10
- declare type ComponentType<R> = React.ComponentClass | React.FunctionComponent | React.ForwardRefExoticComponent<{
11
- items: any[];
12
- command: any;
13
- } & React.RefAttributes<R>>;
14
- export declare class ReactRenderer<R = unknown> {
10
+ declare type ComponentType<R, P> = React.ComponentClass<P> | React.FunctionComponent<P> | React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<R>>;
11
+ export declare class ReactRenderer<R = unknown, P = unknown> {
15
12
  id: string;
16
13
  editor: ExtendedEditor;
17
14
  component: any;
@@ -19,7 +16,7 @@ export declare class ReactRenderer<R = unknown> {
19
16
  props: Record<string, any>;
20
17
  reactElement: React.ReactNode;
21
18
  ref: R | null;
22
- constructor(component: ComponentType<R>, { editor, props, as, className, }: ReactRendererOptions);
19
+ constructor(component: ComponentType<R, P>, { editor, props, as, className, }: ReactRendererOptions);
23
20
  render(): void;
24
21
  updateProps(props?: Record<string, any>): void;
25
22
  destroy(): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/vue-2",
3
3
  "description": "Vue components for tiptap",
4
- "version": "2.0.0-beta.73",
4
+ "version": "2.0.0-beta.74",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -28,14 +28,14 @@
28
28
  "vue": "^2.6.0"
29
29
  },
30
30
  "dependencies": {
31
- "@tiptap/extension-bubble-menu": "^2.0.0-beta.53",
32
- "@tiptap/extension-floating-menu": "^2.0.0-beta.48",
33
- "prosemirror-view": "^1.23.3"
31
+ "@tiptap/extension-bubble-menu": "^2.0.0-beta.54",
32
+ "@tiptap/extension-floating-menu": "^2.0.0-beta.49",
33
+ "prosemirror-view": "^1.23.5"
34
34
  },
35
35
  "repository": {
36
36
  "type": "git",
37
37
  "url": "https://github.com/ueberdosis/tiptap",
38
38
  "directory": "packages/vue-2"
39
39
  },
40
- "gitHead": "8844627773ac1cfb0d01eaf1f52b3be937701b2d"
40
+ "gitHead": "e550d3c69e06a1fb153c3faf17ab78c3081ae61b"
41
41
  }