@mieweb/ui 0.11.0-dev.0 → 0.11.0-dev.2

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 (60) hide show
  1. package/dist/{chunk-J2CKXXOW.js → chunk-4I6BW3FB.js} +8 -5
  2. package/dist/chunk-4I6BW3FB.js.map +1 -0
  3. package/dist/{chunk-XHK5VZ4L.cjs → chunk-6ZA574PU.cjs} +8 -5
  4. package/dist/chunk-6ZA574PU.cjs.map +1 -0
  5. package/dist/{chunk-ECYIDXG6.cjs → chunk-AFDW64EF.cjs} +4 -2
  6. package/dist/chunk-AFDW64EF.cjs.map +1 -0
  7. package/dist/{chunk-KVTKSPX5.js → chunk-AG5EKCE4.js} +4 -2
  8. package/dist/chunk-AG5EKCE4.js.map +1 -0
  9. package/dist/{chunk-FMEA6WAY.cjs → chunk-C66JR43M.cjs} +9 -9
  10. package/dist/{chunk-FMEA6WAY.cjs.map → chunk-C66JR43M.cjs.map} +1 -1
  11. package/dist/{chunk-OW3SQJ7P.js → chunk-EI4JU5JF.js} +3 -3
  12. package/dist/{chunk-OW3SQJ7P.js.map → chunk-EI4JU5JF.js.map} +1 -1
  13. package/dist/{chunk-TJ4GWQPM.js → chunk-GJPCWR4C.js} +102 -64
  14. package/dist/chunk-GJPCWR4C.js.map +1 -0
  15. package/dist/{chunk-JSXIB6EJ.cjs → chunk-GLG6UE2H.cjs} +12 -7
  16. package/dist/chunk-GLG6UE2H.cjs.map +1 -0
  17. package/dist/{chunk-H3ROMJYI.cjs → chunk-KY67AMQ5.cjs} +4 -4
  18. package/dist/{chunk-H3ROMJYI.cjs.map → chunk-KY67AMQ5.cjs.map} +1 -1
  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-FBN2VHUV.cjs → chunk-QQCHM7BZ.cjs} +4 -4
  22. package/dist/{chunk-FBN2VHUV.cjs.map → chunk-QQCHM7BZ.cjs.map} +1 -1
  23. package/dist/{chunk-EBKE4DLU.js → chunk-VYNFJVRZ.js} +3 -3
  24. package/dist/{chunk-EBKE4DLU.js.map → chunk-VYNFJVRZ.js.map} +1 -1
  25. package/dist/{chunk-U2RS574O.cjs → chunk-WGXJNCRG.cjs} +101 -63
  26. package/dist/chunk-WGXJNCRG.cjs.map +1 -0
  27. package/dist/{chunk-7X6R3JIA.js → chunk-YFWDS6MX.js} +12 -7
  28. package/dist/chunk-YFWDS6MX.js.map +1 -0
  29. package/dist/components/MegaMenu/index.cjs +5 -4
  30. package/dist/components/MegaMenu/index.js +2 -1
  31. package/dist/components/SuperChat/index.cjs +3 -3
  32. package/dist/components/SuperChat/index.d.cts +8 -4
  33. package/dist/components/SuperChat/index.d.ts +8 -4
  34. package/dist/components/SuperChat/index.js +1 -1
  35. package/dist/components/SuperChat/plugins/index.cjs +3 -3
  36. package/dist/components/SuperChat/plugins/index.js +2 -2
  37. package/dist/components/ThemeProvider/index.cjs +9 -8
  38. package/dist/components/ThemeProvider/index.js +3 -2
  39. package/dist/components/Tooltip/index.cjs +3 -2
  40. package/dist/components/Tooltip/index.d.cts +6 -2
  41. package/dist/components/Tooltip/index.d.ts +6 -2
  42. package/dist/components/Tooltip/index.js +2 -1
  43. package/dist/esheet.cjs +5 -5
  44. package/dist/esheet.js +2 -2
  45. package/dist/index.cjs +111 -111
  46. package/dist/index.d.cts +27 -12
  47. package/dist/index.d.ts +27 -12
  48. package/dist/index.js +12 -12
  49. package/dist/styles.css +1 -1
  50. package/dist/tailwind-preset.cjs +4 -4
  51. package/dist/tailwind-preset.js +1 -1
  52. package/package.json +1 -1
  53. package/dist/chunk-7X6R3JIA.js.map +0 -1
  54. package/dist/chunk-ECYIDXG6.cjs.map +0 -1
  55. package/dist/chunk-J2CKXXOW.js.map +0 -1
  56. package/dist/chunk-JSXIB6EJ.cjs.map +0 -1
  57. package/dist/chunk-KVTKSPX5.js.map +0 -1
  58. package/dist/chunk-TJ4GWQPM.js.map +0 -1
  59. package/dist/chunk-U2RS574O.cjs.map +0 -1
  60. package/dist/chunk-XHK5VZ4L.cjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1162,6 +1162,18 @@ declare namespace ComposerModelSelector {
1162
1162
  var displayName: string;
1163
1163
  }
