@ethora/chat-component 26.2.27 → 26.3.1
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 +8 -7
- package/dist/context/xmppProvider.d.ts +3 -1
- package/dist/firebase-messaging-sw.js +1 -1
- package/dist/helpers/storeConsole.d.ts +1 -1
- package/dist/hooks/useMessageHeapState.d.ts +2 -2
- package/dist/main.js +9903 -9581
- package/dist/main.js.map +1 -1
- package/dist/networking/api-requests/auth.api.d.ts +5 -4
- package/dist/networking/xmppClient.d.ts +8 -1
- package/dist/roomStore/index.d.ts +4 -4
- package/dist/types/models/config.model.d.ts +2 -0
- package/dist/types/models/xmpp.model.d.ts +6 -1
- package/dist/utils/clientRegistry.d.ts +12 -1
- package/package.json +1 -1
- package/public/firebase-messaging-sw.js +1 -1
package/README.md
CHANGED
|
@@ -102,7 +102,7 @@ import { Chat, XmppProvider } from '@ethora/chat-component';
|
|
|
102
102
|
export default function App() {
|
|
103
103
|
return (
|
|
104
104
|
<XmppProvider>
|
|
105
|
-
<Chat config={{ baseUrl: 'https://api.
|
|
105
|
+
<Chat config={{ baseUrl: 'https://api.chat.ethora.com/v1' }} />
|
|
106
106
|
</XmppProvider>
|
|
107
107
|
);
|
|
108
108
|
}
|
|
@@ -116,7 +116,7 @@ import { XmppProvider } from '@ethora/chat-component';
|
|
|
116
116
|
export default function App() {
|
|
117
117
|
return (
|
|
118
118
|
<XmppProvider
|
|
119
|
-
config={{ baseUrl: 'https://api.
|
|
119
|
+
config={{ baseUrl: 'https://api.chat.ethora.com/v1', initBeforeLoad: true }}
|
|
120
120
|
pushNotifications={{
|
|
121
121
|
enabled: true,
|
|
122
122
|
softAsk: false,
|
|
@@ -281,7 +281,7 @@ If no `googleLogin`, no `jwtLogin`, no `userLogin`, and no `defaultLogin`, `Logi
|
|
|
281
281
|
```tsx
|
|
282
282
|
<XmppProvider>
|
|
283
283
|
<Chat
|
|
284
|
-
roomJID="ROOM_JID@conference.xmpp.
|
|
284
|
+
roomJID="ROOM_JID@conference.xmpp.chat.ethora.com"
|
|
285
285
|
config={{
|
|
286
286
|
setRoomJidInPath: true,
|
|
287
287
|
qrUrl: 'https://your-app.example/chat/?qrChatId=',
|
|
@@ -329,7 +329,7 @@ Below is a grouped reference for all `config` options.
|
|
|
329
329
|
| Option | Type | Description |
|
|
330
330
|
| --- | --- | --- |
|
|
331
331
|
| `appId` | `string` | App identifier for backend context. |
|
|
332
|
-
| `baseUrl` | `string` | API base URL (
|
|
332
|
+
| `baseUrl` | `string` | API base URL (defaults to `https://api.chat.ethora.com/v1`, the Ethora Cloud production endpoint). |
|
|
333
333
|
| `customAppToken` | `string` | Custom app token for API initialization. |
|
|
334
334
|
| `xmppSettings` | `{ devServer; host; conference?; xmppPingOnSendEnabled? }` | XMPP connectivity settings. |
|
|
335
335
|
| `initBeforeLoad` | `boolean` | Initialize XMPP before normal chat load flow. |
|
|
@@ -685,16 +685,17 @@ This is a practical planning snapshot for cross-platform consumers. It is not a
|
|
|
685
685
|
### Product
|
|
686
686
|
|
|
687
687
|
- Website: https://ethora.com/
|
|
688
|
-
- Try Ethora: https://app.ethora.com/register
|
|
688
|
+
- Try Ethora: https://app.chat.ethora.com/register
|
|
689
|
+
- SDK Playground (live): https://playground.chat.ethora.com
|
|
690
|
+
- Platform status / uptime: https://uptime.chat.ethora.com
|
|
689
691
|
|
|
690
692
|
### Developer Docs
|
|
691
693
|
|
|
692
694
|
- Chat component docs: https://docs.ethora.com/
|
|
695
|
+
- API docs (Swagger, live): https://api.chat.ethora.com/api-docs/#/
|
|
693
696
|
- Ethora GitHub hub: https://github.com/dappros/ethora
|
|
694
697
|
- This package repo: https://github.com/dappros/ethora-chat-component
|
|
695
698
|
- Ethora GitHub organization: https://github.com/dappros
|
|
696
|
-
- API docs (public): https://app.dappros.com/api-docs/
|
|
697
|
-
- API docs (environment used in this repo): https://api.ethoradev.com/api-docs
|
|
698
699
|
|
|
699
700
|
### Community and Support
|
|
700
701
|
|
|
@@ -2,7 +2,9 @@ import { default as React, ReactNode } from 'react';
|
|
|
2
2
|
import { default as XmppClient } from '../networking/xmppClient';
|
|
3
3
|
import { IConfig, IRoom, xmppSettingsInterface } from '../types/types';
|
|
4
4
|
interface XmppContextType {
|
|
5
|
-
client: XmppClient;
|
|
5
|
+
client: XmppClient | null;
|
|
6
|
+
providerBootstrapStatus: 'idle' | 'running' | 'ready' | 'failed';
|
|
7
|
+
initMode: 'provider' | 'chat';
|
|
6
8
|
setClient: (client: XmppClient | null) => void;
|
|
7
9
|
initializeClient: (username: string, password: string, xmppSettings?: xmppSettingsInterface, roomsList?: {
|
|
8
10
|
[jid: string]: IRoom;
|