@underverse-ui/underverse 2.0.16 → 2.0.18
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/README.md +18 -0
- package/api-reference.json +16 -2
- package/dist/{EmojiPicker-3X2S7XPP.js → EmojiPicker-SFPFCRI4.js} +4 -4
- package/dist/{chunk-HTGAV4IG.js → chunk-LQCKCWVZ.js} +3 -3
- package/dist/{chunk-YM56RXIZ.js → chunk-MSTO23JM.js} +6 -6
- package/dist/{chunk-HEXF4EOB.js → chunk-NJ53GV74.js} +3 -3
- package/dist/{chunk-EPBYGZHZ.js → chunk-PZCD342B.js} +6 -4
- package/dist/{chunk-EPBYGZHZ.js.map → chunk-PZCD342B.js.map} +1 -1
- package/dist/{chunk-23VKHYEB.js → chunk-RSLY7UU2.js} +70 -50
- package/dist/chunk-RSLY7UU2.js.map +1 -0
- package/dist/{chunk-SKCO2GFM.js → chunk-SBDZKVUJ.js} +2 -2
- package/dist/index.cjs +111 -75
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -4
- package/dist/index.d.ts +12 -4
- package/dist/index.js +46 -32
- package/dist/index.js.map +1 -1
- package/dist/{menu-bar-7MPCNTHR.js → menu-bar-JXYQ5CH5.js} +4 -4
- package/dist/ueditor.cjs +69 -47
- package/dist/ueditor.cjs.map +1 -1
- package/dist/ueditor.js +4 -4
- package/package.json +2 -1
- package/dist/chunk-23VKHYEB.js.map +0 -1
- /package/dist/{EmojiPicker-3X2S7XPP.js.map → EmojiPicker-SFPFCRI4.js.map} +0 -0
- /package/dist/{chunk-HTGAV4IG.js.map → chunk-LQCKCWVZ.js.map} +0 -0
- /package/dist/{chunk-YM56RXIZ.js.map → chunk-MSTO23JM.js.map} +0 -0
- /package/dist/{chunk-HEXF4EOB.js.map → chunk-NJ53GV74.js.map} +0 -0
- /package/dist/{chunk-SKCO2GFM.js.map → chunk-SBDZKVUJ.js.map} +0 -0
- /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 |
|
package/api-reference.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@underverse-ui/underverse",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.18",
|
|
4
4
|
"sourceEntry": "src/index.ts",
|
|
5
|
-
"totalExports":
|
|
5
|
+
"totalExports": 259,
|
|
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",
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
EmojiPicker,
|
|
4
4
|
EmojiPicker_default
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-LQCKCWVZ.js";
|
|
6
|
+
import "./chunk-SBDZKVUJ.js";
|
|
7
7
|
import "./chunk-4TYW5K4J.js";
|
|
8
|
-
import "./chunk-
|
|
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-
|
|
14
|
+
//# sourceMappingURL=EmojiPicker-SFPFCRI4.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EmojiGridButton
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
208
|
+
//# sourceMappingURL=chunk-LQCKCWVZ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EmojiGridButton,
|
|
3
3
|
formatEmojiCountLabel
|
|
4
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
14976
|
+
//# sourceMappingURL=chunk-MSTO23JM.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPanelBorderRadiusClass,
|
|
3
3
|
useUnderverseUIConfig
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RSLY7UU2.js";
|
|
5
5
|
import {
|
|
6
6
|
cn,
|
|
7
7
|
useGlobalI18n
|
|
8
|
-
} from "./chunk-
|
|
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-
|
|
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
|
-
|
|
2196
|
+
const getters = [getPortalContainer, fallbackGetPortalContainer];
|
|
2197
|
+
for (const getter of getters) {
|
|
2198
|
+
if (!getter) continue;
|
|
2197
2199
|
try {
|
|
2198
|
-
const container =
|
|
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-
|
|
2575
|
+
//# sourceMappingURL=chunk-PZCD342B.js.map
|