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

@tiptap/extension-ordered-list

Package Overview
Dependencies
Maintainers
2
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-ordered-list - npm Package Compare versions

Comparing version 2.0.0-beta.25 to 2.0.0-beta.26

1

dist/packages/extension-ordered-list/src/ordered-list.d.ts
import { Node } from '@tiptap/core';
export interface OrderedListOptions {
itemTypeName: string;
HTMLAttributes: Record<string, any>;

@@ -4,0 +5,0 @@ }

7

dist/tiptap-extension-ordered-list.cjs.js

@@ -12,2 +12,3 @@ 'use strict';

return {
itemTypeName: 'listItem',
HTMLAttributes: {},

@@ -17,3 +18,5 @@ };

group: 'block list',
content: 'listItem+',
content() {
return `${this.options.itemTypeName}+`;
},
addAttributes() {

@@ -47,3 +50,3 @@ return {

toggleOrderedList: () => ({ commands }) => {
return commands.toggleList(this.name, 'listItem');
return commands.toggleList(this.name, this.options.itemTypeName);
},

@@ -50,0 +53,0 @@ };

@@ -8,2 +8,3 @@ import { Node, mergeAttributes, wrappingInputRule } from '@tiptap/core';

return {
itemTypeName: 'listItem',
HTMLAttributes: {},

@@ -13,3 +14,5 @@ };

group: 'block list',
content: 'listItem+',
content() {
return `${this.options.itemTypeName}+`;
},
addAttributes() {

@@ -43,3 +46,3 @@ return {

toggleOrderedList: () => ({ commands }) => {
return commands.toggleList(this.name, 'listItem');
return commands.toggleList(this.name, this.options.itemTypeName);
},

@@ -46,0 +49,0 @@ };

@@ -12,2 +12,3 @@ (function (global, factory) {

return {
itemTypeName: 'listItem',
HTMLAttributes: {},

@@ -17,3 +18,5 @@ };

group: 'block list',
content: 'listItem+',
content() {
return `${this.options.itemTypeName}+`;
},
addAttributes() {

@@ -47,3 +50,3 @@ return {

toggleOrderedList: () => ({ commands }) => {
return commands.toggleList(this.name, 'listItem');
return commands.toggleList(this.name, this.options.itemTypeName);
},

@@ -50,0 +53,0 @@ };

{
"name": "@tiptap/extension-ordered-list",
"description": "ordered list extension for tiptap",
"version": "2.0.0-beta.25",
"version": "2.0.0-beta.26",
"homepage": "https://tiptap.dev",

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

},
"gitHead": "270543995c92243fc27c4a688af6a93033fb4b7e"
"gitHead": "20876f7481f1a574541471b8f4b3be829deea574"
}
import { Node, mergeAttributes, wrappingInputRule } from '@tiptap/core'
export interface OrderedListOptions {
itemTypeName: string,
HTMLAttributes: Record<string, any>,

@@ -25,2 +26,3 @@ }

return {
itemTypeName: 'listItem',
HTMLAttributes: {},

@@ -32,3 +34,5 @@ }

content: 'listItem+',
content() {
return `${this.options.itemTypeName}+`
},

@@ -67,3 +71,3 @@ addAttributes() {

toggleOrderedList: () => ({ commands }) => {
return commands.toggleList(this.name, 'listItem')
return commands.toggleList(this.name, this.options.itemTypeName)
},

@@ -70,0 +74,0 @@ }

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