@tiptap/extension-strike
Advanced tools
Comparing version 2.0.0-alpha.2 to 2.0.0-alpha.3
@@ -6,2 +6,10 @@ # Change Log | ||
# [2.0.0-alpha.3](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-strike@2.0.0-alpha.2...@tiptap/extension-strike@2.0.0-alpha.3) (2020-11-19) | ||
**Note:** Version bump only for package @tiptap/extension-strike | ||
# [2.0.0-alpha.2](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-strike@2.0.0-alpha.1...@tiptap/extension-strike@2.0.0-alpha.2) (2020-11-19) | ||
@@ -8,0 +16,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@tiptap/core")):"function"==typeof define&&define.amd?define(["exports","@tiptap/core"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@tiptap/extension-strike"]={},e["@tiptap/core"])}(this,(function(e,t){"use strict";const s=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/gm,r=t.Mark.create({name:"strike",defaultOptions:{HTMLAttributes:{}},parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration=line-through"}],renderHTML:({HTMLAttributes:e})=>["s",e,0],addCommands:()=>({setStrike:()=>({commands:e})=>e.setMark("strike"),toggleStrike:()=>({commands:e})=>e.toggleMark("strike"),unsetStrike:()=>({commands:e})=>e.unsetMark("strike")}),addKeyboardShortcuts(){return{"Mod-d":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[t.markInputRule(s,this.type)]},addPasteRules(){return[t.markPasteRule(s,this.type)]}});e.default=r,e.inputRegex=s,e.pasteRegex=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/gm,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@tiptap/core")):"function"==typeof define&&define.amd?define(["exports","@tiptap/core"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@tiptap/extension-strike"]={},e["@tiptap/core"])}(this,(function(e,t){"use strict";const s=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/gm,r=t.Mark.create({name:"strike",defaultOptions:{HTMLAttributes:{}},parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration=line-through"}],renderHTML:({HTMLAttributes:e})=>["s",e,0],addCommands:()=>({setStrike:()=>({commands:e})=>e.setMark("strike"),toggleStrike:()=>({commands:e})=>e.toggleMark("strike"),unsetStrike:()=>({commands:e})=>e.unsetMark("strike")}),addKeyboardShortcuts(){return{"Mod-Shift-x":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[t.markInputRule(s,this.type)]},addPasteRules(){return[t.markPasteRule(s,this.type)]}});e.default=r,e.inputRegex=s,e.pasteRegex=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/gm,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=tiptap-extension-strike.bundle.umd.min.js.map |
@@ -57,3 +57,3 @@ 'use strict'; | ||
return { | ||
'Mod-d': () => this.editor.commands.toggleStrike(), | ||
'Mod-Shift-x': () => this.editor.commands.toggleStrike(), | ||
}; | ||
@@ -60,0 +60,0 @@ }, |
@@ -53,3 +53,3 @@ import { Mark, markInputRule, markPasteRule } from '@tiptap/core'; | ||
return { | ||
'Mod-d': () => this.editor.commands.toggleStrike(), | ||
'Mod-Shift-x': () => this.editor.commands.toggleStrike(), | ||
}; | ||
@@ -56,0 +56,0 @@ }, |
@@ -57,3 +57,3 @@ (function (global, factory) { | ||
return { | ||
'Mod-d': () => this.editor.commands.toggleStrike(), | ||
'Mod-Shift-x': () => this.editor.commands.toggleStrike(), | ||
}; | ||
@@ -60,0 +60,0 @@ }, |
{ | ||
"name": "@tiptap/extension-strike", | ||
"version": "2.0.0-alpha.2", | ||
"version": "2.0.0-alpha.3", | ||
"homepage": "https://tiptap.dev", | ||
@@ -24,5 +24,5 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@tiptap/core": "^2.0.0-alpha.0" | ||
"@tiptap/core": "^2.0.0-alpha.6" | ||
}, | ||
"gitHead": "c460fe130b4ed9d6f4fb3b8ab678c0e808301d6c" | ||
"gitHead": "7966af0fec4e65f83d7e5a22ccb9fc420a9a6728" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25007