@underverse-ui/underverse 1.0.123 → 1.0.125

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/index.d.cts CHANGED
@@ -309,8 +309,18 @@ interface AvatarProps extends React$1.HTMLAttributes<HTMLDivElement> {
309
309
  /** Hide status dot on hover */
310
310
  hideStatusOnHover?: boolean;
311
311
  onClick?: () => void;
312
+ /**
313
+ * Image rendering strategy.
314
+ * - "img": native <img> (default) — stable in dense lists, no Next.js pipeline overhead.
315
+ * - "next-image": uses SmartImage/next/image for CDN optimization.
316
+ */
317
+ imageStrategy?: "img" | "next-image";
318
+ /** Native img `loading` attribute. Default "lazy". Use "eager" for above-the-fold avatars. */
319
+ imageLoading?: "lazy" | "eager";
320
+ /** Native img `fetchpriority` attribute. Useful for hero/header avatars. */
321
+ imageFetchPriority?: "high" | "low" | "auto";
312
322
  }
313
- declare const Avatar: ({ src, alt, fallback, size, showStatus, status, hideStatusOnHover, className, onClick, ...props }: AvatarProps) => react_jsx_runtime.JSX.Element;
323
+ declare const Avatar: React$1.NamedExoticComponent<AvatarProps>;
314
324
 
315
325
  /** Public props for the `Skeleton` component. */
316
326
  interface SkeletonProps {
@@ -1996,8 +2006,12 @@ interface SmartImageProps {
1996
2006
  /** Optional fallback src if original fails. */
1997
2007
  fallbackSrc?: string;
1998
2008
  imageClassName?: string;
2009
+ /** Enable fade-in transition on the image. Default false — avoids making reloads/repaints visible. */
2010
+ transition?: boolean;
2011
+ /** Pass through next/image `unoptimized`. Useful when CDN optimization is not needed. */
2012
+ unoptimized?: boolean;
1999
2013
  }
2000
- declare function SmartImage({ src, alt, className, imageClassName, ratioClass, roundedClass, fill, width, height, sizes, priority, quality, fit, objectPosition, fallbackSrc, }: SmartImageProps): react_jsx_runtime.JSX.Element;
2014
+ declare function SmartImage({ src, alt, className, imageClassName, ratioClass, roundedClass, fill, width, height, sizes, priority, quality, fit, objectPosition, fallbackSrc, transition, unoptimized, }: SmartImageProps): react_jsx_runtime.JSX.Element;
2001
2015
 
2002
2016
  interface UploadedImage {
2003
2017
  id: number;
package/dist/index.d.ts CHANGED
@@ -309,8 +309,18 @@ interface AvatarProps extends React$1.HTMLAttributes<HTMLDivElement> {
309
309
  /** Hide status dot on hover */
310
310
  hideStatusOnHover?: boolean;
311
311
  onClick?: () => void;
312
+ /**
313
+ * Image rendering strategy.
314
+ * - "img": native <img> (default) — stable in dense lists, no Next.js pipeline overhead.
315
+ * - "next-image": uses SmartImage/next/image for CDN optimization.
316
+ */
317
+ imageStrategy?: "img" | "next-image";
318
+ /** Native img `loading` attribute. Default "lazy". Use "eager" for above-the-fold avatars. */
319
+ imageLoading?: "lazy" | "eager";
320
+ /** Native img `fetchpriority` attribute. Useful for hero/header avatars. */
321
+ imageFetchPriority?: "high" | "low" | "auto";
312
322
  }
313
- declare const Avatar: ({ src, alt, fallback, size, showStatus, status, hideStatusOnHover, className, onClick, ...props }: AvatarProps) => react_jsx_runtime.JSX.Element;
323
+ declare const Avatar: React$1.NamedExoticComponent<AvatarProps>;
314
324
 
315
325
  /** Public props for the `Skeleton` component. */
316
326
  interface SkeletonProps {
@@ -1996,8 +2006,12 @@ interface SmartImageProps {
1996
2006
  /** Optional fallback src if original fails. */
1997
2007
  fallbackSrc?: string;
1998
2008
  imageClassName?: string;
2009
+ /** Enable fade-in transition on the image. Default false — avoids making reloads/repaints visible. */
2010
+ transition?: boolean;
2011
+ /** Pass through next/image `unoptimized`. Useful when CDN optimization is not needed. */
2012
+ unoptimized?: boolean;
1999
2013
  }
2000
- declare function SmartImage({ src, alt, className, imageClassName, ratioClass, roundedClass, fill, width, height, sizes, priority, quality, fit, objectPosition, fallbackSrc, }: SmartImageProps): react_jsx_runtime.JSX.Element;
2014
+ declare function SmartImage({ src, alt, className, imageClassName, ratioClass, roundedClass, fill, width, height, sizes, priority, quality, fit, objectPosition, fallbackSrc, transition, unoptimized, }: SmartImageProps): react_jsx_runtime.JSX.Element;
2001
2015
 
2002
2016
  interface UploadedImage {
2003
2017
  id: number;