@mieweb/ui 0.10.0-dev.12 → 0.10.0-dev.13

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/index.cjs CHANGED
@@ -27,8 +27,8 @@ var chunkYGA35Z2P_cjs = require('./chunk-YGA35Z2P.cjs');
27
27
  var chunk2G75X6TS_cjs = require('./chunk-2G75X6TS.cjs');
28
28
  var chunk7RV6CAP6_cjs = require('./chunk-7RV6CAP6.cjs');
29
29
  var chunkMYHV2ND3_cjs = require('./chunk-MYHV2ND3.cjs');
30
- var chunkOD47TTAW_cjs = require('./chunk-OD47TTAW.cjs');
31
- var chunkX4XPNTCZ_cjs = require('./chunk-X4XPNTCZ.cjs');
30
+ var chunkV43ZFGCE_cjs = require('./chunk-V43ZFGCE.cjs');
31
+ var chunkYQ2NQV5C_cjs = require('./chunk-YQ2NQV5C.cjs');
32
32
  var chunkJTSKPDPH_cjs = require('./chunk-JTSKPDPH.cjs');
33
33
  var chunkGD7EBGC4_cjs = require('./chunk-GD7EBGC4.cjs');
34
34
  var chunk3SZQRMHM_cjs = require('./chunk-3SZQRMHM.cjs');
@@ -1429,7 +1429,7 @@ function AIEmptyState({
1429
1429
  /* @__PURE__ */ jsxRuntime.jsx(SuggestedActions, { actions: suggestions, onSelect: onSuggestionSelect })
1430
1430
  ] }) : void 0;
