tiptap-commands
Advanced tools
Comparing version 1.4.0 to 1.5.0
/*! | ||
* tiptap-commands v1.3.0 | ||
* tiptap-commands v1.4.0 | ||
* (c) 2019 Scrumpy UG (limited liability) | ||
@@ -58,2 +58,15 @@ * @license MIT | ||
function nodeInputRule (regexp, type, getAttrs) { | ||
return new prosemirrorInputrules.InputRule(regexp, function (state, match, start, end) { | ||
var attrs = getAttrs instanceof Function ? getAttrs(match) : getAttrs; | ||
var tr = state.tr; | ||
if (match[0]) { | ||
tr.replaceWith(start - 1, end, type.create(attrs)); | ||
} | ||
return tr; | ||
}); | ||
} | ||
function pasteRule (regexp, type, getAttrs) { | ||
@@ -104,2 +117,49 @@ var handler = function handler(fragment) { | ||
function markPasteRule (regexp, type, getAttrs) { | ||
var handler = function handler(fragment) { | ||
var nodes = []; | ||
fragment.forEach(function (child) { | ||
if (child.isText) { | ||
var text = child.text; | ||
var pos = 0; | ||
var match; // eslint-disable-next-line | ||
while ((match = regexp.exec(text)) !== null) { | ||
if (match[1]) { | ||
var start = match.index; | ||
var end = start + match[0].length; | ||
var textStart = start + match[0].indexOf(match[1]); | ||
var textEnd = textStart + match[1].length; | ||
var attrs = getAttrs instanceof Function ? getAttrs(match) : getAttrs; // adding text before markdown to nodes | ||
if (start > 0) { | ||
nodes.push(child.cut(pos, start)); | ||
} // adding the markdown part to nodes | ||
nodes.push(child.cut(textStart, textEnd).mark(type.create(attrs).addToSet(child.marks))); | ||
pos = end; | ||
} | ||
} // adding rest of text to nodes | ||
if (pos < text.length) { | ||
nodes.push(child.cut(pos)); | ||
} | ||
} else { | ||
nodes.push(child.copy(handler(child.content))); | ||
} | ||
}); | ||
return prosemirrorModel.Fragment.fromArray(nodes); | ||
}; | ||
return new prosemirrorState.Plugin({ | ||
props: { | ||
transformPasted: function transformPasted(slice) { | ||
return new prosemirrorModel.Slice(handler(slice.content), slice.openStart, slice.openEnd); | ||
} | ||
} | ||
}); | ||
} | ||
function removeMark (type) { | ||
@@ -365,2 +425,4 @@ return function (state, dispatch) { | ||
exports.markInputRule = markInputRule; | ||
exports.markPasteRule = markPasteRule; | ||
exports.nodeInputRule = nodeInputRule; | ||
exports.pasteRule = pasteRule; | ||
@@ -367,0 +429,0 @@ exports.removeMark = removeMark; |
/*! | ||
* tiptap-commands v1.3.0 | ||
* tiptap-commands v1.4.0 | ||
* (c) 2019 Scrumpy UG (limited liability) | ||
@@ -57,2 +57,15 @@ * @license MIT | ||
function nodeInputRule (regexp, type, getAttrs) { | ||
return new InputRule(regexp, function (state, match, start, end) { | ||
var attrs = getAttrs instanceof Function ? getAttrs(match) : getAttrs; | ||
var tr = state.tr; | ||
if (match[0]) { | ||
tr.replaceWith(start - 1, end, type.create(attrs)); | ||
} | ||
return tr; | ||
}); | ||
} | ||
function pasteRule (regexp, type, getAttrs) { | ||
@@ -103,2 +116,49 @@ var handler = function handler(fragment) { | ||
function markPasteRule (regexp, type, getAttrs) { | ||
var handler = function handler(fragment) { | ||
var nodes = []; | ||
fragment.forEach(function (child) { | ||
if (child.isText) { | ||
var text = child.text; | ||
var pos = 0; | ||
var match; // eslint-disable-next-line | ||
while ((match = regexp.exec(text)) !== null) { | ||
if (match[1]) { | ||
var start = match.index; | ||
var end = start + match[0].length; | ||
var textStart = start + match[0].indexOf(match[1]); | ||
var textEnd = textStart + match[1].length; | ||
var attrs = getAttrs instanceof Function ? getAttrs(match) : getAttrs; // adding text before markdown to nodes | ||
if (start > 0) { | ||
nodes.push(child.cut(pos, start)); | ||
} // adding the markdown part to nodes | ||
nodes.push(child.cut(textStart, textEnd).mark(type.create(attrs).addToSet(child.marks))); | ||
pos = end; | ||
} | ||
} // adding rest of text to nodes | ||
if (pos < text.length) { | ||
nodes.push(child.cut(pos)); | ||
} | ||
} else { | ||
nodes.push(child.copy(handler(child.content))); | ||
} | ||
}); | ||
return Fragment$1.fromArray(nodes); | ||
}; | ||
return new Plugin({ | ||
props: { | ||
transformPasted: function transformPasted(slice) { | ||
return new Slice$1(handler(slice.content), slice.openStart, slice.openEnd); | ||
} | ||
} | ||
}); | ||
} | ||
function removeMark (type) { | ||
@@ -331,2 +391,2 @@ return function (state, dispatch) { | ||
export { insertText, markInputRule, pasteRule, removeMark, replaceText, setInlineBlockType, splitListItem as splitToDefaultListItem, toggleBlockType, toggleList, toggleWrap, updateMark }; | ||
export { insertText, markInputRule, markPasteRule, nodeInputRule, pasteRule, removeMark, replaceText, setInlineBlockType, splitListItem as splitToDefaultListItem, toggleBlockType, toggleList, toggleWrap, updateMark }; |
/*! | ||
* tiptap-commands v1.3.0 | ||
* tiptap-commands v1.4.0 | ||
* (c) 2019 Scrumpy UG (limited liability) | ||
@@ -53,2 +53,15 @@ * @license MIT | ||
function nodeInputRule (regexp, type, getAttrs) { | ||
return new prosemirrorInputrules.InputRule(regexp, function (state, match, start, end) { | ||
var attrs = getAttrs instanceof Function ? getAttrs(match) : getAttrs; | ||
var tr = state.tr; | ||
if (match[0]) { | ||
tr.replaceWith(start - 1, end, type.create(attrs)); | ||
} | ||
return tr; | ||
}); | ||
} | ||
function pasteRule (regexp, type, getAttrs) { | ||
@@ -99,2 +112,49 @@ var handler = function handler(fragment) { | ||
function markPasteRule (regexp, type, getAttrs) { | ||
var handler = function handler(fragment) { | ||
var nodes = []; | ||
fragment.forEach(function (child) { | ||
if (child.isText) { | ||
var text = child.text; | ||
var pos = 0; | ||
var match; // eslint-disable-next-line | ||
while ((match = regexp.exec(text)) !== null) { | ||
if (match[1]) { | ||
var start = match.index; | ||
var end = start + match[0].length; | ||
var textStart = start + match[0].indexOf(match[1]); | ||
var textEnd = textStart + match[1].length; | ||
var attrs = getAttrs instanceof Function ? getAttrs(match) : getAttrs; // adding text before markdown to nodes | ||
if (start > 0) { | ||
nodes.push(child.cut(pos, start)); | ||
} // adding the markdown part to nodes | ||
nodes.push(child.cut(textStart, textEnd).mark(type.create(attrs).addToSet(child.marks))); | ||
pos = end; | ||
} | ||
} // adding rest of text to nodes | ||
if (pos < text.length) { | ||
nodes.push(child.cut(pos)); | ||
} | ||
} else { | ||
nodes.push(child.copy(handler(child.content))); | ||
} | ||
}); | ||
return prosemirrorModel.Fragment.fromArray(nodes); | ||
}; | ||
return new prosemirrorState.Plugin({ | ||
props: { | ||
transformPasted: function transformPasted(slice) { | ||
return new prosemirrorModel.Slice(handler(slice.content), slice.openStart, slice.openEnd); | ||
} | ||
} | ||
}); | ||
} | ||
function removeMark (type) { | ||
@@ -360,2 +420,4 @@ return function (state, dispatch) { | ||
exports.markInputRule = markInputRule; | ||
exports.markPasteRule = markPasteRule; | ||
exports.nodeInputRule = nodeInputRule; | ||
exports.pasteRule = pasteRule; | ||
@@ -362,0 +424,0 @@ exports.removeMark = removeMark; |
/*! | ||
* tiptap-commands v1.3.0 | ||
* tiptap-commands v1.4.0 | ||
* (c) 2019 Scrumpy UG (limited liability) | ||
@@ -9,2 +9,2 @@ * @license MIT | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("prosemirror-commands"),require("prosemirror-schema-list"),require("prosemirror-inputrules"),require("prosemirror-state"),require("prosemirror-model"),require("tiptap-utils")):"function"==typeof define&&define.amd?define(["exports","prosemirror-commands","prosemirror-schema-list","prosemirror-inputrules","prosemirror-state","prosemirror-model","tiptap-utils"],t):t((e=e||self).tiptap={},e.prosemirrorCommands,e.prosemirrorSchemaList,e.prosemirrorInputrules,e.prosemirrorState,e.prosemirrorModel,e.tiptapUtils)}(this,function(e,a,i,t,r,n,p){"use strict";e.chainCommands=a.chainCommands,e.deleteSelection=a.deleteSelection,e.joinBackward=a.joinBackward,e.selectNodeBackward=a.selectNodeBackward,e.joinForward=a.joinForward,e.selectNodeForward=a.selectNodeForward,e.joinUp=a.joinUp,e.joinDown=a.joinDown,e.lift=a.lift,e.newlineInCode=a.newlineInCode,e.exitCode=a.exitCode,e.createParagraphNear=a.createParagraphNear,e.liftEmptyBlock=a.liftEmptyBlock,e.splitBlock=a.splitBlock,e.splitBlockKeepMarks=a.splitBlockKeepMarks,e.selectParentNode=a.selectParentNode,e.selectAll=a.selectAll,e.wrapIn=a.wrapIn,e.setBlockType=a.setBlockType,e.toggleMark=a.toggleMark,e.autoJoin=a.autoJoin,e.baseKeymap=a.baseKeymap,e.pcBaseKeymap=a.pcBaseKeymap,e.macBaseKeymap=a.macBaseKeymap,e.addListNodes=i.addListNodes,e.wrapInList=i.wrapInList,e.splitListItem=i.splitListItem,e.liftListItem=i.liftListItem,e.sinkListItem=i.sinkListItem,e.wrappingInputRule=t.wrappingInputRule,e.textblockTypeInputRule=t.textblockTypeInputRule,e.insertText=function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return function(e,t){var r=e.selection.$from.pos.pos;return t(e.tr.insertText(n,r)),!0}},e.markInputRule=function(e,s,u){return new t.InputRule(e,function(e,t,r,n){var o=u instanceof Function?u(t):u,i=e.tr,a=n;if(t[1]){var p=t[0].search(/\S/),c=r+t[0].indexOf(t[1]),l=c+t[1].length;l<n&&i.delete(l,n),r<c&&i.delete(r+p,c),a=r+p+t[1].length}return i.addMark(r,a,s.create(o)),i.removeStoredMark(s),i})},e.pasteRule=function(l,s,u){return new r.Plugin({props:{transformPasted:function(e){return new n.Slice(function p(e){var c=[];return e.forEach(function(e){if(e.isText){var t,r=e.text,n=0;do{if(t=l.exec(r)){var o=t.index,i=o+t[0].length,a=u instanceof Function?u(t[0]):u;0<o&&c.push(e.cut(n,o)),c.push(e.cut(o,i).mark(s.create(a).addToSet(e.marks))),n=i}}while(t);n<r.length&&c.push(e.cut(n))}else c.push(e.copy(p(e.content)))}),n.Fragment.fromArray(c)}(e.content),e.openStart,e.openEnd)}}})},e.removeMark=function(i){return function(e,t){var r=e.selection,n=r.from,o=r.to;return t(e.tr.removeMark(n,o,i))}},e.replaceText=function(){var c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,l=1<arguments.length?arguments[1]:void 0,s=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return function(e,t){var r=e.selection,n=r.$from,o=r.$to,i=n.index(),a=c?c.from:n.pos,p=c?c.to:o.pos;return!!n.parent.canReplaceWith(i,i,l)&&(t&&t(e.tr.replaceWith(a,p,l.create(s))),!0)}},e.setInlineBlockType=function(o){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){var r=e.selection.$from,n=r.index();return!!r.parent.canReplaceWith(n,n,o)&&(t&&t(e.tr.replaceSelectionWith(o.create(i))),!0)}},e.splitToDefaultListItem=function(m){return function(e,t){var r=e.selection,n=r.$from,o=r.$to,i=r.node;if(i&&i.isBlock||n.depth<2||!n.sameParent(o))return!1;var a=n.node(-1);if(a.type!=m)return!1;if(0==n.parent.content.size){if(2==n.depth||n.node(-3).type!=m||n.index(-2)!=n.node(-2).childCount-1)return!1;if(t){for(var p=Fragment.empty,c=0<n.index(-1),l=n.depth-(c?1:2);l>=n.depth-3;l--)p=Fragment.from(n.node(l).copy(p));p=p.append(Fragment.from(m.createAndFill()));var s=e.tr.replace(n.before(c?null:-1),n.after(-3),new Slice(p,c?3:2,2));s.setSelection(e.selection.constructor.near(s.doc.resolve(n.pos+(c?3:2)))),t(s.scrollIntoView())}return!0}var u=o.pos==n.end()?a.contentMatchAt(n.indexAfter(-1)).defaultType:null,d=e.tr.delete(n.pos,o.pos),f=u&&[{type:m},{type:u}];return f||(f=[{type:m},null]),!!function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,n=3<arguments.length?arguments[3]:void 0,o=e.resolve(t),i=o.depth-r,a=n&&n[n.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(var p=o.depth-1,c=r-2;i<p;p--,c--){var l=o.node(p),s=o.index(p);if(l.type.spec.isolating)return!1;var u=l.content.cutByIndex(s,l.childCount),d=n&&n[c]||l;if(d!=l&&(u=u.replaceChild(0,d.type.create(d.attrs))),!l.canReplace(s+1,l.childCount))return!1}var f=o.indexAfter(i),m=n&&n[0];return o.node(i).canReplaceWith(f,f,m?m.type:o.node(i+1).type)}(d.doc,n.pos,2,f)&&(t&&t(d.split(n.pos,2,[{type:e.schema.nodes.todo_item,attrs:{done:!1}}]).scrollIntoView()),!0)}},e.toggleBlockType=function(n,o){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return function(e,t,r){return p.nodeIsActive(e,n,i)?a.setBlockType(o)(e,t,r):a.setBlockType(n,i)(e,t,r)}},e.toggleList=function(n,o){return function(e,t,r){return p.nodeIsActive(e,n)?i.liftListItem(o)(e,t,r):i.wrapInList(n)(e,t,r)}},e.toggleWrap=function(n){return function(e,t,r){return p.nodeIsActive(e,n)?a.lift(e,t):a.wrapIn(n)(e,t,r)}},e.updateMark=function(i,a){return function(e,t){var r=e.selection,n=r.from,o=r.to;return t(e.tr.addMark(n,o,i.create(a)))}},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("prosemirror-commands"),require("prosemirror-schema-list"),require("prosemirror-inputrules"),require("prosemirror-state"),require("prosemirror-model"),require("tiptap-utils")):"function"==typeof define&&define.amd?define(["exports","prosemirror-commands","prosemirror-schema-list","prosemirror-inputrules","prosemirror-state","prosemirror-model","tiptap-utils"],t):t((e=e||self).tiptap={},e.prosemirrorCommands,e.prosemirrorSchemaList,e.prosemirrorInputrules,e.prosemirrorState,e.prosemirrorModel,e.tiptapUtils)}(this,function(e,a,i,t,r,n,c){"use strict";e.chainCommands=a.chainCommands,e.deleteSelection=a.deleteSelection,e.joinBackward=a.joinBackward,e.selectNodeBackward=a.selectNodeBackward,e.joinForward=a.joinForward,e.selectNodeForward=a.selectNodeForward,e.joinUp=a.joinUp,e.joinDown=a.joinDown,e.lift=a.lift,e.newlineInCode=a.newlineInCode,e.exitCode=a.exitCode,e.createParagraphNear=a.createParagraphNear,e.liftEmptyBlock=a.liftEmptyBlock,e.splitBlock=a.splitBlock,e.splitBlockKeepMarks=a.splitBlockKeepMarks,e.selectParentNode=a.selectParentNode,e.selectAll=a.selectAll,e.wrapIn=a.wrapIn,e.setBlockType=a.setBlockType,e.toggleMark=a.toggleMark,e.autoJoin=a.autoJoin,e.baseKeymap=a.baseKeymap,e.pcBaseKeymap=a.pcBaseKeymap,e.macBaseKeymap=a.macBaseKeymap,e.addListNodes=i.addListNodes,e.wrapInList=i.wrapInList,e.splitListItem=i.splitListItem,e.liftListItem=i.liftListItem,e.sinkListItem=i.sinkListItem,e.wrappingInputRule=t.wrappingInputRule,e.textblockTypeInputRule=t.textblockTypeInputRule,e.insertText=function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return function(e,t){var r=e.selection.$from.pos.pos;return t(e.tr.insertText(n,r)),!0}},e.markInputRule=function(e,s,u){return new t.InputRule(e,function(e,t,r,n){var o=u instanceof Function?u(t):u,i=e.tr,a=n;if(t[1]){var c=t[0].search(/\S/),p=r+t[0].indexOf(t[1]),l=p+t[1].length;l<n&&i.delete(l,n),r<p&&i.delete(r+c,p),a=r+c+t[1].length}return i.addMark(r,a,s.create(o)),i.removeStoredMark(s),i})},e.markPasteRule=function(u,d,f){return new r.Plugin({props:{transformPasted:function(e){return new n.Slice(function l(e){var s=[];return e.forEach(function(e){if(e.isText){for(var t,r=e.text,n=0;null!==(t=u.exec(r));)if(t[1]){var o=t.index,i=o+t[0].length,a=o+t[0].indexOf(t[1]),c=a+t[1].length,p=f instanceof Function?f(t):f;0<o&&s.push(e.cut(n,o)),s.push(e.cut(a,c).mark(d.create(p).addToSet(e.marks))),n=i}n<r.length&&s.push(e.cut(n))}else s.push(e.copy(l(e.content)))}),n.Fragment.fromArray(s)}(e.content),e.openStart,e.openEnd)}}})},e.nodeInputRule=function(e,a,c){return new t.InputRule(e,function(e,t,r,n){var o=c instanceof Function?c(t):c,i=e.tr;return t[0]&&i.replaceWith(r-1,n,a.create(o)),i})},e.pasteRule=function(l,s,u){return new r.Plugin({props:{transformPasted:function(e){return new n.Slice(function c(e){var p=[];return e.forEach(function(e){if(e.isText){var t,r=e.text,n=0;do{if(t=l.exec(r)){var o=t.index,i=o+t[0].length,a=u instanceof Function?u(t[0]):u;0<o&&p.push(e.cut(n,o)),p.push(e.cut(o,i).mark(s.create(a).addToSet(e.marks))),n=i}}while(t);n<r.length&&p.push(e.cut(n))}else p.push(e.copy(c(e.content)))}),n.Fragment.fromArray(p)}(e.content),e.openStart,e.openEnd)}}})},e.removeMark=function(i){return function(e,t){var r=e.selection,n=r.from,o=r.to;return t(e.tr.removeMark(n,o,i))}},e.replaceText=function(){var p=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,l=1<arguments.length?arguments[1]:void 0,s=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return function(e,t){var r=e.selection,n=r.$from,o=r.$to,i=n.index(),a=p?p.from:n.pos,c=p?p.to:o.pos;return!!n.parent.canReplaceWith(i,i,l)&&(t&&t(e.tr.replaceWith(a,c,l.create(s))),!0)}},e.setInlineBlockType=function(o){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){var r=e.selection.$from,n=r.index();return!!r.parent.canReplaceWith(n,n,o)&&(t&&t(e.tr.replaceSelectionWith(o.create(i))),!0)}},e.splitToDefaultListItem=function(m){return function(e,t){var r=e.selection,n=r.$from,o=r.$to,i=r.node;if(i&&i.isBlock||n.depth<2||!n.sameParent(o))return!1;var a=n.node(-1);if(a.type!=m)return!1;if(0==n.parent.content.size){if(2==n.depth||n.node(-3).type!=m||n.index(-2)!=n.node(-2).childCount-1)return!1;if(t){for(var c=Fragment.empty,p=0<n.index(-1),l=n.depth-(p?1:2);l>=n.depth-3;l--)c=Fragment.from(n.node(l).copy(c));c=c.append(Fragment.from(m.createAndFill()));var s=e.tr.replace(n.before(p?null:-1),n.after(-3),new Slice(c,p?3:2,2));s.setSelection(e.selection.constructor.near(s.doc.resolve(n.pos+(p?3:2)))),t(s.scrollIntoView())}return!0}var u=o.pos==n.end()?a.contentMatchAt(n.indexAfter(-1)).defaultType:null,d=e.tr.delete(n.pos,o.pos),f=u&&[{type:m},{type:u}];return f||(f=[{type:m},null]),!!function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,n=3<arguments.length?arguments[3]:void 0,o=e.resolve(t),i=o.depth-r,a=n&&n[n.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(var c=o.depth-1,p=r-2;i<c;c--,p--){var l=o.node(c),s=o.index(c);if(l.type.spec.isolating)return!1;var u=l.content.cutByIndex(s,l.childCount),d=n&&n[p]||l;if(d!=l&&(u=u.replaceChild(0,d.type.create(d.attrs))),!l.canReplace(s+1,l.childCount))return!1}var f=o.indexAfter(i),m=n&&n[0];return o.node(i).canReplaceWith(f,f,m?m.type:o.node(i+1).type)}(d.doc,n.pos,2,f)&&(t&&t(d.split(n.pos,2,[{type:e.schema.nodes.todo_item,attrs:{done:!1}}]).scrollIntoView()),!0)}},e.toggleBlockType=function(n,o){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return function(e,t,r){return c.nodeIsActive(e,n,i)?a.setBlockType(o)(e,t,r):a.setBlockType(n,i)(e,t,r)}},e.toggleList=function(n,o){return function(e,t,r){return c.nodeIsActive(e,n)?i.liftListItem(o)(e,t,r):i.wrapInList(n)(e,t,r)}},e.toggleWrap=function(n){return function(e,t,r){return c.nodeIsActive(e,n)?a.lift(e,t):a.wrapIn(n)(e,t,r)}},e.updateMark=function(i,a){return function(e,t){var r=e.selection,n=r.from,o=r.to;return t(e.tr.addMark(n,o,i.create(a)))}},Object.defineProperty(e,"__esModule",{value:!0})}); |
MIT License | ||
Copyright (c) 2018, Scrumpy UG (limited liability) | ||
Copyright (c) 2019, Scrumpy UG (limited liability) | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
{ | ||
"name": "tiptap-commands", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "Commands for tiptap", | ||
@@ -29,3 +29,3 @@ "homepage": "https://tiptap.scrumpy.io", | ||
}, | ||
"gitHead": "118e7ebd002b3cdc8c1a87171c7aacaa54274dee" | ||
"gitHead": "bf05978dc47929a13e09c44ba4338fc7f527707f" | ||
} |
@@ -43,3 +43,5 @@ import { | ||
import markInputRule from './commands/markInputRule' | ||
import nodeInputRule from './commands/nodeInputRule' | ||
import pasteRule from './commands/pasteRule' | ||
import markPasteRule from './commands/markPasteRule' | ||
import removeMark from './commands/removeMark' | ||
@@ -95,2 +97,4 @@ import replaceText from './commands/replaceText' | ||
markInputRule, | ||
markPasteRule, | ||
nodeInputRule, | ||
pasteRule, | ||
@@ -97,0 +101,0 @@ removeMark, |
66651
21
1449