[WIKI-722] fix: hocuspocus provider update to v3 (#7930)
* fix: hocuspocus provider * fix: hocuspocus updated url instead of queryparams
This commit is contained in:
parent
561ae82d9d
commit
98e0089723
5 changed files with 15 additions and 17 deletions
|
|
@ -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:*",
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@ export type TUserDetails = {
|
|||
|
||||
export type TRealtimeConfig = {
|
||||
url: string;
|
||||
queryParams: TWebhookConnectionQueryParams;
|
||||
};
|
||||
|
||||
export type IMarking = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue