@etrepum/lexical-emoji-plan 0.0.28-nightly.20240705.0 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/$textNodeTransform.d.ts.map +1 -1
- package/dist/EmojiNode.d.ts +10 -3
- package/dist/EmojiNode.d.ts.map +1 -1
- package/dist/EmojiPlan.d.ts +6 -2
- package/dist/EmojiPlan.d.ts.map +1 -1
- package/dist/_textNodeTransform-JUH2dtPZ.js +21 -0
- package/dist/findEmoji.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1997 -5
- package/dist/supportedEmojis.data.d.ts.map +1 -1
- package/dist/unifiedID.d.ts +1 -1
- package/package.json +1 -1
- package/dist/_textNodeTransform-CugvQRN7.js +0 -20
- package/dist/index-EQ2IHeqn.js +0 -1963
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"supportedEmojis.data.d.ts","sourceRoot":"","sources":["../src/supportedEmojis.data.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"supportedEmojis.data.d.ts","sourceRoot":"","sources":["../src/supportedEmojis.data.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,QAYf,CAAC"}
|
package/dist/unifiedID.d.ts
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
* assert(textFromUnifiedId("1F926-200D-2642-FE0F") === "🤦♂️");
|
7
7
|
* ```
|
8
8
|
*
|
9
|
-
* @param unifiedID The hyphen delimited hex representation of the UTF-16 code points in the emoji
|
9
|
+
* @param unifiedID - The hyphen delimited hex representation of the UTF-16 code points in the emoji
|
10
10
|
* @returns The emoji as a string
|
11
11
|
*/
|
12
12
|
export declare function textFromUnifiedID(unifiedID: string): string;
|
package/package.json
CHANGED
@@ -1,20 +0,0 @@
|
|
1
|
-
import { f as r, $ as n } from "./index-EQ2IHeqn.js";
|
2
|
-
function l(e) {
|
3
|
-
if (!e.isSimpleText() || e.hasFormat("code"))
|
4
|
-
return;
|
5
|
-
const i = e.getTextContent(), t = r(i);
|
6
|
-
if (t === null)
|
7
|
-
return;
|
8
|
-
let o;
|
9
|
-
t.position === 0 ? [o] = e.splitText(
|
10
|
-
t.position + t.shortcode.length
|
11
|
-
) : [, o] = e.splitText(
|
12
|
-
t.position,
|
13
|
-
t.position + t.shortcode.length
|
14
|
-
);
|
15
|
-
const s = n(t.emoji);
|
16
|
-
o.replace(s);
|
17
|
-
}
|
18
|
-
export {
|
19
|
-
l as $textNodeTransform
|
20
|
-
};
|