@100mslive/roomkit-react 0.2.3-alpha.0 → 0.2.3-alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +53 -0
- package/dist/{HLSView-CVRPVOXD.js → HLSView-7HBO24NV.js} +2 -2
- package/dist/{chunk-5W4IGFZA.js → chunk-U5FEFLCO.js} +856 -152
- package/dist/chunk-U5FEFLCO.js.map +7 -0
- package/dist/index.cjs.js +843 -139
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +33 -9
- package/dist/meta.esbuild.json +40 -16
- package/package.json +6 -6
- package/dist/chunk-5W4IGFZA.js.map +0 -7
- /package/dist/{HLSView-CVRPVOXD.js.map → HLSView-7HBO24NV.js.map} +0 -0
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-
|
26
|
+
} from "./chunk-U5FEFLCO.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-
|
987
|
+
//# sourceMappingURL=HLSView-7HBO24NV.js.map
|