@100mslive/roomkit-react 0.2.2 → 0.2.3-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -42,3 +42,56 @@ For additional props, refer the [docs](https://www.100ms.live/docs/javascript/v2
42
42
 
43
43
 
44
44
  Prebuilt customisations are available on [100ms dashboard](https://dashboard.100ms.live)
45
+
46
+
47
+ #### Understanding the flow:
48
+
49
+ The `src` folder contains all the components, `Button`, `Accordion` etc.
50
+ The `Prebuilt` folder contains the full prebuilt implementation.
51
+ `App.tsx` is the entry point for the prebuilt which contains the `HMSPrebuilt` component.
52
+
53
+ **Major Components in Prebuilt:**
54
+
55
+ [RoomLayoutProvider](src/Prebuilt/provider/roomLayoutProvider/index.tsx)
56
+ This is a context that contains the configuration from the dashboard [customiser](dashboard.100ms.live). Whatever changes are made in the dashboard customiser are available the next time you join.
57
+
58
+ [AppStateContext](src/Prebuilt/AppStateContext.tsx)
59
+ Contains the logic to switch between different screens, for example, Preview to Meeting, Meeting to Leave.
60
+ These transitions are based on the roomState that is available from the reactive store(`useHMSStore(selectHMSRoomState)`)
61
+
62
+ [PreviewScreen](src/Prebuilt/components/Preview/PreviewScreen.tsx)
63
+
64
+ Contains the Preview implementation. Contains the Video tile, video, audio toggles and Virtual background and settings along with the name input.
65
+
66
+ [ConferenceScreen](src/Prebuilt/components/ConferenceScreen.tsx)
67
+
68
+ This contains the screen once you finish Preview and enter the meeting. This contains the header and footer and the main content.
69
+
70
+ [VideoStreamingSection](src/Prebuilt/layouts/VideoStreamingSection.tsx)
71
+
72
+ This is the component that contains the main video rendering components and a sidebar(Chat, Polls, and Others are shown here)
73
+
74
+ [LeaveScreen](src/Prebuilt/components/LeaveScreen.tsx)
75
+
76
+ This is the screen that is shown when you leave the meeting
77
+
78
+ #### Customising the styles:
79
+
80
+ [Base Config](/src/Theme/base.config.ts) has all the variables that you can use. Any changes you want for the theme can be made here. Most likely no additional changes will be required unless you want to introduce new variables.
81
+
82
+ When [`HMSThemeProvider`](src/Theme/ThemeProvider.tsx) is used at the top level, all the variables will be available for all the children under this component tree.
83
+
84
+ For components created using the base components like `Box`, `Flex`, `Button` etc, css Prop is available to modify the styles. Within the css prop, you can access the variables from the [base config](/src/Theme/base.config.ts).
85
+
86
+
87
+ #### Contributing
88
+
89
+ Make sure whatever new Component/file you create is in `Typescript`.
90
+
91
+ Don't forget to add data-testid for actionables like buttons, menus etc.
92
+
93
+ Setup proper tooling(eslint and prettier) in your editor.
94
+
95
+ `yarn lint` will be run before you push the changes, so whenever a push fails, check if there are any lint errors.
96
+
97
+ Read this [doc](../../DEVELOPER.MD) for the coding guidelines
@@ -23,7 +23,7 @@ import {
23
23
  styled,
24
24
  usePollViewToggle,
25
25
  useTheme
26
- } from "./chunk-AMKCMJY4.js";
26
+ } from "./chunk-USVBISD5.js";
27
27
 
28
28
  // src/Prebuilt/layouts/HLSView.jsx
29
29
  init_define_process_env();
@@ -984,4 +984,4 @@ var HLSView_default = HLSView;
984
984
  export {
985
985
  HLSView_default as default
986
986
  };
987
- //# sourceMappingURL=HLSView-LVQBZ4PX.js.map
987
+ //# sourceMappingURL=HLSView-XUM6YSBP.js.map
@@ -9,6 +9,8 @@ export declare class VBPlugin {
9
9
  getName: () => string | undefined;
10
10
  setBlur: (blurPower: number) => Promise<void>;
11
11
  setBackground: (mediaURL: string) => Promise<void>;
12
+ setPreset: (preset: string) => void;
13
+ getPreset: () => string;
12
14
  removeEffects: () => Promise<void>;
13
15
  reset: () => void;
14
16
  }