[WIKI-722] fix: hocuspocus provider update to v3 (#7930)

* fix: hocuspocus provider

* fix: hocuspocus updated url instead of queryparams
This commit is contained in:
M. Palanikannan 2025-10-09 15:38:15 +05:30 committed by GitHub
parent 561ae82d9d
commit 98e0089723
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 15 additions and 17 deletions

View file

@ -38,7 +38,7 @@
"@floating-ui/dom": "^1.7.1",
"@floating-ui/react": "^0.26.4",
"@headlessui/react": "^1.7.3",
"@hocuspocus/provider": "^2.15.0",
"@hocuspocus/provider": "3.2.5",
"@plane/constants": "workspace:*",
"@plane/hooks": "workspace:*",
"@plane/types": "workspace:*",

View file

@ -45,7 +45,6 @@ export const useCollaborativeEditor = (props: TCollaborativeEditorHookProps) =>
() =>
new HocuspocusProvider({
name: id,
parameters: realtimeConfig.queryParams,
// using user id as a token to verify the user on the server
token: JSON.stringify(user),
url: realtimeConfig.url,

View file

@ -42,7 +42,6 @@ export type TUserDetails = {
export type TRealtimeConfig = {
url: string;
queryParams: TWebhookConnectionQueryParams;
};
export type IMarking = {