@100mslive/roomkit-react 0.3.19-alpha.22 → 0.3.19-alpha.23

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.
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.19-alpha.22",
13
+ "version": "0.3.19-alpha.23",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -75,12 +75,12 @@
75
75
  "react": ">=17.0.2 <19.0.0"
76
76
  },
77
77
  "dependencies": {
78
- "@100mslive/hls-player": "0.3.19-alpha.22",
78
+ "@100mslive/hls-player": "0.3.19-alpha.23",
79
79
  "@100mslive/hms-noise-cancellation": "0.0.1",
80
- "@100mslive/hms-virtual-background": "1.13.19-alpha.22",
81
- "@100mslive/hms-whiteboard": "0.0.9-alpha.22",
82
- "@100mslive/react-icons": "0.10.19-alpha.22",
83
- "@100mslive/react-sdk": "0.10.19-alpha.22",
80
+ "@100mslive/hms-virtual-background": "1.13.19-alpha.23",
81
+ "@100mslive/hms-whiteboard": "0.0.9-alpha.23",
82
+ "@100mslive/react-icons": "0.10.19-alpha.23",
83
+ "@100mslive/react-sdk": "0.10.19-alpha.23",
84
84
  "@100mslive/types-prebuilt": "0.12.12",
85
85
  "@emoji-mart/data": "^1.0.6",
86
86
  "@emoji-mart/react": "^1.0.1",
@@ -117,5 +117,5 @@
117
117
  "uuid": "^8.3.2",
118
118
  "worker-timers": "^7.0.40"
119
119
  },
120
- "gitHead": "0500308b01f5eaea601172231e5ad76136765d32"
120
+ "gitHead": "6d6c172062d69b0bd667798f32ce3a726dd796c5"
121
121
  }
@@ -68,12 +68,12 @@ export const useAppStateManager = () => {
68
68
  [HMSRoomState.Disconnected, HMSRoomState.Connecting],
69
69
  [HMSRoomState.Disconnected, HMSRoomState.Reconnecting],
70
70
  () => {
71
- setActiveState(
72
- match({ isLeaveScreenEnabled, isPreviewScreenEnabled })
73
- .with({ isLeaveScreenEnabled: true }, () => PrebuiltStates.LEAVE)
71
+ setActiveState(prevState => {
72
+ return match({ isLeaveScreenEnabled, isPreviewScreenEnabled, prevState })
73
+ .with({ isLeaveScreenEnabled: true, prevState: PrebuiltStates.MEETING }, () => PrebuiltStates.LEAVE)
74
74
  .with({ isPreviewScreenEnabled: true }, () => PrebuiltStates.PREVIEW)
75
- .otherwise(() => PrebuiltStates.MEETING),
76
- );
75
+ .otherwise(() => PrebuiltStates.MEETING);
76
+ });
77
77
  VBHandler.reset();
78
78
  redirectToLeave(1000); // to clear toasts after 1 second
79
79
  },
@@ -100,7 +100,7 @@ export const InsetTile = ({ peerId }: { peerId?: string }) => {
100
100
  position: 'absolute',
101
101
  bottom: 0,
102
102
  right: 0,
103
- zIndex: 11,
103
+ zIndex: 10,
104
104
  boxShadow: '0 0 8px 0 rgba(0,0,0,0.3)',
105
105
  r: '$2',
106
106
  ...(!minimised