@tiptap/suggestion
Advanced tools
Comparing version 2.0.0-beta.74 to 2.0.0-beta.75
@@ -18,3 +18,6 @@ import { Editor, Range } from '@tiptap/core'; | ||
}) => void; | ||
items?: (query: string) => any[] | Promise<any[]>; | ||
items?: (props: { | ||
query: string; | ||
editor: Editor; | ||
}) => any[] | Promise<any[]>; | ||
render?: () => { | ||
@@ -21,0 +24,0 @@ onStart?: (props: SuggestionProps) => void; |
@@ -93,3 +93,6 @@ 'use strict'; | ||
items: (handleChange || handleStart) | ||
? await items(state.query) | ||
? await items({ | ||
editor, | ||
query: state.query, | ||
}) | ||
: [], | ||
@@ -96,0 +99,0 @@ command: commandProps => { |
@@ -89,3 +89,6 @@ import { PluginKey, Plugin } from 'prosemirror-state'; | ||
items: (handleChange || handleStart) | ||
? await items(state.query) | ||
? await items({ | ||
editor, | ||
query: state.query, | ||
}) | ||
: [], | ||
@@ -92,0 +95,0 @@ command: commandProps => { |
@@ -92,3 +92,6 @@ (function (global, factory) { | ||
items: (handleChange || handleStart) | ||
? await items(state.query) | ||
? await items({ | ||
editor, | ||
query: state.query, | ||
}) | ||
: [], | ||
@@ -95,0 +98,0 @@ command: commandProps => { |
{ | ||
"name": "@tiptap/suggestion", | ||
"description": "suggestion plugin for tiptap", | ||
"version": "2.0.0-beta.74", | ||
"version": "2.0.0-beta.75", | ||
"homepage": "https://tiptap.dev", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
"dependencies": { | ||
"prosemirror-model": "^1.14.3", | ||
"prosemirror-model": "^1.15.0", | ||
"prosemirror-state": "^1.3.4", | ||
@@ -37,3 +37,3 @@ "prosemirror-view": "^1.20.3" | ||
}, | ||
"gitHead": "9948e2499a3aa6ca72b677ef2ca96de1db1cb6b5" | ||
"gitHead": "9f5a165b4d5de777787c1f8c2a83f2d8c2438e98" | ||
} |
@@ -20,3 +20,6 @@ import { Editor, Range } from '@tiptap/core' | ||
}) => void, | ||
items?: (query: string) => any[] | Promise<any[]>, | ||
items?: (props: { | ||
query: string, | ||
editor: Editor, | ||
}) => any[] | Promise<any[]>, | ||
render?: () => { | ||
@@ -103,3 +106,6 @@ onStart?: (props: SuggestionProps) => void, | ||
items: (handleChange || handleStart) | ||
? await items(state.query) | ||
? await items({ | ||
editor, | ||
query: state.query, | ||
}) | ||
: [], | ||
@@ -106,0 +112,0 @@ command: commandProps => { |
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
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
95905
1015
Updatedprosemirror-model@^1.15.0