@tiptap/extension-ordered-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-ordered-list@2.0.0-alpha.10...@tiptap/extension-ordered-list@2.0.0-alpha.11) (2021-02-16) | ||
**Note:** Version bump only for package @tiptap/extension-ordered-list | ||
# [2.0.0-alpha.10](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-ordered-list@2.0.0-alpha.9...@tiptap/extension-ordered-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 OrderedList: Node<OrderedListOptions, { | ||
/** | ||
* Toggle an ordered list | ||
*/ | ||
toggleOrderedList: () => Command; | ||
}>; | ||
declare module '@tiptap/core' { | ||
interface AllExtensions { | ||
OrderedList: typeof OrderedList; | ||
interface Commands { | ||
orderedList: { | ||
/** | ||
* Toggle an ordered list | ||
*/ | ||
toggleOrderedList: () => Command; | ||
}; | ||
} | ||
} | ||
export declare const inputRegex: RegExp; | ||
export declare const OrderedList: Node<OrderedListOptions>; |
@@ -43,5 +43,2 @@ 'use strict'; | ||
return { | ||
/** | ||
* Toggle an ordered list | ||
*/ | ||
toggleOrderedList: () => ({ commands }) => { | ||
@@ -48,0 +45,0 @@ return commands.toggleList('orderedList', 'listItem'); |
@@ -39,5 +39,2 @@ import { Node, mergeAttributes } from '@tiptap/core'; | ||
return { | ||
/** | ||
* Toggle an ordered list | ||
*/ | ||
toggleOrderedList: () => ({ commands }) => { | ||
@@ -44,0 +41,0 @@ return commands.toggleList('orderedList', 'listItem'); |
@@ -42,5 +42,2 @@ (function (global, factory) { | ||
return { | ||
/** | ||
* Toggle an ordered list | ||
*/ | ||
toggleOrderedList: () => ({ commands }) => { | ||
@@ -47,0 +44,0 @@ return commands.toggleList('orderedList', 'listItem'); |
{ | ||
"name": "@tiptap/extension-ordered-list", | ||
"description": "ordered 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 { | ||
orderedList: { | ||
/** | ||
* Toggle an ordered list | ||
*/ | ||
toggleOrderedList: () => Command, | ||
} | ||
} | ||
} | ||
export const inputRegex = /^(\d+)\.\s$/ | ||
export const OrderedList = Node.create({ | ||
export const OrderedList = Node.create<OrderedListOptions>({ | ||
name: 'orderedList', | ||
defaultOptions: <OrderedListOptions>{ | ||
defaultOptions: { | ||
HTMLAttributes: {}, | ||
@@ -55,6 +66,3 @@ }, | ||
return { | ||
/** | ||
* Toggle an ordered list | ||
*/ | ||
toggleOrderedList: (): Command => ({ commands }) => { | ||
toggleOrderedList: () => ({ commands }) => { | ||
return commands.toggleList('orderedList', 'listItem') | ||
@@ -82,7 +90,1 @@ }, | ||
}) | ||
declare module '@tiptap/core' { | ||
interface AllExtensions { | ||
OrderedList: typeof OrderedList, | ||
} | ||
} |
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
462838
601