@100mslive/roomkit-react 0.3.19-alpha.1 → 0.3.19-alpha.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/dist/{HLSView-MI7WHLIB.css → HLSView-SQVMLXDB.css} +67 -19
  2. package/dist/{HLSView-MI7WHLIB.css.map → HLSView-SQVMLXDB.css.map} +2 -2
  3. package/dist/{HLSView-6KUW45BA.js → HLSView-YHWO3IWB.js} +43 -43
  4. package/dist/{HLSView-6KUW45BA.js.map → HLSView-YHWO3IWB.js.map} +1 -1
  5. package/dist/Modal/Dialog.d.ts +3 -1
  6. package/dist/Prebuilt/components/EndCallFeedback/Feedback.d.ts +2 -0
  7. package/dist/Prebuilt/components/EndCallFeedback/FeedbackForm.d.ts +28 -0
  8. package/dist/Prebuilt/components/EndCallFeedback/ThankyouView.d.ts +2 -0
  9. package/dist/Prebuilt/components/VirtualBackground/VBCollection.d.ts +1 -1
  10. package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +5 -6
  11. package/dist/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.d.ts +1 -0
  12. package/dist/{chunk-NC3PKPDD.js → chunk-2OV5LOYE.js} +1669 -1168
  13. package/dist/chunk-2OV5LOYE.js.map +7 -0
  14. package/dist/index.cjs.css +66 -18
  15. package/dist/index.cjs.css.map +2 -2
  16. package/dist/index.cjs.js +1754 -1229
  17. package/dist/index.cjs.js.map +4 -4
  18. package/dist/index.css +66 -18
  19. package/dist/index.css.map +2 -2
  20. package/dist/index.js +1 -1
  21. package/dist/meta.cjs.json +402 -150
  22. package/dist/meta.esbuild.json +421 -169
  23. package/package.json +8 -8
  24. package/src/Modal/Dialog.tsx +13 -2
  25. package/src/Prebuilt/App.tsx +3 -0
  26. package/src/Prebuilt/AppStateContext.tsx +1 -2
  27. package/src/Prebuilt/Prebuilt.stories.tsx +1 -0
  28. package/src/Prebuilt/common/PeersSorter.ts +2 -1
  29. package/src/Prebuilt/components/EndCallFeedback/Feedback.tsx +70 -0
  30. package/src/Prebuilt/components/EndCallFeedback/FeedbackForm.tsx +371 -0
  31. package/src/Prebuilt/components/EndCallFeedback/ThankyouView.tsx +44 -0
  32. package/src/Prebuilt/components/LeaveScreen.tsx +2 -0
  33. package/src/Prebuilt/components/VideoLayouts/RoleProminence.tsx +2 -9
  34. package/src/Prebuilt/components/VirtualBackground/VBCollection.tsx +3 -1
  35. package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +14 -4
  36. package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +46 -31
  37. package/src/Prebuilt/components/VirtualBackground/VBToggle.tsx +2 -1
  38. package/src/Prebuilt/plugins/CaptionsViewer.tsx +4 -1
  39. package/src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts +1 -0
  40. package/src/Video/Video.tsx +1 -1
  41. package/dist/chunk-NC3PKPDD.js.map +0 -7
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { Rating } from '@100mslive/types-prebuilt/elements/feedback';
3
+ export declare const FEEBACK_INDEX: {
4
+ THANK_YOU: number;
5
+ INIT: number;
6
+ };
7
+ export declare const FeedbackModal: ({ ratings, index, setIndex, }: {
8
+ ratings: Rating[];
9
+ index: number;
10
+ setIndex: (index: number) => void;
11
+ }) => React.JSX.Element;
12
+ export declare const FeedbackContent: ({ ratings, indexSelected, setIndex, }: {
13
+ ratings: Rating[];
14
+ indexSelected: number;
15
+ setIndex: (index: number) => void;
16
+ }) => React.JSX.Element;
17
+ export declare const FeedbackHeader: ({ onEmojiClicked, ratings, indexSelected, }: {
18
+ onEmojiClicked: (index: number) => void;
19
+ ratings: Rating[];
20
+ indexSelected?: number | undefined;
21
+ }) => React.JSX.Element;
22
+ export declare const FeedbackForm: ({ rating, comment, setComment, selectedReasons, handleCheckedChange, }: {
23
+ rating: Rating;
24
+ comment: string;
25
+ setComment: (value: string) => void;
26
+ selectedReasons: Set<number>;
27
+ handleCheckedChange: (checked: string | boolean, index: number) => void;
28
+ }) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ThankyouView: () => React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { HMSVirtualBackgroundTypes } from '@100mslive/hms-virtual-background';
2
+ import { HMSVirtualBackgroundTypes } from '@100mslive/hms-virtual-background/hmsvbplugin';
3
3
  export declare const VBCollection: ({ options, title, activeBackground, }: {
4
4
  options: {
5
5
  title?: string | undefined;
@@ -1,16 +1,15 @@
1
- import { HMSEffectsPlugin, HMSVBPlugin } from '@100mslive/hms-virtual-background';
2
1
  export declare class VBPlugin {
3
2
  private hmsPlugin?;
4
3
  private effectsPlugin?;
5
- initialisePlugin: (effectsSDKKey?: string, onInit?: () => void) => void;
4
+ initialisePlugin: (effectsSDKKey?: string, onInit?: () => void) => Promise<void>;
6
5
  getBackground: () => any;
7
- getBlurAmount: () => number;
8
- getVBObject: () => HMSVBPlugin | HMSEffectsPlugin | undefined;
9
- getName: () => string | undefined;
6
+ getBlurAmount: () => any;
7
+ getVBObject: () => any;
8
+ getName: () => any;
10
9
  setBlur: (blurPower: number) => Promise<void>;
11
10
  setBackground: (mediaURL: string) => Promise<void>;
12
11
  setPreset: (preset: 'quality' | 'balanced') => Promise<void>;
13
- getPreset: () => "" | "quality" | "balanced";
12
+ getPreset: () => any;
14
13
  removeEffects: () => Promise<void>;
15
14
  reset: () => void;
16
15
  }
@@ -15,6 +15,7 @@ export declare function useRoomLayoutConferencingScreen(): {
15
15
  };
16
16
  export declare function useRoomLayoutLeaveScreen(): {
17
17
  isLeaveScreenEnabled: boolean;
18
+ feedback: import("@100mslive/types-prebuilt/elements/feedback").Feedback | undefined;
18
19
  };
19
20
  export declare function useRoomLayoutHeader(): {
20
21
  title: string;