agora-appbuilder-core 4.1.22-beta.8 → 4.1.22

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.1.22-beta.8",
3
+ "version": "4.1.22",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -77,8 +77,8 @@ const DefaultConfig = {
77
77
  CHAT_ORG_NAME: "",
78
78
  CHAT_APP_NAME: "",
79
79
  CHAT_URL: "",
80
- CLI_VERSION: "3.1.22-beta.8",
81
- CORE_VERSION: "4.1.22-beta.8",
80
+ CLI_VERSION: "3.1.22",
81
+ CORE_VERSION: "4.1.22",
82
82
  DISABLE_LANDSCAPE_MODE: false,
83
83
  STT_AUTO_START: false,
84
84
  CLOUD_RECORDING_AUTO_START: false,
@@ -25,6 +25,7 @@ export interface IconButtonProps {
25
25
  setRef?: (ref: any) => void;
26
26
  onPress?: PressableProps['onPress'];
27
27
  disabled?: boolean;
28
+ showToolTipWhenDisabled?: boolean;
28
29
  containerStyle?: ViewStyle;
29
30
  rootContainerStyle?: ViewStyle;
30
31
  iconContainerStyle?: ViewStyle;
@@ -156,13 +157,14 @@ const IconButtonWithToolTip = (props: IconButtonProps) => {
156
157
  isClickable = false,
157
158
  showTooltipArrow = true,
158
159
  disabled = false,
160
+ showToolTipWhenDisabled = false,
159
161
  } = props;
160
162
  if (props?.toolTipMessage) {
161
163
  return (
162
164
  <ToolTip
163
165
  isClickable={isClickable}
164
166
  toolTipMessage={props.toolTipMessage}
165
- disabled={disabled}
167
+ disabled={disabled && !showToolTipWhenDisabled}
166
168
  //@ts-ignore
167
169
  placement={placement}
168
170
  showTooltipArrow={showTooltipArrow}
@@ -75,7 +75,7 @@ const Tooltip = (props: TooltipProps) => {
75
75
  return result;
76
76
  };
77
77
 
78
- const toolTipId = randomString();
78
+ const [toolTipId] = useState(() => randomString());
79
79
 
80
80
  return (
81
81
  <>