@bluealba/pae-ui-react-core 4.2.1-develop-1351 → 4.2.1-develop-1353

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.
@@ -5,5 +5,6 @@ export interface RoomsContextValue {
5
5
  joinRoom: (roomId: string) => void;
6
6
  leaveRoom: (roomId: string) => void;
7
7
  getRoomUsers: (roomId: string) => RoomUser[];
8
+ reconnect: () => void;
8
9
  }
9
10
  export declare const RoomsContext: import('react').Context<RoomsContextValue | null>;
@@ -21,6 +21,10 @@ export interface UseRoomReturn {
21
21
  hasJoined: boolean;
22
22
  joinRoom: () => void;
23
23
  leaveRoom: () => void;
24
+ /**
25
+ * Reconnects to the rooms WebSocket. This can be useful in scenarios where the connection is lost or needs to be refreshed.
26
+ */
27
+ reconnect: () => void;
24
28
  }
25
29
  export declare const DEFAULT_OPTIONS: UseRoomOptions;
26
30
  /**
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
- export type ConnectionStatus = 'loading' | 'connected' | 'closed' | 'error';
1
+ export type ConnectionStatus = 'loading' | 'connected' | 'closed' | 'error' | 'reconnecting';
2
2
  export interface RoomUser {
3
3
  username: string;
4
4
  displayName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluealba/pae-ui-react-core",
3
- "version": "4.2.1-develop-1351",
3
+ "version": "4.2.1-develop-1353",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",