codexly-ui 0.13.2 → 0.13.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codexly-ui",
3
- "version": "0.13.2",
3
+ "version": "0.13.3",
4
4
  "description": "Standalone, signal-based Angular UI component library for Codexly, styled with Tailwind CSS.",
5
5
  "keywords": [
6
6
  "angular",
@@ -227,10 +227,20 @@ declare class ClxAvatarComponent {
227
227
  readonly shape: _angular_core.InputSignal<ClxShape>;
228
228
  readonly alt: _angular_core.InputSignal<string>;
229
229
  protected readonly _color: _angular_core.Signal<ClxColorInput>;
230
+ /** Set by (error) on the <img> when src() fails to load (404, expired/broken URL, CORS, wrong
231
+ * host, ...) — without this, _contentType() would keep returning 'image' forever since it only
232
+ * checks whether src() is truthy, never whether it actually loaded, and the browser renders the
233
+ * alt() text raw inside the small circular avatar container ("Avatar" clipped into "Avata").
234
+ * Reset by the effect below whenever src() itself changes, so a later successful URL (e.g. after
235
+ * uploading a new profile photo) gets a fresh chance to load instead of staying stuck on the
236
+ * fallback from a previous broken one. */
237
+ private readonly _imgFailed;
238
+ private readonly _resetImgFailedOnSrcChange;
230
239
  protected readonly _contentType: _angular_core.Signal<ClxAvatarContentType>;
240
+ protected _onImgError(): void;
231
241
  protected readonly _initials: _angular_core.Signal<string>;
232
242
  protected readonly _iconSize: _angular_core.Signal<ClxSize>;
233
- protected readonly _shapeClass: _angular_core.Signal<"rounded-xl" | "rounded-full">;
243
+ protected readonly _shapeClass: _angular_core.Signal<"rounded-full" | "rounded-xl">;
234
244
  protected readonly _colorClass: _angular_core.Signal<string>;
235
245
  protected readonly _textClass: _angular_core.Signal<string>;
236
246
  protected readonly _hostClass: _angular_core.Signal<string>;