agora-appbuilder-core 4.0.30-beta-1 → 4.0.30-beta-2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-appbuilder-core",
3
- "version": "4.0.30-beta-1",
3
+ "version": "4.0.30-beta-2",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -6,3 +6,4 @@ export {default as LinkButton} from '../src/atoms/LinkButton';
6
6
  export {default as PrimaryButton} from '../src/atoms/PrimaryButton';
7
7
  export {default as TertiaryButton} from '../src/atoms/TertiaryButton';
8
8
  export {default as ActionMenu} from '../src/atoms/ActionMenu';
9
+ export {default as IconButton} from '../src/atoms/IconButton';
@@ -2,7 +2,6 @@
2
2
 
3
3
  import VideoRenderer from '../src/pages/video-call/VideoRenderer';
4
4
  import {DispatchContext} from '../agora-rn-uikit';
5
- import IconButton from '../src/atoms/IconButton';
6
5
  import WhiteboardView from '../src/components/whiteboard/WhiteboardView';
7
6
  import {
8
7
  useWhiteboard,
@@ -28,7 +27,6 @@ import useEndCall from '../src/utils/useEndCall';
28
27
  export {
29
28
  VideoRenderer,
30
29
  DispatchContext,
31
- IconButton,
32
30
  WhiteboardView,
33
31
  whiteboardContext,
34
32
  useVideoCall,
@@ -46,3 +46,4 @@ export {
46
46
  type VideoEncoderConfiguration,
47
47
  } from '../src/app-state/useVideoQuality';
48
48
  export {type ActionMenuItem} from '../src/atoms/ActionMenu';
49
+ export {type IconButtonProps} from '../src/atoms/IconButton';
@@ -47,3 +47,5 @@ export {default as ThemeConfig} from '../src/theme';
47
47
  export {default as hexadecimalTransparency} from '../src/utils/hexadecimalTransparency';
48
48
  export {useFullScreen} from '../src/utils/useFullScreen';
49
49
  export {useHideShareTitle} from '../src/utils/useHideShareTile';
50
+ export {useActionSheet} from '../src/utils/useActionSheet';
51
+ export {default as PlatformWrapper} from '../src/utils/PlatformWrapper';
@@ -76,8 +76,8 @@ const DefaultConfig = {
76
76
  CHAT_ORG_NAME: '',
77
77
  CHAT_APP_NAME: '',
78
78
  CHAT_URL: '',
79
- CLI_VERSION: '3.0.29',
80
- CORE_VERSION: '4.0.29',
79
+ CLI_VERSION: '3.0.30-beta-2',
80
+ CORE_VERSION: '4.0.30-beta-2',
81
81
  DISABLE_LANDSCAPE_MODE: false,
82
82
  STT_AUTO_START: false,
83
83
  CLOUD_RECORDING_AUTO_START: false,
@@ -187,6 +187,11 @@
187
187
  },
188
188
  "@bam.tech/react-native-make": {
189
189
  "sharp": "0.33.5"
190
+ },
191
+ "webpack-dev-server": {
192
+ "chokidar": {
193
+ "fsevents": "2.3.3"
194
+ }
190
195
  }
191
196
  },
192
197
  "engines": {
@@ -21,6 +21,7 @@ interface CheckboxProps {
21
21
  containerStyle?: ViewStyle;
22
22
  checkBoxStyle?: ViewStyle;
23
23
  tickColor?: string;
24
+ ignoreDisabledStyle?: boolean;
24
25
  }
25
26
 
26
27
  const Checkbox: React.FC<CheckboxProps> = ({
@@ -32,6 +33,7 @@ const Checkbox: React.FC<CheckboxProps> = ({
32
33
  containerStyle = {},
33
34
  checkBoxStyle = {},
34
35
  tickColor = $config.FONT_COLOR,
36
+ ignoreDisabledStyle = false,
35
37
  }) => {
36
38
  const [isChecked, setIsChecked] = useState(checked);
37
39
 
@@ -69,7 +71,7 @@ const Checkbox: React.FC<CheckboxProps> = ({
69
71
  style={[
70
72
  styles.label,
71
73
  labelStye,
72
- !isChecked && disabled && styles.disabledText,
74
+ !isChecked && disabled && !ignoreDisabledStyle && styles.disabledText,
73
75
  ]}>
74
76
  {label}
75
77
  </Text>
@@ -39,6 +39,7 @@ const TertiaryButton = (props: ButtonProps) => {
39
39
  return (
40
40
  <PlatformWrapper setIsHovered={setIsHovered}>
41
41
  <TouchableOpacity
42
+ disabled={disabled}
42
43
  ref={ref => props?.setRef && props.setRef(ref)}
43
44
  style={[
44
45
  styles.container,
@@ -39,7 +39,8 @@ const useSpeechToText = () => {
39
39
 
40
40
  useEffect(() => {
41
41
  if (!$config.ENABLE_STT) {
42
- throw new Error('Speech To Text is not enabled');
42
+ //throw new Error('Speech To Text is not enabled');
43
+ console.error('Speech To Text is not enabled')
43
44
  }
44
45
  }, []);
45
46