@underverse-ui/underverse 1.0.124 → 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/CHANGELOG.md +12 -0
- package/api-reference.json +1 -1
- package/dist/index.cjs +560 -538
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +752 -730
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ All notable changes to `@underverse-ui/underverse` are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- `Avatar` now defaults to a native `<img>` element (`imageStrategy="img"`) instead of SmartImage/next/image. This eliminates `/_next/image` requests on remount and prevents avatar flicker in dense chat/message lists. Pass `imageStrategy="next-image"` to restore the previous behaviour for large avatars that need CDN optimization.
|
|
10
|
+
- `Avatar` image element now has `draggable={false}` to prevent accidental drag in UI.
|
|
11
|
+
- `Avatar` `fallback` prop now displays only the first character (uppercased). Any string is accepted; only the first character is rendered.
|
|
12
|
+
- `Avatar` is now wrapped in `React.memo` to skip re-renders when props are stable.
|
|
13
|
+
- `Avatar` exposes `imageLoading` (`"lazy" | "eager"`, default `"lazy"`) and `imageFetchPriority` (`"high" | "low" | "auto"`) props for above-the-fold or priority avatars.
|
|
14
|
+
- `SmartImage` `transition` prop added (default `false`). Previous hardcoded `transition-all duration-300` made image reloads visually obvious; transition is now opt-in.
|
|
15
|
+
- `SmartImage` `unoptimized` prop added (default `false`). Passes through to next/image to skip CDN optimization when not needed.
|
|
16
|
+
- `SmartImage` `normalize` is now stable via `useCallback([fallbackSrc])` and the sync `useEffect` uses a functional update to skip redundant state writes.
|
|
17
|
+
- `SmartImage` error handler now also catches `.jpeg` extensions (previously only `.jpg`) and converts them to `.png`.
|
|
18
|
+
|
|
7
19
|
### Fixed
|
|
8
20
|
|
|
9
21
|
- `Tooltip` now closes immediately when its trigger is pressed, when `Escape` is pressed, or when document-level pointer interactions show the pointer is outside the trigger. This prevents portal tooltips from sticking on screen after opening dropdowns, popovers, modals, or when a modal/portal layout misses the trigger `mouseleave`.
|