@bluealba/pae-ui-react-core 4.1.2-develop-1325 → 4.1.2-develop-1330
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/dist/index.cjs.js +44 -44
- package/dist/index.css +1 -1
- package/dist/index.esm.js +1975 -1911
- package/dist/index.systemjs.js +58 -58
- package/dist/index.umd.js +41 -41
- package/dist/src/components/ThemeToggle/DarkModeIcon.d.ts +4 -0
- package/dist/src/components/ThemeToggle/LightModeIcon.d.ts +4 -0
- package/dist/src/components/ThemeToggle/ThemeToggle.d.ts +7 -0
- package/dist/src/components/ThemeToggle/useTheme.d.ts +4 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/rooms/hooks/useRoom.d.ts +27 -1
- package/package.json +1 -1
|
@@ -4,3 +4,5 @@ export { ExtensionPoint } from './ExtensionPoint';
|
|
|
4
4
|
export { default as Authorized } from './Authorized';
|
|
5
5
|
export { default as PlatformEventListener } from './PlatformEventListener';
|
|
6
6
|
export { default as ApplicationIcon } from './ApplicationIcon';
|
|
7
|
+
export { default as ThemeToggle } from './ThemeToggle/ThemeToggle';
|
|
8
|
+
export { useTheme } from './ThemeToggle/useTheme';
|
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
import { RoomUser } from '../types/rooms.types';
|
|
2
2
|
|
|
3
|
+
export interface UseRoomOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Automatically join the room when the hook is used.
|
|
6
|
+
* Defaults to true.
|
|
7
|
+
*/
|
|
8
|
+
autoJoin?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Automatically leave the room when the component unmounts.
|
|
11
|
+
* Defaults to true.
|
|
12
|
+
*/
|
|
13
|
+
autoLeave?: boolean;
|
|
14
|
+
}
|
|
3
15
|
export interface UseRoomReturn {
|
|
4
16
|
users: RoomUser[];
|
|
17
|
+
roomId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Indicates whether the authenticated user has joined the room.
|
|
20
|
+
*/
|
|
21
|
+
hasJoined: boolean;
|
|
22
|
+
joinRoom: () => void;
|
|
23
|
+
leaveRoom: () => void;
|
|
5
24
|
}
|
|
6
|
-
export declare
|
|
25
|
+
export declare const DEFAULT_OPTIONS: UseRoomOptions;
|
|
26
|
+
/**
|
|
27
|
+
* Hook to manage room participation and retrieve room users.
|
|
28
|
+
* @param roomId current room ID
|
|
29
|
+
* @param options configuration options for auto-joining and auto-leaving the room
|
|
30
|
+
* @returns an object containing room users, room ID, and functions to join/leave the room
|
|
31
|
+
*/
|
|
32
|
+
export declare function useRoom(roomId: string, options?: UseRoomOptions): UseRoomReturn;
|