@cometchat/chat-uikit-react 6.1.1 → 6.1.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.
@@ -1,14 +1,8 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120" fill="none">
2
- <g clip-path="url(#clip0_13442_134983)">
3
- <path opacity="0.2" d="M105 45.2598H97.5V64.0098C97.5 74.3635 89.1037 82.7598 78.75 82.7598H45V90.2598C45 98.5435 51.7162 105.26 60 105.26H82.5L98.85 118.872C100.44 120.196 102.806 119.982 104.13 118.392C104.692 117.717 105 116.866 105 115.985V105.26C113.284 105.26 120 98.5435 120 90.2598V60.2598C120 51.976 113.284 45.2598 105 45.2598Z" fill="#DCDCDC"/>
4
- <path opacity="0.2" d="M75 0.259766H15C6.71625 0.259766 0 6.97602 0 15.2598V60.2598C0 68.5435 6.71625 75.2598 15 75.2598V89.6223C15 91.6923 16.68 93.3723 18.75 93.3723C19.6425 93.3723 20.5088 93.0535 21.1875 92.4723L41.25 75.2598H75C83.2838 75.2598 90 68.5435 90 60.2598V15.2598C90 6.97602 83.2838 0.259766 75 0.259766ZM27.7875 43.0473C27.4575 43.411 27.0788 43.726 26.6625 43.9848C26.2575 44.2585 25.8337 44.4985 25.3875 44.6973C24.9225 44.8698 24.4462 45.0085 23.9625 45.1098C23.4825 45.2148 22.9912 45.2635 22.5 45.2598C18.3563 45.2598 15 41.9035 15 37.7598C14.9213 33.6198 18.2138 30.196 22.3538 30.1173C22.8937 30.106 23.4338 30.1548 23.9625 30.2598C24.4462 30.361 24.9225 30.4998 25.3875 30.6723C25.8412 30.8598 26.2688 31.096 26.6625 31.3848C27.0713 31.6435 27.4462 31.9435 27.7875 32.2848C29.2425 33.7323 30.0413 35.7085 30 37.7598C29.9925 39.7473 29.1975 41.6485 27.7875 43.0473ZM50.2875 43.0473C48.8887 44.4573 46.9875 45.2523 45 45.2598C44.5125 45.316 44.025 45.316 43.5375 45.2598C43.0537 45.1585 42.5775 45.0198 42.1125 44.8473C41.6662 44.6485 41.2425 44.4085 40.8375 44.1348C40.4175 43.8648 40.0275 43.5535 39.675 43.1973C38.2425 41.7535 37.4588 39.7923 37.5 37.7598C37.4437 37.2723 37.4437 36.7848 37.5 36.2973C37.6012 35.8135 37.74 35.3373 37.9125 34.8723C38.1 34.4185 38.3363 33.991 38.625 33.5973C38.8913 33.1848 39.195 32.7948 39.525 32.4348C39.885 32.1048 40.275 31.801 40.6875 31.5348C41.0813 31.246 41.5087 31.0098 41.9625 30.8223C42.4725 30.5898 42.9975 30.4023 43.5375 30.2598C47.5987 29.4498 51.5475 32.0898 52.3575 36.151C52.4625 36.6798 52.5112 37.2198 52.5 37.7598C52.5 39.7398 51.72 41.641 50.325 43.0473H50.2875ZM72.7875 43.0473C72.4575 43.411 72.0788 43.726 71.6625 43.9848C71.2575 44.2585 70.8338 44.4985 70.3875 44.6973C69.9225 44.8698 69.4463 45.0085 68.9625 45.1098C68.4825 45.2148 67.9912 45.2635 67.5 45.2598C63.3563 45.2598 60 41.9035 60 37.7598C59.9212 33.6198 63.2138 30.196 67.3538 30.1173C67.8938 30.106 68.4337 30.1548 68.9625 30.2598C69.4463 30.361 69.9225 30.4998 70.3875 30.6723C70.8413 30.8598 71.2688 31.096 71.6625 31.3848C72.0713 31.6435 72.4463 31.9435 72.7875 32.2848C74.2425 33.7323 75.0413 35.7085 75 37.7598C74.9925 39.7473 74.1975 41.6485 72.7875 43.0473Z" fill="#DCDCDC"/>
5
- <path d="M47.7349 18.3633C41.9551 18.3602 36.3043 20.0713 31.497 23.2801C26.6898 26.4889 22.9422 31.0513 20.7283 36.3902C18.5143 41.7291 17.9334 47.6047 19.0591 53.2738C20.1847 58.9429 22.9664 64.1508 27.0522 68.2389C31.138 72.3269 36.3445 75.1114 42.013 76.2401C47.6815 77.3688 53.5574 76.7911 58.8975 74.58C64.2376 72.3688 68.802 68.6237 72.0134 63.8182C75.2248 59.0127 76.9389 53.3628 76.9389 47.583C76.9389 39.8362 73.8626 32.4064 68.3862 26.9271C62.9099 21.4478 55.4817 18.3674 47.7349 18.3633Z" fill="white" stroke="#A1A1A1" stroke-width="1.57011" stroke-linecap="round" stroke-linejoin="round"/>
6
- <path d="M68.5233 68.7793L76.311 76.567" stroke="#A1A1A1" stroke-width="1.57011" stroke-linecap="round" stroke-linejoin="round"/>
7
- <path d="M75.4307 72.7835L73.0113 75.3144C71.9267 76.4489 71.9672 78.2479 73.1017 79.3324L94.0982 99.4041C95.2328 100.489 97.0317 100.448 98.1163 99.3137L100.536 96.7827C101.62 95.6482 101.58 93.8493 100.445 92.7647L79.4487 72.693C78.3142 71.6084 76.5153 71.6489 75.4307 72.7835Z" fill="#A1A1A1"/>
8
- </g>
9
- <defs>
10
- <clipPath id="clip0_13442_134983">
11
- <rect width="120" height="120" fill="white"/>
12
- </clipPath>
13
- </defs>
14
- </svg>
1
+ <svg width="120" height="120" viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="path-1-inside-1_13439_125917" fill="white">
3
+ <path d="M47.7349 18.3633C41.9551 18.3602 36.3043 20.0713 31.497 23.2801C26.6898 26.4889 22.9422 31.0513 20.7283 36.3902C18.5143 41.7291 17.9334 47.6047 19.0591 53.2738C20.1847 58.9429 22.9664 64.1508 27.0522 68.2389C31.138 72.3269 36.3445 75.1113 42.013 76.2401C47.6815 77.3688 53.5574 76.7911 58.8975 74.58C64.2376 72.3689 68.802 68.6237 72.0134 63.8182C75.2248 59.0127 76.9389 53.3628 76.9389 47.583C76.9389 39.8362 73.8626 32.4064 68.3862 26.9271C62.9099 21.4478 55.4817 18.3674 47.7349 18.3633Z"/>
4
+ <path d="M75.4307 72.784L73.0113 75.3149C71.9267 76.4494 71.9672 78.2483 73.1017 79.3329L94.0982 99.4046C95.2328 100.489 97.0317 100.449 98.1163 99.3142L100.536 96.7832C101.62 95.6487 101.58 93.8498 100.445 92.7652L79.4487 72.6935C78.3142 71.6089 76.5153 71.6494 75.4307 72.784Z"/>
5
+ </mask>
6
+ <path d="M75.4307 72.784L73.0113 75.3149C71.9267 76.4494 71.9672 78.2483 73.1017 79.3329L94.0982 99.4046C95.2328 100.489 97.0317 100.449 98.1163 99.3142L100.536 96.7832C101.62 95.6487 101.58 93.8498 100.445 92.7652L79.4487 72.6935C78.3142 71.6089 76.5153 71.6494 75.4307 72.784Z" fill="#858585"/>
7
+ <path d="M47.7349 18.3633L47.7355 17.3633L47.7349 18.3633ZM76.9389 47.583H75.9389H76.9389ZM75.4307 72.784L74.7079 72.093L75.4307 72.784ZM73.0113 75.3149L73.7341 76.0059L73.0113 75.3149ZM73.1017 79.3329L73.7927 78.6101L73.1017 79.3329ZM94.0982 99.4046L93.4072 100.127L94.0982 99.4046ZM98.1163 99.3142L98.8391 100.005L98.1163 99.3142ZM100.536 96.7832L99.8129 96.0922L100.536 96.7832ZM100.445 92.7652L99.7542 93.488L100.445 92.7652ZM79.4487 72.6935L80.1397 71.9706L79.4487 72.6935ZM47.7349 18.3633L47.7355 17.3633C41.7579 17.3601 35.9136 19.1297 30.9419 22.4483L31.497 23.2801L32.0522 24.1118C36.6949 21.0128 42.1524 19.3603 47.7344 19.3633L47.7349 18.3633ZM31.497 23.2801L30.9419 22.4483C25.9701 25.767 22.0943 30.4855 19.8045 36.0071L20.7283 36.3902L21.652 36.7733C23.7902 31.6171 27.4095 27.2108 32.0522 24.1118L31.497 23.2801ZM20.7283 36.3902L19.8045 36.0071C17.5148 41.5288 16.914 47.6055 18.0782 53.4686L19.0591 53.2738L20.0399 53.0791C18.9528 47.604 19.5138 41.9295 21.652 36.7733L20.7283 36.3902ZM19.0591 53.2738L18.0782 53.4686C19.2424 59.3317 22.1193 64.7179 26.3449 68.9458L27.0522 68.2389L27.7595 67.5319C23.8135 63.5838 21.1271 58.5541 20.0399 53.0791L19.0591 53.2738ZM27.0522 68.2389L26.3449 68.9458C30.5706 73.1737 35.9552 76.0535 41.8177 77.2208L42.013 76.2401L42.2083 75.2593C36.7338 74.1692 31.7055 71.4801 27.7595 67.5319L27.0522 68.2389ZM42.013 76.2401L41.8177 77.2208C47.6802 78.3882 53.7572 77.7907 59.28 75.5039L58.8975 74.58L58.5149 73.656C53.3576 75.7915 47.6827 76.3494 42.2083 75.2593L42.013 76.2401ZM58.8975 74.58L59.28 75.5039C64.8029 73.2171 69.5235 69.3438 72.8448 64.3738L72.0134 63.8182L71.182 63.2626C68.0805 67.9036 63.6723 71.5206 58.5149 73.656L58.8975 74.58ZM72.0134 63.8182L72.8448 64.3738C76.1661 59.4039 77.9389 53.5606 77.9389 47.583H76.9389H75.9389C75.9389 53.165 74.2835 58.6215 71.182 63.2626L72.0134 63.8182ZM76.9389 47.583H77.9389C77.9389 39.571 74.7573 31.887 69.0935 26.2202L68.3862 26.9271L67.6789 27.634C72.9679 32.9258 75.9389 40.1013 75.9389 47.583H76.9389ZM68.3862 26.9271L69.0935 26.2202C63.4297 20.5533 55.7474 17.3676 47.7355 17.3633L47.7349 18.3633L47.7344 19.3633C55.2161 19.3673 62.39 22.3422 67.6789 27.634L68.3862 26.9271ZM75.4307 72.784L74.7079 72.093L72.2884 74.6239L73.0113 75.3149L73.7341 76.0059L76.1536 73.475L75.4307 72.784ZM73.0113 75.3149L72.2884 74.6239C70.8222 76.1576 70.877 78.5896 72.4107 80.0558L73.1017 79.3329L73.7927 78.6101C73.0574 77.9071 73.0312 76.7412 73.7341 76.0059L73.0113 75.3149ZM73.1017 79.3329L72.4107 80.0558L93.4072 100.127L94.0982 99.4046L94.7893 98.6818L73.7927 78.6101L73.1017 79.3329ZM94.0982 99.4046L93.4072 100.127C94.941 101.594 97.3729 101.539 98.8391 100.005L98.1163 99.3142L97.3934 98.6231C96.6905 99.3585 95.5246 99.3847 94.7893 98.6818L94.0982 99.4046ZM98.1163 99.3142L98.8391 100.005L101.259 97.4742L100.536 96.7832L99.8129 96.0922L97.3934 98.6231L98.1163 99.3142ZM100.536 96.7832L101.259 97.4742C102.725 95.9405 102.67 93.5085 101.136 92.0424L100.445 92.7652L99.7542 93.488C100.49 94.191 100.516 95.3569 99.8129 96.0922L100.536 96.7832ZM100.445 92.7652L101.136 92.0424L80.1397 71.9706L79.4487 72.6935L78.7577 73.4163L99.7542 93.488L100.445 92.7652ZM79.4487 72.6935L80.1397 71.9706C78.606 70.5044 76.1741 70.5592 74.7079 72.093L75.4307 72.784L76.1536 73.475C76.8565 72.7397 78.0224 72.7134 78.7577 73.4163L79.4487 72.6935Z" fill="#383838" mask="url(#path-1-inside-1_13439_125917)"/>
8
+ </svg>
File without changes
package/dist/index.d.ts CHANGED
@@ -5219,6 +5219,7 @@ interface ContextMenuProps {
5219
5219
  disableBackgroundInteraction?: boolean;
5220
5220
  useParentContainer?: boolean;
5221
5221
  useParentHeight?: boolean;
5222
+ forceStaticPlacement?: boolean;
5222
5223
  }
