You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@tiptap/core

Package Overview
Dependencies
Maintainers
6
Versions
469
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/core - npm Package Compare versions

Comparing version
3.17.0
to
3.17.1
+3
-3
package.json
{
"name": "@tiptap/core",
"description": "headless rich text editor",
"version": "3.17.0",
"version": "3.17.1",
"homepage": "https://tiptap.dev",

@@ -55,6 +55,6 @@ "keywords": [

"devDependencies": {
"@tiptap/pm": "^3.17.0"
"@tiptap/pm": "^3.17.1"
},
"peerDependencies": {
"@tiptap/pm": "^3.17.0"
"@tiptap/pm": "^3.17.1"
},

@@ -61,0 +61,0 @@ "repository": {

@@ -464,4 +464,4 @@ import type { Node as PMNode } from '@tiptap/pm/model'

get contentDOM() {
return this.contentElement
get contentDOM(): HTMLElement | null {
return this.contentElement ?? null
}

@@ -468,0 +468,0 @@

@@ -137,2 +137,3 @@ import type { Fragment, Node, ResolvedPos } from '@tiptap/pm/model'

const isNonTextAtom = node.isAtom && !node.isText
const isInline = node.isInline

@@ -148,7 +149,11 @@ const targetPos = this.pos + offset + (isNonTextAtom ? 0 : 1)

if (!isBlock && $pos.depth <= this.depth) {
// Only apply depth check for non-block, non-inline nodes (i.e., textblocks)
// Inline nodes should always be included as children since we're iterating
// over direct children via this.node.content
if (!isBlock && !isInline && $pos.depth <= this.depth) {
return
}
const childNodePos = new NodePos($pos, this.editor, isBlock, isBlock ? node : null)
// Pass the node for both block and inline nodes to ensure correct node reference
const childNodePos = new NodePos($pos, this.editor, isBlock, isBlock || isInline ? node : null)

@@ -159,3 +164,3 @@ if (isBlock) {

children.push(new NodePos($pos, this.editor, isBlock, isBlock ? node : null))
children.push(childNodePos)
})

@@ -162,0 +167,0 @@

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

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

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