@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.
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+
3
+ declare const DarkModeIcon: FC;
4
+ export default DarkModeIcon;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+
3
+ declare const LightModeIcon: FC;
4
+ export default LightModeIcon;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+
3
+ interface ToggleThemeProps {
4
+ isNavbarExpanded: boolean;
5
+ }
6
+ declare const ToggleTheme: FC<ToggleThemeProps>;
7
+ export default ToggleTheme;
@@ -0,0 +1,4 @@
1
+ export declare const useTheme: () => {
2
+ theme: "light" | "dark";
3
+ setTheme: (value: "light" | "dark") => void;
4
+ };
@@ -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 function useRoom(roomId: string): UseRoomReturn;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluealba/pae-ui-react-core",
3
- "version": "4.1.2-develop-1325",
3
+ "version": "4.1.2-develop-1330",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",