@mieweb/ui 0.10.0-dev.19 → 0.10.0-dev.20
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-QR7EG7YH.js → chunk-2ABWFQQH.js} +3 -3
- package/dist/{chunk-QR7EG7YH.js.map → chunk-2ABWFQQH.js.map} +1 -1
- package/dist/{chunk-GVBHDRC7.cjs → chunk-6N6LIAUJ.cjs} +6 -6
- package/dist/{chunk-GVBHDRC7.cjs.map → chunk-6N6LIAUJ.cjs.map} +1 -1
- package/dist/{chunk-VILW53UZ.js → chunk-BIQ7GSO2.js} +3 -3
- package/dist/{chunk-VILW53UZ.js.map → chunk-BIQ7GSO2.js.map} +1 -1
- package/dist/{chunk-XI34EGK5.cjs → chunk-CPPUT74P.cjs} +9 -9
- package/dist/{chunk-XI34EGK5.cjs.map → chunk-CPPUT74P.cjs.map} +1 -1
- package/dist/{chunk-5JJ2DAE4.js → chunk-ENMXHZNE.js} +3 -3
- package/dist/{chunk-5JJ2DAE4.js.map → chunk-ENMXHZNE.js.map} +1 -1
- package/dist/{chunk-XCP454Q6.js → chunk-F4N67NAF.js} +12 -3
- package/dist/chunk-F4N67NAF.js.map +1 -0
- package/dist/{chunk-OYBJQBLO.js → chunk-G45FBKKV.js} +3 -3
- package/dist/{chunk-OYBJQBLO.js.map → chunk-G45FBKKV.js.map} +1 -1
- package/dist/{chunk-NUQSQRG3.cjs → chunk-HQ4CGVWX.cjs} +27 -27
- package/dist/{chunk-NUQSQRG3.cjs.map → chunk-HQ4CGVWX.cjs.map} +1 -1
- package/dist/{chunk-NV2CWBI2.cjs → chunk-IEY3ZJIT.cjs} +12 -3
- package/dist/chunk-IEY3ZJIT.cjs.map +1 -0
- package/dist/{chunk-K2K2HP35.js → chunk-IH55BEB3.js} +3 -3
- package/dist/{chunk-K2K2HP35.js.map → chunk-IH55BEB3.js.map} +1 -1
- package/dist/{chunk-PEUCQ2YP.cjs → chunk-LJZKEMAH.cjs} +9 -9
- package/dist/{chunk-PEUCQ2YP.cjs.map → chunk-LJZKEMAH.cjs.map} +1 -1
- package/dist/{chunk-673GMFA6.js → chunk-MZNCLXXU.js} +3 -3
- package/dist/{chunk-673GMFA6.js.map → chunk-MZNCLXXU.js.map} +1 -1
- package/dist/{chunk-X5KAO35W.cjs → chunk-R2O72G6Z.cjs} +7 -7
- package/dist/{chunk-X5KAO35W.cjs.map → chunk-R2O72G6Z.cjs.map} +1 -1
- package/dist/{chunk-VPWJCJCX.cjs → chunk-S45EERW3.cjs} +5 -5
- package/dist/{chunk-VPWJCJCX.cjs.map → chunk-S45EERW3.cjs.map} +1 -1
- package/dist/{chunk-SVXWO37F.cjs → chunk-SQ2D7AON.cjs} +21 -21
- package/dist/{chunk-SVXWO37F.cjs.map → chunk-SQ2D7AON.cjs.map} +1 -1
- package/dist/{chunk-P2CA3XGI.js → chunk-SYRLCTDV.js} +3 -3
- package/dist/{chunk-P2CA3XGI.js.map → chunk-SYRLCTDV.js.map} +1 -1
- package/dist/{chunk-7ZDPD5ZX.cjs → chunk-T4L7Q5FA.cjs} +7 -7
- package/dist/{chunk-7ZDPD5ZX.cjs.map → chunk-T4L7Q5FA.cjs.map} +1 -1
- package/dist/{chunk-ZGRCSNPK.js → chunk-TF7YWJHU.js} +3 -3
- package/dist/{chunk-ZGRCSNPK.js.map → chunk-TF7YWJHU.js.map} +1 -1
- package/dist/{chunk-YIV4Y4SK.js → chunk-UBSH27C2.js} +3 -3
- package/dist/{chunk-YIV4Y4SK.js.map → chunk-UBSH27C2.js.map} +1 -1
- package/dist/{chunk-SGFYA22I.cjs → chunk-VYPPQPSZ.cjs} +7 -7
- package/dist/{chunk-SGFYA22I.cjs.map → chunk-VYPPQPSZ.cjs.map} +1 -1
- package/dist/{chunk-5FU7LVZF.cjs → chunk-Z4JR23IB.cjs} +9 -9
- package/dist/{chunk-5FU7LVZF.cjs.map → chunk-Z4JR23IB.cjs.map} +1 -1
- package/dist/{chunk-CXEKSA7I.js → chunk-ZTW4KODY.js} +3 -3
- package/dist/{chunk-CXEKSA7I.js.map → chunk-ZTW4KODY.js.map} +1 -1
- package/dist/components/AlertDialog/index.cjs +4 -4
- package/dist/components/AlertDialog/index.js +3 -3
- package/dist/components/Collapsible/index.cjs +5 -5
- package/dist/components/Collapsible/index.js +2 -2
- package/dist/components/Dropdown/index.cjs +9 -9
- package/dist/components/Dropdown/index.js +2 -2
- package/dist/components/KeyboardShortcutsOverlay/index.cjs +5 -5
- package/dist/components/KeyboardShortcutsOverlay/index.js +3 -3
- package/dist/components/MediaEditor/index.cjs +8 -8
- package/dist/components/MediaEditor/index.js +3 -3
- package/dist/components/Modal/index.cjs +10 -10
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/RichTextEditor/index.cjs +6 -6
- package/dist/components/RichTextEditor/index.js +3 -3
- package/dist/components/SuperChat/index.cjs +43 -21
- package/dist/components/SuperChat/index.cjs.map +1 -1
- package/dist/components/SuperChat/index.js +36 -14
- package/dist/components/SuperChat/index.js.map +1 -1
- package/dist/components/SuperChat/plugins/index.cjs +5 -5
- package/dist/components/SuperChat/plugins/index.js +4 -4
- package/dist/esheet.cjs +6 -6
- package/dist/esheet.js +3 -3
- package/dist/index.cjs +281 -281
- package/dist/index.js +18 -18
- package/dist/motion.cjs +7 -7
- package/dist/motion.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-NV2CWBI2.cjs.map +0 -1
- package/dist/chunk-XCP454Q6.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TextRenderContext } from '../../chunk-I6CY5C6A.js';
|
|
2
2
|
export { TextRenderContext, useTextRenderContext } from '../../chunk-I6CY5C6A.js';
|
|
3
3
|
import { ChatBubble, MCPToolCallDisplay, AITypingIndicator, SparklesIcon, CloseIcon, JumpToBottomButton } from '../../chunk-TZJQB4P2.js';
|
|
4
|
-
import { notifyComposerMigrationOnce, ChatComposer } from '../../chunk-
|
|
5
|
-
import { Dropdown, DropdownSubmenu, DropdownItem } from '../../chunk-
|
|
4
|
+
import { notifyComposerMigrationOnce, ChatComposer } from '../../chunk-2ABWFQQH.js';
|
|
5
|
+
import { Dropdown, DropdownSubmenu, DropdownItem } from '../../chunk-TF7YWJHU.js';
|
|
6
6
|
import { Avatar } from '../../chunk-HZ4MBUC3.js';
|
|
7
7
|
import '../../chunk-IQ4KQJAO.js';
|
|
8
8
|
import { useStickToBottom, useStreamEndedBelowFold } from '../../chunk-BM35CACB.js';
|
|
@@ -15,7 +15,7 @@ import '../../chunk-T4ME7QCT.js';
|
|
|
15
15
|
import '../../chunk-BKSPDTX4.js';
|
|
16
16
|
import { usePrefersReducedMotion } from '../../chunk-HB7C7NB5.js';
|
|
17
17
|
import { Badge } from '../../chunk-BMSG4NBH.js';
|
|
18
|
-
import '../../chunk-
|
|
18
|
+
import { AnimatedPresence, Animated } from '../../chunk-F4N67NAF.js';
|
|
19
19
|
import { cn } from '../../chunk-TQONQSJO.js';
|
|
20
20
|
import '../../chunk-PX6F3LHL.js';
|
|
21
21
|
import * as React3 from 'react';
|
|
@@ -1480,14 +1480,23 @@ function SuperChat({
|
|
|
1480
1480
|
] })
|
|
1481
1481
|
}
|
|
1482
1482
|
),
|
|
1483
|
-
order !== "desc" && !isAtBottom && /* @__PURE__ */ jsx(
|
|
1484
|
-
|
|
1483
|
+
/* @__PURE__ */ jsx(AnimatedPresence, { children: order !== "desc" && !isAtBottom && /* @__PURE__ */ jsx(
|
|
1484
|
+
Animated,
|
|
1485
1485
|
{
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1486
|
+
preset: "fade",
|
|
1487
|
+
mode: "presence",
|
|
1488
|
+
className: "absolute inset-x-0 bottom-0 z-20",
|
|
1489
|
+
children: /* @__PURE__ */ jsx(
|
|
1490
|
+
JumpToBottomButton,
|
|
1491
|
+
{
|
|
1492
|
+
dataSlot: "superchat-jump-to-bottom",
|
|
1493
|
+
hasNewMessages: hasNewBelow,
|
|
1494
|
+
onClick: handleJumpToBottom
|
|
1495
|
+
}
|
|
1496
|
+
)
|
|
1497
|
+
},
|
|
1498
|
+
"jump-to-bottom"
|
|
1499
|
+
) })
|
|
1491
1500
|
]
|
|
1492
1501
|
}
|
|
1493
1502
|
),
|
|
@@ -1523,6 +1532,8 @@ function SuperChatConversations({
|
|
|
1523
1532
|
const [internalActive, setInternalActive] = React3.useState(
|
|
1524
1533
|
defaultActiveConversationId ?? conversations[0]?.id
|
|
1525
1534
|
);
|
|
1535
|
+
const [hasMounted, setHasMounted] = React3.useState(false);
|
|
1536
|
+
React3.useEffect(() => setHasMounted(true), []);
|
|
1526
1537
|
const requestedId = activeConversationId ?? internalActive;
|
|
1527
1538
|
const activeId = conversations.some((c) => c.id === requestedId) ? requestedId : conversations[0]?.id;
|
|
1528
1539
|
const sortedConversations = React3.useMemo(
|
|
@@ -1577,10 +1588,21 @@ function SuperChatConversations({
|
|
|
1577
1588
|
/* @__PURE__ */ jsx("span", { className: "block truncate font-medium", children: c.title }),
|
|
1578
1589
|
last?.text && /* @__PURE__ */ jsx("span", { className: "block truncate text-xs text-neutral-600 dark:text-neutral-400", children: last.text })
|
|
1579
1590
|
] }),
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1591
|
+
/* @__PURE__ */ jsx(AnimatedPresence, { initial: hasMounted, children: !!c.unread && /* @__PURE__ */ jsxs(
|
|
1592
|
+
Animated,
|
|
1593
|
+
{
|
|
1594
|
+
as: "span",
|
|
1595
|
+
preset: "pop",
|
|
1596
|
+
mode: "presence",
|
|
1597
|
+
"data-slot": "superchat-unread-badge",
|
|
1598
|
+
className: "bg-primary-600 ms-1 inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1.5 text-[10px] font-semibold text-white",
|
|
1599
|
+
children: [
|
|
1600
|
+
c.unread,
|
|
1601
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: " unread messages" })
|
|
1602
|
+
]
|
|
1603
|
+
},
|
|
1604
|
+
"unread"
|
|
1605
|
+
) })
|
|
1584
1606
|
]
|
|
1585
1607
|
}
|
|
1586
1608
|
) }, c.id);
|