@tiptap/react 2.0.0-beta.86 → 2.0.0-beta.87

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.
@@ -1,8 +1,17 @@
1
1
  import { Extension } from '@tiptap/core';
2
+ declare type CollaborationCursorStorage = {
3
+ users: {
4
+ clientId: number;
5
+ [key: string]: any;
6
+ }[];
7
+ };
2
8
  export interface CollaborationCursorOptions {
3
9
  provider: any;
4
10
  user: Record<string, any>;
5
11
  render(user: Record<string, any>): HTMLElement;
12
+ /**
13
+ * @deprecated The "onUpdate" option is deprecated. Please use `editor.storage.collaborationCursor.users` instead. Read more: https://tiptap.dev/api/extensions/collaboration-cursor
14
+ */
6
15
  onUpdate: (users: {
7
16
  clientId: number;
8
17
  [key: string]: any;
@@ -14,8 +23,15 @@ declare module '@tiptap/core' {
14
23
  /**
15
24
  * Update details of the current user
16
25
  */
26
+ updateUser: (attributes: Record<string, any>) => ReturnType;
27
+ /**
28
+ * Update details of the current user
29
+ *
30
+ * @deprecated The "user" command is deprecated. Please use "updateUser" instead. Read more: https://tiptap.dev/api/extensions/collaboration-cursor
31
+ */
17
32
  user: (attributes: Record<string, any>) => ReturnType;
18
33
  };
19
34
  }
20
35
  }
21
- export declare const CollaborationCursor: Extension<CollaborationCursorOptions, any>;
36
+ export declare const CollaborationCursor: Extension<CollaborationCursorOptions, CollaborationCursorStorage>;
37
+ export {};
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.86",
4
+ "version": "2.0.0-beta.87",
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.43",
36
- "@tiptap/extension-floating-menu": "^2.0.0-beta.37",
35
+ "@tiptap/extension-bubble-menu": "^2.0.0-beta.44",
36
+ "@tiptap/extension-floating-menu": "^2.0.0-beta.38",
37
37
  "prosemirror-view": "^1.20.3"
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": "642627ec3635a1d8fa851887d75bee5f193ec63b"
44
+ "gitHead": "31c23336d0e5d2be8b250530353531b8a241253c"
45
45
  }