Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@veltdev/tiptap-crdt

Package Overview
Dependencies
Maintainers
5
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@veltdev/tiptap-crdt - npm Package Compare versions

Comparing version
4.5.8-beta.3
to
4.5.8-beta.4
+23
-0
esm/types/store.d.ts

@@ -33,2 +33,7 @@ import { Extension } from '@tiptap/core';

private userId;
/** Observer for Yjs document transactions to catch TipTap changes */
private docTransactionObserver;
/** Track last known fragment state to detect changes */
private lastFragmentLength;
private lastFragmentContent;
/**

@@ -80,2 +85,20 @@ * Creates a new VeltTipTapStore instance

/**
* Removes the document transaction observer if it exists.
* This is a common cleanup method used by both setupTipTapChangeObserver and destroy.
* @param {Y.Doc} [ydoc] - Optional Yjs document. If not provided, will get from store.
* @private
*/
private removeDocTransactionObserver;
/**
* Sets up an observer on the Yjs document to catch TipTap changes
* that might not trigger the Store's XML fragment observer directly.
* TipTap's Collaboration extension writes through ProseMirror which may not
* always trigger the fragment observer, so we detect changes here and
* manually notify subscribers when needed.
*
* This method is idempotent - it will remove any existing observer before
* attaching a new one to prevent duplicate observers and memory leaks.
*/
private setupTipTapChangeObserver;
/**
* Cleans up resources by destroying the store

@@ -82,0 +105,0 @@ */

+1
-1

@@ -1,1 +0,1 @@

{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,0DAA0D;AAC1D,MAAM,WAAW,qBAAqB;IACpC,6CAA6C;IAC7C,QAAQ,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;;;OAIG;IACH,QAAQ,IAAI,CAAC,CAAC,IAAI,GAAG,IAAI;IAUzB;;;OAGG;IACH,OAAO,IAAI,CAAC,CAAC,WAAW,GAAG,IAAI;IAS/B;;;OAGG;IACH,OAAO,IAAI,CAAC,CAAC,GAAG;IAShB;;;OAGG;IACH,WAAW,IAAI,OAAO;IAStB;;;;OAIG;IACG,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAS1D;;;;;OAKG;IACH,OAAO,CAAC,4BAA4B;IAoBpC;;;;;;;;;OASG;IACH,OAAO,CAAC,yBAAyB;IAqDjC;;OAEG;IACH,OAAO,IAAI,IAAI;IAYf,kBAAkB,IAAI,SAAS;CAUhC;AAED,eAAO,MAAM,qBAAqB,GAAU,QAAQ,qBAAqB,KAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CASzG,CAAA"}

@@ -34,2 +34,7 @@ import { Extension } from '@tiptap/core';

private userId;
/** Observer for Yjs document transactions to catch TipTap changes */
private docTransactionObserver;
/** Track last known fragment state to detect changes */
private lastFragmentLength;
private lastFragmentContent;
/**

@@ -81,2 +86,20 @@ * Creates a new VeltTipTapStore instance

/**
* Removes the document transaction observer if it exists.
* This is a common cleanup method used by both setupTipTapChangeObserver and destroy.
* @param {Y.Doc} [ydoc] - Optional Yjs document. If not provided, will get from store.
* @private
*/
private removeDocTransactionObserver;
/**
* Sets up an observer on the Yjs document to catch TipTap changes
* that might not trigger the Store's XML fragment observer directly.
* TipTap's Collaboration extension writes through ProseMirror which may not
* always trigger the fragment observer, so we detect changes here and
* manually notify subscribers when needed.
*
* This method is idempotent - it will remove any existing observer before
* attaching a new one to prevent duplicate observers and memory leaks.
*/
private setupTipTapChangeObserver;
/**
* Cleans up resources by destroying the store

@@ -83,0 +106,0 @@ */

{
"name": "@veltdev/tiptap-crdt",
"version": "4.5.8-beta.3",
"version": "4.5.8-beta.4",
"description": "Tiptap CRDT library for Velt",

@@ -5,0 +5,0 @@ "homepage": "https://velt.dev",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display