generated from remirror/template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make
@svgmoji/core
a peer dependency
- Loading branch information
Showing
13 changed files
with
153 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'@svgmoji/blob': minor | ||
'@svgmoji/noto': minor | ||
'@svgmoji/openmoji': minor | ||
'@svgmoji/twemoji': minor | ||
--- | ||
|
||
- Make `@svgmoji/core` a peer dependency. | ||
- Improve type inference by setting the `name` to a `const` for `Blobmoji`, `Notomoji`, `Twemoji` and `Openmoji` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './blob'; | ||
export * from './blobmoji'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default as EMOJI_REGEX } from 'emojibase-regex/emoji'; | ||
export { default as EMOTICON_REGEX } from 'emojibase-regex/emoticon'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
import type { Emoji as BaseEmoji, SkinTone } from 'emojibase'; | ||
|
||
export interface FlatEmoji extends Omit<BaseEmoji, 'skins' | 'tone'> { | ||
/** | ||
* The hexcodes for the skins contained. | ||
*/ | ||
skins?: string[]; | ||
|
||
/** | ||
* The skin tone. | ||
*/ | ||
tone?: SkinToneTuple; | ||
} | ||
|
||
export interface Emoji extends Omit<FlatEmoji, 'skins'> { | ||
/** | ||
* The populated skin value. | ||
*/ | ||
skins?: FlatEmoji[]; | ||
} | ||
|
||
export interface HexcodeWithTone { | ||
hexcode: string; | ||
tone: SkinToneTuple; | ||
} | ||
|
||
/** | ||
* The skin tone which allows a second tone for complex emoji that support multiple tones for | ||
* different characters. | ||
*/ | ||
export type SkinToneTuple = [primary: SkinTone, secondary?: SkinTone]; | ||
|
||
/** | ||
* A minified emoji object which takes the flattened emoji value and minifies all the keys to | ||
* prevent a bloated json file. | ||
*/ | ||
export interface MinifiedEmoji { | ||
/** | ||
* Alias for `annotation` property. | ||
*/ | ||
a: FlatEmoji['annotation']; | ||
|
||
/** | ||
* Alias for `emoji` property. | ||
*/ | ||
e: FlatEmoji['emoji']; | ||
|
||
/** | ||
* Alias for `emoticon` property. | ||
*/ | ||
u?: FlatEmoji['emoticon']; | ||
|
||
/** | ||
* Alias for `gender` property. | ||
*/ | ||
g?: FlatEmoji['gender']; | ||
|
||
/** | ||
* Alias for `group` property. | ||
*/ | ||
b?: FlatEmoji['group']; | ||
|
||
/** | ||
* Alias for `hexcode` property. | ||
*/ | ||
h: FlatEmoji['hexcode']; | ||
|
||
/** | ||
* Alias for `order` property. | ||
*/ | ||
o?: FlatEmoji['order']; | ||
|
||
/** | ||
* Alias for `shortcodes` property. | ||
*/ | ||
s?: FlatEmoji['shortcodes']; | ||
|
||
/** | ||
* Alias for `skins` property. | ||
*/ | ||
k?: FlatEmoji['skins']; | ||
|
||
/** | ||
* Alias for `subgroup` property. | ||
*/ | ||
c?: FlatEmoji['subgroup']; | ||
|
||
/** | ||
* Alias for `tags` property. | ||
*/ | ||
t?: FlatEmoji['tags']; | ||
|
||
/** | ||
* Alias for `text` property. | ||
*/ | ||
d: FlatEmoji['text']; | ||
|
||
/** | ||
* Alias for `tone` property. | ||
*/ | ||
f?: FlatEmoji['tone']; | ||
|
||
/** | ||
* Alias for `type` property. | ||
*/ | ||
i: FlatEmoji['type']; | ||
|
||
/** | ||
* Alias for `version` property. | ||
*/ | ||
v: FlatEmoji['version']; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './noto'; | ||
export * from './notomoji'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters