@connectycube/chat-widget 0.12.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.
Files changed (59) hide show
  1. package/README.md +64 -17
  2. package/dist/index.es.js +8085 -6349
  3. package/dist/index.umd.js +36 -36
  4. package/dist/locales/el/translation.json +40 -0
  5. package/dist/locales/en/translation.json +40 -0
  6. package/dist/locales/ua/translation.json +40 -0
  7. package/dist/{AppContainer.d.ts → src/AppContainer.d.ts} +6 -0
  8. package/dist/src/components/home/main/quick-actions.d.ts +5 -0
  9. package/dist/{components → src/components}/home/sidebar/sidebar.d.ts +0 -1
  10. package/dist/{components → src/components}/login.d.ts +2 -0
  11. package/dist/{components → src/components}/shared/avatar.d.ts +1 -1
  12. package/dist/{connectycube.d.ts → src/connectycube.d.ts} +4 -4
  13. package/dist/src/i18n.d.ts +2 -0
  14. package/dist/{redux → src/redux}/slices/app.d.ts +2 -0
  15. package/dist/src/redux/slices/quickActions.d.ts +7 -0
  16. package/dist/{redux → src/redux}/store.d.ts +8 -0
  17. package/package.json +6 -3
  18. /package/dist/{App.d.ts → src/App.d.ts} +0 -0
  19. /package/dist/{components → src/components}/home/home.d.ts +0 -0
  20. /package/dist/{components → src/components}/home/main/chat-header.d.ts +0 -0
  21. /package/dist/{components → src/components}/home/main/chat-info.d.ts +0 -0
  22. /package/dist/{components → src/components}/home/main/chat-input.d.ts +0 -0
  23. /package/dist/{components → src/components}/home/main/group-member.d.ts +0 -0
  24. /package/dist/{components → src/components}/home/main/main.d.ts +0 -0
  25. /package/dist/{components → src/components}/home/main/message.d.ts +0 -0
  26. /package/dist/{components → src/components}/home/sidebar/chat-item.d.ts +0 -0
  27. /package/dist/{components → src/components}/home/sidebar/chats-list.d.ts +0 -0
  28. /package/dist/{components → src/components}/home/sidebar/new-chat/create-group-chat/create-group-chat.d.ts +0 -0
  29. /package/dist/{components → src/components}/home/sidebar/new-chat/create-group-chat/participant.d.ts +0 -0
  30. /package/dist/{components → src/components}/home/sidebar/new-chat/new-chat-dialog.d.ts +0 -0
  31. /package/dist/{components → src/components}/home/sidebar/new-chat/searched-user.d.ts +0 -0
  32. /package/dist/{components → src/components}/home/sidebar/tabs/chats-tab.d.ts +0 -0
  33. /package/dist/{components → src/components}/home/sidebar/tabs/users-tab.d.ts +0 -0
  34. /package/dist/{components → src/components}/home/sidebar/user-item.d.ts +0 -0
  35. /package/dist/{components → src/components}/home/sidebar/users-list.d.ts +0 -0
  36. /package/dist/{components → src/components}/shadcn-ui/alert-dialog.d.ts +0 -0
  37. /package/dist/{components → src/components}/shadcn-ui/avatar.d.ts +0 -0
  38. /package/dist/{components → src/components}/shadcn-ui/badge.d.ts +0 -0
  39. /package/dist/{components → src/components}/shadcn-ui/button.d.ts +0 -0
  40. /package/dist/{components → src/components}/shadcn-ui/dialog.d.ts +0 -0
  41. /package/dist/{components → src/components}/shadcn-ui/dropdown-menu.d.ts +0 -0
  42. /package/dist/{components → src/components}/shadcn-ui/input.d.ts +0 -0
  43. /package/dist/{components → src/components}/shadcn-ui/label.d.ts +0 -0
  44. /package/dist/{components → src/components}/shadcn-ui/switch.d.ts +0 -0
  45. /package/dist/{components → src/components}/shadcn-ui/tabs.d.ts +0 -0
  46. /package/dist/{components → src/components}/shared/confirmation-alert.d.ts +0 -0
  47. /package/dist/{components → src/components}/shared/empty-content-placeholder.d.ts +0 -0
  48. /package/dist/{components → src/components}/shared/loader.d.ts +0 -0
  49. /package/dist/{hooks → src/hooks}/debounce.d.ts +0 -0
  50. /package/dist/{hooks → src/hooks}/throttle.d.ts +0 -0
  51. /package/dist/{hooks → src/hooks}/useNotificationSound.d.ts +0 -0
  52. /package/dist/{hooks → src/hooks}/usePageFocus.d.ts +0 -0
  53. /package/dist/{index.d.ts → src/index.d.ts} +0 -0
  54. /package/dist/{lib → src/lib}/utils.d.ts +0 -0
  55. /package/dist/{main.d.ts → src/main.d.ts} +0 -0
  56. /package/dist/{redux → src/redux}/hooks.d.ts +0 -0
  57. /package/dist/{redux → src/redux}/slices/draftMessages.d.ts +0 -0
  58. /package/dist/{redux → src/redux}/slices/unreadCount.d.ts +0 -0
  59. /package/dist/{tests → src/tests}/connectycube.test.d.ts +0 -0
