@hocuspocus/extension-logger 2.8.1 → 2.9.0

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.
@@ -5,7 +5,7 @@ import type { THistoryVersion } from './types';
5
5
  export type TiptapCollabProviderConfiguration = Required<Pick<HocuspocusProviderConfiguration, 'name'>> & Partial<HocuspocusProviderConfiguration> & (Required<Pick<AdditionalTiptapCollabProviderConfiguration, 'websocketProvider'>> | Required<Pick<AdditionalTiptapCollabProviderConfiguration, 'appId'>>);
6
6
  export interface AdditionalTiptapCollabProviderConfiguration {
7
7
  /**
8
- * A Hocuspocus Cloud App ID, get one here: https://collab.tiptap.dev
8
+ * A Hocuspocus Cloud App ID, get one here: https://cloud.tiptap.dev
9
9
  */
10
10
  appId?: string;
11
11
  websocketProvider?: TiptapCollabProviderWebsocket;
@@ -2,7 +2,7 @@ import { CompleteHocuspocusProviderWebsocketConfiguration, HocuspocusProviderWeb
2
2
  export type TiptapCollabProviderWebsocketConfiguration = Partial<CompleteHocuspocusProviderWebsocketConfiguration> & AdditionalTiptapCollabProviderWebsocketConfiguration;
3
3
  export interface AdditionalTiptapCollabProviderWebsocketConfiguration {
4
4
  /**
5
- * A Hocuspocus Cloud App ID, get one here: https://collab.tiptap.dev
5
+ * A Hocuspocus Cloud App ID, get one here: https://cloud.tiptap.dev
6
6
  */
7
7
  appId: string;
8
8
  }
@@ -29,7 +29,11 @@ export declare class Hocuspocus {
29
29
  documents: Map<string, Document>;
30
30
  server?: HocuspocusServer;
31
31
  debugger: Debugger;
32
- debounce: (id: string, func: Function, debounce: number, maxDebounce: number) => any;
32
+ debouncer: {
33
+ debounce: (id: string, func: Function, debounce: number, maxDebounce: number) => any;
34
+ isDebounced: (id: string) => boolean;
35
+ executeNow: (id: string) => any;
36
+ };
33
37
  constructor(configuration?: Partial<Configuration>);
34
38
  /**
35
39
  * Configure the server
@@ -1 +1,5 @@
1
- export declare const useDebounce: () => (id: string, func: Function, debounce: number, maxDebounce: number) => any;
1
+ export declare const useDebounce: () => {
2
+ debounce: (id: string, func: Function, debounce: number, maxDebounce: number) => any;
3
+ isDebounced: (id: string) => boolean;
4
+ executeNow: (id: string) => any;
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hocuspocus/extension-logger",
3
- "version": "2.8.1",
3
+ "version": "2.9.0",
4
4
  "description": "hocuspocus logging extension",
5
5
  "homepage": "https://hocuspocus.dev",
6
6
  "keywords": [
@@ -29,7 +29,7 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@hocuspocus/server": "^2.8.1"
32
+ "@hocuspocus/server": "^2.9.0"
33
33
  },
34
34
  "gitHead": "b3454a4ca289a84ddfb7fa5607a2d4b8d5c37e9d"
35
35
  }