@underverse-ui/underverse 2.0.20 → 2.0.22

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@underverse-ui/underverse",
3
- "version": "2.0.20",
3
+ "version": "2.0.22",
4
4
  "sourceEntry": "src/index.ts",
5
5
  "totalExports": 260,
6
6
  "exports": [
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  EmojiPicker,
4
4
  EmojiPicker_default
5
- } from "./chunk-LQCKCWVZ.js";
6
- import "./chunk-SBDZKVUJ.js";
5
+ } from "./chunk-F7MX3XXK.js";
6
+ import "./chunk-LRIRY4DG.js";
7
7
  import "./chunk-4TYW5K4J.js";
8
- import "./chunk-PZCD342B.js";
8
+ import "./chunk-A4GUPKHM.js";
9
9
  import "./chunk-NSBPE2FW.js";
10
10
  export {
11
11
  EmojiPicker,
12
12
  EmojiPicker_default as default
13
13
  };
14
- //# sourceMappingURL=EmojiPicker-SFPFCRI4.js.map
14
+ //# sourceMappingURL=EmojiPicker-NV3GQYWI.js.map
@@ -2191,8 +2191,7 @@ function UEditorPortalProvider({
2191
2191
  function useUEditorPortalContainerGetter() {
2192
2192
  return React5.useContext(UEditorPortalContext);
2193
2193
  }
2194
- function resolveUEditorPortalContainer(getPortalContainer, fallbackGetPortalContainer) {
2195
- if (typeof document === "undefined") return null;
2194
+ function resolveUEditorPortalContainer(getPortalContainer, fallbackGetPortalContainer, fallbackDocument) {
2196
2195
  const getters = [getPortalContainer, fallbackGetPortalContainer];
2197
2196
  for (const getter of getters) {
2198
2197
  if (!getter) continue;
@@ -2202,7 +2201,8 @@ function resolveUEditorPortalContainer(getPortalContainer, fallbackGetPortalCont
2202
2201
  } catch {
2203
2202
  }
2204
2203
  }
2205
- return document.body;
2204
+ if (fallbackDocument) return fallbackDocument.body;
2205
+ return typeof document !== "undefined" ? document.body : null;
2206
2206
  }
2207
2207
 
2208
2208
  // src/components/Tooltip.tsx
@@ -2572,4 +2572,4 @@ export {
2572
2572
  resolveUEditorPortalContainer,
2573
2573
  Tooltip
2574
2574
  };
2575
- //# sourceMappingURL=chunk-PZCD342B.js.map
2575
+ //# sourceMappingURL=chunk-A4GUPKHM.js.map