@100mslive/roomkit-react 0.3.10-alpha.9 → 0.3.11-alpha.0

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.
Files changed (53) hide show
  1. package/dist/{HLSView-UIAB54GS.js → HLSView-HJ44JWJK.js} +18 -3
  2. package/dist/HLSView-HJ44JWJK.js.map +7 -0
  3. package/dist/{HLSView-5TZVXD62.css → HLSView-IBWU4R7W.css} +16 -3
  4. package/dist/{HLSView-5TZVXD62.css.map → HLSView-IBWU4R7W.css.map} +3 -3
  5. package/dist/Prebuilt/common/constants.d.ts +0 -2
  6. package/dist/Prebuilt/common/hooks.d.ts +8 -1
  7. package/dist/Prebuilt/components/MoreSettings/CaptionContent.d.ts +5 -0
  8. package/dist/Prebuilt/components/MoreSettings/CaptionModal.d.ts +4 -0
  9. package/dist/Prebuilt/components/Polls/Voting/StandardVoting.d.ts +4 -2
  10. package/dist/Prebuilt/components/Polls/Voting/TimedVoting.d.ts +4 -2
  11. package/dist/Prebuilt/layouts/WaitingView.d.ts +6 -0
  12. package/dist/{chunk-GQGXO6NF.js → chunk-WDZ4KRYM.js} +2148 -1858
  13. package/dist/chunk-WDZ4KRYM.js.map +7 -0
  14. package/dist/index.cjs.css +15 -2
  15. package/dist/index.cjs.css.map +3 -3
  16. package/dist/index.cjs.js +2790 -2484
  17. package/dist/index.cjs.js.map +4 -4
  18. package/dist/index.css +15 -2
  19. package/dist/index.css.map +3 -3
  20. package/dist/index.js +1 -1
  21. package/dist/meta.cjs.json +296 -118
  22. package/dist/meta.esbuild.json +318 -139
  23. package/package.json +7 -7
  24. package/src/Prebuilt/common/constants.ts +0 -2
  25. package/src/Prebuilt/common/hooks.ts +34 -1
  26. package/src/Prebuilt/common/utils.js +11 -11
  27. package/src/Prebuilt/components/AppData/AppData.tsx +2 -4
  28. package/src/Prebuilt/components/AppData/useUISettings.js +0 -3
  29. package/src/Prebuilt/components/Chat/Chat.tsx +26 -6
  30. package/src/Prebuilt/components/Chat/ChatFooter.tsx +18 -2
  31. package/src/Prebuilt/components/Chat/ChatStates.tsx +1 -1
  32. package/src/Prebuilt/components/Footer/ChatToggle.tsx +5 -1
  33. package/src/Prebuilt/components/Footer/ParticipantList.tsx +4 -2
  34. package/src/Prebuilt/components/Footer/PollsToggle.tsx +1 -1
  35. package/src/Prebuilt/components/MoreSettings/CaptionContent.tsx +132 -0
  36. package/src/Prebuilt/components/MoreSettings/CaptionModal.tsx +37 -0
  37. package/src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx +40 -3
  38. package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +19 -19
  39. package/src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx +2 -15
  40. package/src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx +71 -66
  41. package/src/Prebuilt/components/Polls/Voting/QuestionCard.jsx +39 -40
  42. package/src/Prebuilt/components/Polls/Voting/StandardVoting.tsx +12 -6
  43. package/src/Prebuilt/components/Polls/Voting/TimedVoting.tsx +21 -10
  44. package/src/Prebuilt/components/Polls/Voting/Voting.tsx +44 -2
  45. package/src/Prebuilt/components/VideoLayouts/EqualProminence.tsx +13 -17
  46. package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +17 -0
  47. package/src/Prebuilt/layouts/HLSView.jsx +14 -11
  48. package/src/Prebuilt/layouts/VideoStreamingSection.tsx +43 -9
  49. package/src/Prebuilt/layouts/WaitingView.tsx +52 -0
  50. package/dist/HLSView-UIAB54GS.js.map +0 -7
  51. package/dist/chunk-GQGXO6NF.js.map +0 -7
  52. package/src/Prebuilt/layouts/NonPublisherView.jsx +0 -51
  53. package/src/Prebuilt/layouts/WaitingView.jsx +0 -51
