@100mslive/roomkit-react 0.1.9 → 0.1.10

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 (54) hide show
  1. package/dist/{HLSView-VGJ2XUDT.js → HLSView-7WXNI2WP.js} +14 -10
  2. package/dist/HLSView-7WXNI2WP.js.map +7 -0
  3. package/dist/Modal/Dialog.d.ts +878 -9
  4. package/dist/Modal/DialogContent.d.ts +2 -2
  5. package/dist/Prebuilt/components/Leave/DesktopLeaveRoom.d.ts +4 -4
  6. package/dist/Prebuilt/components/Leave/EndSessionContent.d.ts +3 -3
  7. package/dist/Prebuilt/components/Leave/LeaveSessionContent.d.ts +3 -3
  8. package/dist/Prebuilt/components/Leave/MwebLeaveRoom.d.ts +4 -4
  9. package/dist/Prebuilt/components/VirtualBackground/VBCollection.d.ts +13 -0
  10. package/dist/Prebuilt/components/VirtualBackground/VBOption.d.ts +15 -0
  11. package/dist/Prebuilt/components/VirtualBackground/constants.d.ts +9 -0
  12. package/dist/Prebuilt/layouts/SidePane.d.ts +2 -2
  13. package/dist/{chunk-EDGWHFCM.js → chunk-N5HPVHTK.js} +6091 -4897
  14. package/dist/chunk-N5HPVHTK.js.map +7 -0
  15. package/dist/index.cjs.js +5217 -5060
  16. package/dist/index.cjs.js.map +4 -4
  17. package/dist/index.js +11 -13
  18. package/dist/meta.cjs.json +1567 -1385
  19. package/dist/meta.esbuild.json +1657 -1551
  20. package/package.json +6 -6
  21. package/src/Modal/Dialog.tsx +3 -11
  22. package/src/Modal/DialogContent.tsx +4 -4
  23. package/src/Prebuilt/common/constants.js +3 -0
  24. package/src/Prebuilt/components/AppData/AppData.jsx +4 -11
  25. package/src/Prebuilt/components/AppData/useSidepane.js +1 -1
  26. package/src/Prebuilt/components/Connection/ConnectionIndicator.tsx +2 -2
  27. package/src/Prebuilt/components/Footer/Footer.tsx +4 -8
  28. package/src/Prebuilt/components/Footer/ParticipantList.jsx +1 -6
  29. package/src/Prebuilt/components/Header/Header.tsx +2 -2
  30. package/src/Prebuilt/components/Header/common.jsx +46 -23
  31. package/src/Prebuilt/components/Leave/DesktopLeaveRoom.tsx +5 -5
  32. package/src/Prebuilt/components/Leave/EndSessionContent.tsx +2 -2
  33. package/src/Prebuilt/components/Leave/LeaveRoom.tsx +6 -5
  34. package/src/Prebuilt/components/Leave/LeaveSessionContent.tsx +2 -2
  35. package/src/Prebuilt/components/Leave/MwebLeaveRoom.tsx +3 -3
  36. package/src/Prebuilt/components/Notifications/HLSFailureModal.tsx +1 -4
  37. package/src/Prebuilt/components/Preview/PreviewForm.tsx +7 -2
  38. package/src/Prebuilt/components/Preview/PreviewJoin.tsx +62 -57
  39. package/src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx +2 -3
  40. package/src/Prebuilt/components/Settings/DeviceSettings.jsx +11 -0
  41. package/src/Prebuilt/components/VirtualBackground/VBCollection.tsx +50 -0
  42. package/src/Prebuilt/components/VirtualBackground/VBOption.tsx +50 -0
  43. package/src/Prebuilt/components/VirtualBackground/VBPicker.jsx +165 -0
  44. package/src/Prebuilt/components/VirtualBackground/VBToggle.jsx +25 -0
  45. package/src/Prebuilt/components/VirtualBackground/constants.ts +26 -0
  46. package/src/Prebuilt/components/hooks/useAutoStartStreaming.tsx +4 -7
  47. package/src/Prebuilt/layouts/HLSView.jsx +7 -1
  48. package/src/Prebuilt/layouts/SidePane.tsx +21 -5
  49. package/dist/HLSView-VGJ2XUDT.js.map +0 -7
  50. package/dist/VirtualBackground-2VZVBRIC.js +0 -175
  51. package/dist/VirtualBackground-2VZVBRIC.js.map +0 -7
  52. package/dist/chunk-EDGWHFCM.js.map +0 -7
  53. package/dist/chunk-SONHO3VM.js +0 -962
  54. package/dist/chunk-SONHO3VM.js.map +0 -7
@@ -879,7 +879,7 @@ export declare const StyledDialogTrigger: import("@stitches/react/types/styled-c
879
879
  };
880
880
  };
881
881
  }>>;
