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

@tiptap/suggestion

Package Overview
Dependencies
Maintainers
2
Versions
239
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/suggestion - npm Package Compare versions

Comparing version 2.0.0-beta.55 to 2.0.0-beta.56

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [2.0.0-beta.56](https://github.com/ueberdosis/tiptap/compare/@tiptap/suggestion@2.0.0-beta.55...@tiptap/suggestion@2.0.0-beta.56) (2021-05-18)
### Bug Fixes
* add support for using suggestions at top level, fix [#1340](https://github.com/ueberdosis/tiptap/issues/1340) ([0d9e488](https://github.com/ueberdosis/tiptap/commit/0d9e48883641d1c4aeeb9c9aa941e2e6419b2e7a))
# [2.0.0-beta.55](https://github.com/ueberdosis/tiptap/compare/@tiptap/suggestion@2.0.0-beta.54...@tiptap/suggestion@2.0.0-beta.55) (2021-05-17)

@@ -8,0 +19,0 @@

9

dist/tiptap-suggestion.cjs.js

@@ -10,6 +10,2 @@ 'use strict';

const { char, allowSpaces, startOfLine, $position, } = config;
// cancel if top level node
if ($position.depth <= 0) {
return null;
}
// Matching expressions used for later

@@ -22,3 +18,6 @@ const escapedChar = `\\${char}`;

: new RegExp(`${prefix}(?:^)?${escapedChar}[^\\s${escapedChar}]*`, 'gm');
const textFrom = $position.before();
const isTopLevelNode = $position.depth <= 0;
const textFrom = isTopLevelNode
? 0
: $position.before();
const textTo = $position.pos;

@@ -25,0 +24,0 @@ const text = $position.doc.textBetween(textFrom, textTo, '\0', '\0');

@@ -6,6 +6,2 @@ import { Plugin, PluginKey } from 'prosemirror-state';

const { char, allowSpaces, startOfLine, $position, } = config;
// cancel if top level node
if ($position.depth <= 0) {
return null;
}
// Matching expressions used for later

@@ -18,3 +14,6 @@ const escapedChar = `\\${char}`;

: new RegExp(`${prefix}(?:^)?${escapedChar}[^\\s${escapedChar}]*`, 'gm');
const textFrom = $position.before();
const isTopLevelNode = $position.depth <= 0;
const textFrom = isTopLevelNode
? 0
: $position.before();
const textTo = $position.pos;

@@ -21,0 +20,0 @@ const text = $position.doc.textBetween(textFrom, textTo, '\0', '\0');

@@ -9,6 +9,2 @@ (function (global, factory) {

const { char, allowSpaces, startOfLine, $position, } = config;
// cancel if top level node
if ($position.depth <= 0) {
return null;
}
// Matching expressions used for later

@@ -21,3 +17,6 @@ const escapedChar = `\\${char}`;

: new RegExp(`${prefix}(?:^)?${escapedChar}[^\\s${escapedChar}]*`, 'gm');
const textFrom = $position.before();
const isTopLevelNode = $position.depth <= 0;
const textFrom = isTopLevelNode
? 0
: $position.before();
const textTo = $position.pos;

@@ -24,0 +23,0 @@ const text = $position.doc.textBetween(textFrom, textTo, '\0', '\0');

{
"name": "@tiptap/suggestion",
"description": "suggestion plugin for tiptap",
"version": "2.0.0-beta.55",
"version": "2.0.0-beta.56",
"homepage": "https://tiptap.dev",

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

},
"gitHead": "76dd23f0e236ccc2d93b7e8a30705127a6c84b0c"
"gitHead": "6b154e4c8161fbba987e162ebebc155243432f24"
}

@@ -10,3 +10,3 @@ # @tiptap/suggestions

## Offical Documentation
## Official Documentation
Documentation can be found on the [tiptap website](https://tiptap.dev).

@@ -13,0 +13,0 @@

@@ -25,7 +25,2 @@ import { Range } from '@tiptap/core'

// cancel if top level node
if ($position.depth <= 0) {
return null
}
// Matching expressions used for later

@@ -39,3 +34,6 @@ const escapedChar = `\\${char}`

const textFrom = $position.before()
const isTopLevelNode = $position.depth <= 0
const textFrom = isTopLevelNode
? 0
: $position.before()
const textTo = $position.pos

@@ -42,0 +40,0 @@ const text = $position.doc.textBetween(textFrom, textTo, '\0', '\0')

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