@etrepum/lexical-emoji-extension 0.0.36 → 0.0.37-nightly.20250716.0

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.
Files changed (2) hide show
  1. package/dist/index.js +13 -13
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3,8 +3,8 @@ import { mergeRegister as x, addClassNamesToElement as c, removeClassNamesFromEl
3
3
  import { TextNode as N } from "lexical";
4
4
  import { loadTextNodeTransform as y } from "@etrepum/lexical-emoji-extension/loadTextNodeTransform";
5
5
  import { E as j } from "./findEmoji-Bd0TTIfw.js";
6
- import { a as P, $ as h, f as D } from "./findEmoji-Bd0TTIfw.js";
7
- function B(o) {
6
+ import { a as O, $ as P, f as D } from "./findEmoji-Bd0TTIfw.js";
7
+ function h(o) {
8
8
  return String.fromCodePoint(
9
9
  ...o.split("-").map((e) => parseInt(e, 16))
10
10
  );
@@ -15,7 +15,7 @@ function I(o) {
15
15
  (e) => e.codePointAt(0).toString(16).padStart(4, "0")
16
16
  ).join("-");
17
17
  }
18
- const T = "0.0.36";
18
+ const T = "0.0.37-nightly.20250716.0";
19
19
  function $() {
20
20
  }
21
21
  function L(o, e) {
@@ -23,7 +23,7 @@ function L(o, e) {
23
23
  e(r);
24
24
  });
25
25
  }
26
- const v = typeof window > "u", F = g({
26
+ const v = typeof window > "u", B = g({
27
27
  config: C({
28
28
  emojiBaseUrl: `https://cdn.jsdelivr.net/npm/@etrepum/lexical-emoji-extension@${T}/dist/emoji`,
29
29
  emojiClass: "emoji-node",
@@ -45,23 +45,23 @@ const v = typeof window > "u", F = g({
45
45
  } else {
46
46
  const n = o.getElementByKey(i);
47
47
  if (n != null && n.textContent) {
48
- const d = `${e.emojiBaseUrl}/${I(n.textContent)}.png`;
48
+ const l = `${e.emojiBaseUrl}/${I(n.textContent)}.png`;
49
49
  if (c(
50
50
  n,
51
51
  e.emojiClass,
52
52
  e.emojiLoadingClass
53
- ), n.style.backgroundImage = `url(${d})`, !v) {
54
- const a = new Image(), l = () => {
53
+ ), n.style.backgroundImage = `url(${l})`, !v) {
54
+ const a = new Image(), d = () => {
55
55
  Object.assign(a, { onload: null, onerror: null });
56
56
  }, f = () => {
57
- l(), t.delete(i), E(n, e.emojiLoadingClass);
57
+ d(), t.delete(i), E(n, e.emojiLoadingClass);
58
58
  };
59
59
  Object.assign(a, {
60
60
  onerror: f,
61
61
  onload: () => {
62
62
  f(), c(n, e.emojiLoadedClass);
63
63
  }
64
- }), t.set(i, l), a.src = d;
64
+ }), t.set(i, d), a.src = l;
65
65
  }
66
66
  }
67
67
  }
@@ -84,11 +84,11 @@ const v = typeof window > "u", F = g({
84
84
  }
85
85
  });
86
86
  export {
87
- P as $createEmojiNode,
88
- h as $isEmojiNode,
89
- F as EmojiExtension,
87
+ O as $createEmojiNode,
88
+ P as $isEmojiNode,
89
+ B as EmojiExtension,
90
90
  j as EmojiNode,
91
91
  D as findEmoji,
92
- B as textFromUnifiedID,
92
+ h as textFromUnifiedID,
93
93
  I as unifiedIDFromText
94
94
  };
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "test": "vitest run",
17
17
  "test:watch": "vitest"
18
18
  },
19
- "version": "0.0.36",
19
+ "version": "0.0.37-nightly.20250716.0",
20
20
  "license": "MIT",
21
21
  "repository": {
22
22
  "type": "git",