@tiptap/extension-hard-break
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-hard-break@2.0.0-alpha.10...@tiptap/extension-hard-break@2.0.0-alpha.11) (2021-02-16) | ||
**Note:** Version bump only for package @tiptap/extension-hard-break | ||
# [2.0.0-alpha.10](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-hard-break@2.0.0-alpha.9...@tiptap/extension-hard-break@2.0.0-alpha.10) (2021-02-07) | ||
@@ -8,0 +16,0 @@ |
@@ -7,12 +7,12 @@ import { Command, Node } from '@tiptap/core'; | ||
} | ||
export declare const HardBreak: Node<HardBreakOptions, { | ||
/** | ||
* Add a hard break | ||
*/ | ||
setHardBreak: () => Command; | ||
}>; | ||
declare module '@tiptap/core' { | ||
interface AllExtensions { | ||
HardBreak: typeof HardBreak; | ||
interface Commands { | ||
hardBreak: { | ||
/** | ||
* Add a hard break | ||
*/ | ||
setHardBreak: () => Command; | ||
}; | ||
} | ||
} | ||
export declare const HardBreak: Node<HardBreakOptions>; |
@@ -11,3 +11,2 @@ 'use strict'; | ||
defaultOptions: { | ||
languageClassPrefix: 'language-', | ||
HTMLAttributes: {}, | ||
@@ -28,5 +27,2 @@ }, | ||
return { | ||
/** | ||
* Add a hard break | ||
*/ | ||
setHardBreak: () => ({ commands, state, dispatch }) => { | ||
@@ -33,0 +29,0 @@ return commands.first([ |
@@ -7,3 +7,2 @@ import { Node, mergeAttributes } from '@tiptap/core'; | ||
defaultOptions: { | ||
languageClassPrefix: 'language-', | ||
HTMLAttributes: {}, | ||
@@ -24,5 +23,2 @@ }, | ||
return { | ||
/** | ||
* Add a hard break | ||
*/ | ||
setHardBreak: () => ({ commands, state, dispatch }) => { | ||
@@ -29,0 +25,0 @@ return commands.first([ |
@@ -10,3 +10,2 @@ (function (global, factory) { | ||
defaultOptions: { | ||
languageClassPrefix: 'language-', | ||
HTMLAttributes: {}, | ||
@@ -27,5 +26,2 @@ }, | ||
return { | ||
/** | ||
* Add a hard break | ||
*/ | ||
setHardBreak: () => ({ commands, state, dispatch }) => { | ||
@@ -32,0 +28,0 @@ return commands.first([ |
{ | ||
"name": "@tiptap/extension-hard-break", | ||
"description": "hard break extension for tiptap", | ||
"version": "2.0.0-alpha.10", | ||
"version": "2.0.0-alpha.11", | ||
"homepage": "https://tiptap.dev", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "6bdeb4615c7b6afba4a2fcac4e3c35d7a7c0030a" | ||
"gitHead": "71d8fbbcb1eacd664bb6992e0086a589e4684e69" | ||
} |
@@ -10,7 +10,17 @@ import { Command, Node, mergeAttributes } from '@tiptap/core' | ||
export const HardBreak = Node.create({ | ||
declare module '@tiptap/core' { | ||
interface Commands { | ||
hardBreak: { | ||
/** | ||
* Add a hard break | ||
*/ | ||
setHardBreak: () => Command, | ||
} | ||
} | ||
} | ||
export const HardBreak = Node.create<HardBreakOptions>({ | ||
name: 'hardBreak', | ||
defaultOptions: <HardBreakOptions>{ | ||
languageClassPrefix: 'language-', | ||
defaultOptions: { | ||
HTMLAttributes: {}, | ||
@@ -37,6 +47,3 @@ }, | ||
return { | ||
/** | ||
* Add a hard break | ||
*/ | ||
setHardBreak: (): Command => ({ commands, state, dispatch }) => { | ||
setHardBreak: () => ({ commands, state, dispatch }) => { | ||
return commands.first([ | ||
@@ -63,7 +70,1 @@ () => exitCode(state, dispatch), | ||
}) | ||
declare module '@tiptap/core' { | ||
interface AllExtensions { | ||
HardBreak: typeof HardBreak, | ||
} | ||
} |
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
490470
563
6
63