@cometchat/chat-uikit-react 6.1.0 → 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.
- package/dist/assets/search_message_icon.svg +8 -14
- package/dist/assets/warning-small.svg +0 -0
- package/dist/index.d.ts +43 -26
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatOutgoingCall.css +10 -1
- package/dist/styles/CometChatSearch.css +18 -11
- package/dist/styles/components/CometChatOutgoingCall.css +10 -1
- package/dist/styles/components/CometChatSearch.css +18 -11
- package/dist/types/components/BaseComponents/CometChatAudioBubble/src/renderer.d.ts +3 -1
- package/dist/types/components/BaseComponents/CometChatAudioBubble/src/wavesurfer.d.ts +4 -0
- package/dist/types/components/BaseComponents/CometChatContextMenu/CometChatContextMenu.d.ts +1 -0
- package/dist/types/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +1 -0
- package/dist/types/components/CometChatMessageComposer/useCometChatMessageComposer.d.ts +2 -0
- package/dist/types/context/CometChatFrameContext.d.ts +14 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +3 -4
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
.cometchat-outgoing-call__title-container {
|
|
25
25
|
display: flex;
|
|
26
26
|
flex-direction: column;
|
|
27
|
+
gap: var(--cometchat-spacing-2);
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
/* Subtitle text for the outgoing call UI */
|
|
@@ -82,6 +83,9 @@
|
|
|
82
83
|
|
|
83
84
|
/* Media query for screens with a max width of 600px */
|
|
84
85
|
@media (max-width: 600px) {
|
|
86
|
+
.cometchat-outgoing-call{
|
|
87
|
+
padding: var(--cometchat-spacing-20) var(--cometchat-spacing-5) var(--cometchat-spacing-15) var(--cometchat-spacing-5);
|
|
88
|
+
}
|
|
85
89
|
|
|
86
90
|
/* Font size for avatar text in smaller screens */
|
|
87
91
|
.cometchat-outgoing-call__avatar .cometchat-avatar__text {
|
|
@@ -103,12 +107,17 @@
|
|
|
103
107
|
.cometchat-outgoing-call__subtitle {
|
|
104
108
|
font: var(--cometchat-font-body-regular);
|
|
105
109
|
}
|
|
110
|
+
.cometchat-outgoing-call__avatar{
|
|
111
|
+
margin-bottom: auto;
|
|
112
|
+
margin-top: var(--cometchat-margin-10);
|
|
113
|
+
}
|
|
106
114
|
|
|
107
115
|
/* Size and border radius adjustment for the container in smaller screens */
|
|
108
|
-
.cometchat-outgoing-call {
|
|
116
|
+
.cometchat-outgoing-call,.cometchat:has(> .cometchat-outgoing-call) {
|
|
109
117
|
height: 100%;
|
|
110
118
|
width: 100%;
|
|
111
119
|
border-radius: 0;
|
|
112
120
|
}
|
|
113
121
|
|
|
122
|
+
|
|
114
123
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
justify-content: flex-start;
|
|
17
17
|
min-height: 64px;
|
|
18
18
|
padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);
|
|
19
|
+
padding-bottom: 0;
|
|
19
20
|
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -253,6 +254,10 @@
|
|
|
253
254
|
color: var(--cometchat-text-color-primary);
|
|
254
255
|
|
|
255
256
|
}
|
|
257
|
+
.cometchat-search__results .cometchat-list__header-title {
|
|
258
|
+
min-height: 20px;
|
|
259
|
+
margin-bottom: var(--cometchat-margin-1);
|
|
260
|
+
}
|
|
256
261
|
|
|
257
262
|
.cometchat-search__results,
|
|
258
263
|
.cometchat-search__conversations,
|
|
@@ -266,10 +271,6 @@
|
|
|
266
271
|
height: 100%;
|
|
267
272
|
}
|
|
268
273
|
|
|
269
|
-
.cometchat-search__conversations-full,
|
|
270
|
-
.cometchat-search__messages-full {
|
|
271
|
-
height: 100%;
|
|
272
|
-
}
|
|
273
274
|
|
|
274
275
|
.cometchat-search__conversations-list-item {
|
|
275
276
|
cursor: pointer;
|
|
@@ -559,6 +560,7 @@
|
|
|
559
560
|
justify-content: center;
|
|
560
561
|
align-items: center;
|
|
561
562
|
background: var(--cometchat-background-color-01, #FFF);
|
|
563
|
+
padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);
|
|
562
564
|
}
|
|
563
565
|
|
|
564
566
|
.cometchat-search__empty-view-icon {
|
|
@@ -578,14 +580,16 @@
|
|
|
578
580
|
}
|
|
579
581
|
|
|
580
582
|
.cometchat-search__empty-view-body-title {
|
|
581
|
-
width: 280px;
|
|
583
|
+
max-width: 280px;
|
|
584
|
+
width: auto;
|
|
582
585
|
color: var(--cometchat-text-color-primary, #141414);
|
|
583
586
|
text-align: center;
|
|
584
587
|
font: var(--cometchat-font-heading3-bold);
|
|
585
588
|
}
|
|
586
589
|
|
|
587
590
|
.cometchat-search__empty-view-body-description {
|
|
588
|
-
|
|
591
|
+
max-width: 280px;
|
|
592
|
+
width: auto;
|
|
589
593
|
color: var(--cometchat-text-color-secondary, #727272);
|
|
590
594
|
text-align: center;
|
|
591
595
|
font: var(--cometchat-font-body-regular);
|
|
@@ -639,8 +643,7 @@
|
|
|
639
643
|
|
|
640
644
|
.cometchat-search-messages__list-item .cometchat-list-item__body-subtitle,
|
|
641
645
|
.cometchat-search-messages__list-item .cometchat-search-messages__subtitle {
|
|
642
|
-
display:
|
|
643
|
-
gap: var(--cometchat-padding-1, 4px);
|
|
646
|
+
display: block;
|
|
644
647
|
width: 100%;
|
|
645
648
|
max-width: 98%;
|
|
646
649
|
overflow: hidden;
|
|
@@ -768,7 +771,7 @@
|
|
|
768
771
|
}
|
|
769
772
|
|
|
770
773
|
.cometchat-search__messages-trailing-view {
|
|
771
|
-
height:
|
|
774
|
+
min-height: 50px;
|
|
772
775
|
width: 80px;
|
|
773
776
|
display: flex;
|
|
774
777
|
align-items: center;
|
|
@@ -818,7 +821,7 @@
|
|
|
818
821
|
.cometchat-search .cometchat-list__header-title {
|
|
819
822
|
color: var(--cometchat-text-color-secondary, #727272);
|
|
820
823
|
|
|
821
|
-
font: var(--cometchat-font-
|
|
824
|
+
font: var(--cometchat-font-caption1-medium)
|
|
822
825
|
}
|
|
823
826
|
|
|
824
827
|
.cometchat-search__conversations,
|
|
@@ -826,6 +829,10 @@
|
|
|
826
829
|
min-height: 110px;
|
|
827
830
|
height: fit-content;
|
|
828
831
|
}
|
|
832
|
+
.cometchat-search__conversations-full,
|
|
833
|
+
.cometchat-search__messages-full {
|
|
834
|
+
height: 100%;
|
|
835
|
+
}
|
|
829
836
|
|
|
830
837
|
.cometchat-search__results::-webkit-scrollbar,
|
|
831
838
|
.cometchat-search__input::-webkit-scrollbar {
|
|
@@ -931,7 +938,7 @@
|
|
|
931
938
|
width: 32px;
|
|
932
939
|
}
|
|
933
940
|
|
|
934
|
-
.cometchat-list-item__body-title {
|
|
941
|
+
.cometchat-search__messages .cometchat-list-item__body-title {
|
|
935
942
|
color: var(--cometchat-text-color-secondary, #727272);
|
|
936
943
|
}
|
|
937
944
|
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
.cometchat-outgoing-call__title-container {
|
|
25
25
|
display: flex;
|
|
26
26
|
flex-direction: column;
|
|
27
|
+
gap: var(--cometchat-spacing-2);
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
/* Subtitle text for the outgoing call UI */
|
|
@@ -82,6 +83,9 @@
|
|
|
82
83
|
|
|
83
84
|
/* Media query for screens with a max width of 600px */
|
|
84
85
|
@media (max-width: 600px) {
|
|
86
|
+
.cometchat-outgoing-call{
|
|
87
|
+
padding: var(--cometchat-spacing-20) var(--cometchat-spacing-5) var(--cometchat-spacing-15) var(--cometchat-spacing-5);
|
|
88
|
+
}
|
|
85
89
|
|
|
86
90
|
/* Font size for avatar text in smaller screens */
|
|
87
91
|
.cometchat-outgoing-call__avatar .cometchat-avatar__text {
|
|
@@ -103,12 +107,17 @@
|
|
|
103
107
|
.cometchat-outgoing-call__subtitle {
|
|
104
108
|
font: var(--cometchat-font-body-regular);
|
|
105
109
|
}
|
|
110
|
+
.cometchat-outgoing-call__avatar{
|
|
111
|
+
margin-bottom: auto;
|
|
112
|
+
margin-top: var(--cometchat-margin-10);
|
|
113
|
+
}
|
|
106
114
|
|
|
107
115
|
/* Size and border radius adjustment for the container in smaller screens */
|
|
108
|
-
.cometchat-outgoing-call {
|
|
116
|
+
.cometchat-outgoing-call,.cometchat:has(> .cometchat-outgoing-call) {
|
|
109
117
|
height: 100%;
|
|
110
118
|
width: 100%;
|
|
111
119
|
border-radius: 0;
|
|
112
120
|
}
|
|
113
121
|
|
|
122
|
+
|
|
114
123
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
justify-content: flex-start;
|
|
17
17
|
min-height: 64px;
|
|
18
18
|
padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);
|
|
19
|
+
padding-bottom: 0;
|
|
19
20
|
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -253,6 +254,10 @@
|
|
|
253
254
|
color: var(--cometchat-text-color-primary);
|
|
254
255
|
|
|
255
256
|
}
|
|
257
|
+
.cometchat-search__results .cometchat-list__header-title {
|
|
258
|
+
min-height: 20px;
|
|
259
|
+
margin-bottom: var(--cometchat-margin-1);
|
|
260
|
+
}
|
|
256
261
|
|
|
257
262
|
.cometchat-search__results,
|
|
258
263
|
.cometchat-search__conversations,
|
|
@@ -266,10 +271,6 @@
|
|
|
266
271
|
height: 100%;
|
|
267
272
|
}
|
|
268
273
|
|
|
269
|
-
.cometchat-search__conversations-full,
|
|
270
|
-
.cometchat-search__messages-full {
|
|
271
|
-
height: 100%;
|
|
272
|
-
}
|
|
273
274
|
|
|
274
275
|
.cometchat-search__conversations-list-item {
|
|
275
276
|
cursor: pointer;
|
|
@@ -559,6 +560,7 @@
|
|
|
559
560
|
justify-content: center;
|
|
560
561
|
align-items: center;
|
|
561
562
|
background: var(--cometchat-background-color-01, #FFF);
|
|
563
|
+
padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);
|
|
562
564
|
}
|
|
563
565
|
|
|
564
566
|
.cometchat-search__empty-view-icon {
|
|
@@ -578,14 +580,16 @@
|
|
|
578
580
|
}
|
|
579
581
|
|
|
580
582
|
.cometchat-search__empty-view-body-title {
|
|
581
|
-
width: 280px;
|
|
583
|
+
max-width: 280px;
|
|
584
|
+
width: auto;
|
|
582
585
|
color: var(--cometchat-text-color-primary, #141414);
|
|
583
586
|
text-align: center;
|
|
584
587
|
font: var(--cometchat-font-heading3-bold);
|
|
585
588
|
}
|
|
586
589
|
|
|
587
590
|
.cometchat-search__empty-view-body-description {
|
|
588
|
-
|
|
591
|
+
max-width: 280px;
|
|
592
|
+
width: auto;
|
|
589
593
|
color: var(--cometchat-text-color-secondary, #727272);
|
|
590
594
|
text-align: center;
|
|
591
595
|
font: var(--cometchat-font-body-regular);
|
|
@@ -639,8 +643,7 @@
|
|
|
639
643
|
|
|
640
644
|
.cometchat-search-messages__list-item .cometchat-list-item__body-subtitle,
|
|
641
645
|
.cometchat-search-messages__list-item .cometchat-search-messages__subtitle {
|
|
642
|
-
display:
|
|
643
|
-
gap: var(--cometchat-padding-1, 4px);
|
|
646
|
+
display: block;
|
|
644
647
|
width: 100%;
|
|
645
648
|
max-width: 98%;
|
|
646
649
|
overflow: hidden;
|
|
@@ -768,7 +771,7 @@
|
|
|
768
771
|
}
|
|
769
772
|
|
|
770
773
|
.cometchat-search__messages-trailing-view {
|
|
771
|
-
height:
|
|
774
|
+
min-height: 50px;
|
|
772
775
|
width: 80px;
|
|
773
776
|
display: flex;
|
|
774
777
|
align-items: center;
|
|
@@ -818,7 +821,7 @@
|
|
|
818
821
|
.cometchat-search .cometchat-list__header-title {
|
|
819
822
|
color: var(--cometchat-text-color-secondary, #727272);
|
|
820
823
|
|
|
821
|
-
font: var(--cometchat-font-
|
|
824
|
+
font: var(--cometchat-font-caption1-medium)
|
|
822
825
|
}
|
|
823
826
|
|
|
824
827
|
.cometchat-search__conversations,
|
|
@@ -826,6 +829,10 @@
|
|
|
826
829
|
min-height: 110px;
|
|
827
830
|
height: fit-content;
|
|
828
831
|
}
|
|
832
|
+
.cometchat-search__conversations-full,
|
|
833
|
+
.cometchat-search__messages-full {
|
|
834
|
+
height: 100%;
|
|
835
|
+
}
|
|
829
836
|
|
|
830
837
|
.cometchat-search__results::-webkit-scrollbar,
|
|
831
838
|
.cometchat-search__input::-webkit-scrollbar {
|
|
@@ -931,7 +938,7 @@
|
|
|
931
938
|
width: 32px;
|
|
932
939
|
}
|
|
933
940
|
|
|
934
|
-
.cometchat-list-item__body-title {
|
|
941
|
+
.cometchat-search__messages .cometchat-list-item__body-title {
|
|
935
942
|
color: var(--cometchat-text-color-secondary, #727272);
|
|
936
943
|
}
|
|
937
944
|
|
|
@@ -29,7 +29,9 @@ declare class Renderer extends EventEmitter<RendererEvents> {
|
|
|
29
29
|
private isDragging;
|
|
30
30
|
private subscriptions;
|
|
31
31
|
private unsubscribeOnScroll?;
|
|
32
|
-
|
|
32
|
+
private iframeDocument;
|
|
33
|
+
private iframeWindow;
|
|
34
|
+
constructor(options: WaveSurferOptions, audioElement?: HTMLElement, iframeDocument?: Document, iframeWindow?: Window);
|
|
33
35
|
private parentFromOptionsContainer;
|
|
34
36
|
private initEvents;
|
|
35
37
|
private onContainerResize;
|
|
@@ -76,6 +76,10 @@ export type WaveSurferOptions = {
|
|
|
76
76
|
backend?: 'WebAudio' | 'MediaElement';
|
|
77
77
|
/** Nonce for CSP if necessary */
|
|
78
78
|
cspNonce?: string;
|
|
79
|
+
/** iframe document for iframe context support */
|
|
80
|
+
iframeDocument?: Document;
|
|
81
|
+
/** iframe window for iframe context support */
|
|
82
|
+
iframeWindow?: Window;
|
|
79
83
|
};
|
|
80
84
|
declare const defaultOptions: {
|
|
81
85
|
waveColor: string;
|
|
@@ -10,6 +10,7 @@ interface ContextMenuProps {
|
|
|
10
10
|
disableBackgroundInteraction?: boolean;
|
|
11
11
|
useParentContainer?: boolean;
|
|
12
12
|
useParentHeight?: boolean;
|
|
13
|
+
forceStaticPlacement?: boolean;
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
16
|
* CometChatContextMenu is a composite component used to display menu data in required format.
|
|
@@ -38,6 +38,8 @@ type Args = {
|
|
|
38
38
|
getCurrentInput: Function;
|
|
39
39
|
isPartOfCurrentChatForUIEvent: (message: CometChat.BaseMessage) => boolean | undefined;
|
|
40
40
|
textMessageToEdit: CometChat.TextMessage | null;
|
|
41
|
+
getCurrentWindow: () => Window;
|
|
42
|
+
getCurrentDocument: () => Document;
|
|
41
43
|
};
|
|
42
44
|
export declare function useCometChatMessageComposer(args: Args): void;
|
|
43
45
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
interface CometChatFrameContextValue {
|
|
3
|
+
iframeDocument: Document | null;
|
|
4
|
+
iframeWindow: Window | null;
|
|
5
|
+
iframe: HTMLIFrameElement | null;
|
|
6
|
+
}
|
|
7
|
+
interface CometChatFrameProviderProps {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
iframeId: string;
|
|
10
|
+
}
|
|
11
|
+
declare const CometChatFrameContext: React.Context<CometChatFrameContextValue>;
|
|
12
|
+
export declare const useCometChatFrameContext: () => CometChatFrameContextValue;
|
|
13
|
+
export declare const CometChatFrameProvider: React.FC<CometChatFrameProviderProps>;
|
|
14
|
+
export default CometChatFrameContext;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -113,3 +113,4 @@ export * from './CometChatCustomHooks';
|
|
|
113
113
|
export * from './formatters/index';
|
|
114
114
|
export * from './utils/SearchUtils';
|
|
115
115
|
export { CometChatSearch } from './components/CometChatSearch/CometChatSearch';
|
|
116
|
+
export { CometChatFrameProvider, useCometChatFrameContext } from './context/CometChatFrameContext';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cometchat/chat-uikit-react",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.2",
|
|
4
4
|
"description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
|
|
5
5
|
"author": "CometChat",
|
|
6
6
|
"exports": {
|
|
@@ -8,9 +8,8 @@
|
|
|
8
8
|
"./css-variables.css": "./dist/styles/css-variables.css"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@cometchat/chat-sdk-javascript": "^4.0.
|
|
11
|
+
"@cometchat/chat-sdk-javascript": "^4.0.14",
|
|
12
12
|
"@rollup/plugin-json": "^6.1.0",
|
|
13
|
-
"postcss": "^8.5.6",
|
|
14
13
|
"rxjs": "^7.8.1"
|
|
15
14
|
},
|
|
16
15
|
"scripts": {
|
|
@@ -77,4 +76,4 @@
|
|
|
77
76
|
"bugs": {
|
|
78
77
|
"url": "https://help.cometchat.com/hc/en-us"
|
|
79
78
|
}
|
|
80
|
-
}
|
|
79
|
+
}
|