@mieweb/ui 0.11.0-dev.1 → 0.11.0-dev.3

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 (56) hide show
  1. package/dist/{chunk-7UTBDFFL.cjs → chunk-2S76TRBJ.cjs} +4 -4
  2. package/dist/{chunk-7UTBDFFL.cjs.map → chunk-2S76TRBJ.cjs.map} +1 -1
  3. package/dist/{chunk-PJ6CC53R.cjs → chunk-AKMTPCLC.cjs} +13 -8
  4. package/dist/chunk-AKMTPCLC.cjs.map +1 -0
  5. package/dist/{chunk-VVDE4CHU.js → chunk-C4GEPUE7.js} +13 -8
  6. package/dist/chunk-C4GEPUE7.js.map +1 -0
  7. package/dist/{chunk-FMEA6WAY.cjs → chunk-C66JR43M.cjs} +9 -9
  8. package/dist/{chunk-FMEA6WAY.cjs.map → chunk-C66JR43M.cjs.map} +1 -1
  9. package/dist/{chunk-NUB5HRKS.js → chunk-DT3X3RBM.js} +3 -3
  10. package/dist/{chunk-NUB5HRKS.js.map → chunk-DT3X3RBM.js.map} +1 -1
  11. package/dist/{chunk-XRVMYT5G.cjs → chunk-E53GRHBS.cjs} +4 -4
  12. package/dist/{chunk-XRVMYT5G.cjs.map → chunk-E53GRHBS.cjs.map} +1 -1
  13. package/dist/{chunk-MYAU2ZUC.cjs → chunk-GDKOYVX3.cjs} +14 -10
  14. package/dist/chunk-GDKOYVX3.cjs.map +1 -0
  15. package/dist/{chunk-TJ4GWQPM.js → chunk-GJPCWR4C.js} +102 -64
  16. package/dist/chunk-GJPCWR4C.js.map +1 -0
  17. package/dist/{chunk-S2JZL4JC.js → chunk-JM4YFLO4.js} +22 -15
  18. package/dist/chunk-JM4YFLO4.js.map +1 -0
  19. package/dist/{chunk-YZCM7CXK.js → chunk-NKG2UNXE.js} +3 -3
  20. package/dist/{chunk-YZCM7CXK.js.map → chunk-NKG2UNXE.js.map} +1 -1
  21. package/dist/{chunk-RM2HPQIC.js → chunk-O5V327UQ.js} +3 -3
  22. package/dist/{chunk-RM2HPQIC.js.map → chunk-O5V327UQ.js.map} +1 -1
  23. package/dist/{chunk-2BPIVWAK.js → chunk-V5VPECJI.js} +14 -10
  24. package/dist/chunk-V5VPECJI.js.map +1 -0
  25. package/dist/{chunk-U2RS574O.cjs → chunk-WGXJNCRG.cjs} +101 -63
  26. package/dist/chunk-WGXJNCRG.cjs.map +1 -0
  27. package/dist/{chunk-O6BJMVGT.cjs → chunk-XZNHS7YQ.cjs} +24 -17
  28. package/dist/chunk-XZNHS7YQ.cjs.map +1 -0
  29. package/dist/components/AudioPlayer/index.cjs +7 -6
  30. package/dist/components/AudioPlayer/index.js +2 -1
  31. package/dist/components/MediaEditor/index.cjs +8 -7
  32. package/dist/components/MediaEditor/index.js +3 -2
  33. package/dist/components/Slider/index.cjs +6 -5
  34. package/dist/components/Slider/index.js +2 -1
  35. package/dist/components/SliderCalculator/index.cjs +5 -4
  36. package/dist/components/SliderCalculator/index.js +3 -2
  37. package/dist/components/SuperChat/index.cjs +13 -13
  38. package/dist/components/SuperChat/index.d.cts +8 -4
  39. package/dist/components/SuperChat/index.d.ts +8 -4
  40. package/dist/components/SuperChat/index.js +3 -3
  41. package/dist/components/SuperChat/plugins/index.cjs +3 -3
  42. package/dist/components/SuperChat/plugins/index.js +2 -2
  43. package/dist/index.cjs +95 -95
  44. package/dist/index.d.cts +21 -10
  45. package/dist/index.d.ts +21 -10
  46. package/dist/index.js +10 -10
  47. package/dist/styles.css +1 -1
  48. package/package.json +1 -1
  49. package/dist/chunk-2BPIVWAK.js.map +0 -1
  50. package/dist/chunk-MYAU2ZUC.cjs.map +0 -1
  51. package/dist/chunk-O6BJMVGT.cjs.map +0 -1
  52. package/dist/chunk-PJ6CC53R.cjs.map +0 -1
  53. package/dist/chunk-S2JZL4JC.js.map +0 -1
  54. package/dist/chunk-TJ4GWQPM.js.map +0 -1
  55. package/dist/chunk-U2RS574O.cjs.map +0 -1
  56. package/dist/chunk-VVDE4CHU.js.map +0 -1
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkJFLC7SHM_cjs = require('../../chunk-JFLC7SHM.cjs');
4
- var chunkXRVMYT5G_cjs = require('../../chunk-XRVMYT5G.cjs');
5
- var chunkU2RS574O_cjs = require('../../chunk-U2RS574O.cjs');
4
+ var chunkE53GRHBS_cjs = require('../../chunk-E53GRHBS.cjs');
5
+ var chunkWGXJNCRG_cjs = require('../../chunk-WGXJNCRG.cjs');
6
6
  var chunkAJPFQF3H_cjs = require('../../chunk-AJPFQF3H.cjs');
