@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.
Files changed (73) hide show
  1. package/dist/{chunk-QR7EG7YH.js → chunk-2ABWFQQH.js} +3 -3
  2. package/dist/{chunk-QR7EG7YH.js.map → chunk-2ABWFQQH.js.map} +1 -1
  3. package/dist/{chunk-GVBHDRC7.cjs → chunk-6N6LIAUJ.cjs} +6 -6
  4. package/dist/{chunk-GVBHDRC7.cjs.map → chunk-6N6LIAUJ.cjs.map} +1 -1
  5. package/dist/{chunk-VILW53UZ.js → chunk-BIQ7GSO2.js} +3 -3
  6. package/dist/{chunk-VILW53UZ.js.map → chunk-BIQ7GSO2.js.map} +1 -1
  7. package/dist/{chunk-XI34EGK5.cjs → chunk-CPPUT74P.cjs} +9 -9
  8. package/dist/{chunk-XI34EGK5.cjs.map → chunk-CPPUT74P.cjs.map} +1 -1
  9. package/dist/{chunk-5JJ2DAE4.js → chunk-ENMXHZNE.js} +3 -3
  10. package/dist/{chunk-5JJ2DAE4.js.map → chunk-ENMXHZNE.js.map} +1 -1
  11. package/dist/{chunk-XCP454Q6.js → chunk-F4N67NAF.js} +12 -3
  12. package/dist/chunk-F4N67NAF.js.map +1 -0
  13. package/dist/{chunk-OYBJQBLO.js → chunk-G45FBKKV.js} +3 -3
  14. package/dist/{chunk-OYBJQBLO.js.map → chunk-G45FBKKV.js.map} +1 -1
  15. package/dist/{chunk-NUQSQRG3.cjs → chunk-HQ4CGVWX.cjs} +27 -27
  16. package/dist/{chunk-NUQSQRG3.cjs.map → chunk-HQ4CGVWX.cjs.map} +1 -1
  17. package/dist/{chunk-NV2CWBI2.cjs → chunk-IEY3ZJIT.cjs} +12 -3
  18. package/dist/chunk-IEY3ZJIT.cjs.map +1 -0
  19. package/dist/{chunk-K2K2HP35.js → chunk-IH55BEB3.js} +3 -3
  20. package/dist/{chunk-K2K2HP35.js.map → chunk-IH55BEB3.js.map} +1 -1
  21. package/dist/{chunk-PEUCQ2YP.cjs → chunk-LJZKEMAH.cjs} +9 -9
  22. package/dist/{chunk-PEUCQ2YP.cjs.map → chunk-LJZKEMAH.cjs.map} +1 -1
  23. package/dist/{chunk-673GMFA6.js → chunk-MZNCLXXU.js} +3 -3
  24. package/dist/{chunk-673GMFA6.js.map → chunk-MZNCLXXU.js.map} +1 -1
  25. package/dist/{chunk-X5KAO35W.cjs → chunk-R2O72G6Z.cjs} +7 -7
  26. package/dist/{chunk-X5KAO35W.cjs.map → chunk-R2O72G6Z.cjs.map} +1 -1
  27. package/dist/{chunk-VPWJCJCX.cjs → chunk-S45EERW3.cjs} +5 -5
  28. package/dist/{chunk-VPWJCJCX.cjs.map → chunk-S45EERW3.cjs.map} +1 -1
  29. package/dist/{chunk-SVXWO37F.cjs → chunk-SQ2D7AON.cjs} +21 -21
  30. package/dist/{chunk-SVXWO37F.cjs.map → chunk-SQ2D7AON.cjs.map} +1 -1
  31. package/dist/{chunk-P2CA3XGI.js → chunk-SYRLCTDV.js} +3 -3
  32. package/dist/{chunk-P2CA3XGI.js.map → chunk-SYRLCTDV.js.map} +1 -1
  33. package/dist/{chunk-7ZDPD5ZX.cjs → chunk-T4L7Q5FA.cjs} +7 -7
  34. package/dist/{chunk-7ZDPD5ZX.cjs.map → chunk-T4L7Q5FA.cjs.map} +1 -1
  35. package/dist/{chunk-ZGRCSNPK.js → chunk-TF7YWJHU.js} +3 -3
  36. package/dist/{chunk-ZGRCSNPK.js.map → chunk-TF7YWJHU.js.map} +1 -1
  37. package/dist/{chunk-YIV4Y4SK.js → chunk-UBSH27C2.js} +3 -3
  38. package/dist/{chunk-YIV4Y4SK.js.map → chunk-UBSH27C2.js.map} +1 -1
  39. package/dist/{chunk-SGFYA22I.cjs → chunk-VYPPQPSZ.cjs} +7 -7
  40. package/dist/{chunk-SGFYA22I.cjs.map → chunk-VYPPQPSZ.cjs.map} +1 -1
  41. package/dist/{chunk-5FU7LVZF.cjs → chunk-Z4JR23IB.cjs} +9 -9
  42. package/dist/{chunk-5FU7LVZF.cjs.map → chunk-Z4JR23IB.cjs.map} +1 -1
  43. package/dist/{chunk-CXEKSA7I.js → chunk-ZTW4KODY.js} +3 -3
  44. package/dist/{chunk-CXEKSA7I.js.map → chunk-ZTW4KODY.js.map} +1 -1
  45. package/dist/components/AlertDialog/index.cjs +4 -4
  46. package/dist/components/AlertDialog/index.js +3 -3
  47. package/dist/components/Collapsible/index.cjs +5 -5
  48. package/dist/components/Collapsible/index.js +2 -2
  49. package/dist/components/Dropdown/index.cjs +9 -9
  50. package/dist/components/Dropdown/index.js +2 -2
  51. package/dist/components/KeyboardShortcutsOverlay/index.cjs +5 -5
  52. package/dist/components/KeyboardShortcutsOverlay/index.js +3 -3
  53. package/dist/components/MediaEditor/index.cjs +8 -8
  54. package/dist/components/MediaEditor/index.js +3 -3
  55. package/dist/components/Modal/index.cjs +10 -10
  56. package/dist/components/Modal/index.js +2 -2
  57. package/dist/components/RichTextEditor/index.cjs +6 -6
  58. package/dist/components/RichTextEditor/index.js +3 -3
  59. package/dist/components/SuperChat/index.cjs +43 -21
  60. package/dist/components/SuperChat/index.cjs.map +1 -1
  61. package/dist/components/SuperChat/index.js +36 -14
  62. package/dist/components/SuperChat/index.js.map +1 -1
  63. package/dist/components/SuperChat/plugins/index.cjs +5 -5
  64. package/dist/components/SuperChat/plugins/index.js +4 -4
  65. package/dist/esheet.cjs +6 -6
  66. package/dist/esheet.js +3 -3
  67. package/dist/index.cjs +281 -281
  68. package/dist/index.js +18 -18
  69. package/dist/motion.cjs +7 -7
  70. package/dist/motion.js +2 -2
  71. package/package.json +1 -1
  72. package/dist/chunk-NV2CWBI2.cjs.map +0 -1
  73. 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-QR7EG7YH.js';
5
- import { Dropdown, DropdownSubmenu, DropdownItem } from '../../chunk-ZGRCSNPK.js';
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-XCP454Q6.js';
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
- JumpToBottomButton,
1483
+ /* @__PURE__ */ jsx(AnimatedPresence, { children: order !== "desc" && !isAtBottom && /* @__PURE__ */ jsx(
1484
+ Animated,
1485
1485
  {
1486
- dataSlot: "superchat-jump-to-bottom",
1487
- hasNewMessages: hasNewBelow,
1488
- onClick: handleJumpToBottom
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
- !!c.unread && /* @__PURE__ */ jsxs("span", { 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", children: [
1581
- c.unread,
1582
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: " unread messages" })
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);