@ethora/chat-component 26.2.28 → 26.3.2

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 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.ethoradev.com/v1' }} />
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.ethoradev.com/v1', initBeforeLoad: true }}
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.ethoradev.com"
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 (default project uses `https://api.ethoradev.com/v1`). |
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
 
@@ -4,6 +4,7 @@ interface ModalWrapperProps {
4
4
  title: string;
5
5
  description?: string;
6
6
  buttonText?: string;
7
+ cancelText?: string;
7
8
  backgroundColorButton?: string;
8
9
  isTextarea?: boolean;
9
10
  textarea?: string;
@@ -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;
@@ -1,4 +1,4 @@
1
- /* eslint-disable no-empty, no-restricted-globals */
1
+ /* eslint-disable no-empty */
2
2
  /* eslint-env worker */
3
3
  /* global clients */
4
4
 
@@ -1,5 +1,5 @@
1
1
  export declare const useStoreConsole: () => {
2
2
  chatSettingStore: any;
3
3
  rooms: any;
4
- roomHeapSlice: any;
4
+ roomHeapSlice: import('../roomStore/roomHeapSlice').roomHeapSliceState;
5
5
  };
@@ -1,4 +1,4 @@
1
1
  export declare const useMessageHeapState: () => {
2
- queue: any[];
3
- idSet: Set<any>;
2
+ queue: import('../types/types').IMessage[];
3
+ idSet: Set<string>;
4
4
  };