@grasco/profile-picture 0.2.2 → 0.2.4

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.
@@ -10,6 +10,8 @@ type Variant = "circle" | "rounded" | "squircle" | "square";
10
10
  type Position = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
11
11
  type LoadingStrategy = "lazy" | "eager";
12
12
  type PlaceholderType = "shimmer" | "pulse" | "blur" | "skeleton" | "none";
13
+ type FallbackMode = "initials" | "gradient";
14
+ type ImageMode = "transparent" | "original";
13
15
  type PresenceStatus = "online" | "away" | "busy" | "offline" | "dnd";
14
16
  interface PresenceConfig {
15
17
  /** Current status */
@@ -119,6 +121,28 @@ interface GroupUserData {
119
121
  bgColor?: string;
120
122
  /** Background gradient */
121
123
  bgGradient?: string;
124
+ /** CDN image mode */
125
+ imageMode?: ImageMode;
126
+ /** Zoom level */
127
+ zoom?: number;
128
+ /** Loading strategy */
129
+ loading?: LoadingStrategy;
130
+ /** Placeholder type */
131
+ placeholder?: PlaceholderType;
132
+ /** Placeholder color */
133
+ placeholderColor?: string;
134
+ /** Custom fallback text */
135
+ fallback?: string;
136
+ /** Fallback mode */
137
+ fallbackMode?: FallbackMode;
138
+ /** Glow config */
139
+ glow?: GlowConfig;
140
+ /** Ring config */
141
+ ring?: RingConfig;
142
+ /** Badge config */
143
+ badge?: BadgeConfig;
144
+ /** Interactive config */
145
+ interactive?: InteractionConfig;
122
146
  }
123
147
  /** Dropdown configuration for overflow users */
124
148
  interface DropdownConfig {