@etrepum/lexical-emoji-plan 0.0.34 → 0.0.36-nightly.20240813.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,3 @@
1
1
  import { TextNode } from 'lexical';
2
-
3
2
  export declare function $textNodeTransform(node: TextNode): void;
4
3
  //# sourceMappingURL=$textNodeTransform.d.ts.map
@@ -1,5 +1,4 @@
1
1
  import { DOMConversionMap, EditorConfig, LexicalEditor, LexicalNode, NodeKey, SerializedTextNode, Spread, TextNode } from 'lexical';
2
-
3
2
  export type SerializedEmojiNode = Spread<{
4
3
  type: ReturnType<typeof EmojiNode.getType>;
5
4
  shortcode?: string;
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { mergeRegister as E, addClassNamesToElement as c, removeClassNamesFromEl
3
3
  import { TextNode as N } from "lexical";
4
4
  import { loadTextNodeTransform as y } from "@etrepum/lexical-emoji-plan/loadTextNodeTransform";
5
5
  import { E as p } from "./findEmoji-BUW3hKf8.js";
6
- import { a as O, $ as h, f as D } from "./findEmoji-BUW3hKf8.js";
6
+ import { a as K, $ as O, f as D } from "./findEmoji-BUW3hKf8.js";
7
7
  function U(o) {
8
8
  return String.fromCodePoint(
9
9
  ...o.split("-").map((e) => parseInt(e, 16))
@@ -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.34";
18
+ const T = "0.0.36-nightly.20240813.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", B = g({
26
+ const v = typeof window > "u", h = g({
27
27
  config: C({
28
28
  emojiBaseUrl: `https://cdn.jsdelivr.net/npm/@etrepum/lexical-emoji-plan@${T}/dist/emoji`,
29
29
  emojiClass: "emoji-node",
@@ -84,10 +84,10 @@ const v = typeof window > "u", B = g({
84
84
  }
85
85
  });
86
86
  export {
87
- O as $createEmojiNode,
88
- h as $isEmojiNode,
87
+ K as $createEmojiNode,
88
+ O as $isEmojiNode,
89
89
  p as EmojiNode,
90
- B as EmojiPlan,
90
+ h as EmojiPlan,
91
91
  D as findEmoji,
92
92
  U as textFromUnifiedID,
93
93
  I as unifiedIDFromText
@@ -1,5 +1,4 @@
1
1
  import { $textNodeTransform } from './$textNodeTransform';
2
-
3
2
  type MaybePromise<T> = T | Promise<T>;
4
3
  export declare function loadTextNodeTransform(): MaybePromise<typeof $textNodeTransform>;
5
4
  export {};
@@ -1,4 +1,3 @@
1
1
  import { $textNodeTransform } from './$textNodeTransform';
2
-
3
2
  export declare function loadTextNodeTransform(): typeof $textNodeTransform;
4
3
  //# sourceMappingURL=loadTextNodeTransform.node.d.ts.map
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "test": "vitest run",
17
17
  "test:watch": "vitest"
18
18
  },
19
- "version": "0.0.34",
19
+ "version": "0.0.36-nightly.20240813.0",
20
20
  "license": "MIT",
21
21
  "repository": {
22
22
  "type": "git",
@@ -44,17 +44,21 @@
44
44
  "eslint": "^8.57.0",
45
45
  "jsdom": "^24.1.0",
46
46
  "tslib": "^2.6.2",
47
- "typescript": "^5.4.5",
48
- "vite": "^5.2.11",
47
+ "typescript": "^5.5.2",
48
+ "vite": "^5.4.0",
49
49
  "vite-plugin-data": "^0.2.5",
50
- "vite-plugin-dts": "*",
51
- "vite-plugin-package-version": "*",
50
+ "vite-plugin-dts": "^4.0.2",
51
+ "vite-plugin-package-version": "^1.1.0",
52
52
  "vite-plugin-static-copy": "^1.0.5",
53
- "vitest": "*"
53
+ "vitest": "^2.0.5"
54
54
  },
55
55
  "exports": {
56
- ".": "./dist/index.js",
56
+ ".": {
57
+ "types": "./dist/index.d.ts",
58
+ "default": "./dist/index.js"
59
+ },
57
60
  "./loadTextNodeTransform": {
61
+ "types": "./dist/loadTextNodeTransform.d.ts",
58
62
  "browser": "./dist/loadTextNodeTransform.js",
59
63
  "default": "./dist/loadTextNodeTransform.node.js"
60
64
  },