Socket
Socket
Sign inDemoInstall

@tiptap/extension-bold

Package Overview
Dependencies
Maintainers
2
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-bold - 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-bold@2.0.0-alpha.10...@tiptap/extension-bold@2.0.0-alpha.11) (2021-02-16)
**Note:** Version bump only for package @tiptap/extension-bold
# [2.0.0-alpha.10](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-bold@2.0.0-alpha.9...@tiptap/extension-bold@2.0.0-alpha.10) (2021-02-07)

@@ -8,0 +16,0 @@

38

dist/packages/extension-bold/src/bold.d.ts

@@ -7,2 +7,20 @@ import { Command, Mark } from '@tiptap/core';

}
declare module '@tiptap/core' {
interface Commands {
bold: {
/**
* Set a bold mark
*/
setBold: () => Command;
/**
* Toggle a bold mark
*/
toggleBold: () => Command;
/**
* Unset a bold mark
*/
unsetBold: () => Command;
};
}
}
export declare const starInputRegex: RegExp;

@@ -12,20 +30,2 @@ export declare const starPasteRegex: RegExp;

export declare const underscorePasteRegex: RegExp;
export declare const Bold: Mark<BoldOptions, {
/**
* Set a bold mark
*/
setBold: () => Command;
/**
* Toggle a bold mark
*/
toggleBold: () => Command;
/**
* Unset a bold mark
*/
unsetBold: () => Command;
}>;
declare module '@tiptap/core' {
interface AllExtensions {
Bold: typeof Bold;
}
}
export declare const Bold: Mark<BoldOptions>;

@@ -36,17 +36,8 @@ 'use strict';

return {
/**
* Set a bold mark
*/
setBold: () => ({ commands }) => {
return commands.setMark('bold');
},
/**
* Toggle a bold mark
*/
toggleBold: () => ({ commands }) => {
return commands.toggleMark('bold');
},
/**
* Unset a bold mark
*/
unsetBold: () => ({ commands }) => {

@@ -53,0 +44,0 @@ return commands.unsetMark('bold');

@@ -32,17 +32,8 @@ import { Mark, mergeAttributes, markInputRule, markPasteRule } from '@tiptap/core';

return {
/**
* Set a bold mark
*/
setBold: () => ({ commands }) => {
return commands.setMark('bold');
},
/**
* Toggle a bold mark
*/
toggleBold: () => ({ commands }) => {
return commands.toggleMark('bold');
},
/**
* Unset a bold mark
*/
unsetBold: () => ({ commands }) => {

@@ -49,0 +40,0 @@ return commands.unsetMark('bold');

@@ -36,17 +36,8 @@ (function (global, factory) {

return {
/**
* Set a bold mark
*/
setBold: () => ({ commands }) => {
return commands.setMark('bold');
},
/**
* Toggle a bold mark
*/
toggleBold: () => ({ commands }) => {
return commands.toggleMark('bold');
},
/**
* Unset a bold mark
*/
unsetBold: () => ({ commands }) => {

@@ -53,0 +44,0 @@ return commands.unsetMark('bold');

{
"name": "@tiptap/extension-bold",
"description": "bold extension for tiptap",
"version": "2.0.0-alpha.10",
"version": "2.0.0-alpha.11",
"homepage": "https://tiptap.dev",

@@ -27,3 +27,3 @@ "keywords": [

},
"gitHead": "6bdeb4615c7b6afba4a2fcac4e3c35d7a7c0030a"
"gitHead": "71d8fbbcb1eacd664bb6992e0086a589e4684e69"
}

@@ -15,2 +15,21 @@ import {

declare module '@tiptap/core' {
interface Commands {
bold: {
/**
* Set a bold mark
*/
setBold: () => Command,
/**
* Toggle a bold mark
*/
toggleBold: () => Command,
/**
* Unset a bold mark
*/
unsetBold: () => Command,
}
}
}
export const starInputRegex = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/gm

@@ -21,6 +40,6 @@ export const starPasteRegex = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/gm

export const Bold = Mark.create({
export const Bold = Mark.create<BoldOptions>({
name: 'bold',
defaultOptions: <BoldOptions>{
defaultOptions: {
HTMLAttributes: {},

@@ -51,18 +70,9 @@ },

return {
/**
* Set a bold mark
*/
setBold: (): Command => ({ commands }) => {
setBold: () => ({ commands }) => {
return commands.setMark('bold')
},
/**
* Toggle a bold mark
*/
toggleBold: (): Command => ({ commands }) => {
toggleBold: () => ({ commands }) => {
return commands.toggleMark('bold')
},
/**
* Unset a bold mark
*/
unsetBold: (): Command => ({ commands }) => {
unsetBold: () => ({ commands }) => {
return commands.unsetMark('bold')

@@ -93,7 +103,1 @@ },

})
declare module '@tiptap/core' {
interface AllExtensions {
Bold: typeof Bold,
}
}

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