@underverse-ui/underverse 1.0.211 → 2.0.1

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 (30) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/LICENSE +21 -0
  3. package/README.md +243 -706
  4. package/api-reference.json +1 -1
  5. package/dist/{EmojiPicker-FEJJDAWZ.js → EmojiPicker-34YATB7Z.js} +4 -4
  6. package/dist/{chunk-F6A7HJE4.js → chunk-A7XL4RDV.js} +3 -3
  7. package/dist/{chunk-CYCBSKWI.js → chunk-KGNYK5YF.js} +2 -2
  8. package/dist/{chunk-BRDGIALS.js → chunk-PLHJWXCW.js} +24 -30
  9. package/dist/{chunk-BRDGIALS.js.map → chunk-PLHJWXCW.js.map} +1 -1
  10. package/dist/{chunk-GKY5DHGR.js → chunk-UNDGI6ZI.js} +3 -3
  11. package/dist/{chunk-4E43DRP2.js → chunk-Y7SQKJ7X.js} +95 -31
  12. package/dist/chunk-Y7SQKJ7X.js.map +1 -0
  13. package/dist/{chunk-AMAILXHP.js → chunk-Z6WE65J2.js} +44 -18
  14. package/dist/chunk-Z6WE65J2.js.map +1 -0
  15. package/dist/index.cjs +280 -159
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.js +140 -103
  18. package/dist/index.js.map +1 -1
  19. package/dist/{menu-bar-6GS5LLTD.js → menu-bar-AAD3LQTN.js} +4 -4
  20. package/dist/ueditor.cjs +132 -42
  21. package/dist/ueditor.cjs.map +1 -1
  22. package/dist/ueditor.js +4 -4
  23. package/package.json +3 -1
  24. package/dist/chunk-4E43DRP2.js.map +0 -1
  25. package/dist/chunk-AMAILXHP.js.map +0 -1
  26. /package/dist/{EmojiPicker-FEJJDAWZ.js.map → EmojiPicker-34YATB7Z.js.map} +0 -0
  27. /package/dist/{chunk-F6A7HJE4.js.map → chunk-A7XL4RDV.js.map} +0 -0
  28. /package/dist/{chunk-CYCBSKWI.js.map → chunk-KGNYK5YF.js.map} +0 -0
  29. /package/dist/{chunk-GKY5DHGR.js.map → chunk-UNDGI6ZI.js.map} +0 -0
  30. /package/dist/{menu-bar-6GS5LLTD.js.map → menu-bar-AAD3LQTN.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@underverse-ui/underverse",
3
- "version": "1.0.211",
3
+ "version": "2.0.1",
4
4
  "sourceEntry": "src/index.ts",
5
5
  "totalExports": 256,
6
6
  "exports": [
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  EmojiPicker,
4
4
  EmojiPicker_default
5
- } from "./chunk-F6A7HJE4.js";
6
- import "./chunk-CYCBSKWI.js";
5
+ } from "./chunk-A7XL4RDV.js";
6
+ import "./chunk-KGNYK5YF.js";
7
7
  import "./chunk-4TYW5K4J.js";
8
- import "./chunk-BRDGIALS.js";
8
+ import "./chunk-PLHJWXCW.js";
9
9
  import "./chunk-NSBPE2FW.js";
10
10
  export {
11
11
  EmojiPicker,
12
12
  EmojiPicker_default as default
13
13
  };
14
- //# sourceMappingURL=EmojiPicker-FEJJDAWZ.js.map
14
+ //# sourceMappingURL=EmojiPicker-34YATB7Z.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EmojiGridButton
3
- } from "./chunk-CYCBSKWI.js";
3
+ } from "./chunk-KGNYK5YF.js";
4
4
  import {
5
5
  EMOJI_LIST
6
6
  } from "./chunk-4TYW5K4J.js";