1431
1431
  return /* @__PURE__ */ jsxRuntime.jsx(
1432
- chunkOD47TTAW_cjs.EmptyState,
1432
+ chunkV43ZFGCE_cjs.EmptyState,
1433
1433
  {
1434
1434
  title,
1435
1435
  description,
@@ -1490,7 +1490,7 @@ function AIChat({
1490
1490
  renderMessageFooter
1491
1491
  }) {
1492
1492
  React13__namespace.useEffect(() => {
1493
- chunkX4XPNTCZ_cjs.notifyComposerMigrationOnce("AIChat");
1493
+ chunkYQ2NQV5C_cjs.notifyComposerMigrationOnce("AIChat");
1494
1494
  }, []);
1495
1495
  const messages = React13__namespace.useMemo(
1496
1496
  () => session?.messages || messagesProp || [],
@@ -1626,7 +1626,7 @@ function AIChat({
1626
1626
  },
1627
1627
  [isHostControlled, hostOnValueChange]
1628
1628
  );
1629
- const { stopTyping } = chunkOD47TTAW_cjs.useTypingEmulation({
1629
+ const { stopTyping } = chunkV43ZFGCE_cjs.useTypingEmulation({
1630
1630
  value: composerValue,
1631
1631
  onTypingStart,
1632
1632
  onTypingStop
@@ -1793,7 +1793,7 @@ function AIChat({
1793
1793
  }
1794
1794
  ) }),
1795
1795
  /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "ai-chat-composer", className: "p-3", children: /* @__PURE__ */ jsxRuntime.jsx(
1796
- chunkX4XPNTCZ_cjs.ChatComposer,
1796
+ chunkYQ2NQV5C_cjs.ChatComposer,
1797
1797
  {
1798
1798
  onSend: hostOnSend ? (message) => sendWithRestore(message, hostOnSend) : handleSend,
1799
1799
  placeholder: inputPlaceholder,
@@ -1815,8 +1815,8 @@ function AIChat({
1815
1815
  allowAttachments: composerRest.allowAttachments ?? legacyAttachments,
1816
1816
  maxLength: composerRest.maxLength ?? 1600,
1817
1817
  inputLabel: composerRest.inputLabel ?? "Message",
1818
- acceptedFileTypes: composerRest.acceptedFileTypes ?? (legacyAttachments ? chunkX4XPNTCZ_cjs.DEFAULT_ACCEPTED_FILE_TYPES : void 0),
1819
- maxFileSize: composerRest.maxFileSize ?? (legacyAttachments ? chunkX4XPNTCZ_cjs.DEFAULT_MAX_FILE_SIZE : void 0),
1818
+ acceptedFileTypes: composerRest.acceptedFileTypes ?? (legacyAttachments ? chunkYQ2NQV5C_cjs.DEFAULT_ACCEPTED_FILE_TYPES : void 0),
1819
+ maxFileSize: composerRest.maxFileSize ?? (legacyAttachments ? chunkYQ2NQV5C_cjs.DEFAULT_MAX_FILE_SIZE : void 0),
1820
1820
  value: composerValue,
1821
1821
  onValueChange: handleComposerValueChange
1822
1822
  }
@@ -44821,159 +44821,159 @@ Object.defineProperty(exports, "getToolIcon", {
44821
44821
  });
44822
44822
  Object.defineProperty(exports, "AttachmentPreview", {
44823
44823
  enumerable: true,
44824
- get: function () { return chunkOD47TTAW_cjs.AttachmentPreview; }
44824
+ get: function () { return chunkV43ZFGCE_cjs.AttachmentPreview; }
44825
44825
  });
44826
44826
  Object.defineProperty(exports, "ConversationHeader", {
44827
44827
  enumerable: true,
44828
- get: function () { return chunkOD47TTAW_cjs.ConversationHeader; }
44828
+ get: function () { return chunkV43ZFGCE_cjs.ConversationHeader; }
44829
44829
  });
44830
44830
  Object.defineProperty(exports, "ConversationListItem", {
44831
44831
  enumerable: true,
44832
- get: function () { return chunkOD47TTAW_cjs.ConversationListItem; }
44832
+ get: function () { return chunkV43ZFGCE_cjs.ConversationListItem; }
44833
44833
  });
44834
44834
  Object.defineProperty(exports, "ConversationListSkeleton", {
44835
44835
  enumerable: true,
44836
- get: function () { return chunkOD47TTAW_cjs.ConversationListSkeleton; }
44836
+ get: function () { return chunkV43ZFGCE_cjs.ConversationListSkeleton; }
44837
44837
  });
44838
44838
  Object.defineProperty(exports, "DateSeparator", {
44839
44839
  enumerable: true,
44840
- get: function () { return chunkOD47TTAW_cjs.DateSeparator; }
44840
+ get: function () { return chunkV43ZFGCE_cjs.DateSeparator; }
44841
44841
  });
44842
44842
  Object.defineProperty(exports, "EmptyState", {
44843
44843
  enumerable: true,
44844
- get: function () { return chunkOD47TTAW_cjs.EmptyState; }
44844
+ get: function () { return chunkV43ZFGCE_cjs.EmptyState; }
44845
44845
  });
44846
44846
  Object.defineProperty(exports, "LightboxModal", {
44847
44847
  enumerable: true,
44848
- get: function () { return chunkOD47TTAW_cjs.LightboxModal; }
44848
+ get: function () { return chunkV43ZFGCE_cjs.LightboxModal; }
44849
44849
  });
44850
44850
  Object.defineProperty(exports, "LoadMoreButton", {
44851
44851
  enumerable: true,
44852
- get: function () { return chunkOD47TTAW_cjs.LoadMoreButton; }
44852
+ get: function () { return chunkV43ZFGCE_cjs.LoadMoreButton; }
44853
44853
  });
44854
44854
  Object.defineProperty(exports, "MessageBubble", {
44855
44855
  enumerable: true,
44856
- get: function () { return chunkOD47TTAW_cjs.MessageBubble; }
44856
+ get: function () { return chunkV43ZFGCE_cjs.MessageBubble; }
44857
44857
  });
44858
44858
  Object.defineProperty(exports, "MessageList", {
44859
44859
  enumerable: true,
44860
- get: function () { return chunkOD47TTAW_cjs.MessageList; }
44860
+ get: function () { return chunkV43ZFGCE_cjs.MessageList; }
44861
44861
  });
44862
44862
  Object.defineProperty(exports, "MessageStatusIcon", {
44863
44863
  enumerable: true,
44864
- get: function () { return chunkOD47TTAW_cjs.MessageStatusIcon; }
44864
+ get: function () { return chunkV43ZFGCE_cjs.MessageStatusIcon; }
44865
44865
  });
44866
44866
  Object.defineProperty(exports, "MessageThread", {
44867
44867
  enumerable: true,
44868
- get: function () { return chunkOD47TTAW_cjs.MessageThread; }
44868
+ get: function () { return chunkV43ZFGCE_cjs.MessageThread; }
44869
44869
  });
44870
44870
  Object.defineProperty(exports, "MessagingSplitView", {
44871
44871
  enumerable: true,
44872
- get: function () { return chunkOD47TTAW_cjs.MessagingSplitView; }
44872
+ get: function () { return chunkV43ZFGCE_cjs.MessagingSplitView; }
44873
44873
  });
44874
44874
  Object.defineProperty(exports, "ReadReceiptIndicator", {
44875
44875
  enumerable: true,
44876
- get: function () { return chunkOD47TTAW_cjs.ReadReceiptIndicator; }
44876
+ get: function () { return chunkV43ZFGCE_cjs.ReadReceiptIndicator; }
44877
44877
  });
44878
44878
  Object.defineProperty(exports, "SkeletonMessage", {
44879
44879
  enumerable: true,
44880
- get: function () { return chunkOD47TTAW_cjs.SkeletonMessage; }
44880
+ get: function () { return chunkV43ZFGCE_cjs.SkeletonMessage; }
44881
44881
  });
44882
44882
  Object.defineProperty(exports, "TypingIndicator", {
44883
44883
  enumerable: true,
44884
- get: function () { return chunkOD47TTAW_cjs.TypingIndicator; }
44884
+ get: function () { return chunkV43ZFGCE_cjs.TypingIndicator; }
44885
44885
  });
44886
44886
  Object.defineProperty(exports, "bubbleVariants", {
44887
44887
  enumerable: true,
44888
- get: function () { return chunkOD47TTAW_cjs.bubbleVariants; }
44888
+ get: function () { return chunkV43ZFGCE_cjs.bubbleVariants; }
44889
44889
  });
44890
44890
  Object.defineProperty(exports, "formatDateLabel", {
44891
44891
  enumerable: true,
44892
- get: function () { return chunkOD47TTAW_cjs.formatDateLabel; }
44892
+ get: function () { return chunkV43ZFGCE_cjs.formatDateLabel; }
44893
44893
  });
44894
44894
  Object.defineProperty(exports, "formatFileSize", {
44895
44895
  enumerable: true,
44896
- get: function () { return chunkOD47TTAW_cjs.formatFileSize; }
44896
+ get: function () { return chunkV43ZFGCE_cjs.formatFileSize; }
44897
44897
  });
44898
44898
  Object.defineProperty(exports, "formatLastSeen", {
44899
44899
  enumerable: true,
44900
- get: function () { return chunkOD47TTAW_cjs.formatLastSeen; }
44900
+ get: function () { return chunkV43ZFGCE_cjs.formatLastSeen; }
44901
44901
  });
44902
44902
  Object.defineProperty(exports, "getConversationSubtitle", {
44903
44903
  enumerable: true,
44904
- get: function () { return chunkOD47TTAW_cjs.getConversationSubtitle; }
44904
+ get: function () { return chunkV43ZFGCE_cjs.getConversationSubtitle; }
44905
44905
  });
44906
44906
  Object.defineProperty(exports, "getConversationTitle", {
44907
44907
  enumerable: true,
44908
- get: function () { return chunkOD47TTAW_cjs.getConversationTitle; }
44908
+ get: function () { return chunkV43ZFGCE_cjs.getConversationTitle; }
44909
44909
  });
44910
44910
  Object.defineProperty(exports, "groupMessagesByDate", {
44911
44911
  enumerable: true,
44912
- get: function () { return chunkOD47TTAW_cjs.groupMessagesByDate; }
44912
+ get: function () { return chunkV43ZFGCE_cjs.groupMessagesByDate; }
44913
44913
  });
44914
44914
  Object.defineProperty(exports, "headerVariants", {
44915
44915
  enumerable: true,
44916
- get: function () { return chunkOD47TTAW_cjs.headerVariants; }
44916
+ get: function () { return chunkV43ZFGCE_cjs.headerVariants; }
44917
44917
  });
44918
44918
  Object.defineProperty(exports, "isSameSenderGroup", {
44919
44919
  enumerable: true,
44920
- get: function () { return chunkOD47TTAW_cjs.isSameSenderGroup; }
44920
+ get: function () { return chunkV43ZFGCE_cjs.isSameSenderGroup; }
44921
44921
  });
44922
44922
  Object.defineProperty(exports, "useMessageScroll", {
44923
44923
  enumerable: true,
44924
- get: function () { return chunkOD47TTAW_cjs.useMessageScroll; }
44924
+ get: function () { return chunkV43ZFGCE_cjs.useMessageScroll; }
44925
44925
  });
44926
44926
  Object.defineProperty(exports, "useMessages", {
44927
44927
  enumerable: true,
44928
- get: function () { return chunkOD47TTAW_cjs.useMessages; }
44928
+ get: function () { return chunkV43ZFGCE_cjs.useMessages; }
44929
44929
  });
44930
44930
  Object.defineProperty(exports, "useReadReceipts", {
44931
44931
  enumerable: true,
44932
- get: function () { return chunkOD47TTAW_cjs.useReadReceipts; }
44932
+ get: function () { return chunkV43ZFGCE_cjs.useReadReceipts; }
44933
44933
  });
44934
44934
  Object.defineProperty(exports, "useTypingEmulation", {
44935
44935
  enumerable: true,
44936
- get: function () { return chunkOD47TTAW_cjs.useTypingEmulation; }
44936
+ get: function () { return chunkV43ZFGCE_cjs.useTypingEmulation; }
44937
44937
  });
44938
44938
  Object.defineProperty(exports, "useTypingIndicator", {
44939
44939
  enumerable: true,
44940
- get: function () { return chunkOD47TTAW_cjs.useTypingIndicator; }
44940
+ get: function () { return chunkV43ZFGCE_cjs.useTypingIndicator; }
44941
44941
  });
44942
44942
  Object.defineProperty(exports, "AttachmentPicker", {
44943
44943
  enumerable: true,
44944
- get: function () { return chunkX4XPNTCZ_cjs.AttachmentPicker; }
44944
+ get: function () { return chunkYQ2NQV5C_cjs.AttachmentPicker; }
44945
44945
  });
44946
44946
  Object.defineProperty(exports, "AttachmentPreviewItem", {
44947
44947
  enumerable: true,
44948
- get: function () { return chunkX4XPNTCZ_cjs.AttachmentPreviewItem; }
44948
+ get: function () { return chunkYQ2NQV5C_cjs.AttachmentPreviewItem; }
44949
44949
  });
44950
44950
  Object.defineProperty(exports, "CameraButton", {
44951
44951
  enumerable: true,
44952
- get: function () { return chunkX4XPNTCZ_cjs.CameraButton; }
44952
+ get: function () { return chunkYQ2NQV5C_cjs.CameraButton; }
44953
44953
  });
44954
44954
  Object.defineProperty(exports, "ChatComposer", {
44955
44955
  enumerable: true,
44956
- get: function () { return chunkX4XPNTCZ_cjs.ChatComposer; }
44956
+ get: function () { return chunkYQ2NQV5C_cjs.ChatComposer; }
44957
44957
  });
44958
44958
  Object.defineProperty(exports, "ComposerModelSelector", {
44959
44959
  enumerable: true,
44960
- get: function () { return chunkX4XPNTCZ_cjs.ComposerModelSelector; }
44960
+ get: function () { return chunkYQ2NQV5C_cjs.ComposerModelSelector; }
44961
44961
  });
44962
44962
  Object.defineProperty(exports, "DragDropZone", {
44963
44963
  enumerable: true,
44964
- get: function () { return chunkX4XPNTCZ_cjs.DragDropZone; }
44964
+ get: function () { return chunkYQ2NQV5C_cjs.DragDropZone; }
44965
44965
  });
44966
44966
  Object.defineProperty(exports, "generateAttachmentId", {
44967
44967
  enumerable: true,
44968
- get: function () { return chunkX4XPNTCZ_cjs.generateAttachmentId; }
44968
+ get: function () { return chunkYQ2NQV5C_cjs.generateAttachmentId; }
44969
44969
  });
44970
44970
  Object.defineProperty(exports, "getFileType", {
44971
44971
  enumerable: true,
44972
- get: function () { return chunkX4XPNTCZ_cjs.getFileType; }
44972
+ get: function () { return chunkYQ2NQV5C_cjs.getFileType; }
44973
44973
  });
44974
44974
  Object.defineProperty(exports, "validateFile", {
44975
44975
  enumerable: true,
44976
- get: function () { return chunkX4XPNTCZ_cjs.validateFile; }
44976
+ get: function () { return chunkYQ2NQV5C_cjs.validateFile; }
44977
44977
  });
44978
44978
  Object.defineProperty(exports, "RecordButton", {
44979
44979
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1262,6 +1262,14 @@ interface ChatComposerProps {
1262
1262
  * with the composer's own.
1263
1263
  */
1264
1264
  textareaProps?: Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, 'value' | 'defaultValue'>;
1265
+ /**
1266
+ * Custom node rendered at the leading edge, before the `+` menu (e.g. a
1267
+ * voice-activation toggle). Wrapped in a 32px-tall (`h-8`) flex row so it
1268
+ * aligns with the other controls; taller content overflows and stays
1269
+ * vertically centered. Interaction state is not managed: pass your own
1270
+ * disabled state when the composer is `disabled`.
1271
+ */
1272
+ leadingSlot?: React$1.ReactNode;
1265
1273
  /** Extra entries for the `+` menu, rendered after the built-in items. */
1266
1274
  addMenuItems?: ChatComposerMenuItem[];
1267
1275
  /** Enable file attachments (built-in "Attach files" menu item, paste-to-attach, drag-and-drop, chips). @default true */
package/dist/index.d.ts CHANGED
@@ -1262,6 +1262,14 @@ interface ChatComposerProps {
1262
1262
  * with the composer's own.
1263
1263
  */
1264
1264
  textareaProps?: Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, 'value' | 'defaultValue'>;
1265
+ /**
1266
+ * Custom node rendered at the leading edge, before the `+` menu (e.g. a
1267
+ * voice-activation toggle). Wrapped in a 32px-tall (`h-8`) flex row so it
1268
+ * aligns with the other controls; taller content overflows and stays
1269
+ * vertically centered. Interaction state is not managed: pass your own
1270
+ * disabled state when the composer is `disabled`.
1271
+ */
1272
+ leadingSlot?: React$1.ReactNode;
1265
1273
  /** Extra entries for the `+` menu, rendered after the built-in items. */
1266
1274
  addMenuItems?: ChatComposerMenuItem[];
1267
1275
  /** Enable file attachments (built-in "Attach files" menu item, paste-to-attach, drag-and-drop, chips). @default true */
package/dist/index.js CHANGED
@@ -31,10 +31,10 @@ export { SourceTip } from './chunk-Z5V7SAZ4.js';
31
31
  export { Sparkline } from './chunk-CG4ZKJLE.js';
32
32
  import { SparklesIcon, RefreshIcon, CloseIcon, JumpToBottomButton, AIMessageDisplay } from './chunk-TZJQB4P2.js';
33
33
  export { AILogoIcon, AIMessageDisplay, AITypingIndicator, ChatBubble, ChevronIcon, CloseIcon, CollapsiblePill, MCPToolCallDisplay, MessageAvatar, RefreshIcon, ResourceLink, SendIcon, SparklesIcon, SpinnerIcon, ToolStatusIcon, getToolIcon } from './chunk-TZJQB4P2.js';
34
- import { useTypingEmulation, EmptyState } from './chunk-3M7TAXNR.js';
35
- 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-3M7TAXNR.js';
36
- import { notifyComposerMigrationOnce, ChatComposer, DEFAULT_MAX_FILE_SIZE, DEFAULT_ACCEPTED_FILE_TYPES } from './chunk-ACCAXVOG.js';
37
- export { AttachmentPicker, AttachmentPreviewItem, CameraButton, ChatComposer, ComposerModelSelector, DragDropZone, generateAttachmentId, getFileType, validateFile } from './chunk-ACCAXVOG.js';
34
+ import { useTypingEmulation, EmptyState } from './chunk-3YFJBUX4.js';
35
+ 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-3YFJBUX4.js';
36
+ import { notifyComposerMigrationOnce, ChatComposer, DEFAULT_MAX_FILE_SIZE, DEFAULT_ACCEPTED_FILE_TYPES } from './chunk-4CXGT3P7.js';
37
+ export { AttachmentPicker, AttachmentPreviewItem, CameraButton, ChatComposer, ComposerModelSelector, DragDropZone, generateAttachmentId, getFileType, validateFile } from './chunk-4CXGT3P7.js';
38
38
  import { RecordButton } from './chunk-VNWJTCBQ.js';
39
39
  export { RecordButton, formatDuration, recordButtonVariants } from './chunk-VNWJTCBQ.js';
40
40
  export { RichTextEditor, convertAngleBracketsToMustache, processDictation } from './chunk-OE5CKRUC.js';