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.3.15 to 0.4.0

35

dist/prosemirror-flat-list.d.ts

@@ -148,2 +148,24 @@ import type { Attrs } from 'prosemirror-model';

* Returns a command function that wraps the selection in a list with the given
* type an attributes, or change the list kind if the selection is already in
* another kind of list, or unwrap the selected list if otherwise.
*
* @public
*/
export declare function createToggleListCommand<T extends ListAttributes = ListAttributes>(
/**
* The list node attributes to toggle.
*
* @public
*/
attrs: T): Command;
/**
* Returns a command function that unwraps the list around the selection.
*
* @public
*/
export declare function createUnwrapListCommand(options?: UnwrapListOptions): Command;
/**
* Returns a command function that wraps the selection in a list with the given
* type an attributes.

@@ -154,3 +176,4 @@ *

export declare function createWrapInListCommand<T extends ListAttributes = ListAttributes>(
/** The list node attributes or a callback function to take the current
/**
* The list node attributes or a callback function to take the current
* selection block range and return list node attributes. If this callback

@@ -480,2 +503,12 @@ * function returns null, the command won't do anything.

/**
* @public
*/
export declare interface UnwrapListOptions {
/**
* If given, only this kind of list will be unwrap.
*/
kind?: string;
}
/**
* Reduce the open depth of a slice if it only contains a single list node. This

@@ -482,0 +515,0 @@ * will improve the copy/paste experience.

2

dist/tsdoc-metadata.json

@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.

"packageName": "@microsoft/api-extractor",
"packageVersion": "7.36.1"
"packageVersion": "7.36.3"
}
]
}
{
"name": "prosemirror-flat-list",
"type": "module",
"version": "0.3.15",
"version": "0.4.0",
"description": "Powerful list support for ProseMirror",

@@ -39,10 +39,10 @@ "author": "ocavue <ocavue@gmail.com>",

"prosemirror-inputrules": "^1.2.1",
"prosemirror-model": "^1.19.2",
"prosemirror-model": "^1.19.3",
"prosemirror-state": "^1.4.3",
"prosemirror-transform": "^1.7.3",
"prosemirror-view": "^1.31.5"
"prosemirror-view": "^1.31.6"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.36.1",
"@remirror/core": "^2.0.17",
"@microsoft/api-extractor": "^7.36.3",
"@remirror/core": "^2.0.18",
"@remirror/extension-blockquote": "^2.0.14",

@@ -54,4 +54,4 @@ "@remirror/extension-heading": "^2.0.14",

"@types/dedent": "^0.7.0",
"@types/node": "^18.16.19",
"@vitest/coverage-v8": "^0.32.4",
"@types/node": "^18.17.0",
"@vitest/coverage-v8": "^0.33.0",
"dedent": "^0.7.0",

@@ -63,3 +63,3 @@ "execa": "^7.1.1",

"npm-run-all": "^4.1.5",
"postcss": "^8.4.24",
"postcss": "^8.4.27",
"postcss-nesting": "^11.3.0",

@@ -76,4 +76,4 @@ "react": "^18.2.0",

"unified": "^10.1.2",
"vite": "^4.3.9",
"vitest": "^0.32.4"
"vite": "^4.4.6",
"vitest": "^0.33.0"
},

@@ -80,0 +80,0 @@ "typedocOptions": {

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 too big to display

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