@100mslive/roomkit-react 0.1.19-alpha.1 → 0.1.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/dist/{HLSView-UBVLOPNY.js → HLSView-4L4OAX2K.js} +2 -2
  2. package/dist/Prebuilt/App.d.ts +1 -0
  3. package/dist/Prebuilt/common/constants.d.ts +1 -1
  4. package/dist/Prebuilt/components/Chat/EmptyChat.d.ts +2 -0
  5. package/dist/Prebuilt/components/Polls/Voting/{Leaderboard.d.ts → LeaderboardSummary.d.ts} +1 -1
  6. package/dist/Prebuilt/components/Polls/Voting/StatisticBox.d.ts +5 -0
  7. package/dist/Prebuilt/components/VirtualBackground/VBCollection.d.ts +3 -4
  8. package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +14 -0
  9. package/dist/Prebuilt/components/VirtualBackground/VBPicker.d.ts +1 -1
  10. package/dist/Prebuilt/components/VirtualBackground/constants.d.ts +0 -2
  11. package/dist/{chunk-VU2CQFCB.js → chunk-NHPPOGUF.js} +1403 -1293
  12. package/dist/chunk-NHPPOGUF.js.map +7 -0
  13. package/dist/index.cjs.js +1749 -1609
  14. package/dist/index.cjs.js.map +4 -4
  15. package/dist/index.js +1 -1
  16. package/dist/meta.cjs.json +236 -94
  17. package/dist/meta.esbuild.json +243 -101
  18. package/package.json +6 -6
  19. package/src/Prebuilt/App.tsx +2 -1
  20. package/src/Prebuilt/AppStateContext.tsx +2 -0
  21. package/src/Prebuilt/common/constants.ts +1 -1
  22. package/src/Prebuilt/components/Chat/Chat.tsx +2 -2
  23. package/src/Prebuilt/components/Chat/ChatActions.tsx +3 -3
  24. package/src/Prebuilt/components/Chat/ChatBody.tsx +28 -46
  25. package/src/Prebuilt/components/Chat/EmptyChat.tsx +51 -0
  26. package/src/Prebuilt/components/Footer/PaginatedParticipants.tsx +1 -1
  27. package/src/Prebuilt/components/Footer/PollsToggle.tsx +7 -1
  28. package/src/Prebuilt/components/Notifications/Notifications.tsx +0 -29
  29. package/src/Prebuilt/components/Polls/Polls.tsx +2 -2
  30. package/src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx +2 -2
  31. package/src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx +162 -0
  32. package/src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx +2 -9
  33. package/src/Prebuilt/components/Polls/Voting/StatisticBox.tsx +15 -0
  34. package/src/Prebuilt/components/Polls/Voting/Voting.jsx +1 -17
  35. package/src/Prebuilt/components/TileMenu/TileMenuContent.tsx +1 -1
  36. package/src/Prebuilt/components/VirtualBackground/VBCollection.tsx +5 -11
  37. package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +77 -0
  38. package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +45 -79
  39. package/src/Prebuilt/components/VirtualBackground/constants.ts +0 -4
  40. package/src/Prebuilt/layouts/SidePane.tsx +6 -1
  41. package/src/Theme/stitches.config.ts +2 -10
  42. package/dist/chunk-VU2CQFCB.js.map +0 -7
  43. package/src/Prebuilt/components/Polls/Voting/Leaderboard.tsx +0 -123
  44. package/src/Prebuilt/components/Polls/Voting/PollResultSummary.jsx +0 -125
  45. /package/dist/{HLSView-UBVLOPNY.js.map → HLSView-4L4OAX2K.js.map} +0 -0
@@ -23,7 +23,7 @@ import {
23
23
  styled,
24
24
  usePollViewToggle,
25
25
  useTheme
26
- } from "./chunk-VU2CQFCB.js";
26
+ } from "./chunk-NHPPOGUF.js";
27
27
 
