prosemirror-trailing-node
Advanced tools
Comparing version 0.0.0-pr2166.1 to 0.0.0-pr2166.2
@@ -0,1 +1,41 @@ | ||
import { Plugin as Plugin_2 } from 'prosemirror-state'; | ||
/** | ||
* This creates the plugin for trailing node. | ||
* | ||
* ```ts | ||
* import { schema } from 'prosemirror-schema-basic'; | ||
* import { trailingNode } from 'prosemirror-trailing-node'; | ||
* | ||
* // Include the plugin in the created editor state. | ||
* const state = EditorState.create({ | ||
* schema, | ||
* plugins: [trailingNode({ ignoredNodes: [], nodeName: 'paragraph' })], | ||
* }); | ||
* ``` | ||
* | ||
* @param options - the options that can be provided to this plugin. | ||
*/ | ||
declare function trailingNode(options?: TrailingNodePluginOptions): Plugin_2<boolean>; | ||
export { trailingNode } | ||
export { trailingNode as trailingNode_alias_1 } | ||
declare interface TrailingNodePluginOptions { | ||
/** | ||
* The node to create at the end of the document. | ||
* | ||
* **Note**: the nodeName will always be added to the `ignoredNodes` lists to | ||
* prevent an infinite loop. | ||
* | ||
* @defaultValue 'paragraph' | ||
*/ | ||
nodeName?: string; | ||
/** | ||
* The nodes for which this rule should not apply. | ||
*/ | ||
ignoredNodes?: string[]; | ||
} | ||
export { TrailingNodePluginOptions } | ||
export { TrailingNodePluginOptions as TrailingNodePluginOptions_alias_1 } | ||
export { } |
@@ -1,1 +0,2 @@ | ||
export {}; | ||
export { TrailingNodePluginOptions } from './_tsup-dts-rollup'; | ||
export { trailingNode } from './_tsup-dts-rollup'; |
@@ -1,2 +0,2 @@ | ||
// packages/prosemirror-trailing-node/src/trailing-node-plugin.ts | ||
// src/trailing-node-plugin.ts | ||
import { Plugin, PluginKey } from "prosemirror-state"; | ||
@@ -3,0 +3,0 @@ import { includes, uniqueArray } from "@remirror/core-helpers"; |
{ | ||
"name": "prosemirror-trailing-node", | ||
"version": "0.0.0-pr2166.1", | ||
"version": "0.0.0-pr2166.2", | ||
"description": "A trailing node plugin for the prosemirror editor.", | ||
@@ -33,7 +33,8 @@ "homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/prosemirror-trailing-node", | ||
"dependencies": { | ||
"@remirror/core-constants": "0.0.0-pr2166.1", | ||
"@remirror/core-helpers": "0.0.0-pr2166.1", | ||
"@remirror/core-constants": "0.0.0-pr2166.2", | ||
"@remirror/core-helpers": "0.0.0-pr2166.2", | ||
"escape-string-regexp": "^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"@remirror/cli": "0.0.0-pr2166.2", | ||
"prosemirror-model": "^1.19.2", | ||
@@ -54,3 +55,6 @@ "prosemirror-state": "^1.4.3", | ||
"sizeLimit": "10 KB" | ||
}, | ||
"scripts": { | ||
"build": "remirror-cli build" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51438
283
4
+ Added@remirror/core-constants@0.0.0-pr2166.2(transitive)
+ Added@remirror/core-helpers@0.0.0-pr2166.2(transitive)
+ Added@remirror/types@0.0.0-pr2166.2(transitive)
- Removed@remirror/core-constants@0.0.0-pr2166.1(transitive)
- Removed@remirror/core-helpers@0.0.0-pr2166.1(transitive)
- Removed@remirror/types@0.0.0-pr2166.1(transitive)