@100mslive/react-native-room-kit 0.1.0 → 0.2.0

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 (124) hide show
  1. package/lib/commonjs/Icons/Hamburger/assets/hamburger.png +0 -0
  2. package/lib/commonjs/Icons/Hamburger/assets/hamburger@2x.png +0 -0
  3. package/lib/commonjs/Icons/Hamburger/assets/hamburger@3x.png +0 -0
  4. package/lib/commonjs/Icons/Radio/assets/radio-xlarge.png +0 -0
  5. package/lib/commonjs/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
  6. package/lib/commonjs/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
  7. package/lib/commonjs/Icons/Radio/index.js +29 -1
  8. package/lib/commonjs/Icons/Radio/index.js.map +1 -1
  9. package/lib/commonjs/Icons/Stop/assets/stop.png +0 -0
  10. package/lib/commonjs/Icons/Stop/assets/stop@2x.png +0 -0
  11. package/lib/commonjs/Icons/Stop/assets/stop@3x.png +0 -0
  12. package/lib/commonjs/Icons/Stop/index.js.map +1 -1
  13. package/lib/commonjs/components/CompanyLogo.js +1 -1
  14. package/lib/commonjs/components/CompanyLogo.js.map +1 -1
  15. package/lib/commonjs/components/DisplayView.js +3 -2
  16. package/lib/commonjs/components/DisplayView.js.map +1 -1
  17. package/lib/commonjs/components/Footer.js +9 -4
  18. package/lib/commonjs/components/Footer.js.map +1 -1
  19. package/lib/commonjs/components/HMSHLSNotStarted.js +27 -19
  20. package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
  21. package/lib/commonjs/components/HMSManageLeave.js +18 -30
  22. package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
  23. package/lib/commonjs/components/HMSManageRaiseHand.js +2 -15
  24. package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
  25. package/lib/commonjs/components/HMSRecordingIndicator.js +1 -1
  26. package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -1
  27. package/lib/commonjs/components/Meeting.js +2 -1
  28. package/lib/commonjs/components/Meeting.js.map +1 -1
  29. package/lib/commonjs/components/MeetingScreenContent.js +2 -1
  30. package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
  31. package/lib/commonjs/components/RoomSettingsModalContent.js +2 -1
  32. package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
  33. package/lib/commonjs/components/StatusBar.js +7 -5
  34. package/lib/commonjs/components/StatusBar.js.map +1 -1
  35. package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -1
  36. package/lib/commonjs/hooks-util.js.map +1 -1
  37. package/lib/commonjs/redux/actions/index.js.map +1 -1
  38. package/lib/commonjs/redux/reducers/appState.js.map +1 -1
  39. package/lib/commonjs/utils/functions.js +1 -1
  40. package/lib/module/Icons/Hamburger/assets/hamburger.png +0 -0
  41. package/lib/module/Icons/Hamburger/assets/hamburger@2x.png +0 -0
  42. package/lib/module/Icons/Hamburger/assets/hamburger@3x.png +0 -0
  43. package/lib/module/Icons/Radio/assets/radio-xlarge.png +0 -0
  44. package/lib/module/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
  45. package/lib/module/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
  46. package/lib/module/Icons/Radio/index.js +30 -2
  47. package/lib/module/Icons/Radio/index.js.map +1 -1
  48. package/lib/module/Icons/Stop/assets/stop.png +0 -0
  49. package/lib/module/Icons/Stop/assets/stop@2x.png +0 -0
  50. package/lib/module/Icons/Stop/assets/stop@3x.png +0 -0
  51. package/lib/module/Icons/Stop/index.js.map +1 -1
  52. package/lib/module/components/CompanyLogo.js +1 -1
  53. package/lib/module/components/CompanyLogo.js.map +1 -1
  54. package/lib/module/components/DisplayView.js +3 -2
  55. package/lib/module/components/DisplayView.js.map +1 -1
  56. package/lib/module/components/Footer.js +10 -5
  57. package/lib/module/components/Footer.js.map +1 -1
  58. package/lib/module/components/HMSHLSNotStarted.js +29 -21
  59. package/lib/module/components/HMSHLSNotStarted.js.map +1 -1
  60. package/lib/module/components/HMSManageLeave.js +18 -30
  61. package/lib/module/components/HMSManageLeave.js.map +1 -1
  62. package/lib/module/components/HMSManageRaiseHand.js +2 -15
  63. package/lib/module/components/HMSManageRaiseHand.js.map +1 -1
  64. package/lib/module/components/HMSRecordingIndicator.js +1 -1
  65. package/lib/module/components/HMSRecordingIndicator.js.map +1 -1
  66. package/lib/module/components/Meeting.js +2 -1
  67. package/lib/module/components/Meeting.js.map +1 -1
  68. package/lib/module/components/MeetingScreenContent.js +2 -1
  69. package/lib/module/components/MeetingScreenContent.js.map +1 -1
  70. package/lib/module/components/RoomSettingsModalContent.js +3 -2
  71. package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
  72. package/lib/module/components/StatusBar.js +7 -5
  73. package/lib/module/components/StatusBar.js.map +1 -1
  74. package/lib/module/components/StopRecordingModalContent.js.map +1 -1
  75. package/lib/module/hooks-util.js.map +1 -1
  76. package/lib/module/redux/actions/index.js.map +1 -1
  77. package/lib/module/redux/reducers/appState.js.map +1 -1
  78. package/lib/module/utils/functions.js +1 -1
  79. package/lib/typescript/Icons/Radio/index.d.ts +7 -3
  80. package/lib/typescript/Icons/Radio/index.d.ts.map +1 -1
  81. package/lib/typescript/Icons/Stop/index.d.ts.map +1 -1
  82. package/lib/typescript/components/DisplayView.d.ts.map +1 -1
  83. package/lib/typescript/components/Footer.d.ts.map +1 -1
  84. package/lib/typescript/components/HMSHLSNotStarted.d.ts.map +1 -1
  85. package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
  86. package/lib/typescript/components/HMSManageRaiseHand.d.ts.map +1 -1
  87. package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -1
  88. package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
  89. package/lib/typescript/components/StatusBar.d.ts +2 -1
  90. package/lib/typescript/components/StatusBar.d.ts.map +1 -1
  91. package/lib/typescript/components/StopRecordingModalContent.d.ts.map +1 -1
  92. package/lib/typescript/hooks-util.d.ts.map +1 -1
  93. package/lib/typescript/redux/actions/index.d.ts.map +1 -1
  94. package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
  95. package/package.json +2 -2
  96. package/src/Icons/Hamburger/assets/hamburger.png +0 -0
  97. package/src/Icons/Hamburger/assets/hamburger@2x.png +0 -0
  98. package/src/Icons/Hamburger/assets/hamburger@3x.png +0 -0
  99. package/src/Icons/Radio/assets/radio-xlarge.png +0 -0
  100. package/src/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
  101. package/src/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
  102. package/src/Icons/Radio/index.tsx +53 -4
  103. package/src/Icons/Stop/assets/stop.png +0 -0
  104. package/src/Icons/Stop/assets/stop@2x.png +0 -0
  105. package/src/Icons/Stop/assets/stop@3x.png +0 -0
  106. package/src/Icons/Stop/index.tsx +1 -4
  107. package/src/components/CompanyLogo.tsx +1 -1
  108. package/src/components/DisplayView.tsx +1 -2
  109. package/src/components/Footer.tsx +32 -27
  110. package/src/components/HLSView.tsx +1 -1
  111. package/src/components/HMSHLSNotStarted.tsx +26 -20
  112. package/src/components/HMSManageLeave.tsx +14 -20
  113. package/src/components/HMSManageRaiseHand.tsx +2 -16
  114. package/src/components/HMSRecordingIndicator.tsx +6 -4
  115. package/src/components/Header.tsx +3 -3
  116. package/src/components/Meeting.tsx +1 -1
  117. package/src/components/MeetingScreenContent.tsx +1 -1
  118. package/src/components/RoomSettingsModalContent.tsx +3 -2
  119. package/src/components/StatusBar.tsx +6 -4
  120. package/src/components/StopRecordingModalContent.tsx +3 -1
  121. package/src/hooks-util.ts +5 -4
  122. package/src/redux/actions/index.ts +3 -1
  123. package/src/redux/reducers/appState.ts +4 -1
  124. package/src/utils/functions.ts +1 -1
