@grasco/profile-picture 0.2.3 → 0.2.5

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,7 @@ 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";
13
14
  type ImageMode = "transparent" | "original";
14
15
  type PresenceStatus = "online" | "away" | "busy" | "offline" | "dnd";
15
16
  interface PresenceConfig {
@@ -122,6 +123,26 @@ interface GroupUserData {
122
123
  bgGradient?: string;
123
124
  /** CDN image mode */
124
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;
125
146
  }
126
147
  /** Dropdown configuration for overflow users */
127
148
  interface DropdownConfig {
@@ -204,6 +225,12 @@ declare class ProfilePicture extends LitElement {
204
225
  private retryTimeoutId?;
205
226
  private randomSeed;
206
227
  private readonly RETRY_DELAY_MS;
228
+ /**
229
+ * Safely resolve an object property that may be a JSON string
230
+ * (e.g., when React 19 sets it as a property instead of attribute,
231
+ * bypassing Lit's fromAttribute converter).
232
+ */
233
+ private resolveObjectProp;
207
234
  private get pixelSize();
208
235
  /**
209
236
  * Resolve the seed for cloudy gradient from available identifiers.