1164
1164
 
1165
+ /** An option in a composer selector-row menu (agent, voice, …). */
1166
+ interface ComposerSelectorOption {
1167
+ /** Stable id (returned via `onChange`). */
1168
+ id: string;
1169
+ /** Display label. */
1170
+ label: string;
1171
+ /** Optional leading icon (falls back to the selector's `icon` in the trigger). */
1172
+ icon?: React$1.ReactNode;
1173
+ /** Optional secondary text shown in the menu. */
1174
+ description?: string;
1175
+ }
1176
+
1165
1177
  /**
1166
1178
  * A candidate for the composer's `@mention` autocomplete. Generic so any
1167
1179
  * surface (multi-party chat, agent picker, …) can supply its own list.
@@ -1463,16 +1475,8 @@ interface ChatComposerMenuItem {
1463
1475
  /** Called when the item is selected. */
1464
1476
  onSelect?: () => void;
1465
1477
  }
1466
- /** An agent shown in the composer's agent selector. */
1467
- interface ChatComposerAgentOption {
1468
- /** Stable id (returned via `onAgentChange`). */
1469
- id: string;
1470
- /** Display label. */
1471
- label: string;
1472
- /** Optional leading icon (defaults to a bot glyph in the trigger). */
1473
- icon?: React$1.ReactNode;
1474
- /** Optional secondary text shown in the menu. */
1475
- description?: string;
1478
+ /** An agent shown in the composer's agent selector (trigger icon defaults to a bot glyph). */
1479
+ interface ChatComposerAgentOption extends ComposerSelectorOption {
1476
1480
  }
1477
1481
  /** Imperative handle exposed via `ref` for host-level integrations. */
1478
1482
  interface ChatComposerHandle {
@@ -1619,6 +1623,13 @@ interface ChatComposerProps {
1619
1623
  showModelSelector?: boolean;
1620
1624
  /** Props passed through to the embedded `ComposerModelSelector`. */
1621
1625
  modelSelectorProps?: ComposerModelSelectorProps;
1626
+ /**
1627
+ * Custom node at the end of the bottom row, after the model selector (e.g.
1628
+ * a voice-activation selector). Shows the row even when no built-in
1629
+ * selector is enabled. Interaction state is not managed: pass your own
1630
+ * disabled state when the composer is `disabled`.
1631
+ */
1632
+ selectorsEndSlot?: React$1.ReactNode;
1622
1633
  /** Replaces the composer with a read-only notice. */
1623
1634
  readOnly?: boolean;
1624
1635
  /** Notice text shown when `readOnly` is set. */
@@ -18095,7 +18106,7 @@ interface ToggleProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElemen
18095
18106
  */
18096
18107
  declare const Toggle: React$1.ForwardRefExoticComponent<ToggleProps & React$1.RefAttributes<HTMLButtonElement>>;
18097
18108
 
18098
- type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
18109
+ type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right' | 'start' | 'end';
18099
18110
  interface TooltipProps {
18100
18111
  /** The content to display in the tooltip */
18101
18112
  content: React$1.ReactNode;
@@ -18105,7 +18116,11 @@ interface TooltipProps {
18105
18116
  onBlur?: () => void;
18106
18117
  'aria-describedby'?: string;
18107
18118
  }>;
18108
- /** Preferred placement of the tooltip relative to the trigger. Will flip if not enough space. */
18119
+ /**
18120
+ * Preferred placement of the tooltip relative to the trigger. Will flip if
18121
+ * not enough space. `left`/`right` are physical; `start`/`end` are logical
18122
+ * (they follow the trigger's text direction, so `start` is right in RTL).
18123
+ */
18109
18124
  placement?: TooltipPlacement;
18110
18125
  /** Delay in ms before showing the tooltip */
18111
18126
  delay?: number;
package/dist/index.d.ts CHANGED
@@ -1162,6 +1162,18 @@ declare namespace ComposerModelSelector {
1162
1162
  var displayName: string;
1163
1163
  }
1164
1164
 
1165
+ /** An option in a composer selector-row menu (agent, voice, …). */
1166
+ interface ComposerSelectorOption {
1167
+ /** Stable id (returned via `onChange`). */
1168
+ id: string;
1169
+ /** Display label. */
1170
+ label: string;
1171
+ /** Optional leading icon (falls back to the selector's `icon` in the trigger). */
1172
+ icon?: React$1.ReactNode;
1173
+ /** Optional secondary text shown in the menu. */
1174
+ description?: string;
1175
+ }
1176
+
1165
1177
  /**
1166
1178
  * A candidate for the composer's `@mention` autocomplete. Generic so any
1167
1179
  * surface (multi-party chat, agent picker, …) can supply its own list.
@@ -1463,16 +1475,8 @@ interface ChatComposerMenuItem {
1463
1475
  /** Called when the item is selected. */
1464
1476
  onSelect?: () => void;
1465
1477
  }
1466
- /** An agent shown in the composer's agent selector. */
1467
- interface ChatComposerAgentOption {
1468
- /** Stable id (returned via `onAgentChange`). */
1469
- id: string;
1470
- /** Display label. */
1471
- label: string;
1472
- /** Optional leading icon (defaults to a bot glyph in the trigger). */
1473
- icon?: React$1.ReactNode;
1474
- /** Optional secondary text shown in the menu. */
1475
- description?: string;
1478
+ /** An agent shown in the composer's agent selector (trigger icon defaults to a bot glyph). */
1479
+ interface ChatComposerAgentOption extends ComposerSelectorOption {
1476
1480
  }
1477
1481
  /** Imperative handle exposed via `ref` for host-level integrations. */
1478
1482
  interface ChatComposerHandle {
@@ -1619,6 +1623,13 @@ interface ChatComposerProps {
1619
1623
  showModelSelector?: boolean;
1620
1624
  /** Props passed through to the embedded `ComposerModelSelector`. */
1621
1625
  modelSelectorProps?: ComposerModelSelectorProps;
1626
+ /**
1627
+ * Custom node at the end of the bottom row, after the model selector (e.g.
1628
+ * a voice-activation selector). Shows the row even when no built-in
1629
+ * selector is enabled. Interaction state is not managed: pass your own
1630
+ * disabled state when the composer is `disabled`.
1631
+ */
1632
+ selectorsEndSlot?: React$1.ReactNode;
1622
1633
  /** Replaces the composer with a read-only notice. */
1623
1634
  readOnly?: boolean;
1624
1635
  /** Notice text shown when `readOnly` is set. */
@@ -18095,7 +18106,7 @@ interface ToggleProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElemen
18095
18106
  */
18096
18107
  declare const Toggle: React$1.ForwardRefExoticComponent<ToggleProps & React$1.RefAttributes<HTMLButtonElement>>;
18097
18108
 
18098
- type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
18109
+ type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right' | 'start' | 'end';
18099
18110
  interface TooltipProps {
18100
18111
  /** The content to display in the tooltip */
18101
18112
  content: React$1.ReactNode;
@@ -18105,7 +18116,11 @@ interface TooltipProps {
18105
18116
  onBlur?: () => void;
18106
18117
  'aria-describedby'?: string;
18107
18118
  }>;
18108
- /** Preferred placement of the tooltip relative to the trigger. Will flip if not enough space. */
18119
+ /**
18120
+ * Preferred placement of the tooltip relative to the trigger. Will flip if
18121
+ * not enough space. `left`/`right` are physical; `start`/`end` are logical
18122
+ * (they follow the trigger's text direction, so `start` is right in RTL).
18123
+ */
18109
18124
  placement?: TooltipPlacement;
18110
18125
  /** Delay in ms before showing the tooltip */
18111
18126
  delay?: number;
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ import './chunk-Y424YL55.js';
36
36
  import './chunk-GY5SP4ST.js';
37
37
  import { Text } from './chunk-3YSIZ2CK.js';
38
38
  export { SmallMuted, Text, textVariants } from './chunk-3YSIZ2CK.js';
39
- export { ThemeProvider, ThemeProviderContext, ThemeToggle, themeToggleIconVariants, themeToggleVariants, useThemeContext } from './chunk-OW3SQJ7P.js';
39
+ export { ThemeProvider, ThemeProviderContext, ThemeToggle, themeToggleIconVariants, themeToggleVariants, useThemeContext } from './chunk-EI4JU5JF.js';
40
40
  export { Toggle, toggleVariants } from './chunk-PTZB2GKL.js';
41
41
  export { ViewSet } from './chunk-4RI3CQGE.js';
42
42
  export { ViewSwitcher, viewSwitcherVariants } from './chunk-2W73UQ3T.js';
@@ -44,10 +44,10 @@ export { SourceTip } from './chunk-KFEN2SRZ.js';
44
44
  export { Sparkline } from './chunk-CG4ZKJLE.js';
45
45
  import { ButtonGroup, SparklesIcon, RefreshIcon, CloseIcon, JumpToBottomButton, AIMessageDisplay } from './chunk-RM2HPQIC.js';
46
46
  export { AILogoIcon, AIMessageDisplay, AITypingIndicator, ButtonGroup, ChatBubble, ChevronIcon, CloseIcon, CollapsiblePill, MCPToolCallDisplay, MessageAvatar, RefreshIcon, ResourceLink, SendIcon, SparklesIcon, SpinnerIcon, ToolStatusIcon, getToolIcon } from './chunk-RM2HPQIC.js';
47
- import { useTypingEmulation, EmptyState } from './chunk-YZCM7CXK.js';
48
- export { AttachmentPreview, ConversationHeader, ConversationListItem, ConversationListSkeleton, DateSeparator, EmptyState, LightboxModal, LoadMoreButton, MessageBubble, MessageList, MessageStatusIcon, MessageThread, MessagingSplitView, ReadReceiptIndicator, SkeletonMessage, TypingIndicator, bubbleVariants, formatDateLabel, formatFileSize, formatLastSeen, getConversationSubtitle, getConversationTitle, groupMessagesByDate, headerVariants, isSameSenderGroup, useMessageScroll, useMessages, useReadReceipts, useTypingEmulation, useTypingIndicator } from './chunk-YZCM7CXK.js';
49
- import { notifyComposerMigrationOnce, ChatComposer, DEFAULT_MAX_FILE_SIZE, DEFAULT_ACCEPTED_FILE_TYPES } from './chunk-TJ4GWQPM.js';
50
- export { AttachmentPicker, AttachmentPreviewItem, CameraButton, ChatComposer, ComposerModelSelector, DragDropZone, generateAttachmentId, getFileType, validateFile } from './chunk-TJ4GWQPM.js';
47
+ import { useTypingEmulation, EmptyState } from './chunk-NKG2UNXE.js';
48
+ export { AttachmentPreview, ConversationHeader, ConversationListItem, ConversationListSkeleton, DateSeparator, EmptyState, LightboxModal, LoadMoreButton, MessageBubble, MessageList, MessageStatusIcon, MessageThread, MessagingSplitView, ReadReceiptIndicator, SkeletonMessage, TypingIndicator, bubbleVariants, formatDateLabel, formatFileSize, formatLastSeen, getConversationSubtitle, getConversationTitle, groupMessagesByDate, headerVariants, isSameSenderGroup, useMessageScroll, useMessages, useReadReceipts, useTypingEmulation, useTypingIndicator } from './chunk-NKG2UNXE.js';
49
+ import { notifyComposerMigrationOnce, ChatComposer, DEFAULT_MAX_FILE_SIZE, DEFAULT_ACCEPTED_FILE_TYPES } from './chunk-GJPCWR4C.js';
50
+ export { AttachmentPicker, AttachmentPreviewItem, CameraButton, ChatComposer, ComposerModelSelector, DragDropZone, generateAttachmentId, getFileType, validateFile } from './chunk-GJPCWR4C.js';
51
51
  import { Table, TableHeader, TableRow, TableHead, TableBody, TableCell } from './chunk-TNUL4LGG.js';
52
52
  export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from './chunk-TNUL4LGG.js';
53
53
  export { DateButton, DatePicker, RadioOption, SchedulePicker, TimeButton, TimePicker, dateButtonVariants, radioOptionVariants, timeButtonVariants } from './chunk-23AYDOCH.js';
@@ -68,8 +68,8 @@ export { Slider, sliderRangeVariants, sliderThumbVariants, sliderTrackVariants }
68
68
  export { MediaFeed } from './chunk-2X54ZLT6.js';
69
69
  import './chunk-RISZWWEQ.js';
70
70
  export { MediaPlayer, inferMediaKind, mediaPlayerVariants } from './chunk-N54FYWG6.js';
71
- import { normalizePath, MegaMenuBar } from './chunk-J2CKXXOW.js';
72
- export { MegaMenu, MegaMenuBar, normalizePath } from './chunk-J2CKXXOW.js';
71
+ import { normalizePath, MegaMenuBar } from './chunk-4I6BW3FB.js';
72
+ export { MegaMenu, MegaMenuBar, normalizePath } from './chunk-4I6BW3FB.js';
73
73
  export { OrbitRing } from './chunk-SUS3WFY3.js';
74
74
  export { RadialExplorer } from './chunk-VOEXGDL5.js';
75
75
  export { Pagination, SimplePagination, paginationButtonVariants } from './chunk-PFKRHNYV.js';
@@ -137,7 +137,7 @@ export { useUrlTab } from './chunk-CVNPNZMX.js';
137
137
  import './chunk-7XUN3OQT.js';
138
138
  export { formatPhoneNumber, isPhoneNumberEmpty, isValidPhoneNumber, unformatPhoneNumber } from './chunk-ZVPJ2MH6.js';
139
139
  export { isHtmlEmpty, stripHtmlTags } from './chunk-ERLPVXOV.js';
140
- export { miewebUIPreset, miewebUISafelist } from './chunk-KVTKSPX5.js';
140
+ export { miewebUIPreset, miewebUISafelist } from './chunk-AG5EKCE4.js';
141
141
  export { Accordion } from './chunk-JUJGWUAN.js';
142
142
  import './chunk-H2Y7HZV5.js';
143
143
  export { AvatarGroup, defaultAvatarGroupLabels } from './chunk-DVDT7TX7.js';
@@ -148,10 +148,10 @@ import { Spinner, SpinnerWithLabel } from './chunk-UA7E7PDS.js';
148
148
  export { FullPageSpinner, Spinner, SpinnerWithLabel, spinnerVariants } from './chunk-UA7E7PDS.js';
149
149
  import { evaluateDue, completedKeys, normalizeOrders } from './chunk-Y5KEFV5O.js';
150
150
  export { buildChartOrderRows, buildEncounterOrderRows, dueForOrder, evaluateDue, evaluateProgram, isApplicable } from './chunk-Y5KEFV5O.js';
151
- import { useCodeLookupConfig, RowActionToolbar, RowIconButton, toolbarKeyNav, parseSig, labelToMedicationFields, MedicationEditor } from './chunk-EBKE4DLU.js';
152
- export { ALLERGY_TYPE_LABELS, AllergyList, AllergyManager, CodeLookupProvider, MEDICATION_STATUS_LABELS, MedicationEditor, MedicationList, MedicationReconciliation, RowActionToolbar, RowIconButton, labelToMedicationFields, lookupToMedicationFields, parseMedicationLabel, parseSig, toolbarKeyNav, useCodeLookupConfig } from './chunk-EBKE4DLU.js';
153
- import { Tooltip } from './chunk-7X6R3JIA.js';
154
- export { Tooltip } from './chunk-7X6R3JIA.js';
151
+ import { useCodeLookupConfig, RowActionToolbar, RowIconButton, toolbarKeyNav, parseSig, labelToMedicationFields, MedicationEditor } from './chunk-VYNFJVRZ.js';
152
+ export { ALLERGY_TYPE_LABELS, AllergyList, AllergyManager, CodeLookupProvider, MEDICATION_STATUS_LABELS, MedicationEditor, MedicationList, MedicationReconciliation, RowActionToolbar, RowIconButton, labelToMedicationFields, lookupToMedicationFields, parseMedicationLabel, parseSig, toolbarKeyNav, useCodeLookupConfig } from './chunk-VYNFJVRZ.js';
153
+ import { Tooltip } from './chunk-YFWDS6MX.js';
154
+ export { Tooltip } from './chunk-YFWDS6MX.js';
155
155
  import { RadioGroup, Radio } from './chunk-EPSB4WTL.js';
156
156
  export { Radio, RadioGroup, radioVariants } from './chunk-EPSB4WTL.js';
157
157
  import { Label } from './chunk-I3WGZPI6.js';