@100mslive/react-native-room-kit 1.1.8 → 1.1.9-beta.1
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/lib/commonjs/HMSInstanceSetup.js +11 -5
- package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
- package/lib/commonjs/Icons/AddImage/assets/add-image.png +0 -0
- package/lib/commonjs/Icons/AddImage/assets/add-image@2x.png +0 -0
- package/lib/commonjs/Icons/AddImage/assets/add-image@3x.png +0 -0
- package/lib/commonjs/Icons/AddImage/index.js +33 -0
- package/lib/commonjs/Icons/AddImage/index.js.map +1 -0
- package/lib/commonjs/Icons/BlurPeople/assets/blur-people.png +0 -0
- package/lib/commonjs/Icons/BlurPeople/assets/blur-people@2x.png +0 -0
- package/lib/commonjs/Icons/BlurPeople/assets/blur-people@3x.png +0 -0
- package/lib/commonjs/Icons/BlurPeople/index.js +33 -0
- package/lib/commonjs/Icons/BlurPeople/index.js.map +1 -0
- package/lib/commonjs/Icons/CrossCircle/assets/cross-circle-large.png +0 -0
- package/lib/commonjs/Icons/CrossCircle/assets/cross-circle-large@2x.png +0 -0
- package/lib/commonjs/Icons/CrossCircle/assets/cross-circle-large@3x.png +0 -0
- package/lib/commonjs/Icons/CrossCircle/index.js +7 -2
- package/lib/commonjs/Icons/CrossCircle/index.js.map +1 -1
- package/lib/commonjs/Icons/VirtualBackground/assets/virtual-background.png +0 -0
- package/lib/commonjs/Icons/VirtualBackground/assets/virtual-background@2x.png +0 -0
- package/lib/commonjs/Icons/VirtualBackground/assets/virtual-background@3x.png +0 -0
- package/lib/commonjs/Icons/VirtualBackground/index.js +33 -0
- package/lib/commonjs/Icons/VirtualBackground/index.js.map +1 -0
- package/lib/commonjs/Icons/index.js +33 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMessage.js +13 -1
- package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
- package/lib/commonjs/components/HLSDescriptionPane.js +3 -29
- package/lib/commonjs/components/HLSDescriptionPane.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessage.js +14 -1
- package/lib/commonjs/components/HMSHLSMessage.js.map +1 -1
- package/lib/commonjs/components/HMSManageCameraRotation.js +11 -4
- package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalVideo.js +11 -4
- package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/commonjs/components/HMSManageVirtualBackground.js +55 -0
- package/lib/commonjs/components/HMSManageVirtualBackground.js.map +1 -0
- package/lib/commonjs/components/HMSOverlayMessageView.js +14 -1
- package/lib/commonjs/components/HMSOverlayMessageView.js.map +1 -1
- package/lib/commonjs/components/HMSRoomOptions.js +2 -1
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/Preview.js +8 -3
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +29 -0
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/VirtualBackgroundBottomSheet.js +52 -0
- package/lib/commonjs/components/VirtualBackgroundBottomSheet.js.map +1 -0
- package/lib/commonjs/components/VirtualBackgroundModalContent.js +364 -0
- package/lib/commonjs/components/VirtualBackgroundModalContent.js.map +1 -0
- package/lib/commonjs/modules/imagePickerWrapper.js +19 -0
- package/lib/commonjs/modules/imagePickerWrapper.js.map +1 -0
- package/lib/commonjs/modules/videoPluginWrapper.js +13 -0
- package/lib/commonjs/modules/videoPluginWrapper.js.map +1 -0
- package/lib/commonjs/redux/actionTypes.js +3 -0
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +14 -2
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +9 -1
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +6 -0
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/utils/functions.js +33 -1
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/types.js +1 -0
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/module/HMSInstanceSetup.js +12 -6
- package/lib/module/HMSInstanceSetup.js.map +1 -1
- package/lib/module/Icons/AddImage/assets/add-image.png +0 -0
- package/lib/module/Icons/AddImage/assets/add-image@2x.png +0 -0
- package/lib/module/Icons/AddImage/assets/add-image@3x.png +0 -0
- package/lib/module/Icons/AddImage/index.js +25 -0
- package/lib/module/Icons/AddImage/index.js.map +1 -0
- package/lib/module/Icons/BlurPeople/assets/blur-people.png +0 -0
- package/lib/module/Icons/BlurPeople/assets/blur-people@2x.png +0 -0
- package/lib/module/Icons/BlurPeople/assets/blur-people@3x.png +0 -0
- package/lib/module/Icons/BlurPeople/index.js +25 -0
- package/lib/module/Icons/BlurPeople/index.js.map +1 -0
- package/lib/module/Icons/CrossCircle/assets/cross-circle-large.png +0 -0
- package/lib/module/Icons/CrossCircle/assets/cross-circle-large@2x.png +0 -0
- package/lib/module/Icons/CrossCircle/assets/cross-circle-large@3x.png +0 -0
- package/lib/module/Icons/CrossCircle/index.js +7 -2
- package/lib/module/Icons/CrossCircle/index.js.map +1 -1
- package/lib/module/Icons/VirtualBackground/assets/virtual-background.png +0 -0
- package/lib/module/Icons/VirtualBackground/assets/virtual-background@2x.png +0 -0
- package/lib/module/Icons/VirtualBackground/assets/virtual-background@3x.png +0 -0
- package/lib/module/Icons/VirtualBackground/index.js +25 -0
- package/lib/module/Icons/VirtualBackground/index.js.map +1 -0
- package/lib/module/Icons/index.js +3 -0
- package/lib/module/Icons/index.js.map +1 -1
- package/lib/module/components/Chat/ChatMessage.js +15 -3
- package/lib/module/components/Chat/ChatMessage.js.map +1 -1
- package/lib/module/components/HLSDescriptionPane.js +2 -28
- package/lib/module/components/HLSDescriptionPane.js.map +1 -1
- package/lib/module/components/HMSHLSMessage.js +15 -2
- package/lib/module/components/HMSHLSMessage.js.map +1 -1
- package/lib/module/components/HMSManageCameraRotation.js +11 -4
- package/lib/module/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/module/components/HMSManageLocalVideo.js +11 -4
- package/lib/module/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/module/components/HMSManageVirtualBackground.js +46 -0
- package/lib/module/components/HMSManageVirtualBackground.js.map +1 -0
- package/lib/module/components/HMSOverlayMessageView.js +15 -2
- package/lib/module/components/HMSOverlayMessageView.js.map +1 -1
- package/lib/module/components/HMSRoomOptions.js +2 -1
- package/lib/module/components/HMSRoomOptions.js.map +1 -1
- package/lib/module/components/Preview.js +8 -3
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +31 -2
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/VirtualBackgroundBottomSheet.js +43 -0
- package/lib/module/components/VirtualBackgroundBottomSheet.js.map +1 -0
- package/lib/module/components/VirtualBackgroundModalContent.js +355 -0
- package/lib/module/components/VirtualBackgroundModalContent.js.map +1 -0
- package/lib/module/modules/imagePickerWrapper.js +14 -0
- package/lib/module/modules/imagePickerWrapper.js.map +1 -0
- package/lib/module/modules/videoPluginWrapper.js +8 -0
- package/lib/module/modules/videoPluginWrapper.js.map +1 -0
- package/lib/module/redux/actionTypes.js +3 -0
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +10 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +9 -1
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +6 -0
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/utils/functions.js +29 -1
- package/lib/module/utils/functions.js.map +1 -1
- package/lib/module/utils/types.js +1 -0
- package/lib/module/utils/types.js.map +1 -1
- package/lib/typescript/HMSInstanceSetup.d.ts.map +1 -1
- package/lib/typescript/Icons/AddImage/index.d.ts +7 -0
- package/lib/typescript/Icons/AddImage/index.d.ts.map +1 -0
- package/lib/typescript/Icons/BlurPeople/index.d.ts +7 -0
- package/lib/typescript/Icons/BlurPeople/index.d.ts.map +1 -0
- package/lib/typescript/Icons/CrossCircle/index.d.ts +1 -0
- package/lib/typescript/Icons/CrossCircle/index.d.ts.map +1 -1
- package/lib/typescript/Icons/VirtualBackground/index.d.ts +7 -0
- package/lib/typescript/Icons/VirtualBackground/index.d.ts.map +1 -0
- package/lib/typescript/Icons/index.d.ts +3 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatMessage.d.ts.map +1 -1
- package/lib/typescript/components/HLSDescriptionPane.d.ts.map +1 -1
- package/lib/typescript/components/HMSHLSMessage.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageCameraRotation.d.ts +8 -1
- package/lib/typescript/components/HMSManageCameraRotation.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLocalVideo.d.ts +8 -1
- package/lib/typescript/components/HMSManageLocalVideo.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageVirtualBackground.d.ts +8 -0
- package/lib/typescript/components/HMSManageVirtualBackground.d.ts.map +1 -0
- package/lib/typescript/components/HMSOverlayMessageView.d.ts.map +1 -1
- package/lib/typescript/components/HMSRoomOptions.d.ts.map +1 -1
- package/lib/typescript/components/Preview.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/VirtualBackgroundBottomSheet.d.ts +3 -0
- package/lib/typescript/components/VirtualBackgroundBottomSheet.d.ts.map +1 -0
- package/lib/typescript/components/VirtualBackgroundModalContent.d.ts +6 -0
- package/lib/typescript/components/VirtualBackgroundModalContent.d.ts.map +1 -0
- package/lib/typescript/modules/imagePickerWrapper.d.ts +6 -0
- package/lib/typescript/modules/imagePickerWrapper.d.ts.map +1 -0
- package/lib/typescript/modules/videoPluginWrapper.d.ts +19 -0
- package/lib/typescript/modules/videoPluginWrapper.d.ts.map +1 -0
- package/lib/typescript/redux/actionTypes.d.ts +2 -0
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +11 -0
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +2 -0
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +1 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts +7 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +2 -0
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/utils/functions.d.ts +2 -0
- package/lib/typescript/utils/functions.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +1 -0
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/package.json +8 -2
- package/src/HMSInstanceSetup.tsx +17 -4
- package/src/Icons/AddImage/assets/add-image.png +0 -0
- package/src/Icons/AddImage/assets/add-image@2x.png +0 -0
- package/src/Icons/AddImage/assets/add-image@3x.png +0 -0
- package/src/Icons/AddImage/index.tsx +33 -0
- package/src/Icons/BlurPeople/assets/blur-people.png +0 -0
- package/src/Icons/BlurPeople/assets/blur-people@2x.png +0 -0
- package/src/Icons/BlurPeople/assets/blur-people@3x.png +0 -0
- package/src/Icons/BlurPeople/index.tsx +33 -0
- package/src/Icons/CrossCircle/assets/cross-circle-large.png +0 -0
- package/src/Icons/CrossCircle/assets/cross-circle-large@2x.png +0 -0
- package/src/Icons/CrossCircle/assets/cross-circle-large@3x.png +0 -0
- package/src/Icons/CrossCircle/index.tsx +19 -3
- package/src/Icons/VirtualBackground/assets/virtual-background.png +0 -0
- package/src/Icons/VirtualBackground/assets/virtual-background@2x.png +0 -0
- package/src/Icons/VirtualBackground/assets/virtual-background@3x.png +0 -0
- package/src/Icons/VirtualBackground/index.tsx +33 -0
- package/src/Icons/index.ts +3 -0
- package/src/components/Chat/ChatMessage.tsx +19 -2
- package/src/components/HLSDescriptionPane.tsx +2 -33
- package/src/components/HMSHLSMessage.tsx +16 -1
- package/src/components/HMSManageCameraRotation.tsx +18 -4
- package/src/components/HMSManageLocalVideo.tsx +20 -4
- package/src/components/HMSManageVirtualBackground.tsx +76 -0
- package/src/components/HMSOverlayMessageView.tsx +16 -1
- package/src/components/HMSRoomOptions.tsx +3 -0
- package/src/components/Preview.tsx +12 -5
- package/src/components/RoomSettingsModalContent.tsx +33 -0
- package/src/components/VirtualBackgroundBottomSheet.tsx +62 -0
- package/src/components/VirtualBackgroundModalContent.tsx +500 -0
- package/src/modules/imagePickerWrapper.ts +20 -0
- package/src/modules/videoPluginWrapper.ts +32 -0
- package/src/redux/actionTypes.ts +4 -0
- package/src/redux/actions/index.ts +11 -0
- package/src/redux/reducers/appState.ts +8 -0
- package/src/redux/reducers/hmsStates.ts +14 -0
- package/src/utils/{functions.ts → functions.tsx} +34 -0
- package/src/utils/types.ts +1 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { HMSAudioTrackSettings, HMSCameraFacing, HMSIOSAudioMode, HMSLogAlarmManager, HMSLogger, HMSLogLevel, HMSLogSettings, HMSNoiseCancellationPlugin, HMSSDK, HMSTrackSettings, HMSTrackSettingsInitState, HMSVideoTrackSettings } from '@100mslive/react-native-hms';
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { batch, useDispatch } from 'react-redux';
|
|
4
|
+
import { VideoPlugin } from './modules/videoPluginWrapper';
|
|
4
5
|
import { getJoinConfig } from './utils';
|
|
5
|
-
import { saveUserData, setHMSInstance, setNoiseCancellationPlugin } from './redux/actions';
|
|
6
|
+
import { saveUserData, setHMSInstance, setNoiseCancellationPlugin, setVideoPlugin } from './redux/actions';
|
|
6
7
|
import { FullScreenIndicator } from './components/FullScreenIndicator';
|
|
7
8
|
import { clearConfig } from './hooks-util';
|
|
8
9
|
import { store } from './redux';
|
|
9
|
-
const getTrackSettings = noiseCancellationPlugin => {
|
|
10
|
+
const getTrackSettings = (noiseCancellationPlugin, videoPlugin) => {
|
|
10
11
|
const joinConfig = getJoinConfig();
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -42,7 +43,8 @@ const getTrackSettings = noiseCancellationPlugin => {
|
|
|
42
43
|
initialState: joinConfig.mutedVideo ? HMSTrackSettingsInitState.MUTED : HMSTrackSettingsInitState.UNMUTED,
|
|
43
44
|
cameraFacing: HMSCameraFacing.FRONT,
|
|
44
45
|
disableAutoResize: !joinConfig.autoResize,
|
|
45
|
-
forceSoftwareDecoder: joinConfig.softwareDecoder
|
|
46
|
+
forceSoftwareDecoder: joinConfig.softwareDecoder,
|
|
47
|
+
videoPlugin: videoPlugin || undefined
|
|
46
48
|
});
|
|
47
49
|
return new HMSTrackSettings({
|
|
48
50
|
video: videoSettings,
|
|
@@ -63,13 +65,13 @@ const getIOSBuildConfig = () => store.getState().user.iosBuildConfig || {};
|
|
|
63
65
|
* const hmsInstance = await HMSSDK.build();
|
|
64
66
|
* @returns
|
|
65
67
|
*/
|
|
66
|
-
const getHmsInstance = async noiseCancellationPlugin => {
|
|
68
|
+
const getHmsInstance = async (noiseCancellationPlugin, videoPlugin) => {
|
|
67
69
|
/**
|
|
68
70
|
* Only required for advanced use-case features like iOS Screen/Audio Share, Android Software Echo Cancellation, etc
|
|
69
71
|
* NOT required for any other features.
|
|
70
72
|
* @link https://www.100ms.live/docs/react-native/v2/advanced-features/track-settings
|
|
71
73
|
*/
|
|
72
|
-
const trackSettings = getTrackSettings(noiseCancellationPlugin);
|
|
74
|
+
const trackSettings = getTrackSettings(noiseCancellationPlugin, videoPlugin);
|
|
73
75
|
|
|
74
76
|
/**
|
|
75
77
|
* Regular Usage:
|
|
@@ -116,13 +118,17 @@ export const HMSInstanceSetup = () => {
|
|
|
116
118
|
const setupHMSInstance = async () => {
|
|
117
119
|
clearConfig();
|
|
118
120
|
const noiseCancellationPlugin = new HMSNoiseCancellationPlugin();
|
|
119
|
-
|
|
121
|
+
const videoPlugin = VideoPlugin ? new VideoPlugin.HMSVirtualBackgroundPlugin() : null;
|
|
122
|
+
getHmsInstance(noiseCancellationPlugin, videoPlugin).then(hmssdkInstance => {
|
|
120
123
|
if (!ignore) {
|
|
121
124
|
// If this component is mounted
|
|
122
125
|
// save instance in store
|
|
123
126
|
batch(() => {
|
|
124
127
|
dispatch(setHMSInstance(hmssdkInstance));
|
|
125
128
|
dispatch(setNoiseCancellationPlugin(noiseCancellationPlugin));
|
|
129
|
+
if (videoPlugin) {
|
|
130
|
+
dispatch(setVideoPlugin(videoPlugin));
|
|
131
|
+
}
|
|
126
132
|
// TODO: remove this from user reducer
|
|
127
133
|
dispatch(saveUserData({
|
|
128
134
|
hmsInstance: hmssdkInstance
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSAudioTrackSettings","HMSCameraFacing","HMSIOSAudioMode","HMSLogAlarmManager","HMSLogger","HMSLogLevel","HMSLogSettings","HMSNoiseCancellationPlugin","HMSSDK","HMSTrackSettings","HMSTrackSettingsInitState","HMSVideoTrackSettings","React","useEffect","batch","useDispatch","getJoinConfig","saveUserData","setHMSInstance","setNoiseCancellationPlugin","FullScreenIndicator","clearConfig","store","getTrackSettings","noiseCancellationPlugin","joinConfig","audioSettings","initialState","mutedAudio","MUTED","UNMUTED","audioSource","audioMixer","undefined","audioMode","musicMode","MUSIC","videoSettings","mutedVideo","cameraFacing","FRONT","disableAutoResize","autoResize","forceSoftwareDecoder","softwareDecoder","video","audio","getLogSettings","level","VERBOSE","isLogStorageEnabled","maxDirSizeInBytes","DEFAULT_DIR_SIZE","getIOSBuildConfig","getState","user","iosBuildConfig","getHmsInstance","trackSettings","logSettings","appGroup","preferredExtension","hmsInstance","build","isPrebuilt","logger","updateLogLevel","setLogger","HMSInstanceSetup","dispatch","ignore","setupHMSInstance","then","hmssdkInstance","leave","finally","destroy","catch","error","console","warn","createElement"],"sourceRoot":"../../src","sources":["HMSInstanceSetup.tsx"],"mappings":"AAAA,SACEA,qBAAqB,EACrBC,eAAe,EACfC,eAAe,EACfC,kBAAkB,EAClBC,SAAS,EACTC,WAAW,EACXC,cAAc,EACdC,0BAA0B,EAC1BC,MAAM,EACNC,gBAAgB,EAChBC,yBAAyB,EACzBC,qBAAqB,QAChB,6BAA6B;AACpC,OAAOC,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,KAAK,EAAEC,WAAW,QAAQ,aAAa;AAEhD,SAASC,aAAa,QAAQ,SAAS;AACvC,SACEC,YAAY,EACZC,cAAc,EACdC,0BAA0B,
|
|
1
|
+
{"version":3,"names":["HMSAudioTrackSettings","HMSCameraFacing","HMSIOSAudioMode","HMSLogAlarmManager","HMSLogger","HMSLogLevel","HMSLogSettings","HMSNoiseCancellationPlugin","HMSSDK","HMSTrackSettings","HMSTrackSettingsInitState","HMSVideoTrackSettings","React","useEffect","batch","useDispatch","VideoPlugin","getJoinConfig","saveUserData","setHMSInstance","setNoiseCancellationPlugin","setVideoPlugin","FullScreenIndicator","clearConfig","store","getTrackSettings","noiseCancellationPlugin","videoPlugin","joinConfig","audioSettings","initialState","mutedAudio","MUTED","UNMUTED","audioSource","audioMixer","undefined","audioMode","musicMode","MUSIC","videoSettings","mutedVideo","cameraFacing","FRONT","disableAutoResize","autoResize","forceSoftwareDecoder","softwareDecoder","video","audio","getLogSettings","level","VERBOSE","isLogStorageEnabled","maxDirSizeInBytes","DEFAULT_DIR_SIZE","getIOSBuildConfig","getState","user","iosBuildConfig","getHmsInstance","trackSettings","logSettings","appGroup","preferredExtension","hmsInstance","build","isPrebuilt","logger","updateLogLevel","setLogger","HMSInstanceSetup","dispatch","ignore","setupHMSInstance","HMSVirtualBackgroundPlugin","then","hmssdkInstance","leave","finally","destroy","catch","error","console","warn","createElement"],"sourceRoot":"../../src","sources":["HMSInstanceSetup.tsx"],"mappings":"AAAA,SACEA,qBAAqB,E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N,CAAC;IAEDR,gBAAgB,CAAC,CAAC;IAElB,OAAO,MAAM;MACXD,MAAM,GAAG,IAAI;IACf,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,oBAAO7D,KAAA,CAAAyE,aAAA,CAAC/D,mBAAmB,MAAE,CAAC;AAChC,CAAC","ignoreList":[]}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Image, StyleSheet } from 'react-native';
|
|
4
|
+
import { useHMSRoomStyle } from '../../hooks-util';
|
|
5
|
+
export const AddImageIcon = ({
|
|
6
|
+
style,
|
|
7
|
+
...restProps
|
|
8
|
+
}) => {
|
|
9
|
+
const iconStyles = useHMSRoomStyle(theme => ({
|
|
10
|
+
tintColor: theme.palette.on_surface_high
|
|
11
|
+
}));
|
|
12
|
+
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
13
|
+
source: require('./assets/add-image.png'),
|
|
14
|
+
style: [styles.icon, iconStyles, style]
|
|
15
|
+
}, restProps));
|
|
16
|
+
};
|
|
17
|
+
const styles = StyleSheet.create({
|
|
18
|
+
icon: {
|
|
19
|
+
width: 40,
|
|
20
|
+
height: 40,
|
|
21
|
+
alignItems: 'center',
|
|
22
|
+
justifyContent: 'center'
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Image","StyleSheet","useHMSRoomStyle","AddImageIcon","style","restProps","iconStyles","theme","tintColor","palette","on_surface_high","createElement","_extends","source","require","styles","icon","create","width","height","alignItems","justifyContent"],"sourceRoot":"../../../../src","sources":["Icons/AddImage/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAGhD,SAASC,eAAe,QAAQ,kBAAkB;AAIlD,OAAO,MAAMC,YAAyC,GAAGA,CAAC;EACxDC,KAAK;EACL,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,UAAU,GAAGJ,eAAe,CAAEK,KAAK,KAAM;IAC7CC,SAAS,EAAED,KAAK,CAACE,OAAO,CAACC;EAC3B,CAAC,CAAC,CAAC;EAEH,oBACEX,KAAA,CAAAY,aAAA,CAACX,KAAK,EAAAY,QAAA;IACJC,MAAM,EAAEC,OAAO,CAAC,wBAAwB,CAAE;IAC1CV,KAAK,EAAE,CAACW,MAAM,CAACC,IAAI,EAAEV,UAAU,EAAEF,KAAK;EAAE,GACpCC,SAAS,CACd,CAAC;AAEN,CAAC;AAED,MAAMU,MAAM,GAAGd,UAAU,CAACgB,MAAM,CAAC;EAC/BD,IAAI,EAAE;IACJE,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Image, StyleSheet } from 'react-native';
|
|
4
|
+
import { useHMSRoomStyle } from '../../hooks-util';
|
|
5
|
+
export const BlurPeopleIcon = ({
|
|
6
|
+
style,
|
|
7
|
+
...restProps
|
|
8
|
+
}) => {
|
|
9
|
+
const iconStyles = useHMSRoomStyle(theme => ({
|
|
10
|
+
tintColor: theme.palette.on_surface_high
|
|
11
|
+
}));
|
|
12
|
+
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
13
|
+
source: require('./assets/blur-people.png'),
|
|
14
|
+
style: [styles.icon, iconStyles, style]
|
|
15
|
+
}, restProps));
|
|
16
|
+
};
|
|
17
|
+
const styles = StyleSheet.create({
|
|
18
|
+
icon: {
|
|
19
|
+
width: 40,
|
|
20
|
+
height: 40,
|
|
21
|
+
alignItems: 'center',
|
|
22
|
+
justifyContent: 'center'
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Image","StyleSheet","useHMSRoomStyle","BlurPeopleIcon","style","restProps","iconStyles","theme","tintColor","palette","on_surface_high","createElement","_extends","source","require","styles","icon","create","width","height","alignItems","justifyContent"],"sourceRoot":"../../../../src","sources":["Icons/BlurPeople/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAGhD,SAASC,eAAe,QAAQ,kBAAkB;AAIlD,OAAO,MAAMC,cAA6C,GAAGA,CAAC;EAC5DC,KAAK;EACL,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,UAAU,GAAGJ,eAAe,CAAEK,KAAK,KAAM;IAC7CC,SAAS,EAAED,KAAK,CAACE,OAAO,CAACC;EAC3B,CAAC,CAAC,CAAC;EAEH,oBACEX,KAAA,CAAAY,aAAA,CAACX,KAAK,EAAAY,QAAA;IACJC,MAAM,EAAEC,OAAO,CAAC,0BAA0B,CAAE;IAC5CV,KAAK,EAAE,CAACW,MAAM,CAACC,IAAI,EAAEV,UAAU,EAAEF,KAAK;EAAE,GACpCC,SAAS,CACd,CAAC;AAEN,CAAC;AAED,MAAMU,MAAM,GAAGd,UAAU,CAACgB,MAAM,CAAC;EAC/BD,IAAI,EAAE;IACJE,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -4,14 +4,15 @@ import { Image, StyleSheet } from 'react-native';
|
|
|
4
4
|
import { useHMSRoomStyle } from '../../hooks-util';
|
|
5
5
|
export const CrossCircleIcon = ({
|
|
6
6
|
style,
|
|
7
|
+
size = 'normal',
|
|
7
8
|
...restProps
|
|
8
9
|
}) => {
|
|
9
10
|
const iconStyles = useHMSRoomStyle(theme => ({
|
|
10
11
|
tintColor: theme.palette.on_surface_high
|
|
11
12
|
}));
|
|
12
13
|
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
13
|
-
source: require('./assets/cross-circle.png'),
|
|
14
|
-
style: [styles.icon, iconStyles, style]
|
|
14
|
+
source: size === 'large' ? require('./assets/cross-circle-large.png') : require('./assets/cross-circle.png'),
|
|
15
|
+
style: [styles.icon, iconStyles, size === 'large' ? styles.largeIcon : null, style]
|
|
15
16
|
}, restProps));
|
|
16
17
|
};
|
|
17
18
|
const styles = StyleSheet.create({
|
|
@@ -20,6 +21,10 @@ const styles = StyleSheet.create({
|
|
|
20
21
|
height: 24,
|
|
21
22
|
alignItems: 'center',
|
|
22
23
|
justifyContent: 'center'
|
|
24
|
+
},
|
|
25
|
+
largeIcon: {
|
|
26
|
+
width: 40,
|
|
27
|
+
height: 40
|
|
23
28
|
}
|
|
24
29
|
});
|
|
25
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Image","StyleSheet","useHMSRoomStyle","CrossCircleIcon","style","restProps","iconStyles","theme","tintColor","palette","on_surface_high","createElement","_extends","source","require","styles","icon","create","width","height","alignItems","justifyContent"],"sourceRoot":"../../../../src","sources":["Icons/CrossCircle/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAGhD,SAASC,eAAe,QAAQ,kBAAkB;
|
|
1
|
+
{"version":3,"names":["React","Image","StyleSheet","useHMSRoomStyle","CrossCircleIcon","style","size","restProps","iconStyles","theme","tintColor","palette","on_surface_high","createElement","_extends","source","require","styles","icon","largeIcon","create","width","height","alignItems","justifyContent"],"sourceRoot":"../../../../src","sources":["Icons/CrossCircle/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAGhD,SAASC,eAAe,QAAQ,kBAAkB;AAMlD,OAAO,MAAMC,eAA+C,GAAGA,CAAC;EAC9DC,KAAK;EACLC,IAAI,GAAG,QAAQ;EACf,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,UAAU,GAAGL,eAAe,CAAEM,KAAK,KAAM;IAC7CC,SAAS,EAAED,KAAK,CAACE,OAAO,CAACC;EAC3B,CAAC,CAAC,CAAC;EAEH,oBACEZ,KAAA,CAAAa,aAAA,CAACZ,KAAK,EAAAa,QAAA;IACJC,MAAM,EACJT,IAAI,KAAK,OAAO,GACZU,OAAO,CAAC,iCAAiC,CAAC,GAC1CA,OAAO,CAAC,2BAA2B,CACxC;IACDX,KAAK,EAAE,CACLY,MAAM,CAACC,IAAI,EACXV,UAAU,EACVF,IAAI,KAAK,OAAO,GAAGW,MAAM,CAACE,SAAS,GAAG,IAAI,EAC1Cd,KAAK;EACL,GACEE,SAAS,CACd,CAAC;AAEN,CAAC;AAED,MAAMU,MAAM,GAAGf,UAAU,CAACkB,MAAM,CAAC;EAC/BF,IAAI,EAAE;IACJG,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDL,SAAS,EAAE;IACTE,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Image, StyleSheet } from 'react-native';
|
|
4
|
+
import { useHMSRoomStyle } from '../../hooks-util';
|
|
5
|
+
export const VirtualBackgroundIcon = ({
|
|
6
|
+
style,
|
|
7
|
+
...restProps
|
|
8
|
+
}) => {
|
|
9
|
+
const iconStyles = useHMSRoomStyle(theme => ({
|
|
10
|
+
tintColor: theme.palette.on_surface_high
|
|
11
|
+
}));
|
|
12
|
+
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
13
|
+
source: require('./assets/virtual-background.png'),
|
|
14
|
+
style: [styles.icon, iconStyles, style]
|
|
15
|
+
}, restProps));
|
|
16
|
+
};
|
|
17
|
+
const styles = StyleSheet.create({
|
|
18
|
+
icon: {
|
|
19
|
+
width: 24,
|
|
20
|
+
height: 24,
|
|
21
|
+
alignItems: 'center',
|
|
22
|
+
justifyContent: 'center'
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Image","StyleSheet","useHMSRoomStyle","VirtualBackgroundIcon","style","restProps","iconStyles","theme","tintColor","palette","on_surface_high","createElement","_extends","source","require","styles","icon","create","width","height","alignItems","justifyContent"],"sourceRoot":"../../../../src","sources":["Icons/VirtualBackground/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAGhD,SAASC,eAAe,QAAQ,kBAAkB;AAIlD,OAAO,MAAMC,qBAA2D,GAAGA,CAAC;EAC1EC,KAAK;EACL,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,UAAU,GAAGJ,eAAe,CAA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7B,cAAc,WAAW;AACzB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,YAAY;AAC1B,cAAc,OAAO;AACrB,cAAc,YAAY;AAC1B,cAAc,YAAY;AAC1B,cAAc,MAAM;AACpB,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,aAAa;AAC3B,cAAc,qBAAqB;AACnC,cAAc,cAAc;AAC5B,cAAc,YAAY","ignoreList":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { View, Text, StyleSheet, Platform, TouchableOpacity } from 'react-native';
|
|
2
|
+
import { View, Text, StyleSheet, Platform, TouchableOpacity, Linking } from 'react-native';
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
4
|
import { useAllowBlockingPeerFromChat, useAllowPinningMessage, useHMSRoomStyleSheet } from '../../hooks-util';
|
|
5
|
-
import { getTimeStringin12HourFormat } from '../../utils/functions';
|
|
5
|
+
import { getTimeStringin12HourFormat, splitLinksAndContent } from '../../utils/functions';
|
|
6
6
|
import { PinIcon, ThreeDotsIcon } from '../../Icons';
|
|
7
7
|
import { setSelectedMessageForAction } from '../../redux/actions';
|
|
8
8
|
const _ChatMessage = ({
|
|
@@ -39,6 +39,9 @@ const _ChatMessage = ({
|
|
|
39
39
|
pinnedLabel: {
|
|
40
40
|
color: theme.palette.on_surface_low,
|
|
41
41
|
fontFamily: `${typography.font_family}-SemiBold`
|
|
42
|
+
},
|
|
43
|
+
link: {
|
|
44
|
+
color: theme.palette.primary_bright
|
|
42
45
|
}
|
|
43
46
|
}), []);
|
|
44
47
|
const onThreeDotsPress = () => {
|
|
@@ -51,6 +54,12 @@ const _ChatMessage = ({
|
|
|
51
54
|
// can block peers, OR
|
|
52
55
|
canRemoveOthers && message.sender && message.sender.peerID !== localPeerId; // can remove participants
|
|
53
56
|
|
|
57
|
+
const handleLinkPress = async url => {
|
|
58
|
+
const canOpen = await Linking.canOpenURL(url);
|
|
59
|
+
if (canOpen) {
|
|
60
|
+
await Linking.openURL(url);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
54
63
|
return /*#__PURE__*/React.createElement(View, {
|
|
55
64
|
style: styles.container
|
|
56
65
|
}, isPinned ? /*#__PURE__*/React.createElement(View, {
|
|
@@ -75,7 +84,10 @@ const _ChatMessage = ({
|
|
|
75
84
|
style: [styles.threeDots, hmsRoomStyles.threeDots]
|
|
76
85
|
})) : null), /*#__PURE__*/React.createElement(Text, {
|
|
77
86
|
style: [styles.message, hmsRoomStyles.message]
|
|
78
|
-
}, message.message
|
|
87
|
+
}, splitLinksAndContent(message.message, {
|
|
88
|
+
pressHandler: handleLinkPress,
|
|
89
|
+
style: hmsRoomStyles.link
|
|
90
|
+
})));
|
|
79
91
|
};
|
|
80
92
|
export const ChatMessage = /*#__PURE__*/React.memo(_ChatMessage);
|
|
81
93
|
const styles = StyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Text","StyleSheet","Platform","TouchableOpacity","useDispatch","useSelector","useAllowBlockingPeerFromChat","useAllowPinningMessage","useHMSRoomStyleSheet","getTimeStringin12HourFormat","PinIcon","ThreeDotsIcon","setSelectedMessageForAction","_ChatMessage","message","dispatch","isPinned","state","messages","pinnedMessages","findIndex","pinnedMessage","id","messageId","localPeerId","_state$hmsStates$loca","hmsStates","localPeer","peerID","allowPinningMessage","allowPeerBlocking","canRemoveOthers","_state$hmsStates$loca2","role","permissions","removeOthers","hmsRoomStyles","theme","typography","senderName","color","palette","on_surface_high","fontFamily","font_family","time","on_surface_low","threeDots","tintColor","pinnedLabel","onThreeDotsPress","messageSender","sender","canTakeAction","createElement","style","styles","container","pinLabelContainer","type","pinIcon","nameWrapper","numberOfLines","isLocal","name","hitSlop","threeDotsHitSlop","onPress","stack","ChatMessage","memo","create","marginTop","padding","width","flexDirection","alignItems","flexGrow","fontSize","lineHeight","OS","undefined","letterSpacing","marginLeft","height","left","right","top","bottom","marginBottom","marginRight","textTransform"],"sourceRoot":"../../../../src","sources":["components/Chat/ChatMessage.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SACEC,IAAI,EACJC,IAAI,EACJC,UAAU,EACVC,QAAQ,EACRC,gBAAgB,
|
|
1
|
+
{"version":3,"names":["React","View","Text","StyleSheet","Platform","TouchableOpacity","Linking","useDispatch","useSelector","useAllowBlockingPeerFromChat","useAllowPinningMessage","useHMSRoomStyleSheet","getTimeStringin12HourFormat","splitLinksAndContent","PinIcon","ThreeDotsIcon","setSelectedMessageForAction","_ChatMessage","message","dispatch","isPinned","state","messages","pinnedMessages","findIndex","pinnedMessage","id","messageId","localPeerId","_state$hmsStates$loca","hmsStates","localPeer","peerID","allowPinningMessage","allowPeerBlocking","canRemoveOthers","_state$hmsStates$loca2","role","permissions","removeOthers","hmsRoomStyles","theme","typography","senderName","color","palette","on_surface_high","fontFamily","font_family","time","on_surface_low","threeDots","tintColor","pinnedLabel","link","primary_bright","onThreeDotsPress","messageSender","sender","canTakeAction","handleLinkPress","url","canOpen","canOpenURL","openURL","createElement","style","styles","container","pinLabelContainer","type","pinIcon","nameWrapper","numberOfLines","isLocal","name","hitSlop","threeDotsHitSlop","onPress","stack","pressHandler","ChatMessage","memo","create","marginTop","padding","width","flexDirection","alignItems","flexGrow","fontSize","lineHeight","OS","undefined","letterSpacing","marginLeft","height","left","right","top","bottom","marginBottom","marginRight","textTransform"],"sourceRoot":"../../../../src","sources":["components/Chat/ChatMessage.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SACEC,IAAI,EACJC,IAAI,EACJC,UAAU,EACVC,QAAQ,EACRC,gBAAgB,EAChBC,OAAO,QACF,cAAc;AACrB,SAASC,WAAW,EAAEC,WAAW,QAAQ,aAAa;AAGtD,SACEC,4BAA4B,EAC5BC,sBAAsB,EACtBC,oBAAoB,QACf,kBAAkB;AACzB,SACEC,2BAA2B,EAC3BC,oBAAoB,QACf,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;IACPC,MAAM,EAAE;EACV,CAAC;EACD/B,iBAAiB,EAAE;IACjBkB,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBa,YAAY,EAAE;EAChB,CAAC;EACD9B,OAAO,EAAE;IACPe,KAAK,EAAE,EAAE;IACTU,MAAM,EAAE,EAAE;IACVM,WAAW,EAAE;EACf,CAAC;EACDjD,WAAW,EAAE;IACXqC,QAAQ,EAAE,EAAE;IACZa,aAAa,EAAE,WAAW;IAC1BZ,UAAU,EAAE,EAAE;IACdG,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -7,6 +7,7 @@ import { HLSChatHeaderView } from './HLSChatHeaderView';
|
|
|
7
7
|
import { HLSDescriptionPaneHeader, HLSDescriptionPaneHeaderHeight } from './HLSDescriptionPaneHeader';
|
|
8
8
|
import { HLSAnimatedDescriptionPane } from './HLSAnimatedDescriptionPane';
|
|
9
9
|
import { setHlsDescriptionPaneVisible } from '../redux/actions';
|
|
10
|
+
import { splitLinksAndContent } from '../utils/functions';
|
|
10
11
|
export const HLSDescriptionPane = () => {
|
|
11
12
|
const dispatch = useDispatch();
|
|
12
13
|
const paneVisible = useSelector(state => state.app.hlsDescriptionPaneVisible);
|
|
@@ -57,7 +58,7 @@ export const HLSDescriptionPane = () => {
|
|
|
57
58
|
const handleLinkPress = async url => {
|
|
58
59
|
const canOpen = await Linking.canOpenURL(url);
|
|
59
60
|
if (canOpen) {
|
|
60
|
-
Linking.openURL(url);
|
|
61
|
+
await Linking.openURL(url);
|
|
61
62
|
}
|
|
62
63
|
};
|
|
63
64
|
if (!paneVisible) {
|
|
@@ -106,31 +107,4 @@ const styles = StyleSheet.create({
|
|
|
106
107
|
marginHorizontal: 16
|
|
107
108
|
}
|
|
108
109
|
});
|
|
109
|
-
function splitLinksAndContent(text, {
|
|
110
|
-
pressHandler,
|
|
111
|
-
style
|
|
112
|
-
}) {
|
|
113
|
-
// Regular expression to find links in a string
|
|
114
|
-
const pattern = /http[s]?:\/\/\S+/g;
|
|
115
|
-
|
|
116
|
-
// Find all links in the text
|
|
117
|
-
const links = text.match(pattern) || [];
|
|
118
|
-
if (links.length <= 0) {
|
|
119
|
-
return text;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// Split the text into an array of links and content
|
|
123
|
-
const parts = text.replace(pattern, '^<link>^').split('^');
|
|
124
|
-
return parts.map((p, i) => {
|
|
125
|
-
if (p !== '<link>') {
|
|
126
|
-
return p;
|
|
127
|
-
}
|
|
128
|
-
const link = links.pop();
|
|
129
|
-
return link ? /*#__PURE__*/React.createElement(Text, {
|
|
130
|
-
key: link + i,
|
|
131
|
-
onPress: () => pressHandler(link),
|
|
132
|
-
style: style
|
|
133
|
-
}, link) : p;
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
110
|
//# sourceMappingURL=HLSDescriptionPane.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useDispatch","useSelector","Linking","ScrollView","StyleSheet","Text","View","runOnJS","useSharedValue","withTiming","useHLSViewsConstraints","useHMSConferencingScreenConfig","useHMSRoomStyleSheet","HLSChatHeaderView","HLSDescriptionPaneHeader","HLSDescriptionPaneHeaderHeight","HLSAnimatedDescriptionPane","setHlsDescriptionPaneVisible","HLSDescriptionPane","dispatch","paneVisible","state","app","hlsDescriptionPaneVisible","hmsRoomStyles","theme","typography","wrapper","backgroundColor","palette","surface_dim","regularSurfaceMedium","fontFamily","font_family","color","on_surface_medium","link","primary_bright","descriptionPaneConstraints","descriptionPaneContentHeight","height","desPaneTranslationValue","_closeDescriptionPane","hideDescriptionPane","value","duration","useEffect","cancelAnimationFrame","description","confScreenConfig","_confScreenConfig$ele","elements","header","handleLinkPress","url","canOpen","canOpenURL","openURL","createElement","style","position","bottom","width","zIndex","close","animatedValue","flex","overflow","sharedValue","contentContainerStyle","paddingBottom","expanded","styles","
|
|
1
|
+
{"version":3,"names":["React","useDispatch","useSelector","Linking","ScrollView","StyleSheet","Text","View","runOnJS","useSharedValue","withTiming","useHLSViewsConstraints","useHMSConferencingScreenConfig","useHMSRoomStyleSheet","HLSChatHeaderView","HLSDescriptionPaneHeader","HLSDescriptionPaneHeaderHeight","HLSAnimatedDescriptionPane","setHlsDescriptionPaneVisible","splitLinksAndContent","HLSDescriptionPane","dispatch","paneVisible","state","app","hlsDescriptionPaneVisible","hmsRoomStyles","theme","typography","wrapper","backgroundColor","palette","surface_dim","regularSurfaceMedium","fontFamily","font_family","color","on_surface_medium","link","primary_bright","descriptionPaneConstraints","descriptionPaneContentHeight","height","desPaneTranslationValue","_closeDescriptionPane","hideDescriptionPane","value","duration","useEffect","cancelAnimationFrame","description","confScreenConfig","_confScreenConfig$ele","elements","header","handleLinkPress","url","canOpen","canOpenURL","openURL","createElement","style","position","bottom","width","zIndex","close","animatedValue","flex","overflow","sharedValue","contentContainerStyle","paddingBottom","expanded","styles","pressHandler","create","fontSize","lineHeight","marginHorizontal"],"sourceRoot":"../../../src","sources":["components/HLSDescriptionPane.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,EAAEC,WAAW,QAAQ,aAAa;AACtD,SAASC,OAAO,EAAEC,UAAU,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAC1E,SAASC,OAAO,EAAEC,cAAc,EAAEC,UAAU,QAAQ,yBAAyB;AAE7E,SACEC,sBAAsB,EACtBC,8BAA8B,EAC9BC,oBAAoB,QACf,eAAe;AACtB,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SACEC,wBAAwB,EACxBC,8BAA8B,QACzB,4BAA4B;AACnC,SAASC,0BAA0B,QAAQ,8BAA8B;AACzE,SAASC,4BAA4B,QAAQ,kBAAkB;AAE/D,SAASC,oBAAoB,QAAQ,oBAAoB;AAIzD,OAAO,MAAMC,kBAAqD,GAAGA,CAAA,KAAM;EACzE,MAAMC,QAAQ,GAAGpB,WAAW,CAAC,CAAC;EA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AAA,CAAA4D,aAAA,CAACxD,UAAU;IACTyD,KAAK,EAAEnC,aAAa,CAACG,OAAQ;IAC7B0C,qBAAqB,EAAE;MAAEC,aAAa,EAAE;IAAG;EAAE,gBAE7CxE,KAAA,CAAA4D,aAAA,CAAC9C,iBAAiB;IAAC2D,QAAQ,EAAE;EAAK,CAAE,CAAC,EAEpCvB,WAAW,gBACVlD,KAAA,CAAA4D,aAAA,CAACtD,IAAI;IACHuD,KAAK,EAAE,CAACa,MAAM,CAACxB,WAAW,EAAExB,aAAa,CAACO,oBAAoB;EAAE,GAE/Dd,oBAAoB,CAAC+B,WAAW,EAAE;IACjCyB,YAAY,EAAEpB,eAAe;IAC7BM,KAAK,EAAEnC,aAAa,CAACY;EACvB,CAAC,CACG,CAAC,GACL,IACM,CACc,CACxB,CACF,CAAC;AAEX,CAAC;AAED,MAAMoC,MAAM,GAAGrE,UAAU,CAACuE,MAAM,CAAC;EAC/B1B,WAAW,EAAE;IACX2B,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,gBAAgB,EAAE;EACpB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useDispatch, useSelector } from 'react-redux';
|
|
3
|
-
import { View, Text, StyleSheet, Platform, TouchableOpacity } from 'react-native';
|
|
3
|
+
import { View, Text, StyleSheet, Platform, TouchableOpacity, Linking } from 'react-native';
|
|
4
4
|
import { useAllowBlockingPeerFromChat, useAllowPinningMessage, useHMSRoomStyleSheet, useModalType } from '../hooks-util';
|
|
5
5
|
import { PinIcon, ThreeDotsIcon } from '../Icons';
|
|
6
6
|
import { setSelectedMessageForAction } from '../redux/actions';
|
|
7
7
|
import { ModalTypes } from '../utils/types';
|
|
8
|
+
import { splitLinksAndContent } from '../utils/functions';
|
|
8
9
|
const _HMSHLSMessage = ({
|
|
9
10
|
message
|
|
10
11
|
}) => {
|
|
@@ -38,6 +39,9 @@ const _HMSHLSMessage = ({
|
|
|
38
39
|
},
|
|
39
40
|
pinnedLabel: {
|
|
40
41
|
color: '#ffffff'
|
|
42
|
+
},
|
|
43
|
+
link: {
|
|
44
|
+
color: theme.palette.primary_bright
|
|
41
45
|
}
|
|
42
46
|
}), []);
|
|
43
47
|
const onThreeDotsPress = () => {
|
|
@@ -50,6 +54,12 @@ const _HMSHLSMessage = ({
|
|
|
50
54
|
// can block peers, OR
|
|
51
55
|
canRemoveOthers && message.sender && message.sender.peerID !== localPeerId; // can remove participants
|
|
52
56
|
|
|
57
|
+
const handleLinkPress = async url => {
|
|
58
|
+
const canOpen = await Linking.canOpenURL(url);
|
|
59
|
+
if (canOpen) {
|
|
60
|
+
await Linking.openURL(url);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
53
63
|
return /*#__PURE__*/React.createElement(View, {
|
|
54
64
|
style: styles.container
|
|
55
65
|
}, isPinned ? /*#__PURE__*/React.createElement(View, {
|
|
@@ -65,7 +75,10 @@ const _HMSHLSMessage = ({
|
|
|
65
75
|
style: [styles.message, hmsRoomStyles.regularSurfaceHigh]
|
|
66
76
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
67
77
|
style: hmsRoomStyles.semiBoldSurfaceLow
|
|
68
|
-
}, messageSender ? messageSender.isLocal ? 'You' : messageSender.name : 'Anonymous', ' '), message.message
|
|
78
|
+
}, messageSender ? messageSender.isLocal ? 'You' : messageSender.name : 'Anonymous', ' '), splitLinksAndContent(message.message, {
|
|
79
|
+
pressHandler: handleLinkPress,
|
|
80
|
+
style: hmsRoomStyles.link
|
|
81
|
+
})), canTakeAction ? /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
69
82
|
hitSlop: styles.threeDotsHitSlop,
|
|
70
83
|
onPress: onThreeDotsPress
|
|
71
84
|
}, /*#__PURE__*/React.createElement(ThreeDotsIcon, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useDispatch","useSelector","View","Text","StyleSheet","Platform","TouchableOpacity","useAllowBlockingPeerFromChat","useAllowPinningMessage","useHMSRoomStyleSheet","useModalType","PinIcon","ThreeDotsIcon","setSelectedMessageForAction","ModalTypes","_HMSHLSMessage","message","dispatch","handleModalVisibleType","localPeerId","state","_state$hmsStates$loca","hmsStates","localPeer","peerID","allowPinningMessage","allowPeerBlocking","canRemoveOthers","_state$hmsStates$loca2","role","permissions","removeOthers","isPinned","messages","pinnedMessages","findIndex","pinnedMessage","id","messageId","messageSender","sender","hmsRoomStyles","theme","typography","regularSurfaceHigh","fontFamily","font_family","color","palette","on_surface_high","semiBoldSurfaceLow","on_surface_low","threeDots","tintColor","pinnedLabel","onThreeDotsPress","MESSAGE_OPTIONS","canTakeAction","createElement","style","styles","container","pinLabelContainer","type","pinIcon","messageWrapper","isLocal","name","hitSlop","threeDotsHitSlop","onPress","stack","HMSHLSMessage","memo","create","marginTop","width","flex","flexDirection","flexShrink","fontSize","lineHeight","OS","undefined","letterSpacing","height","marginLeft","left","right","top","bottom","alignItems","marginBottom","marginRight","textTransform"],"sourceRoot":"../../../src","sources":["components/HMSHLSMessage.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,EAAEC,WAAW,QAAQ,aAAa;AACtD,SACEC,IAAI,EACJC,IAAI,EACJC,UAAU,EACVC,QAAQ,EACRC,gBAAgB,
|
|
1
|
+
{"version":3,"names":["React","useDispatch","useSelector","View","Text","StyleSheet","Platform","TouchableOpacity","Linking","useAllowBlockingPeerFromChat","useAllowPinningMessage","useHMSRoomStyleSheet","useModalType","PinIcon","ThreeDotsIcon","setSelectedMessageForAction","ModalTypes","splitLinksAndContent","_HMSHLSMessage","message","dispatch","handleModalVisibleType","localPeerId","state","_state$hmsStates$loca","hmsStates","localPeer","peerID","allowPinningMessage","allowPeerBlocking","canRemoveOthers","_state$hmsStates$loca2","role","permissions","removeOthers","isPinned","messages","pinnedMessages","findIndex","pinnedMessage","id","messageId","messageSender","sender","hmsRoomStyles","theme","typography","regularSurfaceHigh","fontFamily","font_family","color","palette","on_surface_high","semiBoldSurfaceLow","on_surface_low","threeDots","tintColor","pinnedLabel","link","primary_bright","onThreeDotsPress","MESSAGE_OPTIONS","canTakeAction","handleLinkPress","url","canOpen","canOpenURL","openURL","createElement","style","styles","container","pinLabelContainer","type","pinIcon","messageWrapper","isLocal","name","pressHandler","hitSlop","threeDotsHitSlop","onPress","stack","HMSHLSMessage","memo","create","marginTop","width","flex","flexDirection","flexShrink","fontSize","lineHeight","OS","undefined","letterSpacing","height","marginLeft","left","right","top","bottom","alignItems","marginBottom","marginRight","textTransform"],"sourceRoot":"../../../src","sources":["components/HMSHLSMessage.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,EAAEC,WAAW,QAAQ,aAAa;AACtD,SACEC,IAAI,EACJC,IAAI,EACJC,UAAU,EACVC,QAAQ,EACRC,gBAAgB,EAChBC,OAAO,QACF,cAAc;AAGrB,SACEC,4BAA4B,EAC5BC,sBAAsB,EACtBC,oBAAoB,EACpBC,YAAY,QACP,eAAe;AACtB,SAASC,OAAO,EAAEC,aAAa,QAAQ,UAAU;AACjD,SAASC,2BAA2B,QAAQ,kBAAkB;AAC9D,SAASC,UAAU,QAAQ,gBAAgB;AAE3C,SAASC,oBAAoB,QAAQ,oBAAoB;AAMzD,MAAMC,cAA4C,GAAGA,CAAC;EAAEC;AAAQ,CAAC,KAAK;EACpE,MAAMC,QAAQ,GAAGnB,WAAW,CAAC,CAAC;EAC9B,MAAM;IAAEoB;EAAuB,CAAC,GAAGT,YAAY,CAAC,CAAC;EACjD,MAAMU,WAAW,GAAGpB,WAAW,CAC5BqB,KAAgB;IAAA,IAAAC,qBAAA;IAAA,QAAAA,qBAAA,GAAKD,KAAK,CAACE,SAAS,CAACC,SAAS,cAAAF,qBAAA,uBAAzBA,qBAAA,CAA2BG,MAAM;EAAA,CACzD,CAAC;EAED,MAAMC,mBAAmB,GAAGlB,sBAAsB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,EAAE,EAAE;IACRC,KAAK,EAAE,EAAE;IACTC,GAAG,EAAE,EAAE;IACPC,MAAM,EAAE;EACV,CAAC;EACD7B,iBAAiB,EAAE;IACjBiB,aAAa,EAAE,KAAK;IACpBa,UAAU,EAAE,QAAQ;IACpBC,YAAY,EAAE;EAChB,CAAC;EACD7B,OAAO,EAAE;IACPa,KAAK,EAAE,EAAE;IACTS,MAAM,EAAE,EAAE;IACVQ,WAAW,EAAE;EACf,CAAC;EACD/C,WAAW,EAAE;IACXkC,QAAQ,EAAE,EAAE;IACZc,aAAa,EAAE,WAAW;IAC1Bb,UAAU,EAAE,EAAE;IACdG,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,14 +5,20 @@ import { useCanPublishVideo, useHMSActions } from '../hooks-sdk';
|
|
|
5
5
|
import { PressableIcon } from './PressableIcon';
|
|
6
6
|
import { useHMSRoomStyle } from '../hooks-util';
|
|
7
7
|
import { TestIds } from '../utils/constants';
|
|
8
|
-
export const HMSManageCameraRotation = (
|
|
8
|
+
export const HMSManageCameraRotation = ({
|
|
9
|
+
style
|
|
10
|
+
}) => {
|
|
9
11
|
const canPublishVideo = useCanPublishVideo();
|
|
10
12
|
if (!canPublishVideo) {
|
|
11
13
|
return null;
|
|
12
14
|
}
|
|
13
|
-
return /*#__PURE__*/React.createElement(RotateCameraButton,
|
|
15
|
+
return /*#__PURE__*/React.createElement(RotateCameraButton, {
|
|
16
|
+
style: style
|
|
17
|
+
});
|
|
14
18
|
};
|
|
15
|
-
const RotateCameraButton = (
|
|
19
|
+
const RotateCameraButton = ({
|
|
20
|
+
style
|
|
21
|
+
}) => {
|
|
16
22
|
const hmsActions = useHMSActions();
|
|
17
23
|
// TODO: set initial `isLocalVideoMuted` state value as per initial track setting
|
|
18
24
|
const isLocalVideoMuted = useSelector(state => state.hmsStates.isLocalVideoMuted);
|
|
@@ -28,7 +34,8 @@ const RotateCameraButton = () => {
|
|
|
28
34
|
return /*#__PURE__*/React.createElement(PressableIcon, {
|
|
29
35
|
testID: isLocalVideoMuted ? TestIds.switch_camera_disabled : TestIds.switch_camera,
|
|
30
36
|
onPress: handleVideoMuteTogglePress,
|
|
31
|
-
disabled: isLocalVideoMuted
|
|
37
|
+
disabled: isLocalVideoMuted,
|
|
38
|
+
style: style
|
|
32
39
|
}, /*#__PURE__*/React.createElement(RotateCameraIcon, {
|
|
33
40
|
style: cameraIconStyles
|
|
34
41
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useSelector","RotateCameraIcon","useCanPublishVideo","useHMSActions","PressableIcon","useHMSRoomStyle","TestIds","HMSManageCameraRotation","canPublishVideo","createElement","RotateCameraButton","hmsActions","isLocalVideoMuted","state","hmsStates","handleVideoMuteTogglePress","switchCamera","cameraIconStyles","theme","tintColor","palette","on_surface_low","on_surface_high","testID","switch_camera_disabled","switch_camera","onPress","disabled"
|
|
1
|
+
{"version":3,"names":["React","useSelector","RotateCameraIcon","useCanPublishVideo","useHMSActions","PressableIcon","useHMSRoomStyle","TestIds","HMSManageCameraRotation","style","canPublishVideo","createElement","RotateCameraButton","hmsActions","isLocalVideoMuted","state","hmsStates","handleVideoMuteTogglePress","switchCamera","cameraIconStyles","theme","tintColor","palette","on_surface_low","on_surface_high","testID","switch_camera_disabled","switch_camera","onPress","disabled"],"sourceRoot":"../../../src","sources":["components/HMSManageCameraRotation.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,aAAa;AAGzC,SAASC,gBAAgB,QAAQ,UAAU;AAC3C,SAASC,kBAAkB,EAAEC,aAAa,QAAQ,cAAc;AAEhE,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,eAAe,QAAQ,eAAe;AAC/C,SAASC,OAAO,QAAQ,oBAAoB;AAI5C,OAAO,MAAMC,uBAEZ,GAAGA,CAAC;EAAEC;AAAM,CAAC,KAAK;EACjB,MAAMC,eAAe,GAAGP,kBAAkB,CAAC,CAAC;EAE5C,IAAI,CAACO,eAAe,EAAE;IACpB,OAAO,IAAI;EACb;EAEA,oBAAOV,KAAA,CAAAW,aAAA,CAACC,kBAAkB;IAACH,KAAK,EAAEA;EAAM,CAAE,CAAC;AAC7C,CAAC;AAMD,MAAMG,kBAAqD,GAAGA,CAAC;EAAEH;AAAM,CAAC,KAAK;EAC3E,MAAMI,UAAU,GAAGT,aAAa,CAAC,CAAC;EAClC;EACA,MAAMU,iBAAiB,GAAGb,WAAW,CAClCc,KAAgB,IAAKA,KAAK,CAACC,SAAS,CAACF,iBACxC,CAAC;EAED,MAAMG,0BAA0B,GAAG,MAAAA,CAAA,KAAY;IAC7C,IAAIH,iBAAiB,EAAE;MACrB;IACF;IACA,MAAMD,UAAU,CAACK,YAAY,CAAC,CAAC;EACjC,CAAC;EAED,MAAMC,gBAAgB,GAAGb,eAAe,CACrCc,KAAK,KAAM;IACVC,SAAS,EAAEP,iBAAiB,GACxBM,KAAK,CAACE,OAAO,CAACC,cAAc,GAC5BH,KAAK,CAACE,OAAO,CAACE;EACpB,CAAC,CAAC,EACF,CAACV,iBAAiB,CACpB,CAAC;EAED,oBACEd,KAAA,CAAAW,aAAA,CAACN,aAAa;IACZoB,MAAM,EACJX,iBAAiB,GACbP,OAAO,CAACmB,sBAAsB,GAC9BnB,OAAO,CAACoB,aACb;IACDC,OAAO,EAAEX,0BAA2B;IACpCY,QAAQ,EAAEf,iBAAkB;IAC5BL,KAAK,EAAEA;EAAM,gBAEbT,KAAA,CAAAW,aAAA,CAACT,gBAAgB;IAACO,KAAK,EAAEU;EAAiB,CAAE,CAC/B,CAAC;AAEpB,CAAC","ignoreList":[]}
|
|
@@ -4,14 +4,20 @@ import { useCanPublishVideo, useHMSActions } from '../hooks-sdk';
|
|
|
4
4
|
import { PressableIcon } from './PressableIcon';
|
|
5
5
|
import { CameraIcon } from '../Icons';
|
|
6
6
|
import { TestIds } from '../utils/constants';
|
|
7
|
-
export const HMSManageLocalVideo = (
|
|
7
|
+
export const HMSManageLocalVideo = ({
|
|
8
|
+
style
|
|
9
|
+
}) => {
|
|
8
10
|
const canPublishVideo = useCanPublishVideo();
|
|
9
11
|
if (!canPublishVideo) {
|
|
10
12
|
return null;
|
|
11
13
|
}
|
|
12
|
-
return /*#__PURE__*/React.createElement(ToggleVideoMuteButton,
|
|
14
|
+
return /*#__PURE__*/React.createElement(ToggleVideoMuteButton, {
|
|
15
|
+
style: style
|
|
16
|
+
});
|
|
13
17
|
};
|
|
14
|
-
const ToggleVideoMuteButton = (
|
|
18
|
+
const ToggleVideoMuteButton = ({
|
|
19
|
+
style
|
|
20
|
+
}) => {
|
|
15
21
|
const hmsActions = useHMSActions();
|
|
16
22
|
// TODO: set initial `isLocalVideoMuted` state value as per initial track setting
|
|
17
23
|
const isLocalVideoMuted = useSelector(state => state.hmsStates.isLocalVideoMuted);
|
|
@@ -23,7 +29,8 @@ const ToggleVideoMuteButton = () => {
|
|
|
23
29
|
return /*#__PURE__*/React.createElement(PressableIcon, {
|
|
24
30
|
testID: !!isLocalVideoMuted ? TestIds.camera_muted_btn : TestIds.camera_unmuted_btn,
|
|
25
31
|
onPress: handleVideoMuteTogglePress,
|
|
26
|
-
active: isLocalVideoMuted
|
|
32
|
+
active: isLocalVideoMuted,
|
|
33
|
+
style: style
|
|
27
34
|
}, /*#__PURE__*/React.createElement(CameraIcon, {
|
|
28
35
|
muted: !!isLocalVideoMuted
|
|
29
36
|
}));
|