New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tiptap/extension-mention

Package Overview
Dependencies
Maintainers
5
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/extension-mention - npm Package Compare versions

Comparing version 3.0.0-next.1 to 3.0.0-next.2

5

dist/index.js

@@ -8,2 +8,3 @@ // src/mention.ts

name: "mention",
priority: 101,
addOptions() {

@@ -29,3 +30,3 @@ return {

command: ({ editor, range, props }) => {
var _a, _b;
var _a, _b, _c;
const nodeAfter = editor.view.state.selection.$to.nodeAfter;

@@ -46,3 +47,3 @@ const overrideSpace = (_a = nodeAfter == null ? void 0 : nodeAfter.text) == null ? void 0 : _a.startsWith(" ");

]).run();
(_b = window.getSelection()) == null ? void 0 : _b.collapseToEnd();
(_c = (_b = editor.view.dom.ownerDocument.defaultView) == null ? void 0 : _b.getSelection()) == null ? void 0 : _c.collapseToEnd();
},

@@ -49,0 +50,0 @@ allow: ({ state, range }) => {

8

package.json
{
"name": "@tiptap/extension-mention",
"description": "mention extension for tiptap",
"version": "3.0.0-next.1",
"version": "3.0.0-next.2",
"homepage": "https://tiptap.dev",

@@ -31,5 +31,5 @@ "keywords": [

"devDependencies": {
"@tiptap/core": "^3.0.0-next.1",
"@tiptap/pm": "^3.0.0-next.1",
"@tiptap/suggestion": "^3.0.0-next.1"
"@tiptap/core": "^3.0.0-next.2",
"@tiptap/pm": "^3.0.0-next.2",
"@tiptap/suggestion": "^3.0.0-next.2"
},

@@ -36,0 +36,0 @@ "peerDependencies": {

@@ -80,2 +80,4 @@ import { mergeAttributes, Node } from '@tiptap/core'

priority: 101,
addOptions() {

@@ -123,3 +125,4 @@ return {

window.getSelection()?.collapseToEnd()
// get reference to `window` object from editor element, to support cross-frame JS usage
editor.view.dom.ownerDocument.defaultView?.getSelection()?.collapseToEnd()
},

@@ -126,0 +129,0 @@ allow: ({ state, range }) => {

Sorry, the diff of this file is not supported yet

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