@liveblocks/react-tiptap
Advanced tools
Comparing version 2.18.2-test1 to 2.18.2
@@ -55,2 +55,3 @@ import { ContextualPromptContext, ContextualPromptResponse, BaseMetadata, DM, ThreadData, HistoryVersion } from '@liveblocks/core'; | ||
initialContent?: Content; | ||
enablePermanentUserData?: boolean; | ||
}; | ||
@@ -57,0 +58,0 @@ type FloatingPosition = "top" | "bottom"; |
@@ -20,3 +20,4 @@ 'use strict'; | ||
mentions: true, | ||
offlineSupport_experimental: false | ||
offlineSupport_experimental: false, | ||
enablePermanentUserData: false | ||
}; | ||
@@ -169,7 +170,14 @@ const LiveblocksCollab = Collaboration.extend({ | ||
const { user: storedUser } = this.storage.provider.awareness.getLocalState(); | ||
this.storage.permanentUserData?.setUserMapping( | ||
this.storage.doc, | ||
this.storage.doc.clientID, | ||
userId ?? "Unknown" | ||
); | ||
if (this.storage.permanentUserData) { | ||
const pud = this.storage.permanentUserData.clients.get( | ||
this.storage.doc.clientID | ||
); | ||
if (!pud || pud !== userId) { | ||
this.storage.permanentUserData.setUserMapping( | ||
this.storage.doc, | ||
this.storage.doc.clientID, | ||
userId ?? "Unknown" | ||
); | ||
} | ||
} | ||
if (info.name !== storedUser?.name || info.color !== storedUser?.color) { | ||
@@ -244,3 +252,3 @@ this.editor.commands.updateUser({ | ||
const provider = yjs.getYjsProviderForRoom(room, { | ||
enablePermanentUserData: true, | ||
enablePermanentUserData: !!options.ai || options.enablePermanentUserData, | ||
offlineSupport_experimental: options.offlineSupport_experimental | ||
@@ -247,0 +255,0 @@ }); |
'use strict'; | ||
const PKG_NAME = "@liveblocks/react-tiptap"; | ||
const PKG_VERSION = typeof "2.18.2-test1" === "string" && "2.18.2-test1"; | ||
const PKG_VERSION = typeof "2.18.2" === "string" && "2.18.2"; | ||
const PKG_FORMAT = typeof "cjs" === "string" && "cjs"; | ||
@@ -6,0 +6,0 @@ |
{ | ||
"name": "@liveblocks/react-tiptap", | ||
"version": "2.18.2-test1", | ||
"version": "2.18.2", | ||
"description": "A tiptap react plugin to enable collaboration, comments, live cursors, and more.", | ||
@@ -45,7 +45,7 @@ "license": "Apache-2.0", | ||
"@floating-ui/react-dom": "^2.1.2", | ||
"@liveblocks/client": "2.18.2-test1", | ||
"@liveblocks/core": "2.18.2-test1", | ||
"@liveblocks/react": "2.18.2-test1", | ||
"@liveblocks/react-ui": "2.18.2-test1", | ||
"@liveblocks/yjs": "2.18.2-test1", | ||
"@liveblocks/client": "2.18.2", | ||
"@liveblocks/core": "2.18.2", | ||
"@liveblocks/react": "2.18.2", | ||
"@liveblocks/react-ui": "2.18.2", | ||
"@liveblocks/yjs": "2.18.2", | ||
"@radix-ui/react-select": "^2.1.2", | ||
@@ -52,0 +52,0 @@ "@radix-ui/react-toggle": "^1.1.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
912418
8361
0
+ Added@liveblocks/client@2.18.2(transitive)
+ Added@liveblocks/core@2.18.2(transitive)
+ Added@liveblocks/react@2.18.2(transitive)
+ Added@liveblocks/react-ui@2.18.2(transitive)
+ Added@liveblocks/yjs@2.18.2(transitive)
+ Addedprosemirror-commands@1.6.2(transitive)
- Removed@liveblocks/client@2.18.2-test1(transitive)
- Removed@liveblocks/core@2.18.2-test1(transitive)
- Removed@liveblocks/react@2.18.2-test1(transitive)
- Removed@liveblocks/react-ui@2.18.2-test1(transitive)
- Removed@liveblocks/yjs@2.18.2-test1(transitive)
- Removedprosemirror-commands@1.7.0(transitive)
Updated@liveblocks/client@2.18.2
Updated@liveblocks/core@2.18.2
Updated@liveblocks/react@2.18.2
Updated@liveblocks/react-ui@2.18.2
Updated@liveblocks/yjs@2.18.2