New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tiptap/extension-list-item

Package Overview
Dependencies
Maintainers
6
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 3.0.0-next.4 to 3.0.0-next.5

31

dist/index.d.ts

@@ -1,29 +0,2 @@

import { Node } from '@tiptap/core';
interface ListItemOptions {
/**
* The HTML attributes for a list item node.
* @default {}
* @example { class: 'foo' }
*/
HTMLAttributes: Record<string, any>;
/**
* The node type for bulletList nodes
* @default 'bulletList'
* @example 'myCustomBulletList'
*/
bulletListTypeName: string;
/**
* The node type for orderedList nodes
* @default 'orderedList'
* @example 'myCustomOrderedList'
*/
orderedListTypeName: string;
}
/**
* This extension allows you to create list items.
* @see https://www.tiptap.dev/api/nodes/list-item
*/
declare const ListItem: Node<ListItemOptions, any>;
export { ListItem, type ListItemOptions, ListItem as default };
import { ListItem } from '@tiptap/extension-list';
export { ListItem, ListItemOptions, ListItem as default } from '@tiptap/extension-list';

@@ -1,39 +0,10 @@

// src/list-item.ts
import { mergeAttributes, Node } from "@tiptap/core";
var ListItem = Node.create({
name: "listItem",
addOptions() {
return {
HTMLAttributes: {},
bulletListTypeName: "bulletList",
orderedListTypeName: "orderedList"
};
},
content: "paragraph block*",
defining: true,
parseHTML() {
return [
{
tag: "li"
}
];
},
renderHTML({ HTMLAttributes }) {
return ["li", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
},
addKeyboardShortcuts() {
return {
Enter: () => this.editor.commands.splitListItem(this.name),
Tab: () => this.editor.commands.sinkListItem(this.name),
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
};
}
});
// src/index.ts
import { ListItem } from "@tiptap/extension-list";
import { ListItem as ListItem2, ListItemOptions } from "@tiptap/extension-list";
var index_default = ListItem;
export {
ListItem,
ListItem2 as ListItem,
ListItemOptions,
index_default as default
};
//# sourceMappingURL=index.js.map

2

LICENSE.md
MIT License
Copyright (c) 2024, Tiptap GmbH
Copyright (c) 2025, Tiptap GmbH

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

{
"name": "@tiptap/extension-list-item",
"description": "list item extension for tiptap",
"version": "3.0.0-next.4",
"version": "3.0.0-next.5",
"homepage": "https://tiptap.dev",

@@ -34,6 +34,6 @@ "keywords": [

"devDependencies": {
"@tiptap/core": "^3.0.0-next.4"
"@tiptap/extension-list": "^3.0.0-next.5"
},
"peerDependencies": {
"@tiptap/core": "^3.0.0-next.1"
"@tiptap/extension-list": "^3.0.0-next.4"
},

@@ -40,0 +40,0 @@ "repository": {

@@ -1,5 +0,5 @@

import { ListItem } from './list-item.js'
import { ListItem } from '@tiptap/extension-list'
export * from './list-item.js'
export { ListItem, ListItemOptions } from '@tiptap/extension-list'
export default ListItem

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