prosemirror-suggest
Advanced tools
Comparing version 0.0.0-pr1242.4 to 0.0.0-pr1305.1
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { Plugin } from 'prosemirror-state'; |
@@ -0,0 +0,0 @@ import { TextSelection } from 'prosemirror-state'; |
@@ -0,0 +0,0 @@ import { PluginKey, Selection, TextSelection } from 'prosemirror-state'; |
@@ -0,1 +1,4 @@ | ||
import * as PMModel from 'prosemirror-model'; | ||
import * as PMState from 'prosemirror-state'; | ||
import * as PMView from 'prosemirror-view'; | ||
/** | ||
@@ -735,5 +738,5 @@ * This [[`Suggester`]] interface defines all the options required to create a | ||
}; | ||
export declare type EditorSchema = import('prosemirror-model').Schema<string, string>; | ||
export declare type ProsemirrorNode<Schema extends EditorSchema = EditorSchema> = import('prosemirror-model').Node<Schema>; | ||
export declare type Transaction<Schema extends EditorSchema = EditorSchema> = import('prosemirror-state').Transaction<Schema>; | ||
export declare type EditorSchema = PMModel.Schema<string, string>; | ||
export declare type ProsemirrorNode<Schema extends EditorSchema = EditorSchema> = PMModel.Node<Schema>; | ||
export declare type Transaction<Schema extends EditorSchema = EditorSchema> = PMState.Transaction<Schema>; | ||
/** | ||
@@ -750,3 +753,3 @@ * A parameter builder interface containing the `tr` property. | ||
} | ||
export declare type EditorState<Schema extends EditorSchema = EditorSchema> = import('prosemirror-state').EditorState<Schema>; | ||
export declare type EditorState<Schema extends EditorSchema = EditorSchema> = PMState.EditorState<Schema>; | ||
/** | ||
@@ -763,3 +766,3 @@ * A parameter builder interface containing the `state` property. | ||
} | ||
export declare type ResolvedPos<Schema extends EditorSchema = EditorSchema> = import('prosemirror-model').ResolvedPos<Schema>; | ||
export declare type ResolvedPos<Schema extends EditorSchema = EditorSchema> = PMModel.ResolvedPos<Schema>; | ||
/** | ||
@@ -784,3 +787,3 @@ * @template Schema - the underlying editor schema. | ||
} | ||
export declare type EditorView<Schema extends EditorSchema = EditorSchema> = import('prosemirror-view').EditorView<Schema>; | ||
export declare type EditorView<Schema extends EditorSchema = EditorSchema> = PMView.EditorView<Schema>; | ||
/** | ||
@@ -801,3 +804,3 @@ * A parameter builder interface containing the `view` property. | ||
*/ | ||
selection: import('prosemirror-state').Selection<Schema>; | ||
selection: PMState.Selection<Schema>; | ||
} |
@@ -0,0 +0,0 @@ import { PickPartial } from '@remirror/types'; |
@@ -20,2 +20,13 @@ 'use strict'; | ||
function _checkPrivateRedeclaration(obj, privateCollection) { | ||
if (privateCollection.has(obj)) { | ||
throw new TypeError("Cannot initialize the same private elements twice on an object"); | ||
} | ||
} | ||
function _classPrivateFieldInitSpec(obj, privateMap, value) { | ||
_checkPrivateRedeclaration(obj, privateMap); | ||
privateMap.set(obj, value); | ||
} | ||
/** | ||
@@ -793,3 +804,3 @@ * This [[`Suggester`]] interface defines all the options required to create a | ||
function getCharAsRegex(char) { | ||
return coreHelpers.isString(char) ? new RegExp(escapeStringRegex__default['default'](char)) : char; | ||
return coreHelpers.isString(char) ? new RegExp(escapeStringRegex__default["default"](char)) : char; | ||
} | ||
@@ -942,3 +953,3 @@ | ||
constructor(_suggesters2) { | ||
_docChanged.set(this, { | ||
_classPrivateFieldInitSpec(this, _docChanged, { | ||
writable: true, | ||
@@ -948,3 +959,3 @@ value: false | ||
_ignoreNextExit.set(this, { | ||
_classPrivateFieldInitSpec(this, _ignoreNextExit, { | ||
writable: true, | ||
@@ -954,3 +965,3 @@ value: false | ||
_suggesters.set(this, { | ||
_classPrivateFieldInitSpec(this, _suggesters, { | ||
writable: true, | ||
@@ -960,3 +971,3 @@ value: void 0 | ||
_next.set(this, { | ||
_classPrivateFieldInitSpec(this, _next, { | ||
writable: true, | ||
@@ -966,3 +977,3 @@ value: void 0 | ||
_prev.set(this, { | ||
_classPrivateFieldInitSpec(this, _prev, { | ||
writable: true, | ||
@@ -972,3 +983,3 @@ value: void 0 | ||
_handlerMatches.set(this, { | ||
_classPrivateFieldInitSpec(this, _handlerMatches, { | ||
writable: true, | ||
@@ -978,3 +989,3 @@ value: coreHelpers.object() | ||
_ignored.set(this, { | ||
_classPrivateFieldInitSpec(this, _ignored, { | ||
writable: true, | ||
@@ -984,3 +995,3 @@ value: prosemirrorView.DecorationSet.empty | ||
_removed.set(this, { | ||
_classPrivateFieldInitSpec(this, _removed, { | ||
writable: true, | ||
@@ -990,3 +1001,3 @@ value: false | ||
_lastChangeFromAppend.set(this, { | ||
_classPrivateFieldInitSpec(this, _lastChangeFromAppend, { | ||
writable: true, | ||
@@ -993,0 +1004,0 @@ value: false |
@@ -12,2 +12,13 @@ import { TextSelection, Selection, PluginKey, Plugin } from 'prosemirror-state'; | ||
function _checkPrivateRedeclaration(obj, privateCollection) { | ||
if (privateCollection.has(obj)) { | ||
throw new TypeError("Cannot initialize the same private elements twice on an object"); | ||
} | ||
} | ||
function _classPrivateFieldInitSpec(obj, privateMap, value) { | ||
_checkPrivateRedeclaration(obj, privateMap); | ||
privateMap.set(obj, value); | ||
} | ||
/** | ||
@@ -933,3 +944,3 @@ * This [[`Suggester`]] interface defines all the options required to create a | ||
constructor(_suggesters2) { | ||
_docChanged.set(this, { | ||
_classPrivateFieldInitSpec(this, _docChanged, { | ||
writable: true, | ||
@@ -939,3 +950,3 @@ value: false | ||
_ignoreNextExit.set(this, { | ||
_classPrivateFieldInitSpec(this, _ignoreNextExit, { | ||
writable: true, | ||
@@ -945,3 +956,3 @@ value: false | ||
_suggesters.set(this, { | ||
_classPrivateFieldInitSpec(this, _suggesters, { | ||
writable: true, | ||
@@ -951,3 +962,3 @@ value: void 0 | ||
_next.set(this, { | ||
_classPrivateFieldInitSpec(this, _next, { | ||
writable: true, | ||
@@ -957,3 +968,3 @@ value: void 0 | ||
_prev.set(this, { | ||
_classPrivateFieldInitSpec(this, _prev, { | ||
writable: true, | ||
@@ -963,3 +974,3 @@ value: void 0 | ||
_handlerMatches.set(this, { | ||
_classPrivateFieldInitSpec(this, _handlerMatches, { | ||
writable: true, | ||
@@ -969,3 +980,3 @@ value: object() | ||
_ignored.set(this, { | ||
_classPrivateFieldInitSpec(this, _ignored, { | ||
writable: true, | ||
@@ -975,3 +986,3 @@ value: DecorationSet.empty | ||
_removed.set(this, { | ||
_classPrivateFieldInitSpec(this, _removed, { | ||
writable: true, | ||
@@ -981,3 +992,3 @@ value: false | ||
_lastChangeFromAppend.set(this, { | ||
_classPrivateFieldInitSpec(this, _lastChangeFromAppend, { | ||
writable: true, | ||
@@ -984,0 +995,0 @@ value: false |
@@ -20,2 +20,13 @@ 'use strict'; | ||
function _checkPrivateRedeclaration(obj, privateCollection) { | ||
if (privateCollection.has(obj)) { | ||
throw new TypeError("Cannot initialize the same private elements twice on an object"); | ||
} | ||
} | ||
function _classPrivateFieldInitSpec(obj, privateMap, value) { | ||
_checkPrivateRedeclaration(obj, privateMap); | ||
privateMap.set(obj, value); | ||
} | ||
/** | ||
@@ -793,3 +804,3 @@ * This [[`Suggester`]] interface defines all the options required to create a | ||
function getCharAsRegex(char) { | ||
return coreHelpers.isString(char) ? new RegExp(escapeStringRegex__default['default'](char)) : char; | ||
return coreHelpers.isString(char) ? new RegExp(escapeStringRegex__default["default"](char)) : char; | ||
} | ||
@@ -942,3 +953,3 @@ | ||
constructor(_suggesters2) { | ||
_docChanged.set(this, { | ||
_classPrivateFieldInitSpec(this, _docChanged, { | ||
writable: true, | ||
@@ -948,3 +959,3 @@ value: false | ||
_ignoreNextExit.set(this, { | ||
_classPrivateFieldInitSpec(this, _ignoreNextExit, { | ||
writable: true, | ||
@@ -954,3 +965,3 @@ value: false | ||
_suggesters.set(this, { | ||
_classPrivateFieldInitSpec(this, _suggesters, { | ||
writable: true, | ||
@@ -960,3 +971,3 @@ value: void 0 | ||
_next.set(this, { | ||
_classPrivateFieldInitSpec(this, _next, { | ||
writable: true, | ||
@@ -966,3 +977,3 @@ value: void 0 | ||
_prev.set(this, { | ||
_classPrivateFieldInitSpec(this, _prev, { | ||
writable: true, | ||
@@ -972,3 +983,3 @@ value: void 0 | ||
_handlerMatches.set(this, { | ||
_classPrivateFieldInitSpec(this, _handlerMatches, { | ||
writable: true, | ||
@@ -978,3 +989,3 @@ value: coreHelpers.object() | ||
_ignored.set(this, { | ||
_classPrivateFieldInitSpec(this, _ignored, { | ||
writable: true, | ||
@@ -984,3 +995,3 @@ value: prosemirrorView.DecorationSet.empty | ||
_removed.set(this, { | ||
_classPrivateFieldInitSpec(this, _removed, { | ||
writable: true, | ||
@@ -990,3 +1001,3 @@ value: false | ||
_lastChangeFromAppend.set(this, { | ||
_classPrivateFieldInitSpec(this, _lastChangeFromAppend, { | ||
writable: true, | ||
@@ -993,0 +1004,0 @@ value: false |
@@ -20,2 +20,13 @@ 'use strict'; | ||
function _checkPrivateRedeclaration(obj, privateCollection) { | ||
if (privateCollection.has(obj)) { | ||
throw new TypeError("Cannot initialize the same private elements twice on an object"); | ||
} | ||
} | ||
function _classPrivateFieldInitSpec(obj, privateMap, value) { | ||
_checkPrivateRedeclaration(obj, privateMap); | ||
privateMap.set(obj, value); | ||
} | ||
/** | ||
@@ -793,3 +804,3 @@ * This [[`Suggester`]] interface defines all the options required to create a | ||
function getCharAsRegex(char) { | ||
return coreHelpers.isString(char) ? new RegExp(escapeStringRegex__default['default'](char)) : char; | ||
return coreHelpers.isString(char) ? new RegExp(escapeStringRegex__default["default"](char)) : char; | ||
} | ||
@@ -942,3 +953,3 @@ | ||
constructor(_suggesters2) { | ||
_docChanged.set(this, { | ||
_classPrivateFieldInitSpec(this, _docChanged, { | ||
writable: true, | ||
@@ -948,3 +959,3 @@ value: false | ||
_ignoreNextExit.set(this, { | ||
_classPrivateFieldInitSpec(this, _ignoreNextExit, { | ||
writable: true, | ||
@@ -954,3 +965,3 @@ value: false | ||
_suggesters.set(this, { | ||
_classPrivateFieldInitSpec(this, _suggesters, { | ||
writable: true, | ||
@@ -960,3 +971,3 @@ value: void 0 | ||
_next.set(this, { | ||
_classPrivateFieldInitSpec(this, _next, { | ||
writable: true, | ||
@@ -966,3 +977,3 @@ value: void 0 | ||
_prev.set(this, { | ||
_classPrivateFieldInitSpec(this, _prev, { | ||
writable: true, | ||
@@ -972,3 +983,3 @@ value: void 0 | ||
_handlerMatches.set(this, { | ||
_classPrivateFieldInitSpec(this, _handlerMatches, { | ||
writable: true, | ||
@@ -978,3 +989,3 @@ value: coreHelpers.object() | ||
_ignored.set(this, { | ||
_classPrivateFieldInitSpec(this, _ignored, { | ||
writable: true, | ||
@@ -984,3 +995,3 @@ value: prosemirrorView.DecorationSet.empty | ||
_removed.set(this, { | ||
_classPrivateFieldInitSpec(this, _removed, { | ||
writable: true, | ||
@@ -990,3 +1001,3 @@ value: false | ||
_lastChangeFromAppend.set(this, { | ||
_classPrivateFieldInitSpec(this, _lastChangeFromAppend, { | ||
writable: true, | ||
@@ -993,0 +1004,0 @@ value: false |
@@ -12,2 +12,13 @@ import { TextSelection, Selection, PluginKey, Plugin } from 'prosemirror-state'; | ||
function _checkPrivateRedeclaration(obj, privateCollection) { | ||
if (privateCollection.has(obj)) { | ||
throw new TypeError("Cannot initialize the same private elements twice on an object"); | ||
} | ||
} | ||
function _classPrivateFieldInitSpec(obj, privateMap, value) { | ||
_checkPrivateRedeclaration(obj, privateMap); | ||
privateMap.set(obj, value); | ||
} | ||
/** | ||
@@ -933,3 +944,3 @@ * This [[`Suggester`]] interface defines all the options required to create a | ||
constructor(_suggesters2) { | ||
_docChanged.set(this, { | ||
_classPrivateFieldInitSpec(this, _docChanged, { | ||
writable: true, | ||
@@ -939,3 +950,3 @@ value: false | ||
_ignoreNextExit.set(this, { | ||
_classPrivateFieldInitSpec(this, _ignoreNextExit, { | ||
writable: true, | ||
@@ -945,3 +956,3 @@ value: false | ||
_suggesters.set(this, { | ||
_classPrivateFieldInitSpec(this, _suggesters, { | ||
writable: true, | ||
@@ -951,3 +962,3 @@ value: void 0 | ||
_next.set(this, { | ||
_classPrivateFieldInitSpec(this, _next, { | ||
writable: true, | ||
@@ -957,3 +968,3 @@ value: void 0 | ||
_prev.set(this, { | ||
_classPrivateFieldInitSpec(this, _prev, { | ||
writable: true, | ||
@@ -963,3 +974,3 @@ value: void 0 | ||
_handlerMatches.set(this, { | ||
_classPrivateFieldInitSpec(this, _handlerMatches, { | ||
writable: true, | ||
@@ -969,3 +980,3 @@ value: object() | ||
_ignored.set(this, { | ||
_classPrivateFieldInitSpec(this, _ignored, { | ||
writable: true, | ||
@@ -975,3 +986,3 @@ value: DecorationSet.empty | ||
_removed.set(this, { | ||
_classPrivateFieldInitSpec(this, _removed, { | ||
writable: true, | ||
@@ -981,3 +992,3 @@ value: false | ||
_lastChangeFromAppend.set(this, { | ||
_classPrivateFieldInitSpec(this, _lastChangeFromAppend, { | ||
writable: true, | ||
@@ -984,0 +995,0 @@ value: false |
{ | ||
"name": "prosemirror-suggest", | ||
"version": "0.0.0-pr1242.4", | ||
"version": "0.0.0-pr1305.1", | ||
"description": "Primitives for building your prosemirror suggestion and autocomplete functionality", | ||
@@ -39,5 +39,5 @@ "homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/prosemirror-suggest", | ||
"@babel/runtime": "^7.13.10", | ||
"@remirror/core-constants": "0.0.0-pr1242.4", | ||
"@remirror/core-helpers": "0.0.0-pr1242.4", | ||
"@remirror/types": "0.0.0-pr1242.4", | ||
"@remirror/core-constants": "0.0.0-pr1305.1", | ||
"@remirror/core-helpers": "0.0.0-pr1305.1", | ||
"@remirror/types": "0.0.0-pr1305.1", | ||
"escape-string-regexp": "^4.0.0" | ||
@@ -49,6 +49,6 @@ }, | ||
"@types/prosemirror-state": "^1.2.7", | ||
"@types/prosemirror-view": "^1.18.0", | ||
"@types/prosemirror-view": "^1.19.1", | ||
"prosemirror-model": "^1.14.3", | ||
"prosemirror-state": "^1.3.4", | ||
"prosemirror-view": "^1.19.3" | ||
"prosemirror-view": "^1.20.1" | ||
}, | ||
@@ -55,0 +55,0 @@ "peerDependencies": { |
@@ -50,3 +50,3 @@ # prosemirror-suggest | ||
`prosemirror-suggest` uses configuration objects called `Suggester`<!-- -->'s to define the behaviour of the suggesters you create. By calling the exported `suggest` method with all required `Suggester`<!-- -->'s the functionality is added to the editor in one plugin. | ||
`prosemirror-suggest` uses configuration objects called `Suggester`'s to define the behaviour of the suggesters you create. By calling the exported `suggest` method with all required `Suggester`'s the functionality is added to the editor in one plugin. | ||
@@ -53,0 +53,0 @@ In the following example we're creating an emoji suggestion plugin that responds to the colon character with a query and presents a list of matching emojis based on the query typed so far. |
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
301573
7986
+ Added@remirror/core-constants@0.0.0-pr1305.1(transitive)
+ Added@remirror/core-helpers@0.0.0-pr1305.1(transitive)
+ Added@remirror/types@0.0.0-pr1305.1(transitive)
- Removed@remirror/core-constants@0.0.0-pr1242.4(transitive)
- Removed@remirror/core-helpers@0.0.0-pr1242.4(transitive)
- Removed@remirror/types@0.0.0-pr1242.4(transitive)