package/README.md CHANGED
@@ -126,23 +126,66 @@ See chat widget code samples <https://github.com/ConnectyCube/connectycube-chat-
126
126
 
127
127
  ## Props
128
128
 
129
- | Prop Name | Type | Description |
130
- | -------------------- | --------------------- | ------------------------------------------------------------- |
131
- | `appId` | `number \| string` | The ConnectyCube Application ID |
132
- | `authKey` | `string` | The ConnectyCube Authentication Key |
133
- | `config` | `object` | _(Optional)_ Configuration options for ConnectyCube SDK |
134
- | `userId` | `string` | A User Id from your system |
135
- | `userName` | `string` | User name. This is how other users will see your user name |
136
- | `muted` | `boolean` (`false`) | _(Optional)_ Do not play sound on incoming message |
137
- | `splitView` | `boolean` (`false`) | _(Optional)_ Displays the chats in split view or single view |
138
- | `showOnlineUsersTab` | `boolean` (`false`) | _(Optional)_ Displays users tab with the list of online users |
139
- | `buttonTitle` | `string` ("Chat") | _(Optional)_ The text displayed on the chat button |
140
- | `buttonStyle` | `React.CSSProperties` | _(Optional)_ Inline styles for the button |
141
- | `portalStyle` | `React.CSSProperties` | _(Optional)_ Inline styles for the portal |
142
- | `badgeStyle` | `React.CSSProperties` | _(Optional)_ Inline styles for the badge |
143
- | `buttonClassName` | `string` | _(Optional)_ CSS class or Tailwind CSS classes for the button |
144
- | `portalClassName` | `string` | _(Optional)_ CSS class or Tailwind CSS classes for the chat |
145
- | `badgeClassName` | `string` | _(Optional)_ CSS class or Tailwind CSS classes for the badge |
129
+ <<<<<<< HEAD
130
+ | Prop Name | Type | Description | Default Value |
131
+ | -------------------- | --------------------- | -------------------------------------------------------------------------------------- | ------------- |
132
+ | `appId` | `number \| string` | The ConnectyCube Application ID | |
133
+ | `authKey` | `string` | The ConnectyCube Authentication Key | |
134
+ | `config` | `object` | _(Optional)_ Configuration options for ConnectyCube SDK | |
135
+ | `userId` | `string` | A User Id from your system | |
136
+ | `userName` | `string` | User name. This is how other users will see your user name | |
137
+ | `userAvatar` | `string` | _(Optional)_ User Avatar URL | |
138
+ | `userProfileLink` | `string` | _(Optional)_ User profile link URL | |
139
+ | `muted` | `boolean` | _(Optional)_ Do not play sound on incoming message | false |
140
+ | `splitView` | `boolean` | _(Optional)_ Displays the chats in split view or single view | false |
141
+ | `showOnlineUsersTab` | `boolean` | _(Optional)_ Displays users tab with the list of online users | false |
142
+ | `buttonTitle` | `string` | _(Optional)_ The text displayed on the chat button | "Chat" |
143
+ | `buttonStyle` | `React.CSSProperties` | _(Optional)_ Inline styles for the button | |
144
+ | `portalStyle` | `React.CSSProperties` | _(Optional)_ Inline styles for the portal | |
145
+ | `badgeStyle` | `React.CSSProperties` | _(Optional)_ Inline styles for the badge | |
146
+ | `buttonClassName` | `string` | _(Optional)_ CSS class or Tailwind CSS classes for the button | |
147
+ | `portalClassName` | `string` | _(Optional)_ CSS class or Tailwind CSS classes for the chat | |
148
+ | `badgeClassName` | `string` | _(Optional)_ CSS class or Tailwind CSS classes for the badge | |
149
+ | `quickActions` | `object` | _(Optional)_ Configuration for quick actions dialog. See [QuickActions](#quickactions) | |
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
175
+
176
+ | Prop Name | Type | Description | Default Value |
177
+ | ------------- | ---------- | ------------------------------------------------ | ------------- |
178
+ | `title` | `string` | _(Optional)_ Title for the quick actions section | |
179
+ | `description` | `string` | _(Optional)_ Description for the quick actions | |
180
+ | `actions` | `string[]` | List of action strings | |
181
+
182
+ ## Supported Translations
183
+
184
+ | Language Code | Language |
185
+ | ------------- | --------- |
186
+ | `en` | English |
187
+ | `el` | Greek |
188
+ | `ua` | Ukrainian |
146
189
 
147
190
  ## Recipes
148
191
 
@@ -228,6 +271,10 @@ const props = {
228
271
  };
229
272
  ```
230
273
 
274
+ ## Changelog
275
+
276
+ <https://github.com/ConnectyCube/connectycube-chat-widget-samples/blob/main/CHANGELOG.md>
277
+
231
278
  ## Community and support
232
279
 
233
280
  - [Blog](https://connectycube.com/blog)