@etrepum/lexical-emoji-plan 0.0.32-nightly.20240809.0 → 0.0.33-nightly.20240812.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import { EditorConfig, LexicalEditor, LexicalNode, NodeKey, SerializedTextNode, Spread, TextNode } from 'lexical';
1
+ import { DOMConversionMap, EditorConfig, LexicalEditor, LexicalNode, NodeKey, SerializedTextNode, Spread, TextNode } from 'lexical';
2
2
 
3
3
  export type SerializedEmojiNode = Spread<{
4
4
  type: ReturnType<typeof EmojiNode.getType>;
@@ -22,6 +22,7 @@ export declare class EmojiNode extends TextNode {
22
22
  static getType(): "emoji";
23
23
  static clone(node: EmojiNode): EmojiNode;
24
24
  static importJSON(serializedNode: SerializedEmojiNode): EmojiNode;
25
+ static importDOM(): DOMConversionMap | null;
25
26
  updateDOM(prevNode: this, dom: HTMLElement, config: EditorConfig): boolean;
26
27
  createDOM(config: EditorConfig, editor?: LexicalEditor | undefined): HTMLElement;
27
28
  getShortcode(): string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"EmojiNode.d.ts","sourceRoot":"","sources":["../src/EmojiNode.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,OAAO,EACP,kBAAkB,EAClB,MAAM,EACP,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,QAAQ,EAAqC,MAAM,SAAS,CAAC;AAGtE,MAAM,MAAM,mBAAmB,GAAG,MAAM,CACtC;IACE,IAAI,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,OAAO,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,EACD,kBAAkB,CACnB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,qBAAa,SAAU,SAAQ,QAAQ;IACrC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAErB,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAA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AM,CAAC;IAC1B;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAMD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,SAAS,wHAkFpB,CAAC"}
1
+ {"version":3,"file":"EmojiPlan.d.ts","sourceRoot":"","sources":["../src/EmojiPlan.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAaH,eAAO,MAAM,eAAe,EAAE,MAAwC,CAAC;AAEvE,MAAM,WAAW,eAAe;IAC9B;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAiBD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,SAAS,wHAoFpB,CAAC"}
@@ -1,8 +1,8 @@
1
- import { findEmoji as s, $createEmojiNode as n } from "./index.js";
2
- function l(o) {
1
+ import { f as r, a as n } from "./findEmoji-BUW3hKf8.js";
2
+ function a(o) {
3
3
  if (!o.isSimpleText() || o.hasFormat("code"))
4
4
  return;
5
- const i = o.getTextContent(), t = s(i);
5
+ const i = o.getTextContent(), t = r(i);
6
6
  if (t === null)
7
7
  return;
8
8
  let e;
@@ -12,10 +12,10 @@ function l(o) {
12
12
  t.position,
13
13
  t.position + t.shortcode.length
14
14
  ), e !== void 0) {
15
- const r = n(t.emoji, t.shortcode);
16
- e.replace(r);
15
+ const s = n(t.emoji, t.shortcode);
16
+ e.replace(s);
17
17
  }
18
18
  }
19
19
  export {
20
- l as $textNodeTransform
20
+ a as $textNodeTransform
21
21
  };