@fraku/video 0.1.53 → 0.1.55

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.
@@ -3,6 +3,8 @@ type AccordionHeaderTemplateProps = {
3
3
  label: string;
4
4
  tabIdx: number;
5
5
  onClose?: () => void;
6
+ showBadge?: boolean;
7
+ badgeValue?: string | number;
6
8
  };
7
- declare const AccordionHeaderTemplate: ({ activeSection, label, tabIdx, onClose }: AccordionHeaderTemplateProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const AccordionHeaderTemplate: ({ activeSection, label, tabIdx, onClose, showBadge, badgeValue }: AccordionHeaderTemplateProps) => import("react/jsx-runtime").JSX.Element;
8
10
  export default AccordionHeaderTemplate;
@@ -6,4 +6,6 @@ export declare const useButtonsDockController: () => {
6
6
  audioMenuOptionsRef: import('react').RefObject<Menu>;
7
7
  videoMenuOptionsRef: import('react').RefObject<Menu>;
8
8
  micMenuOptionsRef: import('react').RefObject<Menu>;
9
+ showChatBadge: boolean;
10
+ showHandRaiseBadge: boolean | undefined;
9
11
  };
@@ -1,6 +1,7 @@
1
1
  import { MutableRefObject } from 'react';
2
2
 
3
3
  type PageContextType = {
4
+ activeSection: number | null;
4
5
  openTabs: number[];
5
6
  handleOpenCloseTab: (tabIdx: number) => void;
6
7
  selfShareViewRef: MutableRefObject<HTMLVideoElement | null>;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Custom hook to track raised hands and show badge.
3
+ * Unlike chat messages which only increase, raised hands can go up and down.
4
+ * This hook tracks which specific users have raised their hands to properly
5
+ * detect new raised hands even when others lower theirs.
6
+ *
7
+ * @param isHandRaiseTabOpen - Whether the hand raise tab is currently open
8
+ * @returns Object containing raised hands count, badge value, and visibility flag
9
+ */
10
+ export declare const useRaisedHandsBadge: (isHandRaiseTabOpen: boolean) => {
11
+ raisedHandsCount: number;
12
+ newRaisedHandsCount: number;
13
+ hasNewRaisedHands: boolean;
14
+ badgeValue: number;
15
+ showBadge: boolean | undefined;
16
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Custom hook to track unread chat messages.
3
+ *
4
+ * @param isChatOpen - Whether the chat tab is currently open
5
+ * @returns Object containing unread message count, badge value, and visibility flag
6
+ */
7
+ export declare const useUnreadChatMessages: (isChatOpen: boolean) => {
8
+ unreadMessagesCount: number;
9
+ hasUnreadMessages: boolean;
10
+ badgeValue: number;
11
+ showBadge: boolean;
12
+ };
@@ -1,4 +1,5 @@
1
1
  import { SettingsTab } from '../../components/ConfigDialog/context';
2
+ import { AcceptParticipationDialogConfig } from '../../components/AcceptParticipationDialog/types';
2
3
 
3
4
  export type NotifySeverity = 'info' | 'success' | 'error';
4
5
  export type AlertDialogProps = {
@@ -25,7 +26,8 @@ export type DialogsContextType = {
25
26
  tab?: SettingsTab;
26
27
  }) => void;
27
28
  acceptParticipationDialogVisible: boolean;
28
- toggleAcceptParticipationDialog: () => void;
29
+ acceptParticipationDialogConfig: AcceptParticipationDialogConfig | null;
30
+ toggleAcceptParticipationDialog: (config?: AcceptParticipationDialogConfig) => void;
29
31
  notify: (props: NotifyProps) => void;
30
32
  alert: (props: AlertDialogProps) => void;
31
33
  confirm: (props: ConfirmDialogProps) => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fraku/video",
3
3
  "private": false,
4
- "version": "0.1.53",
4
+ "version": "0.1.55",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -48,7 +48,7 @@
48
48
  "react-dom": "^18.2.0"
49
49
  },
50
50
  "dependencies": {
51
- "@zoom/videosdk": "^2.3.12",
51
+ "@zoom/videosdk": "^2.3.14",
52
52
  "classnames": "^2.5.1",
53
53
  "clsx": "^2.1.1",
54
54
  "i18n": "^0.15.3",
@@ -64,7 +64,7 @@
64
64
  },
65
65
  "devDependencies": {
66
66
  "@playwright/test": "^1.57.0",
67
- "@storybook/react-vite": "^10.2.6",
67
+ "@storybook/react-vite": "^10.2.9",
68
68
  "@storybook/test-runner": "^0.24.2",
69
69
  "@tailwindcss/container-queries": "^0.1.1",
70
70
  "@testing-library/jest-dom": "^6.9.1",
@@ -91,7 +91,7 @@
91
91
  "postcss": "^8.5.6",
92
92
  "react": "^18.2.0",
93
93
  "react-dom": "^18.2.0",
94
- "storybook": "^10.2.6",
94
+ "storybook": "^10.2.9",
95
95
  "tailwindcss": "^3.4.17",
96
96
  "typescript": "^5.2.2",
97
97
  "vite": "^6.0.7",