@portabletext/plugin-emoji-picker 1.0.1 → 1.0.3
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 +73 -20
- package/dist/index.cjs +6 -1908
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -9
- package/dist/index.d.ts +2 -9
- package/dist/index.js +6 -1908
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/create-match-emojis.ts +0 -8
- package/src/emoji-picker-machine.tsx +7 -6
- package/src/emoji-picker.feature +25 -3
- package/src/emoji-picker.test.tsx +7 -1
- package/src/use-emoji-picker.ts +10 -6
- package/src/emojis.ts +0 -15216
package/dist/index.d.cts
CHANGED
|
@@ -81,14 +81,14 @@ export declare type EmojiPicker<
|
|
|
81
81
|
TEmojiMatch extends BaseEmojiMatch = BaseEmojiMatch,
|
|
82
82
|
> = {
|
|
83
83
|
/**
|
|
84
|
-
* The matched keyword
|
|
84
|
+
* The matched keyword.
|
|
85
85
|
*
|
|
86
86
|
* Can be used to display the keyword in the UI or conditionally render the
|
|
87
87
|
* list of matches.
|
|
88
88
|
*
|
|
89
89
|
* @example
|
|
90
90
|
* ```tsx
|
|
91
|
-
* if (keyword.length <
|
|
91
|
+
* if (keyword.length < 1) {
|
|
92
92
|
* return null
|
|
93
93
|
* }
|
|
94
94
|
* ```
|
|
@@ -187,13 +187,6 @@ export declare type MatchEmojis<
|
|
|
187
187
|
TEmojiMatch extends BaseEmojiMatch = BaseEmojiMatch,
|
|
188
188
|
> = (query: {keyword: string}) => ReadonlyArray<TEmojiMatch>
|
|
189
189
|
|
|
190
|
-
/**
|
|
191
|
-
* Proposed, but not required, default implementation of `MatchEmojis`.
|
|
192
|
-
*
|
|
193
|
-
* @beta
|
|
194
|
-
*/
|
|
195
|
-
export declare const matchEmojis: MatchEmojis<EmojiMatch>
|
|
196
|
-
|
|
197
190
|
/**
|
|
198
191
|
* Handles the state and logic needed to create an emoji picker.
|
|
199
192
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -81,14 +81,14 @@ export declare type EmojiPicker<
|
|
|
81
81
|
TEmojiMatch extends BaseEmojiMatch = BaseEmojiMatch,
|
|
82
82
|
> = {
|
|
83
83
|
/**
|
|
84
|
-
* The matched keyword
|
|
84
|
+
* The matched keyword.
|
|
85
85
|
*
|
|
86
86
|
* Can be used to display the keyword in the UI or conditionally render the
|
|
87
87
|
* list of matches.
|
|
88
88
|
*
|
|
89
89
|
* @example
|
|
90
90
|
* ```tsx
|
|
91
|
-
* if (keyword.length <
|
|
91
|
+
* if (keyword.length < 1) {
|
|
92
92
|
* return null
|
|
93
93
|
* }
|
|
94
94
|
* ```
|
|
@@ -187,13 +187,6 @@ export declare type MatchEmojis<
|
|
|
187
187
|
TEmojiMatch extends BaseEmojiMatch = BaseEmojiMatch,
|
|
188
188
|
> = (query: {keyword: string}) => ReadonlyArray<TEmojiMatch>
|
|
189
189
|
|
|
190
|
-
/**
|
|
191
|
-
* Proposed, but not required, default implementation of `MatchEmojis`.
|
|
192
|
-
*
|
|
193
|
-
* @beta
|
|
194
|
-
*/
|
|
195
|
-
export declare const matchEmojis: MatchEmojis<EmojiMatch>
|
|
196
|
-
|
|
197
190
|
/**
|
|
198
191
|
* Handles the state and logic needed to create an emoji picker.
|
|
199
192
|
*
|