@tiptap/extension-bullet-list
Advanced tools
Comparing version 2.0.0-beta.15 to 2.0.0-beta.16
@@ -6,3 +6,2 @@ 'use strict'; | ||
var core = require('@tiptap/core'); | ||
var prosemirrorInputrules = require('prosemirror-inputrules'); | ||
@@ -39,3 +38,6 @@ const inputRegex = /^\s*([-+*])\s$/; | ||
return [ | ||
prosemirrorInputrules.wrappingInputRule(inputRegex, this.type), | ||
core.wrappingInputRule({ | ||
find: inputRegex, | ||
type: this.type, | ||
}), | ||
]; | ||
@@ -46,4 +48,4 @@ }, | ||
exports.BulletList = BulletList; | ||
exports.default = BulletList; | ||
exports["default"] = BulletList; | ||
exports.inputRegex = inputRegex; | ||
//# sourceMappingURL=tiptap-extension-bullet-list.cjs.js.map |
@@ -1,3 +0,2 @@ | ||
import { Node, mergeAttributes } from '@tiptap/core'; | ||
import { wrappingInputRule } from 'prosemirror-inputrules'; | ||
import { Node, mergeAttributes, wrappingInputRule } from '@tiptap/core'; | ||
@@ -34,3 +33,6 @@ const inputRegex = /^\s*([-+*])\s$/; | ||
return [ | ||
wrappingInputRule(inputRegex, this.type), | ||
wrappingInputRule({ | ||
find: inputRegex, | ||
type: this.type, | ||
}), | ||
]; | ||
@@ -40,4 +42,3 @@ }, | ||
export default BulletList; | ||
export { BulletList, inputRegex }; | ||
export { BulletList, BulletList as default, inputRegex }; | ||
//# sourceMappingURL=tiptap-extension-bullet-list.esm.js.map |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tiptap/core'), require('prosemirror-inputrules')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@tiptap/core', 'prosemirror-inputrules'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['@tiptap/extension-bullet-list'] = {}, global.core, global.prosemirrorInputrules)); | ||
}(this, (function (exports, core, prosemirrorInputrules) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tiptap/core')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@tiptap/core'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@tiptap/extension-bullet-list"] = {}, global.core)); | ||
})(this, (function (exports, core) { 'use strict'; | ||
@@ -37,3 +37,6 @@ const inputRegex = /^\s*([-+*])\s$/; | ||
return [ | ||
prosemirrorInputrules.wrappingInputRule(inputRegex, this.type), | ||
core.wrappingInputRule({ | ||
find: inputRegex, | ||
type: this.type, | ||
}), | ||
]; | ||
@@ -44,3 +47,3 @@ }, | ||
exports.BulletList = BulletList; | ||
exports.default = BulletList; | ||
exports["default"] = BulletList; | ||
exports.inputRegex = inputRegex; | ||
@@ -50,3 +53,3 @@ | ||
}))); | ||
})); | ||
//# sourceMappingURL=tiptap-extension-bullet-list.umd.js.map |
{ | ||
"name": "@tiptap/extension-bullet-list", | ||
"description": "bullet list extension for tiptap", | ||
"version": "2.0.0-beta.15", | ||
"version": "2.0.0-beta.16", | ||
"homepage": "https://tiptap.dev", | ||
@@ -26,5 +26,2 @@ "keywords": [ | ||
}, | ||
"dependencies": { | ||
"prosemirror-inputrules": "^1.1.3" | ||
}, | ||
"repository": { | ||
@@ -35,3 +32,3 @@ "type": "git", | ||
}, | ||
"gitHead": "345ea8cf8abba6422dabc6e548594fb8e2c30409" | ||
"gitHead": "ed00dbbe56d7a31dbfcf02594c4ce5f54c7bc27a" | ||
} |
@@ -1,3 +0,2 @@ | ||
import { Node, mergeAttributes } from '@tiptap/core' | ||
import { wrappingInputRule } from 'prosemirror-inputrules' | ||
import { Node, mergeAttributes, wrappingInputRule } from '@tiptap/core' | ||
@@ -58,5 +57,8 @@ export interface BulletListOptions { | ||
return [ | ||
wrappingInputRule(inputRegex, this.type), | ||
wrappingInputRule({ | ||
find: inputRegex, | ||
type: this.type, | ||
}), | ||
] | ||
}, | ||
}) |
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
1
205
15409
13
- Removedprosemirror-inputrules@^1.1.3