@tiptap/extension-bullet-list
Advanced tools
Comparing version 2.0.0-alpha.10 to 2.0.0-alpha.11
@@ -6,2 +6,10 @@ # Change Log | ||
# [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-bullet-list@2.0.0-alpha.10...@tiptap/extension-bullet-list@2.0.0-alpha.11) (2021-02-16) | ||
**Note:** Version bump only for package @tiptap/extension-bullet-list | ||
# [2.0.0-alpha.10](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-bullet-list@2.0.0-alpha.9...@tiptap/extension-bullet-list@2.0.0-alpha.10) (2021-02-07) | ||
@@ -8,0 +16,0 @@ |
@@ -7,13 +7,13 @@ import { Command, Node } from '@tiptap/core'; | ||
} | ||
export declare const inputRegex: RegExp; | ||
export declare const BulletList: Node<BulletListOptions, { | ||
/** | ||
* Toggle a bullet list | ||
*/ | ||
toggleBulletList: () => Command; | ||
}>; | ||
declare module '@tiptap/core' { | ||
interface AllExtensions { | ||
BulletList: typeof BulletList; | ||
interface Commands { | ||
bulletList: { | ||
/** | ||
* Toggle a bullet list | ||
*/ | ||
toggleBulletList: () => Command; | ||
}; | ||
} | ||
} | ||
export declare const inputRegex: RegExp; | ||
export declare const BulletList: Node<BulletListOptions>; |
@@ -26,5 +26,2 @@ 'use strict'; | ||
return { | ||
/** | ||
* Toggle a bullet list | ||
*/ | ||
toggleBulletList: () => ({ commands }) => { | ||
@@ -31,0 +28,0 @@ return commands.toggleList('bulletList', 'listItem'); |
@@ -22,5 +22,2 @@ import { Node, mergeAttributes } from '@tiptap/core'; | ||
return { | ||
/** | ||
* Toggle a bullet list | ||
*/ | ||
toggleBulletList: () => ({ commands }) => { | ||
@@ -27,0 +24,0 @@ return commands.toggleList('bulletList', 'listItem'); |
@@ -25,5 +25,2 @@ (function (global, factory) { | ||
return { | ||
/** | ||
* Toggle a bullet list | ||
*/ | ||
toggleBulletList: () => ({ commands }) => { | ||
@@ -30,0 +27,0 @@ return commands.toggleList('bulletList', 'listItem'); |
{ | ||
"name": "@tiptap/extension-bullet-list", | ||
"description": "bullet list extension for tiptap", | ||
"version": "2.0.0-alpha.10", | ||
"version": "2.0.0-alpha.11", | ||
"homepage": "https://tiptap.dev", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "6bdeb4615c7b6afba4a2fcac4e3c35d7a7c0030a" | ||
"gitHead": "71d8fbbcb1eacd664bb6992e0086a589e4684e69" | ||
} |
@@ -10,8 +10,19 @@ import { Command, Node, mergeAttributes } from '@tiptap/core' | ||
declare module '@tiptap/core' { | ||
interface Commands { | ||
bulletList: { | ||
/** | ||
* Toggle a bullet list | ||
*/ | ||
toggleBulletList: () => Command, | ||
} | ||
} | ||
} | ||
export const inputRegex = /^\s*([-+*])\s$/ | ||
export const BulletList = Node.create({ | ||
export const BulletList = Node.create<BulletListOptions>({ | ||
name: 'bulletList', | ||
defaultOptions: <BulletListOptions>{ | ||
defaultOptions: { | ||
HTMLAttributes: {}, | ||
@@ -36,6 +47,3 @@ }, | ||
return { | ||
/** | ||
* Toggle a bullet list | ||
*/ | ||
toggleBulletList: (): Command => ({ commands }) => { | ||
toggleBulletList: () => ({ commands }) => { | ||
return commands.toggleList('bulletList', 'listItem') | ||
@@ -58,7 +66,1 @@ }, | ||
}) | ||
declare module '@tiptap/core' { | ||
interface AllExtensions { | ||
BulletList: typeof BulletList, | ||
} | ||
} |
Sorry, the diff of this file is too big to display
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
455131
527