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

@tiptap/extension-link

Package Overview
Dependencies
Maintainers
5
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-link - npm Package Compare versions

Comparing version 2.5.2 to 2.5.3

2

dist/index.js

@@ -319,3 +319,3 @@ import { combineTransactionSteps, getChangedRanges, findChildrenInRange, getMarksBetween, getAttributes, Mark, mergeAttributes, markPasteRule } from '@tiptap/core';

}
if (this.options.openOnClick) {
if (this.options.openOnClick === true) {
plugins.push(clickHandler({

@@ -322,0 +322,0 @@ type: this.type,

@@ -321,3 +321,3 @@ (function (global, factory) {

}
if (this.options.openOnClick) {
if (this.options.openOnClick === true) {
plugins.push(clickHandler({

@@ -324,0 +324,0 @@ type: this.type,

@@ -18,2 +18,6 @@ import { Mark } from '@tiptap/core';

export declare const pasteRegex: RegExp;
/**
* @deprecated The default behavior is now to open links when the editor is not editable.
*/
type DeprecatedOpenWhenNotEditable = 'whenNotEditable';
export interface LinkOptions {

@@ -41,5 +45,4 @@ /**

* @example false
* @example 'whenNotEditable'
*/
openOnClick: boolean;
openOnClick: boolean | DeprecatedOpenWhenNotEditable;
/**

@@ -102,1 +105,2 @@ * Adds a link to the current selection if the pasted content only contains an url.

export declare const Link: Mark<LinkOptions, any>;
export {};
{
"name": "@tiptap/extension-link",
"description": "link extension for tiptap",
"version": "2.5.2",
"version": "2.5.3",
"homepage": "https://tiptap.dev",

@@ -35,8 +35,8 @@ "keywords": [

"devDependencies": {
"@tiptap/core": "^2.5.2",
"@tiptap/pm": "^2.5.2"
"@tiptap/core": "^2.5.3",
"@tiptap/pm": "^2.5.3"
},
"peerDependencies": {
"@tiptap/core": "^2.5.2",
"@tiptap/pm": "^2.5.2"
"@tiptap/core": "^2.5.3",
"@tiptap/pm": "^2.5.3"
},

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

@@ -30,2 +30,7 @@ import {

/**
* @deprecated The default behavior is now to open links when the editor is not editable.
*/
type DeprecatedOpenWhenNotEditable = 'whenNotEditable';
export interface LinkOptions {

@@ -55,5 +60,4 @@ /**

* @example false
* @example 'whenNotEditable'
*/
openOnClick: boolean
openOnClick: boolean | DeprecatedOpenWhenNotEditable
/**

@@ -274,3 +278,3 @@ * Adds a link to the current selection if the pasted content only contains an url.

if (this.options.openOnClick) {
if (this.options.openOnClick === true) {
plugins.push(

@@ -277,0 +281,0 @@ clickHandler({

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

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