@connectycube/chat-widget 0.15.2 → 0.17.0
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/LICENSE +231 -0
- package/README.md +9 -8
- package/dist/App.d.ts +35 -1
- package/dist/components/home/main/chat-header.d.ts +1 -4
- package/dist/components/home/main/chat-info-members.d.ts +5 -0
- package/dist/components/home/main/chat-info-user.d.ts +7 -0
- package/dist/components/home/main/chat-input.d.ts +1 -1
- package/dist/components/home/main/message-attachment.d.ts +1 -1
- package/dist/components/home/main/message.d.ts +1 -1
- package/dist/components/home/main/my-profile/my-block-list-item.d.ts +7 -0
- package/dist/components/home/main/my-profile/my-block-list.d.ts +3 -0
- package/dist/components/home/main/my-profile/my-profile-settings.d.ts +2 -0
- package/dist/components/home/main/my-profile/my-profile.d.ts +3 -0
- package/dist/components/home/main/profile-info.d.ts +3 -0
- package/dist/components/home/main/report-user-dialog.d.ts +6 -0
- package/dist/components/home/sidebar/chat-item.d.ts +1 -1
- package/dist/components/home/sidebar/new-chat/create-group-chat/create-group-chat.d.ts +1 -1
- package/dist/components/shadcn-ui/button.d.ts +1 -1
- package/dist/components/shadcn-ui/sonner.d.ts +3 -0
- package/dist/components/shared/empty-content-placeholder.d.ts +2 -2
- package/dist/{connectycube.d.ts → helpers/connectycube.d.ts} +11 -2
- package/dist/helpers/notifications.d.ts +1 -0
- package/dist/hooks/index.d.ts +14 -4
- package/dist/hooks/store/useActiveTabsStore.d.ts +15 -0
- package/dist/hooks/store/useAppDefaultChatStore.d.ts +21 -0
- package/dist/hooks/store/useAppInterfaceStore.d.ts +21 -0
- package/dist/hooks/store/useAppNotificationStore.d.ts +22 -0
- package/dist/hooks/store/useAppQuickActionsStore.d.ts +17 -0
- package/dist/hooks/store/useAppSettingsStore.d.ts +18 -0
- package/dist/hooks/store/useDraftMessagesStore.d.ts +14 -0
- package/dist/hooks/store/useProfileStore.d.ts +9 -0
- package/dist/hooks/store/useUnreadCountStore.d.ts +8 -0
- package/dist/hooks/store/useUserSettingsStore.d.ts +11 -0
- package/dist/hooks/useAppAuthorization.d.ts +14 -0
- package/dist/hooks/useNotification.d.ts +8 -0
- package/dist/hooks/usePageFocus.d.ts +5 -1
- package/dist/hooks/useResizeScreenWidth.d.ts +10 -0
- package/dist/index.es.js +8701 -8552
- package/dist/index.umd.js +44 -52
- package/dist/lib/utils.d.ts +4 -2
- package/dist/locales/el/translation.json.d.ts +21 -3
- package/dist/locales/en/translation.json.d.ts +21 -3
- package/dist/locales/ua/translation.json.d.ts +21 -3
- package/dist/logo.png +0 -0
- package/package.json +52 -41
- package/dist/AppContainer.d.ts +0 -30
- package/dist/components/home/main/chat-info.d.ts +0 -7
- package/dist/hooks/useNotificationSound.d.ts +0 -2
- package/dist/redux/hooks.d.ts +0 -6
- package/dist/redux/slices/app.d.ts +0 -14
- package/dist/redux/slices/draftMessages.d.ts +0 -9
- package/dist/redux/slices/quickActions.d.ts +0 -7
- package/dist/redux/slices/unreadCount.d.ts +0 -2
- package/dist/redux/store.d.ts +0 -52
- /package/dist/{hooks → helpers}/debounce.d.ts +0 -0
- /package/dist/{i18n.d.ts → helpers/i18n.d.ts} +0 -0
- /package/dist/{hooks → helpers}/throttle.d.ts +0 -0
package/dist/lib/utils.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Dialogs } from '
|
|
1
|
+
import { Dialogs } from '../../node_modules/connectycube/src/types';
|
|
2
2
|
import { ClassValue } from 'clsx';
|
|
3
3
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
4
|
-
export declare function createTempChat(id: string, name: string, type: 3 | 2, occupantsIds: number[], currentUserId: number, photo?: string
|
|
4
|
+
export declare function createTempChat(id: string, name: string, type: 3 | 2, occupantsIds: number[], currentUserId: number, photo?: string, extensions?: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
}): Dialogs.Dialog;
|
|
@@ -36,8 +36,26 @@ declare const _default: {
|
|
|
36
36
|
"StartNewChat": "Έναρξη νέας συνομιλίας",
|
|
37
37
|
"typing": "πληκτρολογεί",
|
|
38
38
|
"Users": "Χρήστες",
|
|
39
|
-
"you": "εσύ"
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
"you": "εσύ",
|
|
40
|
+
"Block": "Block",
|
|
41
|
+
"UnBlock": "Unblock",
|
|
42
|
+
"Report": "Αναφορά",
|
|
43
|
+
"ReportUser": "Αναφορά χρήστη",
|
|
44
|
+
"WhatsWrongWithThisUser": "Τι θέλετε να αναφέρετε για αυτόν το χρήστη;",
|
|
45
|
+
"ProvideReason": "Λόγος αναφοράς",
|
|
46
|
+
"ReportCreatedSuccessfully": "Η αναφορά για το χρήστη έγινε",
|
|
47
|
+
"ReportSubmitFailed": "Σφάλμα στη δημιουργία αναφοράς",
|
|
48
|
+
"MyProfile": "Το προφίλ μου",
|
|
49
|
+
"YouBlocked": "Αυτός ο χρήστης σας έχει κάνει Block",
|
|
50
|
+
"BlockList": "Λίστα Blocked χρηστών",
|
|
51
|
+
"AddToBlockList": "Προσθήκη στη λίστα Blocked",
|
|
52
|
+
"AddToBlockList?": "Σίγουρα θέλετε να προσθέσετε το χρήστη {{name}} στη λίστα Blocked;",
|
|
53
|
+
"RemoveFromBlockList": "Αφαίρεση από τη λίστα Blocked",
|
|
54
|
+
"RemoveFromBlockList?": "Σίγουρα θέλετε να αφαιρέσετε το χρήστη {{name}} από τη λίστα Blocked;",
|
|
55
|
+
"BlockListEmpty": "Η Blocked λίστα είναι άδεια",
|
|
56
|
+
"NotificationSettings": "Ρυθμίσεις ειδοποιήσεων",
|
|
57
|
+
"Notifications": "Ειδοποιήσεις",
|
|
58
|
+
"NotificationSound": "Ήχος ειδοποίησης"
|
|
59
|
+
};
|
|
42
60
|
|
|
43
61
|
export default _default;
|
|
@@ -36,8 +36,26 @@ declare const _default: {
|
|
|
36
36
|
"StartNewChat": "Start new chat",
|
|
37
37
|
"typing": "typing",
|
|
38
38
|
"Users": "Users",
|
|
39
|
-
"you": "you"
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
"you": "you",
|
|
40
|
+
"Block": "Block",
|
|
41
|
+
"UnBlock": "Unblock",
|
|
42
|
+
"Report": "Report",
|
|
43
|
+
"ReportUser": "Report user",
|
|
44
|
+
"WhatsWrongWithThisUser": "What's wrong with this user?",
|
|
45
|
+
"ProvideReason": "Reason for reporting",
|
|
46
|
+
"ReportCreatedSuccessfully": "Report has been created successfully",
|
|
47
|
+
"ReportSubmitFailed": "Failed to submit report",
|
|
48
|
+
"MyProfile": "My profile",
|
|
49
|
+
"YouBlocked": "You are blocked by this user",
|
|
50
|
+
"BlockList": "Block list",
|
|
51
|
+
"AddToBlockList": "Add to block list",
|
|
52
|
+
"AddToBlockList?": "Are you sure you want to add {{name}} to block list?",
|
|
53
|
+
"RemoveFromBlockList": "Remove from block list",
|
|
54
|
+
"RemoveFromBlockList?": "Are you sure you want to remove {{name}} from block list?",
|
|
55
|
+
"BlockListEmpty": "Block list is empty",
|
|
56
|
+
"NotificationSettings": "Notification settings",
|
|
57
|
+
"Notifications": "Notifications",
|
|
58
|
+
"NotificationSound": "Notification sound"
|
|
59
|
+
};
|
|
42
60
|
|
|
43
61
|
export default _default;
|
|
@@ -36,8 +36,26 @@ declare const _default: {
|
|
|
36
36
|
"StartNewChat": "Розпочати новий чат",
|
|
37
37
|
"typing": "друкує",
|
|
38
38
|
"Users": "Користувачі",
|
|
39
|
-
"you": "ви"
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
"you": "ви",
|
|
40
|
+
"Block": "Заблокувати",
|
|
41
|
+
"UnBlock": "Розблокувати",
|
|
42
|
+
"Report": "Поскаржитися",
|
|
43
|
+
"ReportUser": "Поскаржитися на користувача",
|
|
44
|
+
"WhatsWrongWithThisUser": "Що не так з цим користувачем?",
|
|
45
|
+
"ProvideReason": "Підстава",
|
|
46
|
+
"ReportCreatedSuccessfully": "Звіт поданий успішно",
|
|
47
|
+
"ReportSubmitFailed": "Помилка при поданні звіту",
|
|
48
|
+
"MyProfile": "Мій профіль",
|
|
49
|
+
"YouBlocked": "Цей користувача вас заблокував",
|
|
50
|
+
"BlockList": "Список заблокованих",
|
|
51
|
+
"AddToBlockList": "Додати до списку заблокованих",
|
|
52
|
+
"AddToBlockList?": "Ви впевнені, що хочете додати {{name}} до списку заблокованих?",
|
|
53
|
+
"RemoveFromBlockList": "Видалити зі списку заблокованих",
|
|
54
|
+
"RemoveFromBlockList?": "Ви впевнені, що хочете видалити {{name}} зі списку заблокованих?",
|
|
55
|
+
"BlockListEmpty": "Список заблокованих порожній",
|
|
56
|
+
"NotificationSettings": "Налаштування сповіщень",
|
|
57
|
+
"Notifications": "Сповіщення",
|
|
58
|
+
"NotificationSound": "Звук сповіщення"
|
|
59
|
+
};
|
|
42
60
|
|
|
43
61
|
export default _default;
|
package/dist/logo.png
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@connectycube/chat-widget",
|
|
3
3
|
"description": "A React component that seamlessly integrates ConnectyCube's real-time chat capabilities into your web applications. This widget offers an out-of-the-box solution for embedding chat features—such as instant messaging, user presence, and file sharing—without the overhead of building a complete chat system from scratch.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.17.0",
|
|
5
|
+
"license": "GPL-3.0-only",
|
|
6
|
+
"homepage": "https://github.com/ConnectyCube/connectycube-chat-widget#readme",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://github.com/ConnectyCube/connectycube-chat-widget/issues"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/ConnectyCube/connectycube-chat-widget.git"
|
|
13
|
+
},
|
|
14
|
+
"author": "ConnectyCube team <support@connectycube.com>",
|
|
15
|
+
"contributors": [
|
|
16
|
+
{
|
|
17
|
+
"name": "Garry ConnectyCube",
|
|
18
|
+
"email": "admin@connectycube.com"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "Vlad ConnectyCube",
|
|
22
|
+
"email": "vlad@connectycube.com"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
5
25
|
"keywords": [
|
|
6
26
|
"chat-widget",
|
|
27
|
+
"connectycube",
|
|
28
|
+
"typescript",
|
|
7
29
|
"widget",
|
|
8
30
|
"react",
|
|
9
31
|
"chat",
|
|
10
32
|
"instant-messaging",
|
|
11
33
|
"chat-application"
|
|
12
34
|
],
|
|
13
|
-
"license": "GPL-3.0-only",
|
|
14
|
-
"author": "Garry ConnectyCube <admin@connectycube.com>",
|
|
15
|
-
"contributors": [
|
|
16
|
-
{
|
|
17
|
-
"name": "Vlad ConnectyCube",
|
|
18
|
-
"email": "vlad@connectycube.com"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"name": "Garry ConnectyCube",
|
|
22
|
-
"email": "admin@connectycube.com"
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
35
|
"type": "module",
|
|
26
36
|
"types": "dist/index.d.ts",
|
|
27
37
|
"main": "dist/index.umd.js",
|
|
@@ -54,7 +64,7 @@
|
|
|
54
64
|
"lint": "eslint ."
|
|
55
65
|
},
|
|
56
66
|
"dependencies": {
|
|
57
|
-
"@connectycube/use-chat": "^0.
|
|
67
|
+
"@connectycube/use-chat": "^0.16.0",
|
|
58
68
|
"@radix-ui/react-alert-dialog": "^1.1.6",
|
|
59
69
|
"@radix-ui/react-avatar": "^1.1.3",
|
|
60
70
|
"@radix-ui/react-dialog": "^1.1.6",
|
|
@@ -63,56 +73,57 @@
|
|
|
63
73
|
"@radix-ui/react-slot": "^1.1.2",
|
|
64
74
|
"@radix-ui/react-switch": "^1.1.3",
|
|
65
75
|
"@radix-ui/react-tabs": "^1.1.3",
|
|
66
|
-
"@reduxjs/toolkit": "^2.5.1",
|
|
67
76
|
"class-variance-authority": "^0.7.1",
|
|
68
77
|
"clsx": "^2.1.1",
|
|
69
|
-
"connectycube": "^4.1.
|
|
78
|
+
"connectycube": "^4.1.3",
|
|
70
79
|
"i18next": "^24.2.2",
|
|
71
80
|
"jsdom": "^26.0.0",
|
|
72
81
|
"linkify-react": "^4.2.0",
|
|
73
82
|
"linkifyjs": "^4.2.0",
|
|
74
|
-
"lucide-react": "^0.
|
|
83
|
+
"lucide-react": "^0.477.0",
|
|
84
|
+
"next-themes": "^0.4.4",
|
|
75
85
|
"react": "^18.3.1",
|
|
76
86
|
"react-dom": "^18.3.1",
|
|
77
87
|
"react-hook-form": "^7.54.2",
|
|
78
88
|
"react-i18next": "^15.4.1",
|
|
79
|
-
"react-icons": "^5.
|
|
89
|
+
"react-icons": "^5.5.0",
|
|
80
90
|
"react-intersection-observer": "^9.15.1",
|
|
81
|
-
"react-
|
|
82
|
-
"react-router": "^7.
|
|
83
|
-
"react-router-dom": "^7.1.5",
|
|
91
|
+
"react-router": "^7.2.0",
|
|
92
|
+
"react-router-dom": "^7.2.0",
|
|
84
93
|
"react-scroll": "^1.9.3",
|
|
85
|
-
"
|
|
94
|
+
"zustand": "^5.0.3"
|
|
86
95
|
},
|
|
87
96
|
"devDependencies": {
|
|
88
|
-
"@eslint/js": "^9.
|
|
89
|
-
"@tailwindcss/postcss": "^4.0.
|
|
90
|
-
"@tailwindcss/vite": "^4.0.
|
|
91
|
-
"@types/node": "^22.13.
|
|
92
|
-
"@types/react": "18.3.
|
|
97
|
+
"@eslint/js": "^9.21.0",
|
|
98
|
+
"@tailwindcss/postcss": "^4.0.9",
|
|
99
|
+
"@tailwindcss/vite": "^4.0.9",
|
|
100
|
+
"@types/node": "^22.13.9",
|
|
101
|
+
"@types/react": "18.3.18",
|
|
93
102
|
"@types/react-dom": "^18.3.5",
|
|
94
103
|
"@types/react-i18next": "^8.1.0",
|
|
95
104
|
"@types/react-scroll": "^1.8.10",
|
|
96
105
|
"@vitejs/plugin-react": "^4.3.4",
|
|
97
|
-
"@vitest/coverage-v8": "^3.0.
|
|
98
|
-
"eslint": "^9.
|
|
99
|
-
"eslint-plugin-react-hooks": "^5.
|
|
106
|
+
"@vitest/coverage-v8": "^3.0.7",
|
|
107
|
+
"eslint": "^9.21.0",
|
|
108
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
100
109
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
101
|
-
"globals": "^
|
|
110
|
+
"globals": "^16.0.0",
|
|
102
111
|
"npm-run-all": "^4.1.5",
|
|
103
|
-
"prettier": "3.5.
|
|
104
|
-
"
|
|
105
|
-
"
|
|
112
|
+
"prettier": "3.5.3",
|
|
113
|
+
"sonner": "^2.0.1",
|
|
114
|
+
"tailwind-merge": "^3.0.2",
|
|
115
|
+
"tailwindcss": "^4.0.9",
|
|
106
116
|
"tailwindcss-animate": "^1.0.7",
|
|
107
|
-
"typescript": "
|
|
108
|
-
"typescript-eslint": "^8.
|
|
109
|
-
"vite": "^6.
|
|
117
|
+
"typescript": "^5.8.2",
|
|
118
|
+
"typescript-eslint": "^8.26.0",
|
|
119
|
+
"vite": "^6.2.0",
|
|
110
120
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
111
|
-
"vite-plugin-dts": "^4.5.
|
|
112
|
-
"vitest": "^3.0.
|
|
121
|
+
"vite-plugin-dts": "^4.5.3",
|
|
122
|
+
"vitest": "^3.0.7"
|
|
113
123
|
},
|
|
114
124
|
"optionalDependencies": {
|
|
115
|
-
"@tailwindcss/oxide-linux-x64-gnu": "^4.0.
|
|
116
|
-
"lightningcss-linux-x64-gnu": "^1.29.1"
|
|
125
|
+
"@tailwindcss/oxide-linux-x64-gnu": "^4.0.9",
|
|
126
|
+
"lightningcss-linux-x64-gnu": "^1.29.1",
|
|
127
|
+
"@rollup/rollup-linux-x64-gnu": "4.34.9"
|
|
117
128
|
}
|
|
118
129
|
}
|
package/dist/AppContainer.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Config } from '../../../node_modules/connectycube/dist/types/types';
|
|
2
|
-
import { QuickActions } from './redux/slices/quickActions';
|
|
3
|
-
export type AppProps = {
|
|
4
|
-
appId: Config.Credentials['appId'];
|
|
5
|
-
authKey: Config.Credentials['authKey'];
|
|
6
|
-
userId?: string;
|
|
7
|
-
userName?: string;
|
|
8
|
-
userAvatar?: string;
|
|
9
|
-
userProfileLink?: string;
|
|
10
|
-
config?: Config.Options;
|
|
11
|
-
muted?: boolean;
|
|
12
|
-
splitView?: boolean;
|
|
13
|
-
showOnlineUsersTab?: boolean;
|
|
14
|
-
quickActions?: QuickActions;
|
|
15
|
-
translation?: 'en' | 'el' | 'ua';
|
|
16
|
-
buttonTitle?: string;
|
|
17
|
-
portalStyle?: React.CSSProperties;
|
|
18
|
-
buttonStyle?: React.CSSProperties;
|
|
19
|
-
badgeStyle?: React.CSSProperties;
|
|
20
|
-
portalClassName?: string;
|
|
21
|
-
buttonClassName?: string;
|
|
22
|
-
badgeClassName?: string;
|
|
23
|
-
hideNewChatButton?: boolean;
|
|
24
|
-
hideWidgetButton?: boolean;
|
|
25
|
-
open?: boolean;
|
|
26
|
-
onOpenChange?: (open: boolean) => void;
|
|
27
|
-
onUnreadCountChange?: (count: number) => void;
|
|
28
|
-
};
|
|
29
|
-
declare const AppContainer: React.FC<AppProps>;
|
|
30
|
-
export default AppContainer;
|
package/dist/redux/hooks.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { TypedUseSelectorHook } from 'react-redux';
|
|
2
|
-
import { AppStore, AppDispatch } from './store';
|
|
3
|
-
type DispatchFunc = () => AppDispatch;
|
|
4
|
-
export declare const useAppDispatch: DispatchFunc;
|
|
5
|
-
export declare const useAppSelector: TypedUseSelectorHook<AppStore>;
|
|
6
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare enum Tab {
|
|
2
|
-
CHATS = "chats",
|
|
3
|
-
USERS = "users"
|
|
4
|
-
}
|
|
5
|
-
export declare const muted: import('redux').Reducer<boolean>;
|
|
6
|
-
export declare const setMuted: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "muted/setMuted">, resetMuted: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"muted/resetMuted">;
|
|
7
|
-
export declare const splitView: import('redux').Reducer<boolean>;
|
|
8
|
-
export declare const setSplitView: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "splitView/setSplitView">, resetSplitView: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"splitView/resetSplitView">;
|
|
9
|
-
export declare const showOnlineUsersTab: import('redux').Reducer<boolean>;
|
|
10
|
-
export declare const setShowOnlineUsersTab: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "showOnlineUsersTab/setShowOnlineUsersTab">, resetShowOnlineUsersTab: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"showOnlineUsersTab/resetShowOnlineUsersTab">;
|
|
11
|
-
export declare const activeTab: import('redux').Reducer<Tab>;
|
|
12
|
-
export declare const setActiveTab: import('@reduxjs/toolkit').ActionCreatorWithPayload<Tab, "activeTab/setActiveTab">, resetActiveTab: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"activeTab/resetActiveTab">;
|
|
13
|
-
export declare const hideNewChatButton: import('redux').Reducer<boolean>;
|
|
14
|
-
export declare const setHideNewChatButton: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "hideNewChatButton/setHideNewChatButton">, resetHideNewChatButton: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"hideNewChatButton/resetHideNewChatButton">;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Middleware } from '@reduxjs/toolkit';
|
|
2
|
-
type DraftMessage = {
|
|
3
|
-
[dialogId: string]: string;
|
|
4
|
-
};
|
|
5
|
-
export declare const DRAFT_MESSAGES_KEY = "@connectycube/chat-widget:draftMessages";
|
|
6
|
-
export declare const draftMessages: import('redux').Reducer<DraftMessage>;
|
|
7
|
-
export declare const setDraftMessages: import('@reduxjs/toolkit').ActionCreatorWithPayload<DraftMessage, "draftMessages/setDraftMessages">, upsertDraftMessage: import('@reduxjs/toolkit').ActionCreatorWithPayload<DraftMessage, "draftMessages/upsertDraftMessage">, deleteDraftMessage: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "draftMessages/deleteDraftMessage">, resetDraftMessages: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"draftMessages/resetDraftMessages">;
|
|
8
|
-
export declare const localStorageMiddleware: Middleware;
|
|
9
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type QuickActions = {
|
|
2
|
-
title?: string;
|
|
3
|
-
description?: string;
|
|
4
|
-
actions: string[];
|
|
5
|
-
};
|
|
6
|
-
export declare const quickActions: import('redux').Reducer<QuickActions>;
|
|
7
|
-
export declare const setQuickActions: import('@reduxjs/toolkit').ActionCreatorWithPayload<QuickActions, "quickActions/setQuickActions">, resetQuickActions: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"quickActions/resetQuickActions">;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare const unreadCount: import('redux').Reducer<number>;
|
|
2
|
-
export declare const setUnreadCount: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "unreadCount/setUnreadCount">, resetUnreadCount: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"unreadCount/resetUnreadCount">;
|
package/dist/redux/store.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export declare const rootReducer: import('redux').Reducer<{
|
|
2
|
-
unreadCount: number;
|
|
3
|
-
muted: boolean;
|
|
4
|
-
splitView: boolean;
|
|
5
|
-
showOnlineUsersTab: boolean;
|
|
6
|
-
activeTab: import('./slices/app').Tab;
|
|
7
|
-
hideNewChatButton: boolean;
|
|
8
|
-
draftMessages: {
|
|
9
|
-
[dialogId: string]: string;
|
|
10
|
-
};
|
|
11
|
-
quickActions: import('./slices/quickActions').QuickActions;
|
|
12
|
-
}, import('redux').UnknownAction, Partial<{
|
|
13
|
-
unreadCount: number | undefined;
|
|
14
|
-
muted: boolean | undefined;
|
|
15
|
-
splitView: boolean | undefined;
|
|
16
|
-
showOnlineUsersTab: boolean | undefined;
|
|
17
|
-
activeTab: import('./slices/app').Tab | undefined;
|
|
18
|
-
hideNewChatButton: boolean | undefined;
|
|
19
|
-
draftMessages: {
|
|
20
|
-
[dialogId: string]: string;
|
|
21
|
-
} | undefined;
|
|
22
|
-
quickActions: import('./slices/quickActions').QuickActions | undefined;
|
|
23
|
-
}>>;
|
|
24
|
-
export declare const store: import('@reduxjs/toolkit').EnhancedStore<{
|
|
25
|
-
unreadCount: number;
|
|
26
|
-
muted: boolean;
|
|
27
|
-
splitView: boolean;
|
|
28
|
-
showOnlineUsersTab: boolean;
|
|
29
|
-
activeTab: import('./slices/app').Tab;
|
|
30
|
-
hideNewChatButton: boolean;
|
|
31
|
-
draftMessages: {
|
|
32
|
-
[dialogId: string]: string;
|
|
33
|
-
};
|
|
34
|
-
quickActions: import('./slices/quickActions').QuickActions;
|
|
35
|
-
}, import('redux').UnknownAction, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
|
|
36
|
-
dispatch: import('redux-thunk').ThunkDispatch<{
|
|
37
|
-
unreadCount: number;
|
|
38
|
-
muted: boolean;
|
|
39
|
-
splitView: boolean;
|
|
40
|
-
showOnlineUsersTab: boolean;
|
|
41
|
-
activeTab: import('./slices/app').Tab;
|
|
42
|
-
hideNewChatButton: boolean;
|
|
43
|
-
draftMessages: {
|
|
44
|
-
[dialogId: string]: string;
|
|
45
|
-
};
|
|
46
|
-
quickActions: import('./slices/quickActions').QuickActions;
|
|
47
|
-
}, undefined, import('redux').UnknownAction>;
|
|
48
|
-
}>, import('redux').StoreEnhancer]>>;
|
|
49
|
-
export type AppDispatch = typeof store.dispatch;
|
|
50
|
-
export type RootState = ReturnType<typeof store.getState>;
|
|
51
|
-
export type AppStore = ReturnType<typeof rootReducer>;
|
|
52
|
-
export declare const resetStore: (force?: boolean) => void;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|