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

@tiptap/suggestion

Package Overview
Dependencies
Maintainers
5
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.5.9 to 2.6.0

3

dist/packages/core/src/commands/setMeta.d.ts

@@ -0,1 +1,2 @@

import type { Plugin, PluginKey } from '@tiptap/pm/state';
import { RawCommands } from '../types.js';

@@ -11,3 +12,3 @@ declare module '@tiptap/core' {

*/
setMeta: (key: string, value: any) => ReturnType;
setMeta: (key: string | Plugin | PluginKey, value: any) => ReturnType;
};

@@ -14,0 +15,0 @@ }

@@ -9,5 +9,6 @@ import { NodeType } from '@tiptap/pm/model';

* @param typeOrName The type or name of the node.
* @param overrideAttrs The attributes to ensure on the new node.
* @example editor.commands.splitListItem('listItem')
*/
splitListItem: (typeOrName: string | NodeType) => ReturnType;
splitListItem: (typeOrName: string | NodeType, overrideAttrs?: Record<string, any>) => ReturnType;
};

@@ -14,0 +15,0 @@ }

@@ -19,2 +19,6 @@ import { MarkType, NodeType, Schema } from '@tiptap/pm/model';

isFocused: boolean;
/**
* The editor is considered initialized after the `create` event has been emitted.
*/
isInitialized: boolean;
extensionStorage: Record<string, any>;

@@ -21,0 +25,0 @@ options: EditorOptions;

@@ -20,6 +20,6 @@ import { Plugin, Transaction } from '@tiptap/pm/state';

/**
* The priority of your extension. The higher, the later it will be called
* The priority of your extension. The higher, the earlier it will be called
* and will take precedence over other extensions with a lower priority.
* @default 1000
* @example 1001
* @default 100
* @example 101
*/

@@ -290,2 +290,3 @@ priority?: number;

}, props: {
editor: Editor;
transaction: Transaction;

@@ -292,0 +293,0 @@ }) => void) | null;

@@ -20,6 +20,6 @@ import { DOMOutputSpec, Mark as ProseMirrorMark, MarkSpec, MarkType } from '@tiptap/pm/model';

/**
* The priority of your extension. The higher, the later it will be called
* The priority of your extension. The higher, the earlier it will be called
* and will take precedence over other extensions with a lower priority.
* @default 1000
* @example 1001
* @default 100
* @example 101
*/

@@ -300,2 +300,3 @@ priority?: number;

}, props: {
editor: Editor;
transaction: Transaction;

@@ -302,0 +303,0 @@ }) => void) | null;

@@ -20,6 +20,6 @@ import { DOMOutputSpec, Node as ProseMirrorNode, NodeSpec, NodeType } from '@tiptap/pm/model';

/**
* The priority of your extension. The higher, the later it will be called
* The priority of your extension. The higher, the earlier it will be called
* and will take precedence over other extensions with a lower priority.
* @default 1000
* @example 1001
* @default 100
* @example 101
*/

@@ -301,2 +301,3 @@ priority?: number;

}, props: {
editor: Editor;
transaction: Transaction;

@@ -303,0 +304,0 @@ }) => void) | null;

import { NodeType } from '@tiptap/pm/model';
import { PasteRule, PasteRuleFinder } from '../PasteRule.js';
import { ExtendedRegExpMatchArray } from '../types.js';
import { ExtendedRegExpMatchArray, JSONContent } from '../types.js';
/**

@@ -13,2 +13,3 @@ * Build an paste rule that adds a node when the

getAttributes?: Record<string, any> | ((match: ExtendedRegExpMatchArray, event: ClipboardEvent) => Record<string, any>) | false | null;
getContent?: JSONContent[] | ((attrs: Record<string, any>) => JSONContent[]) | false | null;
}): PasteRule;
{
"name": "@tiptap/suggestion",
"description": "suggestion plugin for tiptap",
"version": "2.5.9",
"version": "2.6.0",
"homepage": "https://tiptap.dev",

@@ -32,8 +32,8 @@ "keywords": [

"devDependencies": {
"@tiptap/core": "^2.5.9",
"@tiptap/pm": "^2.5.9"
"@tiptap/core": "^2.6.0",
"@tiptap/pm": "^2.6.0"
},
"peerDependencies": {
"@tiptap/core": "^2.5.9",
"@tiptap/pm": "^2.5.9"
"@tiptap/core": "^2.6.0",
"@tiptap/pm": "^2.6.0"
},

@@ -40,0 +40,0 @@ "repository": {

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