@antscorp/antsomi-ui 1.3.13 → 1.3.14

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.
@@ -264,7 +264,7 @@ export const SlideBar = props => {
264
264
  fontSize: `${BTN_ADD_SIZE}px`,
265
265
  cursor: disabledAdd ? 'not-allowed' : 'pointer',
266
266
  color: disabledAdd ? (_c = THEME.token) === null || _c === void 0 ? void 0 : _c.colorTextDisabled : (_d = THEME.token) === null || _d === void 0 ? void 0 : _d.colorPrimary,
267
- }, disabled: disabledAdd, onClick: (e) => {
267
+ }, onClick: (e) => {
268
268
  e.stopPropagation();
269
269
  if (!disabledAdd) {
270
270
  handleAddSlide();
@@ -100,6 +100,7 @@ const Help = props => {
100
100
  const [isLoadingListHelp, setIsLoadingHelp] = useState(true);
101
101
  const recorderRef = useRef();
102
102
  const streamTracks = useRef();
103
+ const allAppOptionsRef = useRef([]);
103
104
  // const showModal = (captureKey: CaptureTypeProps) => {
104
105
  // setOpen(true);
105
106
  // setCaptureType(captureKey);
@@ -218,6 +219,7 @@ const Help = props => {
218
219
  }));
219
220
  setAppTargeting(temp[0]);
220
221
  setAllAppOptions(temp);
222
+ allAppOptionsRef.current = temp;
221
223
  }
222
224
  }
223
225
  }
@@ -542,6 +544,11 @@ const Help = props => {
542
544
  setIsShowPopup(true);
543
545
  callback(REPORT_TYPES[helpType]);
544
546
  setValueInput(prev => (Object.assign(Object.assign({}, prev), helpInfo)));
547
+ if (helpInfo.feature && Array.isArray(allAppOptions)) {
548
+ const targetApp = allAppOptionsRef.current.find(item => item.value === helpInfo.feature);
549
+ if (targetApp)
550
+ setAppTargeting(targetApp);
551
+ }
545
552
  }
546
553
  break;
547
554
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.13",
3
+ "version": "1.3.14",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",