@remirror/extension-emoji
Advanced tools
Comparing version
@@ -187,3 +187,3 @@ 'use strict'; | ||
return function (emoji, skinVariation) { | ||
if (!emoji) { | ||
if (core.isNullOrUndefined(emoji)) { | ||
throw new Error('An emoji object is required when calling the emoji suggestions command'); | ||
@@ -190,0 +190,0 @@ } |
@@ -8,3 +8,3 @@ { | ||
"repository": "https://github.com/ifiokjr/remirror/tree/master/@remirror/extension-emoji", | ||
"version": "0.7.2", | ||
"version": "0.7.3-ci.1576395303.1+b096ed1d", | ||
"main": "lib/index.js", | ||
@@ -20,4 +20,4 @@ "module": "lib/dist/extension-emoji.esm.js", | ||
"@babel/runtime": "^7", | ||
"@remirror/core": "0.7.2", | ||
"@remirror/react-node-view": "0.7.2", | ||
"@remirror/core": "^0.7.3-ci.1576395303.1+b096ed1d", | ||
"@remirror/react-node-view": "^0.7.3-ci.1576395303.1+b096ed1d", | ||
"@types/emoji-regex": "^8.0.0", | ||
@@ -33,3 +33,3 @@ "@types/match-sorter": "^2.3.0", | ||
"prosemirror-state": "^1.2.4", | ||
"prosemirror-suggest": "0.7.2", | ||
"prosemirror-suggest": "^0.7.3-ci.1576395303.1+b096ed1d", | ||
"prosemirror-view": "^1.12.0" | ||
@@ -47,3 +47,3 @@ }, | ||
"emojilib": "^2.4.0", | ||
"jest-remirror": "0.7.2" | ||
"jest-remirror": "^0.7.3-ci.1576395303.1+b096ed1d" | ||
}, | ||
@@ -57,3 +57,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "ff17343bf2310278a3cb59b2ca441198da7418c2" | ||
"gitHead": "b096ed1dd300d682e28f9a7721ad9debbe1c1eb3" | ||
} |
import { renderEditor } from 'jest-remirror'; | ||
import { SuggestKeyBindingParams } from 'prosemirror-suggest'; | ||
import { EmojiExtension } from '../emoji-extension'; | ||
@@ -4,0 +5,0 @@ import { |
@@ -6,2 +6,3 @@ import { | ||
FromToParams, | ||
isNullOrUndefined, | ||
noop, | ||
@@ -12,2 +13,3 @@ plainInputRule, | ||
import { Suggester } from 'prosemirror-suggest'; | ||
import { | ||
@@ -184,3 +186,3 @@ EmojiExtensionOptions, | ||
return (emoji, skinVariation) => { | ||
if (!emoji) { | ||
if (isNullOrUndefined(emoji)) { | ||
throw new Error('An emoji object is required when calling the emoji suggestions command'); | ||
@@ -187,0 +189,0 @@ } |
@@ -7,2 +7,3 @@ import { BaseExtensionOptions } from '@remirror/core'; | ||
} from 'prosemirror-suggest'; | ||
import AliasData from './data/aliases'; | ||
@@ -9,0 +10,0 @@ import CategoryData from './data/categories'; |
@@ -15,2 +15,3 @@ import { | ||
import matchSorter from 'match-sorter'; | ||
import aliasObject from './data/aliases'; | ||
@@ -17,0 +18,0 @@ import rawEmojiObject from './data/emojis'; |
declare module 'storejs' { | ||
export = storejs; | ||
function storejs(key: any, data: any, ...args: any[]): any; | ||
@@ -16,2 +14,4 @@ | ||
} | ||
export = storejs; | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
3881123
0.01%65332
01
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated