@hocuspocus/extension-database
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-database", | ||
"description": "a generic Hocuspocus persistence driver for the database", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"homepage": "https://hocuspocus.dev", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@hocuspocus/server": "^2.2.2" | ||
"@hocuspocus/server": "^2.2.3" | ||
}, | ||
@@ -33,0 +33,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70243
1836
Updated@hocuspocus/server@^2.2.3