7
7
  require('../../chunk-GLXTVCHN.cjs');
8
8
  var chunkKQ6GLYFZ_cjs = require('../../chunk-KQ6GLYFZ.cjs');
9
9
  require('../../chunk-ZNUMOJOI.cjs');
10
10
  var chunkPINIBEIU_cjs = require('../../chunk-PINIBEIU.cjs');
11
- require('../../chunk-PJ6CC53R.cjs');
11
+ require('../../chunk-AKMTPCLC.cjs');
12
12
  require('../../chunk-VBWRH4UW.cjs');
13
13
  var chunkVPTASZ2O_cjs = require('../../chunk-VPTASZ2O.cjs');
14
14
  require('../../chunk-254QK722.cjs');
@@ -119,7 +119,7 @@ function MessageMedia({
119
119
  }
120
120
  ) : null,
121
121
  attachment.caption && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", children: attachment.caption }),
122
- onOpen && /* @__PURE__ */ jsxRuntime.jsx(chunkXRVMYT5G_cjs.ButtonGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(
122
+ onOpen && /* @__PURE__ */ jsxRuntime.jsx(chunkE53GRHBS_cjs.ButtonGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(
123
123
  chunkANMX7YDL_cjs.Button,
124
124
  {
125
125
  "data-media-launch-id": launchId,
@@ -226,7 +226,7 @@ function ParticipantAvatar({
226
226
  src: participant?.avatar,
227
227
  alt: "",
228
228
  name: participant?.name ?? "?",
229
- fallback: isAgent ? /* @__PURE__ */ jsxRuntime.jsx(chunkXRVMYT5G_cjs.SparklesIcon, { size: "sm" }) : void 0,
229
+ fallback: isAgent ? /* @__PURE__ */ jsxRuntime.jsx(chunkE53GRHBS_cjs.SparklesIcon, { size: "sm" }) : void 0,
230
230
  style: { backgroundColor },
231
231
  "aria-hidden": "true",
232
232
  className: "shrink-0"
@@ -762,7 +762,7 @@ ${block.text}
762
762
  isSelf ? "flex-row-reverse" : "flex-row"
763
763
  ),
764
764
  children: /* @__PURE__ */ jsxRuntime.jsx(
765
- chunkXRVMYT5G_cjs.ChatBubble,
765
+ chunkE53GRHBS_cjs.ChatBubble,
766
766
  {
767
767
  ref: bubbleRef,
768
768
  "data-slot": "superchat-bubble",
@@ -826,7 +826,7 @@ ${block.text}
826
826
  ) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
827
827
  message.content?.map((block, i) => {
828
828
  if (block.type === "tool_use" && block.toolCall) {
829
- return /* @__PURE__ */ jsxRuntime.jsx(chunkXRVMYT5G_cjs.MCPToolCallDisplay, { toolCall: block.toolCall }, i);
829
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkE53GRHBS_cjs.MCPToolCallDisplay, { toolCall: block.toolCall }, i);
830
830
  }
831
831
  if ((block.type === "text" || block.type === "thinking") && block.text) {
832
832
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -879,7 +879,7 @@ ${block.text}
879
879
  },
880
880
  attachment.id
881
881
  )),
882
- streaming && !hasBody && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkXRVMYT5G_cjs.AITypingIndicator, {}) })
882
+ streaming && !hasBody && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(chunkE53GRHBS_cjs.AITypingIndicator, {}) })
883
883
  ] })
884
884
  }
885
885
  )
