Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tiptap-commands

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiptap-commands - npm Package Compare versions

Comparing version 1.13.1 to 1.14.0

20

package.json
{
"name": "tiptap-commands",
"version": "1.13.1",
"version": "1.14.0",
"description": "Commands for tiptap",

@@ -23,12 +23,12 @@ "homepage": "https://tiptap.scrumpy.io",

"dependencies": {
"prosemirror-commands": "1.1.4",
"prosemirror-inputrules": "1.1.2",
"prosemirror-model": "1.9.1",
"prosemirror-schema-list": "1.1.2",
"prosemirror-state": "1.3.3",
"prosemirror-tables": "1.0.0",
"prosemirror-utils": "0.9.6",
"tiptap-utils": "^1.9.1"
"prosemirror-commands": "^1.1.4",
"prosemirror-inputrules": "^1.1.2",
"prosemirror-model": "^1.10.0",
"prosemirror-schema-list": "^1.1.2",
"prosemirror-state": "^1.3.3",
"prosemirror-tables": "^1.1.0",
"prosemirror-utils": "^0.9.6",
"tiptap-utils": "^1.10.0"
},
"gitHead": "92eb2c61ccf2780c51212724fd879ba343436bd3"
"gitHead": "71409c1c811ce75b20a28225c78b0ef9caae1f1b"
}

@@ -19,3 +19,3 @@ import { Plugin } from 'prosemirror-state'

while (!isLink && (match = regexp.exec(text)) !== null) {
if (parent.type.allowsMarkType(type) && match[1]) {
if (parent && parent.type.allowsMarkType(type) && match[1]) {
const start = match.index

@@ -22,0 +22,0 @@ const end = start + match[0].length

import { wrapIn, lift } from 'prosemirror-commands'
import { nodeIsActive } from 'tiptap-utils'
export default function (type) {
export default function (type, attrs = {}) {
return (state, dispatch, view) => {
const isActive = nodeIsActive(state, type)
const isActive = nodeIsActive(state, type, attrs)

@@ -12,4 +12,4 @@ if (isActive) {

return wrapIn(type)(state, dispatch, view)
return wrapIn(type, attrs)(state, dispatch, view)
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc