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

prosemirror-trailing-node

Package Overview
Dependencies
Maintainers
1
Versions
208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-trailing-node - npm Package Compare versions

Comparing version 0.0.0-pr1966.1 to 0.0.0-pr2100.1

./dist/prosemirror-trailing-node.cjs

3

dist/prosemirror-trailing-node.js

@@ -6,3 +6,3 @@ // packages/prosemirror-trailing-node/src/trailing-node-plugin.ts

function trailingNode(options) {
const { ignoredNodes = [], nodeName = "paragraph" } = options != null ? options : {};
const { ignoredNodes = [], nodeName = "paragraph" } = options ?? {};
const ignoredNodeNames = uniqueArray([...ignoredNodes, nodeName]);

@@ -46,2 +46,1 @@ let type;

};
//# sourceMappingURL=prosemirror-trailing-node.js.map
{
"name": "prosemirror-trailing-node",
"version": "0.0.0-pr1966.1",
"version": "0.0.0-pr2100.1",
"description": "A trailing node plugin for the prosemirror editor.",

@@ -19,5 +19,5 @@ "homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/prosemirror-trailing-node",

".": {
"types": "./dist/prosemirror-trailing-node.d.ts",
"import": "./dist/prosemirror-trailing-node.js",
"require": "./dist/prosemirror-trailing-node.cjs",
"types": "./dist-types/index.d.ts"
"require": "./dist/prosemirror-trailing-node.cjs"
},

@@ -28,3 +28,3 @@ "./package.json": "./package.json"

"module": "./dist/prosemirror-trailing-node.js",
"types": "./dist-types/index.d.ts",
"types": "./dist/prosemirror-trailing-node.d.ts",
"files": [

@@ -35,25 +35,21 @@ "dist",

"dependencies": {
"@babel/runtime": "^7.13.10",
"@remirror/core-constants": "0.0.0-pr1966.1",
"@remirror/core-helpers": "0.0.0-pr1966.1",
"@babel/runtime": "^7.22.3",
"@remirror/core-constants": "0.0.0-pr2100.1",
"@remirror/core-helpers": "0.0.0-pr2100.1",
"escape-string-regexp": "^4.0.0"
},
"devDependencies": {
"prosemirror-model": "^1.18.3",
"prosemirror-state": "^1.4.2",
"prosemirror-view": "^1.29.1"
"prosemirror-model": "^1.19.2",
"prosemirror-state": "^1.4.3",
"prosemirror-view": "^1.31.3"
},
"peerDependencies": {
"prosemirror-model": "^1",
"prosemirror-state": "^1",
"prosemirror-view": "^1"
"prosemirror-model": "^1.19.0",
"prosemirror-state": "^1.4.2",
"prosemirror-view": "^1.31.2"
},
"peerDependenciesMeta": {},
"publishConfig": {
"access": "public"
},
"@remirror": {
"sizeLimit": "10 KB"
},
"readme": "# prosemirror-trailing-node\n\n> \"A trailing node plugin for the prosemirror editor.\n\n[![Version][version]][npm] [![Weekly Downloads][downloads-badge]][npm] [![Bundled size][size-badge]][size] [![Typed Codebase][typescript]](#) [![MIT License][license]](#)\n\n[version]: https://flat.badgen.net/npm/v/prosemirror-trailing-node\n[npm]: https://npmjs.com/package/prosemirror-trailing-node\n[license]: https://flat.badgen.net/badge/license/MIT/purple\n[size]: https://bundlephobia.com/result?p=prosemirror-trailing-node\n[size-badge]: https://flat.badgen.net/bundlephobia/minzip/prosemirror-trailing-node\n[typescript]: https://flat.badgen.net/badge/icon/TypeScript?icon=typescript&label\n[downloads-badge]: https://badgen.net/npm/dw/prosemirror-trailing-node/red?icon=npm\n\n<br />\n\n## The problem\n\nYou want your editor to always have allow exiting the current non-empty node.\n\n## This solution\n\n`prosemirror-trailing-node` allows you to set a default node that will be appended to the end of the document.\n\n<br />\n\n## Installation\n\n```bash\n# yarn\nyarn add prosemirror-trailing-node prosemirror-view prosemirror-state prosemirror-keymap\n\n# pnpm\npnpm add prosemirror-trailing-node prosemirror-view prosemirror-state prosemirror-keymap\n\n# npm\nnpm install prosemirror-trailing-node prosemirror-view prosemirror-state prosemirror-keymap\n```\n\nThe installation requires the installation of the peer dependencies `prosemirror-view`, `prosemirror-state` and `prosemirror-model` to avoid version clashes.\n\n<br />\n\n## Getting Started\n\n```ts\nimport { schema } from 'prosemirror-schema-basic';\nimport { trailingNode } from 'prosemirror-trailing-node';\n\n// Include the plugin in the created editor state.\nconst state = EditorState.create({\n schema,\n plugins: [trailingNode({ ignoredNodes: [], nodeName: 'paragraph' })],\n});\n```\n"
}
}

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