Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tiptap/extension-hard-break

Package Overview
Dependencies
Maintainers
2
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-hard-break - npm Package Compare versions

Comparing version 2.0.0-alpha.10 to 2.0.0-alpha.11

8

CHANGELOG.md

@@ -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 @@

16

dist/packages/extension-hard-break/src/hard-break.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc