@antscorp/antsomi-ui 1.4.6 → 1.4.8

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.
@@ -534,7 +534,7 @@ const Help = props => {
534
534
  };
535
535
  useEffect(() => {
536
536
  const handleEvent = e => {
537
- const { type, helpType, helpInfo } = e.data;
537
+ const { type, helpType, helpInfo, dataImage } = e.data;
538
538
  if (!type || !helpType || !helpInfo) {
539
539
  return;
540
540
  }
@@ -544,6 +544,12 @@ const Help = props => {
544
544
  setIsShowPopup(true);
545
545
  callback(REPORT_TYPES[helpType]);
546
546
  setValueInput(prev => (Object.assign(Object.assign({}, prev), helpInfo)));
547
+ if (dataImage) {
548
+ setImageDrew({
549
+ imageName: dataImage.imageName,
550
+ dataURL: dataImage.dataUrl,
551
+ });
552
+ }
547
553
  if (helpInfo.feature && Array.isArray(allAppOptions)) {
548
554
  const targetApp = allAppOptionsRef.current.find(item => item.value === helpInfo.feature);
549
555
  if (targetApp)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.4.6",
3
+ "version": "1.4.8",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",