@hocuspocus/extension-redis
Advanced tools
Comparing version 2.12.1-rc.0 to 2.12.2-rc.0
import type { AbstractType, YArrayEvent } from 'yjs'; | ||
import * as Y from 'yjs'; | ||
import { HocuspocusProvider, HocuspocusProviderConfiguration } from './HocuspocusProvider.js'; | ||
import { TiptapCollabProviderWebsocket } from './TiptapCollabProviderWebsocket.js'; | ||
import type { TCollabComment, TCollabThread, THistoryVersion } from './types.js'; | ||
export type TiptapCollabProviderConfiguration = Required<Pick<HocuspocusProviderConfiguration, 'name'>> & Partial<HocuspocusProviderConfiguration> & (Required<Pick<AdditionalTiptapCollabProviderConfiguration, 'websocketProvider'>> | Required<Pick<AdditionalTiptapCollabProviderConfiguration, 'appId'>> | Required<Pick<AdditionalTiptapCollabProviderConfiguration, 'baseUrl'>>); | ||
export type TiptapCollabProviderConfiguration = Required<Pick<HocuspocusProviderConfiguration, 'name'>> & Partial<HocuspocusProviderConfiguration> & (Required<Pick<AdditionalTiptapCollabProviderConfiguration, 'websocketProvider'>> | Required<Pick<AdditionalTiptapCollabProviderConfiguration, 'appId'>> | Required<Pick<AdditionalTiptapCollabProviderConfiguration, 'baseUrl'>>) & Pick<AdditionalTiptapCollabProviderConfiguration, 'user'>; | ||
export interface AdditionalTiptapCollabProviderConfiguration { | ||
@@ -16,5 +17,7 @@ /** | ||
websocketProvider?: TiptapCollabProviderWebsocket; | ||
user?: string; | ||
} | ||
export declare class TiptapCollabProvider extends HocuspocusProvider { | ||
tiptapCollabConfigurationPrefix: string; | ||
userData?: Y.PermanentUserData; | ||
constructor(configuration: TiptapCollabProviderConfiguration); | ||
@@ -21,0 +24,0 @@ /** |
{ | ||
"name": "@hocuspocus/extension-redis", | ||
"version": "2.12.1-rc.0", | ||
"version": "2.12.2-rc.0", | ||
"description": "Scale Hocuspocus horizontally with Redis", | ||
@@ -36,3 +36,3 @@ "homepage": "https://hocuspocus.dev", | ||
"dependencies": { | ||
"@hocuspocus/server": "^2.12.1-rc.0", | ||
"@hocuspocus/server": "^2.12.2-rc.0", | ||
"ioredis": "^4.28.2", | ||
@@ -39,0 +39,0 @@ "kleur": "^4.1.4", |
134819
2640