28
28
  // src/Prebuilt/layouts/HLSView.jsx
29
29
  init_define_process_env();
@@ -969,4 +969,4 @@ var HLSView_default = HLSView;
969
969
  export {
970
970
  HLSView_default as default
971
971
  };
972
- //# sourceMappingURL=HLSView-UBVLOPNY.js.map
972
+ //# sourceMappingURL=HLSView-4L4OAX2K.js.map
@@ -6,6 +6,7 @@ export declare type HMSPrebuiltOptions = {
6
6
  userName?: string;
7
7
  userId?: string;
8
8
  endpoints?: object;
9
+ effectsSDKKey?: string;
9
10
  };
10
11
  export declare type HMSPrebuiltProps = {
11
12
  roomCode?: string;
@@ -108,4 +108,4 @@ export declare enum QUESTION_TYPE {
108
108
  MULTIPLE_CHOICE = "multiple-choice"
109
109
  }
110
110
  export declare const ROLE_CHANGE_DECLINED = "role_change_declined";
111
- export declare const DEFAULT_PORTAL_CONTAINER = "#prebuilt-container";
111
+ export declare const DEFAULT_PORTAL_CONTAINER = ".prebuilt-container";
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const EmptyChat: () => React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- export declare const Leaderboard: ({ pollID }: {
2
+ export declare const LeaderboardSummary: ({ pollID }: {
3
3
  pollID: string;
4
4
  }) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const StatisticBox: ({ title, value }: {
3
+ title: string;
4
+ value: string | number;
5
+ }) => React.JSX.Element;
@@ -1,14 +1,13 @@
1
1
  import React from 'react';
2
2
  import { HMSVirtualBackgroundTypes } from '@100mslive/hms-virtual-background';
3
- export declare const VBCollection: ({ options, title, activeBackgroundType, activeBackground, }: {
3
+ export declare const VBCollection: ({ options, title, activeBackground, }: {
4
4
  options: {
5
5
  title?: string | undefined;
6
6
  icon?: React.JSX.Element | undefined;
7
7
  onClick?: (() => Promise<void>) | undefined;
8
8
  mediaURL?: string | undefined;
9
- type: string;
9
+ value: string | HMSVirtualBackgroundTypes;
10
10
  }[];
11
11
  title: string;
12
- activeBackground: HTMLImageElement | string;
13
- activeBackgroundType: HMSVirtualBackgroundTypes;
12
+ activeBackground: string;
14
13
  }) => React.JSX.Element | null;
@@ -0,0 +1,14 @@
1
+ import { HMSEffectsPlugin, HMSVBPlugin } from '@100mslive/hms-virtual-background';
2
+ export declare class VBPlugin {
3
+ private hmsPlugin?;
4
+ private effectsPlugin?;
5
+ initialisePlugin: (effectsSDKKey?: string) => void;
6
+ getBackground: () => any;
7
+ getVBObject: () => HMSVBPlugin | HMSEffectsPlugin | undefined;
8
+ getName: () => string | undefined;
9
+ setBlur: (blurPower: number) => Promise<void>;
10
+ setBackground: (mediaURL: string) => Promise<void>;
11
+ removeEffects: () => Promise<void>;
12
+ reset: () => void;
13
+ }
14
+ export declare const VBHandler: VBPlugin;
@@ -2,4 +2,4 @@ import React from 'react';
2
2
  import { VirtualBackgroundMedia } from '@100mslive/types-prebuilt/elements/virtual_background';
3
3
  export declare const VBPicker: ({ backgroundMedia }: {
4
4
  backgroundMedia: VirtualBackgroundMedia[];
5
- }) => React.JSX.Element | null;
5
+ }) => React.JSX.Element;
@@ -1,3 +1 @@
1
- import { HMSVBPlugin } from '@100mslive/hms-virtual-background';
2
1
  export declare const defaultMedia: string[];
3
- export declare const vbPlugin: HMSVBPlugin;