@100mslive/roomkit-react 0.1.14-alpha.0 → 0.1.14-alpha.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/dist/{HLSView-HCZVI2RM.js → HLSView-3RARRZJO.js} +2 -2
- package/dist/Prebuilt/common/constants.d.ts +1 -0
- package/dist/Prebuilt/common/hooks.d.ts +24 -0
- package/dist/Prebuilt/components/Chat/{Navigation.d.ts → ArrowNavigation.d.ts} +1 -2
- package/dist/Prebuilt/components/Chat/ChatFooter.d.ts +2 -4
- package/dist/Prebuilt/components/Chat/ChatSelector.d.ts +5 -0
- package/dist/Prebuilt/components/Chat/ChatSelectorContainer.d.ts +2 -0
- package/dist/Prebuilt/components/Chat/ChatStates.d.ts +3 -0
- package/dist/Prebuilt/components/Chat/StickIndicator.d.ts +5 -0
- package/dist/Prebuilt/components/Chat/useUnreadCount.d.ts +4 -0
- package/dist/Prebuilt/components/ChatSettings.d.ts +2 -0
- package/dist/Prebuilt/components/Preview/PreviewForm.d.ts +2 -1
- package/dist/Prebuilt/components/SidePaneTabs.d.ts +0 -2
- package/dist/Prebuilt/components/TileMenu/TileMenuContent.d.ts +19 -0
- package/dist/Prebuilt/components/VirtualBackground/VBOption.d.ts +2 -1
- package/dist/Prebuilt/components/hooks/useChatBlacklist.d.ts +2 -1
- package/dist/Prebuilt/components/hooks/useSetPinnedMessages.d.ts +1 -1
- package/dist/Prebuilt/layouts/SidePane.d.ts +1 -3
- package/dist/{chunk-DKWT744J.js → chunk-W76VLHN6.js} +1690 -1268
- package/dist/chunk-W76VLHN6.js.map +7 -0
- package/dist/index.cjs.js +2104 -1639
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +452 -116
- package/dist/meta.esbuild.json +458 -122
- package/package.json +6 -6
- package/src/Prebuilt/common/constants.ts +1 -0
- package/src/Prebuilt/common/{hooks.js → hooks.ts} +4 -5
- package/src/Prebuilt/components/AppData/AppData.tsx +1 -0
- package/src/Prebuilt/components/AppData/useUISettings.js +2 -1
- package/src/Prebuilt/components/AuthToken.jsx +16 -8
- package/src/Prebuilt/components/Chat/{Navigation.tsx → ArrowNavigation.tsx} +3 -19
- package/src/Prebuilt/components/Chat/Chat.jsx +15 -44
- package/src/Prebuilt/components/Chat/ChatBody.jsx +114 -69
- package/src/Prebuilt/components/Chat/ChatFooter.tsx +128 -130
- package/src/Prebuilt/components/Chat/ChatSelector.tsx +225 -0
- package/src/Prebuilt/components/Chat/ChatSelectorContainer.tsx +158 -0
- package/src/Prebuilt/components/Chat/{ChatStates.jsx → ChatStates.tsx} +4 -4
- package/src/Prebuilt/components/Chat/PinnedMessage.tsx +59 -41
- package/src/Prebuilt/components/Chat/StickIndicator.tsx +24 -0
- package/src/Prebuilt/components/Chat/useUnreadCount.ts +19 -0
- package/src/Prebuilt/components/ChatSettings.tsx +68 -0
- package/src/Prebuilt/components/Footer/ParticipantList.jsx +2 -1
- package/src/Prebuilt/components/Header/ParticipantFilter.jsx +2 -1
- package/src/Prebuilt/components/Notifications/ChatNotifications.tsx +1 -1
- package/src/Prebuilt/components/Preview/PreviewForm.tsx +3 -0
- package/src/Prebuilt/components/Preview/PreviewJoin.tsx +2 -1
- package/src/Prebuilt/components/SidePaneTabs.tsx +48 -50
- package/src/Prebuilt/components/TileMenu/{TileMenuContent.jsx → TileMenuContent.tsx} +72 -41
- package/src/Prebuilt/components/VirtualBackground/VBCollection.tsx +2 -1
- package/src/Prebuilt/components/VirtualBackground/VBOption.tsx +3 -0
- package/src/Prebuilt/components/VirtualBackground/VBToggle.jsx +1 -1
- package/src/Prebuilt/components/hooks/useChatBlacklist.ts +8 -6
- package/src/Prebuilt/components/hooks/useSetPinnedMessages.ts +2 -7
- package/src/Prebuilt/layouts/SidePane.tsx +1 -5
- package/src/Prebuilt/provider/roomLayoutProvider/constants/index.ts +1 -0
- package/dist/chunk-DKWT744J.js.map +0 -7
- package/src/Prebuilt/components/Chat/ChatSelector.jsx +0 -161
- package/src/Prebuilt/components/Chat/ChatSelectorContainer.jsx +0 -81
- package/src/Prebuilt/components/Chat/useUnreadCount.js +0 -17
- /package/dist/{HLSView-HCZVI2RM.js.map → HLSView-3RARRZJO.js.map} +0 -0
@@ -22,7 +22,7 @@ import {
|
|
22
22
|
init_define_process_env,
|
23
23
|
styled,
|
24
24
|
useTheme
|
25
|
-
} from "./chunk-
|
25
|
+
} from "./chunk-W76VLHN6.js";
|
26
26
|
|
27
27
|
// src/Prebuilt/layouts/HLSView.jsx
|
28
28
|
init_define_process_env();
|
@@ -880,4 +880,4 @@ var HLSView_default = HLSView;
|
|
880
880
|
export {
|
881
881
|
HLSView_default as default
|
882
882
|
};
|
883
|
-
//# sourceMappingURL=HLSView-
|
883
|
+
//# sourceMappingURL=HLSView-3RARRZJO.js.map
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/**
|
2
|
+
* Hook to execute a callback when alone in room(after a certain 5d of time)
|
3
|
+
* @param {number} thresholdMs The threshold(in ms) after which the callback is executed,
|
4
|
+
* starting from the instant when alone in room.
|
5
|
+
* note: the cb is not called when another peer joins during this period.
|
6
|
+
*/
|
7
|
+
export declare const useWhenAloneInRoom: (thresholdMs?: number) => {
|
8
|
+
alone: boolean | undefined;
|
9
|
+
aloneForLong: boolean;
|
10
|
+
};
|
11
|
+
export declare const useFilteredRoles: () => string[];
|
12
|
+
export declare const useShowStreamingUI: () => boolean;
|
13
|
+
export declare const useParticipants: (params?: {
|
14
|
+
metadata?: {
|
15
|
+
isHandRaised?: boolean;
|
16
|
+
};
|
17
|
+
role?: string;
|
18
|
+
search?: string;
|
19
|
+
}) => {
|
20
|
+
participants: import("@100mslive/react-sdk").HMSPeer[];
|
21
|
+
isConnected: boolean | undefined;
|
22
|
+
peerCount: number;
|
23
|
+
rolesWithParticipants: (string | undefined)[];
|
24
|
+
};
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
export declare const
|
2
|
+
export declare const ArrowNavigation: ({ total, index, showPrevious, showNext, }: {
|
3
3
|
total: number;
|
4
4
|
index: number;
|
5
5
|
showPrevious: () => void;
|
6
6
|
showNext: () => void;
|
7
|
-
isMobile: boolean;
|
8
7
|
}) => React.JSX.Element | null;
|
@@ -1,7 +1,5 @@
|
|
1
1
|
import React, { ReactNode } from 'react';
|
2
|
-
export declare const ChatFooter: ({
|
3
|
-
|
4
|
-
peerId: string;
|
5
|
-
onSend: any;
|
2
|
+
export declare const ChatFooter: ({ onSend, children }: {
|
3
|
+
onSend: () => void;
|
6
4
|
children: ReactNode;
|
7
5
|
}) => React.JSX.Element;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
declare const PreviewForm: ({ name, onChange, onJoin, enableJoin, cannotPublishVideo, cannotPublishAudio, }: {
|
2
|
+
declare const PreviewForm: ({ name, disabled, onChange, onJoin, enableJoin, cannotPublishVideo, cannotPublishAudio, }: {
|
3
3
|
name: string;
|
4
|
+
disabled?: boolean | undefined;
|
4
5
|
onChange: (name: string) => void;
|
5
6
|
onJoin: () => void;
|
6
7
|
enableJoin: boolean;
|
@@ -1,7 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { ConferencingScreen } from '@100mslive/types-prebuilt';
|
3
2
|
export declare const SidePaneTabs: React.NamedExoticComponent<{
|
4
3
|
active: 'Participants | Chat';
|
5
|
-
screenType: keyof ConferencingScreen;
|
6
4
|
hideControls?: boolean | undefined;
|
7
5
|
}>;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { HMSTrackID } from '@100mslive/react-sdk';
|
3
|
+
export declare const isSameTile: ({ trackId, videoTrackID, audioTrackID, }: {
|
4
|
+
trackId: HMSTrackID;
|
5
|
+
videoTrackID: string;
|
6
|
+
audioTrackID: string;
|
7
|
+
}) => boolean | "";
|
8
|
+
export declare const TileMenuContent: ({ videoTrackID, audioTrackID, isLocal, isScreenshare, showSpotlight, showPinAction, peerID, canMinimise, closeSheetOnClick, openNameChangeModal, }: {
|
9
|
+
videoTrackID: string;
|
10
|
+
audioTrackID: string;
|
11
|
+
isLocal: boolean;
|
12
|
+
isScreenshare: boolean;
|
13
|
+
showSpotlight: boolean;
|
14
|
+
showPinAction: boolean;
|
15
|
+
peerID: string;
|
16
|
+
canMinimise: boolean;
|
17
|
+
closeSheetOnClick: () => void;
|
18
|
+
openNameChangeModal: () => void;
|
19
|
+
}) => false | React.JSX.Element;
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
export declare const VBOption: {
|
3
|
-
Root: ({ onClick, mediaURL, isActive, children, }: {
|
3
|
+
Root: ({ onClick, mediaURL, isActive, children, testid, }: {
|
4
4
|
onClick?: (() => Promise<void>) | undefined;
|
5
5
|
mediaURL?: string | undefined;
|
6
6
|
isActive: boolean;
|
7
7
|
children?: React.JSX.Element[] | undefined;
|
8
|
+
testid: string;
|
8
9
|
}) => React.JSX.Element;
|
9
10
|
Title: ({ children }: {
|
10
11
|
children?: string | undefined;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { SESSION_STORE_KEY } from '../../common/constants';
|
2
2
|
export declare const useChatBlacklist: (sessionStoreKey: SESSION_STORE_KEY.CHAT_MESSAGE_BLACKLIST | SESSION_STORE_KEY.CHAT_PEER_BLACKLIST) => {
|
3
|
-
blacklistItem: (
|
3
|
+
blacklistItem: (blacklistID: string) => Promise<void>;
|
4
|
+
blacklistedIDs: any;
|
4
5
|
};
|
@@ -11,6 +11,6 @@ declare type PinnedMessage = {
|
|
11
11
|
export declare const useSetPinnedMessages: () => {
|
12
12
|
setPinnedMessages: (pinnedMessages: PinnedMessage[] | undefined, message: HMSMessage, pinnedBy: string) => Promise<void>;
|
13
13
|
removePinnedMessage: (pinnedMessages: PinnedMessage[] | undefined, indexToRemove: number) => Promise<void>;
|
14
|
-
unpinBlacklistedMessages: (pinnedMessages: PinnedMessage[] | undefined,
|
14
|
+
unpinBlacklistedMessages: (pinnedMessages: PinnedMessage[] | undefined, blacklistedMessageIDSet: Set<string>) => Promise<void>;
|
15
15
|
};
|
16
16
|
export {};
|
@@ -1,8 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { ConferencingScreen } from '@100mslive/types-prebuilt';
|
3
2
|
import { TileCustomisationProps } from '../components/VideoLayouts/GridLayout';
|
4
|
-
declare const SidePane: ({
|
5
|
-
screenType: keyof ConferencingScreen;
|
3
|
+
declare const SidePane: ({ tileProps, hideControls, }: {
|
6
4
|
tileProps?: TileCustomisationProps | undefined;
|
7
5
|
hideControls?: boolean | undefined;
|
8
6
|
}) => React.JSX.Element | null;
|