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

prosemirror-flat-list

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-flat-list - npm Package Compare versions

Comparing version 0.0.21 to 0.0.22

23

./dist/prosemirror-flat-list.js

@@ -1010,11 +1010,17 @@ // src/commands/dedent-list.ts

}),
wrappingListInputRule(orderedRegexp, {
type: "ordered",
collapsed: false
wrappingListInputRule(orderedRegexp, (match) => {
const order = parseInteger(match[1]);
return {
type: "ordered",
collapsed: false,
order: order != null && order >= 2 ? order : null
};
}),
wrappingListInputRule(taskRegexp, (match) => ({
type: "task",
checked: ["x", "X"].includes(match[1]),
collapsed: false
})),
wrappingListInputRule(taskRegexp, (match) => {
return {
type: "task",
checked: ["x", "X"].includes(match[1]),
collapsed: false
};
}),
wrappingListInputRule(toggleRegexp, {

@@ -1196,4 +1202,5 @@ type: "toggle"

migrateDocJSON,
parseInteger,
protectCollapsed,
wrappingListInputRule
};

@@ -246,2 +246,5 @@ import { Attrs } from 'prosemirror-model';

/** @internal */
export declare function parseInteger(attr: string | null | undefined): number | null;
/** @public */

@@ -248,0 +251,0 @@ export declare interface ProsemirrorNodeJSON {

@@ -1010,11 +1010,17 @@ // src/commands/dedent-list.ts

}),
wrappingListInputRule(orderedRegexp, {
type: "ordered",
collapsed: false
wrappingListInputRule(orderedRegexp, (match) => {
const order = parseInteger(match[1]);
return {
type: "ordered",
collapsed: false,
order: order != null && order >= 2 ? order : null
};
}),
wrappingListInputRule(taskRegexp, (match) => ({
type: "task",
checked: ["x", "X"].includes(match[1]),
collapsed: false
})),
wrappingListInputRule(taskRegexp, (match) => {
return {
type: "task",
checked: ["x", "X"].includes(match[1]),
collapsed: false
};
}),
wrappingListInputRule(toggleRegexp, {

@@ -1196,4 +1202,5 @@ type: "toggle"

migrateDocJSON,
parseInteger,
protectCollapsed,
wrappingListInputRule
};
{
"name": "prosemirror-flat-list",
"type": "module",
"version": "0.0.21",
"version": "0.0.22",
"description": "",

@@ -6,0 +6,0 @@ "author": "ocavue <ocavue@gmail.com>",

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