@@ -8,7 +8,7 @@ import {
8
8
  Tooltip,
9
9
  cn,
10
10
  useSmartTranslations
11
- } from "./chunk-BRDGIALS.js";
11
+ } from "./chunk-PLHJWXCW.js";
12
12
 
13
13
  // src/components/EmojiPicker.tsx
14
14
  import { useEffect, useMemo, useRef, useState } from "react";
@@ -203,4 +203,4 @@ export {
203
203
  EmojiPicker,
204
204
  EmojiPicker_default
205
205
  };
206
- //# sourceMappingURL=chunk-F6A7HJE4.js.map
206
+ //# sourceMappingURL=chunk-A7XL4RDV.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cn
3
- } from "./chunk-BRDGIALS.js";
3
+ } from "./chunk-PLHJWXCW.js";
4
4
 
5
5
  // src/components/emoji-ui.tsx
6
6
  import React from "react";
@@ -71,4 +71,4 @@ export {
71
71
  getEmojiImageUrl,
72
72
  EmojiGridButton
73
73
  };
74
- //# sourceMappingURL=chunk-CYCBSKWI.js.map
74
+ //# sourceMappingURL=chunk-KGNYK5YF.js.map
@@ -1938,35 +1938,29 @@ function NextIntlAdapterProvider({
1938
1938
  messages
1939
1939
  }) {
1940
1940
  const normalizedLocale = normalizeLocale(locale, "en");
1941
- const translatorCache = React3.useMemo(
1942
- () => /* @__PURE__ */ new Map(),
1943
- [normalizedLocale, messages]
1944
- );
1945
- const translate = React3.useCallback((namespace, key, values) => {
1946
- let translator = translatorCache.get(namespace);
1947
- if (!translator) {
1948
- const runtimeTranslator = createTranslator({
1949
- locale: normalizedLocale,
1950
- messages,
1951
- namespace,
1952
- onError: () => {
1953
- }
1954
- });
1955
- translator = (translationKey, translationValues) => runtimeTranslator(translationKey, translationValues);
1956
- translatorCache.set(namespace, translator);
1957
- }
1958
- try {
1959
- return {
1960
- locale: normalizedLocale,
1961
- translated: translator(key, values)
1962
- };
1963
- } catch {
1964
- return {
1965
- locale: normalizedLocale,
1966
- translated: null
1967
- };
1941
+ const runtimeTranslator = React3.useMemo(() => createTranslator({
1942
+ locale: normalizedLocale,
1943
+ messages,
1944
+ onError: () => {
1968
1945
  }
1969
- }, [messages, normalizedLocale, translatorCache]);
1946
+ }), [messages, normalizedLocale]);
1947
+ const translate = React3.useCallback(
1948
+ (namespace, key, values) => {
1949
+ const namespacedKey = namespace ? `${namespace}.${key}` : key;
1950
+ try {
1951
+ return {
1952
+ locale: normalizedLocale,
1953
+ translated: runtimeTranslator(namespacedKey, values)
1954
+ };
1955
+ } catch {
1956
+ return {
1957
+ locale: normalizedLocale,
1958
+ translated: null
1959
+ };
1960
+ }
1961
+ },
1962
+ [normalizedLocale, runtimeTranslator]
1963
+ );
1970
1964
  const value = React3.useMemo(() => ({
1971
1965
  locale: normalizedLocale,
1972
1966
  translate
@@ -2399,7 +2393,7 @@ var Tooltip = React5.forwardRef(({
2399
2393
  onBlur: chainEventHandlers(
2400
2394
  triggerPassthroughProps.onBlur,
2401
2395
  childProps.onBlur,
2402
- (e) => {
2396
+ () => {
2403
2397
  handleBlur();
2404
2398
  }
2405
2399
  )
@@ -2472,4 +2466,4 @@ export {
2472
2466
  mergeRefs,
2473
2467
  Tooltip
2474
2468
  };
2475
- //# sourceMappingURL=chunk-BRDGIALS.js.map
2469
+ //# sourceMappingURL=chunk-PLHJWXCW.js.map