@mieweb/ui 0.9.0-dev.2 → 0.9.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.
Files changed (106) hide show
  1. package/dist/{Animated-Cs-naa2g.d.cts → Animated-XmH6k8pZ.d.cts} +16 -3
  2. package/dist/{Animated-Cs-naa2g.d.ts → Animated-XmH6k8pZ.d.ts} +16 -3
  3. package/dist/{chunk-XUVEF2RQ.js → chunk-24SEAAOH.js} +2 -2
  4. package/dist/{chunk-XUVEF2RQ.js.map → chunk-24SEAAOH.js.map} +1 -1
  5. package/dist/{chunk-FUFBRKOG.cjs → chunk-2WBPNXO2.cjs} +21 -21
  6. package/dist/{chunk-FUFBRKOG.cjs.map → chunk-2WBPNXO2.cjs.map} +1 -1
  7. package/dist/{chunk-IUDY6S7I.cjs → chunk-37UZHCLM.cjs} +35 -14
  8. package/dist/chunk-37UZHCLM.cjs.map +1 -0
  9. package/dist/{chunk-O425FKDI.cjs → chunk-3MHG4HYB.cjs} +5 -4
  10. package/dist/chunk-3MHG4HYB.cjs.map +1 -0
  11. package/dist/{chunk-L52N6BEN.cjs → chunk-AUOTJQGO.cjs} +7 -7
  12. package/dist/{chunk-L52N6BEN.cjs.map → chunk-AUOTJQGO.cjs.map} +1 -1
  13. package/dist/{chunk-KATEJG2F.js → chunk-DG6LIEUJ.js} +51 -5
  14. package/dist/chunk-DG6LIEUJ.js.map +1 -0
  15. package/dist/{chunk-2A2FLQJC.cjs → chunk-DH7I5HMK.cjs} +56 -10
  16. package/dist/chunk-DH7I5HMK.cjs.map +1 -0
  17. package/dist/{chunk-ADUEASXF.cjs → chunk-E7G22IQM.cjs} +27 -27
  18. package/dist/{chunk-ADUEASXF.cjs.map → chunk-E7G22IQM.cjs.map} +1 -1
  19. package/dist/{chunk-ONNY7UO4.js → chunk-JDJQTKTX.js} +3 -3
  20. package/dist/{chunk-ONNY7UO4.js.map → chunk-JDJQTKTX.js.map} +1 -1
  21. package/dist/{chunk-BJKAVWED.js → chunk-MBWF36DJ.js} +35 -14
  22. package/dist/chunk-MBWF36DJ.js.map +1 -0
  23. package/dist/chunk-NV2CWBI2.cjs +290 -0
  24. package/dist/chunk-NV2CWBI2.cjs.map +1 -0
  25. package/dist/{chunk-7KN6J7XV.cjs → chunk-OMAACCFW.cjs} +7 -7
  26. package/dist/{chunk-7KN6J7XV.cjs.map → chunk-OMAACCFW.cjs.map} +1 -1
  27. package/dist/{chunk-YJP6DUFO.cjs → chunk-PKD3JLS2.cjs} +6 -6
  28. package/dist/{chunk-YJP6DUFO.cjs.map → chunk-PKD3JLS2.cjs.map} +1 -1
  29. package/dist/{chunk-5H7SAEQO.js → chunk-QKFJDQEK.js} +3 -3
  30. package/dist/{chunk-5H7SAEQO.js.map → chunk-QKFJDQEK.js.map} +1 -1
  31. package/dist/{chunk-XJTFZLWH.cjs → chunk-QO6PRHDX.cjs} +2 -2
  32. package/dist/{chunk-XJTFZLWH.cjs.map → chunk-QO6PRHDX.cjs.map} +1 -1
  33. package/dist/{chunk-OHDIJOGG.js → chunk-RD3JDFYJ.js} +3 -3
  34. package/dist/{chunk-OHDIJOGG.js.map → chunk-RD3JDFYJ.js.map} +1 -1
  35. package/dist/{chunk-4SM3I7WE.cjs → chunk-RXPEZXAB.cjs} +67 -38
  36. package/dist/chunk-RXPEZXAB.cjs.map +1 -0
  37. package/dist/{chunk-VTR2KGLY.cjs → chunk-S3BCHPXT.cjs} +9 -9
  38. package/dist/{chunk-VTR2KGLY.cjs.map → chunk-S3BCHPXT.cjs.map} +1 -1
  39. package/dist/{chunk-KU3XRHWA.js → chunk-TZX76ZNZ.js} +67 -38
  40. package/dist/chunk-TZX76ZNZ.js.map +1 -0
  41. package/dist/{chunk-RPG2ZP2T.js → chunk-USZ3VEPE.js} +5 -4
  42. package/dist/chunk-USZ3VEPE.js.map +1 -0
  43. package/dist/{chunk-Q7G56ZIO.js → chunk-WUBMDOTG.js} +3 -3
  44. package/dist/{chunk-Q7G56ZIO.js.map → chunk-WUBMDOTG.js.map} +1 -1
  45. package/dist/chunk-XCP454Q6.js +263 -0
  46. package/dist/chunk-XCP454Q6.js.map +1 -0
  47. package/dist/{chunk-KI5ES4GR.js → chunk-XEZCHQHB.js} +11 -2
  48. package/dist/chunk-XEZCHQHB.js.map +1 -0
  49. package/dist/{chunk-I3DQXUSC.js → chunk-Y6DFMDMH.js} +3 -3
  50. package/dist/{chunk-I3DQXUSC.js.map → chunk-Y6DFMDMH.js.map} +1 -1
  51. package/dist/{chunk-2KQWEROH.js → chunk-YSEMAI4I.js} +3 -3
  52. package/dist/{chunk-2KQWEROH.js.map → chunk-YSEMAI4I.js.map} +1 -1
  53. package/dist/{chunk-XRKBHECB.cjs → chunk-Z3RYJWSV.cjs} +11 -2
  54. package/dist/chunk-Z3RYJWSV.cjs.map +1 -0
  55. package/dist/components/AlertDialog/index.cjs +4 -4
  56. package/dist/components/AlertDialog/index.js +3 -3
  57. package/dist/components/Collapsible/index.cjs +6 -4
  58. package/dist/components/Collapsible/index.js +3 -1
  59. package/dist/components/Dropdown/index.cjs +9 -8
  60. package/dist/components/Dropdown/index.js +2 -1
  61. package/dist/components/KeyboardShortcutsOverlay/index.cjs +5 -5
  62. package/dist/components/KeyboardShortcutsOverlay/index.js +3 -3
  63. package/dist/components/MediaEditor/index.cjs +8 -8
  64. package/dist/components/MediaEditor/index.js +3 -3
  65. package/dist/components/Modal/index.cjs +10 -10
  66. package/dist/components/Modal/index.js +2 -2
  67. package/dist/components/RichTextEditor/index.cjs +6 -5
  68. package/dist/components/RichTextEditor/index.js +3 -2
  69. package/dist/components/SuperChat/index.cjs +14 -13
  70. package/dist/components/SuperChat/index.cjs.map +1 -1
  71. package/dist/components/SuperChat/index.js +3 -2
  72. package/dist/components/SuperChat/index.js.map +1 -1
  73. package/dist/components/SuperChat/plugins/index.cjs +2 -2
  74. package/dist/components/SuperChat/plugins/index.js +1 -1
  75. package/dist/esheet.cjs +6 -6
  76. package/dist/esheet.js +3 -3
  77. package/dist/hooks/index.cjs +13 -13
  78. package/dist/hooks/index.js +1 -1
  79. package/dist/index.cjs +1068 -1048
  80. package/dist/index.cjs.map +1 -1
  81. package/dist/index.d.cts +28 -2
  82. package/dist/index.d.ts +28 -2
  83. package/dist/index.js +689 -669
  84. package/dist/index.js.map +1 -1
  85. package/dist/motion.cjs +7 -7
  86. package/dist/motion.d.cts +1 -1
  87. package/dist/motion.d.ts +1 -1
  88. package/dist/motion.js +2 -2
  89. package/dist/styles.css +1 -1
  90. package/dist/tailwind-preset.cjs +4 -4
  91. package/dist/tailwind-preset.js +1 -1
  92. package/package.json +1 -1
  93. package/dist/chunk-2A2FLQJC.cjs.map +0 -1
  94. package/dist/chunk-4SM3I7WE.cjs.map +0 -1
  95. package/dist/chunk-BJKAVWED.js.map +0 -1
  96. package/dist/chunk-BN75TLUN.cjs +0 -163
  97. package/dist/chunk-BN75TLUN.cjs.map +0 -1
  98. package/dist/chunk-IUDY6S7I.cjs.map +0 -1
  99. package/dist/chunk-KATEJG2F.js.map +0 -1
  100. package/dist/chunk-KI5ES4GR.js.map +0 -1
  101. package/dist/chunk-KU3XRHWA.js.map +0 -1
  102. package/dist/chunk-O425FKDI.cjs.map +0 -1
  103. package/dist/chunk-RPG2ZP2T.js.map +0 -1
  104. package/dist/chunk-WYMO3IIK.js +0 -136
  105. package/dist/chunk-WYMO3IIK.js.map +0 -1
  106. package/dist/chunk-XRKBHECB.cjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -80,7 +80,7 @@ export { Accessibility as AccessibilityIcon, Activity as ActivityIcon, AlertCirc
80
80
  export { R as ResolvedTheme, T as Theme, u as useTheme } from './useTheme-B9SWu6ui.cjs';
81
81
  export { A as AnchoredPlacement, U as UseAnchoredPositionOptions, a as UseAnchoredPositionReturn, u as useAnchoredPosition } from './useAnchoredPosition-CKwLSQW8.cjs';
82
82
  export { D as DEFAULT_FILLER_WORDS, a as DEFAULT_MIN_SILENCE_MS, b as DEFAULT_NL_SILENCE_MS, F as FillerAnalysis, S as SilenceThresholdCount, T as TranscriptClipboard, c as TranscriptEditStats, U as UseTranscriptEditsOptions, d as UseTranscriptEditsResult, e as buildPlaybackSegments, g as getSpeedAtIndex, i as initEditableWords, f as insertSilences, u as useTranscriptEdits } from './useTranscriptEdits-CGzlemHT.cjs';
83
- export { A as Animated, a as AnimatedPresence, b as AnimatedProps, d as MotionPresenceProps, M as MotionPreset, e as MotionPresetDefinition, c as MotionRuntime, f as MotionVariant, m as motionPresets, u as useMotionRuntime } from './Animated-Cs-naa2g.cjs';
83
+ export { A as Animated, a as AnimatedPresence, b as AnimatedProps, M as MotionEdge, e as MotionPresenceProps, c as MotionPreset, f as MotionPresetDefinition, d as MotionRuntime, g as MotionVariant, m as motionPresets, u as useMotionRuntime } from './Animated-XmH6k8pZ.cjs';
84
84
  export { calculateAge, cn, dateToDisplayFormat, displayFormatToDateString, formatDateValue, formatPhoneNumber, isDateEmpty, isDateInFuture, isDateInPast, isPhoneNumberEmpty, isStorybookDocsMode, isValidDate, isValidDrivingAge, isValidPhoneNumber, miewebUITwMergeConflicts, parseDateValue, unformatPhoneNumber } from './utils/index.cjs';
85
85
  export { i as isHtmlEmpty, s as stripHtmlTags } from './html-MdxqSzjD.cjs';
86
86
  export { default as miewebUIPreset, miewebUISafelist } from './tailwind-preset.cjs';
@@ -3326,6 +3326,20 @@ interface ChatComposerProps {
3326
3326
  * Omit to disable mentions entirely (default).
3327
3327
  */
3328
3328
  mentionOptions?: MentionOption[];
3329
+ /**
3330
+ * Message being replied to. When set, a dismissible preview row renders at
3331
+ * the top of the card, the input is focused, and the sent `NewMessage`
3332
+ * carries `replyToId`. The host owns the state: sending does not clear it
3333
+ * (clear it in `onSend`), and the preview's close button only calls
3334
+ * `onCancelReply`. Same contract as `MessageComposer`.
3335
+ */
3336
+ replyTo?: {
3337
+ id: string;
3338
+ content: string;
3339
+ senderName: string;
3340
+ } | null;
3341
+ /** Called when the reply preview's cancel button is clicked. */
3342
+ onCancelReply?: () => void;
3329
3343
  /** Show the built-in mic button. @default false */
3330
3344
  showMic?: boolean;
3331
3345
  /** Called when the built-in mic button is clicked. */
@@ -3389,6 +3403,10 @@ interface ChatComposerProps {
3389
3403
  mentionListLabel?: string;
3390
3404
  /** Overlay text shown while dragging files over the composer. @default 'Drop files here' */
3391
3405
  dropFilesLabel?: string;
3406
+ /** Prefix shown before the sender name in the reply preview. @default 'Replying to' */
3407
+ replyingToLabel?: string;
3408
+ /** Accessible label for the reply preview's cancel button. @default 'Cancel reply' */
3409
+ cancelReplyLabel?: string;
3392
3410
  className?: string;
3393
3411
  }
3394
3412
  /**
@@ -10929,6 +10947,14 @@ interface ToastProps extends ToastData {
10929
10947
  /** Called when the toast is dismissed */
10930
10948
  onClose: () => void;
10931
10949
  }
10950
+ /**
10951
+ * A single toast surface.
10952
+ *
10953
+ * Entering and leaving are **not** this component's job — they belong to
10954
+ * {@link ToastContainer}, which owns the stack and is the only place an exit
10955
+ * can be held open long enough to animate. Rendering a bare `<Toast>` outside a
10956
+ * container therefore shows it immediately, with no transition.
10957
+ */
10932
10958
  declare function Toast({ title, message, variant, dismissible, action, icon, onClose, }: ToastProps): React__default.JSX.Element;
10933
10959
  interface ToastContainerProps {
10934
10960
  /** Toasts to display */
@@ -10943,7 +10969,7 @@ interface ToastContainerProps {
10943
10969
  /** Called when a toast should be dismissed */
10944
10970
  onDismiss: (id: string) => void;
10945
10971
  }
10946
- declare function ToastContainer({ toasts, position, onDismiss, }: ToastContainerProps): React__default.JSX.Element | null;
10972
+ declare function ToastContainer({ toasts, position, onDismiss, }: ToastContainerProps): React__default.JSX.Element;
10947
10973
 
10948
10974
  interface SystemReport {
10949
10975
  /** Report ID */
package/dist/index.d.ts CHANGED
@@ -80,7 +80,7 @@ export { Accessibility as AccessibilityIcon, Activity as ActivityIcon, AlertCirc
80
80
  export { R as ResolvedTheme, T as Theme, u as useTheme } from './useTheme-B9SWu6ui.js';
81
81
  export { A as AnchoredPlacement, U as UseAnchoredPositionOptions, a as UseAnchoredPositionReturn, u as useAnchoredPosition } from './useAnchoredPosition-CKwLSQW8.js';
82
82
  export { D as DEFAULT_FILLER_WORDS, a as DEFAULT_MIN_SILENCE_MS, b as DEFAULT_NL_SILENCE_MS, F as FillerAnalysis, S as SilenceThresholdCount, T as TranscriptClipboard, c as TranscriptEditStats, U as UseTranscriptEditsOptions, d as UseTranscriptEditsResult, e as buildPlaybackSegments, g as getSpeedAtIndex, i as initEditableWords, f as insertSilences, u as useTranscriptEdits } from './useTranscriptEdits-D32bLs0l.js';
83
- export { A as Animated, a as AnimatedPresence, b as AnimatedProps, d as MotionPresenceProps, M as MotionPreset, e as MotionPresetDefinition, c as MotionRuntime, f as MotionVariant, m as motionPresets, u as useMotionRuntime } from './Animated-Cs-naa2g.js';
83
+ export { A as Animated, a as AnimatedPresence, b as AnimatedProps, M as MotionEdge, e as MotionPresenceProps, c as MotionPreset, f as MotionPresetDefinition, d as MotionRuntime, g as MotionVariant, m as motionPresets, u as useMotionRuntime } from './Animated-XmH6k8pZ.js';
84
84
  export { calculateAge, cn, dateToDisplayFormat, displayFormatToDateString, formatDateValue, formatPhoneNumber, isDateEmpty, isDateInFuture, isDateInPast, isPhoneNumberEmpty, isStorybookDocsMode, isValidDate, isValidDrivingAge, isValidPhoneNumber, miewebUITwMergeConflicts, parseDateValue, unformatPhoneNumber } from './utils/index.js';
85
85
  export { i as isHtmlEmpty, s as stripHtmlTags } from './html-MdxqSzjD.js';
86
86
  export { default as miewebUIPreset, miewebUISafelist } from './tailwind-preset.js';
@@ -3326,6 +3326,20 @@ interface ChatComposerProps {
3326
3326
  * Omit to disable mentions entirely (default).
3327
3327
  */
3328
3328
  mentionOptions?: MentionOption[];
3329
+ /**
3330
+ * Message being replied to. When set, a dismissible preview row renders at
3331
+ * the top of the card, the input is focused, and the sent `NewMessage`
3332
+ * carries `replyToId`. The host owns the state: sending does not clear it
3333
+ * (clear it in `onSend`), and the preview's close button only calls
3334
+ * `onCancelReply`. Same contract as `MessageComposer`.
3335
+ */
3336
+ replyTo?: {
3337
+ id: string;
3338
+ content: string;
3339
+ senderName: string;
3340
+ } | null;
3341
+ /** Called when the reply preview's cancel button is clicked. */
3342
+ onCancelReply?: () => void;
3329
3343
  /** Show the built-in mic button. @default false */
3330
3344
  showMic?: boolean;
3331
3345
  /** Called when the built-in mic button is clicked. */
@@ -3389,6 +3403,10 @@ interface ChatComposerProps {
3389
3403
  mentionListLabel?: string;
3390
3404
  /** Overlay text shown while dragging files over the composer. @default 'Drop files here' */
3391
3405
  dropFilesLabel?: string;
3406
+ /** Prefix shown before the sender name in the reply preview. @default 'Replying to' */
3407
+ replyingToLabel?: string;
3408
+ /** Accessible label for the reply preview's cancel button. @default 'Cancel reply' */
3409
+ cancelReplyLabel?: string;
3392
3410
  className?: string;
3393
3411
  }
3394
3412
  /**
@@ -10929,6 +10947,14 @@ interface ToastProps extends ToastData {
10929
10947
  /** Called when the toast is dismissed */
10930
10948
  onClose: () => void;
10931
10949
  }
10950
+ /**
10951
+ * A single toast surface.
10952
+ *
10953
+ * Entering and leaving are **not** this component's job — they belong to
10954
+ * {@link ToastContainer}, which owns the stack and is the only place an exit
10955
+ * can be held open long enough to animate. Rendering a bare `<Toast>` outside a
10956
+ * container therefore shows it immediately, with no transition.
10957
+ */
10932
10958
  declare function Toast({ title, message, variant, dismissible, action, icon, onClose, }: ToastProps): React__default.JSX.Element;
10933
10959
  interface ToastContainerProps {
10934
10960
  /** Toasts to display */
@@ -10943,7 +10969,7 @@ interface ToastContainerProps {
10943
10969
  /** Called when a toast should be dismissed */
10944
10970
  onDismiss: (id: string) => void;
10945
10971
  }
10946
- declare function ToastContainer({ toasts, position, onDismiss, }: ToastContainerProps): React__default.JSX.Element | null;
10972
+ declare function ToastContainer({ toasts, position, onDismiss, }: ToastContainerProps): React__default.JSX.Element;
10947
10973
 
10948
10974
  interface SystemReport {
10949
10975
  /** Report ID */