@tiptap/extension-emoji 3.10.7 → 3.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -7
- package/src/generate.ts +10 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiptap/extension-emoji",
|
|
3
3
|
"description": "emoji extension for tiptap",
|
|
4
|
-
"version": "3.10.
|
|
4
|
+
"version": "3.10.8",
|
|
5
5
|
"homepage": "https://tiptap.dev/api/nodes/emoji",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"tiptap",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@tiptap/core": "^3.10.
|
|
40
|
-
"@tiptap/
|
|
41
|
-
"@tiptap/
|
|
39
|
+
"@tiptap/core": "^3.10.8",
|
|
40
|
+
"@tiptap/pm": "^3.10.8",
|
|
41
|
+
"@tiptap/suggestion": "^3.10.8"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"emoji-regex": "^10.4.0",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"emoji-datasource": "^7.0.2",
|
|
50
50
|
"json5": "^2.2.3",
|
|
51
51
|
"tsm": "^2.3.0",
|
|
52
|
-
"@tiptap/core": "^3.10.
|
|
53
|
-
"@tiptap/pm": "^3.10.
|
|
54
|
-
"@tiptap/suggestion": "^3.10.
|
|
52
|
+
"@tiptap/core": "^3.10.8",
|
|
53
|
+
"@tiptap/pm": "^3.10.8",
|
|
54
|
+
"@tiptap/suggestion": "^3.10.8"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "tsup",
|
package/src/generate.ts
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import dataSource from 'emoji-datasource/emoji.json'
|
|
2
|
-
import data from 'emojibase-data/en/data.json'
|
|
3
|
-
import messages from 'emojibase-data/en/messages.json'
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import dataSource from 'emoji-datasource/emoji.json' with { type: 'json' }
|
|
2
|
+
import data from 'emojibase-data/en/data.json' with { type: 'json' }
|
|
3
|
+
import messages from 'emojibase-data/en/messages.json' with { type: 'json' }
|
|
4
|
+
import emojibaseShortcodesJson from 'emojibase-data/en/shortcodes/emojibase.json' with { type: 'json' }
|
|
5
|
+
import gitHubShortcodesJson from 'emojibase-data/en/shortcodes/github.json' with { type: 'json' }
|
|
6
6
|
import fs from 'fs'
|
|
7
7
|
import json5 from 'json5'
|
|
8
8
|
|
|
9
9
|
import type { EmojiItem } from './emoji.js'
|
|
10
10
|
import { removeVariationSelector } from './helpers/removeVariationSelector.js'
|
|
11
11
|
|
|
12
|
+
type Shortcodes = Record<string, string | string[]>
|
|
13
|
+
|
|
14
|
+
const emojibaseShortcodes = emojibaseShortcodesJson as Shortcodes
|
|
15
|
+
const gitHubShortcodes = gitHubShortcodesJson as Shortcodes
|
|
16
|
+
|
|
12
17
|
const emojis: EmojiItem[] = data
|
|
13
18
|
// .filter(emoji => emoji.version > 0 && emoji.version < 14)
|
|
14
19
|
.map(emoji => {
|