@underverse-ui/underverse 2.0.17 → 2.0.19

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 (29) hide show
  1. package/README.md +18 -0
  2. package/api-reference.json +23 -2
  3. package/dist/{EmojiPicker-3X2S7XPP.js → EmojiPicker-SFPFCRI4.js} +4 -4
  4. package/dist/{chunk-HTGAV4IG.js → chunk-LQCKCWVZ.js} +3 -3
  5. package/dist/{chunk-YM56RXIZ.js → chunk-MSTO23JM.js} +6 -6
  6. package/dist/{chunk-HEXF4EOB.js → chunk-NJ53GV74.js} +3 -3
  7. package/dist/{chunk-EPBYGZHZ.js → chunk-PZCD342B.js} +6 -4
  8. package/dist/{chunk-EPBYGZHZ.js.map → chunk-PZCD342B.js.map} +1 -1
  9. package/dist/{chunk-23VKHYEB.js → chunk-RSLY7UU2.js} +70 -50
  10. package/dist/chunk-RSLY7UU2.js.map +1 -0
  11. package/dist/{chunk-SKCO2GFM.js → chunk-SBDZKVUJ.js} +2 -2
  12. package/dist/index.cjs +114 -61
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +10 -3
  15. package/dist/index.d.ts +10 -3
  16. package/dist/index.js +49 -18
  17. package/dist/index.js.map +1 -1
  18. package/dist/{menu-bar-7MPCNTHR.js → menu-bar-JXYQ5CH5.js} +4 -4
  19. package/dist/ueditor.cjs +69 -47
  20. package/dist/ueditor.cjs.map +1 -1
  21. package/dist/ueditor.js +4 -4
  22. package/package.json +2 -1
  23. package/dist/chunk-23VKHYEB.js.map +0 -1
  24. /package/dist/{EmojiPicker-3X2S7XPP.js.map → EmojiPicker-SFPFCRI4.js.map} +0 -0
  25. /package/dist/{chunk-HTGAV4IG.js.map → chunk-LQCKCWVZ.js.map} +0 -0
  26. /package/dist/{chunk-YM56RXIZ.js.map → chunk-MSTO23JM.js.map} +0 -0
  27. /package/dist/{chunk-HEXF4EOB.js.map → chunk-NJ53GV74.js.map} +0 -0
  28. /package/dist/{chunk-SKCO2GFM.js.map → chunk-SBDZKVUJ.js.map} +0 -0
  29. /package/dist/{menu-bar-7MPCNTHR.js.map → menu-bar-JXYQ5CH5.js.map} +0 -0
