@mieweb/ui 0.11.0-dev.2 → 0.11.0-dev.4
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/{chunk-7UTBDFFL.cjs → chunk-2S76TRBJ.cjs} +4 -4
- package/dist/{chunk-7UTBDFFL.cjs.map → chunk-2S76TRBJ.cjs.map} +1 -1
- package/dist/{chunk-PJ6CC53R.cjs → chunk-AKMTPCLC.cjs} +13 -8
- package/dist/chunk-AKMTPCLC.cjs.map +1 -0
- package/dist/{chunk-VVDE4CHU.js → chunk-C4GEPUE7.js} +13 -8
- package/dist/chunk-C4GEPUE7.js.map +1 -0
- package/dist/{chunk-NUB5HRKS.js → chunk-DT3X3RBM.js} +3 -3
- package/dist/{chunk-NUB5HRKS.js.map → chunk-DT3X3RBM.js.map} +1 -1
- package/dist/{chunk-MYAU2ZUC.cjs → chunk-GDKOYVX3.cjs} +14 -10
- package/dist/chunk-GDKOYVX3.cjs.map +1 -0
- package/dist/{chunk-S2JZL4JC.js → chunk-JM4YFLO4.js} +22 -15
- package/dist/chunk-JM4YFLO4.js.map +1 -0
- package/dist/{chunk-QX6AAVDE.cjs → chunk-L4APW65W.cjs} +15 -6
- package/dist/chunk-L4APW65W.cjs.map +1 -0
- package/dist/{chunk-RM2HPQIC.js → chunk-MQ5WJ3NO.js} +4 -4
- package/dist/chunk-MQ5WJ3NO.js.map +1 -0
- package/dist/{chunk-XRVMYT5G.cjs → chunk-QKW2QCGI.cjs} +5 -5
- package/dist/chunk-QKW2QCGI.cjs.map +1 -0
- package/dist/{chunk-O6XDA3SI.js → chunk-UY2EZYIC.js} +15 -6
- package/dist/chunk-UY2EZYIC.js.map +1 -0
- package/dist/{chunk-2BPIVWAK.js → chunk-V5VPECJI.js} +14 -10
- package/dist/chunk-V5VPECJI.js.map +1 -0
- package/dist/{chunk-O6BJMVGT.cjs → chunk-XZNHS7YQ.cjs} +24 -17
- package/dist/chunk-XZNHS7YQ.cjs.map +1 -0
- package/dist/components/AudioPlayer/index.cjs +7 -6
- package/dist/components/AudioPlayer/index.js +2 -1
- package/dist/components/CollabStatus/index.cjs +5 -4
- package/dist/components/CollabStatus/index.js +2 -1
- package/dist/components/MediaEditor/index.cjs +8 -7
- package/dist/components/MediaEditor/index.js +3 -2
- package/dist/components/Slider/index.cjs +6 -5
- package/dist/components/Slider/index.js +2 -1
- package/dist/components/SliderCalculator/index.cjs +5 -4
- package/dist/components/SliderCalculator/index.js +3 -2
- package/dist/components/SuperChat/index.cjs +11 -11
- package/dist/components/SuperChat/index.cjs.map +1 -1
- package/dist/components/SuperChat/index.js +3 -3
- package/dist/components/SuperChat/index.js.map +1 -1
- package/dist/index.cjs +139 -138
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +94 -93
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-2BPIVWAK.js.map +0 -1
- package/dist/chunk-MYAU2ZUC.cjs.map +0 -1
- package/dist/chunk-O6BJMVGT.cjs.map +0 -1
- package/dist/chunk-O6XDA3SI.js.map +0 -1
- package/dist/chunk-PJ6CC53R.cjs.map +0 -1
- package/dist/chunk-QX6AAVDE.cjs.map +0 -1
- package/dist/chunk-RM2HPQIC.js.map +0 -1
- package/dist/chunk-S2JZL4JC.js.map +0 -1
- package/dist/chunk-VVDE4CHU.js.map +0 -1
- package/dist/chunk-XRVMYT5G.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -42,22 +42,22 @@ var chunkGYXSF6BJ_cjs = require('./chunk-GYXSF6BJ.cjs');
|
|
|
42
42
|
var chunkXPWFIDZM_cjs = require('./chunk-XPWFIDZM.cjs');
|
|
43
43
|
var chunkAHHFFXJR_cjs = require('./chunk-AHHFFXJR.cjs');
|
|
44
44
|
var chunk7RV6CAP6_cjs = require('./chunk-7RV6CAP6.cjs');
|
|
45
|
-
var
|
|
45
|
+
var chunkQKW2QCGI_cjs = require('./chunk-QKW2QCGI.cjs');
|
|
46
46
|
var chunkC66JR43M_cjs = require('./chunk-C66JR43M.cjs');
|
|
47
47
|
var chunkWGXJNCRG_cjs = require('./chunk-WGXJNCRG.cjs');
|
|
48
48
|
var chunkIJYTASQQ_cjs = require('./chunk-IJYTASQQ.cjs');
|
|
49
49
|
var chunk3SZQRMHM_cjs = require('./chunk-3SZQRMHM.cjs');
|
|
50
50
|
var chunkOZOSWBSI_cjs = require('./chunk-OZOSWBSI.cjs');
|
|
51
51
|
var chunkKDW6BD4O_cjs = require('./chunk-KDW6BD4O.cjs');
|
|
52
|
-
var
|
|
52
|
+
var chunk2S76TRBJ_cjs = require('./chunk-2S76TRBJ.cjs');
|
|
53
53
|
var chunkYGA35Z2P_cjs = require('./chunk-YGA35Z2P.cjs');
|
|
54
54
|
var chunkOHKO5THF_cjs = require('./chunk-OHKO5THF.cjs');
|
|
55
55
|
var chunk2I4IRQQG_cjs = require('./chunk-2I4IRQQG.cjs');
|
|
56
56
|
var chunkXWZEECEX_cjs = require('./chunk-XWZEECEX.cjs');
|
|
57
57
|
var chunk5MXO6PEV_cjs = require('./chunk-5MXO6PEV.cjs');
|
|
58
58
|
var chunkJTSKPDPH_cjs = require('./chunk-JTSKPDPH.cjs');
|
|
59
|
-
var
|
|
60
|
-
var
|
|
59
|
+
var chunkXZNHS7YQ_cjs = require('./chunk-XZNHS7YQ.cjs');
|
|
60
|
+
var chunkGDKOYVX3_cjs = require('./chunk-GDKOYVX3.cjs');
|
|
61
61
|
var chunkAJPFQF3H_cjs = require('./chunk-AJPFQF3H.cjs');
|
|
62
62
|
require('./chunk-GLXTVCHN.cjs');
|
|
63
63
|
var chunkKQ6GLYFZ_cjs = require('./chunk-KQ6GLYFZ.cjs');
|
|
@@ -96,11 +96,11 @@ var chunkGM32IDVL_cjs = require('./chunk-GM32IDVL.cjs');
|
|
|
96
96
|
var chunk7AECNMYV_cjs = require('./chunk-7AECNMYV.cjs');
|
|
97
97
|
require('./chunk-L6K4PRZK.cjs');
|
|
98
98
|
var chunkIVGI353O_cjs = require('./chunk-IVGI353O.cjs');
|
|
99
|
-
var
|
|
99
|
+
var chunkL4APW65W_cjs = require('./chunk-L4APW65W.cjs');
|
|
100
100
|
var chunkVXW7D5LR_cjs = require('./chunk-VXW7D5LR.cjs');
|
|
101
101
|
var chunkNYJIXR4Y_cjs = require('./chunk-NYJIXR4Y.cjs');
|
|
102
102
|
var chunkUTIPENPW_cjs = require('./chunk-UTIPENPW.cjs');
|
|
103
|
-
var
|
|
103
|
+
var chunkAKMTPCLC_cjs = require('./chunk-AKMTPCLC.cjs');
|
|
104
104
|
var chunkW4Q4UEXA_cjs = require('./chunk-W4Q4UEXA.cjs');
|
|
105
105
|
var chunkNFKX6QJP_cjs = require('./chunk-NFKX6QJP.cjs');
|
|
106
106
|
var chunk2FZYZ4HT_cjs = require('./chunk-2FZYZ4HT.cjs');
|
|
@@ -1454,7 +1454,7 @@ function AIEmptyState({
|
|
|
1454
1454
|
{
|
|
1455
1455
|
"data-slot": "ai-empty-state-icon",
|
|
1456
1456
|
className: "bg-primary-800 dark:bg-primary-800 flex h-16 w-16 items-center justify-center rounded-full text-white",
|
|
1457
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1457
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkQKW2QCGI_cjs.SparklesIcon, { size: "lg", className: "h-8 w-8" })
|
|
1458
1458
|
}
|
|
1459
1459
|
);
|
|
1460
1460
|
const suggestionsAction = suggestions && suggestions.length > 0 && onSuggestionSelect ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-6", children: [
|
|
@@ -1621,7 +1621,7 @@ function AIChat({
|
|
|
1621
1621
|
scrollToBottom(prefersReducedMotion ? "auto" : "smooth");
|
|
1622
1622
|
}, [scrollToBottom, prefersReducedMotion]);
|
|
1623
1623
|
const renderMessageItem = (message) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1624
|
-
|
|
1624
|
+
chunkQKW2QCGI_cjs.AIMessageDisplay,
|
|
1625
1625
|
{
|
|
1626
1626
|
message,
|
|
1627
1627
|
userName,
|
|
@@ -1721,7 +1721,7 @@ function AIChat({
|
|
|
1721
1721
|
{
|
|
1722
1722
|
"data-slot": "ai-chat-header-icon",
|
|
1723
1723
|
className: "bg-primary-800 dark:bg-primary-800 flex h-8 w-8 items-center justify-center rounded-full text-white",
|
|
1724
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1724
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkQKW2QCGI_cjs.SparklesIcon, { size: "sm" })
|
|
1725
1725
|
}
|
|
1726
1726
|
),
|
|
1727
1727
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
@@ -1751,7 +1751,7 @@ function AIChat({
|
|
|
1751
1751
|
className: "rounded-lg p-2 text-neutral-500 hover:bg-neutral-100 hover:text-neutral-700 dark:hover:bg-neutral-800 dark:hover:text-neutral-300",
|
|
1752
1752
|
title: "Clear chat",
|
|
1753
1753
|
"aria-label": "Clear chat",
|
|
1754
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1754
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkQKW2QCGI_cjs.RefreshIcon, {})
|
|
1755
1755
|
}
|
|
1756
1756
|
),
|
|
1757
1757
|
onClose && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1762,7 +1762,7 @@ function AIChat({
|
|
|
1762
1762
|
className: "rounded-lg p-2 text-neutral-500 hover:bg-neutral-100 hover:text-neutral-700 dark:hover:bg-neutral-800 dark:hover:text-neutral-300",
|
|
1763
1763
|
title: "Close chat",
|
|
1764
1764
|
"aria-label": "Close chat",
|
|
1765
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1765
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkQKW2QCGI_cjs.CloseIcon, {})
|
|
1766
1766
|
}
|
|
1767
1767
|
)
|
|
1768
1768
|
] })
|
|
@@ -1802,7 +1802,7 @@ function AIChat({
|
|
|
1802
1802
|
}
|
|
1803
1803
|
),
|
|
1804
1804
|
!isAtBottom && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1805
|
-
|
|
1805
|
+
chunkQKW2QCGI_cjs.JumpToBottomButton,
|
|
1806
1806
|
{
|
|
1807
1807
|
dataSlot: "ai-chat-jump-to-bottom",
|
|
1808
1808
|
hasNewMessages: hasNewBelow,
|
|
@@ -2841,6 +2841,7 @@ function HeyOzwellToggle({
|
|
|
2841
2841
|
"aria-hidden": "true",
|
|
2842
2842
|
style: {
|
|
2843
2843
|
position: "absolute",
|
|
2844
|
+
// rtl-ignore -- symmetric centering: left:50% + translate(-50%) is direction-independent
|
|
2844
2845
|
left: "50%",
|
|
2845
2846
|
top: "50%",
|
|
2846
2847
|
width: size * 1.7,
|
|
@@ -5015,7 +5016,7 @@ function AIChatTrigger({
|
|
|
5015
5016
|
children: badge > 9 ? "9+" : badge
|
|
5016
5017
|
}
|
|
5017
5018
|
),
|
|
5018
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5019
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQKW2QCGI_cjs.SparklesIcon, { size: "lg" })
|
|
5019
5020
|
]
|
|
5020
5021
|
}
|
|
5021
5022
|
);
|
|
@@ -5413,6 +5414,7 @@ function VoiceSetup({
|
|
|
5413
5414
|
{
|
|
5414
5415
|
style: {
|
|
5415
5416
|
position: "absolute",
|
|
5417
|
+
// rtl-ignore -- symmetric centering: left:50% + translate(-50%) is direction-independent
|
|
5416
5418
|
left: "50%",
|
|
5417
5419
|
top: "50%",
|
|
5418
5420
|
width: 150,
|
|
@@ -5429,6 +5431,7 @@ function VoiceSetup({
|
|
|
5429
5431
|
{
|
|
5430
5432
|
style: {
|
|
5431
5433
|
position: "absolute",
|
|
5434
|
+
// rtl-ignore -- symmetric centering: left:50% + translate(-50%) is direction-independent
|
|
5432
5435
|
left: "50%",
|
|
5433
5436
|
top: "50%",
|
|
5434
5437
|
width: 180,
|
|
@@ -5497,7 +5500,7 @@ function VoiceSetup({
|
|
|
5497
5500
|
{
|
|
5498
5501
|
className: "absolute flex items-center justify-center rounded-full text-white",
|
|
5499
5502
|
style: {
|
|
5500
|
-
|
|
5503
|
+
insetInlineEnd: -2,
|
|
5501
5504
|
bottom: -2,
|
|
5502
5505
|
width: 36,
|
|
5503
5506
|
height: 36,
|
|
@@ -5804,23 +5807,34 @@ function HandsFreeChat({
|
|
|
5804
5807
|
const placeholder = !oz.active ? "Ozwell is off \u2014 tap the octopus to listen" : phase === "listening" ? ready ? "Say \u201Chey ozwell\u201D, or type\u2026" : error ? `\u26A0\uFE0F ${error}` : "\u2026 loading models" : oz.chatProps.inputPlaceholder;
|
|
5805
5808
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { height: "100vh", display: "flex", flexDirection: "column" }, children: [
|
|
5806
5809
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { flex: 1, minHeight: 0, position: "relative" }, children: [
|
|
5807
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5808
|
-
|
|
5810
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5811
|
+
"div",
|
|
5809
5812
|
{
|
|
5810
|
-
|
|
5811
|
-
|
|
5813
|
+
style: {
|
|
5814
|
+
position: "absolute",
|
|
5815
|
+
top: 11,
|
|
5816
|
+
insetInlineEnd: 16,
|
|
5817
|
+
zIndex: 10
|
|
5818
|
+
},
|
|
5819
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5820
|
+
OzwellSettingsMenu,
|
|
5812
5821
|
{
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5822
|
+
trigger: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5823
|
+
HeyOzwellToggle,
|
|
5824
|
+
{
|
|
5825
|
+
...oz.toggleProps,
|
|
5826
|
+
logoSrc,
|
|
5827
|
+
size: 34
|
|
5828
|
+
}
|
|
5829
|
+
),
|
|
5830
|
+
open: oz.settingsOpen,
|
|
5831
|
+
onOpenChange: oz.setSettingsOpen,
|
|
5832
|
+
modelStatus: oz.modelStatus,
|
|
5833
|
+
onManageVoices: () => setVoicesOpen(true)
|
|
5816
5834
|
}
|
|
5817
|
-
)
|
|
5818
|
-
open: oz.settingsOpen,
|
|
5819
|
-
onOpenChange: oz.setSettingsOpen,
|
|
5820
|
-
modelStatus: oz.modelStatus,
|
|
5821
|
-
onManageVoices: () => setVoicesOpen(true)
|
|
5835
|
+
)
|
|
5822
5836
|
}
|
|
5823
|
-
)
|
|
5837
|
+
),
|
|
5824
5838
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5825
5839
|
AIChat,
|
|
5826
5840
|
{
|
|
@@ -6618,7 +6632,7 @@ function ReconciliationProposalRow({
|
|
|
6618
6632
|
children: [
|
|
6619
6633
|
/* @__PURE__ */ jsxRuntime.jsxs("dt", { className: "text-muted-foreground flex items-center gap-1 text-[11px] tracking-wide uppercase", children: [
|
|
6620
6634
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6621
|
-
|
|
6635
|
+
chunkQKW2QCGI_cjs.SparklesIcon,
|
|
6622
6636
|
{
|
|
6623
6637
|
size: "sm",
|
|
6624
6638
|
className: "text-primary-700 dark:text-primary-400"
|
|
@@ -6674,7 +6688,7 @@ function SourcePill({ source }) {
|
|
|
6674
6688
|
"text-muted-foreground"
|
|
6675
6689
|
),
|
|
6676
6690
|
children: [
|
|
6677
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary-700 dark:text-primary-400 flex items-center", children: source.icon ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
6691
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary-700 dark:text-primary-400 flex items-center", children: source.icon ?? /* @__PURE__ */ jsxRuntime.jsx(chunkQKW2QCGI_cjs.SparklesIcon, { size: "sm" }) }),
|
|
6678
6692
|
source.thumbnailUrl && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6679
6693
|
"img",
|
|
6680
6694
|
{
|
|
@@ -12153,7 +12167,7 @@ var CaseManagementHeader = React13__namespace.forwardRef(
|
|
|
12153
12167
|
(onAddCaseNote || onCloseCase || actions) && // Horizontal always: long labels truncate (Button's built-in
|
|
12154
12168
|
// ellipsis) instead of stacking or starving the identity block.
|
|
12155
12169
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
12156
|
-
|
|
12170
|
+
chunkQKW2QCGI_cjs.ButtonGroup,
|
|
12157
12171
|
{
|
|
12158
12172
|
orientation: "horizontal",
|
|
12159
12173
|
className: "max-w-[60%] min-w-0 gap-2",
|
|
@@ -14524,9 +14538,20 @@ function RowActionMenu({
|
|
|
14524
14538
|
actions
|
|
14525
14539
|
}) {
|
|
14526
14540
|
const [open, setOpen] = React13__namespace.useState(false);
|
|
14527
|
-
const menuRef = React13__namespace.useRef(null);
|
|
14528
14541
|
const buttonRef = React13__namespace.useRef(null);
|
|
14529
|
-
const
|
|
14542
|
+
const direction = chunkZ3WMDVMR_cjs.useDirection(buttonRef);
|
|
14543
|
+
const {
|
|
14544
|
+
anchorRef,
|
|
14545
|
+
floatingRef,
|
|
14546
|
+
style: menuStyle
|
|
14547
|
+
} = chunkAOHJILLU_cjs.useAnchoredPosition({
|
|
14548
|
+
open,
|
|
14549
|
+
placement: direction === "rtl" ? "bottom-start" : "bottom-end"
|
|
14550
|
+
});
|
|
14551
|
+
const outsideRefs = React13__namespace.useMemo(
|
|
14552
|
+
() => [floatingRef, buttonRef],
|
|
14553
|
+
[floatingRef]
|
|
14554
|
+
);
|
|
14530
14555
|
chunkFSGEDDF2_cjs.useClickOutside(outsideRefs, () => setOpen(false), open);
|
|
14531
14556
|
React13__namespace.useEffect(() => {
|
|
14532
14557
|
if (!open) return;
|
|
@@ -14536,20 +14561,14 @@ function RowActionMenu({
|
|
|
14536
14561
|
document.addEventListener("keydown", handleKey);
|
|
14537
14562
|
return () => document.removeEventListener("keydown", handleKey);
|
|
14538
14563
|
}, [open]);
|
|
14539
|
-
const [menuPos, setMenuPos] = React13__namespace.useState(null);
|
|
14540
|
-
React13__namespace.useLayoutEffect(() => {
|
|
14541
|
-
if (!open || !buttonRef.current) return;
|
|
14542
|
-
const rect = buttonRef.current.getBoundingClientRect();
|
|
14543
|
-
setMenuPos({
|
|
14544
|
-
top: rect.bottom + 4,
|
|
14545
|
-
left: rect.right
|
|
14546
|
-
});
|
|
14547
|
-
}, [open]);
|
|
14548
14564
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
14549
14565
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14550
14566
|
"button",
|
|
14551
14567
|
{
|
|
14552
|
-
ref:
|
|
14568
|
+
ref: (el) => {
|
|
14569
|
+
buttonRef.current = el;
|
|
14570
|
+
anchorRef.current = el;
|
|
14571
|
+
},
|
|
14553
14572
|
type: "button",
|
|
14554
14573
|
onClick: (e) => {
|
|
14555
14574
|
e.stopPropagation();
|
|
@@ -14568,18 +14587,14 @@ function RowActionMenu({
|
|
|
14568
14587
|
children: /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.MoreHorizontal, { size: 14 })
|
|
14569
14588
|
}
|
|
14570
14589
|
),
|
|
14571
|
-
open &&
|
|
14590
|
+
open && ReactDOM__namespace.createPortal(
|
|
14572
14591
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14573
14592
|
"div",
|
|
14574
14593
|
{
|
|
14575
|
-
ref:
|
|
14594
|
+
ref: floatingRef,
|
|
14576
14595
|
role: "menu",
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
top: menuPos.top,
|
|
14580
|
-
left: menuPos.left,
|
|
14581
|
-
transform: "translateX(-100%)"
|
|
14582
|
-
},
|
|
14596
|
+
dir: direction,
|
|
14597
|
+
style: menuStyle,
|
|
14583
14598
|
className: chunkS5RVSXDV_cjs.cn(
|
|
14584
14599
|
"z-[9999] min-w-[10rem]",
|
|
14585
14600
|
"rounded-lg border border-neutral-200 bg-white py-1 shadow-lg",
|
|
@@ -16296,18 +16311,26 @@ function WidgetRowActionMenu({
|
|
|
16296
16311
|
actions
|
|
16297
16312
|
}) {
|
|
16298
16313
|
const [open, setOpen] = React13__namespace.useState(false);
|
|
16299
|
-
const menuRef = React13__namespace.useRef(null);
|
|
16300
16314
|
const buttonRef = React13__namespace.useRef(null);
|
|
16315
|
+
const direction = chunkZ3WMDVMR_cjs.useDirection(buttonRef);
|
|
16316
|
+
const {
|
|
16317
|
+
anchorRef,
|
|
16318
|
+
floatingRef,
|
|
16319
|
+
style: menuStyle
|
|
16320
|
+
} = chunkAOHJILLU_cjs.useAnchoredPosition({
|
|
16321
|
+
open,
|
|
16322
|
+
placement: direction === "rtl" ? "bottom-start" : "bottom-end"
|
|
16323
|
+
});
|
|
16301
16324
|
React13__namespace.useEffect(() => {
|
|
16302
16325
|
if (!open) return;
|
|
16303
16326
|
function handleClick(e) {
|
|
16304
|
-
if (
|
|
16327
|
+
if (floatingRef.current && !floatingRef.current.contains(e.target) && buttonRef.current && !buttonRef.current.contains(e.target)) {
|
|
16305
16328
|
setOpen(false);
|
|
16306
16329
|
}
|
|
16307
16330
|
}
|
|
16308
16331
|
document.addEventListener("mousedown", handleClick);
|
|
16309
16332
|
return () => document.removeEventListener("mousedown", handleClick);
|
|
16310
|
-
}, [open]);
|
|
16333
|
+
}, [open, floatingRef]);
|
|
16311
16334
|
React13__namespace.useEffect(() => {
|
|
16312
16335
|
if (!open) return;
|
|
16313
16336
|
function handleKey(e) {
|
|
@@ -16316,15 +16339,6 @@ function WidgetRowActionMenu({
|
|
|
16316
16339
|
document.addEventListener("keydown", handleKey);
|
|
16317
16340
|
return () => document.removeEventListener("keydown", handleKey);
|
|
16318
16341
|
}, [open]);
|
|
16319
|
-
const [menuPos, setMenuPos] = React13__namespace.useState(null);
|
|
16320
|
-
React13__namespace.useLayoutEffect(() => {
|
|
16321
|
-
if (!open || !buttonRef.current) return;
|
|
16322
|
-
const rect = buttonRef.current.getBoundingClientRect();
|
|
16323
|
-
setMenuPos({
|
|
16324
|
-
top: rect.bottom + 4,
|
|
16325
|
-
left: rect.right
|
|
16326
|
-
});
|
|
16327
|
-
}, [open]);
|
|
16328
16342
|
const visibleActions = actions.filter(
|
|
16329
16343
|
(action) => !action.hidden?.(row, rowIndex)
|
|
16330
16344
|
);
|
|
@@ -16333,7 +16347,10 @@ function WidgetRowActionMenu({
|
|
|
16333
16347
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16334
16348
|
"button",
|
|
16335
16349
|
{
|
|
16336
|
-
ref:
|
|
16350
|
+
ref: (el) => {
|
|
16351
|
+
buttonRef.current = el;
|
|
16352
|
+
anchorRef.current = el;
|
|
16353
|
+
},
|
|
16337
16354
|
type: "button",
|
|
16338
16355
|
onClick: (e) => {
|
|
16339
16356
|
e.stopPropagation();
|
|
@@ -16352,18 +16369,14 @@ function WidgetRowActionMenu({
|
|
|
16352
16369
|
children: /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.MoreHorizontal, { size: 14 })
|
|
16353
16370
|
}
|
|
16354
16371
|
),
|
|
16355
|
-
open &&
|
|
16372
|
+
open && ReactDOM.createPortal(
|
|
16356
16373
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16357
16374
|
"div",
|
|
16358
16375
|
{
|
|
16359
|
-
ref:
|
|
16376
|
+
ref: floatingRef,
|
|
16360
16377
|
role: "menu",
|
|
16361
|
-
|
|
16362
|
-
|
|
16363
|
-
top: menuPos.top,
|
|
16364
|
-
left: menuPos.left,
|
|
16365
|
-
transform: "translateX(-100%)"
|
|
16366
|
-
},
|
|
16378
|
+
dir: direction,
|
|
16379
|
+
style: menuStyle,
|
|
16367
16380
|
className: chunkS5RVSXDV_cjs.cn(
|
|
16368
16381
|
"z-[9999] min-w-[10rem]",
|
|
16369
16382
|
"rounded-lg border border-neutral-200 bg-white py-1 shadow-lg",
|
|
@@ -23218,18 +23231,26 @@ function FileRowActionMenu({
|
|
|
23218
23231
|
onDelete
|
|
23219
23232
|
}) {
|
|
23220
23233
|
const [open, setOpen] = React13__namespace.useState(false);
|
|
23221
|
-
const menuRef = React13__namespace.useRef(null);
|
|
23222
23234
|
const buttonRef = React13__namespace.useRef(null);
|
|
23235
|
+
const direction = chunkZ3WMDVMR_cjs.useDirection(buttonRef);
|
|
23236
|
+
const {
|
|
23237
|
+
anchorRef,
|
|
23238
|
+
floatingRef,
|
|
23239
|
+
style: menuStyle
|
|
23240
|
+
} = chunkAOHJILLU_cjs.useAnchoredPosition({
|
|
23241
|
+
open,
|
|
23242
|
+
placement: direction === "rtl" ? "bottom-start" : "bottom-end"
|
|
23243
|
+
});
|
|
23223
23244
|
React13__namespace.useEffect(() => {
|
|
23224
23245
|
if (!open) return;
|
|
23225
23246
|
function handleClick(e) {
|
|
23226
|
-
if (
|
|
23247
|
+
if (floatingRef.current && !floatingRef.current.contains(e.target) && buttonRef.current && !buttonRef.current.contains(e.target)) {
|
|
23227
23248
|
setOpen(false);
|
|
23228
23249
|
}
|
|
23229
23250
|
}
|
|
23230
23251
|
document.addEventListener("mousedown", handleClick);
|
|
23231
23252
|
return () => document.removeEventListener("mousedown", handleClick);
|
|
23232
|
-
}, [open]);
|
|
23253
|
+
}, [open, floatingRef]);
|
|
23233
23254
|
React13__namespace.useEffect(() => {
|
|
23234
23255
|
if (!open) return;
|
|
23235
23256
|
function handleKey(e) {
|
|
@@ -23238,25 +23259,6 @@ function FileRowActionMenu({
|
|
|
23238
23259
|
document.addEventListener("keydown", handleKey);
|
|
23239
23260
|
return () => document.removeEventListener("keydown", handleKey);
|
|
23240
23261
|
}, [open]);
|
|
23241
|
-
const [menuPos, setMenuPos] = React13__namespace.useState(null);
|
|
23242
|
-
React13__namespace.useLayoutEffect(() => {
|
|
23243
|
-
if (!open || !buttonRef.current) return;
|
|
23244
|
-
function updatePosition() {
|
|
23245
|
-
if (!buttonRef.current) return;
|
|
23246
|
-
const rect = buttonRef.current.getBoundingClientRect();
|
|
23247
|
-
setMenuPos({
|
|
23248
|
-
top: rect.bottom + 4,
|
|
23249
|
-
left: rect.right
|
|
23250
|
-
});
|
|
23251
|
-
}
|
|
23252
|
-
updatePosition();
|
|
23253
|
-
window.addEventListener("scroll", updatePosition, true);
|
|
23254
|
-
window.addEventListener("resize", updatePosition);
|
|
23255
|
-
return () => {
|
|
23256
|
-
window.removeEventListener("scroll", updatePosition, true);
|
|
23257
|
-
window.removeEventListener("resize", updatePosition);
|
|
23258
|
-
};
|
|
23259
|
-
}, [open]);
|
|
23260
23262
|
const actions = [
|
|
23261
23263
|
onPreview && {
|
|
23262
23264
|
key: "preview",
|
|
@@ -23283,7 +23285,10 @@ function FileRowActionMenu({
|
|
|
23283
23285
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
23284
23286
|
"button",
|
|
23285
23287
|
{
|
|
23286
|
-
ref:
|
|
23288
|
+
ref: (el) => {
|
|
23289
|
+
buttonRef.current = el;
|
|
23290
|
+
anchorRef.current = el;
|
|
23291
|
+
},
|
|
23287
23292
|
type: "button",
|
|
23288
23293
|
onClick: (e) => {
|
|
23289
23294
|
e.stopPropagation();
|
|
@@ -23302,18 +23307,14 @@ function FileRowActionMenu({
|
|
|
23302
23307
|
children: /* @__PURE__ */ jsxRuntime.jsx(chunkL7L5S2HO_cjs.MoreHorizontal, { size: 14 })
|
|
23303
23308
|
}
|
|
23304
23309
|
),
|
|
23305
|
-
open &&
|
|
23310
|
+
open && ReactDOM.createPortal(
|
|
23306
23311
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
23307
23312
|
"div",
|
|
23308
23313
|
{
|
|
23309
|
-
ref:
|
|
23314
|
+
ref: floatingRef,
|
|
23310
23315
|
role: "menu",
|
|
23311
|
-
|
|
23312
|
-
|
|
23313
|
-
top: menuPos.top,
|
|
23314
|
-
left: menuPos.left,
|
|
23315
|
-
transform: "translateX(-100%)"
|
|
23316
|
-
},
|
|
23316
|
+
dir: direction,
|
|
23317
|
+
style: menuStyle,
|
|
23317
23318
|
className: chunkS5RVSXDV_cjs.cn(
|
|
23318
23319
|
"z-[9999] min-w-[10rem]",
|
|
23319
23320
|
"rounded-lg border border-neutral-200 bg-white py-1 shadow-lg",
|
|
@@ -45132,71 +45133,71 @@ Object.defineProperty(exports, "Sparkline", {
|
|
|
45132
45133
|
});
|
|
45133
45134
|
Object.defineProperty(exports, "AILogoIcon", {
|
|
45134
45135
|
enumerable: true,
|
|
45135
|
-
get: function () { return
|
|
45136
|
+
get: function () { return chunkQKW2QCGI_cjs.AILogoIcon; }
|
|
45136
45137
|
});
|
|
45137
45138
|
Object.defineProperty(exports, "AIMessageDisplay", {
|
|
45138
45139
|
enumerable: true,
|
|
45139
|
-
get: function () { return
|
|
45140
|
+
get: function () { return chunkQKW2QCGI_cjs.AIMessageDisplay; }
|
|
45140
45141
|
});
|
|
45141
45142
|
Object.defineProperty(exports, "AITypingIndicator", {
|
|
45142
45143
|
enumerable: true,
|
|
45143
|
-
get: function () { return
|
|
45144
|
+
get: function () { return chunkQKW2QCGI_cjs.AITypingIndicator; }
|
|
45144
45145
|
});
|
|
45145
45146
|
Object.defineProperty(exports, "ButtonGroup", {
|
|
45146
45147
|
enumerable: true,
|
|
45147
|
-
get: function () { return
|
|
45148
|
+
get: function () { return chunkQKW2QCGI_cjs.ButtonGroup; }
|
|
45148
45149
|
});
|
|
45149
45150
|
Object.defineProperty(exports, "ChatBubble", {
|
|
45150
45151
|
enumerable: true,
|
|
45151
|
-
get: function () { return
|
|
45152
|
+
get: function () { return chunkQKW2QCGI_cjs.ChatBubble; }
|
|
45152
45153
|
});
|
|
45153
45154
|
Object.defineProperty(exports, "ChevronIcon", {
|
|
45154
45155
|
enumerable: true,
|
|
45155
|
-
get: function () { return
|
|
45156
|
+
get: function () { return chunkQKW2QCGI_cjs.ChevronIcon; }
|
|
45156
45157
|
});
|
|
45157
45158
|
Object.defineProperty(exports, "CloseIcon", {
|
|
45158
45159
|
enumerable: true,
|
|
45159
|
-
get: function () { return
|
|
45160
|
+
get: function () { return chunkQKW2QCGI_cjs.CloseIcon; }
|
|
45160
45161
|
});
|
|
45161
45162
|
Object.defineProperty(exports, "CollapsiblePill", {
|
|
45162
45163
|
enumerable: true,
|
|
45163
|
-
get: function () { return
|
|
45164
|
+
get: function () { return chunkQKW2QCGI_cjs.CollapsiblePill; }
|
|
45164
45165
|
});
|
|
45165
45166
|
Object.defineProperty(exports, "MCPToolCallDisplay", {
|
|
45166
45167
|
enumerable: true,
|
|
45167
|
-
get: function () { return
|
|
45168
|
+
get: function () { return chunkQKW2QCGI_cjs.MCPToolCallDisplay; }
|
|
45168
45169
|
});
|
|
45169
45170
|
Object.defineProperty(exports, "MessageAvatar", {
|
|
45170
45171
|
enumerable: true,
|
|
45171
|
-
get: function () { return
|
|
45172
|
+
get: function () { return chunkQKW2QCGI_cjs.MessageAvatar; }
|
|
45172
45173
|
});
|
|
45173
45174
|
Object.defineProperty(exports, "RefreshIcon", {
|
|
45174
45175
|
enumerable: true,
|
|
45175
|
-
get: function () { return
|
|
45176
|
+
get: function () { return chunkQKW2QCGI_cjs.RefreshIcon; }
|
|
45176
45177
|
});
|
|
45177
45178
|
Object.defineProperty(exports, "ResourceLink", {
|
|
45178
45179
|
enumerable: true,
|
|
45179
|
-
get: function () { return
|
|
45180
|
+
get: function () { return chunkQKW2QCGI_cjs.ResourceLink; }
|
|
45180
45181
|
});
|
|
45181
45182
|
Object.defineProperty(exports, "SendIcon", {
|
|
45182
45183
|
enumerable: true,
|
|
45183
|
-
get: function () { return
|
|
45184
|
+
get: function () { return chunkQKW2QCGI_cjs.SendIcon; }
|
|
45184
45185
|
});
|
|
45185
45186
|
Object.defineProperty(exports, "SparklesIcon", {
|
|
45186
45187
|
enumerable: true,
|
|
45187
|
-
get: function () { return
|
|
45188
|
+
get: function () { return chunkQKW2QCGI_cjs.SparklesIcon; }
|
|
45188
45189
|
});
|
|
45189
45190
|
Object.defineProperty(exports, "SpinnerIcon", {
|
|
45190
45191
|
enumerable: true,
|
|
45191
|
-
get: function () { return
|
|
45192
|
+
get: function () { return chunkQKW2QCGI_cjs.SpinnerIcon; }
|
|
45192
45193
|
});
|
|
45193
45194
|
Object.defineProperty(exports, "ToolStatusIcon", {
|
|
45194
45195
|
enumerable: true,
|
|
45195
|
-
get: function () { return
|
|
45196
|
+
get: function () { return chunkQKW2QCGI_cjs.ToolStatusIcon; }
|
|
45196
45197
|
});
|
|
45197
45198
|
Object.defineProperty(exports, "getToolIcon", {
|
|
45198
45199
|
enumerable: true,
|
|
45199
|
-
get: function () { return
|
|
45200
|
+
get: function () { return chunkQKW2QCGI_cjs.getToolIcon; }
|
|
45200
45201
|
});
|
|
45201
45202
|
Object.defineProperty(exports, "AttachmentPreview", {
|
|
45202
45203
|
enumerable: true,
|
|
@@ -45436,11 +45437,11 @@ Object.defineProperty(exports, "SectionSpyNav", {
|
|
|
45436
45437
|
});
|
|
45437
45438
|
Object.defineProperty(exports, "AnimatedNumber", {
|
|
45438
45439
|
enumerable: true,
|
|
45439
|
-
get: function () { return
|
|
45440
|
+
get: function () { return chunk2S76TRBJ_cjs.AnimatedNumber; }
|
|
45440
45441
|
});
|
|
45441
45442
|
Object.defineProperty(exports, "SliderCalculator", {
|
|
45442
45443
|
enumerable: true,
|
|
45443
|
-
get: function () { return
|
|
45444
|
+
get: function () { return chunk2S76TRBJ_cjs.SliderCalculator; }
|
|
45444
45445
|
});
|
|
45445
45446
|
Object.defineProperty(exports, "Skeleton", {
|
|
45446
45447
|
enumerable: true,
|
|
@@ -45528,39 +45529,39 @@ Object.defineProperty(exports, "recordButtonVariants", {
|
|
|
45528
45529
|
});
|
|
45529
45530
|
Object.defineProperty(exports, "FillerWordsModal", {
|
|
45530
45531
|
enumerable: true,
|
|
45531
|
-
get: function () { return
|
|
45532
|
+
get: function () { return chunkXZNHS7YQ_cjs.FillerWordsModal; }
|
|
45532
45533
|
});
|
|
45533
45534
|
Object.defineProperty(exports, "MediaEditor", {
|
|
45534
45535
|
enumerable: true,
|
|
45535
|
-
get: function () { return
|
|
45536
|
+
get: function () { return chunkXZNHS7YQ_cjs.MediaEditor; }
|
|
45536
45537
|
});
|
|
45537
45538
|
Object.defineProperty(exports, "SilenceSettingsModal", {
|
|
45538
45539
|
enumerable: true,
|
|
45539
|
-
get: function () { return
|
|
45540
|
+
get: function () { return chunkXZNHS7YQ_cjs.SilenceSettingsModal; }
|
|
45540
45541
|
});
|
|
45541
45542
|
Object.defineProperty(exports, "SpeedMarkerMenu", {
|
|
45542
45543
|
enumerable: true,
|
|
45543
|
-
get: function () { return
|
|
45544
|
+
get: function () { return chunkXZNHS7YQ_cjs.SpeedMarkerMenu; }
|
|
45544
45545
|
});
|
|
45545
45546
|
Object.defineProperty(exports, "WordEditorModal", {
|
|
45546
45547
|
enumerable: true,
|
|
45547
|
-
get: function () { return
|
|
45548
|
+
get: function () { return chunkXZNHS7YQ_cjs.WordEditorModal; }
|
|
45548
45549
|
});
|
|
45549
45550
|
Object.defineProperty(exports, "Slider", {
|
|
45550
45551
|
enumerable: true,
|
|
45551
|
-
get: function () { return
|
|
45552
|
+
get: function () { return chunkGDKOYVX3_cjs.Slider; }
|
|
45552
45553
|
});
|
|
45553
45554
|
Object.defineProperty(exports, "sliderRangeVariants", {
|
|
45554
45555
|
enumerable: true,
|
|
45555
|
-
get: function () { return
|
|
45556
|
+
get: function () { return chunkGDKOYVX3_cjs.sliderRangeVariants; }
|
|
45556
45557
|
});
|
|
45557
45558
|
Object.defineProperty(exports, "sliderThumbVariants", {
|
|
45558
45559
|
enumerable: true,
|
|
45559
|
-
get: function () { return
|
|
45560
|
+
get: function () { return chunkGDKOYVX3_cjs.sliderThumbVariants; }
|
|
45560
45561
|
});
|
|
45561
45562
|
Object.defineProperty(exports, "sliderTrackVariants", {
|
|
45562
45563
|
enumerable: true,
|
|
45563
|
-
get: function () { return
|
|
45564
|
+
get: function () { return chunkGDKOYVX3_cjs.sliderTrackVariants; }
|
|
45564
45565
|
});
|
|
45565
45566
|
Object.defineProperty(exports, "MediaFeed", {
|
|
45566
45567
|
enumerable: true,
|
|
@@ -45936,15 +45937,15 @@ Object.defineProperty(exports, "ClampedText", {
|
|
|
45936
45937
|
});
|
|
45937
45938
|
Object.defineProperty(exports, "CollabStatus", {
|
|
45938
45939
|
enumerable: true,
|
|
45939
|
-
get: function () { return
|
|
45940
|
+
get: function () { return chunkL4APW65W_cjs.CollabStatus; }
|
|
45940
45941
|
});
|
|
45941
45942
|
Object.defineProperty(exports, "defaultCollabStatusLabels", {
|
|
45942
45943
|
enumerable: true,
|
|
45943
|
-
get: function () { return
|
|
45944
|
+
get: function () { return chunkL4APW65W_cjs.defaultCollabStatusLabels; }
|
|
45944
45945
|
});
|
|
45945
45946
|
Object.defineProperty(exports, "useYjsCollabStatus", {
|
|
45946
45947
|
enumerable: true,
|
|
45947
|
-
get: function () { return
|
|
45948
|
+
get: function () { return chunkL4APW65W_cjs.useYjsCollabStatus; }
|
|
45948
45949
|
});
|
|
45949
45950
|
Object.defineProperty(exports, "Collapsible", {
|
|
45950
45951
|
enumerable: true,
|
|
@@ -45992,23 +45993,23 @@ Object.defineProperty(exports, "useConfirm", {
|
|
|
45992
45993
|
});
|
|
45993
45994
|
Object.defineProperty(exports, "AudioPlayer", {
|
|
45994
45995
|
enumerable: true,
|
|
45995
|
-
get: function () { return
|
|
45996
|
+
get: function () { return chunkAKMTPCLC_cjs.AudioPlayer; }
|
|
45996
45997
|
});
|
|
45997
45998
|
Object.defineProperty(exports, "ProgressBar", {
|
|
45998
45999
|
enumerable: true,
|
|
45999
|
-
get: function () { return
|
|
46000
|
+
get: function () { return chunkAKMTPCLC_cjs.ProgressBar; }
|
|
46000
46001
|
});
|
|
46001
46002
|
Object.defineProperty(exports, "audioPlayerVariants", {
|
|
46002
46003
|
enumerable: true,
|
|
46003
|
-
get: function () { return
|
|
46004
|
+
get: function () { return chunkAKMTPCLC_cjs.audioPlayerVariants; }
|
|
46004
46005
|
});
|
|
46005
46006
|
Object.defineProperty(exports, "formatAudioTime", {
|
|
46006
46007
|
enumerable: true,
|
|
46007
|
-
get: function () { return
|
|
46008
|
+
get: function () { return chunkAKMTPCLC_cjs.formatTime; }
|
|
46008
46009
|
});
|
|
46009
46010
|
Object.defineProperty(exports, "playButtonVariants", {
|
|
46010
46011
|
enumerable: true,
|
|
46011
|
-
get: function () { return
|
|
46012
|
+
get: function () { return chunkAKMTPCLC_cjs.playButtonVariants; }
|
|
46012
46013
|
});
|
|
46013
46014
|
Object.defineProperty(exports, "AudioRecorder", {
|
|
46014
46015
|
enumerable: true,
|