@ethora/chat-component 26.5.2 → 26.5.3
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/components/InputComponents/Search.d.ts +1 -0
- package/dist/components/styled/StyledInput.d.ts +1 -0
- package/dist/components/styled/StyledInputComponents/StyledInputComponents.d.ts +6 -1
- package/dist/hooks/useUnreadMessagesCounter.d.ts +6 -4
- package/dist/main.js +4132 -4102
- package/dist/main.js.map +1 -1
- package/dist/types/models/config.model.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ export declare const InputContainer: import('styled-components/dist/types').ISty
|
|
|
2
2
|
export declare const MessageInputContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
3
|
export declare const MessageInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
|
|
4
4
|
$color?: string;
|
|
5
|
+
$colorBg?: string;
|
|
5
6
|
}>> & string;
|
|
6
7
|
export declare const HiddenFileInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
7
8
|
export declare const Timer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -11,13 +12,17 @@ export declare const FilePreviewContainer: import('styled-components/dist/types'
|
|
|
11
12
|
export declare const FilePreview: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
13
|
export declare const ImagePreview: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
13
14
|
export declare const VideoPreview: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, never>> & string;
|
|
14
|
-
export declare const StyledInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').
|
|
15
|
+
export declare const StyledInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
|
|
16
|
+
$colorBg?: string;
|
|
17
|
+
}>> & string;
|
|
15
18
|
export declare const TextareaWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
16
19
|
$dynamicHeight?: number;
|
|
17
20
|
$color?: string;
|
|
18
21
|
$isFocused?: boolean;
|
|
22
|
+
$colorBg?: string;
|
|
19
23
|
}>> & string;
|
|
20
24
|
export declare const TextareaInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, {
|
|
21
25
|
$dynamicHeight?: number;
|
|
22
26
|
$color?: string;
|
|
27
|
+
$colorBg?: string;
|
|
23
28
|
}>> & string;
|
|
@@ -11,10 +11,12 @@ interface UnreadMessagesStats {
|
|
|
11
11
|
displayTotal: string;
|
|
12
12
|
displayByRoom: UnreadMessagesDisplayMap;
|
|
13
13
|
/**
|
|
14
|
-
* True while the unread counts are
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
14
|
+
* True while the unread counts are still settling on first load. Instead of
|
|
15
|
+
* surfacing the count as it ramps up (0 → 2 → 3 … as history backfills), the
|
|
16
|
+
* hook keeps `loading` true until the per-room counts have stopped changing
|
|
17
|
+
* for a short window, then latches it to false. After that first settle,
|
|
18
|
+
* live message increments update the counts immediately and never flip
|
|
19
|
+
* `loading` back on — it's a first-load indicator, not a per-update one.
|
|
18
20
|
*/
|
|
19
21
|
loading: boolean;
|
|
20
22
|
/** Alias of `loading` — matches the React Native SDK field name. */
|