prosemirror-suggest
Advanced tools
Comparing version 0.0.0-pr905.1 to 0.0.0-pr911.1
@@ -169,3 +169,3 @@ import { PluginKey, Selection, TextSelection } from 'prosemirror-state'; | ||
*/ | ||
setLastChangeFromAppend: () => void; | ||
setLastChangeFromAppend(): void; | ||
} | ||
@@ -172,0 +172,0 @@ /** |
@@ -730,2 +730,16 @@ /** | ||
/** | ||
* Keeps the partial properties of a type unchanged. Transforms the rest to | ||
* `never`. | ||
*/ | ||
declare type KeepPartialProperties<Type extends object> = { | ||
[Key in keyof Type]: Type[Key] extends undefined ? Type[Key] : never; | ||
}; | ||
/** | ||
* Pick the `partial` properties from the provided Type and make them all | ||
* required. | ||
*/ | ||
export declare type PickPartial<Type extends object> = { | ||
[Key in keyof import('type-fest').ConditionalExcept<KeepPartialProperties<Type>, never>]-?: Type[Key]; | ||
}; | ||
/** | ||
* Makes specified keys of an interface optional while the rest stay the same. | ||
@@ -800,1 +814,2 @@ */ | ||
} | ||
export {}; |
@@ -1,3 +0,2 @@ | ||
import { PickPartial } from '@remirror/types'; | ||
import type { CompareMatchProps, DocChangedProps, EditorSchema, EditorStateProps, ResolvedPos, ResolvedPosProps, ResolvedRangeWithCursor, Suggester, SuggestMatch, SuggestReasonMap } from './suggest-types'; | ||
import type { CompareMatchProps, DocChangedProps, EditorSchema, EditorStateProps, PickPartial, ResolvedPos, ResolvedPosProps, ResolvedRangeWithCursor, Suggester, SuggestMatch, SuggestReasonMap } from './suggest-types'; | ||
interface FindFromSuggestersProps<Schema extends EditorSchema = EditorSchema> extends ResolvedPosProps<Schema>, DocChangedProps { | ||
@@ -4,0 +3,0 @@ /** |
@@ -1087,6 +1087,2 @@ 'use strict'; | ||
_defineProperty(this, "setLastChangeFromAppend", () => { | ||
_classPrivateFieldSet(this, _lastChangeFromAppend, true); | ||
}); | ||
var mapper = createSuggesterMapper(); | ||
@@ -1314,3 +1310,3 @@ | ||
var shouldIgnore = decorations.some((_ref6) => { | ||
return decorations.some((_ref6) => { | ||
var spec = _ref6.spec, | ||
@@ -1325,3 +1321,2 @@ from = _ref6.from; | ||
}); | ||
return shouldIgnore; | ||
} | ||
@@ -1500,2 +1495,6 @@ /** | ||
setLastChangeFromAppend() { | ||
_classPrivateFieldSet(this, _lastChangeFromAppend, true); | ||
} | ||
} | ||
@@ -1502,0 +1501,0 @@ |
@@ -1079,6 +1079,2 @@ import { TextSelection, Selection, PluginKey, Plugin } from 'prosemirror-state'; | ||
_defineProperty(this, "setLastChangeFromAppend", () => { | ||
_classPrivateFieldSet(this, _lastChangeFromAppend, true); | ||
}); | ||
var mapper = createSuggesterMapper(); | ||
@@ -1306,3 +1302,3 @@ | ||
var shouldIgnore = decorations.some((_ref6) => { | ||
return decorations.some((_ref6) => { | ||
var spec = _ref6.spec, | ||
@@ -1317,3 +1313,2 @@ from = _ref6.from; | ||
}); | ||
return shouldIgnore; | ||
} | ||
@@ -1492,2 +1487,6 @@ /** | ||
setLastChangeFromAppend() { | ||
_classPrivateFieldSet(this, _lastChangeFromAppend, true); | ||
} | ||
} | ||
@@ -1494,0 +1493,0 @@ |
@@ -1087,6 +1087,2 @@ 'use strict'; | ||
_defineProperty(this, "setLastChangeFromAppend", () => { | ||
_classPrivateFieldSet(this, _lastChangeFromAppend, true); | ||
}); | ||
var mapper = createSuggesterMapper(); | ||
@@ -1314,3 +1310,3 @@ | ||
var shouldIgnore = decorations.some((_ref6) => { | ||
return decorations.some((_ref6) => { | ||
var spec = _ref6.spec, | ||
@@ -1325,3 +1321,2 @@ from = _ref6.from; | ||
}); | ||
return shouldIgnore; | ||
} | ||
@@ -1500,2 +1495,6 @@ /** | ||
setLastChangeFromAppend() { | ||
_classPrivateFieldSet(this, _lastChangeFromAppend, true); | ||
} | ||
} | ||
@@ -1502,0 +1501,0 @@ |
@@ -1087,6 +1087,2 @@ 'use strict'; | ||
_defineProperty(this, "setLastChangeFromAppend", () => { | ||
_classPrivateFieldSet(this, _lastChangeFromAppend, true); | ||
}); | ||
var mapper = createSuggesterMapper(); | ||
@@ -1314,3 +1310,3 @@ | ||
var shouldIgnore = decorations.some((_ref6) => { | ||
return decorations.some((_ref6) => { | ||
var spec = _ref6.spec, | ||
@@ -1325,3 +1321,2 @@ from = _ref6.from; | ||
}); | ||
return shouldIgnore; | ||
} | ||
@@ -1500,2 +1495,6 @@ /** | ||
setLastChangeFromAppend() { | ||
_classPrivateFieldSet(this, _lastChangeFromAppend, true); | ||
} | ||
} | ||
@@ -1502,0 +1501,0 @@ |
@@ -1079,6 +1079,2 @@ import { TextSelection, Selection, PluginKey, Plugin } from 'prosemirror-state'; | ||
_defineProperty(this, "setLastChangeFromAppend", () => { | ||
_classPrivateFieldSet(this, _lastChangeFromAppend, true); | ||
}); | ||
var mapper = createSuggesterMapper(); | ||
@@ -1306,3 +1302,3 @@ | ||
var shouldIgnore = decorations.some((_ref6) => { | ||
return decorations.some((_ref6) => { | ||
var spec = _ref6.spec, | ||
@@ -1317,3 +1313,2 @@ from = _ref6.from; | ||
}); | ||
return shouldIgnore; | ||
} | ||
@@ -1492,2 +1487,6 @@ /** | ||
setLastChangeFromAppend() { | ||
_classPrivateFieldSet(this, _lastChangeFromAppend, true); | ||
} | ||
} | ||
@@ -1494,0 +1493,0 @@ |
{ | ||
"name": "prosemirror-suggest", | ||
"version": "0.0.0-pr905.1", | ||
"version": "0.0.0-pr911.1", | ||
"description": "Primitives for building your prosemirror suggestion and autocomplete functionality", | ||
@@ -35,10 +35,10 @@ "homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/prosemirror-suggest", | ||
"@babel/runtime": "^7.13.10", | ||
"@remirror/core-constants": "0.0.0-pr905.1", | ||
"@remirror/core-helpers": "0.0.0-pr905.1", | ||
"@remirror/types": "0.0.0-pr905.1", | ||
"escape-string-regexp": "^4.0.0" | ||
"@remirror/core-constants": "0.0.0-pr911.1", | ||
"@remirror/core-helpers": "0.0.0-pr911.1", | ||
"escape-string-regexp": "^4.0.0", | ||
"type-fest": "^0.21.3" | ||
}, | ||
"devDependencies": { | ||
"@types/prosemirror-keymap": "^1.0.4", | ||
"@types/prosemirror-model": "^1.13.0", | ||
"@types/prosemirror-model": "^1.11.2", | ||
"@types/prosemirror-state": "^1.2.6", | ||
@@ -48,3 +48,3 @@ "@types/prosemirror-view": "^1.17.1", | ||
"prosemirror-state": "^1.3.4", | ||
"prosemirror-view": "^1.18.2" | ||
"prosemirror-view": "^1.17.4" | ||
}, | ||
@@ -51,0 +51,0 @@ "peerDependencies": { |
317405
7947
+ Addedtype-fest@^0.21.3
+ Added@remirror/core-constants@0.0.0-pr911.1(transitive)
+ Added@remirror/core-helpers@0.0.0-pr911.1(transitive)
+ Addedtype-fest@0.21.3(transitive)
- Removed@remirror/types@0.0.0-pr905.1
- Removed@remirror/core-constants@0.0.0-pr905.1(transitive)
- Removed@remirror/core-helpers@0.0.0-pr905.1(transitive)
- Removed@remirror/types@0.0.0-pr905.1(transitive)
- Removedtype-fest@1.4.0(transitive)