@kinetis/vector-ui 0.9.3 → 0.9.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.
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.9.4] - 2026-10-19
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- The toast type `useVectorNotifications()` queues is renamed from
|
|
15
|
+
`VectorNotification` to `VectorToast`. `VectorNotification` is now only
|
|
16
|
+
the inbox item from `/vector/notifications`, and Nuxt no longer warns
|
|
17
|
+
about a duplicated auto-import.
|
|
18
|
+
|
|
10
19
|
## [0.9.3] - 2026-10-18
|
|
11
20
|
|
|
12
21
|
### Changed
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface VectorToast {
|
|
2
2
|
text: string
|
|
3
3
|
color?: 'success' | 'error' | 'warning' | 'info'
|
|
4
4
|
timeout?: number
|
|
@@ -9,9 +9,9 @@ export interface VectorNotification {
|
|
|
9
9
|
* store or a fetch hook can notify from anywhere.
|
|
10
10
|
*/
|
|
11
11
|
export function useVectorNotifications() {
|
|
12
|
-
const queue = useState<
|
|
12
|
+
const queue = useState<VectorToast[]>('vector.notifications', () => [])
|
|
13
13
|
|
|
14
|
-
function notify(text: string, color:
|
|
14
|
+
function notify(text: string, color: VectorToast['color'] = 'info', timeout?: number) {
|
|
15
15
|
queue.value.push({ text, color, timeout })
|
|
16
16
|
}
|
|
17
17
|
|