@hokkiai/discord-emoji-selector 1.2.0 → 1.2.2
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.
- package/dist/index.cjs +2 -5
- package/dist/index.js +2 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17608,7 +17608,7 @@ function EmojiSelector({
|
|
|
17608
17608
|
const el = scrollRef.current;
|
|
17609
17609
|
if (!el) return;
|
|
17610
17610
|
e.preventDefault();
|
|
17611
|
-
el.scrollTop
|
|
17611
|
+
el.scrollTo({ top: el.scrollTop + e.deltaY, behavior: "smooth" });
|
|
17612
17612
|
}, []);
|
|
17613
17613
|
(0, import_react7.useEffect)(() => {
|
|
17614
17614
|
const el = scrollRef.current;
|
|
@@ -17693,10 +17693,7 @@ function EmojiSelector({
|
|
|
17693
17693
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
17694
17694
|
import_react7.Suspense,
|
|
17695
17695
|
{
|
|
17696
|
-
fallback: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime7.
|
|
17697
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "animate-spin size-8 border-2 border-white/20 border-t-white/80 rounded-full" }),
|
|
17698
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-white/60 text-sm", children: "Loading emojis..." })
|
|
17699
|
-
] }) }),
|
|
17696
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "w-full h-full flex items-center justify-center mt-12", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex flex-col items-center gap-3", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "animate-spin size-8 border-2 border-white/20 border-t-white/80 rounded-full" }) }) }),
|
|
17700
17697
|
children: emojis.map((category) => {
|
|
17701
17698
|
if (!category) return;
|
|
17702
17699
|
const categoryInfo = categoryData[category.name];
|
package/dist/index.js
CHANGED
|
@@ -17304,7 +17304,7 @@ function EmojiSelector({
|
|
|
17304
17304
|
const el = scrollRef.current;
|
|
17305
17305
|
if (!el) return;
|
|
17306
17306
|
e.preventDefault();
|
|
17307
|
-
el.scrollTop
|
|
17307
|
+
el.scrollTo({ top: el.scrollTop + e.deltaY, behavior: "smooth" });
|
|
17308
17308
|
}, []);
|
|
17309
17309
|
useEffect5(() => {
|
|
17310
17310
|
const el = scrollRef.current;
|
|
@@ -17389,10 +17389,7 @@ function EmojiSelector({
|
|
|
17389
17389
|
children: /* @__PURE__ */ jsx6(
|
|
17390
17390
|
Suspense,
|
|
17391
17391
|
{
|
|
17392
|
-
fallback: /* @__PURE__ */ jsx6("div", { className: "w-full h-full flex items-center justify-center", children: /* @__PURE__ */
|
|
17393
|
-
/* @__PURE__ */ jsx6("div", { className: "animate-spin size-8 border-2 border-white/20 border-t-white/80 rounded-full" }),
|
|
17394
|
-
/* @__PURE__ */ jsx6("span", { className: "text-white/60 text-sm", children: "Loading emojis..." })
|
|
17395
|
-
] }) }),
|
|
17392
|
+
fallback: /* @__PURE__ */ jsx6("div", { className: "w-full h-full flex items-center justify-center mt-12", children: /* @__PURE__ */ jsx6("div", { className: "flex flex-col items-center gap-3", children: /* @__PURE__ */ jsx6("div", { className: "animate-spin size-8 border-2 border-white/20 border-t-white/80 rounded-full" }) }) }),
|
|
17396
17393
|
children: emojis.map((category) => {
|
|
17397
17394
|
if (!category) return;
|
|
17398
17395
|
const categoryInfo = categoryData[category.name];
|