@100mslive/roomkit-react 0.3.8-alpha.0 → 0.3.8-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 (40) hide show
  1. package/dist/{HLSView-CTZXD762.js → HLSView-XZDT3RRC.js} +2 -2
  2. package/dist/Prebuilt/common/constants.d.ts +2 -0
  3. package/dist/Prebuilt/common/hooks.d.ts +10 -0
  4. package/dist/Prebuilt/components/CaptionIcon.d.ts +2 -0
  5. package/dist/Prebuilt/components/FullPageProgress.d.ts +8 -0
  6. package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +3 -3
  7. package/dist/Prebuilt/plugins/CaptionsViewer.d.ts +2 -0
  8. package/dist/Text/Text.d.ts +1 -1
  9. package/dist/{chunk-NDLMRKFR.js → chunk-SQPIZNW2.js} +2367 -2128
  10. package/dist/chunk-SQPIZNW2.js.map +7 -0
  11. package/dist/index.cjs.js +3254 -2998
  12. package/dist/index.cjs.js.map +4 -4
  13. package/dist/index.js +1 -1
  14. package/dist/meta.cjs.json +244 -86
  15. package/dist/meta.esbuild.json +250 -92
  16. package/package.json +6 -6
  17. package/src/Prebuilt/common/constants.ts +2 -0
  18. package/src/Prebuilt/common/hooks.ts +72 -1
  19. package/src/Prebuilt/components/AppData/AppData.tsx +2 -0
  20. package/src/Prebuilt/components/AppData/useUISettings.js +10 -0
  21. package/src/Prebuilt/components/CaptionIcon.tsx +27 -0
  22. package/src/Prebuilt/components/ConferenceScreen.tsx +34 -4
  23. package/src/Prebuilt/components/Footer/Footer.tsx +2 -0
  24. package/src/Prebuilt/components/Footer/RoleAccordion.tsx +1 -1
  25. package/src/Prebuilt/components/{FullPageProgress.jsx → FullPageProgress.tsx} +10 -1
  26. package/src/Prebuilt/components/Header/StreamActions.tsx +3 -25
  27. package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +25 -26
  28. package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +1 -11
  29. package/src/Prebuilt/components/Preview/PreviewJoin.tsx +4 -9
  30. package/src/Prebuilt/components/Preview/PreviewScreen.tsx +0 -3
  31. package/src/Prebuilt/components/Settings/StartRecording.jsx +4 -37
  32. package/src/Prebuilt/components/Toast/ToastConfig.jsx +0 -22
  33. package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +3 -3
  34. package/src/Prebuilt/components/VirtualBackground/VBOption.tsx +3 -1
  35. package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +23 -7
  36. package/src/Prebuilt/components/VirtualBackground/VBToggle.tsx +5 -3
  37. package/src/Prebuilt/layouts/VideoStreamingSection.tsx +0 -3
  38. package/src/Prebuilt/plugins/CaptionsViewer.tsx +191 -0
  39. package/dist/chunk-NDLMRKFR.js.map +0 -7
  40. /package/dist/{HLSView-CTZXD762.js.map → HLSView-XZDT3RRC.js.map} +0 -0
@@ -38,7 +38,7 @@ import {
38
38
  useRoomLayoutHeader,
39
39
  useSidepaneToggle,
40
40
  useTheme
41
- } from "./chunk-NDLMRKFR.js";
41
+ } from "./chunk-SQPIZNW2.js";
42
42
 
43
43
  // src/Prebuilt/layouts/HLSView.jsx
44
44
  init_define_process_env();
@@ -1618,4 +1618,4 @@ var HLSView_default = HLSView;
1618
1618
  export {
1619
1619
  HLSView_default as default
1620
1620
  };
1621
- //# sourceMappingURL=HLSView-CTZXD762.js.map
1621
+ //# sourceMappingURL=HLSView-XZDT3RRC.js.map
@@ -43,6 +43,8 @@ export declare const APP_DATA: {
43
43
  pollState: string;
44
44
  background: string;
45
45
  sheet: string;
46
+ caption: string;
47
+ loadingEffects: string;
46
48
  };
47
49
  export declare const UI_SETTINGS: {
48
50
  isAudioOnly: string;
@@ -28,3 +28,13 @@ export declare const useIsLandscape: () => boolean;
28
28
  export declare const useLandscapeHLSStream: () => boolean;
29
29
  export declare const useMobileHLSStream: () => boolean;
30
30
  export declare const useKeyboardHandler: (isPaused: boolean, hlsPlayer: HMSHLSPlayer) => (event: KeyboardEvent) => Promise<void>;
31
+ export interface RTMPRecordingResolution {
32
+ width: number;
33
+ height: number;
34
+ }
35
+ export declare const useRecordingHandler: () => {
36
+ recordingStarted: any;
37
+ startRecording: (resolution?: RTMPRecordingResolution | null) => Promise<void>;
38
+ isRecordingLoading: boolean;
39
+ };
40
+ export declare function getResolution(recordingResolution: RTMPRecordingResolution | null): RTMPRecordingResolution | undefined;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CaptionIcon: () => React.JSX.Element | null;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { CSS } from '../../Theme';
3
+ declare const FullPageProgress: ({ loaderColor, text, css, }: {
4
+ loaderColor?: string | undefined;
5
+ text?: string | undefined;
6
+ css?: CSS | undefined;
7
+ }) => React.JSX.Element;
8
+ export default FullPageProgress;
@@ -2,15 +2,15 @@ import { HMSEffectsPlugin, HMSVBPlugin } from '@100mslive/hms-virtual-background
2
2
  export declare class VBPlugin {
3
3
  private hmsPlugin?;
4
4
  private effectsPlugin?;
5
- initialisePlugin: (effectsSDKKey?: string) => void;
5
+ initialisePlugin: (effectsSDKKey?: string, onInit?: () => void) => void;
6
6
  getBackground: () => any;
7
7
  getBlurAmount: () => number;
8
8
  getVBObject: () => HMSVBPlugin | HMSEffectsPlugin | undefined;
9
9
  getName: () => string | undefined;
10
10
  setBlur: (blurPower: number) => Promise<void>;
11
11
  setBackground: (mediaURL: string) => Promise<void>;
12
- setPreset: (preset: string) => Promise<void>;
13
- getPreset: () => string;
12
+ setPreset: (preset: 'quality' | 'balanced') => Promise<void>;
13
+ getPreset: () => "" | "quality" | "balanced";
14
14
  removeEffects: () => Promise<void>;
15
15
  reset: () => void;
16
16
  }
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CaptionsViewer: () => React.JSX.Element | null;
@@ -123,7 +123,7 @@ export declare const textVariants: {
123
123
  };
124
124
  };
125
125
  export declare const Text: import("@stitches/react/types/styled-component").StyledComponent<"p", {
126
- variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "tiny" | "xs" | "sm" | "md" | "lg" | "button" | "caption" | "overline" | "sub1" | "sub2" | "body1" | "body2" | undefined;
126
+ variant?: "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "tiny" | "xs" | "sm" | "md" | "lg" | "button" | "overline" | "sub1" | "sub2" | "body1" | "body2" | undefined;
127
127
  color?: "white" | undefined;
128
128
  inline?: boolean | "true" | undefined;
129
129
  }, {