@tiptap/extension-task-list
Advanced tools
Comparing version 1.0.0-alpha.2 to 2.0.0-alpha.1
@@ -6,2 +6,10 @@ # Change Log | ||
# [2.0.0-alpha.1](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-task-list@1.0.0-alpha.2...@tiptap/extension-task-list@2.0.0-alpha.1) (2020-11-18) | ||
**Note:** Version bump only for package @tiptap/extension-task-list | ||
# [1.0.0-alpha.2](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-task-list@1.0.0-alpha.1...@tiptap/extension-task-list@1.0.0-alpha.2) (2020-11-16) | ||
@@ -8,0 +16,0 @@ |
@@ -11,3 +11,3 @@ import { Command, Node } from '@tiptap/core'; | ||
*/ | ||
taskList: () => Command; | ||
toggleTaskList: () => Command; | ||
}>; | ||
@@ -14,0 +14,0 @@ export default TaskList; |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@tiptap/core")):"function"==typeof define&&define.amd?define(["@tiptap/core"],e):(t="undefined"!=typeof globalThis?globalThis:t||self)["@tiptap/extension-task-list"]=e(t["@tiptap/core"])}(this,(function(t){"use strict";return t.Node.create({name:"taskList",defaultOptions:{HTMLAttributes:{}},group:"block list",content:"taskItem+",parseHTML:()=>[{tag:'ul[data-type="taskList"]',priority:51}],renderHTML:({HTMLAttributes:e})=>["ul",t.mergeAttributes(e,{"data-type":"taskList"}),0],addCommands:()=>({taskList:()=>({commands:t})=>t.toggleList("taskList","taskItem")})})})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@tiptap/core")):"function"==typeof define&&define.amd?define(["@tiptap/core"],e):(t="undefined"!=typeof globalThis?globalThis:t||self)["@tiptap/extension-task-list"]=e(t["@tiptap/core"])}(this,(function(t){"use strict";return t.Node.create({name:"taskList",defaultOptions:{HTMLAttributes:{}},group:"block list",content:"taskItem+",parseHTML:()=>[{tag:'ul[data-type="taskList"]',priority:51}],renderHTML:({HTMLAttributes:e})=>["ul",t.mergeAttributes(e,{"data-type":"taskList"}),0],addCommands:()=>({toggleTaskList:()=>({commands:t})=>t.toggleList("taskList","taskItem")})})})); | ||
//# sourceMappingURL=tiptap-extension-task-list.bundle.umd.min.js.map |
@@ -28,3 +28,3 @@ 'use strict'; | ||
*/ | ||
taskList: () => ({ commands }) => { | ||
toggleTaskList: () => ({ commands }) => { | ||
return commands.toggleList('taskList', 'taskItem'); | ||
@@ -31,0 +31,0 @@ }, |
@@ -26,3 +26,3 @@ import { Node, mergeAttributes } from '@tiptap/core'; | ||
*/ | ||
taskList: () => ({ commands }) => { | ||
toggleTaskList: () => ({ commands }) => { | ||
return commands.toggleList('taskList', 'taskItem'); | ||
@@ -29,0 +29,0 @@ }, |
@@ -30,3 +30,3 @@ (function (global, factory) { | ||
*/ | ||
taskList: () => ({ commands }) => { | ||
toggleTaskList: () => ({ commands }) => { | ||
return commands.toggleList('taskList', 'taskItem'); | ||
@@ -33,0 +33,0 @@ }, |
{ | ||
"name": "@tiptap/extension-task-list", | ||
"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-task-list | ||
## 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 |
@@ -38,3 +38,3 @@ import { Command, Node, mergeAttributes } from '@tiptap/core' | ||
*/ | ||
taskList: (): Command => ({ commands }) => { | ||
toggleTaskList: (): Command => ({ commands }) => { | ||
return commands.toggleList('taskList', 'taskItem') | ||
@@ -41,0 +41,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
15285