882
- export declare const StyledDialogOverlay: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>>, {}, {
882
+ export declare const CustomDialogOverlay: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>>, {}, {
883
883
  allowMotion: string;
884
884
  sm: string;
885
885
  md: string;
@@ -1757,7 +1757,7 @@ export declare const StyledDialogPortal: import("@stitches/react/types/styled-co
1757
1757
  };
1758
1758
  };
1759
1759
  }>>;
1760
- export declare const StyledDialogContent: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>>, {}, {
1760
+ export declare const CustomDialogContent: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>>, {}, {
1761
1761
  allowMotion: string;
1762
1762
  sm: string;
1763
1763
  md: string;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { ConferencingScreen } from '@100mslive/types-prebuilt';
3
3
  export declare const DesktopLeaveRoom: ({ leaveRoom, screenType, endRoom, }: {
4
- leaveRoom: (args: {
5
- endstream: boolean;
6
- }) => void;
4
+ leaveRoom: (options?: {
5
+ endStream?: boolean;
6
+ }) => Promise<void>;
7
7
  screenType: keyof ConferencingScreen;
8
- endRoom: () => void;
8
+ endRoom: () => Promise<void>;
9
9
  }) => React.JSX.Element | null;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  export declare const EndSessionContent: ({ setShowEndStreamAlert, leaveRoom, isModal, isStreamingOn, }: {
3
3
  setShowEndStreamAlert: (value: boolean) => void;
4
- leaveRoom: (args: {
5
- endstream: boolean;
6
- }) => void;
4
+ leaveRoom: (options?: {
5
+ endStream?: boolean;
6
+ }) => Promise<void>;
7
7
  isModal?: boolean | undefined;
8
8
  isStreamingOn: boolean;
9
9
  }) => React.JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  export declare const LeaveSessionContent: ({ setShowLeaveRoomAlert, leaveRoom, isModal, }: {
3
3
  setShowLeaveRoomAlert: (value: boolean) => void;
4
- leaveRoom: (args: {
5
- endstream: boolean;
6
- }) => void;
4
+ leaveRoom: (options?: {
5
+ endStream?: boolean;
6
+ }) => Promise<void>;
7
7
  isModal?: boolean | undefined;
8
8
  }) => React.JSX.Element;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { ConferencingScreen } from '@100mslive/types-prebuilt';
3
3
  export declare const MwebLeaveRoom: ({ leaveRoom, screenType, endRoom, }: {
4
- leaveRoom: (args: {
5
- endstream: boolean;
6
- }) => void;
4
+ leaveRoom: (options?: {
5
+ endStream?: boolean;
6
+ }) => Promise<void>;
7
7
  screenType: keyof ConferencingScreen;
8
- endRoom: () => void;
8
+ endRoom: () => Promise<void>;
9
9
  }) => React.JSX.Element | null;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export declare const VBCollection: ({ options, title, activeBackgroundType, activeBackground, }: {
3
+ options: {
4
+ title?: string | undefined;
5
+ icon?: React.JSX.Element | undefined;
6
+ onClick?: (() => Promise<void>) | undefined;
7
+ mediaURL?: string | undefined;
8
+ type: string;
9
+ }[];
10
+ title: string;
11
+ activeBackground: HTMLImageElement | string;
12
+ activeBackgroundType: string;
13
+ }) => React.JSX.Element | null;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ export declare const VBOption: {
3
+ Root: ({ onClick, mediaURL, isActive, children, }: {
4
+ onClick?: (() => Promise<void>) | undefined;
5
+ mediaURL?: string | undefined;
6
+ isActive: boolean;
7
+ children?: React.JSX.Element[] | undefined;
8
+ }) => React.JSX.Element;
9
+ Title: ({ children }: {
10
+ children?: string | undefined;
11
+ }) => React.JSX.Element | null;
12
+ Icon: ({ children }: {
13
+ children?: React.JSX.Element | undefined;
14
+ }) => React.JSX.Element | null;
15
+ };
@@ -0,0 +1,9 @@
1
+ import { HMSVBPlugin } from '@100mslive/hms-virtual-background';
2
+ export declare const VB_EFFECT: {
3
+ BLUR: string;
4
+ BEAUTIFY: string;
5
+ NONE: string;
6
+ MEDIA: string;
7
+ };
8
+ export declare const defaultMedia: string[];
9
+ export declare const vbPlugin: HMSVBPlugin;
@@ -3,7 +3,7 @@ import { ConferencingScreen } from '@100mslive/types-prebuilt';
3
3
  import { TileCustomisationProps } from '../components/VideoLayouts/GridLayout';
4
4
  declare const SidePane: ({ screenType, tileProps, hideControls, }: {
5
5
  screenType: keyof ConferencingScreen;
6
- tileProps: TileCustomisationProps;
7
- hideControls: boolean;
6
+ tileProps?: TileCustomisationProps | undefined;
7
+ hideControls?: boolean | undefined;
8
8
  }) => React.JSX.Element | null;
9
9
  export default SidePane;