package/src/hooks-util.ts CHANGED
@@ -145,7 +145,8 @@ const useHMSRoomUpdate = (hmsInstance: HMSSDK) => {
145
145
  }
146
146
 
147
147
  if (type === HMSRoomUpdate.BROWSER_RECORDING_STATE_UPDATED) {
148
- const startingOrStoppingRecording = reduxStore.getState().app.startingOrStoppingRecording;
148
+ const startingOrStoppingRecording =
149
+ reduxStore.getState().app.startingOrStoppingRecording;
149
150
 
150
151
  if (startingOrStoppingRecording) {
151
152
  dispatch(setStartingOrStoppingRecording(false));
@@ -1270,7 +1271,7 @@ export const useSafeDimensions = () => {
1270
1271
 
1271
1272
  export const useShowChat = (): [
1272
1273
  'none' | 'inset' | 'modal',
1273
- (show: boolean) => void
1274
+ (show: boolean) => void,
1274
1275
  ] => {
1275
1276
  const dispatch = useDispatch();
1276
1277
  const isHLSViewer = useIsHLSViewer();
@@ -1543,7 +1544,7 @@ export const useHMSRoomTypography = (): Typography => {
1543
1544
  };
1544
1545
 
1545
1546
  export const useHMSRoomStyleSheet = <
1546
- T extends { [key: string]: StyleProp<ViewStyle | TextStyle | ImageStyle> }
1547
+ T extends { [key: string]: StyleProp<ViewStyle | TextStyle | ImageStyle> },
1547
1548
  >(
1548
1549
  updater: (theme: Required<Theme>, typography: Required<Typography>) => T,
1549
1550
  deps: DependencyList = []
@@ -1558,7 +1559,7 @@ export const useHMSRoomStyleSheet = <
1558
1559
  };
1559
1560
 
1560
1561
  export const useHMSRoomStyle = <
1561
- T extends StyleProp<ViewStyle | TextStyle | ImageStyle>
1562
+ T extends StyleProp<ViewStyle | TextStyle | ImageStyle>,
1562
1563
  >(
1563
1564
  updater: (theme: Required<Theme>, typography: Required<Typography>) => T,
1564
1565
  deps: DependencyList = []
@@ -262,7 +262,9 @@ export const setGridViewActivePage = (pageNumber: number) => ({
262
262
  payload: { gridViewActivePage: pageNumber },
263
263
  });
264
264
 
265
- export const setStartingOrStoppingRecording = (startingOrStoppingRecording: boolean) => ({
265
+ export const setStartingOrStoppingRecording = (
266
+ startingOrStoppingRecording: boolean
267
+ ) => ({
266
268
  type: actionTypes.SET_STARTING_OR_STOPPING_RECORDING,
267
269
  payload: { startingOrStoppingRecording },
268
270
  });
@@ -197,7 +197,10 @@ const appReducer = (
197
197
  gridViewActivePage: action.payload.gridViewActivePage,
198
198
  };
199
199
  case ActionTypes.SET_STARTING_OR_STOPPING_RECORDING:
200
- return { ...state, startingOrStoppingRecording: action.payload.startingOrStoppingRecording };
200
+ return {
201
+ ...state,
202
+ startingOrStoppingRecording: action.payload.startingOrStoppingRecording,
203
+ };
201
204
  case HmsStateActionTypes.CLEAR_STATES:
202
205
  return INITIAL_STATE;
203
206
  default:
@@ -561,7 +561,7 @@ export function groupIntoTriplets<T>(list: T[], fill?: boolean) {
561
561
  } else {
562
562
  const t = [list[i]];
563
563
  if (fill) {
564
- t.splice(0, 0, undefined, undefined);
564
+ t.splice(1, 0, undefined, undefined);
565
565
  }
566
566
  pairs.push(t);
567
567
  }