5223
5224
  /**
5224
5225
  * CometChatContextMenu is a composite component used to display menu data in required format.
@@ -5820,6 +5821,10 @@ type WaveSurferOptions = {
5820
5821
  backend?: 'WebAudio' | 'MediaElement';
5821
5822
  /** Nonce for CSP if necessary */
5822
5823
  cspNonce?: string;
5824
+ /** iframe document for iframe context support */
5825
+ iframeDocument?: Document;
5826
+ /** iframe window for iframe context support */
5827
+ iframeWindow?: Window;
5823
5828
  };
5824
5829
  declare const defaultOptions: {
5825
5830
  waveColor: string;
@@ -6529,5 +6534,17 @@ interface SearchProps {
6529
6534
  */
6530
6535
  declare function CometChatSearch(props: SearchProps): react_jsx_runtime.JSX.Element;
6531
6536
 
6532
- export { AuxiliaryButtonAlignment, ButtonAction, CalendarObject, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatFileBubble, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearch, CometChatSearchBar, CometChatSearchFilter, CometChatSearchScope, CometChatTextBubble, CometChatTextFormatter, CometChatTextHighlightFormatter, CometChatThreadHeader, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, PollsConfiguration, PollsExtension, PollsExtensionDecorator, PreviewMessageMode, Receipts, RecordingType, SelectionMode, States, StickersExtension, StickersExtensionDecorator, StorageUtils, TabAlignment, TabsVisibility, ThumbnailGenerationExtension, ThumbnailGenerationExtensionDecorator, TimestampAlignment, TitleAlignment, UIKitSettings, UIKitSettingsBuilder, UserMemberListType, closeCurrentMediaPlayer, convertMinutesToHoursMinutesSeconds, convertSecondsToHoursMinutesSeconds, currentAudioPlayer, currentMediaPlayer, decodeHTML, downloadRecordingFromURL, fireClickEvent, formatDateFromTimestamp, getCommonDateFormat, getLocalizedString, getThemeMode, getThemeVariable, hasLink, hasValidConversationSearchCriteria, hasValidMessageSearchCriteria, isMessageSentByMe, isMissedCall, isMobileDevice, isMonthDifferent, isSafari, isSentByMe, isURL, processFileForAudio, sanitizeCalendarObject, sanitizeHtml, useCometChatErrorHandler, useDebouncedCallback, useRefSync, useStateRef, verifyCallUser };
6537
+ interface CometChatFrameContextValue {
6538
+ iframeDocument: Document | null;
6539
+ iframeWindow: Window | null;
6540
+ iframe: HTMLIFrameElement | null;
6541
+ }
6542
+ interface CometChatFrameProviderProps {
6543
+ children: ReactNode;
6544
+ iframeId: string;
6545
+ }
6546
+ declare const useCometChatFrameContext: () => CometChatFrameContextValue;
6547
+ declare const CometChatFrameProvider: React__default.FC<CometChatFrameProviderProps>;
6548
+
6549
+ export { AuxiliaryButtonAlignment, ButtonAction, CalendarObject, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatFileBubble, CometChatFrameProvider, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearch, CometChatSearchBar, CometChatSearchFilter, CometChatSearchScope, CometChatTextBubble, CometChatTextFormatter, CometChatTextHighlightFormatter, CometChatThreadHeader, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, PollsConfiguration, PollsExtension, PollsExtensionDecorator, PreviewMessageMode, Receipts, RecordingType, SelectionMode, States, StickersExtension, StickersExtensionDecorator, StorageUtils, TabAlignment, TabsVisibility, ThumbnailGenerationExtension, ThumbnailGenerationExtensionDecorator, TimestampAlignment, TitleAlignment, UIKitSettings, UIKitSettingsBuilder, UserMemberListType, closeCurrentMediaPlayer, convertMinutesToHoursMinutesSeconds, convertSecondsToHoursMinutesSeconds, currentAudioPlayer, currentMediaPlayer, decodeHTML, downloadRecordingFromURL, fireClickEvent, formatDateFromTimestamp, getCommonDateFormat, getLocalizedString, getThemeMode, getThemeVariable, hasLink, hasValidConversationSearchCriteria, hasValidMessageSearchCriteria, isMessageSentByMe, isMissedCall, isMobileDevice, isMonthDifferent, isSafari, isSentByMe, isURL, processFileForAudio, sanitizeCalendarObject, sanitizeHtml, useCometChatErrorHandler, useCometChatFrameContext, useDebouncedCallback, useRefSync, useStateRef, verifyCallUser };
6533
6550
  export type { IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, LocalizationSettings, PollOptions };