@hocuspocus/extension-throttle
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -0,1 +1,2 @@ | ||
import type { AbstractType, YArrayEvent } from 'yjs'; | ||
import { HocuspocusProvider, HocuspocusProviderConfiguration } from './HocuspocusProvider.js'; | ||
@@ -11,4 +12,18 @@ import { TiptapCollabProviderWebsocket } from './TiptapCollabProviderWebsocket.js'; | ||
} | ||
export type AuditHistoryVersion = { | ||
name?: string; | ||
version: number; | ||
date: number; | ||
}; | ||
export declare class TiptapCollabProvider extends HocuspocusProvider { | ||
tiptapCollabConfigurationPrefix: string; | ||
constructor(configuration: TiptapCollabProviderConfiguration); | ||
createVersion(name?: string): void; | ||
revertToVersion(targetVersion: number): void; | ||
getVersions(): AuditHistoryVersion[]; | ||
watchVersions(callback: Parameters<AbstractType<YArrayEvent<AuditHistoryVersion>>['observe']>[0]): void; | ||
unwatchVersions(callback: Parameters<AbstractType<YArrayEvent<AuditHistoryVersion>>['unobserve']>[0]): void; | ||
isAutoVersioning(): boolean; | ||
enableAutoVersioning(): number; | ||
disableAutoVersioning(): number; | ||
} |
@@ -0,5 +1,7 @@ | ||
import { Encoder } from 'lib0/encoding'; | ||
import type { CloseEvent, Event, MessageEvent } from 'ws'; | ||
import { Awareness } from 'y-protocols/awareness'; | ||
import * as Y from 'yjs'; | ||
import { Encoder } from 'lib0/encoding'; | ||
import type { Event, CloseEvent, MessageEvent } from 'ws'; | ||
import { IncomingMessage } from './IncomingMessage.js'; | ||
import { OutgoingMessage } from './OutgoingMessage.js'; | ||
import { AuthenticationMessage } from './OutgoingMessages/AuthenticationMessage.js'; | ||
@@ -11,4 +13,2 @@ import { AwarenessMessage } from './OutgoingMessages/AwarenessMessage.js'; | ||
import { UpdateMessage } from './OutgoingMessages/UpdateMessage.js'; | ||
import { IncomingMessage } from './IncomingMessage.js'; | ||
import { OutgoingMessage } from './OutgoingMessage.js'; | ||
export declare enum MessageType { | ||
@@ -20,3 +20,4 @@ Sync = 0, | ||
Stateless = 5, | ||
CLOSE = 7 | ||
CLOSE = 7, | ||
SyncStatus = 8 | ||
} | ||
@@ -23,0 +24,0 @@ export declare enum WebSocketStatus { |
{ | ||
"name": "@hocuspocus/extension-throttle", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "hocuspocus throttle extension", | ||
@@ -31,5 +31,5 @@ "homepage": "https://hocuspocus.dev", | ||
"dependencies": { | ||
"@hocuspocus/server": "^2.2.2" | ||
"@hocuspocus/server": "^2.2.3" | ||
}, | ||
"gitHead": "b3454a4ca289a84ddfb7fa5607a2d4b8d5c37e9d" | ||
} |
82338
1947
Updated@hocuspocus/server@^2.2.3