@hocuspocus/provider 2.11.1 → 2.11.2

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.
@@ -46,7 +46,9 @@ export declare class TiptapCollabProvider extends HocuspocusProvider {
46
46
  getThread<Data, CommentData>(id: string): TCollabThread<Data, CommentData> | null;
47
47
  private getYThread;
48
48
  createThread(data: Omit<TCollabThread, 'id' | 'createdAt' | 'updatedAt' | 'comments'>): TCollabThread;
49
- updateThread(id: TCollabThread['id'], data: Partial<Pick<TCollabThread, 'data' | 'resolvedAt'>>): TCollabThread;
49
+ updateThread(id: TCollabThread['id'], data: Partial<Pick<TCollabThread, 'data'> & {
50
+ resolvedAt: TCollabThread['resolvedAt'] | null;
51
+ }>): TCollabThread;
50
52
  deleteThread(id: TCollabThread['id']): void;
51
53
  getThreadComments(threadId: TCollabThread['id']): TCollabComment[] | null;
52
54
  getThreadComment(threadId: TCollabThread['id'], commentId: TCollabComment['id']): TCollabComment | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hocuspocus/provider",
3
- "version": "2.11.1",
3
+ "version": "2.11.2",
4
4
  "description": "hocuspocus provider",
5
5
  "homepage": "https://hocuspocus.dev",
6
6
  "keywords": [
@@ -29,7 +29,7 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@hocuspocus/common": "^2.11.1",
32
+ "@hocuspocus/common": "^2.11.2",
33
33
  "@lifeomic/attempt": "^3.0.2",
34
34
  "lib0": "^0.2.87",
35
35
  "ws": "^8.14.2"
@@ -157,7 +157,9 @@ export class TiptapCollabProvider extends HocuspocusProvider {
157
157
  return createdThread
158
158
  }
159
159
 
160
- updateThread(id: TCollabThread['id'], data: Partial<Pick<TCollabThread, 'data' | 'resolvedAt'>>) {
160
+ updateThread(id: TCollabThread['id'], data: Partial<Pick<TCollabThread, 'data'> & {
161
+ resolvedAt: TCollabThread['resolvedAt'] | null
162
+ }>) {
161
163
  let updatedThread: TCollabThread = {} as TCollabThread
162
164
 
163
165
  this.document.transact(() => {