@app-studio/web 0.8.39 → 0.8.40

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/dist/web.esm.js CHANGED
@@ -1802,7 +1802,8 @@ var AvatarView = _ref => {
1802
1802
  fallback = 'IM',
1803
1803
  styles,
1804
1804
  imageError,
1805
- setImageError
1805
+ setImageError,
1806
+ onClick = () => {}
1806
1807
  } = _ref;
1807
1808
  // Determines the size of the avatar by mapping the size prop to the predefined AvatarSizeMap.
1808
1809
  var avatarSize = AvatarSizeMap[size];
@@ -1820,7 +1821,8 @@ var AvatarView = _ref => {
1820
1821
  borderWidth: "1px",
1821
1822
  borderStyle: "solid",
1822
1823
  borderColor: imageError ? 'black' : 'transparent',
1823
- boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.25)"
1824
+ boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.25)",
1825
+ onClick: onClick
1824
1826
  }, styles == null ? void 0 : styles.container), !imageError ? (/*#__PURE__*/React.createElement(Image, {
1825
1827
  alt: "IM",
1826
1828
  src: src,
@@ -1839,7 +1841,8 @@ var AvatarComponent = _ref => {
1839
1841
  src,
1840
1842
  size,
1841
1843
  styles,
1842
- fallback
1844
+ fallback,
1845
+ onClick
1843
1846
  } = _ref;
1844
1847
  // Uses custom hook useAvatarState to manage the avatar image loading error state.
1845
1848
  var {
@@ -1853,7 +1856,8 @@ var AvatarComponent = _ref => {
1853
1856
  styles: styles,
1854
1857
  fallback: fallback,
1855
1858
  imageError: imageError,
1856
- setImageError: setImageError
1859
+ setImageError: setImageError,
1860
+ onClick: onClick
1857
1861
  });
1858
1862
  // AvatarComponent is a functional component that wraps the AvatarView with added state logic.
1859
1863
  };