@mieweb/ui 0.9.0-dev.6 → 0.9.0-dev.7

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.
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkJFLC7SHM_cjs = require('../../../chunk-JFLC7SHM.cjs');
4
- var chunkXCNDZNY7_cjs = require('../../../chunk-XCNDZNY7.cjs');
5
- require('../../../chunk-T6PTKWM6.cjs');
4
+ var chunkOFUKTVBN_cjs = require('../../../chunk-OFUKTVBN.cjs');
5
+ require('../../../chunk-OYQ7GYAA.cjs');
6
6
  require('../../../chunk-RXPEZXAB.cjs');
7
7
  require('../../../chunk-I44YNYI6.cjs');
8
8
  require('../../../chunk-Z5S5JEJD.cjs');
@@ -612,7 +612,7 @@ function ZoomableImage({
612
612
  ),
613
613
  open && typeof document !== "undefined" && reactDom.createPortal(
614
614
  /* @__PURE__ */ jsxRuntime.jsx(
615
- chunkXCNDZNY7_cjs.LightboxModal,
615
+ chunkOFUKTVBN_cjs.LightboxModal,
616
616
  {
617
617
  attachment,
618
618
  onClose: () => setOpen(false)
@@ -1,6 +1,6 @@
1
1
  import { useTextRenderContext } from '../../../chunk-I6CY5C6A.js';
2
- import { LightboxModal } from '../../../chunk-NORSXAXL.js';
3
- import '../../../chunk-3SD7PDCV.js';
2
+ import { LightboxModal } from '../../../chunk-VSVGMMNO.js';
3
+ import '../../../chunk-IIFQ6BSJ.js';
4
4
  import '../../../chunk-TZX76ZNZ.js';
5
5
  import '../../../chunk-6NZXWKUE.js';
6
6
  import '../../../chunk-3IMM2PM4.js';
package/dist/index.cjs CHANGED
@@ -23,8 +23,8 @@ var chunkXTHMC76F_cjs = require('./chunk-XTHMC76F.cjs');
23
23
  var chunk7RV6CAP6_cjs = require('./chunk-7RV6CAP6.cjs');
24
24
  var chunkXXVUHLQN_cjs = require('./chunk-XXVUHLQN.cjs');
25
25
  var chunkWIAQQNFU_cjs = require('./chunk-WIAQQNFU.cjs');
26
- var chunkXCNDZNY7_cjs = require('./chunk-XCNDZNY7.cjs');
27
- var chunkT6PTKWM6_cjs = require('./chunk-T6PTKWM6.cjs');
26
+ var chunkOFUKTVBN_cjs = require('./chunk-OFUKTVBN.cjs');
27
+ var chunkOYQ7GYAA_cjs = require('./chunk-OYQ7GYAA.cjs');
28
28
  var chunkJTSKPDPH_cjs = require('./chunk-JTSKPDPH.cjs');
29
29
  var chunkOMAACCFW_cjs = require('./chunk-OMAACCFW.cjs');
30
30
  var chunk3SZQRMHM_cjs = require('./chunk-3SZQRMHM.cjs');
@@ -1412,7 +1412,7 @@ function AIEmptyState({
1412
1412
  /* @__PURE__ */ jsxRuntime.jsx(SuggestedActions, { actions: suggestions, onSelect: onSuggestionSelect })
1413
1413
  ] }) : void 0;
1414
1414
  return /* @__PURE__ */ jsxRuntime.jsx(
1415
- chunkXCNDZNY7_cjs.EmptyState,
1415
+ chunkOFUKTVBN_cjs.EmptyState,
1416
1416
  {
1417
1417
  title,
1418
1418
  description,
@@ -1473,6 +1473,9 @@ function AIChat({
1473
1473
  renderMessageFooter
1474
1474
  }) {
1475
1475
  const messagesContainerRef = React13__namespace.useRef(null);
1476
+ React13__namespace.useEffect(() => {
1477
+ chunkOYQ7GYAA_cjs.notifyComposerMigrationOnce("AIChat");
1478
+ }, []);
1476
1479
  const messages = React13__namespace.useMemo(
1477
1480
  () => session?.messages || messagesProp || [],
1478
1481
  [session?.messages, messagesProp]
@@ -1509,7 +1512,7 @@ function AIChat({
1509
1512
  },
1510
1513
  [isHostControlled, hostOnValueChange]
1511
1514
  );
1512
- const { stopTyping } = chunkXCNDZNY7_cjs.useTypingEmulation({
1515
+ const { stopTyping } = chunkOFUKTVBN_cjs.useTypingEmulation({
1513
1516
  value: composerValue,
1514
1517
  onTypingStart,
1515
1518
  onTypingStop
@@ -1659,7 +1662,7 @@ function AIChat({
1659
1662
  }
1660
1663
  ) }),
1661
1664
  /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "ai-chat-composer", className: "p-3", children: /* @__PURE__ */ jsxRuntime.jsx(
1662
- chunkT6PTKWM6_cjs.ChatComposer,
1665
+ chunkOYQ7GYAA_cjs.ChatComposer,
1663
1666
  {
1664
1667
  onSend: hostOnSend ? (message) => sendWithRestore(message, hostOnSend) : handleSend,
1665
1668
  placeholder: inputPlaceholder,
@@ -1681,8 +1684,8 @@ function AIChat({
1681
1684
  allowAttachments: composerRest.allowAttachments ?? legacyAttachments,
1682
1685
  maxLength: composerRest.maxLength ?? 1600,
1683
1686
  inputLabel: composerRest.inputLabel ?? "Message",
1684
- acceptedFileTypes: composerRest.acceptedFileTypes ?? (legacyAttachments ? chunkT6PTKWM6_cjs.DEFAULT_ACCEPTED_FILE_TYPES : void 0),
1685
- maxFileSize: composerRest.maxFileSize ?? (legacyAttachments ? chunkT6PTKWM6_cjs.DEFAULT_MAX_FILE_SIZE : void 0),
1687
+ acceptedFileTypes: composerRest.acceptedFileTypes ?? (legacyAttachments ? chunkOYQ7GYAA_cjs.DEFAULT_ACCEPTED_FILE_TYPES : void 0),
1688
+ maxFileSize: composerRest.maxFileSize ?? (legacyAttachments ? chunkOYQ7GYAA_cjs.DEFAULT_MAX_FILE_SIZE : void 0),
1686
1689
  value: composerValue,
1687
1690
  onValueChange: handleComposerValueChange
1688
1691
  }
@@ -44610,175 +44613,159 @@ Object.defineProperty(exports, "getToolIcon", {
44610
44613
  });
44611
44614
  Object.defineProperty(exports, "AttachmentPreview", {
44612
44615
  enumerable: true,
44613
- get: function () { return chunkXCNDZNY7_cjs.AttachmentPreview; }
44614
- });
44615
- Object.defineProperty(exports, "CharacterCounter", {
44616
- enumerable: true,
44617
- get: function () { return chunkXCNDZNY7_cjs.CharacterCounter; }
44616
+ get: function () { return chunkOFUKTVBN_cjs.AttachmentPreview; }
44618
44617
  });
44619
44618
  Object.defineProperty(exports, "ConversationHeader", {
44620
44619
  enumerable: true,
44621
- get: function () { return chunkXCNDZNY7_cjs.ConversationHeader; }
44620
+ get: function () { return chunkOFUKTVBN_cjs.ConversationHeader; }
44622
44621
  });
44623
44622
  Object.defineProperty(exports, "ConversationListItem", {
44624
44623
  enumerable: true,
44625
- get: function () { return chunkXCNDZNY7_cjs.ConversationListItem; }
44624
+ get: function () { return chunkOFUKTVBN_cjs.ConversationListItem; }
44626
44625
  });
44627
44626
  Object.defineProperty(exports, "ConversationListSkeleton", {
44628
44627
  enumerable: true,
44629
- get: function () { return chunkXCNDZNY7_cjs.ConversationListSkeleton; }
44628
+ get: function () { return chunkOFUKTVBN_cjs.ConversationListSkeleton; }
44630
44629
  });
44631
44630
  Object.defineProperty(exports, "DateSeparator", {
44632
44631
  enumerable: true,
44633
- get: function () { return chunkXCNDZNY7_cjs.DateSeparator; }
44632
+ get: function () { return chunkOFUKTVBN_cjs.DateSeparator; }
44634
44633
  });
44635
44634
  Object.defineProperty(exports, "EmptyState", {
44636
44635
  enumerable: true,
44637
- get: function () { return chunkXCNDZNY7_cjs.EmptyState; }
44636
+ get: function () { return chunkOFUKTVBN_cjs.EmptyState; }
44638
44637
  });
44639
44638
  Object.defineProperty(exports, "LightboxModal", {
44640
44639
  enumerable: true,
44641
- get: function () { return chunkXCNDZNY7_cjs.LightboxModal; }
44640
+ get: function () { return chunkOFUKTVBN_cjs.LightboxModal; }
44642
44641
  });
44643
44642
  Object.defineProperty(exports, "LoadMoreButton", {
44644
44643
  enumerable: true,
44645
- get: function () { return chunkXCNDZNY7_cjs.LoadMoreButton; }
44644
+ get: function () { return chunkOFUKTVBN_cjs.LoadMoreButton; }
44646
44645
  });
44647
44646
  Object.defineProperty(exports, "MessageBubble", {
44648
44647
  enumerable: true,
44649
- get: function () { return chunkXCNDZNY7_cjs.MessageBubble; }
44650
- });
44651
- Object.defineProperty(exports, "MessageComposer", {
44652
- enumerable: true,
44653
- get: function () { return chunkXCNDZNY7_cjs.MessageComposer; }
44648
+ get: function () { return chunkOFUKTVBN_cjs.MessageBubble; }
44654
44649
  });
44655
44650
  Object.defineProperty(exports, "MessageList", {
44656
44651
  enumerable: true,
44657
- get: function () { return chunkXCNDZNY7_cjs.MessageList; }
44652
+ get: function () { return chunkOFUKTVBN_cjs.MessageList; }
44658
44653
  });
44659
44654
  Object.defineProperty(exports, "MessageStatusIcon", {
44660
44655
  enumerable: true,
44661
- get: function () { return chunkXCNDZNY7_cjs.MessageStatusIcon; }
44656
+ get: function () { return chunkOFUKTVBN_cjs.MessageStatusIcon; }
44662
44657
  });
44663
44658
  Object.defineProperty(exports, "MessageThread", {
44664
44659
  enumerable: true,
44665
- get: function () { return chunkXCNDZNY7_cjs.MessageThread; }
44660
+ get: function () { return chunkOFUKTVBN_cjs.MessageThread; }
44666
44661
  });
44667
44662
  Object.defineProperty(exports, "MessagingSplitView", {
44668
44663
  enumerable: true,
44669
- get: function () { return chunkXCNDZNY7_cjs.MessagingSplitView; }
44664
+ get: function () { return chunkOFUKTVBN_cjs.MessagingSplitView; }
44670
44665
  });
44671
44666
  Object.defineProperty(exports, "ReadReceiptIndicator", {
44672
44667
  enumerable: true,
44673
- get: function () { return chunkXCNDZNY7_cjs.ReadReceiptIndicator; }
44674
- });
44675
- Object.defineProperty(exports, "SendButton", {
44676
- enumerable: true,
44677
- get: function () { return chunkXCNDZNY7_cjs.SendButton; }
44668
+ get: function () { return chunkOFUKTVBN_cjs.ReadReceiptIndicator; }
44678
44669
  });
44679
44670
  Object.defineProperty(exports, "SkeletonMessage", {
44680
44671
  enumerable: true,
44681
- get: function () { return chunkXCNDZNY7_cjs.SkeletonMessage; }
44672
+ get: function () { return chunkOFUKTVBN_cjs.SkeletonMessage; }
44682
44673
  });
44683
44674
  Object.defineProperty(exports, "TypingIndicator", {
44684
44675
  enumerable: true,
44685
- get: function () { return chunkXCNDZNY7_cjs.TypingIndicator; }
44676
+ get: function () { return chunkOFUKTVBN_cjs.TypingIndicator; }
44686
44677
  });
44687
44678
  Object.defineProperty(exports, "bubbleVariants", {
44688
44679
  enumerable: true,
44689
- get: function () { return chunkXCNDZNY7_cjs.bubbleVariants; }
44680
+ get: function () { return chunkOFUKTVBN_cjs.bubbleVariants; }
44690
44681
  });
44691
44682
  Object.defineProperty(exports, "formatDateLabel", {
44692
44683
  enumerable: true,
44693
- get: function () { return chunkXCNDZNY7_cjs.formatDateLabel; }
44684
+ get: function () { return chunkOFUKTVBN_cjs.formatDateLabel; }
44694
44685
  });
44695
44686
  Object.defineProperty(exports, "formatFileSize", {
44696
44687
  enumerable: true,
44697
- get: function () { return chunkXCNDZNY7_cjs.formatFileSize; }
44688
+ get: function () { return chunkOFUKTVBN_cjs.formatFileSize; }
44698
44689
  });
44699
44690
  Object.defineProperty(exports, "formatLastSeen", {
44700
44691
  enumerable: true,
44701
- get: function () { return chunkXCNDZNY7_cjs.formatLastSeen; }
44692
+ get: function () { return chunkOFUKTVBN_cjs.formatLastSeen; }
44702
44693
  });
44703
44694
  Object.defineProperty(exports, "getConversationSubtitle", {
44704
44695
  enumerable: true,
44705
- get: function () { return chunkXCNDZNY7_cjs.getConversationSubtitle; }
44696
+ get: function () { return chunkOFUKTVBN_cjs.getConversationSubtitle; }
44706
44697
  });
44707
44698
  Object.defineProperty(exports, "getConversationTitle", {
44708
44699
  enumerable: true,
44709
- get: function () { return chunkXCNDZNY7_cjs.getConversationTitle; }
44700
+ get: function () { return chunkOFUKTVBN_cjs.getConversationTitle; }
44710
44701
  });
44711
44702
  Object.defineProperty(exports, "groupMessagesByDate", {
44712
44703
  enumerable: true,
44713
- get: function () { return chunkXCNDZNY7_cjs.groupMessagesByDate; }
44704
+ get: function () { return chunkOFUKTVBN_cjs.groupMessagesByDate; }
44714
44705
  });
44715
44706
  Object.defineProperty(exports, "headerVariants", {
44716
44707
  enumerable: true,
44717
- get: function () { return chunkXCNDZNY7_cjs.headerVariants; }
44708
+ get: function () { return chunkOFUKTVBN_cjs.headerVariants; }
44718
44709
  });
44719
44710
  Object.defineProperty(exports, "isSameSenderGroup", {
44720
44711
  enumerable: true,
44721
- get: function () { return chunkXCNDZNY7_cjs.isSameSenderGroup; }
44722
- });
44723
- Object.defineProperty(exports, "sendButtonVariants", {
44724
- enumerable: true,
44725
- get: function () { return chunkXCNDZNY7_cjs.sendButtonVariants; }
44712
+ get: function () { return chunkOFUKTVBN_cjs.isSameSenderGroup; }
44726
44713
  });
44727
44714
  Object.defineProperty(exports, "useMessageScroll", {
44728
44715
  enumerable: true,
44729
- get: function () { return chunkXCNDZNY7_cjs.useMessageScroll; }
44716
+ get: function () { return chunkOFUKTVBN_cjs.useMessageScroll; }
44730
44717
  });
44731
44718
  Object.defineProperty(exports, "useMessages", {
44732
44719
  enumerable: true,
44733
- get: function () { return chunkXCNDZNY7_cjs.useMessages; }
44720
+ get: function () { return chunkOFUKTVBN_cjs.useMessages; }
44734
44721
  });
44735
44722
  Object.defineProperty(exports, "useReadReceipts", {
44736
44723
  enumerable: true,
44737
- get: function () { return chunkXCNDZNY7_cjs.useReadReceipts; }
44724
+ get: function () { return chunkOFUKTVBN_cjs.useReadReceipts; }
44738
44725
  });
44739
44726
  Object.defineProperty(exports, "useTypingEmulation", {
44740
44727
  enumerable: true,
44741
- get: function () { return chunkXCNDZNY7_cjs.useTypingEmulation; }
44728
+ get: function () { return chunkOFUKTVBN_cjs.useTypingEmulation; }
44742
44729
  });
44743
44730
  Object.defineProperty(exports, "useTypingIndicator", {
44744
44731
  enumerable: true,
44745
- get: function () { return chunkXCNDZNY7_cjs.useTypingIndicator; }
44732
+ get: function () { return chunkOFUKTVBN_cjs.useTypingIndicator; }
44746
44733
  });
44747
44734
  Object.defineProperty(exports, "AttachmentPicker", {
44748
44735
  enumerable: true,
44749
- get: function () { return chunkT6PTKWM6_cjs.AttachmentPicker; }
44736
+ get: function () { return chunkOYQ7GYAA_cjs.AttachmentPicker; }
44750
44737
  });
44751
44738
  Object.defineProperty(exports, "AttachmentPreviewItem", {
44752
44739
  enumerable: true,
44753
- get: function () { return chunkT6PTKWM6_cjs.AttachmentPreviewItem; }
44740
+ get: function () { return chunkOYQ7GYAA_cjs.AttachmentPreviewItem; }
44754
44741
  });
44755
44742
  Object.defineProperty(exports, "CameraButton", {
44756
44743
  enumerable: true,
44757
- get: function () { return chunkT6PTKWM6_cjs.CameraButton; }
44744
+ get: function () { return chunkOYQ7GYAA_cjs.CameraButton; }
44758
44745
  });
44759
44746
  Object.defineProperty(exports, "ChatComposer", {
44760
44747
  enumerable: true,
44761
- get: function () { return chunkT6PTKWM6_cjs.ChatComposer; }
44748
+ get: function () { return chunkOYQ7GYAA_cjs.ChatComposer; }
44762
44749
  });
44763
44750
  Object.defineProperty(exports, "ComposerModelSelector", {
44764
44751
  enumerable: true,
44765
- get: function () { return chunkT6PTKWM6_cjs.ComposerModelSelector; }
44752
+ get: function () { return chunkOYQ7GYAA_cjs.ComposerModelSelector; }
44766
44753
  });
44767
44754
  Object.defineProperty(exports, "DragDropZone", {
44768
44755
  enumerable: true,
44769
- get: function () { return chunkT6PTKWM6_cjs.DragDropZone; }
44756
+ get: function () { return chunkOYQ7GYAA_cjs.DragDropZone; }
44770
44757
  });
44771
44758
  Object.defineProperty(exports, "generateAttachmentId", {
44772
44759
  enumerable: true,
44773
- get: function () { return chunkT6PTKWM6_cjs.generateAttachmentId; }
44760
+ get: function () { return chunkOYQ7GYAA_cjs.generateAttachmentId; }
44774
44761
  });
44775
44762
  Object.defineProperty(exports, "getFileType", {
44776
44763
  enumerable: true,
44777
- get: function () { return chunkT6PTKWM6_cjs.getFileType; }
44764
+ get: function () { return chunkOYQ7GYAA_cjs.getFileType; }
44778
44765
  });
44779
44766
  Object.defineProperty(exports, "validateFile", {
44780
44767
  enumerable: true,
44781
- get: function () { return chunkT6PTKWM6_cjs.validateFile; }
44768
+ get: function () { return chunkOYQ7GYAA_cjs.validateFile; }
44782
44769
  });
44783
44770
  Object.defineProperty(exports, "RecordButton", {
44784
44771
  enumerable: true,