@hocuspocus/extension-throttle
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -75,2 +75,13 @@ import * as Y from 'yjs'; | ||
constructor(configuration: HocuspocusProviderConfiguration); | ||
boundBroadcastChannelSubscriber: (data: ArrayBuffer) => void; | ||
boundBeforeUnload: () => void; | ||
boundOnOpen: (event: Event) => Promise<void>; | ||
boundOnMessage: (event: MessageEvent) => void; | ||
boundOnClose: (event: CloseEvent) => void; | ||
boundOnStatus: ({ status }: onStatusParameters) => void; | ||
forwardConnect: (e: any) => this; | ||
forwardOpen: (e: any) => this; | ||
forwardClose: (e: any) => this; | ||
forwardDisconnect: (e: any) => this; | ||
forwardDestroy: (e: any) => this; | ||
onStatus({ status }: onStatusParameters): void; | ||
@@ -83,3 +94,2 @@ setConfiguration(configuration?: Partial<HocuspocusProviderConfiguration>): void; | ||
forceSync(): void; | ||
boundBeforeUnload: () => void; | ||
beforeUnload(): void; | ||
@@ -106,3 +116,2 @@ registerEventListeners(): void; | ||
get broadcastChannel(): string; | ||
boundBroadcastChannelSubscriber: (data: ArrayBuffer) => void; | ||
broadcastChannelSubscriber(data: ArrayBuffer): void; | ||
@@ -109,0 +118,0 @@ subscribeToBroadcastChannel(): void; |
import { HocuspocusProvider, HocuspocusProviderConfiguration } from './HocuspocusProvider.js'; | ||
export type TiptapCollabProviderConfiguration = Required<Pick<HocuspocusProviderConfiguration, 'name'>> & Partial<HocuspocusProviderConfiguration> & AdditionalTiptapCollabProviderConfiguration; | ||
import { TiptapCollabProviderWebsocket } from './TiptapCollabProviderWebsocket.js'; | ||
export type TiptapCollabProviderConfiguration = Required<Pick<HocuspocusProviderConfiguration, 'name'>> & Partial<HocuspocusProviderConfiguration> & (Required<Pick<AdditionalTiptapCollabProviderConfiguration, 'websocketProvider'>> | Required<Pick<AdditionalTiptapCollabProviderConfiguration, 'appId'>>); | ||
export interface AdditionalTiptapCollabProviderConfiguration { | ||
@@ -7,3 +8,4 @@ /** | ||
*/ | ||
appId: string; | ||
appId?: string; | ||
websocketProvider?: TiptapCollabProviderWebsocket; | ||
} | ||
@@ -10,0 +12,0 @@ export declare class TiptapCollabProvider extends HocuspocusProvider { |
import Document from './Document.js'; | ||
import type { Hocuspocus } from './Hocuspocus.js'; | ||
import type { DirectConnection as DirectConnectionInterface } from './types'; | ||
import type { DirectConnection as DirectConnectionInterface } from './types.js'; | ||
export declare class DirectConnection implements DirectConnectionInterface { | ||
@@ -5,0 +5,0 @@ document: Document | null; |
{ | ||
"name": "@hocuspocus/extension-throttle", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "hocuspocus throttle extension", | ||
@@ -31,5 +31,5 @@ "homepage": "https://hocuspocus.dev", | ||
"dependencies": { | ||
"@hocuspocus/server": "^2.2.1" | ||
"@hocuspocus/server": "^2.2.2" | ||
}, | ||
"gitHead": "b3454a4ca289a84ddfb7fa5607a2d4b8d5c37e9d" | ||
} |
81662
1931
Updated@hocuspocus/server@^2.2.2