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

@tiptap/extension-underline

Package Overview
Dependencies
Maintainers
2
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-underline - npm Package Compare versions

Comparing version 1.0.0-alpha.2 to 2.0.0-alpha.1

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# [2.0.0-alpha.1](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-underline@1.0.0-alpha.2...@tiptap/extension-underline@2.0.0-alpha.1) (2020-11-18)
**Note:** Version bump only for package @tiptap/extension-underline
# [1.0.0-alpha.2](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-underline@1.0.0-alpha.1...@tiptap/extension-underline@1.0.0-alpha.2) (2020-11-16)

@@ -8,0 +16,0 @@

13

dist/packages/extension-underline/src/index.d.ts

@@ -8,3 +8,14 @@ import { Command, Mark } from '@tiptap/core';

declare const Underline: Mark<UnderlineOptions, {
underline: () => Command;
/**
* Set an underline mark
*/
setUnderline: () => Command;
/**
* Toggle an underline mark
*/
toggleUnderline: () => Command;
/**
* Unset an underline mark
*/
unsetUnderline: () => Command;
}>;

@@ -11,0 +22,0 @@ export default Underline;

2

dist/tiptap-extension-underline.bundle.umd.min.js

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@tiptap/core")):"function"==typeof define&&define.amd?define(["@tiptap/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["@tiptap/extension-underline"]=t(e["@tiptap/core"])}(this,(function(e){"use strict";return e.Mark.create({name:"underline",defaultOptions:{HTMLAttributes:{}},parseHTML:()=>[{tag:"u"},{style:"text-decoration=underline"}],renderHTML:({HTMLAttributes:e})=>["u",e,0],addCommands:()=>({underline:()=>({commands:e})=>e.toggleMark("underline")}),addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.underline()}}})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@tiptap/core")):"function"==typeof define&&define.amd?define(["@tiptap/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["@tiptap/extension-underline"]=t(e["@tiptap/core"])}(this,(function(e){"use strict";return e.Mark.create({name:"underline",defaultOptions:{HTMLAttributes:{}},parseHTML:()=>[{tag:"u"},{style:"text-decoration=underline"}],renderHTML:({HTMLAttributes:e})=>["u",e,0],addCommands:()=>({setUnderline:()=>({commands:e})=>e.setMark("underline"),toggleUnderline:()=>({commands:e})=>e.toggleMark("underline"),unsetUnderline:()=>({commands:e})=>e.unsetMark("underline")}),addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline()}}})}));
//# sourceMappingURL=tiptap-extension-underline.bundle.umd.min.js.map

@@ -25,5 +25,20 @@ 'use strict';

return {
underline: () => ({ commands }) => {
/**
* Set an underline mark
*/
setUnderline: () => ({ commands }) => {
return commands.setMark('underline');
},
/**
* Toggle an underline mark
*/
toggleUnderline: () => ({ commands }) => {
return commands.toggleMark('underline');
},
/**
* Unset an underline mark
*/
unsetUnderline: () => ({ commands }) => {
return commands.unsetMark('underline');
},
};

@@ -33,3 +48,3 @@ },

return {
'Mod-u': () => this.editor.commands.underline(),
'Mod-u': () => this.editor.commands.toggleUnderline(),
};

@@ -36,0 +51,0 @@ },

@@ -23,5 +23,20 @@ import { Mark } from '@tiptap/core';

return {
underline: () => ({ commands }) => {
/**
* Set an underline mark
*/
setUnderline: () => ({ commands }) => {
return commands.setMark('underline');
},
/**
* Toggle an underline mark
*/
toggleUnderline: () => ({ commands }) => {
return commands.toggleMark('underline');
},
/**
* Unset an underline mark
*/
unsetUnderline: () => ({ commands }) => {
return commands.unsetMark('underline');
},
};

@@ -31,3 +46,3 @@ },

return {
'Mod-u': () => this.editor.commands.underline(),
'Mod-u': () => this.editor.commands.toggleUnderline(),
};

@@ -34,0 +49,0 @@ },

@@ -27,5 +27,20 @@ (function (global, factory) {

return {
underline: () => ({ commands }) => {
/**
* Set an underline mark
*/
setUnderline: () => ({ commands }) => {
return commands.setMark('underline');
},
/**
* Toggle an underline mark
*/
toggleUnderline: () => ({ commands }) => {
return commands.toggleMark('underline');
},
/**
* Unset an underline mark
*/
unsetUnderline: () => ({ commands }) => {
return commands.unsetMark('underline');
},
};

@@ -35,3 +50,3 @@ },

return {
'Mod-u': () => this.editor.commands.underline(),
'Mod-u': () => this.editor.commands.toggleUnderline(),
};

@@ -38,0 +53,0 @@ },

{
"name": "@tiptap/extension-underline",
"version": "1.0.0-alpha.2",
"version": "2.0.0-alpha.1",
"homepage": "https://tiptap.dev",

@@ -24,5 +24,5 @@ "keywords": [

"peerDependencies": {
"@tiptap/core": "2.0.0-alpha.3"
"@tiptap/core": "^2.0.0-alpha.0"
},
"gitHead": "a8a578edb78db7763e2eda83960c25b02e8488c5"
"gitHead": "276118e48eef313fb435088dee3dc58b91363109"
}

@@ -8,3 +8,3 @@ # @tiptap/extension-underline

## Introduction
tiptap is a headless wrapper around [ProseMirror](https://ProseMirror.net) – a toolkit for building rich-text WYSIWYG editors, which is already in use at many well-known companies such as *New York Times*, *The Guardian* or *Atlassian*.
tiptap is a headless wrapper around [ProseMirror](https://ProseMirror.net) – a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as *New York Times*, *The Guardian* or *Atlassian*.

@@ -11,0 +11,0 @@ ## Offical Documentation

@@ -33,5 +33,20 @@ import { Command, Mark } from '@tiptap/core'

return {
underline: (): Command => ({ commands }) => {
/**
* Set an underline mark
*/
setUnderline: (): Command => ({ commands }) => {
return commands.setMark('underline')
},
/**
* Toggle an underline mark
*/
toggleUnderline: (): Command => ({ commands }) => {
return commands.toggleMark('underline')
},
/**
* Unset an underline mark
*/
unsetUnderline: (): Command => ({ commands }) => {
return commands.unsetMark('underline')
},
}

@@ -42,3 +57,3 @@ },

return {
'Mod-u': () => this.editor.commands.underline(),
'Mod-u': () => this.editor.commands.toggleUnderline(),
}

@@ -45,0 +60,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

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