@ethora/chat-component 25.6.17 → 25.6.18
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,19 +1,14 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
import { IMessage } from '../types/types';
|
|
3
3
|
interface roomHeapSliceState {
|
|
4
|
-
messageHeap:
|
|
4
|
+
messageHeap: IMessage[];
|
|
5
5
|
}
|
|
6
6
|
export declare const roomHeapSlice: import('@reduxjs/toolkit').Slice<roomHeapSliceState, {
|
|
7
|
-
addMessageToHeap: (state: import('immer').WritableDraft<roomHeapSliceState>, action: PayloadAction<
|
|
8
|
-
jid: string;
|
|
9
|
-
message: IMessage;
|
|
10
|
-
}>) => void;
|
|
7
|
+
addMessageToHeap: (state: import('immer').WritableDraft<roomHeapSliceState>, action: PayloadAction<IMessage>) => void;
|
|
11
8
|
popMessageFromHeap: (state: import('immer').WritableDraft<roomHeapSliceState>) => void;
|
|
9
|
+
removeMessageFromHeapById: (state: import('immer').WritableDraft<roomHeapSliceState>, action: PayloadAction<string>) => void;
|
|
12
10
|
clearHeap: (state: import('immer').WritableDraft<roomHeapSliceState>) => void;
|
|
13
11
|
}, "roomHeapStore", "roomHeapStore", import('@reduxjs/toolkit').SliceSelectors<roomHeapSliceState>>;
|
|
14
|
-
export declare const addMessageToHeap: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<
|
|
15
|
-
jid: string;
|
|
16
|
-
message: IMessage;
|
|
17
|
-
}, "roomHeapStore/addMessageToHeap">, popMessageFromHeap: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"roomHeapStore/popMessageFromHeap">, clearHeap: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"roomHeapStore/clearHeap">;
|
|
12
|
+
export declare const addMessageToHeap: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<IMessage, "roomHeapStore/addMessageToHeap">, popMessageFromHeap: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"roomHeapStore/popMessageFromHeap">, removeMessageFromHeapById: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<string, "roomHeapStore/removeMessageFromHeapById">, clearHeap: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"roomHeapStore/clearHeap">;
|
|
18
13
|
declare const _default: import('redux').Reducer<roomHeapSliceState>;
|
|
19
14
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IUser } from './user.model';
|
|
2
2
|
import { TranslationObject } from '../types';
|
|
3
|
+
import { Iso639_1Codes } from './language.model';
|
|
3
4
|
export interface IMessage {
|
|
4
5
|
id: string;
|
|
5
6
|
user: IUser;
|
|
@@ -25,7 +26,7 @@ export interface IMessage {
|
|
|
25
26
|
reaction?: Record<string, ReactionMessage>;
|
|
26
27
|
fileName?: string;
|
|
27
28
|
translations?: TranslationObject;
|
|
28
|
-
langSource?:
|
|
29
|
+
langSource?: Iso639_1Codes;
|
|
29
30
|
originalName?: string;
|
|
30
31
|
size?: string;
|
|
31
32
|
xmppId?: string;
|