@100mslive/roomkit-react 0.1.19-alpha.1 → 0.1.19-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.
Files changed (42) hide show
  1. package/dist/{HLSView-UBVLOPNY.js → HLSView-7X5BVAZE.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 +13 -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-H3B4ARYV.js} +1396 -1294
  12. package/dist/chunk-H3B4ARYV.js.map +7 -0
  13. package/dist/index.cjs.js +1741 -1610
  14. package/dist/index.cjs.js.map +4 -4
  15. package/dist/index.js +1 -1
  16. package/dist/meta.cjs.json +227 -90
  17. package/dist/meta.esbuild.json +234 -97
  18. package/package.json +6 -6
  19. package/src/Prebuilt/App.tsx +2 -1
  20. package/src/Prebuilt/common/constants.ts +1 -1
  21. package/src/Prebuilt/components/Chat/ChatActions.tsx +3 -3
  22. package/src/Prebuilt/components/Chat/ChatBody.tsx +28 -46
  23. package/src/Prebuilt/components/Chat/EmptyChat.tsx +51 -0
  24. package/src/Prebuilt/components/Footer/PollsToggle.tsx +7 -1
  25. package/src/Prebuilt/components/Notifications/Notifications.tsx +0 -29
  26. package/src/Prebuilt/components/Polls/Polls.tsx +2 -2
  27. package/src/Prebuilt/components/Polls/Voting/LeaderboardEntry.tsx +2 -2
  28. package/src/Prebuilt/components/Polls/Voting/LeaderboardSummary.tsx +162 -0
  29. package/src/Prebuilt/components/Polls/Voting/PeerParticipationSummary.tsx +2 -9
  30. package/src/Prebuilt/components/Polls/Voting/StatisticBox.tsx +15 -0
  31. package/src/Prebuilt/components/Polls/Voting/Voting.jsx +1 -17
  32. package/src/Prebuilt/components/TileMenu/TileMenuContent.tsx +1 -1
  33. package/src/Prebuilt/components/VirtualBackground/VBCollection.tsx +5 -11
  34. package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +72 -0
  35. package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +44 -81
  36. package/src/Prebuilt/components/VirtualBackground/constants.ts +0 -4
  37. package/src/Prebuilt/layouts/SidePane.tsx +6 -1
  38. package/src/Theme/stitches.config.ts +2 -10
  39. package/dist/chunk-VU2CQFCB.js.map +0 -7
  40. package/src/Prebuilt/components/Polls/Voting/Leaderboard.tsx +0 -123
  41. package/src/Prebuilt/components/Polls/Voting/PollResultSummary.jsx +0 -125
  42. /package/dist/{HLSView-UBVLOPNY.js.map → HLSView-7X5BVAZE.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-H3B4ARYV.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-7X5BVAZE.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,13 @@
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
+ }
13
+ 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;