@@ -1411,7 +1411,7 @@ function SuperChat({
1411
1411
  mediaItems.length
1412
1412
  ]);
1413
1413
  React3__namespace.useEffect(() => {
1414
- chunkU2RS574O_cjs.notifyComposerMigrationOnce("SuperChat");
1414
+ chunkWGXJNCRG_cjs.notifyComposerMigrationOnce("SuperChat");
1415
1415
  }, []);
1416
1416
  const renderText = React3__namespace.useMemo(
1417
1417
  () => renderTextContent ?? createMarkdownRenderer({
@@ -1762,7 +1762,7 @@ function SuperChat({
1762
1762
  onClick: () => onConversationClosed(conversation),
1763
1763
  "aria-label": "Close conversation",
1764
1764
  className: "rounded-md p-1 text-neutral-400 hover:bg-neutral-100 dark:hover:bg-neutral-800",
1765
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkXRVMYT5G_cjs.CloseIcon, {})
1765
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkE53GRHBS_cjs.CloseIcon, {})
1766
1766
  }
1767
1767
  )
1768
1768
  ]
@@ -1777,7 +1777,7 @@ function SuperChat({
1777
1777
  "data-slot": "superchat-media-view",
1778
1778
  className: "flex min-h-0 flex-1 flex-col",
1779
1779
  children: [
1780
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-4 pt-2", children: /* @__PURE__ */ jsxRuntime.jsx(chunkXRVMYT5G_cjs.ButtonGroup, { className: "justify-start", children: /* @__PURE__ */ jsxRuntime.jsx(
1780
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-4 pt-2", children: /* @__PURE__ */ jsxRuntime.jsx(chunkE53GRHBS_cjs.ButtonGroup, { className: "justify-start", children: /* @__PURE__ */ jsxRuntime.jsx(
1781
1781
  chunkANMX7YDL_cjs.Button,
1782
1782
  {
1783
1783
  ref: backToConversationRef,
@@ -1883,7 +1883,7 @@ function SuperChat({
1883
1883
  mode: "presence",
1884
1884
  className: "absolute inset-x-0 bottom-0 z-20",
1885
1885
  children: /* @__PURE__ */ jsxRuntime.jsx(
1886
- chunkXRVMYT5G_cjs.JumpToBottomButton,
1886
+ chunkE53GRHBS_cjs.JumpToBottomButton,
1887
1887
  {
1888
1888
  dataSlot: "superchat-jump-to-bottom",
1889
1889
  hasNewMessages: hasNewBelow,
@@ -1897,7 +1897,7 @@ function SuperChat({
1897
1897
  }
1898
1898
  ),
1899
1899
  /* @__PURE__ */ jsxRuntime.jsx(
1900
- chunkU2RS574O_cjs.ChatComposer,
1900
+ chunkWGXJNCRG_cjs.ChatComposer,
1901
1901
  {
1902
1902
  value: draft,
1903
1903
  onValueChange: handleDraftChange,
@@ -62,18 +62,22 @@ type UncontrolledProviderFilterProps = {
62
62
  };
63
63
  type ComposerModelSelectorProps = ComposerModelSelectorBaseProps & (ControlledProviderFilterProps | UncontrolledProviderFilterProps);
64
64
 
65
- /** An agent shown in the composer's agent selector. */
66
- interface ChatComposerAgentOption {
67
- /** Stable id (returned via `onAgentChange`). */
65
+ /** An option in a composer selector-row menu (agent, voice, …). */
66
+ interface ComposerSelectorOption {
67
+ /** Stable id (returned via `onChange`). */
68
68
  id: string;
69
69
  /** Display label. */
70
70
  label: string;
71
- /** Optional leading icon (defaults to a bot glyph in the trigger). */
71
+ /** Optional leading icon (falls back to the selector's `icon` in the trigger). */
72
72
  icon?: React.ReactNode;
73
73
  /** Optional secondary text shown in the menu. */
74
74
  description?: string;
75
75
  }
76
76
 
77
+ /** An agent shown in the composer's agent selector (trigger icon defaults to a bot glyph). */
78
+ interface ChatComposerAgentOption extends ComposerSelectorOption {
79
+ }
80
+
77
81
  interface SuperChatProps {
78
82
  /** The conversation to display (host-owned state). */
79
83
  conversation: SuperChatConversation;
@@ -62,18 +62,22 @@ type UncontrolledProviderFilterProps = {
62
62
  };
63
63
  type ComposerModelSelectorProps = ComposerModelSelectorBaseProps & (ControlledProviderFilterProps | UncontrolledProviderFilterProps);
64
64
 
65
- /** An agent shown in the composer's agent selector. */
66
- interface ChatComposerAgentOption {
67
- /** Stable id (returned via `onAgentChange`). */
65
+ /** An option in a composer selector-row menu (agent, voice, …). */
66
+ interface ComposerSelectorOption {
67
+ /** Stable id (returned via `onChange`). */
68
68
  id: string;
69
69
  /** Display label. */
70
70
  label: string;
71
- /** Optional leading icon (defaults to a bot glyph in the trigger). */
71
+ /** Optional leading icon (falls back to the selector's `icon` in the trigger). */
72
72
  icon?: React.ReactNode;
73
73
  /** Optional secondary text shown in the menu. */
74
74
  description?: string;
75
75
  }
76
76
 
77
+ /** An agent shown in the composer's agent selector (trigger icon defaults to a bot glyph). */
78
+ interface ChatComposerAgentOption extends ComposerSelectorOption {
79
+ }
80
+
77
81
  interface SuperChatProps {
78
82
  /** The conversation to display (host-owned state). */
79
83
  conversation: SuperChatConversation;
@@ -1,13 +1,13 @@
1
1
  import { TextRenderContext } from '../../chunk-I6CY5C6A.js';
2
2
  export { TextRenderContext, useTextRenderContext } from '../../chunk-I6CY5C6A.js';
3
- import { ChatBubble, MCPToolCallDisplay, AITypingIndicator, SparklesIcon, ButtonGroup, CloseIcon, JumpToBottomButton } from '../../chunk-RM2HPQIC.js';
4
- import { notifyComposerMigrationOnce, ChatComposer } from '../../chunk-TJ4GWQPM.js';
3
+ import { ChatBubble, MCPToolCallDisplay, AITypingIndicator, SparklesIcon, ButtonGroup, CloseIcon, JumpToBottomButton } from '../../chunk-O5V327UQ.js';
4
+ import { notifyComposerMigrationOnce, ChatComposer } from '../../chunk-GJPCWR4C.js';
5
5
  import { MediaFeed } from '../../chunk-2X54ZLT6.js';
6
6
  import '../../chunk-RISZWWEQ.js';
7
7
  import { MediaPlayer } from '../../chunk-N54FYWG6.js';
8
8
  import '../../chunk-AMYFRY7K.js';
9
9
  import { Dropdown, DropdownSubmenu, DropdownItem } from '../../chunk-OYUIEJPN.js';
10
- import '../../chunk-VVDE4CHU.js';
10
+ import '../../chunk-C4GEPUE7.js';
11
11
  import '../../chunk-IQ4KQJAO.js';
12
12
  import { useStickToBottom, useStreamEndedBelowFold } from '../../chunk-BM35CACB.js';
13
13
  import '../../chunk-GW4RFJZ5.js';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkJFLC7SHM_cjs = require('../../../chunk-JFLC7SHM.cjs');
4
- var chunkFMEA6WAY_cjs = require('../../../chunk-FMEA6WAY.cjs');
5
- require('../../../chunk-U2RS574O.cjs');
4
+ var chunkC66JR43M_cjs = require('../../../chunk-C66JR43M.cjs');
5
+ require('../../../chunk-WGXJNCRG.cjs');
6
6
  require('../../../chunk-ZNUMOJOI.cjs');
7
7
  require('../../../chunk-PINIBEIU.cjs');
8
8
  require('../../../chunk-I44YNYI6.cjs');
@@ -615,7 +615,7 @@ function ZoomableImage({
615
615
  ),
616
616
  open && typeof document !== "undefined" && reactDom.createPortal(
617
617
  /* @__PURE__ */ jsxRuntime.jsx(
618
- chunkFMEA6WAY_cjs.LightboxModal,
618
+ chunkC66JR43M_cjs.LightboxModal,
619
619
  {
620
620
  attachment,
621
621
  onClose: () => setOpen(false)
@@ -1,6 +1,6 @@
1
1
  import { useTextRenderContext } from '../../../chunk-I6CY5C6A.js';
2
- import { LightboxModal } from '../../../chunk-YZCM7CXK.js';
3
- import '../../../chunk-TJ4GWQPM.js';
2
+ import { LightboxModal } from '../../../chunk-NKG2UNXE.js';
3
+ import '../../../chunk-GJPCWR4C.js';
4
4
  import '../../../chunk-AMYFRY7K.js';
5
5
  import '../../../chunk-OYUIEJPN.js';
6
6
  import '../../../chunk-6NZXWKUE.js';