@connectycube/chat-widget 0.13.0 → 0.14.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/README.md +35 -2
- package/dist/index.es.js +8173 -6474
- package/dist/index.umd.js +36 -36
- package/dist/locales/el/translation.json +40 -0
- package/dist/locales/en/translation.json +40 -0
- package/dist/locales/ua/translation.json +40 -0
- package/dist/{AppContainer.d.ts → src/AppContainer.d.ts} +3 -0
- package/dist/{components → src/components}/home/sidebar/sidebar.d.ts +0 -1
- package/dist/{components → src/components}/login.d.ts +1 -0
- package/dist/{connectycube.d.ts → src/connectycube.d.ts} +4 -4
- package/dist/src/i18n.d.ts +2 -0
- package/dist/{redux → src/redux}/slices/app.d.ts +2 -0
- package/dist/{redux → src/redux}/store.d.ts +4 -0
- package/package.json +5 -2
- /package/dist/{App.d.ts → src/App.d.ts} +0 -0
- /package/dist/{components → src/components}/home/home.d.ts +0 -0
- /package/dist/{components → src/components}/home/main/chat-header.d.ts +0 -0
- /package/dist/{components → src/components}/home/main/chat-info.d.ts +0 -0
- /package/dist/{components → src/components}/home/main/chat-input.d.ts +0 -0
- /package/dist/{components → src/components}/home/main/group-member.d.ts +0 -0
- /package/dist/{components → src/components}/home/main/main.d.ts +0 -0
- /package/dist/{components → src/components}/home/main/message.d.ts +0 -0
- /package/dist/{components → src/components}/home/main/quick-actions.d.ts +0 -0
- /package/dist/{components → src/components}/home/sidebar/chat-item.d.ts +0 -0
- /package/dist/{components → src/components}/home/sidebar/chats-list.d.ts +0 -0
- /package/dist/{components → src/components}/home/sidebar/new-chat/create-group-chat/create-group-chat.d.ts +0 -0
- /package/dist/{components → src/components}/home/sidebar/new-chat/create-group-chat/participant.d.ts +0 -0
- /package/dist/{components → src/components}/home/sidebar/new-chat/new-chat-dialog.d.ts +0 -0
- /package/dist/{components → src/components}/home/sidebar/new-chat/searched-user.d.ts +0 -0
- /package/dist/{components → src/components}/home/sidebar/tabs/chats-tab.d.ts +0 -0
- /package/dist/{components → src/components}/home/sidebar/tabs/users-tab.d.ts +0 -0
- /package/dist/{components → src/components}/home/sidebar/user-item.d.ts +0 -0
- /package/dist/{components → src/components}/home/sidebar/users-list.d.ts +0 -0
- /package/dist/{components → src/components}/shadcn-ui/alert-dialog.d.ts +0 -0
- /package/dist/{components → src/components}/shadcn-ui/avatar.d.ts +0 -0
- /package/dist/{components → src/components}/shadcn-ui/badge.d.ts +0 -0
- /package/dist/{components → src/components}/shadcn-ui/button.d.ts +0 -0
- /package/dist/{components → src/components}/shadcn-ui/dialog.d.ts +0 -0
- /package/dist/{components → src/components}/shadcn-ui/dropdown-menu.d.ts +0 -0
- /package/dist/{components → src/components}/shadcn-ui/input.d.ts +0 -0
- /package/dist/{components → src/components}/shadcn-ui/label.d.ts +0 -0
- /package/dist/{components → src/components}/shadcn-ui/switch.d.ts +0 -0
- /package/dist/{components → src/components}/shadcn-ui/tabs.d.ts +0 -0
- /package/dist/{components → src/components}/shared/avatar.d.ts +0 -0
- /package/dist/{components → src/components}/shared/confirmation-alert.d.ts +0 -0
- /package/dist/{components → src/components}/shared/empty-content-placeholder.d.ts +0 -0
- /package/dist/{components → src/components}/shared/loader.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/debounce.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/throttle.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useNotificationSound.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/usePageFocus.d.ts +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{lib → src/lib}/utils.d.ts +0 -0
- /package/dist/{main.d.ts → src/main.d.ts} +0 -0
- /package/dist/{redux → src/redux}/hooks.d.ts +0 -0
- /package/dist/{redux → src/redux}/slices/draftMessages.d.ts +0 -0
- /package/dist/{redux → src/redux}/slices/quickActions.d.ts +0 -0
- /package/dist/{redux → src/redux}/slices/unreadCount.d.ts +0 -0
- /package/dist/{tests → src/tests}/connectycube.test.d.ts +0 -0
package/README.md
CHANGED
|
@@ -126,6 +126,7 @@ See chat widget code samples <https://github.com/ConnectyCube/connectycube-chat-
|
|
|
126
126
|
|
|
127
127
|
## Props
|
|
128
128
|
|
|
129
|
+
<<<<<<< HEAD
|
|
129
130
|
| Prop Name | Type | Description | Default Value |
|
|
130
131
|
| -------------------- | --------------------- | -------------------------------------------------------------------------------------- | ------------- |
|
|
131
132
|
| `appId` | `number \| string` | The ConnectyCube Application ID | |
|
|
@@ -134,6 +135,7 @@ See chat widget code samples <https://github.com/ConnectyCube/connectycube-chat-
|
|
|
134
135
|
| `userId` | `string` | A User Id from your system | |
|
|
135
136
|
| `userName` | `string` | User name. This is how other users will see your user name | |
|
|
136
137
|
| `userAvatar` | `string` | _(Optional)_ User Avatar URL | |
|
|
138
|
+
| `userProfileLink` | `string` | _(Optional)_ User profile link URL | |
|
|
137
139
|
| `muted` | `boolean` | _(Optional)_ Do not play sound on incoming message | false |
|
|
138
140
|
| `splitView` | `boolean` | _(Optional)_ Displays the chats in split view or single view | false |
|
|
139
141
|
| `showOnlineUsersTab` | `boolean` | _(Optional)_ Displays users tab with the list of online users | false |
|
|
@@ -145,8 +147,31 @@ See chat widget code samples <https://github.com/ConnectyCube/connectycube-chat-
|
|
|
145
147
|
| `portalClassName` | `string` | _(Optional)_ CSS class or Tailwind CSS classes for the chat | |
|
|
146
148
|
| `badgeClassName` | `string` | _(Optional)_ CSS class or Tailwind CSS classes for the badge | |
|
|
147
149
|
| `quickActions` | `object` | _(Optional)_ Configuration for quick actions dialog. See [QuickActions](#quickactions) | |
|
|
148
|
-
|
|
149
|
-
|
|
150
|
+
=======
|
|
151
|
+
| Prop Name | Type | Description | Default Value |
|
|
152
|
+
| -------------------- | --------------------- | -------------------------------------------------------------------------------------------------------------- | ------------- |
|
|
153
|
+
| `appId` | `number \| string` | The ConnectyCube Application ID | |
|
|
154
|
+
| `authKey` | `string` | The ConnectyCube Authentication Key | |
|
|
155
|
+
| `config` | `object` | _(Optional)_ Configuration options for ConnectyCube SDK | |
|
|
156
|
+
| `userId` | `string` | A User Id from your system | |
|
|
157
|
+
| `userName` | `string` | User name. This is how other users will see your user name | |
|
|
158
|
+
| `userAvatar` | `string` | _(Optional)_ User Avatar URL | |
|
|
159
|
+
| `muted` | `boolean` | _(Optional)_ Do not play sound on incoming message | false |
|
|
160
|
+
| `splitView` | `boolean` | _(Optional)_ Displays the chats in split view or single view | false |
|
|
161
|
+
| `showOnlineUsersTab` | `boolean` | _(Optional)_ Displays users tab with the list of online users | false |
|
|
162
|
+
| `hideNewChatButton` | `boolean` | _(Optional)_ Hide new chat button | false |
|
|
163
|
+
| `buttonTitle` | `string` | _(Optional)_ The text displayed on the chat button | |
|
|
164
|
+
| `buttonStyle` | `React.CSSProperties` | _(Optional)_ Inline styles for the button | |
|
|
165
|
+
| `portalStyle` | `React.CSSProperties` | _(Optional)_ Inline styles for the portal | |
|
|
166
|
+
| `badgeStyle` | `React.CSSProperties` | _(Optional)_ Inline styles for the badge | |
|
|
167
|
+
| `buttonClassName` | `string` | _(Optional)_ CSS class or Tailwind CSS classes for the button | |
|
|
168
|
+
| `portalClassName` | `string` | _(Optional)_ CSS class or Tailwind CSS classes for the chat | |
|
|
169
|
+
| `badgeClassName` | `string` | _(Optional)_ CSS class or Tailwind CSS classes for the badge | |
|
|
170
|
+
| `quickActions` | `object` | _(Optional)_ Configuration for quick actions in the new chat. See [Quick Actions](#quick-actions) | |
|
|
171
|
+
| `translation` | `string` | _(Optional)_ Specifies the language for the chat widget. See [Supported Translations](#supported-translations) | "en" |
|
|
172
|
+
>>>>>>> dev
|
|
173
|
+
|
|
174
|
+
## Quick Actions
|
|
150
175
|
|
|
151
176
|
| Prop Name | Type | Description | Default Value |
|
|
152
177
|
| ------------- | ---------- | ------------------------------------------------ | ------------- |
|
|
@@ -154,6 +179,14 @@ See chat widget code samples <https://github.com/ConnectyCube/connectycube-chat-
|
|
|
154
179
|
| `description` | `string` | _(Optional)_ Description for the quick actions | |
|
|
155
180
|
| `actions` | `string[]` | List of action strings | |
|
|
156
181
|
|
|
182
|
+
## Supported Translations
|
|
183
|
+
|
|
184
|
+
| Language Code | Language |
|
|
185
|
+
| ------------- | --------- |
|
|
186
|
+
| `en` | English |
|
|
187
|
+
| `el` | Greek |
|
|
188
|
+
| `ua` | Ukrainian |
|
|
189
|
+
|
|
157
190
|
## Recipes
|
|
158
191
|
|
|
159
192
|
### Split view
|