@@ -1,4 +1,3 @@
1
- export declare const DEFAULT_WAITING_VIEWER_ROLE = "waiting-room";
2
1
  export declare const QUERY_PARAM_SKIP_PREVIEW = "skip_preview";
3
2
  export declare const QUERY_PARAM_SKIP_PREVIEW_HEADFUL = "skip_preview_headful";
4
3
  export declare const QUERY_PARAM_NAME = "name";
@@ -26,7 +25,6 @@ export declare const APP_DATA: {
26
25
  appConfig: string;
27
26
  sidePane: string;
28
27
  hlsStats: string;
29
- waitingViewerRole: string;
30
28
  subscribedNotifications: string;
31
29
  logo: string;
32
30
  hlsStarted: string;
@@ -1,4 +1,5 @@
1
1
  import { HMSHLSPlayer } from '@100mslive/hls-player';
2
+ import { HMSPeer } from '@100mslive/react-sdk';
2
3
  /**
3
4
  * Hook to execute a callback when alone in room(after a certain 5d of time)
4
5
  * @param {number} thresholdMs The threshold(in ms) after which the callback is executed,
@@ -19,7 +20,7 @@ export declare const useParticipants: (params?: {
19
20
  role?: string;
20
21
  search?: string;
21
22
  }) => {
22
- participants: import("@100mslive/react-sdk").HMSPeer[];
23
+ participants: HMSPeer[];
23
24
  isConnected: boolean | undefined;
24
25
  peerCount: number;
25
26
  rolesWithParticipants: (string | undefined)[];
@@ -38,3 +39,9 @@ export declare const useRecordingHandler: () => {
38
39
  isRecordingLoading: boolean;
39
40
  };
40
41
  export declare function getResolution(recordingResolution: RTMPRecordingResolution | null): RTMPRecordingResolution | undefined;
42
+ export interface WaitingRoomInfo {
43
+ isNotAllowedToPublish: boolean;
44
+ isScreenOnlyPublishParams: boolean;
45
+ hasSubscribedRolePublishing: boolean;
46
+ }
47
+ export declare function useWaitingRoomInfo(): WaitingRoomInfo;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const CaptionContent: ({ isMobile, onExit }: {
3
+ isMobile: boolean;
4
+ onExit: () => void;
5
+ }) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const CaptionModal: ({ onOpenChange }: {
3
+ onOpenChange: (value: boolean) => void;
4
+ }) => React.JSX.Element;
@@ -1,5 +1,7 @@
1
- import React from 'react';
1
+ import React, { Dispatch, SetStateAction } from 'react';
2
2
  import { HMSPoll } from '@100mslive/react-sdk';
3
- export declare const StandardView: ({ poll }: {
3
+ export declare const StandardView: ({ poll, localPeerResponses, updateSavedResponses, }: {
4
4
  poll: HMSPoll;
5
+ localPeerResponses: Record<number, number | number[] | undefined>;
6
+ updateSavedResponses: Dispatch<SetStateAction<Record<any, any>>>;
5
7
  }) => React.JSX.Element | null;
@@ -1,5 +1,7 @@
1
- import React from 'react';
1
+ import React, { Dispatch, SetStateAction } from 'react';
2
2
  import { HMSPoll } from '@100mslive/react-sdk';
3
- export declare const TimedView: ({ poll }: {
3
+ export declare const TimedView: ({ poll, localPeerResponses, updateSavedResponses, }: {
4
4
  poll: HMSPoll;
5
+ localPeerResponses?: Record<number, number | number[] | undefined> | undefined;
6
+ updateSavedResponses: Dispatch<SetStateAction<Record<any, any>>>;
5
7
  }) => React.JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare const WaitingView: React.MemoExoticComponent<({ icon, title, subtitle }: {
3
+ icon: React.ReactNode;
4
+ title: string;
5
+ subtitle: string;
6
+ }) => React.JSX.Element>;