@remirror/extension-emoji
Advanced tools
Comparing version 0.4.2-canary.0 to 0.4.2-canary.1
@@ -1,5 +0,5 @@ | ||
import { CommandNodeTypeParams, NodeExtension, NodeExtensionSpec, SchemaNodeTypeParams } from '@remirror/core'; | ||
import { CommandNodeTypeParams, ExtensionManagerNodeTypeParams, NodeExtension, NodeExtensionSpec } from '@remirror/core'; | ||
import { ReactNodeView } from '@remirror/react'; | ||
import { EmojiAttrs, EmojiExtensionOptions } from './types'; | ||
export declare class EmojiExtension extends NodeExtension<EmojiExtensionOptions, 'emoji', {}> { | ||
export declare class EmojiExtension extends NodeExtension<EmojiExtensionOptions> { | ||
/** | ||
@@ -25,4 +25,4 @@ * The name is dynamically generated based on the passed in type. | ||
}; | ||
plugin({ type }: SchemaNodeTypeParams): import("prosemirror-state").Plugin<any, import("prosemirror-model").Schema<string, string>>; | ||
nodeView({ portalContainer }: SchemaNodeTypeParams): (node: import("prosemirror-model").Node<import("prosemirror-model").Schema<string, string>>, view: import("prosemirror-view").EditorView<import("prosemirror-model").Schema<string, string>>, getPosition: import("@remirror/react").GetPosition) => ReactNodeView<{ | ||
plugin({ type }: ExtensionManagerNodeTypeParams): import("prosemirror-state").Plugin<any, import("prosemirror-model").Schema<string, string>>; | ||
nodeView({ portalContainer }: ExtensionManagerNodeTypeParams): (node: import("prosemirror-model").Node<import("prosemirror-model").Schema<string, string>>, view: import("prosemirror-view").EditorView<import("prosemirror-model").Schema<string, string>>, getPosition: import("@remirror/react").GetPosition) => ReactNodeView<{ | ||
set: import("emoji-mart").EmojiSet; | ||
@@ -29,0 +29,0 @@ size: string | number; |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"version": "0.4.2-canary.0", | ||
"version": "0.4.2-canary.1", | ||
"main": "lib/index.js", | ||
@@ -34,4 +34,4 @@ "module": "lib/dist/extension-emoji.esm.js", | ||
"@emotion/core": "^10.0.14", | ||
"@remirror/core": "0.4.2-canary.0", | ||
"@remirror/react": "0.4.2-canary.0", | ||
"@remirror/core": "0.4.2-canary.1", | ||
"@remirror/react": "0.4.2-canary.1", | ||
"@types/emoji-mart": "^2.8.4", | ||
@@ -55,3 +55,3 @@ "@types/prosemirror-model": "^1.7.2", | ||
"devDependencies": { | ||
"jest-remirror": "0.4.2-canary.0" | ||
"jest-remirror": "0.4.2-canary.1" | ||
}, | ||
@@ -63,3 +63,3 @@ "publishConfig": { | ||
"sideEffects": false, | ||
"gitHead": "e6500c65aecbffad1b0f9bb2c0b8d4891ba764d3" | ||
"gitHead": "0330899c87713ed1398df695715d1fed87267462" | ||
} |
@@ -6,2 +6,3 @@ import { | ||
EDITOR_CLASS_NAME, | ||
ExtensionManagerNodeTypeParams, | ||
isElementDOMNode, | ||
@@ -11,3 +12,2 @@ NodeExtension, | ||
replaceText, | ||
SchemaNodeTypeParams, | ||
} from '@remirror/core'; | ||
@@ -20,3 +20,3 @@ import { ReactNodeView } from '@remirror/react'; | ||
export class EmojiExtension extends NodeExtension<EmojiExtensionOptions, 'emoji', {}> { | ||
export class EmojiExtension extends NodeExtension<EmojiExtensionOptions> { | ||
/** | ||
@@ -113,3 +113,3 @@ * The name is dynamically generated based on the passed in type. | ||
public plugin({ type }: SchemaNodeTypeParams) { | ||
public plugin({ type }: ExtensionManagerNodeTypeParams) { | ||
const { emojiData } = this.options; | ||
@@ -123,3 +123,3 @@ return createEmojiPlugin({ | ||
public nodeView({ portalContainer }: SchemaNodeTypeParams) { | ||
public nodeView({ portalContainer }: ExtensionManagerNodeTypeParams) { | ||
const { set, size, emojiData, EmojiComponent, style } = this.options; | ||
@@ -126,0 +126,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
Sorry, the diff of this file is not supported yet
127834
+ Added@remirror/core@0.4.2-canary.1(transitive)
+ Added@remirror/core-extensions@0.4.2-canary.1(transitive)
+ Added@remirror/react@0.4.2-canary.1(transitive)
+ Added@remirror/react-ssr@0.4.2-canary.1(transitive)
+ Added@remirror/react-utils@0.4.2-canary.1(transitive)
+ Added@remirror/renderer-react@0.4.2-canary.1(transitive)
- Removed@remirror/core@0.4.2-canary.0(transitive)
- Removed@remirror/core-extensions@0.4.2-canary.0(transitive)
- Removed@remirror/react@0.4.2-canary.0(transitive)
- Removed@remirror/react-ssr@0.4.2-canary.0(transitive)
- Removed@remirror/react-utils@0.4.2-canary.0(transitive)
- Removed@remirror/renderer-react@0.4.2-canary.0(transitive)