prosemirror-trailing-node
Advanced tools
Comparing version 0.0.0-pr1966.1 to 0.0.0-pr2100.1
@@ -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
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
49906
249
+ Added@ampproject/remapping@2.3.0(transitive)
+ Added@babel/code-frame@7.26.2(transitive)
+ Added@babel/compat-data@7.26.2(transitive)
+ Added@babel/core@7.26.0(transitive)
+ Added@babel/generator@7.26.2(transitive)
+ Added@babel/helper-compilation-targets@7.25.9(transitive)
+ Added@babel/helper-module-imports@7.25.9(transitive)
+ Added@babel/helper-module-transforms@7.26.0(transitive)
+ Added@babel/helper-plugin-utils@7.25.9(transitive)
+ Added@babel/helper-simple-access@7.25.9(transitive)
+ Added@babel/helper-string-parser@7.25.9(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@babel/helper-validator-option@7.25.9(transitive)
+ Added@babel/helpers@7.26.0(transitive)
+ Added@babel/parser@7.26.2(transitive)
+ Added@babel/plugin-proposal-export-namespace-from@7.18.9(transitive)
+ Added@babel/plugin-syntax-dynamic-import@7.8.3(transitive)
+ Added@babel/plugin-syntax-export-namespace-from@7.8.3(transitive)
+ Added@babel/plugin-transform-modules-commonjs@7.25.9(transitive)
+ Added@babel/template@7.25.9(transitive)
+ Added@babel/traverse@7.25.9(transitive)
+ Added@babel/types@7.26.0(transitive)
+ Added@jridgewell/gen-mapping@0.3.5(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Added@linaria/core@4.2.10(transitive)
+ Added@linaria/logger@4.5.0(transitive)
+ Added@linaria/utils@4.5.3(transitive)
+ Added@remirror/core-constants@0.0.0-pr2100.1(transitive)
+ Added@remirror/core-helpers@0.0.0-pr2100.1(transitive)
+ Added@remirror/types@0.0.0-pr2100.1(transitive)
+ Addedbabel-merge@3.0.0(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedbrowserslist@4.24.2(transitive)
+ Addedcaniuse-lite@1.0.30001683(transitive)
+ Addedconvert-source-map@2.0.0(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addeddeepmerge@2.2.1(transitive)
+ Addedelectron-to-chromium@1.5.64(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedfind-up@5.0.0(transitive)
+ Addedgensync@1.0.0-beta.2(transitive)
+ Addedglobals@11.12.0(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjsesc@3.0.2(transitive)
+ Addedjson5@2.2.3(transitive)
+ Addedlocate-path@6.0.0(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedms@2.1.3(transitive)
+ Addednode-releases@2.0.18(transitive)
+ Addedp-limit@3.1.0(transitive)
+ Addedp-locate@5.0.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedtype-fest@3.13.1(transitive)
+ Addedupdate-browserslist-db@1.1.1(transitive)
+ Addedyallist@3.1.1(transitive)
+ Addedyocto-queue@0.1.0(transitive)
- Removed@linaria/core@3.0.0-beta.13(transitive)
- Removed@remirror/core-constants@0.0.0-pr1966.1(transitive)
- Removed@remirror/core-helpers@0.0.0-pr1966.1(transitive)
- Removed@remirror/types@0.0.0-pr1966.1(transitive)
- Removedtype-fest@2.19.0(transitive)
Updated@babel/runtime@^7.22.3