From 319abe4b8f66c458e1117efd0a6ad8a261783457 Mon Sep 17 00:00:00 2001 From: Samuel Alev Date: Thu, 22 Feb 2024 17:09:42 +0100 Subject: [PATCH 1/2] fix: assert json data --- packages/emoji/src/utils/EmojiLibrary/EmojiFloatingLibrary.ts | 2 +- packages/emoji/src/utils/EmojiLibrary/EmojiInlineLibrary.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/emoji/src/utils/EmojiLibrary/EmojiFloatingLibrary.ts b/packages/emoji/src/utils/EmojiLibrary/EmojiFloatingLibrary.ts index d9a6bf5427..bc86c2dfc4 100644 --- a/packages/emoji/src/utils/EmojiLibrary/EmojiFloatingLibrary.ts +++ b/packages/emoji/src/utils/EmojiLibrary/EmojiFloatingLibrary.ts @@ -1,4 +1,4 @@ -import emojiMartData from '@emoji-mart/data'; +import emojiMartData from '@emoji-mart/data' assert { type: 'json' }; import { defaultCategories } from '../../constants'; import { diff --git a/packages/emoji/src/utils/EmojiLibrary/EmojiInlineLibrary.ts b/packages/emoji/src/utils/EmojiLibrary/EmojiInlineLibrary.ts index cee9aea0ac..d4ef1a9ca0 100644 --- a/packages/emoji/src/utils/EmojiLibrary/EmojiInlineLibrary.ts +++ b/packages/emoji/src/utils/EmojiLibrary/EmojiInlineLibrary.ts @@ -1,4 +1,4 @@ -import emojiMartData from '@emoji-mart/data'; +import emojiMartData from '@emoji-mart/data' assert { type: 'json' }; import { Emoji, From 546b8b4086653440342aeeab2e2343e3d1a09e27 Mon Sep 17 00:00:00 2001 From: Samuel Alev Date: Thu, 22 Feb 2024 18:49:01 +0100 Subject: [PATCH 2/2] chore: add changeset file --- .changeset/old-numbers-ring.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/old-numbers-ring.md diff --git a/.changeset/old-numbers-ring.md b/.changeset/old-numbers-ring.md new file mode 100644 index 0000000000..82a7cef109 --- /dev/null +++ b/.changeset/old-numbers-ring.md @@ -0,0 +1,5 @@ +--- +"@udecode/plate-emoji": patch +--- + +fix: add assertion as JSON on emoji mart data so it can be read in ESM