package/README.md CHANGED
@@ -282,6 +282,24 @@ import {
282
282
  </OverlayScrollbarProvider>;
283
283
  ```
284
284
 
285
+ When a `Combobox` is rendered inside a secondary browser window, point its
286
+ portal at that window's document. Existing usages can omit this prop and keep
287
+ using the current document body.
288
+
289
+ ```tsx
290
+ const popupContainerRef = useRef<HTMLDivElement>(null);
291
+
292
+ <Combobox
293
+ usePortal
294
+ getPortalContainer={() =>
295
+ popupContainerRef.current?.ownerDocument.body ?? null
296
+ }
297
+ value={value}
298
+ options={options}
299
+ onChange={setValue}
300
+ />;
301
+ ```
302
+
285
303
  ## Component families
286
304
 
287
305
  | Area | Components |
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "package": "@underverse-ui/underverse",
3
- "version": "2.0.17",
3
+ "version": "2.0.19",
4
4
  "sourceEntry": "src/index.ts",
5
- "totalExports": 257,
5
+ "totalExports": 260,
6
6
  "exports": [
7
7
  {
8
8
  "name": "*",
@@ -1114,6 +1114,20 @@
1114
1114
  "reexport": true,
1115
1115
  "local": false
1116
1116
  },
1117
+ {
1118
+ "name": "PopoverPlacement",
1119
+ "kind": "type",
1120
+ "source": "./components/Popover",
1121
+ "reexport": true,
1122
+ "local": false
1123
+ },
1124
+ {
1125
+ "name": "PopoverProps",
1126
+ "kind": "type",
1127
+ "source": "./components/Popover",
1128
+ "reexport": true,
1129
+ "local": false
1130
+ },
1117
1131
  {
1118
1132
  "name": "prepareUEditorContentForSave",
1119
1133
  "kind": "value",
@@ -1519,6 +1533,13 @@
1519
1533
  "local": false,
1520
1534
  "aliasOf": "default"
1521
1535
  },
1536
+ {
1537
+ "name": "ToastProviderProps",
1538
+ "kind": "type",
1539
+ "source": "./components/Toast",
1540
+ "reexport": true,
1541
+ "local": false
1542
+ },
1522
1543
  {
1523
1544
  "name": "ToggleGroup",
1524
1545
  "kind": "value",
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  EmojiPicker,
4
4
  EmojiPicker_default
5
- } from "./chunk-HTGAV4IG.js";
6
- import "./chunk-SKCO2GFM.js";
5
+ } from "./chunk-LQCKCWVZ.js";
6
+ import "./chunk-SBDZKVUJ.js";
7
7
  import "./chunk-4TYW5K4J.js";
8
- import "./chunk-EPBYGZHZ.js";
8
+ import "./chunk-PZCD342B.js";
9
9
  import "./chunk-NSBPE2FW.js";
10
10
  export {
11
11
  EmojiPicker,
12
12
  EmojiPicker_default as default
13
13
  };
14
- //# sourceMappingURL=EmojiPicker-3X2S7XPP.js.map
14
+ //# sourceMappingURL=EmojiPicker-SFPFCRI4.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  EmojiGridButton
3
- } from "./chunk-SKCO2GFM.js";
3
+ } from "./chunk-SBDZKVUJ.js";
4
4
  import {
5
5
  EMOJI_LIST
6
6
  } from "./chunk-4TYW5K4J.js";
@@ -9,7 +9,7 @@ import {
9
9
  cn,
10
10
  formControlOutlineClass,
11
11
  useSmartTranslations
12
- } from "./chunk-EPBYGZHZ.js";
12
+ } from "./chunk-PZCD342B.js";
13
13
 
14
14
  // src/components/EmojiPicker.tsx
15
15
  import { useEffect, useMemo, useRef, useState } from "react";
@@ -205,4 +205,4 @@ export {
205
205
  EmojiPicker,
206
206
  EmojiPicker_default
207
207
  };
208
- //# sourceMappingURL=chunk-HTGAV4IG.js.map
208
+ //# sourceMappingURL=chunk-LQCKCWVZ.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  EmojiGridButton,
3
3
  formatEmojiCountLabel
4
- } from "./chunk-SKCO2GFM.js";
4
+ } from "./chunk-SBDZKVUJ.js";
5
5
  import {
6
6
  COLUMN_RESIZE_LINE_THICKNESS,
7
7
  CellBgColorIcon,
@@ -55,7 +55,7 @@ import {
55
55
  sanitizeUEditorUrl,
56
56
  useEditorColors,
57
57
  useSharedEditorUiRenderState
58
- } from "./chunk-23VKHYEB.js";
58
+ } from "./chunk-RSLY7UU2.js";
59
59
  import {
60
60
  Tooltip,
61
61
  UEditorPortalProvider,
@@ -65,7 +65,7 @@ import {
65
65
  resolveUEditorPortalContainer,
66
66
  useSmartTranslations,
67
67
  useUEditorPortalContainerGetter
68
- } from "./chunk-EPBYGZHZ.js";
68
+ } from "./chunk-PZCD342B.js";
69
69
 
70
70
  // src/components/UEditor/prepare-content-for-save.ts
71
71
  var MIME_EXTENSION_MAP = {
@@ -515,7 +515,7 @@ import { NodeViewWrapper, NodeViewContent } from "@tiptap/react";
515
515
  import React from "react";
516
516
  import { jsx } from "react/jsx-runtime";
517
517
  var LazyBaseEmojiPicker = React.lazy(async () => {
518
- const { EmojiPicker: EmojiPicker2 } = await import("./EmojiPicker-3X2S7XPP.js");
518
+ const { EmojiPicker: EmojiPicker2 } = await import("./EmojiPicker-SFPFCRI4.js");
519
519
  return { default: EmojiPicker2 };
520
520
  });
521
521
  var EmojiPicker = ({ onSelect }) => {
@@ -14504,7 +14504,7 @@ function useUEditorOutput({
14504
14504
  // src/components/UEditor/UEditor.tsx
14505
14505
  import { jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
14506
14506
  var LazyMenuBar = React15.lazy(async () => {
14507
- const { MenuBar } = await import("./menu-bar-7MPCNTHR.js");
14507
+ const { MenuBar } = await import("./menu-bar-JXYQ5CH5.js");
14508
14508
  return { default: MenuBar };
14509
14509
  });
14510
14510
  var UEditor = React15.forwardRef(({
@@ -14973,4 +14973,4 @@ export {
14973
14973
  prepareUEditorContentForSave,
14974
14974
  UEditor_default
14975
14975
  };
14976
- //# sourceMappingURL=chunk-YM56RXIZ.js.map
14976
+ //# sourceMappingURL=chunk-MSTO23JM.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getPanelBorderRadiusClass,
3
3
  useUnderverseUIConfig
4
- } from "./chunk-23VKHYEB.js";
4
+ } from "./chunk-RSLY7UU2.js";
5
5
  import {
6
6
  cn,
7
7
  useGlobalI18n
8
- } from "./chunk-EPBYGZHZ.js";
8
+ } from "./chunk-PZCD342B.js";
9
9
 
10
10
  // src/components/Modal.tsx
11
11
  import * as React from "react";
@@ -196,4 +196,4 @@ var Modal_default = Modal;
196
196
  export {
197
197
  Modal_default
198
198
  };
199
- //# sourceMappingURL=chunk-HEXF4EOB.js.map
199
+ //# sourceMappingURL=chunk-NJ53GV74.js.map
@@ -2191,11 +2191,13 @@ function UEditorPortalProvider({
2191
2191
  function useUEditorPortalContainerGetter() {
2192
2192
  return React5.useContext(UEditorPortalContext);
2193
2193
  }
2194
- function resolveUEditorPortalContainer(getPortalContainer) {
2194
+ function resolveUEditorPortalContainer(getPortalContainer, fallbackGetPortalContainer) {
2195
2195
  if (typeof document === "undefined") return null;
2196
- if (getPortalContainer) {
2196
+ const getters = [getPortalContainer, fallbackGetPortalContainer];
2197
+ for (const getter of getters) {
2198
+ if (!getter) continue;
2197
2199
  try {
2198
- const container = getPortalContainer();
2200
+ const container = getter();
2199
2201
  if (container) return container;
2200
2202
  } catch {
2201
2203
  }
@@ -2570,4 +2572,4 @@ export {
2570
2572
  resolveUEditorPortalContainer,
2571
2573
  Tooltip
2572
2574
  };
2573
- //# sourceMappingURL=chunk-EPBYGZHZ.js.map
2575
+ //# sourceMappingURL=chunk-PZCD342B.js.map