@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.
- package/README.md +64 -17
- package/dist/index.es.js +8085 -6349
- 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} +6 -0
- package/dist/src/components/home/main/quick-actions.d.ts +5 -0
- package/dist/{components → src/components}/home/sidebar/sidebar.d.ts +0 -1
- package/dist/{components → src/components}/login.d.ts +2 -0
- package/dist/{components → src/components}/shared/avatar.d.ts +1 -1
- 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/src/redux/slices/quickActions.d.ts +7 -0
- package/dist/{redux → src/redux}/store.d.ts +8 -0
- package/package.json +6 -3
- /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/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/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/unreadCount.d.ts +0 -0
- /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
|
-
|
|
130
|
-
|
|
|
131
|
-
|
|
|
132
|
-
| `
|
|
133
|
-
| `
|
|
134
|
-
| `
|
|
135
|
-
| `
|
|
136
|
-
| `
|
|
137
|
-
| `
|
|
138
|
-
| `
|
|
139
|
-
| `
|
|
140
|
-
| `
|
|
141
|
-
| `
|
|
142
|
-
| `
|
|
143
|
-
| `
|
|
144
|
-
| `
|
|
145
|
-
| `
|
|
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)
|