@portabletext/plugin-emoji-picker 1.0.2 → 1.0.4
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/README.md +72 -19
- package/dist/index.cjs +192 -2200
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -7
- package/dist/index.d.ts +0 -7
- package/dist/index.js +194 -2187
- package/dist/index.js.map +1 -1
- package/package.json +9 -8
- package/src/create-match-emojis.ts +0 -8
- package/src/emoji-picker-machine.tsx +332 -394
- package/src/emoji-picker.feature +64 -13
- package/src/emoji-picker.test.tsx +8 -2
- package/src/use-emoji-picker.ts +3 -1
- package/src/emojis.ts +0 -15216
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portabletext/plugin-emoji-picker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Easily configure an Emoji Picker for the Portable Text Editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"portabletext",
|
|
@@ -41,27 +41,28 @@
|
|
|
41
41
|
"react-compiler-runtime": "1.0.0",
|
|
42
42
|
"xstate": "^5.23.0",
|
|
43
43
|
"@portabletext/keyboard-shortcuts": "^1.1.1",
|
|
44
|
-
"@portabletext/plugin-input-rule": "~0.4.
|
|
44
|
+
"@portabletext/plugin-input-rule": "~0.4.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@sanity/pkg-utils": "^8.1.4",
|
|
48
48
|
"@types/react": "^19.2.0",
|
|
49
49
|
"@vitejs/plugin-react": "^5.0.4",
|
|
50
|
-
"@vitest/browser": "^
|
|
50
|
+
"@vitest/browser": "^4.0.4",
|
|
51
|
+
"@vitest/browser-playwright": "^4.0.4",
|
|
51
52
|
"babel-plugin-react-compiler": "1.0.0",
|
|
52
53
|
"eslint": "^9.38.0",
|
|
53
54
|
"eslint-formatter-gha": "^1.6.0",
|
|
54
|
-
"eslint-plugin-react-hooks": "7.0.
|
|
55
|
+
"eslint-plugin-react-hooks": "7.0.1",
|
|
55
56
|
"react": "^19.2.0",
|
|
56
57
|
"typescript": "5.9.3",
|
|
57
58
|
"typescript-eslint": "^8.46.1",
|
|
58
|
-
"vitest": "^
|
|
59
|
+
"vitest": "^4.0.4",
|
|
60
|
+
"@portabletext/editor": "2.16.0",
|
|
59
61
|
"@portabletext/schema": "1.2.0",
|
|
60
|
-
"racejar": "1.3.2"
|
|
61
|
-
"@portabletext/editor": "2.15.5"
|
|
62
|
+
"racejar": "1.3.2"
|
|
62
63
|
},
|
|
63
64
|
"peerDependencies": {
|
|
64
|
-
"@portabletext/editor": "^2.
|
|
65
|
+
"@portabletext/editor": "^2.16.0",
|
|
65
66
|
"react": "^19.1.1"
|
|
66
67
|
},
|
|
67
68
|
"publishConfig": {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {emojis} from './emojis'
|
|
2
1
|
import type {MatchEmojis} from './match-emojis'
|
|
3
2
|
|
|
4
3
|
/**
|
|
@@ -43,13 +42,6 @@ export type EmojiMatch =
|
|
|
43
42
|
endSlice: string
|
|
44
43
|
}
|
|
45
44
|
|
|
46
|
-
/**
|
|
47
|
-
* Proposed, but not required, default implementation of `MatchEmojis`.
|
|
48
|
-
*
|
|
49
|
-
* @beta
|
|
50
|
-
*/
|
|
51
|
-
export const matchEmojis = createMatchEmojis({emojis})
|
|
52
|
-
|
|
53
45
|
/**
|
|
54
46
|
* Proposed, but not required, function to create a `MatchEmojis` function.
|
|
55
47
|
*
|